/* ========= EXTRA TOKENS FOR DASHBOARD ========= */

:root {
  --green-glow: rgba(34, 197, 94, 0.4);
  --purple-glow: rgba(168, 85, 247, 0.4);
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-new {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-pro {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.5rem;
  vertical-align: middle;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.glass-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.glass-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 60%);
  z-index: 0;
}

.glass-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
  z-index: 0;
}

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

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.stat {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.stat .highlight {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
}

.floating-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  animation: float 6s ease-in-out infinite;
  min-width: 260px;
}

html[data-theme="light"] .floating-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.6);
}

.edit-card {
  animation-delay: 0s;
  transform: translateX(-20px);
}

.sign-card {
  animation-delay: 2s;
  transform: translateX(20px);
}

.ai-card {
  animation-delay: 4s;
  transform: translateX(-10px);
}

@keyframes float {
  0% {
    transform: translateY(0px) translateX(var(--tx, 0));
  }

  50% {
    transform: translateY(-10px) translateX(var(--tx, 0));
  }

  100% {
    transform: translateY(0px) translateX(var(--tx, 0));
  }
}

.floating-card .icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 12px;
}

.floating-card .info strong {
  display: block;
  font-size: 1rem;
  color: var(--fg);
}

.floating-card .info span {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* Category Sections */
.category-group {
  margin-bottom: 4rem;
}

.category-header {
  margin-bottom: 1.5rem;
}

.category-header h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
}

.category-header p {
  color: var(--fg-muted);
  margin: 0;
  font-size: 0.95rem;
}

.tools-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tools-grid.small-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tool-card.small {
  align-items: center;
  padding: 1rem;
}

.tool-card.small .tool-icon {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

.tool-card.small h3 {
  margin: 0;
  font-size: 0.95rem;
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.1);
  flex-shrink: 0;
}

.tool-content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.tool-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* Premium Cards Backgrounds */
.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.gradient-bg-1 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
}

.gradient-bg-2 {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
}

.ai-card-style {
  background: linear-gradient(to right bottom, var(--bg-soft), rgba(168, 85, 247, 0.05));
  border-color: rgba(168, 85, 247, 0.3);
}

.ai-card-style:hover {
  border-color: #a855f7;
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

/* Footer improvements */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3rem 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  color: var(--fg-muted);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.link-group h4 {
  color: var(--fg);
  margin-bottom: 1rem;
  font-weight: 600;
}

.link-group a {
  display: block;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.link-group a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* ================= AD PLACEMENTS ================= */
.ad-banner-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.25rem;
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.bottom-ad {
  background: var(--bg-soft);
  border-top: none;
}

.ad-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1120px;
}

.ad-placeholder {
  width: 100%;
  max-width: 728px;
  height: 90px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.85rem;
  border-radius: 8px;
}

.ad-placeholder.square {
  max-width: 300px;
  height: 250px;
}


/* ========= DASHBOARD MOBILE FIX ========= */
@media (max-width: 768px) {
  .hero-visual {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem;
  }

  .glass-hero {
    padding: 3rem 1rem;
  }

  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .quick-tools-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem;
  }

  .ad-banner-section {
    padding: 1rem;
  }

  .ad-container ins {
    max-width: 100% !important;
    width: 100% !important;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr !important;
  }

  .quick-tools-grid {
    grid-template-columns: 1fr !important;
  }

  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.4rem !important;
  }
}