/* ══════════════════════════════════════════
   TOOLIFY — Index.css
   Premium Dark Workspace Design System
══════════════════════════════════════════ */

/* --- TOKENS --- */
:root {
  --cyan:        #00e5ff;
  --cyan-dim:    rgba(0, 229, 255, 0.12);
  --cyan-glow:   rgba(0, 229, 255, 0.40);
  --purple:      #7c3aed;
  --purple-dim:  rgba(124, 58, 237, 0.15);
  --bg:          #040609;
  --bg2:         #090d14;
  --surface:     rgba(255,255,255,0.04);
  --surface-hov: rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.07);
  --border-hov:  rgba(0, 229, 255, 0.45);
  --text:        #eef2ff;
  --text-muted:  rgba(238,242,255,0.42);
  --font-display:'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --radius-card: 18px;
  --radius-pill: 999px;
  --transition:  0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET --- */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GLOBAL BACKGROUNDS & FX
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Noise texture */
.noise {
  position: fixed; inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg%20viewBox=%270%200%20256%20256%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter%20id=%27noise%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%270.9%27%20numOctaves=%274%27%20result=%27noise%27/%3E%3CfeColorMatrix%20in=%27noise%27%20type=%27saturate%27%20values=%270%27/%3E%3C/filter%3E%3Crect%20width=%27256%27%20height=%27256%27%20fill=%27%23040609%27%20filter=%27url(%23noise)%27%20opacity=%270.5%27/%3E%3C/svg%3E');
  pointer-events: none; z-index: 0; opacity: 0.5;
}

/* Dot grid */
.dot-grid {
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Aurora orbs */
.aurora {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(0,229,255,0.08), transparent 70%);
  top: -20%; left: -10%;
  animation-duration: 20s;
}
.orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(124,58,237,0.09), transparent 70%);
  bottom: -15%; right: -5%;
  animation-duration: 25s; animation-delay: -8s;
}
.orb-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,229,255,0.05), transparent 70%);
  top: 40%; left: 50%;
  animation-duration: 30s; animation-delay: -4s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.1); }
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
  z-index: 1;
}

/* Utility */
.hidden { display: none !important; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BRAND
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text);
}
.brand-name em {
  font-style: normal; color: var(--cyan);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LANDING SCREEN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#landing-screen {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* Landing Nav */
.landing-nav {
  padding: 20px 6%;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  background: rgba(4,6,9,0.55);
  position: sticky; top: 0; z-index: 100;
}

.nav-right {
  display: flex; align-items: center; gap: 12px;
}

.nav-badge {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--surface);
}

/* ── Go to Dashboard nav button (Firebase-style top-right) ── */
.btn-nav-dash {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  border: 1px solid rgba(0,229,255,0.35);
  border-radius: var(--radius-pill);
  background: rgba(0,229,255,0.08);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-nav-dash svg {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.btn-nav-dash:hover {
  background: rgba(0,229,255,0.15);
  border-color: rgba(0,229,255,0.6);
  color: #fff;
  box-shadow: 0 0 18px rgba(0,229,255,0.2);
}
.btn-nav-dash:hover svg { transform: translateX(3px); }
.btn-nav-dash:active { transform: scale(0.97); }

/* Hero */
.hero {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 20px 56px;
  gap: 26px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.25);
  background: rgba(0,229,255,0.06);
  padding: 7px 16px; border-radius: var(--radius-pill);
  animation: fadeDown 0.7s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse-dot 2s ease infinite;
}

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

.hero-title {
  display: flex; flex-direction: column;
  gap: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-title .line {
  display: block;
  color: var(--text);
  animation: fadeUp 0.8s ease both;
}
.hero-title .line:nth-child(2) { animation-delay: 0.1s; }
.hero-title .line.accent {
  background: linear-gradient(135deg, var(--cyan) 0%, #a78bfa 55%, var(--cyan) 100%);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease 0.2s both, shimmer 6s linear 1.2s infinite;
}

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

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.75; max-width: 440px;
  animation: fadeUp 0.9s ease 0.3s both;
}

/* Auth box */
.auth-box {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  animation: fadeUp 0.9s ease 0.45s both;
  width: 100%; max-width: 320px;
}

/* Google sign-in btn */
.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 24px;
  background: var(--surface-hov);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative; overflow: hidden;
}

.btn-google::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(124,58,237,0.1));
  opacity: 0; transition: var(--transition);
}

.btn-google:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.btn-google:hover::after { opacity: 1; }
.btn-google:active { transform: translateY(0); }
.btn-google:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Go to Dashboard btn */
.btn-dashboard {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(124,58,237,0.12));
  border: 1px solid rgba(0,229,255,0.35);
  border-radius: var(--radius-pill);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative; overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-dashboard::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(124,58,237,0.15));
  opacity: 0; transition: var(--transition);
}

.btn-dashboard:hover {
  border-color: rgba(0,229,255,0.65);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,229,255,0.18), 0 0 0 1px rgba(0,229,255,0.15);
}
.btn-dashboard:hover::before { opacity: 1; }
.btn-dashboard:active { transform: translateY(0); }

.btn-dashboard svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.btn-dashboard:hover svg { transform: translateX(3px); }

/* Auth divider */
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  width: 100%; color: var(--text-muted);
  font-size: 0.72rem; letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

.auth-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  text-align: center;
}

/* Stats strip */
.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  animation: fadeUp 1s ease 0.55s both;
  gap: 24px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800;
  color: var(--cyan); line-height: 1;
}
.stat-label { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.stat-divider { width: 1px; height: 28px; background: var(--border); }

/* Scroll hint */
.scroll-hint {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 20px;
  font-size: 0.7rem; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  animation: fadeIn 1.5s ease 1s both;
}
.scroll-arrow {
  animation: bounce 2s ease infinite;
  font-size: 1rem; color: var(--cyan);
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* Tool preview strip */
.tool-preview {
  padding: 36px 0 56px;
  text-align: center; overflow: hidden;
}
.preview-label {
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 18px;
}
.preview-strip {
  display: flex; gap: 10px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.preview-chip {
  white-space: nowrap;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.8rem; color: var(--text-muted);
  transition: var(--transition);
}
.preview-chip:hover {
  border-color: var(--border-hov);
  color: var(--cyan);
  background: var(--cyan-dim);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DASHBOARD SCREEN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#dashboard-screen {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* Header */
.dash-header {
  padding: 14px 5%;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,6,9,0.80);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.header-right {
  display: flex; align-items: center; gap: 10px;
}

.user-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  max-width: 200px;
  overflow: hidden;
}

.avatar-img {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0,229,255,0.5);
  flex-shrink: 0;
}

#userName {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.btn-signout {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-signout:hover {
  border-color: rgba(255,80,80,0.45);
  color: #ff6b6b;
  background: rgba(255,80,80,0.06);
}

/* Main content */
.dash-main {
  flex: 1;
  padding: 44px 5%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.dash-welcome {
  margin-bottom: 36px;
  animation: fadeDown 0.6s ease both;
}
.dash-welcome h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2;
}
.dash-welcome p {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 0.9rem;
}

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

/* Card base */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  aspect-ratio: 1;
  padding: 18px 12px;
  gap: 10px;
  overflow: hidden;
  transition: var(--transition);
  animation: cardIn 0.5s ease both;
}

/* stagger */
.card:nth-child(1)  { animation-delay: 0.04s; }
.card:nth-child(2)  { animation-delay: 0.08s; }
.card:nth-child(3)  { animation-delay: 0.12s; }
.card:nth-child(4)  { animation-delay: 0.16s; }
.card:nth-child(5)  { animation-delay: 0.20s; }
.card:nth-child(6)  { animation-delay: 0.24s; }
.card:nth-child(7)  { animation-delay: 0.28s; }
.card:nth-child(8)  { animation-delay: 0.32s; }
.card:nth-child(9)  { animation-delay: 0.36s; }
.card:nth-child(10) { animation-delay: 0.40s; }
.card:nth-child(11) { animation-delay: 0.44s; }
.card:nth-child(12) { animation-delay: 0.48s; }
.card:nth-child(13) { animation-delay: 0.52s; }
.card:nth-child(14) { animation-delay: 0.56s; }
.card:nth-child(15) { animation-delay: 0.60s; }
.card:nth-child(16) { animation-delay: 0.64s; }

/* Shimmer on hover */
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, transparent 40%, rgba(0,229,255,0.05) 100%);
  opacity: 0; transition: var(--transition);
}

/* Glow border on hover */
.card::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), #a78bfa);
  opacity: 0; transition: var(--transition);
  z-index: -1;
}

.card:hover {
  background: var(--surface-hov);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,255,0.1);
}
.card:hover::before { opacity: 1; }
.card:hover::after  { opacity: 0.5; }
.card:active { transform: translateY(-1px) scale(1.01); }

/* Featured card */
.card--featured {
  background: linear-gradient(145deg, rgba(0,229,255,0.07), rgba(124,58,237,0.07));
  border-color: rgba(0,229,255,0.2);
}
.card--featured:hover {
  box-shadow: 0 14px 40px rgba(0,229,255,0.12), 0 0 0 1px rgba(0,229,255,0.2);
}

.card-icon {
  font-size: 2.2rem;
  display: block;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.card:hover .card-icon {
  transform: scale(1.2) rotate(-5deg);
}

.card h4 {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600;
  line-height: 1.35;
  color: rgba(238,242,255,0.85);
  margin: 0;
}

.card-tag {
  position: absolute; top: 9px; right: 9px;
  font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--cyan), #a78bfa);
  color: #000;
  line-height: 1.6;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(4,6,9,0.85);
  backdrop-filter: blur(20px);
  padding: 32px 5%;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 2px;
}
.footer-links {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  align-items: center; gap: 4px 18px;
}
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.8rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }
.yt-link { display: flex; align-items: center; }
.yt-link:hover svg { fill: #ff3333; }
.made-by { font-size: 0.76rem; color: var(--text-muted); font-weight: 400; }
.heart { color: #ff4d6d; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   KEYFRAMES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LIVE USERS WIDGET
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.live-users-widget {
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(124,58,237,0.06));
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: var(--radius-card);
  padding: 18px;
  margin-bottom: 28px;
  animation: fadeDown 0.6s ease 0.2s both;
}

.live-widget-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,229,255,0.1);
}

.live-dot {
  width: 8px; height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.live-title {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.live-count {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--cyan);
}

/* Users list */
.live-users-list {
  display: flex; flex-direction: column;
  gap: 8px; max-height: 320px;
  overflow-y: auto;
}

.live-users-list::-webkit-scrollbar {
  width: 6px;
}
.live-users-list::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 3px;
}
.live-users-list::-webkit-scrollbar-thumb {
  background: rgba(0,229,255,0.3);
  border-radius: 3px;
}
.live-users-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0,229,255,0.5);
}

.live-user-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,229,255,0.08);
  border-radius: 12px;
  transition: var(--transition);
}
.live-user-item:hover {
  background: rgba(0,229,255,0.06);
  border-color: rgba(0,229,255,0.15);
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--purple-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
  border: 1px solid rgba(0,229,255,0.2);
}

.user-info {
  flex: 1; min-width: 0;
}

.user-email {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  word-break: break-all;
}

.user-tool {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-tool strong {
  color: var(--cyan);
  font-weight: 600;
}

.user-time {
  font-size: 0.65rem;
  color: rgba(0,229,255,0.5);
  margin-top: 2px;
}

.user-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px;
}

.status-online {
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
}

.status-idle {
  background: #ffaa00;
  box-shadow: 0 0 6px #ffaa00;
}

.live-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .live-users-widget {
    padding: 14px;
    margin-bottom: 20px;
  }
  .live-title { font-size: 0.88rem; }
  .live-count { font-size: 0.95rem; }
  .live-user-item { padding: 8px; gap: 8px; }
  .user-avatar { width: 28px; height: 28px; font-size: 0.8rem; }
}



/* ── Tablet ── */
@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 11px;
  }
  .dash-main { padding: 32px 4%; }
}

/* ── Mobile landscape / large phones ── */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .card { padding: 14px 8px; aspect-ratio: 1; }
  .card-icon { font-size: 1.8rem; }
  .card h4 { font-size: 0.72rem; }

  .hero-stats { gap: 14px; padding: 8px 16px; }
  .stat-num { font-size: 1.05rem; }

  .user-pill { max-width: 130px; }
  #userName { font-size: 0.75rem; }
  .btn-signout { padding: 6px 12px; font-size: 0.75rem; }

  .auth-box { max-width: 290px; }

  /* Hide the text on nav badge on mobile to save space */
  .nav-badge { display: none; }
  .btn-nav-dash { font-size: 0.76rem; padding: 7px 14px; }
  .dash-main { padding: 24px 4%; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .card { padding: 12px 6px; }
  .card-icon { font-size: 1.6rem; }
  .card h4 { font-size: 0.68rem; }
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .stat-divider { display: none; }
  .dash-header { padding: 12px 4%; }
  /* Hide user name, just show avatar */
  #userName { display: none; }
  .user-pill { padding: 4px; }
}

/* ── Very small phones (≤360px) ── */
@media (max-width: 360px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card { padding: 14px 8px; }
  .card-icon { font-size: 1.8rem; }
  .card h4 { font-size: 0.74rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
