/* ========================================================================
   TOOLHUB — AI PROMPT ORGANIZER — "COSMIC" DESIGN SYSTEM
   Pure CSS3 · No Framework · Glassmorphism × Aurora × Depth
   ======================================================================== */

/* 1. DESIGN TOKENS ======================================================= */
:root {
  /* ── Primary Palette ── */
  --c-indigo:    #6366f1;
  --c-violet:    #8b5cf6;
  --c-purple:    #a855f7;
  --c-amber:     #f59e0b;
  --c-emerald:   #10b981;
  --c-rose:      #f43f5e;
  --c-sky:       #0ea5e9;

  /* ── Gradients ── */
  --grad-primary: linear-gradient(135deg, var(--c-indigo), var(--c-violet));
  --grad-aurora:  linear-gradient(135deg, #6366f1 0%, #8b5cf6 25%, #a855f7 50%, #6366f1 75%, #8b5cf6 100%);
  --grad-warm:    linear-gradient(135deg, var(--c-amber), #fb923c);
  --grad-glow:    linear-gradient(135deg, rgba(99,102,241,.35), rgba(139,92,246,.35));
  --grad-border:  linear-gradient(135deg, rgba(99,102,241,.5), rgba(168,85,247,.5), rgba(99,102,241,.5));
  --grad-shimmer: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 50%, transparent 100%);

  /* ── Light Theme ── */
  --bg-page:      #f8f9ff;
  --bg-card:      rgba(255, 255, 255, 0.65);
  --bg-card-solid:#ffffff;
  --bg-surface:   rgba(241, 243, 255, 0.8);
  --bg-header:    rgba(255, 255, 255, 0.72);
  --bg-hero:      #f0f2ff;
  --text-primary: #0c0e1a;
  --text-secondary:#3d4163;
  --text-muted:   #8b8faa;
  --border:       rgba(99, 102, 241, 0.1);
  --border-strong:rgba(99, 102, 241, 0.18);
  --shadow-sm:    0 1px 3px rgba(12,14,26,.05);
  --shadow-md:    0 8px 30px rgba(99,102,241,.08);
  --shadow-lg:    0 20px 60px rgba(99,102,241,.12);
  --shadow-glow:  0 0 40px rgba(99,102,241,.15);
  --focus-ring:   0 0 0 3px rgba(99,102,241,.25);
  --glass-blur:   20px;
  --card-blur:    16px;

  /* ── Spacing ── */
  --space-2xs: 0.125rem;
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* ── Layout ── */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --max-width: 1280px;
  --header-height: 68px;

  /* ── Typography ── */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-lg:   1.0625rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3.5rem;
  --text-hero: clamp(2.5rem, 5vw, 4.5rem);

  /* ── Motion ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
}

/* ── Dark Theme (system preference) ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page:      #06070f;
    --bg-card:      rgba(15, 16, 40, 0.7);
    --bg-card-solid:#0f1028;
    --bg-surface:   rgba(25, 27, 60, 0.8);
    --bg-header:    rgba(10, 11, 25, 0.8);
    --bg-hero:      #06070f;
    --text-primary: #eef0ff;
    --text-secondary:#a5a8cc;
    --text-muted:   #5c5f82;
    --border:       rgba(99, 102, 241, 0.12);
    --border-strong:rgba(99, 102, 241, 0.22);
    --shadow-sm:    0 1px 3px rgba(0,0,0,.3);
    --shadow-md:    0 8px 30px rgba(0,0,0,.4);
    --shadow-lg:    0 20px 60px rgba(0,0,0,.5);
    --shadow-glow:  0 0 50px rgba(99,102,241,.2);
  }
}

/* ── Dark Theme (manual toggle) ── */
html.theme-dark {
  --bg-page:      #06070f;
  --bg-card:      rgba(15, 16, 40, 0.7);
  --bg-card-solid:#0f1028;
  --bg-surface:   rgba(25, 27, 60, 0.8);
  --bg-header:    rgba(10, 11, 25, 0.8);
  --bg-hero:      #06070f;
  --text-primary: #eef0ff;
  --text-secondary:#a5a8cc;
  --text-muted:   #5c5f82;
  --border:       rgba(99, 102, 241, 0.12);
  --border-strong:rgba(99, 102, 241, 0.22);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.3);
  --shadow-md:    0 8px 30px rgba(0,0,0,.4);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.5);
  --shadow-glow:  0 0 50px rgba(99,102,241,.2);
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--duration-slow) var(--ease-smooth),
              color var(--duration-slow) var(--ease-smooth);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
ul, ol { list-style: none; }

::selection {
  background: rgba(99, 102, 241, 0.25);
  color: var(--text-primary);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad-primary);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0;
}


/* 3. LAYOUT & CONTAINERS ================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--space-lg);
}

main {
  flex: 1;
}


/* 4. HEADER — Frosted Glass Navigation =================================== */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: background var(--duration-slow) var(--ease-smooth),
              border-color var(--duration-slow) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.06);
  border-bottom-color: var(--border-strong);
}

html.theme-dark .site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ── Logo ── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  line-height: 1.2;
  transition: opacity var(--duration-base) var(--ease-smooth);
  position: relative;
}

.logo:hover { opacity: 0.85; }

.logo-img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  border-radius: var(--radius-sm);
  transition: transform var(--duration-base) var(--ease-spring);
}

.logo:hover .logo-img {
  transform: rotate(-8deg) scale(1.08);
}

.logo strong {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Header Actions ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ── Language Switcher ── */
.lang-switch {
  display: inline-flex;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  padding: 3px;
  border-radius: var(--radius-full);
  gap: 2px;
  align-items: center;
  border: 1px solid var(--border);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(99,102,241,.06);
}

.lang-btn[aria-current="true"] {
  background: var(--bg-card-solid);
  color: var(--c-indigo);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99,102,241,.12);
}

html.theme-dark .lang-btn[aria-current="true"] {
  background: rgba(99,102,241,.15);
  color: #a5b4fc;
}

/* ── Theme Toggle ── */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--c-indigo);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: all var(--duration-slow) var(--ease-spring);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html.theme-dark .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html.theme-dark .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

/* ── Header Contact Button ── */
.header-contact-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.header-contact-btn:hover {
  border-color: var(--c-indigo);
  background: var(--bg-card);
  box-shadow: var(--focus-ring);
  transform: scale(1.08);
}

/* ── User Info in Header ── */
.header-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.header-user-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user .badge--admin {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

html.theme-dark .header-user .badge--admin {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: all var(--duration-base) var(--ease-out);
}

.btn-logout:hover {
  border-color: var(--c-rose);
  color: var(--c-rose);
  background: rgba(244,63,94,.06);
}

.btn-login-header {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: all var(--duration-base) var(--ease-out);
}

.btn-login-header:hover {
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
  transform: translateY(-1px);
}


/* 5. HERO — Aurora Effect ================================================ */
.hero {
  position: relative;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg) var(--space-3xl);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(99,102,241,.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(139,92,246,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(168,85,247,.06) 0%, transparent 60%);
  animation: aurora-shift 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

html.theme-dark .hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(99,102,241,.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(139,92,246,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(168,85,247,.08) 0%, transparent 60%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero-orb--1 {
  width: 500px;
  height: 500px;
  background: var(--c-indigo);
  top: -120px;
  left: -100px;
  animation: float-orb-1 14s ease-in-out infinite;
  opacity: 0.18;
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  background: var(--c-violet);
  bottom: -80px;
  right: -60px;
  animation: float-orb-2 18s ease-in-out infinite;
  opacity: 0.15;
}

.hero-orb--3 {
  width: 300px;
  height: 300px;
  background: var(--c-purple);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float-orb-3 12s ease-in-out infinite;
  opacity: 0.1;
}

html.theme-dark .hero-orb--1 { opacity: 0.12; }
html.theme-dark .hero-orb--2 { opacity: 0.1; }
html.theme-dark .hero-orb--3 { opacity: 0.08; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

html.theme-dark .hero::after {
  background-image:
    linear-gradient(rgba(99,102,241,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.05) 1px, transparent 1px);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: var(--space-lg);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-fade-in 0.8s var(--ease-out) both;
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
  animation: hero-fade-in 0.8s var(--ease-out) 0.15s both;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--card-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  animation: hero-fade-in 0.8s var(--ease-out) 0.3s both;
  box-shadow: var(--shadow-sm);
}

.hero-stats .stat-num {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: var(--text-lg);
}


/* 6. TOOL CONTROLS — Search & Sort ====================================== */
.tools-controls-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 68px;
  top: var(--header-height, 68px);
  z-index: 60;
  background: var(--bg-page);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  transition: background var(--duration-slow) var(--ease-smooth),
              border-color var(--duration-slow) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
}

.tools-controls-wrapper.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  border-bottom-color: var(--border-strong);
}

html.theme-dark .tools-controls-wrapper.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.tools-controls {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--duration-base) var(--ease-smooth);
}

.search-wrapper input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(var(--card-blur));
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-sm);
  transition: all var(--duration-base) var(--ease-out);
  outline: none;
}

.search-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-wrapper input:focus {
  border-color: var(--c-indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15), var(--shadow-md);
}

.search-wrapper input:focus ~ .search-icon {
  color: var(--c-indigo);
}

.tools-controls select {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(var(--card-blur));
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-sm);
  transition: all var(--duration-base) var(--ease-out);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b8faa' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.tools-controls select:focus {
  border-color: var(--c-indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.filter-pills {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  width: 100%;
  margin-top: var(--space-xs);
}

.filter-pill {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(99,102,241,.04);
}

.filter-pill.is-active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(99,102,241,.3);
}

/* Add Prompt button in toolbar */
.btn-add-prompt {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 18px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.btn-add-prompt:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
}


/* 7. TOOL GRID — The Constellation ====================================== */
.tools-section {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}


/* 8. TOOL CARD — Glassmorphism × Depth =================================== */
.tool-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out);
  opacity: 0;
  transform: translateY(24px);
  animation: card-reveal 0.6s var(--ease-out) both;
}

.tool-card:nth-child(1)  { animation-delay: 0.02s; }
.tool-card:nth-child(2)  { animation-delay: 0.05s; }
.tool-card:nth-child(3)  { animation-delay: 0.08s; }
.tool-card:nth-child(4)  { animation-delay: 0.11s; }
.tool-card:nth-child(5)  { animation-delay: 0.14s; }
.tool-card:nth-child(6)  { animation-delay: 0.17s; }
.tool-card:nth-child(7)  { animation-delay: 0.20s; }
.tool-card:nth-child(8)  { animation-delay: 0.23s; }
.tool-card:nth-child(9)  { animation-delay: 0.26s; }
.tool-card:nth-child(10) { animation-delay: 0.29s; }
.tool-card:nth-child(n+11){ animation-delay: 0.32s; }

.tool-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-shimmer);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth);
  pointer-events: none;
}

@media (hover: hover) {
  .tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: transparent;
  }
  .tool-card:hover::before {
    opacity: 1;
  }
  .tool-card:hover::after {
    opacity: 1;
    animation: shimmer-sweep 1.2s ease-in-out;
  }
}

.tool-card:active {
  transform: translateY(-2px) scale(0.99);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: var(--space-xs);
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-smooth);
}

@media (hover: hover) {
  .tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 4px 12px rgba(99,102,241,.15);
  }
}

.tool-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color var(--duration-base) var(--ease-smooth);
}

@media (hover: hover) {
  .tool-card:hover h3 {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.tool-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card .card-actions {
  display: flex;
  gap: var(--space-xs);
  margin-top: auto;
  flex-wrap: wrap;
}

.tool-card .card-actions .btn {
  font-size: var(--text-xs);
  padding: 6px 12px;
}

/* Card meta info */
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Card tags */
.card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.card-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  color: var(--text-muted);
  transition: all var(--duration-base) var(--ease-out);
}

.card-tag:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}


/* 9. BADGES — Glowing Status ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge--new {
  background: rgba(99, 102, 241, 0.12);
  color: var(--c-indigo);
  box-shadow: 0 0 12px rgba(99,102,241,.15);
}

html.theme-dark .badge--new {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  box-shadow: 0 0 16px rgba(99,102,241,.25);
}

.badge--new::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-indigo);
  animation: pulse-dot 2s ease-in-out infinite;
}

.badge--popular {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

html.theme-dark .badge--popular {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.badge--popular::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-emerald);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.badge--private {
  background: rgba(168, 85, 247, 0.12);
  color: #7c3aed;
}

html.theme-dark .badge--private {
  background: rgba(168, 85, 247, 0.2);
  color: #c4b5fd;
}

.badge--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

html.theme-dark .badge--pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.badge--pending::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-amber);
  animation: pulse-dot 2s ease-in-out infinite;
}

.badge--public {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

html.theme-dark .badge--public {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
}


/* 10. BUTTONS — Gradient System ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  background: var(--grad-primary);
  color: #fff;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0px) scale(0.98);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn--outline:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 12px;
}

.btn--ghost:hover {
  background: rgba(99,102,241,.06);
  color: var(--c-indigo);
}

.btn--danger {
  background: var(--c-rose);
  color: #fff;
}

.btn--danger:hover {
  box-shadow: 0 4px 16px rgba(244,63,94,.35);
}

.btn--success {
  background: var(--c-emerald);
  color: #fff;
}

.btn--success:hover {
  box-shadow: 0 4px 16px rgba(16,185,129,.35);
}

.btn--amber {
  background: var(--grad-warm);
  color: #1a1a1a;
}

.btn--amber:hover {
  box-shadow: 0 4px 16px rgba(245,158,11,.35);
}


/* 11. FOOTER — Modern Cosmic ============================================= */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
  transition: background var(--duration-slow) var(--ease-smooth),
              border-color var(--duration-slow) var(--ease-smooth);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(var(--max-width), calc(100% - 2rem));
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--c-indigo) 20%, var(--c-violet) 50%, var(--c-purple) 80%, transparent 100%);
  opacity: 0.6;
}

.footer-grid-modern {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 340px;
}

.footer-logo {
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-smooth),
              transform var(--duration-base) var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.footer-links a::before {
  content: "";
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: width var(--duration-base) var(--ease-out);
}

.footer-links a:hover {
  color: var(--c-indigo);
  transform: translateX(4px);
}

.footer-links a:hover::before {
  width: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
}

.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--text-xs);
}


/* 12. MODAL — Glass Overlay ============================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 7, 15, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-smooth), visibility 0.35s var(--ease-smooth);
}

html:not(.theme-dark) .modal-overlay {
  background: rgba(248, 249, 255, 0.7);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 80px rgba(0,0,0,.2), var(--shadow-glow);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s var(--ease-spring);
}

.modal-overlay.is-active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
}

.modal-close:hover {
  background: var(--bg-card-solid);
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: rotate(90deg);
}

.modal-content {
  padding: var(--space-2xl);
  overflow-y: auto;
  max-height: 80vh;
}

.modal-content .modal-title {
  margin-top: 0;
  margin-bottom: var(--space-lg);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-loading {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}


/* 13. STICKY DONATE BUTTON =============================================== */
.sticky-donate-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-spring);
  pointer-events: none;
}

.sticky-donate-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sticky-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--grad-warm);
  color: #1a1a1a;
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(245,158,11,.35);
  border: none;
  text-decoration: none;
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.sticky-donate-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.sticky-donate-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 30px rgba(245,158,11,.4);
}

.sticky-donate-btn:hover::before {
  opacity: 1;
}

.donate-icon { font-size: 1.2em; }


/* 14. FORMS ============================================================== */
.form-group { margin-bottom: var(--space-md); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: inherit;
  transition: all var(--duration-base) var(--ease-out);
  outline: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b8faa' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--c-indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.form-input.is-error, .form-textarea.is-error {
  border-color: var(--c-rose);
  box-shadow: 0 0 0 3px rgba(244,63,94,.15);
}

.form-help {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--c-rose);
  margin-top: var(--space-xs);
}

.form-radio-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.form-radio-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.form-radio-label input[type="radio"] {
  accent-color: var(--c-indigo);
}

/* Auth form styles */
.auth-form {
  max-width: 360px;
  margin: 0 auto;
}

.auth-form .form-group:last-of-type {
  margin-bottom: var(--space-lg);
}

.auth-toggle {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.auth-toggle a {
  color: var(--c-indigo);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.auth-toggle a:hover {
  text-decoration: underline;
}


/* 15. PROMPT DETAIL (inside modal) ====================================== */
.prompt-detail {
  max-width: 720px;
  margin: 0 auto;
}

.prompt-detail-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
  font-size: var(--text-base);
  color: var(--text-primary);
  position: relative;
}

.prompt-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.prompt-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prompt-detail-meta-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.prompt-detail-meta-value {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
}


/* 16. BACK TO TOP BUTTON ================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-slow) var(--ease-out);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--c-indigo);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.back-to-top .btt-arrow {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-indigo);
}

.progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}

.ring-progress {
  fill: none;
  stroke: url(#bttGradient);
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.1s linear;
}


/* 17. COOKIE CONSENT BANNER ============================================== */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-top: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  z-index: 9999;
  box-shadow: 0 -8px 30px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}

#cookieBanner.is-visible {
  transform: translateY(0);
}

#cookieBanner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

#cookieBanner p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

#cookieBanner a {
  color: var(--c-indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#cookieAccept {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}

#cookieAccept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
}


/* 18. NOTIFICATION TOAST ================================================= */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in 0.4s var(--ease-spring) both;
  max-width: 360px;
}

.toast--success { background: var(--c-emerald); }
.toast--error   { background: var(--c-rose); }
.toast--info    { background: var(--c-indigo); }

.toast.is-hiding {
  animation: toast-out 0.3s var(--ease-smooth) both;
}


/* 19. ANIMATIONS ========================================================= */
@keyframes aurora-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes float-orb-1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, -30px); }
}

@keyframes float-orb-2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-30px, 20px); }
}

@keyframes float-orb-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes card-reveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer-sweep {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(40px) scale(0.9); }
}


/* 20. RESPONSIVE ========================================================= */
@media (max-width: 640px) {
  .hero {
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
    min-height: 260px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero p {
    font-size: 0.9375rem;
  }

  .tools-controls {
    flex-direction: column;
  }

  .search-wrapper {
    min-width: 100%;
  }

  .tools-controls select {
    width: 100%;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid-modern {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .modal-container {
    max-width: 95vw;
    border-radius: var(--radius-lg);
  }

  .modal-content {
    padding: var(--space-lg);
  }

  .header-actions {
    gap: var(--space-sm);
  }

  .lang-btn span {
    display: none;
  }

  .header-user-name {
    max-width: 60px;
  }

  .prompt-detail-meta {
    grid-template-columns: 1fr 1fr;
  }

  .filter-pills {
    gap: 4px;
  }

  .filter-pill {
    padding: 5px 10px;
    font-size: 0.6875rem;
  }

  .btn-add-prompt span {
    display: none;
  }

  .sticky-donate-wrapper {
    bottom: 16px;
    right: 16px;
  }

  .back-to-top {
    bottom: 16px;
    left: 16px;
  }
}


/* 21. REDUCED MOTION ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero::before {
    animation: none;
  }

  .hero-orb {
    animation: none;
  }
}


/* 22. PRINT ============================================================== */
@media print {
  .site-header,
  .site-footer,
  .sticky-donate-wrapper,
  .back-to-top,
  #cookieBanner,
  .toast-container,
  .tools-controls-wrapper,
  .btn-add-prompt {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .tool-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }
}
