/* TechSupport Hub – Custom CSS v2 */

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --glow-blue: rgba(37,99,235,.35);
  --glow-cyan: rgba(8,145,178,.3);
  --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
  --transition-base: 250ms cubic-bezier(0.4,0,0.2,1);
  --transition-spring: 400ms cubic-bezier(0.34,1.56,0.64,1);
  --shadow-card: 0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --shadow-hover: 0 12px 40px rgba(37,99,235,.18),0 4px 12px rgba(0,0,0,.08);
  --shadow-glow: 0 0 0 4px rgba(59,130,246,.15);
}

/* ── Alpine.js cloak — hide until Alpine initialises ──────── */
[x-cloak] { display: none !important; }

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { transition: background-color .3s ease, color .3s ease; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#93c5fd,#60a5fa); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#60a5fa,#3b82f6); }
.dark ::-webkit-scrollbar-track { background: #0f172a; }
.dark ::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#334155,#475569); }
.dark ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#475569,#64748b); }

/* ── Page progress bar ────────────────────────────────────── */
#page-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #8b5cf6, #2563eb);
  background-size: 300% 100%;
  animation: progressShimmer 2s linear infinite;
  box-shadow: 0 0 12px rgba(59,130,246,.6);
  transition: width .4s ease;
}
@keyframes progressShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ── Toast notifications ──────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 5.5rem; right: 1rem; z-index: 9998;
  display: flex; flex-direction: column-reverse; gap: .625rem;
  pointer-events: none; max-width: calc(100vw - 2rem);
}
@media (min-width: 480px) {
  #toast-container { right: 1.5rem; max-width: 360px; }
}
.toast {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1.125rem; border-radius: 1rem;
  font-size: .875rem; font-weight: 500; line-height: 1.4;
  box-shadow: 0 8px 32px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.12);
  pointer-events: all;
  animation: toastIn .35s cubic-bezier(0.34,1.56,0.64,1) both;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
}
.toast.hiding { animation: toastOut .25s ease forwards; }
.toast-icon { font-size: 1.125rem; flex-shrink: 0; }
.toast-success { background: linear-gradient(135deg,rgba(4,47,46,.95),rgba(6,78,59,.95)); color: #d1fae5; }
.toast-error   { background: linear-gradient(135deg,rgba(69,10,10,.95),rgba(127,29,29,.95)); color: #fee2e2; }
.toast-info    { background: linear-gradient(135deg,rgba(15,23,42,.95),rgba(30,58,138,.95)); color: #dbeafe; }
.toast-warning { background: linear-gradient(135deg,rgba(69,26,3,.95),rgba(120,53,15,.95)); color: #fef3c7; }
@keyframes toastIn  { from { opacity:0; transform:translateX(110%) scale(.85); } to { opacity:1; transform:translateX(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0) scale(1); } to { opacity:0; transform:translateX(110%) scale(.85); } }

/* ── Page container ───────────────────────────────────────── */
.page-wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px)  { .page-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .page-wrap { padding: 0 2rem; } }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1.125rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}
.dark .card { background: #1e293b; border-color: #334155; }

.card-hover { cursor: pointer; }
.card-hover:hover {
  box-shadow: var(--shadow-hover);
  border-color: #93c5fd;
  transform: translateY(-4px);
}
.dark .card-hover:hover {
  border-color: #3b82f6;
  box-shadow: 0 12px 40px rgba(59,130,246,.22);
}

/* Glass variant */
.card-glass {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 1.125rem;
}
.dark .card-glass {
  background: rgba(30,41,59,.88);
  border-color: rgba(51,65,85,.6);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.25rem; border-radius: .875rem;
  font-size: .875rem; font-weight: 600;
  background: linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);
  color: white;
  box-shadow: 0 2px 10px var(--glow-blue), inset 0 1px 0 rgba(255,255,255,.2);
  transition: all var(--transition-fast); cursor: pointer; border: none;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(255,255,255,.18) 0%,transparent 50%);
  opacity: 0; transition: opacity var(--transition-fast);
}
.btn-primary:hover::after  { opacity: 1; }
.btn-primary:hover  { box-shadow: 0 4px 20px var(--glow-blue); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.97) translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.25rem; border-radius: .875rem;
  font-size: .875rem; font-weight: 500;
  background: #f8fafc; color: #374151;
  border: 1.5px solid #e2e8f0;
  transition: all var(--transition-fast); cursor: pointer;
}
.btn-secondary:hover { background: #f1f5f9; border-color: #cbd5e1; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.dark .btn-secondary { background: #334155; color: #e2e8f0; border-color: #475569; }
.dark .btn-secondary:hover { background: #3d4f68; border-color: #64748b; }

.btn-danger {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.25rem; border-radius: .875rem;
  font-size: .875rem; font-weight: 600;
  background: linear-gradient(135deg,#dc2626,#b91c1c); color: white;
  box-shadow: 0 2px 10px rgba(220,38,38,.3);
  transition: all var(--transition-fast); cursor: pointer; border: none;
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(220,38,38,.4); }

/* Button spinner */
.btn-spinner {
  display: inline-block; width: .9rem; height: .9rem;
  border: 2px solid rgba(255,255,255,.35); border-top-color: white;
  border-radius: 50%; animation: spin .6s linear infinite;
  flex-shrink: 0;
}
.btn-spinner-dark { border-color: rgba(37,99,235,.25); border-top-color: #2563eb; }

/* ── Form inputs ──────────────────────────────────────────── */
.input {
  width: 100%; padding: .625rem 1rem; border-radius: .875rem;
  border: 1.5px solid #e2e8f0; font-size: .875rem;
  background: #f8fafc; color: #0f172a;
  transition: all var(--transition-base); outline: none;
}
.input:hover:not(:focus) { border-color: #cbd5e1; background: white; }
.input:focus {
  background: white; border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,.1), 0 1px 4px rgba(0,0,0,.06);
}
.dark .input { background: #0f172a; border-color: #334155; color: #f1f5f9; }
.dark .input:hover:not(:focus) { border-color: #475569; }
.dark .input:focus { background: #0f172a; border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,.1); }
.input::placeholder { color: #94a3b8; }

.label { display: block; font-size: .875rem; font-weight: 600; color: #374151; margin-bottom: .375rem; }
.dark .label { color: #d1d5db; }

/* ── Hero gradient ────────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg,#0f172a 0%,#1e3a8a 45%,#0891b2 100%);
  position: relative; overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%,rgba(59,130,246,.5) 0%,transparent 65%);
  pointer-events: none;
}
.hero-gradient::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none; animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift { 0%{background-position:0 0} 100%{background-position:60px 60px} }

.hero-gradient * { color: white !important; }
.hero-gradient .text-cyan-300  { color: #67e8f9 !important; }
.hero-gradient .text-blue-100  { color: #dbeafe !important; }
.hero-gradient .text-blue-200  { color: #bfdbfe !important; }
.hero-gradient a.bg-white, .hero-gradient .bg-white { background: white !important; }
.hero-gradient a.bg-white * { color: #1d4ed8 !important; }

.hero-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size: 40px 40px;
}

/* ── Thread item ──────────────────────────────────────────── */
.thread-item {
  display: block; padding: 1rem 1.25rem;
  transition: background var(--transition-fast), padding-left var(--transition-base);
  position: relative;
}
.thread-item::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg,#2563eb,#06b6d4);
  transform: scaleY(0); transform-origin: center;
  transition: transform var(--transition-base);
}
.thread-item:hover { background: #f8fafc; padding-left: 1.625rem; }
.thread-item:hover::before { transform: scaleY(1); }
.dark .thread-item:hover { background: rgba(255,255,255,.025); }

/* ── Floating WhatsApp button ─────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: linear-gradient(135deg,#25d366,#128c7e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.55);
  transition: all .3s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.12) translateY(-3px); box-shadow: 0 10px 36px rgba(37,211,102,.65); }
.whatsapp-float svg   { width: 26px; height: 26px; flex-shrink: 0; }
.whatsapp-float::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.55); animation: waPulse 2.5s ease-out infinite;
}
.whatsapp-float::after {
  content: ''; position: absolute; inset: -12px; border-radius: 50%;
  border: 1.5px solid rgba(37,211,102,.3); animation: waPulse 2.5s ease-out .6s infinite;
}
@keyframes waPulse { 0%{transform:scale(1);opacity:.8} 100%{transform:scale(1.65);opacity:0} }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeIn      { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInLeft  { from{opacity:0;transform:translateX(-18px)} to{opacity:1;transform:translateX(0)} }
@keyframes fadeInRight { from{opacity:0;transform:translateX(18px)} to{opacity:1;transform:translateX(0)} }
@keyframes slideDown   { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }
@keyframes scaleIn     { from{opacity:0;transform:scale(.88)} to{opacity:1;transform:scale(1)} }
@keyframes bounceIn    { 0%{transform:scale(0)} 55%{transform:scale(1.1)} 80%{transform:scale(.95)} 100%{transform:scale(1)} }
@keyframes float       { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes floatSlow   { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-18px) rotate(3deg)} }
@keyframes pulse       { 0%,100%{opacity:1} 50%{opacity:.55} }
@keyframes spin        { to{transform:rotate(360deg)} }
@keyframes shimmer     { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes popUp       { 0%{transform:scale(1)} 40%{transform:scale(1.3)} 70%{transform:scale(.9)} 100%{transform:scale(1)} }
@keyframes glow        { 0%,100%{box-shadow:0 0 12px rgba(37,99,235,.3)} 50%{box-shadow:0 0 28px rgba(37,99,235,.6)} }

.fade-in        { animation: fadeIn      .4s cubic-bezier(0.4,0,0.2,1) both; }
.fade-in-left   { animation: fadeInLeft  .4s cubic-bezier(0.4,0,0.2,1) both; }
.fade-in-right  { animation: fadeInRight .4s cubic-bezier(0.4,0,0.2,1) both; }
.slide-down     { animation: slideDown   .3s cubic-bezier(0.4,0,0.2,1) both; }
.scale-in       { animation: scaleIn     .3s cubic-bezier(0.34,1.56,0.64,1) both; }
.bounce-in      { animation: bounceIn    .5s cubic-bezier(0.34,1.56,0.64,1) both; }
.animate-float      { animation: float     3s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 5s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse     2.5s ease-in-out infinite; }
.upvote-pop     { animation: popUp .35s cubic-bezier(0.34,1.56,0.64,1); }

/* Stagger delays for lists */
.stagger-1 { animation-delay: .05s; }
.stagger-2 { animation-delay: .10s; }
.stagger-3 { animation-delay: .15s; }
.stagger-4 { animation-delay: .20s; }
.stagger-5 { animation-delay: .25s; }
.stagger-6 { animation-delay: .30s; }
.stagger-7 { animation-delay: .35s; }

/* Scroll reveal — JS adds .revealed */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s cubic-bezier(0.4,0,0.2,1), transform .65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity:0; transform:translateX(-28px); transition: opacity .65s cubic-bezier(0.4,0,0.2,1), transform .65s cubic-bezier(0.4,0,0.2,1); }
.reveal-right { opacity:0; transform:translateX(28px);  transition: opacity .65s cubic-bezier(0.4,0,0.2,1), transform .65s cubic-bezier(0.4,0,0.2,1); }
.reveal-left.revealed, .reveal-right.revealed { opacity:1; transform:translate(0); }

/* ── Stat glow ────────────────────────────────────────────── */
.stat-glow {
  text-shadow: 0 0 30px rgba(59,130,246,.55), 0 0 60px rgba(59,130,246,.3);
}

/* ── Skeleton loading ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: .5rem;
}
.dark .skeleton {
  background: linear-gradient(90deg,#1e293b 25%,#334155 50%,#1e293b 75%);
  background-size: 200% 100%;
}

/* ── Admin sidebar ────────────────────────────────────────── */
.admin-nav-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .875rem; border-radius: .625rem;
  font-size: .875rem; color: #94a3b8;
  transition: all var(--transition-fast);
  position: relative; overflow: hidden;
}
.admin-nav-link::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg,#2563eb,#06b6d4);
  transform: scaleY(0); transition: transform var(--transition-fast);
  border-radius: 0 2px 2px 0;
}
.admin-nav-link:hover   { background: #1e293b; color: white; padding-left: 1.125rem; }
.admin-nav-link:hover::before { transform: scaleY(1); }
.admin-nav-link.active  {
  background: linear-gradient(135deg,rgba(37,99,235,.2),rgba(8,145,178,.1));
  color: #60a5fa; font-weight: 600;
}
.admin-nav-link.active::before { transform: scaleY(1); }

/* ── Prose content ────────────────────────────────────────── */
.prose-content { line-height: 1.85; font-size: .9375rem; }
.prose-content h1 { font-size:1.6rem; font-weight:800; margin:1.75rem 0 .875rem; color:#0f172a; }
.dark .prose-content h1 { color:#f1f5f9; }
.prose-content h2 { font-size:1.3rem; font-weight:700; margin:1.5rem 0 .75rem; color:#1e293b; padding-bottom:.375rem; border-bottom:2px solid #e2e8f0; }
.dark .prose-content h2 { color:#e2e8f0; border-color:#334155; }
.prose-content h3 { font-size:1.1rem; font-weight:700; margin:1.25rem 0 .625rem; color:#1e293b; }
.dark .prose-content h3 { color:#e2e8f0; }
.prose-content p  { margin-bottom:1rem; color:#374151; }
.dark .prose-content p { color:#cbd5e1; }
.prose-content ul, .prose-content ol { margin:.875rem 0 .875rem 1.5rem; }
.prose-content li { margin-bottom:.375rem; }
.prose-content code {
  font-family:'JetBrains Mono','Fira Code',monospace; font-size:.83em;
  background:#f1f5f9; color:#2563eb;
  padding:.15rem .45rem; border-radius:.4rem; border:1px solid #e2e8f0;
}
.dark .prose-content code { background:#1e293b; color:#93c5fd; border-color:#334155; }
.prose-content pre {
  background: linear-gradient(135deg,#0f172a,#1e293b);
  border-radius:1rem; padding:1.5rem; overflow-x:auto; margin:1.25rem 0;
  border:1px solid #334155;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 4px 20px rgba(0,0,0,.25);
}
.prose-content pre code { background:none; color:#e2e8f0; border:none; padding:0; font-size:.875em; }
.dark .prose-content pre { background:#020617; }
.prose-content blockquote {
  border-left:4px solid #3b82f6; padding:.875rem 1.25rem;
  color:#475569; margin:1.25rem 0; font-style:italic;
  background:linear-gradient(135deg,#eff6ff,#f0f9ff);
  border-radius:0 .875rem .875rem 0;
}
.dark .prose-content blockquote { border-color:#3b82f6; color:#94a3b8; background:rgba(59,130,246,.06); }
.prose-content strong { font-weight:700; color:#1e40af; }
.dark .prose-content strong { color:#93c5fd; }
.prose-content a { color:#2563eb; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.prose-content a:hover { color:#1d4ed8; }
.dark .prose-content a { color:#60a5fa; }
.prose-content hr { border:none; border-top:1px solid #e2e8f0; margin:2rem 0; }
.dark .prose-content hr { border-color:#334155; }
.prose-content table { width:100%; border-collapse:collapse; margin:1.25rem 0; border-radius:.75rem; overflow:hidden; }
.prose-content th { background:#f8fafc; font-weight:700; padding:.625rem 1rem; border:1px solid #e2e8f0; text-align:left; }
.dark .prose-content th { background:#1e293b; border-color:#334155; }
.prose-content td { padding:.625rem 1rem; border:1px solid #e2e8f0; }
.dark .prose-content td { border-color:#334155; }
.prose-content tr:hover td { background:#f8fafc; }
.dark .prose-content tr:hover td { background:rgba(255,255,255,.02); }

/* ── Solution marker ──────────────────────────────────────── */
.is-solution {
  border-color:#22c55e !important;
  background:linear-gradient(135deg,#f0fdf4,#dcfce7) !important;
  box-shadow:0 4px 24px rgba(34,197,94,.2) !important;
  position:relative;
}
.is-solution::before {
  content: ''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,#22c55e,#16a34a);
  border-radius:1.125rem 1.125rem 0 0;
}
.dark .is-solution { background:rgba(34,197,94,.07) !important; border-color:#16a34a !important; }

/* ── Gradient text ────────────────────────────────────────── */
.gradient-text {
  background:linear-gradient(135deg,#3b82f6,#06b6d4);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.gradient-text-warm {
  background:linear-gradient(135deg,#f59e0b,#ef4444);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

/* ── Upvoted state ────────────────────────────────────────── */
button.upvoted, a.upvoted {
  background:linear-gradient(135deg,#dbeafe,#eff6ff) !important;
  border-color:#3b82f6 !important;
  color:#2563eb !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15) !important;
}
.dark button.upvoted, .dark a.upvoted {
  background:rgba(37,99,235,.2) !important;
  border-color:#3b82f6 !important;
  color:#93c5fd !important;
}

/* ── Stat card number ─────────────────────────────────────── */
.card:hover .stat-val { color:#2563eb; transition:color .2s; }

/* ── Highlight box ────────────────────────────────────────── */
.highlight-box {
  background:linear-gradient(135deg,#eff6ff,#f0f9ff);
  border:1px solid #bfdbfe; border-radius:1rem; padding:1.25rem;
}
.dark .highlight-box { background:rgba(37,99,235,.08); border-color:rgba(59,130,246,.2); }

/* ── Section divider ──────────────────────────────────────── */
.section-divider {
  border:none; height:1px; margin:3rem 0;
  background:linear-gradient(90deg,transparent,#e2e8f0 25%,#e2e8f0 75%,transparent);
}
.dark .section-divider {
  background:linear-gradient(90deg,transparent,#334155 25%,#334155 75%,transparent);
}

/* ── Image zoom wrapper ───────────────────────────────────── */
.img-zoom-wrap { overflow:hidden; }
.img-zoom-wrap img { transition:transform .4s cubic-bezier(0.4,0,0.2,1); will-change:transform; }
.img-zoom-wrap:hover img { transform:scale(1.07); }

/* ── Status indicator dot ─────────────────────────────────── */
.status-dot { width:.5rem; height:.5rem; border-radius:50%; display:inline-block; }
.status-dot.online  { background:#22c55e; animation:pulse 2s infinite; box-shadow:0 0 6px rgba(34,197,94,.5); }
.status-dot.offline { background:#94a3b8; }

/* ── Category card stagger ────────────────────────────────── */
.card-hover:nth-child(1) { animation:fadeIn .35s ease .05s both; }
.card-hover:nth-child(2) { animation:fadeIn .35s ease .10s both; }
.card-hover:nth-child(3) { animation:fadeIn .35s ease .15s both; }
.card-hover:nth-child(4) { animation:fadeIn .35s ease .20s both; }
.card-hover:nth-child(5) { animation:fadeIn .35s ease .25s both; }
.card-hover:nth-child(6) { animation:fadeIn .35s ease .30s both; }
.card-hover:nth-child(7) { animation:fadeIn .35s ease .35s both; }

/* ── Animated number counter ──────────────────────────────── */
.count-up { font-variant-numeric: tabular-nums; }

/* ── Focus ring (accessibility) ───────────────────────────── */
:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
  border-radius: .375rem;
}

/* ── Print reset ──────────────────────────────────────────── */
@media print {
  #page-progress, #toast-container, .whatsapp-float { display: none; }
}

/* ── Admin mobile nav strip ───────────────────────────────── */
.admin-nav-link {
  display: flex; align-items: center; gap: .75rem;
}

/* ── Mobile tweaks ────────────────────────────────────────── */
@media (max-width: 639px) {
  /* Prevent code blocks from causing horizontal page scroll */
  .prose-content pre { font-size: .78rem; }

  /* Thread action buttons wrap cleanly on narrow screens */
  .thread-item { padding: .875rem 1rem; }

  /* Tighten hero text line height on phones */
  .hero-gradient h1 { line-height: 1.2; }

  /* Ensure table on support page doesn't overflow */
  .card table { font-size: .75rem; }
}
