/* ══════════════════════════════════════════════════
   TOOLORA HOME MAGIC v3.2.0
   SVG icon containers, animated mesh hero,
   gradient borders, count-up stats, colorful tabs
══════════════════════════════════════════════════ */

/* ── ICON CONTAINER (gradient circle wrap) ── */
.tlrp .tlrp-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--tlrp-icon-grad, linear-gradient(135deg, #6c63ff, #a855f7));
  color: #fff;
  box-shadow: 0 6px 20px rgba(108, 99, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s, border-radius .35s;
  position: relative;
  flex-shrink: 0;
}
.tlrp .tlrp-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .15));
}
.tlrp .tlrp-icon-wrap--hero {
  width: 88px;
  height: 88px;
  border-radius: 24px;
}
.tlrp .tlrp-icon-wrap--hero svg { width: 44px; height: 44px; }
.tlrp .tlrp-icon-wrap--sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.tlrp .tlrp-icon-wrap--sm svg { width: 18px; height: 18px; }

/* Hover bounce + rotate on card */
.tlrp .tlrp-card:hover .tlrp-icon-wrap {
  transform: scale(1.1) rotate(-6deg);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(108, 99, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* Soft glow ring around icon (decorative) */
.tlrp .tlrp-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--tlrp-icon-grad, linear-gradient(135deg, #6c63ff, #a855f7));
  opacity: 0;
  filter: blur(12px);
  z-index: -1;
  transition: opacity .35s;
}
.tlrp .tlrp-card:hover .tlrp-icon-wrap::after { opacity: .55; }

/* ── ANIMATED MESH GRADIENT HERO ── */
.tlrp .tlrp-hero {
  background: linear-gradient(125deg,
    #6366f1 0%,
    #8b5cf6 22%,
    #ec4899 45%,
    #f59e0b 68%,
    #06b6d4 88%,
    #6366f1 100%);
  background-size: 300% 300%;
  animation: tlrp-mesh-shift 22s ease infinite;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
@keyframes tlrp-mesh-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating decorative blobs in hero */
.tlrp .tlrp-hero__shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.tlrp .tlrp-hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .55;
  mix-blend-mode: screen;
}
.tlrp .tlrp-hero__shape--1 {
  width: 320px; height: 320px;
  background: #fde047;
  top: -80px; left: -80px;
  animation: tlrp-float-1 18s ease-in-out infinite;
}
.tlrp .tlrp-hero__shape--2 {
  width: 260px; height: 260px;
  background: #34d399;
  top: 60%; right: -60px;
  animation: tlrp-float-2 22s ease-in-out infinite;
}
.tlrp .tlrp-hero__shape--3 {
  width: 200px; height: 200px;
  background: #f472b6;
  bottom: -60px; left: 40%;
  animation: tlrp-float-3 16s ease-in-out infinite;
}
@keyframes tlrp-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(120px, 80px) scale(1.2); }
}
@keyframes tlrp-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-100px, -60px) scale(.85); }
}
@keyframes tlrp-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(80px, -100px) scale(1.15); }
}

.tlrp .tlrp-hero__inner { position: relative; z-index: 2; }
.tlrp .tlrp-hero__actions { z-index: 3; }

/* Reduced motion: disable hero animations */
@media (prefers-reduced-motion: reduce) {
  .tlrp .tlrp-hero,
  .tlrp .tlrp-hero__shape { animation: none; }
}

/* ── HERO TYPOGRAPHY UPGRADE ── */
.tlrp .tlrp-hero__title {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .2);
}
.tlrp .tlrp-hero__title .tlrp-grad-text {
  background: linear-gradient(90deg, #fef3c7, #fff, #fef3c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ── TICKER MARQUEE STRIP ── */
.tlrp .tlrp-ticker {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  z-index: 1;
}
.tlrp .tlrp-ticker__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tlrp-ticker-scroll 38s linear infinite;
  width: max-content;
}
.tlrp .tlrp-ticker__item {
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tlrp .tlrp-ticker__item::before {
  content: '✦';
  color: rgba(255, 255, 255, .5);
}
@keyframes tlrp-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tlrp .tlrp-ticker__track { animation: none; }
}

/* ── COLORFUL CATEGORY TABS ── */
.tlrp .tlrp-tab[data-cat="image"]      { --cc: #3b82f6; }
.tlrp .tlrp-tab[data-cat="pdf"]        { --cc: #ef4444; }
.tlrp .tlrp-tab[data-cat="text"]       { --cc: #10b981; }
.tlrp .tlrp-tab[data-cat="calculator"] { --cc: #f59e0b; }
.tlrp .tlrp-tab[data-cat="developer"]  { --cc: #6366f1; }
.tlrp .tlrp-tab[data-cat="video"]      { --cc: #a855f7; }
.tlrp .tlrp-tab[data-cat="security"]   { --cc: #475569; }
.tlrp .tlrp-tab[data-cat="seo"]        { --cc: #c026d3; }
.tlrp .tlrp-tab {
  position: relative;
  padding: 9px 18px !important;
  border-width: 2px !important;
  font-weight: 700 !important;
  transition: transform .2s, background .25s, border-color .25s, color .25s, box-shadow .25s !important;
}
.tlrp .tlrp-tab:hover { transform: translateY(-2px); }
.tlrp .tlrp-tab.active {
  background: var(--cc, var(--tlr-primary)) !important;
  border-color: var(--cc, var(--tlr-primary)) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--cc, #6c63ff) 35%, transparent);
}

/* ── CARD GRADIENT TOP-LINE BY CATEGORY ── */
.tlrp .tlrp-card[data-cat="image"]      { --tlrp-cc-grad: linear-gradient(90deg, #3b82f6, #06b6d4); --tlrp-cc-solid: #3b82f6; }
.tlrp .tlrp-card[data-cat="pdf"]        { --tlrp-cc-grad: linear-gradient(90deg, #ef4444, #f97316); --tlrp-cc-solid: #ef4444; }
.tlrp .tlrp-card[data-cat="text"]       { --tlrp-cc-grad: linear-gradient(90deg, #10b981, #84cc16); --tlrp-cc-solid: #10b981; }
.tlrp .tlrp-card[data-cat="calculator"] { --tlrp-cc-grad: linear-gradient(90deg, #f59e0b, #fb923c); --tlrp-cc-solid: #f59e0b; }
.tlrp .tlrp-card[data-cat="developer"]  { --tlrp-cc-grad: linear-gradient(90deg, #6366f1, #8b5cf6); --tlrp-cc-solid: #6366f1; }
.tlrp .tlrp-card[data-cat="video"]      { --tlrp-cc-grad: linear-gradient(90deg, #a855f7, #ec4899); --tlrp-cc-solid: #a855f7; }
.tlrp .tlrp-card[data-cat="security"]   { --tlrp-cc-grad: linear-gradient(90deg, #475569, #1e293b); --tlrp-cc-solid: #475569; }
.tlrp .tlrp-card[data-cat="seo"]        { --tlrp-cc-grad: linear-gradient(90deg, #c026d3, #db2777); --tlrp-cc-solid: #c026d3; }

.tlrp .tlrp-card {
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, border-color .3s !important;
}
.tlrp .tlrp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tlrp-cc-grad, linear-gradient(90deg, #6c63ff, #a855f7));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.tlrp .tlrp-card:hover {
  transform: translateY(-6px) !important;
  border-color: var(--tlrp-cc-solid, var(--tlr-primary)) !important;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--tlrp-cc-solid, #6c63ff) 22%, transparent) !important;
}
.tlrp .tlrp-card:hover::before { transform: scaleX(1); }

.tlrp .tlrp-card__catlabel {
  color: var(--tlrp-cc-solid, var(--tlr-primary)) !important;
}

/* ── STATS BAR — bigger, gradient numbers ── */
.tlrp .tlrp-statsbar {
  background: linear-gradient(180deg, var(--tlr-surface) 0%, var(--tlr-surface2) 100%) !important;
  padding: 6px 0 !important;
  gap: 0;
}
.tlrp .tlrp-statsbar__item {
  padding: 18px 8px !important;
  font-size: .82rem !important;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.tlrp .tlrp-statsbar__item strong {
  font-size: 1.85rem !important;
  background: linear-gradient(135deg, #6c63ff, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

/* ── SEARCH BAR — glow + Cmd-K hint ── */
.tlrp .tlrp-search {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18), 0 0 0 1px rgba(255, 255, 255, .1) !important;
  border: 1px solid rgba(255, 255, 255, .35);
  transition: box-shadow .3s, transform .2s;
}
.tlrp .tlrp-search:focus-within {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 12px 40px rgba(0, 0, 0, .25) !important;
  transform: translateY(-2px);
}
.tlrp .tlrp-search__kbd {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: .68rem;
  font-weight: 700;
  color: #888;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 7px;
  margin-left: 6px;
}

/* ── TRUST PILLS — hero version ── */
.tlrp .tlrp-hero .tlrp-trust__item {
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-weight: 600;
  font-size: .82rem;
  padding: 6px 12px;
  border-radius: 50px;
}

/* ── HERO CTA BUTTONS — refined ── */
.tlrp .tlrp-hero__cta a {
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.tlrp .tlrp-hero__cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}
.tlrp .tlrp-hero__cta a::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  transition: left .6s;
}
.tlrp .tlrp-hero__cta a:hover::after { left: 100%; }

/* ── RECENT TOOLS STRIP ── */
.tlrp .tlrp-recent {
  margin: 18px 28px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg,
    rgba(108, 99, 255, .06),
    rgba(236, 72, 153, .06));
  border: 1px solid var(--tlr-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tlrp .tlrp-recent__label {
  font-weight: 800;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tlr-text);
  white-space: nowrap;
}
.tlrp .tlrp-recent__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 200px;
}
.tlrp .tlrp-recent__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  background: var(--tlr-surface);
  border: 1px solid var(--tlr-border);
  font-size: .82rem;
  font-weight: 600;
  color: var(--tlr-text);
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tlrp .tlrp-recent__chip:hover {
  transform: translateY(-2px);
  border-color: var(--tlr-primary);
  box-shadow: 0 4px 12px rgba(108, 99, 255, .15);
  color: var(--tlr-text);
}
.tlrp .tlrp-recent__chip svg { width: 14px; height: 14px; }

/* ── SECTION HEADERS — subtle gradient line ── */
.tlrp .tlrp-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tlrp .tlrp-section-head h2::before {
  content: '';
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #6c63ff, #ec4899);
}

/* ── DARK MODE TWEAKS ── */
.tlrp.tlrp--dark .tlrp-recent {
  background: linear-gradient(135deg,
    rgba(108, 99, 255, .12),
    rgba(236, 72, 153, .10));
}
.tlrp.tlrp--dark .tlrp-search__kbd {
  background: #1e1e35;
  color: #aab;
  border-color: #2a2a4a;
}
.tlrp.tlrp--dark .tlrp-icon-wrap {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .15);
}

/* ── COUNT-UP STATS ANIMATION HOOK ── */
.tlrp .tlrp-statsbar__item strong[data-target] {
  display: inline-block;
}

/* ── SOUTH ASIA / POPULAR section card differences ── */
.tlrp .tlrp-section-popular .tlrp-card {
  background: linear-gradient(180deg,
    var(--tlr-surface) 0%,
    color-mix(in srgb, var(--tlr-surface) 90%, var(--tlr-primary) 10%) 100%);
}

/* ── RESPONSIVE TWEAKS ── */
@media (max-width: 720px) {
  .tlrp .tlrp-icon-wrap { width: 48px; height: 48px; border-radius: 14px; }
  .tlrp .tlrp-icon-wrap svg { width: 24px; height: 24px; }
  .tlrp .tlrp-icon-wrap--hero { width: 64px; height: 64px; border-radius: 18px; }
  .tlrp .tlrp-icon-wrap--hero svg { width: 32px; height: 32px; }
  .tlrp .tlrp-hero__shape { filter: blur(60px); opacity: .4; }
  .tlrp .tlrp-statsbar__item strong { font-size: 1.4rem !important; }
  .tlrp .tlrp-recent { margin: 14px 12px 0; padding: 12px; }
}

/* ── FAB scroll-top button ── */
.tlrp .tlrp-fab-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c63ff, #ec4899);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(108, 99, 255, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .3s;
  z-index: 99;
}
.tlrp .tlrp-fab-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tlrp .tlrp-fab-top:hover { transform: translateY(-4px) scale(1.08); }
.tlrp .tlrp-fab-top svg { width: 22px; height: 22px; }

/* ── CARD ENTRANCE ANIMATION ── */
@media (prefers-reduced-motion: no-preference) {
  .tlrp .tlrp-grid .tlrp-card {
    animation: tlrp-card-in .5s cubic-bezier(.16, 1, .3, 1) backwards;
  }
  .tlrp .tlrp-grid .tlrp-card:nth-child(1)  { animation-delay: .02s; }
  .tlrp .tlrp-grid .tlrp-card:nth-child(2)  { animation-delay: .04s; }
  .tlrp .tlrp-grid .tlrp-card:nth-child(3)  { animation-delay: .06s; }
  .tlrp .tlrp-grid .tlrp-card:nth-child(4)  { animation-delay: .08s; }
  .tlrp .tlrp-grid .tlrp-card:nth-child(5)  { animation-delay: .10s; }
  .tlrp .tlrp-grid .tlrp-card:nth-child(6)  { animation-delay: .12s; }
  .tlrp .tlrp-grid .tlrp-card:nth-child(7)  { animation-delay: .14s; }
  .tlrp .tlrp-grid .tlrp-card:nth-child(8)  { animation-delay: .16s; }
  .tlrp .tlrp-grid .tlrp-card:nth-child(n+9) { animation-delay: .18s; }
}
@keyframes tlrp-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════
   v3.4.0 NEW STYLES
═════════════════════════════════════════════════ */

/* ── SEO Content Section (admin saved rich content) ── */
.tlrp .tlrp-seo-content h1,
.tlrp .tlrp-seo-content h2,
.tlrp .tlrp-seo-content h3,
.tlrp .tlrp-seo-content h4 {
  margin: 18px 0 10px;
  font-weight: 800;
  color: var(--tlr-text);
  line-height: 1.3;
}
.tlrp .tlrp-seo-content h1 { font-size: 1.7rem; }
.tlrp .tlrp-seo-content h2 { font-size: 1.4rem; }
.tlrp .tlrp-seo-content h3 { font-size: 1.15rem; }
.tlrp .tlrp-seo-content h4 { font-size: 1rem; }
.tlrp .tlrp-seo-content p {
  margin: 0 0 12px;
  line-height: 1.85;
  color: var(--tlr-text);
}
.tlrp .tlrp-seo-content a {
  color: #6c63ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tlrp .tlrp-seo-content a:hover { color: #ec4899; }
.tlrp .tlrp-seo-content ul,
.tlrp .tlrp-seo-content ol {
  margin: 0 0 14px;
  padding-left: 24px;
  line-height: 1.85;
}
.tlrp .tlrp-seo-content li { margin-bottom: 4px; }
.tlrp .tlrp-seo-content strong { font-weight: 800; color: var(--tlr-text); }
.tlrp .tlrp-seo-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
}
.tlrp .tlrp-seo-content blockquote {
  border-left: 4px solid #6c63ff;
  padding: 8px 16px;
  margin: 14px 0;
  background: rgba(108, 99, 255, .06);
  border-radius: 6px;
  color: var(--tlrp-muted);
  font-style: italic;
}

/* ── Favorite Button (tool page) ── */
.tlrp .tlrp-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  background: var(--tlr-surface);
  border: 1px solid var(--tlr-border);
  font-size: .82rem;
  font-weight: 700;
  color: var(--tlr-text);
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}
.tlrp .tlrp-fav-btn:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, .08);
  transform: translateY(-1px);
}
.tlrp .tlrp-fav-btn.active {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, .35);
}
.tlrp .tlrp-fav-btn.active .tlrp-fav-btn__icon {
  animation: tlrp-fav-pop .35s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes tlrp-fav-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* ── Copy URL Button ── */
.tlrp .tlrp-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  background: var(--tlr-surface);
  border: 1px solid var(--tlr-border);
  font-size: .82rem;
  font-weight: 700;
  color: var(--tlr-text);
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}
.tlrp .tlrp-copy-btn:hover {
  border-color: #6c63ff;
  background: rgba(108, 99, 255, .08);
  transform: translateY(-1px);
}
.tlrp .tlrp-copy-btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

/* ── Toast notification ── */
.tlrp-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(16, 185, 129, .4);
  opacity: 0;
  z-index: 9999;
  transition: opacity .3s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.tlrp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Loading Skeleton ── */
.tlrp-skeleton {
  background: linear-gradient(90deg,
    var(--tlr-surface) 25%,
    var(--tlr-surface2) 50%,
    var(--tlr-surface) 75%);
  background-size: 200% 100%;
  animation: tlrp-shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes tlrp-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Favorites strip (similar to recent) ── */
.tlrp .tlrp-favorites {
  margin: 12px 28px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg,
    rgba(245, 158, 11, .08),
    rgba(236, 72, 153, .06));
  border: 1px solid var(--tlr-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tlrp .tlrp-favorites__label {
  font-weight: 800;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tlr-text);
  white-space: nowrap;
}
.tlrp .tlrp-favorites__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 200px;
}

/* ── Confetti container ── */
.tlrp-confetti {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}
.tlrp-confetti__piece {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  animation: tlrp-confetti-fall 3s linear forwards;
}
@keyframes tlrp-confetti-fall {
  0%   { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── Print stylesheet ── */
@media print {
  .tlrp-hero, .tlrp-ticker, .tlrp-statsbar, .tlrp-recent, .tlrp-favorites,
  .tlrp-tool-hero__meta, .tlrp-topbar, .tlrp-search, .tlrp-fab-top,
  .tlrp-ad, .tlrp-related, .tlrp-faq__icon, .tlrp-tool-body button {
    display: none !important;
  }
  .tlrp { background: #fff !important; color: #000 !important; }
  .tlrp h1, .tlrp h2, .tlrp h3 { color: #000 !important; page-break-after: avoid; }
  .tlrp a { color: #000 !important; text-decoration: underline; }
  .tlrp-box { border: 1px solid #ccc !important; box-shadow: none !important; }
}

/* ── Search no-results enhancement ── */
.tlrp .tlrp-no-results {
  background: linear-gradient(135deg,
    rgba(108, 99, 255, .04),
    rgba(236, 72, 153, .04));
  border-radius: 16px;
  border: 2px dashed var(--tlr-border);
  padding: 40px 20px !important;
}

/* ── Keyboard navigation focus ring ── */
.tlrp .tlrp-card:focus-visible {
  outline: 3px solid #6c63ff;
  outline-offset: 3px;
  transform: translateY(-4px);
}

/* ── Mobile responsive for new buttons ── */
@media (max-width: 720px) {
  .tlrp .tlrp-fav-btn,
  .tlrp .tlrp-copy-btn {
    padding: 6px 12px;
    font-size: .76rem;
  }
  .tlrp-toast {
    bottom: 80px;
    font-size: .82rem;
    padding: 10px 18px;
  }
  .tlrp .tlrp-favorites { margin: 12px 12px 0; padding: 12px; }
}
