/* Shadcn-style component classes — modernized w/ hover states + animations.
 * Frank: use these classes directly. NEVER redefine .btn / .card / .input
 * in project-local <style>. If you need a variant: ADD it here. */

/* ────────── BUTTON ────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--duration-fast) var(--ease-snap),
    color var(--duration-fast) var(--ease-snap),
    border-color var(--duration-fast) var(--ease-snap),
    transform var(--duration-fast) var(--ease-snap),
    box-shadow var(--duration-fast) var(--ease-snap),
    opacity var(--duration-fast) var(--ease-snap);
  user-select: none;
}
.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-sm), inset 0 1px 0 0 hsl(0 0% 100% / 0.1);
}
.btn-primary:hover {
  background: hsl(var(--primary) / 0.92);
  box-shadow: var(--shadow-md), inset 0 1px 0 0 hsl(0 0% 100% / 0.12);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.btn-secondary:hover { background: hsl(var(--secondary) / 0.7); }

.btn-outline {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--accent)); }

.btn-destructive {
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  box-shadow: var(--shadow-sm);
}
.btn-destructive:hover { opacity: 0.92; }

.btn-link {
  background: transparent;
  color: hsl(var(--primary));
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-link:hover { text-decoration-thickness: 2px; }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; height: 2.25rem; }
.btn-lg { padding: 0.625rem 1.5rem; font-size: 0.9375rem; height: 2.75rem; }
.btn-icon { padding: 0.5rem; width: 2.5rem; height: 2.5rem; }

/* ────────── CARD ────────── */
.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}
a.card { display: block; color: inherit; text-decoration: none; }
.card-hover:hover, a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: hsl(var(--primary) / 0.3);
}
.card-header { padding: 1.5rem 1.5rem 0; display: flex; flex-direction: column; gap: 0.375rem; }
.card-title { font-size: 1.125rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; }
.card-description { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.5; }
.card-content { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; display: flex; align-items: center; gap: 0.5rem; border-top: 1px solid hsl(var(--border)); }
.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
a.card:hover .card-img { transform: scale(1.04); }

/* Icon-card — for category/feature grids. Centered SVG in a colored well. */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--accent) / 0.05));
  color: hsl(var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}
.card-hover:hover .card-icon, a.card:hover .card-icon {
  transform: scale(1.08) rotate(-3deg);
}

/* ────────── INPUT ────────── */
.input, .textarea, .select {
  display: flex;
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.875rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  transition:
    border-color var(--duration-fast) var(--ease-snap),
    box-shadow var(--duration-fast) var(--ease-snap);
}
.textarea { min-height: 6rem; height: auto; resize: vertical; padding-block: 0.625rem; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
}
.input::placeholder, .textarea::placeholder { color: hsl(var(--muted-foreground)); }

.label { display: block; font-size: 0.875rem; font-weight: 500; line-height: 1.5; margin-bottom: 0.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.field-error { font-size: 0.8125rem; color: hsl(var(--destructive)); }

/* ────────── BADGE ────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25rem;
  border: 1px solid transparent;
  letter-spacing: 0;
}
.badge-default { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.badge-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.badge-outline { border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.badge-destructive { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
.badge-success { background: hsl(142 71% 45%); color: white; }

/* ────────── NAVBAR ────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid hsl(var(--border) / 0.8);
}
.navbar-inner { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.navbar-brand {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}
.navbar-links { display: flex; gap: 1.5rem; margin-left: 2rem; flex: 1; }
.navbar-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color var(--duration-fast) var(--ease-snap);
  position: relative;
  padding: 0.25rem 0;
}
.navbar-links a:hover, .navbar-links a.active { color: hsl(var(--foreground)); }
.navbar-links a.active::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 2px;
  background: hsl(var(--primary));
  border-radius: 1px;
}
.navbar-actions { display: flex; gap: 0.5rem; align-items: center; }

/* Mobile burger button — only shows below 768px */
.navbar-burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
}
.navbar-burger svg { width: 18px; height: 18px; }

/* Mobile drop-panel */
.navbar-mobile {
  display: none;
  position: absolute;
  inset: 100% 0 auto 0;
  background: hsl(var(--background) / 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}
.navbar-mobile.open { display: flex; animation: fadeInUp 220ms var(--ease-out); }
.navbar-mobile a {
  padding: 0.625rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
}
.navbar-mobile a:hover { background: hsl(var(--accent)); }
.navbar-mobile .btn { justify-content: flex-start; }

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-actions { display: none; }
  .navbar-burger { display: inline-flex; }
}
@media (min-width: 769px) {
  .navbar-burger, .navbar-mobile { display: none !important; }
}

/* ────────── HERO ────────── */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
/* Animated gradient blobs — layered radial gradients that drift slowly. */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 22%, hsl(var(--primary) / 0.32) 0px, transparent 35%),
    radial-gradient(circle at 82% 68%, hsl(var(--accent) / 0.28) 0px, transparent 35%),
    radial-gradient(circle at 60% 15%, hsl(var(--tertiary, 35 88% 55%) / 0.25) 0px, transparent 38%),
    radial-gradient(circle at 30% 80%, hsl(var(--primary) / 0.18) 0px, transparent 40%);
  filter: blur(36px);
  z-index: -2;
  animation: blobDrift 22s var(--ease-out) infinite alternate;
}
/* Dot-grid texture overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(hsl(var(--foreground) / 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

@keyframes blobDrift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(2%, -2%) rotate(8deg) scale(1.05); }
  100% { transform: translate(-1%, 2%) rotate(-4deg) scale(1.02); }
}

/* Hero photo collage — three rotated cards layered for visual interest.
 * Uses absolute positioning + transforms to create a casual, scrapbook
 * feel. Hover lifts each card slightly. */
.hero-collage {
  position: relative;
  margin: 4rem auto 3rem;
  max-width: 56rem;
  height: 22rem;
}
.collage-card {
  position: absolute;
  width: 18rem;
  background: hsl(var(--card));
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid hsl(var(--border));
  /* Transition only on box-shadow — the transform is keyframe-driven.
   * On hover, animation-play-state pauses the keyframe and the !important
   * hover transform takes over via instant style swap (no CSS transition
   * needed since the change is small and visually crisp). */
  transition: box-shadow 350ms var(--ease-out);
  will-change: transform;
}
.collage-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.collage-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: hsl(var(--card));
}
/* Each collage card gets its OWN keyframe — the rotation must be baked
 * into every frame, otherwise the float animation "resets" the rotate
 * to 0deg and the cards visibly snap. */
.collage-card-1 {
  left: 50%;
  top: 0;
  z-index: 2;
  animation: floatCollage1 5s ease-in-out infinite;
}
.collage-card-2 {
  left: 8%;
  top: 3rem;
  z-index: 1;
  animation: floatCollage2 4.2s ease-in-out infinite;
}
.collage-card-3 {
  right: 8%;
  top: 3rem;
  z-index: 1;
  animation: floatCollage3 4.6s ease-in-out -1.5s infinite;
}

@keyframes floatCollage1 {
  0%, 100% { transform: translate(-50%, 0) rotate(-4deg); }
  50%      { transform: translate(-50%, -6px) rotate(-4deg); }
}
@keyframes floatCollage2 {
  0%, 100% { transform: translate(0, 0) rotate(-7deg); }
  50%      { transform: translate(0, -7px) rotate(-7deg); }
}
@keyframes floatCollage3 {
  0%, 100% { transform: translate(0, 0) rotate(6deg); }
  50%      { transform: translate(0, -6px) rotate(6deg); }
}

/* Hover: pause the floating, lift, slightly straighten. Use !important
 * so it wins over the running animation rule. */
.collage-card:hover {
  animation-play-state: paused;
  z-index: 5;
  box-shadow: var(--shadow-xl), 0 24px 48px -12px hsl(var(--primary) / 0.25);
}
.collage-card-1:hover { transform: translate(-50%, -10px) rotate(-2deg) scale(1.03) !important; }
.collage-card-2:hover { transform: translate(0, -10px) rotate(-3deg) scale(1.03) !important; }
.collage-card-3:hover { transform: translate(0, -10px) rotate(3deg) scale(1.03) !important; }

@media (max-width: 768px) {
  .hero-collage { display: none; }
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid hsl(var(--border));
}
.hero-stats > div { text-align: center; }
.hero-stat-num {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-family: var(--font-display);
  background: linear-gradient(135deg, hsl(var(--foreground)), hsl(var(--foreground) / 0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.875rem;
  border-radius: 9999px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.75rem;
}
.hero-title { max-width: 56rem; margin: 0 auto 1.25rem; }
.hero-lead { max-width: 36rem; margin: 0 auto 2.25rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

@media (min-width: 768px) {
  .hero { padding: 8rem 0 6rem; }
}

/* ────────── SECTIONS ────────── */
.section { padding: 5rem 0; position: relative; }
.section-muted { background: hsl(var(--muted) / 0.4); }

/* Color-washed section variants — for breaking up monotone cream pages.
 * Use class="section section-wash-{primary|accent|tertiary}" to apply. */
.section-wash-primary {
  background: linear-gradient(180deg,
    hsl(var(--background)) 0%,
    hsl(var(--primary-soft, var(--primary) / 0.06)) 50%,
    hsl(var(--background)) 100%);
}
.section-wash-accent {
  background: linear-gradient(180deg,
    hsl(var(--background)) 0%,
    hsl(var(--accent-soft, var(--accent) / 0.08)) 50%,
    hsl(var(--background)) 100%);
}
.section-wash-tertiary {
  background: linear-gradient(180deg,
    hsl(var(--background)) 0%,
    hsl(var(--tertiary-soft, 35 100% 94%)) 50%,
    hsl(var(--background)) 100%);
}
/* Diagonal angle stripes — adds dynamic visual rhythm */
.section-wash-diagonal {
  position: relative;
  overflow: hidden;
}
.section-wash-diagonal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 0%, transparent 35%,
    hsl(var(--accent) / 0.07) 50%, hsl(var(--accent) / 0.07) 65%,
    transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.section-wash-diagonal > * { position: relative; z-index: 1; }

/* Dark contrast section — used to break up monotone cream pages.
 * Dotted grid texture + deep neutral. Cards inside should use .card-dark. */
.section-dark {
  background: hsl(240 10% 6%);
  color: hsl(0 0% 95%);
  position: relative;
  overflow: hidden;
  margin-block: 2rem;
  border-radius: 1.5rem;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(hsl(0 0% 100% / 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 80%);
  pointer-events: none;
}
.section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, hsl(var(--primary) / 0.18) 0px, transparent 40%),
    radial-gradient(circle at 82% 75%, hsl(var(--accent) / 0.15) 0px, transparent 40%);
  pointer-events: none;
}
.section-dark > * { position: relative; z-index: 1; }
.section-dark .small { color: hsl(0 0% 70%); }

/* Dark card variant — used inside .section-dark */
.card-dark {
  background: hsl(240 10% 9%);
  border: 1px solid hsl(0 0% 100% / 0.08);
  color: hsl(0 0% 95%);
}
.card-dark .card-description { color: hsl(0 0% 70%); }
.card-dark:hover { border-color: hsl(0 0% 100% / 0.18); }
.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
}
.section-header h2 { margin-bottom: 1rem; }

/* ────────── GRID ────────── */
.grid-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid-cards-2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-cards-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-cards-4 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards-4 { grid-template-columns: repeat(4, 1fr); } }

/* Bento grid — asymmetric: first item spans 2 cols × 2 rows. */
.grid-bento {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .grid-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(15rem, auto); } }
.grid-bento .bento-feature { grid-column: span 1; }
@media (min-width: 1024px) {
  .grid-bento .bento-feature { grid-column: span 2; grid-row: span 2; }
}

/* Per-category accent — full-saturation icon wells, top color stripe.
 * card-stripe::before paints a 4px brand-colored bar at the top edge. */
.card-stripe { position: relative; }
.card-stripe::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--card-stripe-color, hsl(var(--primary)));
  opacity: 0.85;
  z-index: 1;
}

.card-accent-1 { --card-stripe-color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.3); }
.card-accent-1 .card-icon {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.7));
  color: white;
  box-shadow: 0 8px 20px -6px hsl(var(--primary) / 0.45);
}

.card-accent-2 { --card-stripe-color: hsl(var(--accent)); border-color: hsl(var(--accent) / 0.35); }
.card-accent-2 .card-icon {
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent) / 0.7));
  color: white;
  box-shadow: 0 8px 20px -6px hsl(var(--accent) / 0.45);
}

.card-accent-3 { --card-stripe-color: hsl(217 90% 55%); border-color: hsl(217 90% 55% / 0.3); }
.card-accent-3 .card-icon {
  background: linear-gradient(135deg, hsl(217 90% 55%), hsl(217 75% 45%));
  color: white;
  box-shadow: 0 8px 20px -6px hsl(217 90% 55% / 0.45);
}

.card-accent-4 { --card-stripe-color: hsl(var(--tertiary, 35 88% 55%)); border-color: hsl(35 88% 55% / 0.35); }
.card-accent-4 .card-icon {
  background: linear-gradient(135deg, hsl(var(--tertiary, 35 88% 55%)), hsl(28 90% 48%));
  color: white;
  box-shadow: 0 8px 20px -6px hsl(35 88% 55% / 0.45);
}

/* Sub-category chips inside bento-feature card */
.chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: all var(--duration-fast) var(--ease-snap);
}
.chip:hover {
  background: var(--card-stripe-color, hsl(var(--primary)));
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
}
.chip-count {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}
.chip:hover .chip-count { color: white; opacity: 0.9; }

/* ────────── ALERT ────────── */
.alert { padding: 1rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius); display: flex; gap: 0.75rem; align-items: flex-start; }
.alert-title { font-weight: 600; font-size: 0.875rem; }
.alert-description { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.alert-info { border-color: hsl(217 91% 60%); background: hsl(217 91% 60% / 0.06); }
.alert-success { border-color: hsl(142 71% 45%); background: hsl(142 71% 45% / 0.06); }
.alert-warning { border-color: hsl(38 92% 50%); background: hsl(38 92% 50% / 0.06); }
.alert-error { border-color: hsl(var(--destructive)); background: hsl(var(--destructive) / 0.06); }

/* ────────── TABLE ────────── */
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th, .table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid hsl(var(--border)); }
.table th { font-weight: 500; color: hsl(var(--muted-foreground)); font-size: 0.8125rem; }
.table tbody tr { transition: background-color var(--duration-fast) var(--ease-snap); }
.table tbody tr:hover { background: hsl(var(--muted) / 0.4); }

/* ────────── FOOTER — dark, branded, with newsletter + social ────────── */
.footer {
  position: relative;
  background: hsl(240 10% 6%);
  color: hsl(0 0% 92%);
  padding: 5rem 0 2rem;
  margin-top: 6rem;
  overflow: hidden;
}
.footer::before {
  /* Brand gradient stripe at top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg,
    hsl(var(--primary)) 0%,
    hsl(var(--accent)) 50%,
    hsl(var(--tertiary, 35 88% 55%)) 100%);
}
.footer::after {
  /* Subtle dot-grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(hsl(0 0% 100% / 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}
.footer > * { position: relative; z-index: 1; }

.footer-newsletter {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--accent) / 0.10));
  border: 1px solid hsl(0 0% 100% / 0.08);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 4rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) {
  .footer-newsletter { grid-template-columns: 1.4fr 1fr; padding: 2.5rem; }
}
.footer-newsletter h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: hsl(0 0% 98%);
  margin-bottom: 0.5rem;
}
.footer-newsletter p {
  color: hsl(0 0% 70%);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.footer-newsletter form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-newsletter input[type="email"] {
  flex: 1;
  min-width: 12rem;
  height: 2.75rem;
  padding: 0 1rem;
  background: hsl(0 0% 100% / 0.06);
  border: 1px solid hsl(0 0% 100% / 0.12);
  border-radius: var(--radius);
  color: hsl(0 0% 95%);
  font-size: 0.9375rem;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.footer-newsletter input[type="email"]::placeholder { color: hsl(0 0% 55%); }
.footer-newsletter input[type="email"]:focus {
  outline: none;
  background: hsl(0 0% 100% / 0.10);
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(0 0% 60%);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
/* Defensive: if Frank's page-shot wrote <a> directly without <ul><li>,
 * still force each link onto its own row so the column doesn't collapse
 * into a run-on text block. */
.footer-col > a {
  display: block;
  font-size: 0.9375rem;
  color: hsl(0 0% 78%);
  margin-bottom: 0.75rem;
  transition: color var(--duration-fast) var(--ease-snap);
}
.footer-col > a:hover { color: hsl(0 0% 100%); }
.footer-col a {
  font-size: 0.9375rem;
  color: hsl(0 0% 78%);
  transition: color var(--duration-fast) var(--ease-snap);
}
.footer-col a:hover { color: hsl(0 0% 100%); }
.footer-col p { color: hsl(0 0% 70%); font-size: 0.9375rem; line-height: 1.6; }

.footer .navbar-brand { color: hsl(0 0% 98%); margin-bottom: 1rem; }

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: hsl(0 0% 100% / 0.06);
  border: 1px solid hsl(0 0% 100% / 0.08);
  color: hsl(0 0% 75%);
  transition: all var(--duration-fast) var(--ease-snap);
}
.footer-social a:hover {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(0 0% 100% / 0.08);
  font-size: 0.8125rem;
  color: hsl(0 0% 55%);
}
.footer-bottom a { color: hsl(0 0% 75%); transition: color var(--duration-fast); }
.footer-bottom a:hover { color: hsl(0 0% 95%); }

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: hsl(142 71% 45% / 0.15);
  border: 1px solid hsl(142 71% 45% / 0.25);
  color: hsl(142 71% 75%);
  font-size: 0.75rem;
  font-weight: 500;
}
.footer-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: hsl(142 71% 55%);
  box-shadow: 0 0 0 3px hsl(142 71% 45% / 0.25);
  animation: pulseGlow 2s var(--ease-out) infinite;
}

/* ────────── UTILITIES ──────────
 * Used by hero + section composition. Don't reinvent these in inline <style>. */

.surface-mesh { background-image: var(--surface-mesh); }
.surface-grid {
  background-image:
    linear-gradient(to right, hsl(var(--border)) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border)) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 40%, transparent 100%);
}

.float-anim { animation: float 3.5s var(--ease-out) infinite; }

/* ═══════════════════════════════════════════════════════════════
 * EXTENDED COMPONENT LIBRARY (v7) — additional variants Frank can pick.
 * All composed from the same tokens; each variant is self-contained.
 * ═══════════════════════════════════════════════════════════════ */

/* ────────── HERO VARIANTS ────────── */

/* hero-split — text left, visual right (mockup, photo, illustration) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 5rem 0;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-split { grid-template-columns: 1.1fr 1fr; gap: 4rem; padding: 7rem 0; }
}
.hero-split .hero-text-col { text-align: left; }
.hero-split h1 { text-align: left; max-width: none; }
.hero-split .lead { text-align: left; max-width: 32rem; margin-left: 0; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-split .hero-visual {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--accent) / 0.08));
}
.hero-split .hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* hero-fullbleed — photo background w/ gradient overlay, text on top */
.hero-fullbleed {
  position: relative;
  padding: 8rem 0 6rem;
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.hero-fullbleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-photo, url("/stock/wikimedia/wikimedia-volunteers-helping-serve-the-wiesbaden-community-6623597.jpg")) center/cover;
  z-index: -2;
}
.hero-fullbleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    hsl(240 10% 4% / 0.65) 0%,
    hsl(240 10% 4% / 0.85) 100%);
  z-index: -1;
}
.hero-fullbleed h1 { color: hsl(0 0% 98%); }
.hero-fullbleed .lead { color: hsl(0 0% 80%); }
.hero-fullbleed .hero-eyebrow {
  background: hsl(0 0% 100% / 0.1);
  border-color: hsl(0 0% 100% / 0.2);
  color: hsl(0 0% 95%);
  backdrop-filter: blur(8px);
}

/* hero-minimal — just centered text, nothing else (small landing) */
.hero-minimal {
  padding: 5rem 0 3rem;
  text-align: center;
}
.hero-minimal h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }

/* hero-mockup — text left, tilted product mockup right with float */
.hero-mockup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 6rem 0 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 1024px) {
  .hero-mockup { grid-template-columns: 1fr 1.05fr; gap: 4rem; padding: 8rem 0 6rem; }
}
.hero-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, hsl(var(--primary) / 0.18) 0px, transparent 40%),
    radial-gradient(circle at 80% 70%, hsl(var(--accent) / 0.15) 0px, transparent 40%);
  filter: blur(40px);
  z-index: -1;
}
.hero-mockup .hero-text-col { text-align: left; }
.hero-mockup h1 { text-align: left; max-width: none; }
.hero-mockup .lead { text-align: left; max-width: 32rem; margin-left: 0; }
.hero-mockup .hero-actions { justify-content: flex-start; }
.hero-mockup-frame {
  position: relative;
  border-radius: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-xl), 0 0 0 1px hsl(var(--primary) / 0.06);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
  animation: heroFloat 5.5s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  from { transform: perspective(1200px) rotateY(-8deg) rotateX(2deg) translateY(0); }
  to   { transform: perspective(1200px) rotateY(-6deg) rotateX(1deg) translateY(-10px); }
}
.hero-mockup-frame img { width: 100%; display: block; }

/* hero-bento — bento-grid hero with mixed photo/text tiles */
.hero-bento {
  padding: 5rem 0 4rem;
}
.hero-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .hero-bento-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 12rem;
    gap: 1rem;
  }
  .hero-bento-grid .tile-text { grid-column: span 2; grid-row: span 2; padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
  .hero-bento-grid .tile-photo-wide { grid-column: span 1; grid-row: span 2; }
  .hero-bento-grid .tile-stat { grid-column: span 1; grid-row: span 1; padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; }
}
.hero-bento-grid > * {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}
.hero-bento-grid .tile-photo, .hero-bento-grid .tile-photo-wide { padding: 0; }
.hero-bento-grid .tile-photo img, .hero-bento-grid .tile-photo-wide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-bento-grid .tile-text {
  background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--primary) / 0.05));
}
.hero-bento-grid .tile-stat .stat-num {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.025em;
  background: linear-gradient(135deg, hsl(var(--foreground)), hsl(var(--muted-foreground)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-bento-grid .tile-stat .stat-label {
  font-size: 0.75rem; color: hsl(var(--muted-foreground));
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* hero-marquee — text marquee top, large heading below */
.hero-marquee-strip {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  padding: 1rem 0;
  border-block: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  font-size: clamp(1.5rem, 4vw + 0.5rem, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.hero-marquee-track {
  display: flex; gap: 3rem; flex-shrink: 0;
  animation: trustScroll 30s linear infinite;
}
.hero-marquee-track > span { display: inline-flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.hero-marquee-track > span::after { content: "✦"; color: hsl(var(--primary)); font-size: 1.5rem; }

/* hero-stats-led — 4-tile stats grid AS the hero, small headline above */
.hero-stats-led {
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-stats-led h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
.hero-stats-led .stats-grid { margin-top: 3rem; }

/* hero-asymmetric — text left, photo COLLAGE right (existing collage utility) */
.hero-asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 6rem 0 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-asymmetric { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.hero-asymmetric .hero-text-col { text-align: left; }
.hero-asymmetric h1 { text-align: left; max-width: none; }
.hero-asymmetric .lead { text-align: left; max-width: 32rem; margin-left: 0; }
.hero-asymmetric .hero-actions { justify-content: flex-start; }
.hero-asymmetric .hero-collage {
  position: relative; height: 24rem; max-width: none; margin: 0;
}
.hero-asymmetric .collage-card { width: 14rem; }
.hero-asymmetric .collage-card-1 { left: 30%; top: 5%; }
.hero-asymmetric .collage-card-2 { left: 0; top: 30%; }
.hero-asymmetric .collage-card-3 { right: 0; top: 25%; }

/* ────────── PRICING ────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: hsl(var(--primary));
  box-shadow: 0 12px 36px -8px hsl(var(--primary) / 0.18);
  position: relative;
}
.pricing-card.featured::before {
  content: "Beliebt";
  position: absolute;
  top: 0; right: 1.5rem;
  transform: translateY(-50%);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
}
.pricing-name { font-size: 0.875rem; font-weight: 600; color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-price .price-period { font-size: 0.9375rem; font-weight: 400; color: hsl(var(--muted-foreground)); }
.pricing-tagline { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; line-height: 1.5; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 0.625rem; }
.pricing-features li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.9375rem; line-height: 1.4; }
.pricing-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  border-radius: 9999px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B2332' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-10'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}
.pricing-card .btn { margin-top: auto; }

/* ────────── FAQ ACCORDION ────────── */

.faq {
  max-width: 48rem;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid hsl(var(--border));
  padding-block: 1.25rem;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.0625rem;
  color: hsl(var(--foreground));
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 18px; height: 18px; flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--duration-fast) var(--ease-snap);
  opacity: 0.6;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { color: hsl(var(--primary)); }
.faq-item .faq-answer {
  margin-top: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.6;
  animation: fadeIn var(--duration) var(--ease-out);
}

/* ────────── FEATURE GRIDS ────────── */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-item { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-item .card-icon { margin-bottom: 0.5rem; }
.feature-item h3 { font-size: 1.125rem; }
.feature-item p { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; line-height: 1.55; }

/* feature-split — alternating left/right photo + text rows */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .feature-split { grid-template-columns: 1fr 1fr; gap: 4rem; padding-block: 4rem; }
  .feature-split.reverse { grid-template-columns: 1fr 1fr; }
  .feature-split.reverse .feature-split-text { grid-column: 2; grid-row: 1; }
  .feature-split.reverse .feature-split-visual { grid-column: 1; grid-row: 1; }
}
.feature-split-visual {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--accent) / 0.08));
  box-shadow: var(--shadow-md);
}
.feature-split-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-split-text h2 { margin-bottom: 1rem; }
.feature-split-text p { color: hsl(var(--muted-foreground)); font-size: 1rem; line-height: 1.6; max-width: 28rem; }

/* ────────── AUTH-FORM CARD (split layout) ────────── */

.auth-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 1024px) { .auth-layout { grid-template-columns: 1fr 1fr; } }
.auth-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 1.5rem;
  background: hsl(var(--background));
}
.auth-form-card {
  width: 100%;
  max-width: 26rem;
}
.auth-form-card h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.auth-form-card .lead { font-size: 0.9375rem; margin-bottom: 2rem; }
.auth-visual-side {
  display: none;
  position: relative;
  background: hsl(240 10% 6%);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 1024px) { .auth-visual-side { display: flex; align-items: center; justify-content: center; padding: 3rem; } }
.auth-visual-side::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, hsl(var(--primary) / 0.4) 0px, transparent 40%),
    radial-gradient(circle at 70% 70%, hsl(var(--accent) / 0.35) 0px, transparent 40%);
  filter: blur(60px);
  z-index: -1;
}
.auth-visual-side .quote {
  color: hsl(0 0% 95%);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 28rem;
}
.auth-visual-side .quote-author {
  margin-top: 1.5rem;
  color: hsl(0 0% 70%);
  font-size: 0.875rem;
}

/* ────────── LOGO CLOUD ────────── */

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  align-items: center;
  justify-items: center;
  opacity: 0.85;
}
@media (min-width: 640px) { .logo-cloud { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-cloud { grid-template-columns: repeat(6, 1fr); } }
.logo-cloud-item {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: hsl(var(--muted-foreground));
  filter: grayscale(100%);
  transition: opacity var(--duration-fast), filter var(--duration-fast), color var(--duration-fast);
}
.logo-cloud-item:hover { color: hsl(var(--foreground)); filter: grayscale(0); }

/* ────────── STATS GRID ────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-tile {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  transition: transform var(--duration) var(--ease-out), border-color var(--duration);
}
.stat-tile:hover { transform: translateY(-2px); border-color: hsl(var(--primary) / 0.3); }
.stat-tile .stat-icon {
  width: 36px; height: 36px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--primary) / 0.05));
  color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.stat-tile .stat-num { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.stat-tile .stat-label { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-top: 0.5rem; }

/* ────────── TABS ────────── */

.tabs { display: flex; flex-direction: column; gap: 1.25rem; }
.tab-list {
  display: inline-flex;
  background: hsl(var(--muted));
  border-radius: 0.5rem;
  padding: 0.25rem;
  gap: 0.125rem;
}
.tab-trigger {
  padding: 0.4rem 0.875rem;
  border-radius: 0.375rem;
  background: transparent;
  border: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-snap);
}
.tab-trigger.active, .tab-trigger[aria-selected="true"] {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-xs);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn var(--duration) var(--ease-out); }

/* ────────── BREADCRUMB ────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: hsl(var(--muted-foreground)); transition: color var(--duration-fast); }
.breadcrumb a:hover { color: hsl(var(--foreground)); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: hsl(var(--foreground)); font-weight: 500; }

/* ────────── EMPTY STATE ────────── */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 32rem;
  margin: 0 auto;
}
.empty-state .empty-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: hsl(var(--muted));
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
}
.empty-state h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.empty-state p { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; margin-bottom: 1.5rem; }

/* ────────── LOADING SKELETON ────────── */

.skeleton {
  display: block;
  background: linear-gradient(90deg,
    hsl(var(--muted)) 0%,
    hsl(var(--muted) / 0.5) 50%,
    hsl(var(--muted)) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: var(--radius);
}
.skeleton-text { height: 0.875rem; width: 100%; }
.skeleton-text-sm { height: 0.75rem; width: 60%; }
.skeleton-card { height: 12rem; }
.skeleton-circle { width: 2.5rem; height: 2.5rem; border-radius: 50%; }

/* ────────── DASHBOARD LAYOUT (sidebar + main) ────────── */

.dash-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .dash-layout { grid-template-columns: 16rem 1fr; }
}
.dash-sidebar {
  background: hsl(var(--card));
  border-right: 1px solid hsl(var(--border));
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.dash-sidebar .navbar-brand { font-size: 1rem; padding: 0.25rem 0.5rem; }
.dash-nav { display: flex; flex-direction: column; gap: 0.125rem; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: all var(--duration-fast) var(--ease-snap);
}
.dash-nav a:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.dash-nav a.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 500;
}
.dash-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.dash-main { padding: 2rem 1.5rem; }
@media (min-width: 768px) { .dash-main { padding: 2.5rem 2.5rem; } }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.dash-header h1 { font-size: 1.5rem; }

/* ────────── TOAST ────────── */

.toast-region {
  position: fixed;
  bottom: 1rem; right: 1rem;
  display: flex; flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
  pointer-events: none;
}
.toast {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.875rem 1rem;
  min-width: 18rem; max-width: 22rem;
  display: flex; align-items: flex-start; gap: 0.625rem;
  animation: fadeInUp var(--duration) var(--ease-out);
  pointer-events: auto;
}
.toast-success { border-left: 3px solid hsl(142 71% 45%); }
.toast-error { border-left: 3px solid hsl(var(--destructive)); }
.toast-info { border-left: 3px solid hsl(217 91% 60%); }
.toast-title { font-weight: 600; font-size: 0.875rem; }
.toast-desc { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }

/* ────────── TIMELINE / STEPPER ────────── */

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem; top: 0.25rem; bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(180deg, hsl(var(--primary) / 0.4), hsl(var(--accent) / 0.2));
}
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.625rem; top: 0.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: hsl(var(--background));
  border: 2px solid hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.1);
}
.timeline-item h4 { font-size: 1rem; margin-bottom: 0.375rem; }
.timeline-item p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

/* ────────── DIVIDER ────────── */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--border)) 20%, hsl(var(--border)) 80%, transparent);
  margin-block: 3rem;
  border: 0;
}

/* Section divider with label */
.divider-labeled {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: 3rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.divider-labeled::before, .divider-labeled::after {
  content: "";
  flex: 1;
  height: 1px;
  background: hsl(var(--border));
}

/* ═══════════════════════════════════════════════════════════════
 * EXTENDED LIBRARY v8 — testimonials, profiles, products, CTAs,
 * pagination, switches, modals, drawers, mega menus, code blocks,
 * progress bars, and more form controls.
 * ═══════════════════════════════════════════════════════════════ */

/* ────────── TESTIMONIAL CARDS ────────── */

.testimonial {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.875rem; left: 1.5rem;
  font-size: 4.5rem;
  line-height: 1;
  font-family: serif;
  color: hsl(var(--primary) / 0.25);
  font-weight: 700;
}
.testimonial-text { font-size: 1rem; line-height: 1.55; color: hsl(var(--foreground)); }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.testimonial-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; font-size: 0.875rem; flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 500; font-size: 0.9375rem; }
.testimonial-meta { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.testimonial-stars {
  display: inline-flex; gap: 0.125rem;
  color: hsl(38 92% 50%);
}

/* Big-quote variant (single centered testimonial) */
.testimonial-feature {
  max-width: 56rem; margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--accent) / 0.05));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
}
.testimonial-feature .testimonial-text {
  font-size: clamp(1.125rem, 1vw + 0.875rem, 1.5rem);
  font-weight: 500; line-height: 1.5;
  letter-spacing: -0.015em;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}
.testimonial-feature .testimonial-author { justify-content: center; }

/* ────────── PROFILE CARD ────────── */

.profile-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration);
}
.profile-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.profile-avatar {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem; font-weight: 600;
  position: relative;
}
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-name { font-weight: 600; font-size: 1.0625rem; }
.profile-role { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
.profile-bio { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.875rem; line-height: 1.5; }
.profile-links { display: inline-flex; gap: 0.5rem; margin-top: 1rem; }
.profile-links a { color: hsl(var(--muted-foreground)); transition: color var(--duration-fast); }
.profile-links a:hover { color: hsl(var(--foreground)); }

/* ────────── PRODUCT CARD ────────── */

.product-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration), border-color var(--duration);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: hsl(var(--primary) / 0.3); }
.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: hsl(var(--muted));
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: 0.625rem; left: 0.625rem;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 1;
}
.product-body { padding: 1rem 1.125rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.product-vendor { font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.05em; }
.product-title { font-weight: 500; font-size: 0.9375rem; line-height: 1.3; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 0.5rem; margin-top: auto; }
.product-price { font-weight: 600; font-size: 1rem; }
.product-price-old { color: hsl(var(--muted-foreground)); text-decoration: line-through; font-size: 0.8125rem; margin-right: 0.375rem; font-weight: 400; }

/* ────────── CTA VARIANTS ────────── */

.cta-banner {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.85) 60%, hsl(var(--accent) / 0.7));
  color: white;
  padding: 3rem 2rem;
  border-radius: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: white; margin-bottom: 0.75rem; }
.cta-banner p { color: hsl(0 0% 100% / 0.85); font-size: 1.0625rem; max-width: 36rem; margin: 0 auto 2rem; }
.cta-banner .btn-primary {
  background: hsl(0 0% 98%); color: hsl(var(--primary));
  font-weight: 600;
}
.cta-banner .btn-primary:hover { background: white; }
.cta-banner .btn-outline {
  background: transparent; border-color: hsl(0 0% 100% / 0.3); color: white;
}
.cta-banner .btn-outline:hover { background: hsl(0 0% 100% / 0.1); border-color: hsl(0 0% 100% / 0.5); }

.cta-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
}
@media (min-width: 768px) { .cta-split { grid-template-columns: 1.4fr 1fr; } }
.cta-split-text { padding: 2.5rem 2rem; background: hsl(var(--card)); }
.cta-split-text h2 { margin-bottom: 0.75rem; font-size: 1.5rem; }
.cta-split-text p { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.cta-split-visual {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--accent) / 0.15));
  display: flex; align-items: center; justify-content: center;
  min-height: 12rem;
  position: relative;
}

/* ────────── PAGINATION ────────── */

.pagination { display: inline-flex; gap: 0.25rem; align-items: center; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem;
  padding: 0 0.625rem;
  border-radius: var(--radius);
  background: transparent; border: 1px solid transparent;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-snap);
}
.page-btn:hover { background: hsl(var(--accent)); }
.page-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 500;
}
.page-btn:disabled { opacity: 0.4; pointer-events: none; }
.page-ellipsis { padding: 0 0.375rem; color: hsl(var(--muted-foreground)); }

/* ────────── SWITCH / TOGGLE ────────── */

.switch {
  display: inline-flex; align-items: center;
  width: 2.5rem; height: 1.375rem;
  border-radius: 9999px;
  background: hsl(var(--input));
  position: relative;
  cursor: pointer;
  transition: background var(--duration-fast);
  flex-shrink: 0;
  border: 0;
  padding: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: hsl(0 0% 100%);
  box-shadow: 0 1px 2px hsl(0 0% 0% / 0.15);
  transition: transform var(--duration-fast) var(--ease-snap);
}
.switch[aria-checked="true"], .switch.checked { background: hsl(var(--primary)); }
.switch[aria-checked="true"]::after, .switch.checked::after { transform: translateX(1.125rem); }
.switch-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; }
.switch-row .switch-label { font-size: 0.9375rem; flex: 1; }
.switch-row .switch-desc { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

/* ────────── CHECKBOX / RADIO ────────── */

.check, .radio {
  appearance: none;
  width: 1rem; height: 1rem;
  border: 1.5px solid hsl(var(--input));
  background: hsl(var(--background));
  cursor: pointer;
  transition: all var(--duration-fast);
  flex-shrink: 0;
  margin: 0;
}
.check { border-radius: 0.25rem; }
.radio { border-radius: 50%; }
.check:checked, .radio:checked {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}
.check:checked {
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-10'/%3E%3C/svg%3E");
  background-size: 70%; background-position: center; background-repeat: no-repeat;
}
.radio:checked {
  background-image: radial-gradient(circle, white 30%, hsl(var(--primary)) 35%);
}
.check-row { display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 0; cursor: pointer; }
.check-row label { font-size: 0.9375rem; cursor: pointer; user-select: none; }

/* ────────── PROGRESS BAR ────────── */

.progress {
  width: 100%; height: 0.5rem;
  background: hsl(var(--muted));
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  border-radius: inherit;
  transition: width var(--duration-slow) var(--ease-out);
}
.progress-meta { display: flex; justify-content: space-between; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.375rem; }

/* ────────── MODAL ────────── */

.modal-backdrop {
  position: fixed; inset: 0;
  background: hsl(0 0% 0% / 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn var(--duration-fast) var(--ease-out);
}
.modal {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  max-width: 28rem;
  width: 100%;
  padding: 1.5rem;
  animation: fadeInUp var(--duration) var(--ease-out);
}
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.modal-title { font-size: 1.0625rem; font-weight: 600; }
.modal-close {
  background: transparent; border: 0;
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  transition: all var(--duration-fast);
}
.modal-close:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.modal-body { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); line-height: 1.55; }
.modal-footer { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid hsl(var(--border)); }

/* ────────── DRAWER (slide-in) ────────── */

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(28rem, 100%);
  background: hsl(var(--card));
  border-left: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  z-index: 100;
  overflow-y: auto;
  animation: drawerSlide var(--duration) var(--ease-out);
}
@keyframes drawerSlide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ────────── KBD KEY ────────── */

kbd, .kbd {
  display: inline-flex; align-items: center;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-bottom-width: 2px;
  border-radius: 0.375rem;
  padding: 0.125rem 0.4rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: hsl(var(--muted-foreground));
}

/* ────────── CODE BLOCK ────────── */

pre.code, .code-block {
  background: hsl(240 10% 6%);
  color: hsl(0 0% 92%);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-x: auto;
  border: 1px solid hsl(0 0% 100% / 0.06);
}

/* ────────── AVATAR GROUP (stacked) ────────── */

.avatar-stack { display: inline-flex; }
.avatar-stack > * { margin-left: -0.5rem; border: 2px solid hsl(var(--background)); }
.avatar-stack > *:first-child { margin-left: 0; }
.avatar-sm { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 600; color: white; background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent))); }
.avatar-md { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 600; color: white; background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent))); }
.avatar-lg { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 600; color: white; background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent))); }

/* ────────── MEGA-LIST (linear-style menu) ────────── */

.mega-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.mega-list a {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--duration-fast);
  color: hsl(var(--foreground));
}
.mega-list a:hover { background: hsl(var(--accent)); }
.mega-list .mega-icon {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mega-list .mega-title { font-size: 0.875rem; font-weight: 500; }
.mega-list .mega-desc { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }

/* ────────── SEARCH BAR ────────── */

.searchbar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: hsl(var(--muted) / 0.6);
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  width: 100%; max-width: 28rem;
  transition: all var(--duration-fast);
}
.searchbar:focus-within {
  background: hsl(var(--background));
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
}
.searchbar svg { color: hsl(var(--muted-foreground)); flex-shrink: 0; }
.searchbar input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: 0;
  font-size: 0.9375rem; color: hsl(var(--foreground));
}
.searchbar input::placeholder { color: hsl(var(--muted-foreground)); }
.searchbar kbd { margin-left: auto; }

/* ────────── BANNER (announcement strip) ────────── */

.announcement-bar {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.announcement-bar a { text-decoration: underline; }

/* ────────── KPI / METRIC TILE ────────── */

.kpi {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}
.kpi-label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.625rem; }
.kpi-value { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.kpi-delta { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.8125rem; margin-top: 0.625rem; }
.kpi-delta.up { color: hsl(142 71% 45%); }
.kpi-delta.down { color: hsl(var(--destructive)); }

/* ────────── SLIDER (horizontal scroll snap) ────────── */

.scroll-row {
  display: flex; gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1.5rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.scroll-row > * { scroll-snap-align: start; flex: 0 0 auto; min-width: 16rem; }
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 3px; }

/* ────────── CALLOUT (info card) ────────── */

.callout {
  display: flex; gap: 0.875rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.4);
  align-items: flex-start;
}
.callout-icon {
  width: 1.875rem; height: 1.875rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.callout-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.callout-text { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.5; }

/* ────────── TAG INPUT (chip with remove) ────────── */

.tag {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.tag-remove {
  background: transparent; border: 0; padding: 0;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.tag-remove:hover { background: hsl(0 0% 0% / 0.1); color: hsl(var(--foreground)); }

/* ═══════════════════════════════════════════════════════════════
 * EXTENDED LIBRARY v9 — footer variants, more cards, more sections
 * ═══════════════════════════════════════════════════════════════ */

/* ────────── FOOTER VARIANTS ────────── */

/* footer-minimal — single line, centered, no bg */
.footer-minimal {
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 0;
  margin-top: 4rem;
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
}
.footer-minimal::before, .footer-minimal::after { content: none; }
.footer-minimal .container { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
@media (min-width: 768px) { .footer-minimal .container { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-minimal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-minimal-links a { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.footer-minimal-links a:hover { color: hsl(var(--foreground)); }

/* footer-mega — 6-column with category headers + newsletter rail */
.footer-mega {
  position: relative;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border-top: 1px solid hsl(var(--border));
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}
.footer-mega::before, .footer-mega::after { content: none; }
.footer-mega .footer-mega-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px)  { .footer-mega .footer-mega-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-mega .footer-mega-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; } }
.footer-mega .footer-col h4 { color: hsl(var(--foreground)); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; }
.footer-mega .footer-col a { color: hsl(var(--muted-foreground)); }
.footer-mega .footer-col a:hover { color: hsl(var(--foreground)); }
.footer-mega .footer-bottom { color: hsl(var(--muted-foreground)); border-color: hsl(var(--border)); }

/* footer-brand — large brand mark + tagline + minimal links */
.footer-brand-led {
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}
.footer-brand-led::before, .footer-brand-led::after { content: none; }
.footer-brand-led .footer-brand-row {
  display: flex; flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-brand-led .footer-brand-row { flex-direction: row; justify-content: space-between; text-align: left; align-items: flex-end; }
}
.footer-brand-led .footer-brand-mark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}
.footer-brand-led .footer-brand-tagline {
  font-size: 1rem; color: hsl(var(--muted-foreground));
  max-width: 24rem;
  margin-top: 0.75rem;
}
.footer-brand-led .footer-brand-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-brand-led .footer-brand-links a { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }
.footer-brand-led .footer-brand-links a:hover { color: hsl(var(--foreground)); }
.footer-brand-led .footer-bottom { margin-top: 3rem; color: hsl(var(--muted-foreground)); border-color: hsl(var(--border)); }

/* footer-cta — full-bleed CTA stripe before classic footer columns */
.footer-cta {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
  border-radius: 1.5rem 1.5rem 0 0;
  margin-top: 5rem;
}
.footer-cta h2 { color: white; margin-bottom: 0.75rem; }
.footer-cta p { color: hsl(0 0% 100% / 0.85); max-width: 32rem; margin: 0 auto 2rem; }
.footer-cta .btn { background: white; color: hsl(var(--primary)); font-weight: 600; }
.footer-cta .btn:hover { opacity: 0.95; }

/* footer-light — cream-themed footer (warm, not dark) */
.footer-light {
  background: linear-gradient(180deg, hsl(var(--muted) / 0.4), hsl(var(--muted) / 0.6));
  color: hsl(var(--foreground));
  border-top: 1px solid hsl(var(--border));
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-light::before, .footer-light::after { content: none; }
.footer-light .footer-grid { color: hsl(var(--foreground)); }
.footer-light .footer-col h4 { color: hsl(var(--foreground)); }
.footer-light .footer-col a { color: hsl(var(--muted-foreground)); }
.footer-light .footer-col a:hover { color: hsl(var(--foreground)); }
.footer-light .footer-bottom { color: hsl(var(--muted-foreground)); border-color: hsl(var(--border)); }
.footer-light .footer-social a {
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  border-color: hsl(var(--border));
}
.footer-light .footer-social a:hover { background: hsl(var(--primary)); color: white; border-color: hsl(var(--primary)); }

/* ────────── MORE CARD VARIANTS ────────── */

/* blog-post-card — feature image + meta + title + excerpt */
.blog-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--duration), box-shadow var(--duration), border-color var(--duration);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: hsl(var(--primary) / 0.25); }
.blog-card-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: hsl(var(--muted)); }
.blog-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.blog-card-meta { display: flex; gap: 0.75rem; align-items: center; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.blog-card-meta .blog-date::before { content: "·"; margin-right: 0.5rem; }
.blog-card-title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.blog-card-excerpt { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); line-height: 1.5; }
.blog-card-author { display: flex; align-items: center; gap: 0.625rem; margin-top: auto; padding-top: 0.875rem; border-top: 1px solid hsl(var(--border) / 0.6); }
.blog-card-author-name { font-size: 0.8125rem; font-weight: 500; }

/* event-card — date-block on left, event details on right */
.event-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  display: flex;
  overflow: hidden;
  transition: transform var(--duration), box-shadow var(--duration);
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.event-date-block {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--accent) / 0.05));
  padding: 1.25rem 1rem;
  border-right: 1px solid hsl(var(--border));
  text-align: center;
  min-width: 5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.event-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: hsl(var(--primary)); font-weight: 600; }
.event-day { font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -0.025em; }
.event-time { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
.event-body { padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.375rem; }
.event-title { font-weight: 600; font-size: 1rem; }
.event-meta { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); display: flex; gap: 0.5rem; align-items: center; }

/* feature-card-large — icon + headline + 2-paragraph description, more padding */
.feature-card-lg {
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  position: relative;
  transition: transform var(--duration), box-shadow var(--duration);
}
.feature-card-lg:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card-lg .card-icon { width: 56px; height: 56px; }
.feature-card-lg h3 { font-size: 1.25rem; margin-top: 1.25rem; margin-bottom: 0.75rem; }
.feature-card-lg p { color: hsl(var(--muted-foreground)); line-height: 1.55; font-size: 0.9375rem; }

/* compare-card — feature comparison row (with checkmark / cross) */
.compare-row {
  display: grid;
  grid-template-columns: 1fr repeat(3, 5rem);
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  align-items: center;
  font-size: 0.9375rem;
}
.compare-row.head { font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); }
.compare-yes { color: hsl(142 71% 45%); text-align: center; }
.compare-no { color: hsl(var(--muted-foreground) / 0.5); text-align: center; }

/* ────────── HERO MARKETING VARIANTS (more) ────────── */

/* hero-glow — minimal centered + animated radial glow */
.hero-glow {
  position: relative;
  padding: 7rem 0 5rem;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-glow::before {
  content: "";
  position: absolute;
  width: 60%; aspect-ratio: 1;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, hsl(var(--primary) / 0.45) 0px, transparent 60%);
  filter: blur(60px);
  z-index: -1;
  animation: pulseGrow 5s ease-in-out infinite alternate;
}
@keyframes pulseGrow {
  from { transform: translate(-50%, -50%) scale(0.85); opacity: 0.7; }
  to   { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
.hero-glow h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); font-weight: 700; }

/* hero-grid-bg — animated grid pattern background */
.hero-grid-bg {
  position: relative;
  padding: 6rem 0 4rem;
  text-align: center;
  isolation: isolate;
}
.hero-grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, hsl(var(--border) / 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border) / 0.5) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 80%);
  z-index: -1;
}

/* hero-noise — text on noise+gradient background */
.hero-noise {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--accent) / 0.08));
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  isolation: isolate;
}
.hero-noise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  z-index: -1;
  mix-blend-mode: overlay;
}

/* ────────── MORE SECTIONS ────────── */

/* feature-row — alternating split sections (use for "how it works") */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: 3rem;
}
@media (min-width: 1024px) { .feature-row { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; } }
.feature-row-text h2 { margin-bottom: 1rem; }
.feature-row-text p { color: hsl(var(--muted-foreground)); font-size: 1rem; line-height: 1.6; max-width: 32rem; }
.feature-row-visual {
  border-radius: 1rem; overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--accent) / 0.08));
  box-shadow: var(--shadow-md);
}

/* integration-grid — small logo tiles for tools/integrations */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .integration-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .integration-grid { grid-template-columns: repeat(6, 1fr); } }
.integration-tile {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: all var(--duration-fast);
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
}
.integration-tile:hover {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-2px);
}
.integration-tile .integration-icon {
  width: 32px; height: 32px;
  background: hsl(var(--muted));
  border-radius: 0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--foreground));
}

/* mega-cta — animated, big, attention-grabbing */
.mega-cta {
  position: relative;
  padding: 5rem 2rem;
  background: hsl(240 10% 6%);
  color: white;
  border-radius: 1.5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.mega-cta::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, hsl(var(--primary) / 0.5) 0px, transparent 40%),
    radial-gradient(circle at 80% 70%, hsl(var(--accent) / 0.4) 0px, transparent 40%),
    radial-gradient(circle at 50% 50%, hsl(var(--tertiary) / 0.3) 0px, transparent 35%);
  filter: blur(50px);
  z-index: -1;
  animation: blobDrift 18s ease-in-out infinite alternate;
}
.mega-cta h2 { color: white; font-size: clamp(2rem, 3vw + 1rem, 3.25rem); margin-bottom: 1rem; }
.mega-cta p { color: hsl(0 0% 80%); font-size: 1.125rem; max-width: 36rem; margin: 0 auto 2.5rem; }
.mega-cta .btn-primary { background: white; color: hsl(var(--primary)); font-weight: 600; }
.mega-cta .btn-primary:hover { background: hsl(0 0% 95%); }
.mega-cta .btn-outline { background: transparent; border-color: hsl(0 0% 100% / 0.3); color: white; }
.mega-cta .btn-outline:hover { background: hsl(0 0% 100% / 0.1); }

/* divider-fancy — labeled with icon */
.divider-fancy {
  display: flex; align-items: center; gap: 1rem;
  margin-block: 4rem;
}
.divider-fancy::before, .divider-fancy::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--border)) 50%, transparent);
}
.divider-fancy-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.1));
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--primary));
}

/* ────────── MEMBER / SOCIAL CARDS ────────── */

.member-card {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--duration), box-shadow var(--duration);
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.member-cover {
  height: 5rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
}
.member-body { padding: 0 1.25rem 1.25rem; margin-top: -1.5rem; position: relative; }
.member-avatar {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 3px solid hsl(var(--card));
  background: hsl(var(--muted));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; color: white;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
}
.member-name { font-weight: 600; font-size: 1rem; margin-top: 0.5rem; }
.member-role { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.member-stats { display: flex; gap: 1rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid hsl(var(--border)); font-size: 0.8125rem; }
.member-stats > div { color: hsl(var(--muted-foreground)); }
.member-stats > div strong { color: hsl(var(--foreground)); font-weight: 600; }

/* notification-card — stacked notification with timestamp + actions */
.notification-card {
  display: flex; gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  align-items: flex-start;
  transition: background var(--duration-fast);
}
.notification-card:hover { background: hsl(var(--muted) / 0.4); }
.notification-card.unread { background: hsl(var(--primary) / 0.04); }
.notification-card.unread::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 8px;
}
.notification-icon {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: hsl(var(--accent));
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notification-body { flex: 1; min-width: 0; }
.notification-title { font-size: 0.875rem; font-weight: 500; }
.notification-text { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }
.notification-time { font-size: 0.75rem; color: hsl(var(--muted-foreground)); white-space: nowrap; }

/* ────────── FORM EXTRAS ────────── */

/* file upload dropzone */
.dropzone {
  border: 2px dashed hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  background: hsl(var(--muted) / 0.3);
  transition: border-color var(--duration), background var(--duration);
  cursor: pointer;
}
.dropzone:hover, .dropzone.active { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.04); }
.dropzone-icon {
  width: 3rem; height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
}
.dropzone-text { font-size: 0.9375rem; color: hsl(var(--foreground)); margin-bottom: 0.25rem; }
.dropzone-hint { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

/* multi-step indicator */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}
.steps-step {
  display: flex; align-items: center; gap: 0.625rem;
  flex: 1;
  position: relative;
}
.steps-step:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: hsl(var(--border));
  margin-left: 0.75rem;
}
.steps-step.complete:not(:last-child)::after { background: hsl(var(--primary)); }
.steps-num {
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--background));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 600;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}
.steps-step.active .steps-num { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.steps-step.complete .steps-num { background: hsl(var(--primary)); color: white; border-color: hsl(var(--primary)); }
.steps-label { font-size: 0.8125rem; font-weight: 500; color: hsl(var(--muted-foreground)); white-space: nowrap; }
.steps-step.active .steps-label, .steps-step.complete .steps-label { color: hsl(var(--foreground)); }

/* ────────── CHART PLACEHOLDERS ────────── */

.chart-placeholder {
  background: hsl(var(--muted) / 0.4);
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  height: 12rem;
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* sparkline-line (svg-friendly container) */
.sparkline-tile {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.sparkline-tile .stat-num { font-size: 1.25rem; }
.sparkline-svg { width: 80px; height: 28px; flex-shrink: 0; }

/* ────────── ICON BADGE (label with leading icon-circle) ────────── */

.icon-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.375rem;
  border-radius: 9999px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  font-size: 0.8125rem;
  font-weight: 500;
}
.icon-badge .ib-icon {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
 * EXTENDED LIBRARY v10 — CTA arsenal + profile-edit / account forms
 * ═══════════════════════════════════════════════════════════════ */

/* ────────── CTA — INLINE NEWSLETTER ────────── */
.cta-inline {
  display: flex; flex-direction: column;
  gap: 1rem;
  padding: 2.5rem 1.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-inline { flex-direction: row; text-align: left; padding: 1.5rem 2rem; }
  .cta-inline .cta-inline-text { flex: 1; }
}
.cta-inline h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.cta-inline p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; margin: 0; }
.cta-inline form { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ────────── CTA — WITH-FORM (text left, form right) ────────── */
.cta-form {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--accent) / 0.05));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
}
@media (min-width: 1024px) { .cta-form { grid-template-columns: 1.2fr 1fr; gap: 3rem; padding: 3.5rem; align-items: center; } }
.cta-form-text h2 { margin-bottom: 0.75rem; }
.cta-form-text p { color: hsl(var(--muted-foreground)); margin: 0; max-width: 28rem; }
.cta-form-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* ────────── CTA — TRIAL SIGNUP STRIP ────────── */
.cta-trial {
  background: hsl(240 10% 6%);
  color: white;
  padding: 4rem 2rem;
  border-radius: 1rem;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cta-trial::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(hsl(0 0% 100% / 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: -1;
}
.cta-trial::after {
  content: "";
  position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 30% 50%, hsl(var(--primary) / 0.4) 0px, transparent 35%),
    radial-gradient(circle at 70% 50%, hsl(var(--accent) / 0.35) 0px, transparent 35%);
  filter: blur(60px);
  z-index: -2;
}
.cta-trial h2 { color: white; }
.cta-trial p { color: hsl(0 0% 80%); max-width: 36rem; margin: 0.75rem auto 2rem; }
.cta-trial .cta-trial-badges { display: inline-flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; font-size: 0.8125rem; color: hsl(0 0% 75%); }
.cta-trial .cta-trial-badges > span { display: inline-flex; align-items: center; gap: 0.375rem; }
.cta-trial .cta-trial-badges svg { color: hsl(142 71% 55%); }

/* ────────── CTA — APP DOWNLOAD ────────── */
.cta-app {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding: 3rem 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  align-items: center;
}
@media (min-width: 1024px) { .cta-app { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem; } }
.cta-app-text h2 { margin-bottom: 0.75rem; }
.cta-app-text p { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.cta-app-stores { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.app-store-btn {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.625rem 1rem;
  background: hsl(240 10% 6%);
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity var(--duration-fast);
}
.app-store-btn:hover { opacity: 0.85; }
.app-store-btn .store-eyebrow { font-size: 0.6875rem; opacity: 0.7; line-height: 1; }
.app-store-btn .store-name { font-weight: 600; line-height: 1.2; }

/* ────────── CTA — DEMO BOOKING (calendar slot) ────────── */
.cta-demo {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding: 2.5rem 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  align-items: center;
}
@media (min-width: 1024px) { .cta-demo { grid-template-columns: 1.2fr 1fr; gap: 3rem; padding: 3rem; } }
.cta-demo-slots { display: flex; flex-direction: column; gap: 0.5rem; }
.cta-demo-slot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.cta-demo-slot:hover { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.04); }
.cta-demo-slot.selected { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.08); }
.cta-demo-slot .slot-time { font-weight: 500; }
.cta-demo-slot .slot-meta { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ────────── CTA — DISCOUNT CODE ────────── */
.cta-discount {
  background: linear-gradient(135deg, hsl(var(--tertiary) / 0.18), hsl(var(--primary) / 0.12));
  border: 2px dashed hsl(var(--tertiary));
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
}
.cta-discount-code {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.9375rem;
  margin-block: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.cta-discount-code button {
  background: hsl(var(--muted));
  border: 0;
  border-radius: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--duration-fast);
}
.cta-discount-code button:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* ────────── CTA — COUNTDOWN STRIP ────────── */
.cta-countdown {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding: 2.5rem 2rem;
  background: hsl(240 10% 6%);
  color: white;
  border-radius: 1rem;
  align-items: center;
}
@media (min-width: 1024px) { .cta-countdown { grid-template-columns: 1.2fr 1fr; gap: 3rem; padding: 3rem; } }
.cta-countdown h2 { color: white; margin-bottom: 0.75rem; }
.cta-countdown p { color: hsl(0 0% 75%); margin: 0; }
.countdown-timer { display: flex; gap: 1rem; justify-content: center; }
.countdown-cell {
  background: hsl(0 0% 100% / 0.06);
  border: 1px solid hsl(0 0% 100% / 0.1);
  border-radius: var(--radius);
  padding: 1rem 0.875rem;
  min-width: 4.5rem;
  text-align: center;
}
.countdown-num { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1; font-family: var(--font-mono); }
.countdown-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: hsl(0 0% 70%); margin-top: 0.375rem; }

/* ────────── CTA — TESTIMONIAL-LED ────────── */
.cta-quote {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.06), hsl(var(--accent) / 0.06));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  align-items: center;
}
@media (min-width: 1024px) { .cta-quote { grid-template-columns: 1.4fr 1fr; gap: 3rem; padding: 4rem; } }
.cta-quote-text { font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.625rem); font-weight: 500; line-height: 1.45; letter-spacing: -0.015em; }
.cta-quote-text::before { content: "\201C"; font-family: serif; font-size: 3rem; color: hsl(var(--primary) / 0.3); line-height: 0; vertical-align: -0.4em; margin-right: 0.25rem; }

/* ────────── CTA — STICKY FLOATING (bottom-right) ────────── */
.cta-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 0.875rem;
  z-index: 50;
  max-width: 22rem;
  animation: fadeInUp var(--duration-slow) var(--ease-out);
}
.cta-float-text { font-size: 0.875rem; flex: 1; }
.cta-float-text strong { display: block; margin-bottom: 0.125rem; }
.cta-float-close {
  background: transparent; border: 0; color: hsl(var(--muted-foreground));
  cursor: pointer; padding: 0.25rem; border-radius: 0.25rem;
}
.cta-float-close:hover { background: hsl(var(--muted)); }

/* ────────── CTA — RSVP / EVENT ────────── */
.cta-event {
  display: flex; gap: 1.5rem;
  padding: 1.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  align-items: center;
}
.cta-event .event-date-block { padding: 1rem 1.25rem; min-width: 5.5rem; }
.cta-event-body { flex: 1; }
.cta-event-body h3 { font-size: 1.0625rem; margin-bottom: 0.375rem; }
.cta-event-body p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; margin-bottom: 0.875rem; }
.cta-event-actions { display: flex; gap: 0.5rem; }

/* ════════════════════════════════════════════════════════════════
 * ACCOUNT / PROFILE SETTINGS
 * ════════════════════════════════════════════════════════════════ */

/* ────────── SETTINGS LAYOUT (sidebar + main) ────────── */
.settings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .settings-layout { grid-template-columns: 14rem 1fr; gap: 3rem; } }

.settings-nav { display: flex; flex-direction: column; gap: 0.125rem; position: sticky; top: 5rem; }
.settings-nav a {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: all var(--duration-fast);
}
.settings-nav a:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.settings-nav a.active {
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
  font-weight: 500;
}
.settings-nav a svg { width: 14px; height: 14px; flex-shrink: 0; }

.settings-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid hsl(var(--border));
}
.settings-section:last-child { border-bottom: 0; padding-bottom: 0; }
.settings-section h2 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.settings-section .section-desc { color: hsl(var(--muted-foreground)); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* ────────── AVATAR UPLOAD ────────── */
.avatar-upload {
  display: flex; gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.3);
}
.avatar-upload-img {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 600;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.avatar-upload-img img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-meta { flex: 1; min-width: 0; }
.avatar-upload-meta .small { display: block; }

/* ────────── DANGER ZONE ────────── */
.danger-zone {
  border: 1px solid hsl(var(--destructive) / 0.3);
  background: hsl(var(--destructive) / 0.04);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.danger-zone h3 { color: hsl(var(--destructive)); font-size: 1rem; }
.danger-zone p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-block: 0.5rem 1rem; }

/* ────────── KEY/VALUE LIST (settings rows) ────────── */
.kv-list { display: flex; flex-direction: column; gap: 0; }
.kv-row {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
}
.kv-row:last-child { border-bottom: 0; }
.kv-key { flex: 1; min-width: 0; }
.kv-key strong { display: block; font-size: 0.9375rem; font-weight: 500; }
.kv-key small { display: block; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; line-height: 1.5; }
.kv-value { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* ────────── LINKED-ACCOUNT TILE ────────── */
.linked-account {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  margin-bottom: 0.5rem;
}
.linked-account-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  background: hsl(var(--muted));
  display: inline-flex; align-items: center; justify-content: center;
}
.linked-account-body { flex: 1; min-width: 0; }
.linked-account-name { font-size: 0.9375rem; font-weight: 500; }
.linked-account-meta { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }

/* ────────── API KEY ROW ────────── */
.apikey-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}
.apikey-row .key-name { flex-shrink: 0; font-family: var(--font-sans); font-weight: 500; min-width: 6rem; }
.apikey-row .key-value { flex: 1; min-width: 0; color: hsl(var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apikey-row .key-status { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
 * EXTENDED LIBRARY v11 — admin dashboards, e-commerce, auth, popups
 * ═══════════════════════════════════════════════════════════════ */

/* ────────── ADMIN DASHBOARD — TOPBAR ────────── */
.admin-topbar {
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.625rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.admin-topbar-search { flex: 1; max-width: 24rem; }
.admin-topbar-actions { display: flex; gap: 0.5rem; align-items: center; margin-left: auto; }
.admin-bell-btn {
  position: relative;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--radius);
  background: transparent; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all var(--duration-fast);
}
.admin-bell-btn:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.admin-bell-dot {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 0.5rem; height: 0.5rem;
  background: hsl(var(--destructive));
  border: 2px solid hsl(var(--card));
  border-radius: 50%;
}

/* ────────── ADMIN — METRIC ROW (stats + chart side-by-side) ────────── */
.admin-metric-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 768px) { .admin-metric-grid { grid-template-columns: repeat(4, 1fr); } }

/* ────────── ADMIN — CHART CARD ────────── */
.chart-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}
.chart-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.25rem; }
.chart-card-title { font-weight: 600; font-size: 1rem; }
.chart-card-subtitle { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }
.chart-bars { display: flex; align-items: flex-end; gap: 0.375rem; height: 8rem; padding-top: 0.5rem; }
.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, hsl(var(--primary)), hsl(var(--primary) / 0.5));
  border-radius: 0.25rem 0.25rem 0 0;
  position: relative;
  transition: opacity var(--duration-fast);
}
.chart-bar:hover { opacity: 0.85; }
.chart-bar-label { position: absolute; bottom: -1.5rem; left: 0; right: 0; text-align: center; font-size: 0.6875rem; color: hsl(var(--muted-foreground)); }
.chart-axis { display: flex; justify-content: space-between; padding: 0 0.25rem; margin-top: 1.5rem; font-size: 0.6875rem; color: hsl(var(--muted-foreground)); }

/* ────────── ADMIN — RECENT ACTIVITY FEED ────────── */
.activity-feed { display: flex; flex-direction: column; }
.activity-row {
  display: flex; gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
  align-items: flex-start;
}
.activity-row:last-child { border-bottom: 0; }
.activity-icon {
  width: 1.875rem; height: 1.875rem;
  border-radius: 50%;
  background: hsl(var(--muted));
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
}
.activity-icon.success { background: hsl(142 71% 45% / 0.15); color: hsl(142 71% 45%); }
.activity-icon.warning { background: hsl(38 92% 50% / 0.15); color: hsl(38 92% 50%); }
.activity-icon.error { background: hsl(var(--destructive) / 0.15); color: hsl(var(--destructive)); }
.activity-body { flex: 1; min-width: 0; }
.activity-text { font-size: 0.875rem; line-height: 1.45; }
.activity-text strong { font-weight: 500; }
.activity-time { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }

/* ────────── ADMIN — DATA-TABLE-V2 (with filters + selection) ────────── */
.dt-toolbar {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.875rem 0;
  flex-wrap: wrap;
}
.dt-toolbar .searchbar { max-width: 18rem; }
.dt-row-actions { display: flex; gap: 0.25rem; }
.dt-action-btn {
  width: 2rem; height: 2rem;
  border-radius: 0.375rem;
  background: transparent; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.dt-action-btn:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }

/* ────────── ADMIN — QUICK ACTIONS (4-tile dashboard top) ────────── */
.quick-actions {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
@media (min-width: 768px) { .quick-actions { grid-template-columns: repeat(4, 1fr); } }
.qa-tile {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.125rem;
  display: flex; flex-direction: column; gap: 0.625rem;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.qa-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: hsl(var(--primary) / 0.3); }
.qa-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--primary) / 0.05));
  color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
}
.qa-tile h4 { font-size: 0.9375rem; font-weight: 600; }
.qa-tile p { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

/* ════════════════════════════════════════════════════════════════
 * E-COMMERCE / CART / CHECKOUT
 * ════════════════════════════════════════════════════════════════ */

/* ────────── CART ITEM ROW ────────── */
.cart-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
  align-items: center;
}
.cart-item-img {
  width: 4.5rem; height: 4.5rem;
  border-radius: var(--radius);
  background: hsl(var(--muted));
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { min-width: 0; }
.cart-item-vendor { font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.04em; }
.cart-item-title { font-weight: 500; font-size: 0.9375rem; margin-block: 0.25rem; }
.cart-item-meta { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.cart-item-price { font-weight: 600; font-size: 0.9375rem; }
.cart-qty {
  display: inline-flex; align-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-qty button {
  width: 1.875rem; height: 1.875rem;
  background: transparent; border: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
}
.cart-qty button:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.cart-qty input {
  width: 2.25rem; height: 1.875rem;
  border: 0; border-left: 1px solid hsl(var(--border)); border-right: 1px solid hsl(var(--border));
  text-align: center; font-size: 0.875rem; font-weight: 500;
  background: transparent;
}
.cart-remove {
  font-size: 0.75rem; color: hsl(var(--muted-foreground));
  background: transparent; border: 0;
  cursor: pointer;
}
.cart-remove:hover { color: hsl(var(--destructive)); }

/* ────────── CART SUMMARY ────────── */
.cart-summary {
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky; top: 5rem;
}
.cart-summary h3 { font-size: 1rem; margin-bottom: 1rem; }
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.875rem;
  padding: 0.375rem 0;
}
.cart-summary-row.total { font-weight: 600; font-size: 1rem; padding-top: 0.875rem; margin-top: 0.5rem; border-top: 1px solid hsl(var(--border)); }
.cart-summary-row .muted { color: hsl(var(--muted-foreground)); }
.cart-summary .btn { width: 100%; margin-top: 1.25rem; }

/* ────────── CART DRAWER (mini cart) ────────── */
.minicart {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(26rem, 100%);
  background: hsl(var(--card));
  border-left: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-xl);
  z-index: 100;
  display: flex; flex-direction: column;
  animation: drawerSlide var(--duration) var(--ease-out);
}
.minicart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
}
.minicart-body { flex: 1; overflow-y: auto; padding: 0 1.25rem; }
.minicart-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 1.25rem;
  background: hsl(var(--muted) / 0.3);
}

/* ────────── CHECKOUT — STEP HEADER + PAYMENT METHODS ────────── */
.payment-method {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  cursor: pointer;
  transition: all var(--duration-fast);
  margin-bottom: 0.5rem;
}
.payment-method:hover { border-color: hsl(var(--primary) / 0.5); }
.payment-method.selected { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.04); }
.payment-method-radio {
  width: 1rem; height: 1rem;
  border: 1.5px solid hsl(var(--input));
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.payment-method.selected .payment-method-radio { border-color: hsl(var(--primary)); }
.payment-method.selected .payment-method-radio::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: hsl(var(--primary));
}
.payment-method-icon {
  width: 2.25rem; height: 1.5rem;
  border-radius: 0.25rem;
  background: hsl(var(--muted));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 600; color: hsl(var(--foreground));
  flex-shrink: 0;
}
.payment-method-name { font-weight: 500; font-size: 0.9375rem; flex: 1; }
.payment-method-meta { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ────────── ORDER CONFIRMATION ────────── */
.order-confirm {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 36rem;
  margin: 0 auto;
}
.order-confirm-icon {
  width: 4rem; height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: hsl(142 71% 45% / 0.15);
  color: hsl(142 71% 45%);
  display: inline-flex; align-items: center; justify-content: center;
}
.order-confirm h1 { font-size: 1.875rem; margin-bottom: 0.75rem; }
.order-confirm p { color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }
.order-confirm-summary {
  text-align: left;
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

/* ────────── INVOICE / RECEIPT ────────── */
.receipt {
  max-width: 36rem; margin: 0 auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  font-family: var(--font-sans);
}
.receipt-header { border-bottom: 2px solid hsl(var(--foreground)); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.receipt-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.receipt-line {
  display: grid; grid-template-columns: 3rem 1fr 5rem 4rem 5rem;
  gap: 0.75rem; align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.875rem;
}
.receipt-totals { padding-top: 1rem; }

/* ════════════════════════════════════════════════════════════════
 * AUTH / LOGIN UI
 * ════════════════════════════════════════════════════════════════ */

/* ────────── AUTH CARD (centered) ────────── */
.auth-card {
  max-width: 26rem; margin: 0 auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-md);
}
.auth-card .auth-brand {
  display: flex; justify-content: center; margin-bottom: 1.5rem;
}
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 0.5rem; }
.auth-card .auth-subtitle { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); text-align: center; margin-bottom: 2rem; }
.auth-card .auth-divider {
  display: flex; align-items: center; gap: 0.875rem;
  margin-block: 1.5rem;
  color: hsl(var(--muted-foreground)); font-size: 0.75rem;
}
.auth-card .auth-divider::before, .auth-card .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: hsl(var(--border));
}
.auth-card .auth-footer {
  text-align: center; font-size: 0.875rem; color: hsl(var(--muted-foreground));
  margin-top: 1.5rem;
}
.auth-card .auth-footer a { color: hsl(var(--primary)); font-weight: 500; }

/* ────────── SOCIAL LOGIN BUTTONS ────────── */
.btn-social {
  width: 100%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.btn-social:hover { background: hsl(var(--muted)); }
.btn-google::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M44.5 20H24v8.5h11.8C34.7 33.7 30 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 6 1.1 8.3 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z'/%3E%3C/svg%3E") center/contain no-repeat; flex-shrink: 0; }
.btn-apple::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.94-3.08.42-1.09-.55-2.09-.58-3.24 0-1.44.71-2.23.51-3.1-.42C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E") center/contain no-repeat; flex-shrink: 0; }
.btn-github::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 0C5.37 0 0 5.37 0 12c0 5.3 3.44 9.8 8.21 11.39.6.11.82-.26.82-.58 0-.29-.01-1.04-.02-2.05-3.34.73-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.09-.74.08-.73.08-.73 1.21.09 1.84 1.24 1.84 1.24 1.07 1.84 2.81 1.31 3.5 1 .11-.78.42-1.31.76-1.61-2.66-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.13-.3-.54-1.52.11-3.18 0 0 1.01-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.29-1.55 3.3-1.23 3.3-1.23.66 1.66.25 2.88.12 3.18.77.84 1.24 1.91 1.24 3.22 0 4.61-2.81 5.62-5.48 5.92.43.37.81 1.1.81 2.22 0 1.6-.01 2.89-.01 3.29 0 .32.21.7.83.58A12 12 0 0 0 24 12c0-6.63-5.37-12-12-12z'/%3E%3C/svg%3E") center/contain no-repeat; flex-shrink: 0; }

/* ────────── OTP / 2FA INPUT ────────── */
.otp-group { display: flex; gap: 0.5rem; justify-content: center; }
.otp-cell {
  width: 3rem; height: 3.5rem;
  border: 1.5px solid hsl(var(--input));
  border-radius: var(--radius);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: hsl(var(--background));
  transition: border-color var(--duration-fast);
}
.otp-cell:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15); }

/* ────────── MAGIC LINK CARD ────────── */
.magic-link-card {
  text-align: center; padding: 2rem 1.5rem;
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.magic-link-card .ml-icon {
  width: 3rem; height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ════════════════════════════════════════════════════════════════
 * POPUP / MODAL TEMPLATES
 * ════════════════════════════════════════════════════════════════ */

/* ────────── POPUP — WELCOME (with image left) ────────── */
.popup-welcome {
  display: grid; grid-template-columns: 1fr;
  background: hsl(var(--card));
  border-radius: 1rem;
  overflow: hidden;
  max-width: 38rem;
  width: 100%;
  box-shadow: var(--shadow-xl);
}
@media (min-width: 640px) { .popup-welcome { grid-template-columns: 1fr 1fr; } }
.popup-welcome-img {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--accent) / 0.15));
  min-height: 12rem;
  position: relative;
  overflow: hidden;
}
.popup-welcome-img img { width: 100%; height: 100%; object-fit: cover; }
.popup-welcome-body { padding: 2rem 1.75rem; }
.popup-welcome-body h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.popup-welcome-body p { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; margin-bottom: 1.5rem; }

/* ────────── POPUP — NEWSLETTER ────────── */
.popup-newsletter {
  max-width: 28rem; padding: 2rem;
  background: hsl(var(--card));
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.popup-newsletter h2 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.popup-newsletter p { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; font-size: 0.9375rem; }

/* ────────── POPUP — COOKIE CONSENT ────────── */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 60;
  display: flex; flex-direction: column; gap: 1rem;
  align-items: flex-start;
  max-width: 32rem;
}
@media (min-width: 768px) { .cookie-banner { flex-direction: row; align-items: center; } }
.cookie-banner-text { flex: 1; font-size: 0.875rem; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.cookie-banner-text strong { color: hsl(var(--foreground)); }
.cookie-banner-actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }

/* ────────── POPUP — EXIT INTENT ────────── */
.popup-exit {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.85));
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  max-width: 32rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  isolation: isolate;
}
.popup-exit::before {
  content: "";
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 20% 30%, hsl(var(--accent) / 0.4) 0px, transparent 40%);
  filter: blur(40px);
  z-index: -1;
}
.popup-exit h2 { color: white; font-size: 1.75rem; }
.popup-exit p { color: hsl(0 0% 95%); margin-block: 0.75rem 1.5rem; }
.popup-exit-discount {
  display: inline-block;
  background: hsl(0 0% 100% / 0.15);
  border: 1.5px dashed hsl(0 0% 100% / 0.4);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* ────────── POPUP — GEWINNSPIEL / CONTEST ────────── */
.popup-contest {
  max-width: 32rem; padding: 2.5rem 2rem;
  background: linear-gradient(135deg, hsl(var(--tertiary) / 0.1), hsl(var(--primary) / 0.08));
  border: 1px solid hsl(var(--tertiary) / 0.3);
  border-radius: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.popup-contest::before {
  content: "🎁";
  position: absolute; top: -1rem; left: 50%; transform: translateX(-50%);
  font-size: 4rem;
  opacity: 0.2;
}
.popup-contest .contest-prize {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: hsl(var(--tertiary));
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.popup-contest h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.popup-contest p { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.popup-contest-stats {
  display: flex; gap: 1.5rem; justify-content: center;
  margin-block: 1rem;
  font-size: 0.8125rem; color: hsl(var(--muted-foreground));
}
.popup-contest-stats > span { display: inline-flex; align-items: center; gap: 0.375rem; }

/* ────────── POPUP — VOUCHER REVEAL ────────── */
.popup-voucher {
  max-width: 28rem;
  background: hsl(var(--card));
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.popup-voucher-top {
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  position: relative;
}
.popup-voucher-top::after {
  content: "";
  position: absolute; bottom: -0.5rem; left: 0; right: 0;
  height: 1rem;
  background-image: radial-gradient(circle, hsl(var(--card)) 4px, transparent 4px);
  background-size: 16px 16px;
  background-position: 0 -4px;
}
.popup-voucher-top h2 { color: white; font-size: 1.5rem; margin-bottom: 0.25rem; }
.popup-voucher-top p { color: hsl(0 0% 95%); font-size: 0.875rem; }
.popup-voucher-amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1; margin-block: 0.875rem; font-family: var(--font-display); }
.popup-voucher-bottom { padding: 1.75rem 1.5rem 1.5rem; }
.popup-voucher-code {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: hsl(var(--muted));
  border: 1.5px dashed hsl(var(--border));
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.popup-voucher .small { color: hsl(var(--muted-foreground)); margin-top: 0.875rem; }

/* ════════════════════════════════════════════════════════════════
 * VOUCHER / GIFT CARD TEMPLATES
 * ════════════════════════════════════════════════════════════════ */

/* ────────── VOUCHER — BANNER STRIP ────────── */
.voucher-banner {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 500;
}
.voucher-banner code {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: hsl(0 0% 100% / 0.15);
  padding: 0.125rem 0.625rem;
  border-radius: 0.25rem;
  border: 1.5px dashed hsl(0 0% 100% / 0.5);
}

/* ────────── VOUCHER — GIFT CARD ────────── */
.gift-card {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)) 60%, hsl(var(--tertiary)));
  color: white;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1.6 / 1;
  max-width: 24rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.gift-card::before {
  content: "";
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 80% 20%, hsl(0 0% 100% / 0.15) 0px, transparent 50%);
  z-index: 0;
}
.gift-card > * { position: relative; z-index: 1; }
.gift-card-brand { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; }
.gift-card-amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-family: var(--font-display); }
.gift-card-meta { display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.75rem; opacity: 0.85; }

/* ────────── VOUCHER — REDEEM CARD (frontside w/ code) ────────── */
.voucher-card {
  background: hsl(var(--card));
  border: 2px dashed hsl(var(--primary) / 0.4);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  position: relative;
}
.voucher-card::before {
  content: ""; position: absolute;
  left: -0.625rem; top: 50%; transform: translateY(-50%);
  width: 1.25rem; height: 1.25rem;
  background: hsl(var(--background));
  border: 2px dashed hsl(var(--primary) / 0.4);
  border-right: 0; border-bottom: 0;
  border-radius: 50%;
  clip-path: inset(0 0 50% 0);
}
.voucher-card::after {
  content: ""; position: absolute;
  right: -0.625rem; top: 50%; transform: translateY(-50%);
  width: 1.25rem; height: 1.25rem;
  background: hsl(var(--background));
  border: 2px dashed hsl(var(--primary) / 0.4);
  border-left: 0; border-bottom: 0;
  border-radius: 50%;
  clip-path: inset(0 0 50% 0);
}
.voucher-amount-large { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; color: hsl(var(--primary)); line-height: 1; }
.voucher-card .voucher-meta { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

/* ════════════════════════════════════════════════════════════════
 * DSGVO / COOKIE CONSENT — granular templates
 * ════════════════════════════════════════════════════════════════ */

/* ────────── COOKIE BANNER — granular (4 categories) ────────── */
.cookie-banner-detail {
  position: fixed;
  bottom: 1rem; left: 1rem; right: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  z-index: 60;
  padding: 1.5rem;
  max-width: 32rem;
}
.cookie-banner-detail h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.cookie-banner-detail p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.25rem; line-height: 1.5; }
.cookie-categories { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.25rem; }
.cookie-category {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem;
  background: hsl(var(--muted) / 0.4);
  border-radius: var(--radius);
  gap: 1rem;
}
.cookie-category-name { font-weight: 500; font-size: 0.875rem; }
.cookie-category-desc { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }
.cookie-category .switch { flex-shrink: 0; }
.cookie-category .badge { flex-shrink: 0; font-size: 0.6875rem; }
.cookie-banner-actions-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner-actions-row .btn { flex: 1; min-width: 7rem; }

/* ────────── PREFERENCE CENTER (full page) ────────── */
.privacy-center { max-width: 48rem; margin: 0 auto; }
.privacy-section {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.privacy-section h3 { font-size: 1.0625rem; margin-bottom: 0.375rem; }
.privacy-section p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.55; margin-bottom: 1rem; }

/* ────────── DATA EXPORT / DELETE PANEL ────────── */
.gdpr-action-card {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.125rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  margin-bottom: 0.5rem;
}
.gdpr-action-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
}
.gdpr-action-icon.danger { background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive)); }

/* ────────── DSGVO BADGES (compliance trust signals) ────────── */
.dsgvo-trust {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  align-items: center; justify-content: center;
  padding: 1.25rem;
  background: hsl(var(--muted) / 0.4);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.dsgvo-trust > span { display: inline-flex; align-items: center; gap: 0.375rem; }
.dsgvo-trust svg { color: hsl(142 71% 45%); flex-shrink: 0; }

/* ────────── SCROLL DOWN INDICATOR ────────── */
.scroll-down {
  display: inline-flex;
  margin-top: 3rem;
  color: hsl(var(--muted-foreground));
  opacity: 0.65;
  transition: opacity var(--duration-fast), transform var(--duration);
  animation: bounceY 2s var(--ease-out) infinite;
}
.scroll-down:hover { opacity: 1; transform: translateY(2px); }
@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ────────── TRUST MARQUEE ────────── */
.trust-strip {
  padding: 3rem 0;
  border-block: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  overflow: hidden;
}
.trust-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.trust-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  width: max-content;
  animation: trustScroll 38s linear infinite;
}
.trust-item {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.7);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.trust-dot {
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}
@keyframes trustScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ────────── NOISE TEXTURE ──────────
 * Subtle film-grain overlay applied to body for tactile feel. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ────────── MOBILE TIGHTENING ──────────
 * The page must work well on small viewports. Override hero/section
 * paddings, type scales, gaps so nothing pushes the layout. */
@media (max-width: 640px) {
  .container { padding-inline: 1rem; }
  .hero { padding: 4rem 0 3rem; }
  .hero-stats { gap: 1.5rem; margin-top: 2rem; padding-top: 2rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stats > div .small { font-size: 0.75rem; }
  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.25rem; }
  .grid-bento { gap: 0.875rem; }
  .grid-cards-3, .grid-cards-4, .grid-cards-2 { gap: 0.875rem; }
  .card-content { padding: 1.25rem; }
  .card-header { padding: 1.25rem 1.25rem 0; }
  .card-footer { padding: 0.875rem 1.25rem; }
  .footer { padding: 3rem 0 1.5rem; margin-top: 4rem; }
  .footer-newsletter { padding: 1.5rem; margin-bottom: 2.5rem; }
  .footer-newsletter h3 { font-size: 1.25rem; }
  .footer-grid { gap: 2rem; margin-bottom: 2rem; }
  .btn-lg { padding: 0.5rem 1.25rem; font-size: 0.9375rem; height: 2.5rem; }
  .navbar-inner { height: 3.5rem; gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
 * EXTENDED LIBRARY v12 — full SaaS toolkit
 * ═══════════════════════════════════════════════════════════════ */

/* ────────── COMMAND PALETTE (⌘K) ────────── */
.cmdk { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 0.875rem; box-shadow: var(--shadow-xl); max-width: 32rem; width: 100%; overflow: hidden; }
.cmdk-input-wrap { display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1rem; border-bottom: 1px solid hsl(var(--border)); }
.cmdk-input-wrap svg { color: hsl(var(--muted-foreground)); flex-shrink: 0; }
.cmdk-input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 0.9375rem; color: hsl(var(--foreground)); }
.cmdk-input::placeholder { color: hsl(var(--muted-foreground)); }
.cmdk-list { max-height: 22rem; overflow-y: auto; padding: 0.5rem; }
.cmdk-group-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: hsl(var(--muted-foreground)); padding: 0.5rem 0.625rem 0.25rem; font-weight: 600; }
.cmdk-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.625rem; border-radius: 0.5rem; cursor: pointer; font-size: 0.875rem; }
.cmdk-item:hover, .cmdk-item.active { background: hsl(var(--accent)); }
.cmdk-item-icon { width: 1.125rem; flex-shrink: 0; color: hsl(var(--muted-foreground)); }
.cmdk-item-meta { margin-left: auto; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ────────── TOOLTIP / POPOVER / CONTEXT MENU ────────── */
.tooltip { position: relative; display: inline-flex; }
.tooltip[data-tooltip]:hover::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%); background: hsl(240 10% 6%); color: hsl(0 0% 95%); padding: 0.375rem 0.625rem; border-radius: 0.375rem; font-size: 0.75rem; white-space: nowrap; z-index: 50; pointer-events: none; }
.tooltip[data-tooltip]:hover::before { content: ""; position: absolute; bottom: calc(100% + 0.125rem); left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: hsl(240 10% 6%); z-index: 51; }
.popover { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.75rem; max-width: 18rem; font-size: 0.875rem; }
.context-menu { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.25rem; min-width: 12rem; }
.context-menu-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.4rem 0.625rem; border-radius: 0.375rem; cursor: pointer; font-size: 0.875rem; }
.context-menu-item:hover { background: hsl(var(--accent)); }
.context-menu-item.danger { color: hsl(var(--destructive)); }
.context-menu-divider { height: 1px; margin: 0.25rem -0.25rem; background: hsl(var(--border)); }
.context-menu-shortcut { margin-left: auto; font-size: 0.75rem; color: hsl(var(--muted-foreground)); font-family: var(--font-mono); }

/* ────────── DATE/CALENDAR PICKER ────────── */
.calendar { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 0.75rem; width: 18rem; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; padding: 0.25rem 0.5rem 0.5rem; }
.calendar-header h3 { font-size: 0.9375rem; }
.calendar-header button { width: 1.75rem; height: 1.75rem; border-radius: 0.375rem; background: transparent; border: 0; display: inline-flex; align-items: center; justify-content: center; color: hsl(var(--muted-foreground)); cursor: pointer; }
.calendar-header button:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.125rem; }
.calendar-day-name { text-align: center; font-size: 0.6875rem; font-weight: 600; color: hsl(var(--muted-foreground)); padding: 0.375rem 0; text-transform: uppercase; letter-spacing: 0.04em; }
.calendar-day { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 0.375rem; font-size: 0.8125rem; cursor: pointer; transition: all var(--duration-fast); }
.calendar-day:hover { background: hsl(var(--muted)); }
.calendar-day.muted { color: hsl(var(--muted-foreground) / 0.6); }
.calendar-day.today { font-weight: 600; color: hsl(var(--primary)); }
.calendar-day.selected { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 500; }

/* ────────── COMBOBOX / MULTI-SELECT ────────── */
.combobox { position: relative; width: 100%; }
.combobox-trigger { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.875rem; background: hsl(var(--background)); border: 1px solid hsl(var(--input)); border-radius: var(--radius); font-size: 0.875rem; cursor: pointer; width: 100%; min-height: 2.5rem; }
.combobox-trigger:hover { border-color: hsl(var(--ring) / 0.6); }
.combobox-tags { display: flex; gap: 0.25rem; flex-wrap: wrap; flex: 1; }
.combobox-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.5rem; background: hsl(var(--muted)); border-radius: 0.25rem; font-size: 0.75rem; font-weight: 500; }

/* ────────── INLINE-EDITABLE FIELD ────────── */
.inline-edit { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem; border-radius: var(--radius); cursor: pointer; transition: background var(--duration-fast); }
.inline-edit:hover { background: hsl(var(--muted)); }
.inline-edit-pen { color: hsl(var(--muted-foreground)); opacity: 0; transition: opacity var(--duration-fast); }
.inline-edit:hover .inline-edit-pen { opacity: 1; }

/* ────────── FILTER SIDEBAR ────────── */
.filter-sidebar { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.25rem; max-width: 16rem; }
.filter-group { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid hsl(var(--border)); }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-group-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); margin-bottom: 0.625rem; }
.filter-list { display: flex; flex-direction: column; gap: 0.375rem; }

/* ────────── BULK ACTION BAR ────────── */
.bulk-bar { display: flex; align-items: center; gap: 1rem; padding: 0.625rem 1rem; background: hsl(var(--primary) / 0.06); border: 1px solid hsl(var(--primary) / 0.2); border-radius: var(--radius); margin-bottom: 0.875rem; }
.bulk-count { font-size: 0.875rem; font-weight: 500; }
.bulk-actions { display: flex; gap: 0.5rem; margin-left: auto; }

/* ────────── EXPORT MENU ────────── */
.export-menu { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.25rem; min-width: 11rem; }
.export-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.625rem; border-radius: 0.375rem; cursor: pointer; font-size: 0.875rem; }
.export-item:hover { background: hsl(var(--accent)); }
.export-item .filetype { width: 1.875rem; height: 1.875rem; border-radius: 0.375rem; background: hsl(var(--muted)); display: inline-flex; align-items: center; justify-content: center; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.04em; color: hsl(var(--muted-foreground)); }

/* ────────── BILLING / INVOICE / USAGE ────────── */
.invoice-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 1rem; align-items: center; padding: 0.875rem 1rem; border-bottom: 1px solid hsl(var(--border)); font-size: 0.875rem; }
.invoice-row:hover { background: hsl(var(--muted) / 0.4); }
.invoice-status { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; }
.invoice-status.paid { color: hsl(142 71% 45%); }
.invoice-status.pending { color: hsl(38 92% 50%); }
.invoice-status.failed { color: hsl(var(--destructive)); }

.usage-meter { margin-bottom: 1rem; }
.usage-meter-row { display: flex; justify-content: space-between; font-size: 0.8125rem; margin-bottom: 0.375rem; }
.usage-meter-row .warn { color: hsl(38 92% 50%); }
.usage-meter-row .danger { color: hsl(var(--destructive)); }
.usage-bar { height: 0.375rem; background: hsl(var(--muted)); border-radius: 9999px; overflow: hidden; }
.usage-bar-fill { height: 100%; background: linear-gradient(90deg, hsl(142 71% 45%), hsl(142 71% 55%)); border-radius: inherit; transition: width var(--duration); }
.usage-bar-fill.warn { background: linear-gradient(90deg, hsl(38 92% 50%), hsl(38 92% 60%)); }
.usage-bar-fill.danger { background: linear-gradient(90deg, hsl(var(--destructive)), hsl(0 84% 70%)); }

.trial-banner { display: flex; align-items: center; gap: 0.875rem; padding: 0.625rem 1rem; background: linear-gradient(90deg, hsl(var(--primary) / 0.08), hsl(var(--accent) / 0.08)); border: 1px solid hsl(var(--primary) / 0.2); border-radius: var(--radius); font-size: 0.875rem; }
.trial-banner-icon { width: 1.875rem; height: 1.875rem; border-radius: 50%; background: hsl(var(--primary)); color: white; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ────────── ONBOARDING WIZARD ────────── */
.wizard { max-width: 36rem; margin: 0 auto; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 2.5rem 2rem; box-shadow: var(--shadow-md); }
.wizard-header { text-align: center; margin-bottom: 2rem; }
.wizard-header h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.wizard-header p { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }
.wizard-content { margin-bottom: 2rem; }
.wizard-actions { display: flex; justify-content: space-between; gap: 0.5rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); }

/* ────────── TEAM / ROLE-PILL ────────── */
.team-member-row { display: grid; grid-template-columns: 2.5rem 1fr auto auto; gap: 0.875rem; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid hsl(var(--border)); }
.team-member-row:hover { background: hsl(var(--muted) / 0.4); }
.role-pill { display: inline-flex; align-items: center; padding: 0.125rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.role-pill.owner { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.role-pill.admin { background: hsl(38 92% 50% / 0.1); color: hsl(28 75% 40%); }
.role-pill.member { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.role-pill.viewer { background: hsl(217 91% 60% / 0.1); color: hsl(217 70% 45%); }
.invite-form { display: flex; gap: 0.5rem; padding: 1rem; background: hsl(var(--muted) / 0.4); border-radius: var(--radius); }
.invite-form input { flex: 1; }

/* ────────── ACTIVITY LOG / AUDIT TRAIL ────────── */
.audit-row { display: grid; grid-template-columns: 2.25rem 1fr auto; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid hsl(var(--border)); font-size: 0.875rem; align-items: flex-start; }
.audit-icon { width: 1.875rem; height: 1.875rem; border-radius: 50%; background: hsl(var(--muted)); display: inline-flex; align-items: center; justify-content: center; color: hsl(var(--muted-foreground)); flex-shrink: 0; }
.audit-meta { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; font-family: var(--font-mono); }
.audit-time { font-size: 0.75rem; color: hsl(var(--muted-foreground)); white-space: nowrap; }

/* ────────── COMMENTS / DISCUSSION ────────── */
.comment { display: flex; gap: 0.75rem; padding: 0.875rem 0; border-bottom: 1px solid hsl(var(--border)); }
.comment:last-child { border-bottom: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.375rem; }
.comment-name { font-weight: 500; font-size: 0.875rem; }
.comment-time { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.comment-text { font-size: 0.9375rem; line-height: 1.55; }
.comment-actions { display: flex; gap: 0.875rem; margin-top: 0.5rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.comment-actions button { background: transparent; border: 0; color: inherit; cursor: pointer; padding: 0; font-size: inherit; }
.comment-actions button:hover { color: hsl(var(--foreground)); }
.comment-replies { margin-left: 3rem; padding-top: 0.625rem; }
.mention { color: hsl(var(--primary)); font-weight: 500; background: hsl(var(--primary) / 0.08); padding: 0 0.25rem; border-radius: 0.25rem; }

/* ────────── NOTIFICATION CENTER ────────── */
.notif-center { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); width: 22rem; max-width: 100%; overflow: hidden; display: flex; flex-direction: column; max-height: 28rem; }
.notif-center-header { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1rem; border-bottom: 1px solid hsl(var(--border)); }
.notif-center-tabs { display: flex; gap: 1rem; padding: 0.5rem 1rem 0; border-bottom: 1px solid hsl(var(--border)); }
.notif-center-tab { padding: 0.5rem 0; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500; }
.notif-center-tab.active { color: hsl(var(--foreground)); border-bottom-color: hsl(var(--primary)); }

/* ────────── STATUS PAGE ────────── */
.status-overview { padding: 1.5rem; background: hsl(142 71% 45% / 0.06); border: 1px solid hsl(142 71% 45% / 0.25); border-radius: var(--radius); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.875rem; }
.status-overview.degraded { background: hsl(38 92% 50% / 0.06); border-color: hsl(38 92% 50% / 0.25); }
.status-overview.outage { background: hsl(var(--destructive) / 0.06); border-color: hsl(var(--destructive) / 0.25); }
.status-overview-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: hsl(142 71% 45%); color: white; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.status-overview.degraded .status-overview-icon { background: hsl(38 92% 50%); }
.status-overview.outage .status-overview-icon { background: hsl(var(--destructive)); }
.service-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid hsl(var(--border)); align-items: center; font-size: 0.875rem; }
.service-status-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; flex-shrink: 0; }
.service-status-dot.up { background: hsl(142 71% 45%); }
.service-status-dot.degraded { background: hsl(38 92% 50%); }
.service-status-dot.down { background: hsl(var(--destructive)); }
.service-uptime { font-family: var(--font-mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ────────── CHANGELOG ────────── */
.changelog-entry { padding: 1.25rem 0; border-bottom: 1px solid hsl(var(--border)); }
.changelog-version { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.625rem; }
.changelog-version-tag { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; background: hsl(var(--primary)); color: white; padding: 0.125rem 0.5rem; border-radius: 0.375rem; }
.changelog-version-date { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.changelog-entry h3 { font-size: 1.125rem; margin-bottom: 0.625rem; }
.changelog-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.changelog-list li { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.9375rem; }
.change-type { font-size: 0.6875rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 0.25rem; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.change-type.new { background: hsl(142 71% 45% / 0.12); color: hsl(142 71% 30%); }
.change-type.fix { background: hsl(217 91% 60% / 0.12); color: hsl(217 70% 40%); }
.change-type.improve { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }
.change-type.breaking { background: hsl(var(--destructive) / 0.12); color: hsl(var(--destructive)); }

/* ────────── ERROR PAGES ────────── */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.5rem; }
.error-code { font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; }
.error-title { font-size: 1.875rem; margin-bottom: 0.625rem; }
.error-desc { color: hsl(var(--muted-foreground)); max-width: 28rem; margin: 0 auto 2rem; }
.error-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ────────── KANBAN BOARD ────────── */
.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.kanban-col { background: hsl(var(--muted) / 0.5); border-radius: var(--radius); padding: 0.875rem; min-height: 18rem; display: flex; flex-direction: column; gap: 0.625rem; }
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; font-weight: 600; padding-bottom: 0.5rem; }
.kanban-col-count { font-size: 0.6875rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 9999px; padding: 0.125rem 0.5rem; color: hsl(var(--muted-foreground)); }
.kanban-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 0.5rem; padding: 0.75rem 0.875rem; cursor: grab; transition: box-shadow var(--duration-fast), transform var(--duration-fast); font-size: 0.875rem; }
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kanban-card-tags { display: flex; gap: 0.25rem; margin-bottom: 0.375rem; flex-wrap: wrap; }
.kanban-card-title { font-weight: 500; line-height: 1.4; margin-bottom: 0.5rem; }
.kanban-card-foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.625rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ────────── CHAT / MESSAGING UI ────────── */
.chat-thread { display: flex; flex-direction: column; gap: 0.875rem; padding: 1rem; }
.chat-msg { display: flex; gap: 0.625rem; max-width: 80%; }
.chat-msg.outgoing { margin-left: auto; flex-direction: row-reverse; }
.chat-bubble { padding: 0.625rem 0.875rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; font-size: 0.9375rem; line-height: 1.45; }
.chat-msg.outgoing .chat-bubble { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.chat-msg-time { font-size: 0.6875rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
.chat-msg.outgoing .chat-msg-time { text-align: right; }
.chat-typing { display: inline-flex; gap: 0.25rem; padding: 0.625rem 0.875rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; width: fit-content; }
.chat-typing span { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: hsl(var(--muted-foreground)); animation: chatDot 1.2s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.chat-composer { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.875rem; border-top: 1px solid hsl(var(--border)); }

/* ────────── FILE BROWSER ────────── */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.75rem; }
.file-tile { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1rem 0.75rem; text-align: center; cursor: pointer; transition: all var(--duration-fast); }
.file-tile:hover { border-color: hsl(var(--primary) / 0.4); transform: translateY(-2px); }
.file-tile.folder { background: linear-gradient(135deg, hsl(var(--primary) / 0.05), transparent); }
.file-icon { width: 2.5rem; height: 2.5rem; margin: 0 auto 0.625rem; background: hsl(var(--muted)); border-radius: 0.5rem; display: inline-flex; align-items: center; justify-content: center; color: hsl(var(--muted-foreground)); }
.file-tile.folder .file-icon { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }
.file-name { font-size: 0.8125rem; font-weight: 500; word-break: break-word; line-height: 1.3; }
.file-size { font-size: 0.6875rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }

/* ────────── STAR RATING ────────── */
.star-rating { display: inline-flex; gap: 0.125rem; }
.star-rating .star { width: 1rem; height: 1rem; color: hsl(var(--muted-foreground) / 0.4); }
.star-rating .star.filled { color: hsl(38 92% 50%); }

/* ────────── TOOLBAR ────────── */
.toolbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 0; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 1.5rem; flex-wrap: wrap; }
.toolbar-spacer { flex: 1; }
