﻿:root {
  --bg-page: #09090b;
  --nav-bg: rgba(9, 9, 11, 0.6);
  --nav-border: rgba(255, 255, 255, 0.08);
  --nav-highlight: rgba(255, 255, 255, 0.05);
  --text-main: #ededef;
  --text-muted: #a1a1aa;
  --accent: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.5);
  --btn-cta-bg: #ededef;
  --btn-cta-text: #09090b;
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);

  --bg: #09090b;
  --bg-2: #0b0d12;
  --surface: #141a24;
  --ink: #ededef;
  --muted: #a1a1aa;
  --accent-dark: #0369a1;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-glow: rgba(14, 165, 233, 0.5);
  --text-dim: #52525b;
  --light: #d8dbe0;
  --dark: #28292c;
  --link: rgb(27, 129, 112);
  --link-hover: rgb(24, 94, 82);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--bg-page);
  background-image: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.5s var(--ease-smooth), color 0.3s;
}

.page {
  padding-top: 270px;
}

body.light-mode {
  --bg-page: #f4f4f5;
  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-border: rgba(0, 0, 0, 0.08);
  --nav-highlight: rgba(0, 0, 0, 0.03);
  --text-main: #18181b;
  --text-muted: #71717a;
  --btn-cta-bg: #18181b;
  --btn-cta-text: #ffffff;

  --bg: #f4f4f5;
  --bg-2: #eef0f5;
  --surface: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --accent: #0ea5e9;
  --accent-dark: #0369a1;
  --accent-glow: rgba(14, 165, 233, 0.35);
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 14px 30px rgba(28, 36, 48, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.06);
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.35);
  --text-dim: #94a3b8;
}

body.theme-transition * {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  background: transparent;
}

.nav-wrapper {
  position: fixed;
  top: var(--announcement-height, 0px);
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 36px;
  z-index: 1000;
  transition: top 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1100px;
  min-height: 66px;
  padding: 4px 20px;
  border-radius: 99px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--nav-border);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  transition: background 0.5s, border-color 0.5s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
}

.img-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-icon .img-logo-light { display: block; }
.logo-icon .img-logo-dark { display: none; }
body.theme-dark .logo-icon .img-logo-light { display: none; }
body.theme-dark .logo-icon .img-logo-dark { display: block; }

.img-logo:hover {
  transform: scale(1.04);
  opacity: 1;
}

@media (max-width: 600px) {
  .img-logo {
    height: 40px;
  }
}

.about-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.about-logo {
  height: 110px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  background: none;
}

.admin-badge {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(77, 125, 255, 0.15);
  border: 1px solid rgba(77, 125, 255, 0.35);
  color: #7fa1ff;
}

.nav-center {
  display: flex;
  align-items: center;
}

.cta-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 20px;
  background: var(--btn-cta-bg);
  color: var(--btn-cta-text);
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  transition: transform 0.2s var(--ease-smooth), background 0.3s, color 0.3s;
}

.cta-button:hover {
  transform: scale(1.03);
}

.cta-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
}

.cta-button:hover .cta-glow {
  left: 200%;
  transition: 0.5s ease-in-out;
}

.nav-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
  margin: 2px 0;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    box-shadow: 0 0 0px var(--accent-glow);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-glow);
  }

  100% {
    opacity: 0.5;
    box-shadow: 0 0 0px var(--accent-glow);
  }
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  background: transparent;
  padding: 4px;
  border-radius: 99px;
  border: none;
}

.nav-link {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  transition: all 0.3s var(--ease-smooth);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  background: #18181b;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--nav-border);
}

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


.lang-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 500;
}

.nav-btn-icon:hover {
  color: var(--text-main);
}

.lang-toggle {
  border: none;
  background: transparent;
  box-shadow: none;
}

.lang-code {
  font-weight: 600;
}

.arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.lang-menu.open .arrow {
  transform: rotate(180deg);
}

.lang-code {
  font-weight: 600;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.3s var(--ease-elastic);
  perspective: 1000px;
  z-index: 12;
}

.lang-menu.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-inner {
  background: var(--bg-page);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: 0.2s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.dropdown-item.active {
  color: var(--accent);
}

.dropdown-check {
  width: 16px;
  height: 16px;
  opacity: 0;
}

.dropdown-item.active .dropdown-check {
  opacity: 1;
}

body.light-mode .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

.divider {
  width: 1px;
  height: 20px;
  background: var(--nav-border);
}

.usage-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 4px;
}

body.light-mode .usage-indicator {
  color: #6b7280;
}

.usage-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 3s infinite;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--text-muted);
  transition: background 0.3s ease;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.theme-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-toggle i {
  position: absolute;
  font-size: 1.1rem;
  transition: all 0.5s var(--ease-elastic);
}

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

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

body.light-mode .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

body.light-mode .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.lang-option:hover,
.lang-option.active {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.25);
}

body.theme-dark .lang-option:hover,
body.theme-dark .lang-option.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.lang-switching {
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

body.theme-transition {
  transition: background-color 0.6s var(--ease-smooth), color 0.35s var(--ease-smooth);
}

.usage-badge strong {
  color: var(--ink);
  font-size: 14px;
}

.page {
  padding: 110px 0 80px;
}

.hero {
  padding: 10px 0 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e7edff;
  color: #2748a6;
  font-weight: 600;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 12px 0;
}

.hero p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.hero-stats strong {
  display: block;
  font-size: 18px;
}

.hero-panel h3 {
  margin-top: 0;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.hero-list li {
  position: relative;
  padding-left: 18px;
}

.hero-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
}

.input {
  width: 100%;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px;
}

.input:focus {
  outline: 2px solid rgba(47, 111, 237, 0.2);
  border-color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(28, 36, 48, 0.12);
}

.tool-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tool-card--rich {
  padding: 22px;
  gap: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  box-shadow: 0 22px 40px rgba(10, 12, 20, 0.35);
}

.tool-card--rich:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 52px rgba(10, 12, 20, 0.4);
}

body.light-mode .tool-card--rich {
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

body.light-mode .tool-card--rich:hover {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.12);
}

.tool-card--rich::before,
.tool-card--rich::after {
  display: none;
}

.tool-card--rich:not(.is-clickable) {
  cursor: default;
}

.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.light-mode .tool-icon {
  background: rgba(15, 23, 42, 0.06);
  color: #1f2937;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.tool-card--rich h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.tool-card--rich p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 0 4px;
}

body.light-mode .tool-divider {
  background: rgba(15, 23, 42, 0.1);
}

.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.tool-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.tool-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.tool-status.is-available {
  color: #34d399;
}

.tool-status.is-unavailable {
  color: #f59e0b;
}

.tool-status.is-maintenance {
  color: #f87171;
}

.tool-status.is-beta {
  color: #c084fc;
}

.tool-beta-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.32);
  vertical-align: middle;
}

.tool-link {
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.tool-link:hover {
  color: var(--text-main);
  transform: translateX(2px);
}

.tool-link.disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}

.tone-pdf {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.tone-images {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.tone-text {
  background: rgba(34, 211, 238, 0.18);
  color: #67e8f9;
}

.tone-web {
  background: rgba(6, 182, 212, 0.18);
  color: #22d3ee;
}

.tone-security {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5f5;
}

.tone-dev {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.tone-utilities {
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
}

.tone-encoding {
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
}

.tone-files {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.tone-marketing {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
}

.tone-productivity {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.tone-documents {
  background: rgba(8, 145, 178, 0.18);
  color: #22d3ee;
}

.tone-neutral {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5f5;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(140deg, rgba(96, 140, 255, 0.45), rgba(96, 140, 255, 0), rgba(140, 90, 255, 0.4));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(96, 140, 255, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(16, 24, 40, 0.2);
}

.tool-card:hover::before,
.tool-card:hover::after {
  opacity: 1;
}

.tool-card .card-icon {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool-card:hover .card-icon {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 10px 20px rgba(52, 88, 180, 0.2);
}

.tool-card.is-clickable:focus-visible {
  outline: 2px solid rgba(96, 140, 255, 0.5);
  outline-offset: 3px;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f1f4fb;
  color: #2f6fed;
  font-weight: 700;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-grid .tool-card {
  animation: toolCardIn 0.5s ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

.card-grid .tool-card:nth-child(1) {
  animation-delay: 0.05s;
}

.card-grid .tool-card:nth-child(2) {
  animation-delay: 0.1s;
}

.card-grid .tool-card:nth-child(3) {
  animation-delay: 0.15s;
}

.card-grid .tool-card:nth-child(4) {
  animation-delay: 0.2s;
}

.card-grid .tool-card:nth-child(5) {
  animation-delay: 0.25s;
}

.card-grid .tool-card:nth-child(6) {
  animation-delay: 0.3s;
}

.card-grid .tool-card:nth-child(7) {
  animation-delay: 0.35s;
}

.card-grid .tool-card:nth-child(8) {
  animation-delay: 0.4s;
}

.card-grid .tool-card:nth-child(9) {
  animation-delay: 0.45s;
}

.card-grid .tool-card:nth-child(10) {
  animation-delay: 0.5s;
}

.card-grid .tool-card:nth-child(11) {
  animation-delay: 0.55s;
}

.card-grid .tool-card:nth-child(12) {
  animation-delay: 0.6s;
}

@keyframes toolCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-hero {
  padding: 20px 0 40px;
}

.tool-header {
  margin-bottom: 18px;
}

.tool-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(440px, 100%);
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tool-search:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.35);
}

.tool-search:focus-within {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.tool-search i {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}

.tool-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
}

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

.breadcrumb {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.category-card .card-icon {
  width: 54px;
  height: 54px;
  font-size: 16px;
}

.tool-section {
  margin-top: 32px;
}

.tool-section h2 {
  margin: 0 0 16px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}


.inline-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.dropzone {
  position: relative;
  border: 2px dashed #cbd5ea;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  background: #f9fbff;
  cursor: pointer;
}

.dropzone:hover {
  border-color: #9bb4f3;
}

.dropzone.is-dragging {
  background: #eef3ff;
  border-color: #6c8eea;
}

.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-content {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.range {
  width: 100%;
}

.range-value {
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}

.meta-note {
  background: #f2f4f9;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
}

.result-card .result-box {
  min-height: 140px;
  background: #f7f9fc;
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
}

.tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.summary {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f1f5ff;
  color: #2b3b6d;
  font-size: 14px;
}

.summary.hidden {
  display: none;
}

.text-preview {
  background: #f7f9fc;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  color: #2b3b6d;
  white-space: pre-wrap;
}

.textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  resize: vertical;
}

.textarea:focus {
  outline: 2px solid rgba(47, 111, 237, 0.2);
  border-color: var(--accent);
}

.notice {
  padding: 12px;
  border-radius: 12px;
  background: #fff4e8;
  color: #8a4f2c;
  font-size: 14px;
  border: 1px solid #f2d3bb;
}

.file-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9fc;
  border: 1px solid var(--border);
  font-size: 14px;
}

.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-actions {
  display: inline-flex;
  gap: 6px;
}

.file-actions button {
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.file-actions button:hover {
  border-color: #c8d1e0;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7f9fc;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.preview-card {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.preview-card.hidden {
  display: none;
}

.preview-card iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

.preview-card img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #f7f9fc;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f7f9fc;
  overflow: hidden;
}

.canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.canvas-wrap #bgOverlayCanvas {
  position: absolute;
  inset: 0;
}

.spinner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spinner::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5ea;
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

/* From Uiverse.io by dovatgabriel */
.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.loading-text {
  color: var(--muted);
  font-size: 14px;
}

.three-body {
  --uib-size: 28px;
  --uib-speed: 0.8s;
  --uib-color: #5d3fd3;
  position: relative;
  display: inline-block;
  height: var(--uib-size);
  width: var(--uib-size);
  animation: spin78236 calc(var(--uib-speed) * 2.5) infinite linear;
}

.three-body__dot {
  position: absolute;
  height: 100%;
  width: 30%;
}

.three-body__dot:after {
  content: '';
  position: absolute;
  height: 0%;
  width: 100%;
  padding-bottom: 100%;
  background-color: var(--uib-color);
  border-radius: 50%;
}

.three-body__dot:nth-child(1) {
  bottom: 5%;
  left: 0;
  transform: rotate(60deg);
  transform-origin: 50% 85%;
}

.three-body__dot:nth-child(1)::after {
  bottom: 0;
  left: 0;
  animation: wobble1 var(--uib-speed) infinite ease-in-out;
  animation-delay: calc(var(--uib-speed) * -0.3);
}

.three-body__dot:nth-child(2) {
  bottom: 5%;
  right: 0;
  transform: rotate(-60deg);
  transform-origin: 50% 85%;
}

.three-body__dot:nth-child(2)::after {
  bottom: 0;
  left: 0;
  animation: wobble1 var(--uib-speed) infinite calc(var(--uib-speed) * -0.15) ease-in-out;
}

.three-body__dot:nth-child(3) {
  bottom: -5%;
  left: 0;
  transform: translateX(116.666%);
}

.three-body__dot:nth-child(3)::after {
  top: 0;
  left: 0;
  animation: wobble2 var(--uib-speed) infinite ease-in-out;
}

@keyframes spin78236 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes wobble1 {

  0%,
  100% {
    transform: translateY(0%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateY(-66%) scale(0.65);
    opacity: 0.8;
  }
}

@keyframes wobble2 {

  0%,
  100% {
    transform: translateY(0%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateY(66%) scale(0.65);
    opacity: 0.8;
  }
}

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

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2f6fed;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: #c8d1e0;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.callout {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.content {
  max-width: 760px;
}

.site-footer {
  background: var(--bg-page);
  border-top: 1px solid var(--nav-border);
  padding: 36px 0 24px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal.hidden {
  display: none;
}

.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 30, 0.45);
}

.modal-card {
  position: relative;
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(520px, 92%);
  z-index: 1;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-close {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.checkbox-field input {
  width: 16px;
  height: 16px;
}

.feedback-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 18;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(28, 36, 48, 0.16);
}

.maintenance-banner {
  background: rgba(255, 193, 7, 0.12);
  border-bottom: 1px solid rgba(255, 209, 102, 0.3);
  color: #8a6d1f;
  padding: 10px 0;
  font-size: 14px;
}

body.theme-dark .maintenance-banner {
  background: rgba(255, 193, 7, 0.12);
  color: #ffd166;
}

.announcement-banner {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 14px;
  margin-top: 130px;
}

@media (max-width: 768px) {
  .page {
    padding-top: 130px;
  }

  .announcement-banner {
    margin-top: 112px;
  }
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.announcement-inner strong {
  margin-right: 6px;
}

.announcement-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
}

.announcement-info {
  background: rgba(47, 111, 237, 0.1);
  color: #2f6fed;
}

.announcement-warning {
  background: rgba(255, 193, 7, 0.12);
  color: #8a6d1f;
}

.announcement-success {
  background: rgba(76, 175, 80, 0.12);
  color: #2f7a3b;
}

body.theme-dark .announcement-info {
  color: #8fb0ff;
}

body.theme-dark .announcement-warning {
  color: #ffd166;
}

body.theme-dark .announcement-success {
  color: #80d694;
}

body.tool-maintenance .tool-form {
  opacity: 0.6;
  pointer-events: none;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
}

.switch input {
  display: none;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #d6dbe6;
  border-radius: 999px;
  transition: 0.2s ease;
}

.switch span::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s ease;
}

.switch input:checked+span {
  background: var(--accent);
}

.switch input:checked+span::before {
  transform: translateX(20px);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity var(--transition-speed, 0.3s) ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.feedback-card {
  background: rgba(30, 41, 59, 0.7);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 500px;
  transform: translateY(0);
  transition: transform var(--transition-speed, 0.3s) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden .feedback-card {
  transform: translateY(-20px) scale(0.95);
}

.feedback-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.feedback-card .card-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(to right, #f8fafc, #bae6fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feedback-card .close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-card .close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  transform: rotate(90deg);
}

.feedback-card .form-group {
  margin-bottom: 1.5rem;
}

.feedback-card .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f8fafc;
}

.feedback-card .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  color: #f8fafc;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.feedback-card .form-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
  background-color: rgba(0, 0, 0, 0.3);
}

.feedback-card textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.feedback-card .custom-dropdown {
  position: relative;
}

.feedback-card .dropdown-toggle {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.feedback-card .dropdown-toggle:focus,
.feedback-card .custom-dropdown.active .dropdown-toggle {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
  background-color: rgba(0, 0, 0, 0.3);
  color: #f8fafc;
}

.feedback-card .dropdown-arrow {
  transition: transform 0.3s ease;
}

.feedback-card .custom-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.feedback-card .dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 100%;
  background-color: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feedback-card .custom-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.feedback-card .dropdown-menu .dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f8fafc;
  transition: background-color 0.2s ease;
}

.feedback-card .dropdown-menu .dropdown-item i {
  font-size: 1.2rem;
  color: #94a3b8;
}

.feedback-card .dropdown-menu .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.feedback-card .dropdown-menu .dropdown-item:hover i {
  color: #0ea5e9;
}

.feedback-card .checkbox-group {
  margin-bottom: 1.5rem;
}

.feedback-card .custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.feedback-card .custom-checkbox input {
  display: none;
}

.feedback-card .checkmark {
  width: 1.25rem;
  height: 1.25rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.35rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.75rem;
  transition: all 0.2s ease;
  color: transparent;
}

.feedback-card .custom-checkbox input:checked+.checkmark {
  background-color: #0ea5e9;
  border-color: #0ea5e9;
  color: white;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

.feedback-card .checkmark i {
  font-size: 0.9rem;
}

.feedback-card .label-text {
  font-size: 0.9rem;
  color: #f8fafc;
}

.feedback-card .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.feedback-card .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.feedback-card .btn-secondary {
  background-color: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
}

.feedback-card .btn-secondary:hover {
  color: #f8fafc;
  background-color: rgba(255, 255, 255, 0.1);
}

.feedback-card .btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.4);
}

.feedback-card .btn-primary:hover {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.5);
}

.feedback-card .btn-primary:active {
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 12, 18, 0.9);
  border-top: 1px solid var(--border);
  z-index: 60;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: var(--ink);
}

.cookie-inner p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.light-mode .cookie-banner {
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 720px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }
}

.download-button.button {
  --width: 100px;
  --height: 35px;
  --tooltip-height: 35px;
  --tooltip-width: 90px;
  --gap-between-tooltip-to-button: 18px;
  --button-color: #1163ff;
  --tooltip-color: #fff;
  width: var(--width);
  height: var(--height);
  background: var(--button-color);
  position: relative;
  text-align: center;
  border-radius: 0.45em;
  font-family: Arial, Helvetica, sans-serif;
  transition: background 0.3s;
  display: inline-block;
}

.download-button.button::before {
  position: absolute;
  content: attr(data-tooltip);
  width: var(--tooltip-width);
  height: var(--tooltip-height);
  background-color: var(--tooltip-color);
  font-size: 0.9rem;
  color: #111;
  border-radius: .25em;
  line-height: var(--tooltip-height);
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) + 10px);
  left: calc(50% - var(--tooltip-width) / 2);
}

.download-button.button::after {
  position: absolute;
  content: '';
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: var(--tooltip-color);
  left: calc(50% - 10px);
  bottom: calc(100% + var(--gap-between-tooltip-to-button) - 10px);
}

.download-button.button::after,
.download-button.button::before {
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

.download-button.button .text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-button.button .button-wrapper,
.download-button.button .text,
.download-button.button .icon {
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  color: #fff;
}

.download-button.button .text {
  top: 0;
}

.download-button.button .text,
.download-button.button .icon {
  transition: top 0.5s;
}

.download-button.button .icon {
  color: #fff;
  top: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-button.button .icon svg {
  width: 24px;
  height: 24px;
}

.download-button.button:hover {
  background: #0891b2;
}

.download-button.button:hover .text {
  top: -100%;
}

.download-button.button:hover .icon {
  top: 0;
}

.download-button.button:hover::before,
.download-button.button:hover::after {
  opacity: 1;
  visibility: visible;
}

.download-button.button:hover::after {
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) - 20px);
}

.download-button.button:hover::before {
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge.error {
  background: rgba(255, 99, 71, 0.12);
  color: #ff7660;
  border-color: rgba(255, 118, 96, 0.3);
}

.badge.sugerencia {
  background: rgba(76, 175, 80, 0.12);
  color: #58c66a;
  border-color: rgba(88, 198, 106, 0.3);
}

.badge.opinion {
  background: rgba(63, 131, 248, 0.12);
  color: #7fa1ff;
  border-color: rgba(127, 161, 255, 0.3);
}

.badge.warning {
  background: rgba(255, 193, 7, 0.16);
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.3);
}

.badge.error {
  background: rgba(255, 99, 71, 0.12);
  color: #ff7660;
  border-color: rgba(255, 118, 96, 0.3);
}

.badge.read {
  background: rgba(120, 130, 150, 0.16);
  color: var(--muted);
  border-color: rgba(120, 130, 150, 0.3);
}

.badge.unread {
  background: rgba(255, 193, 7, 0.16);
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.3);
}

.badge.status {
  background: rgba(90, 110, 140, 0.14);
  color: #b7c3d9;
  border-color: rgba(120, 150, 190, 0.3);
}

.badge.status-new {
  background: rgba(71, 145, 255, 0.16);
  color: #7fb4ff;
  border-color: rgba(127, 180, 255, 0.32);
}

.badge.status-review {
  background: rgba(255, 193, 7, 0.16);
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.3);
}

.badge.status-implemented {
  background: rgba(76, 175, 80, 0.16);
  color: #58c66a;
  border-color: rgba(88, 198, 106, 0.3);
}

.admin-note {
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px;
  background: #fff;
  color: var(--ink);
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pagination a,
.pagination span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.pagination .current {
  background: rgba(77, 125, 255, 0.15);
  color: #7fa1ff;
  border-color: rgba(77, 125, 255, 0.4);
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-admin {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.footer-admin:hover {
  color: var(--ink);
  border-color: #c8d1e0;
}

@media (max-width: 768px) {

  .nav-center,
  .divider,
  .usage-indicator,
  .dropdown-group {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .input {
    max-width: 100%;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
}

.toggle-switch {
  position: relative;
  width: 72px;
  height: 32px;
}

.toggle-switch label {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--dark);
  border-radius: 999px;
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  display: none;
}

.toggle-switch .slider {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  transition: 0.3s;
}

.toggle-switch input:checked~.slider {
  background-color: var(--light);
}

.toggle-switch .slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 9px -2px 0px 0px var(--light);
  background-color: var(--dark);
  transition: 0.3s;
}

.toggle-switch input:checked~.slider::before {
  transform: translateX(34px);
  background-color: var(--dark);
  box-shadow: none;
}

body.theme-dark .card,
body.theme-dark .hero-card,
body.theme-dark .callout,
body.theme-dark .modal-card,
body.theme-dark .preview-card,
body.theme-dark .file-item,
body.theme-dark .result-card .result-box {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

body.theme-dark .card-icon,
body.theme-dark .tag {
  background: #0f1624;
  color: #8fb0ff;
}

body.theme-dark .card-meta .btn-ghost {
  background: transparent;
  border-color: #2a374d;
  color: var(--muted);
}

body.theme-dark .card-meta .btn-ghost:hover {
  border-color: #3a4a68;
  color: var(--ink);
}

body.theme-dark .card-meta .tag {
  border: 1px solid #2a374d;
}

body.theme-dark .btn-primary {
  background: #3b6ef5;
}

body.theme-dark .btn-primary:hover {
  background: #2f5bda;
}

body.theme-dark .dropzone {
  background: #111724;
  border-color: #2a374d;
  color: var(--muted);
}

body.theme-dark .dropzone:hover {
  border-color: #3a4a68;
}

body.theme-dark .usage-badge {
  background: rgba(22, 28, 40, 0.6);
  border-color: var(--nav-border);
  color: var(--muted);
}


body.theme-dark .lang-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--nav-border);
  color: var(--muted);
}

body.theme-dark .dropdown-inner {
  background: rgba(12, 16, 24, 0.96);
  border-color: var(--nav-border);
}

body.theme-dark .dropdown-item {
  color: var(--muted);
}

body.theme-dark .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

body.theme-dark .dropdown-item.active {
  color: var(--accent);
}

body.theme-dark .input,
body.theme-dark .textarea {
  background: #121826;
  border-color: var(--border);
  color: var(--ink);
}

body.theme-dark .site-header,
body.theme-dark .site-footer {
  background: transparent;
}

body.theme-dark .btn-ghost {
  color: var(--muted);
  border-color: var(--border);
}

body.theme-dark .btn-ghost:hover {
  color: var(--ink);
  border-color: #3a4a68;
}

body.theme-dark .footer-admin {
  border-color: var(--border);
  color: var(--muted);
}

body.theme-dark .footer-admin:hover {
  color: var(--ink);
  border-color: #3a4a68;
}

body.theme-dark .feedback-fab {
  background: #3b6ef5;
}

body.theme-dark .modal-close {
  color: var(--muted);
}

body.theme-dark .admin-note {
  background: #121826;
  border-color: var(--border);
  color: var(--ink);
}

body.theme-dark .admin-header {
  background: rgba(13, 17, 25, 0.9);
  border-bottom: 1px solid rgba(140, 160, 190, 0.16);
}

body.theme-dark .admin-nav a {
  color: var(--muted);
}

body.theme-dark .admin-nav a.active {
  color: #e6ecff;
  border-color: rgba(120, 150, 255, 0.45);
  background: rgba(77, 125, 255, 0.15);
}

/* Admin layout */
.admin-body {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  min-height: 100vh;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.admin-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.admin-subtitle {
  font-size: 12px;
  color: var(--muted);
}

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

.admin-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.admin-nav a.active {
  color: var(--accent);
  border-color: rgba(47, 111, 237, 0.35);
  background: rgba(47, 111, 237, 0.12);
}

.admin-main {
  padding: 28px 0 60px;
}

.admin-hero {
  margin-bottom: 18px;
}

.admin-hero h1 {
  margin: 0 0 6px;
  font-size: 28px;
  color: var(--ink);
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
}

.admin-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.admin-toggle .toggle-switch {
  width: 54px;
  height: 26px;
}

.admin-toggle .toggle-switch label {
  border-radius: 999px;
}

.admin-toggle .toggle-switch .slider::before {
  top: 3px;
  left: 4px;
  width: 20px;
  height: 20px;
  box-shadow: inset 7px -2px 0px 0px var(--light);
}

.admin-toggle .toggle-switch input:checked~.slider::before {
  transform: translateX(24px);
}

@media (max-width: 720px) {
  .admin-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-nav {
    flex-wrap: wrap;
  }
}

body.theme-dark .canvas-wrap {
  background: #111724;
  border-color: var(--border);
}

body.theme-dark .site-header {
  background: transparent;
  box-shadow: none;
}

/* Premium header and category polish */
.logo-text {
  background: linear-gradient(90deg, #ffffff, #a8b6ff);
  -webkit-background-clip: text;
  background-clip: text;
  background-clip: text;
  color: transparent;
}

body:not(.theme-dark) .logo-text {
  background: none;
  color: #18181b;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  stroke: #9db1ff;
  fill: none;
  stroke-width: 1.6;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-link.is-placeholder {
  opacity: 0.6;
  pointer-events: none;
}

.usage-indicator {
  border: 0;
  background: transparent;
  padding: 0;
}

.usage-indicator.pulse,
.usage-badge.pulse {
  animation: usagePulse 0.6s ease;
}

@keyframes usagePulse {
  0% {
    box-shadow: 0 0 0 rgba(77, 125, 255, 0);
  }

  60% {
    box-shadow: 0 0 18px rgba(77, 125, 255, 0.35);
  }

  100% {
    box-shadow: 0 0 0 rgba(77, 125, 255, 0);
  }
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(140, 160, 190, 0.2);
  background: rgba(22, 28, 40, 0.8);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #d0d6e6;
  border-radius: 999px;
  margin: 2px 0;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 25;
}

.nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer-panel {
  position: absolute;
  right: 16px;
  top: 16px;
  width: min(280px, 90%);
  background: #121826;
  border: 1px solid rgba(140, 160, 190, 0.2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  transform: translateY(-8px);
  transition: transform 0.2s ease;
}

.nav-drawer.open .nav-drawer-panel {
  transform: translateY(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.nav-close {
  border: 0;
  background: transparent;
  color: #cbd5ea;
  font-size: 22px;
  cursor: pointer;
}

.nav-drawer-links {
  display: grid;
  gap: 8px;
}

.nav-drawer-links a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20, 26, 38, 0.8);
  border: 1px solid rgba(140, 160, 190, 0.12);
}

.nav-drawer-links a.active {
  border-color: rgba(120, 150, 255, 0.6);
  color: #e6ecff;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-glow:hover::after {
  transform: translateX(120%);
}

.hero {
  position: relative;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: -1;
}

.hero::before {
  top: -80px;
  left: 10%;
  background: radial-gradient(circle, rgba(77, 125, 255, 0.35), transparent 70%);
}

.hero::after {
  bottom: -120px;
  right: 10%;
  background: radial-gradient(circle, rgba(120, 90, 255, 0.35), transparent 70%);
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140, 160, 190, 0.2);
  background: rgba(20, 26, 38, 0.8);
  font-size: 12px;
  color: var(--muted);
}

.category-card {
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at top, rgba(80, 120, 255, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.category-card:hover::after {
  opacity: 1;
}

.category-card:hover .category-icon svg {
  transform: translateY(-2px) rotate(-2deg);
}

.category-icon svg {
  width: 26px;
  height: 26px;
  stroke: #9db1ff;
  fill: none;
  stroke-width: 1.6;
  transition: transform 0.2s ease;
}

.card-grid .category-card {
  animation: cardIn 0.4s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}

.card-grid .category-card:nth-child(1) {
  animation-delay: 0.05s;
}

.card-grid .category-card:nth-child(2) {
  animation-delay: 0.1s;
}

.card-grid .category-card:nth-child(3) {
  animation-delay: 0.15s;
}

.card-grid .category-card:nth-child(4) {
  animation-delay: 0.2s;
}

.card-grid .category-card:nth-child(5) {
  animation-delay: 0.25s;
}

.card-grid .category-card:nth-child(6) {
  animation-delay: 0.3s;
}

.card-grid .category-card:nth-child(7) {
  animation-delay: 0.35s;
}

.card-grid .category-card:nth-child(8) {
  animation-delay: 0.4s;
}

.card-grid .category-card:nth-child(9) {
  animation-delay: 0.45s;
}

.card-grid .category-card:nth-child(10) {
  animation-delay: 0.5s;
}

.card-grid .category-card:nth-child(11) {
  animation-delay: 0.55s;
}

.card-grid .category-card:nth-child(12) {
  animation-delay: 0.6s;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {

  .header-actions,
  .nav-right {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Footer minimal */
.footer-minimal {
  --bg-footer: #050505;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #52525b;
  --accent: #0ea5e9;
  background-color: var(--bg-footer);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  padding: 80px 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

body.light-mode .footer-minimal {
  --bg-footer: #f4f4f5;
  --text-main: #18181b;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --accent: #0ea5e9;
  border-top-color: rgba(15, 23, 42, 0.08);
}

.footer-minimal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.footer-minimal .footer-content {
  max-width: 1100px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 60px;
}

.footer-minimal .brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.footer-minimal .brand-icon {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-minimal .brand-icon-wrap {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  line-height: 0;
}

.footer-minimal .brand-icon-dark {
  display: none;
}

body.theme-dark .footer-minimal .brand-icon-light {
  display: none;
}

body.theme-dark .footer-minimal .brand-icon-dark {
  display: block;
}

body.light-mode .footer-minimal .brand-icon-light {
  display: block;
}

body.light-mode .footer-minimal .brand-icon-dark {
  display: none;
}

.footer-minimal .footer-brand p {
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-minimal .footer-nav {
  display: flex;
  gap: 80px;
}

.footer-minimal .nav-group h4,
.footer-minimal .footer-social h4 {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  margin-top: 0;
}

.footer-minimal .nav-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-minimal .nav-group li {
  margin-bottom: 12px;
}

.footer-minimal .nav-group a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: 0.2s;
  position: relative;
}

.footer-minimal .nav-group a:hover {
  color: var(--text-main);
  padding-left: 4px;
}

.footer-minimal .nav-group a::before {
  content: "\203A";
  position: absolute;
  left: -10px;
  opacity: 0;
  transition: 0.2s;
  color: var(--accent);
}

.footer-minimal .nav-group a:hover::before {
  opacity: 1;
  left: -8px;
}

.footer-minimal .social-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-minimal .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  transition: 0.2s;
}

.footer-minimal .social-icons a svg {
  display: block;
  width: 1em;
  height: 1em;
}

.footer-minimal .social-icons a:hover {
  color: var(--text-main);
  transform: translateY(-2px);
}

.footer-minimal .email-btn {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition: 0.3s;
}

body.light-mode .footer-minimal .email-btn {
  border-bottom-color: rgba(15, 23, 42, 0.2);
}

.footer-minimal .email-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-minimal .footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

body.light-mode .footer-minimal .footer-bottom {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.footer-minimal .made-with {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-minimal .footer-admin {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

body.light-mode .footer-minimal .footer-admin {
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--text-dim);
}

.footer-minimal .footer-admin:hover {
  color: var(--text-main);
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .footer-minimal .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-minimal .footer-nav {
    justify-content: flex-start;
    gap: 60px;
  }

  .footer-minimal .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }
}

/* --- Home (index) layout --- */
.index-main {
  position: relative;
  z-index: 1;
}

.index-main .text-center {
  text-align: center;
}

.index-main .text-gradient {
  background: linear-gradient(to right, #fff, #22d3ee, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .index-main .text-gradient {
  background: linear-gradient(to right, #0284c7, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.index-main .glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

.index-main .hero-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 60vh;
}

.index-main .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.index-main .badge-pill {
  background: rgba(14, 165, 233, 0.1);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(14, 165, 233, 0.3);
  margin-bottom: 24px;
}

body.light-mode .index-main .badge-pill {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
}

.index-main .hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 0 0 24px 0;
  font-weight: 800;
  letter-spacing: -1px;
}

.index-main .hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 32px 0;
  max-width: 520px;
  line-height: 1.6;
}

.index-main .hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.index-main .feature-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

body.light-mode .index-main .feature-badge {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.index-main .feature-badge i {
  color: var(--primary);
}

.index-main .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.index-main .btn-primary-glow {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.index-main .btn-primary-glow:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.6);
}

.index-main .btn-secondary {
  background: transparent;
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  transition: 0.3s;
}

.index-main .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

body.light-mode .index-main .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

.index-main .hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.index-main .feature-card-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
  background: var(--bg-page);
  border: 1px solid var(--glass-border);
}

body.light-mode .index-main .feature-card-float {
  background: rgba(255, 255, 255, 0.9);
}

.index-main .feature-card-float .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.index-main .feature-card-float strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.index-main .feature-card-float p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.index-main .card-1 {
  top: 10%;
  left: 0;
  animation-delay: 0s;
  z-index: 2;
}

.index-main .card-2 {
  top: 40%;
  right: -20px;
  animation-delay: 2s;
  z-index: 3;
}

.index-main .card-3 {
  bottom: 10%;
  left: 20%;
  animation-delay: 4s;
  z-index: 1;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.index-main .visual-blob {
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(14, 165, 233, 0.25);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.8;
}

/* Stats */
.index-main .stats-section {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.index-main .stats-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 30px;
}

.index-main .stat-item {
  text-align: center;
}

.index-main .stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.index-main .stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.index-main .stat-divider {
  width: 1px;
  height: 60px;
  background: var(--glass-border);
}

/* Quick access */
.index-main .quick-access-section {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.index-main .search-wrapper {
  margin-bottom: 40px;
}

.index-main .search-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  cursor: text;
  border-radius: 20px;
}

body.light-mode .index-main .search-bar {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.index-main .search-bar:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.index-main .search-icon {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.index-main .search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.1rem;
  width: 100%;
  font-family: inherit;
  pointer-events: auto;
}

.index-main .shortcut-hint {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

body.light-mode .index-main .shortcut-hint {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.1);
}

.index-main .trending-header h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}

.index-main .trending-header i {
  color: #f59e0b;
}

.index-main .trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.index-main .quick-tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s;
  border: 1px solid transparent;
  border-radius: 16px;
  position: relative;
}

body.light-mode .index-main .quick-tool-card {
  background: rgba(0, 0, 0, 0.03);
}

.index-main .quick-tool-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

body.light-mode .index-main .quick-tool-card:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

.index-main .tool-icon-small {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.index-main .pdf-bg {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.index-main .img-bg {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.index-main .sec-bg {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.index-main .text-bg {
  background: rgba(34, 211, 238, 0.15);
  color: #67e8f9;
}

.index-main .tool-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.index-main .tool-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.index-main .tool-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.index-main .tool-action {
  color: var(--text-muted);
  transition: 0.2s;
}

.index-main .quick-tool-card:hover .tool-action {
  color: var(--primary);
  transform: translateX(3px);
}

.index-main .badge-new {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  margin-left: auto;
}

/* Categories */
.index-main .categories-section {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.index-main .section-header {
  margin-bottom: 60px;
}

.index-main .section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.index-main .section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.index-main .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.index-main .category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  text-decoration: none;
  color: var(--text-main);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.index-main .category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

body.light-mode .index-main .category-card:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.index-main .cat-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 24px;
  transition: 0.3s;
}

.index-main .category-card:hover .cat-icon-box {
  transform: scale(1.1) rotate(-5deg);
}

.index-main .category-card h3 {
  font-size: 1.4rem;
  margin: 0 0 12px 0;
}

.index-main .category-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.index-main .btn-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  transition: 0.2s;
}

.index-main .category-card:hover .btn-link {
  gap: 12px;
  color: #38bdf8;
}

.index-main .pdf-gradient {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.index-main .img-gradient {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.index-main .text-gradient-icon {
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
}

.index-main .web-gradient {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

.index-main .sec-gradient {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.index-main .dev-gradient {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.index-main .privacy-gradient {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.index-main .utils-gradient {
  background: linear-gradient(135deg, #06b6d4, #67e8f9);
}

.index-main .code-gradient {
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
}

.index-main .files-gradient {
  background: linear-gradient(135deg, #d97706, #fbbf24);
}

.index-main .mkt-gradient {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.index-main .prod-gradient {
  background: linear-gradient(135deg, #059669, #34d399);
}

.index-main .docs-gradient {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
}

/* Privacy CTA */
.index-main .privacy-cta-section {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.index-main .privacy-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px;
  background: linear-gradient(to right, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.index-main .privacy-content {
  display: flex;
  gap: 32px;
  align-items: center;
}

.index-main .icon-wrapper {
  font-size: 4rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.index-main .text-wrapper h2 {
  font-size: 2rem;
  margin: 0 0 12px 0;
}

.index-main .text-wrapper p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
}

.index-main .page-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  filter: blur(150px);
  opacity: 0.15;
  z-index: -1;
  border-radius: 50%;
}

.index-main .blob-top-left {
  top: -200px;
  left: -200px;
  background: var(--primary);
}

.index-main .blob-bottom-right {
  bottom: -200px;
  right: -200px;
  background: #10b981;
}

@media (max-width: 900px) {
  .index-main .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .index-main .hero-content {
    align-items: center;
  }

  .index-main .hero-visual {
    height: 300px;
    margin-top: 40px;
  }

  .index-main .stats-container {
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px;
  }

  .index-main .stat-divider {
    width: 60px;
    height: 1px;
  }

  .index-main .privacy-banner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .index-main .hero-title {
    font-size: 2.5rem;
  }

  .index-main .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .index-main .trending-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .index-main .hero-section {
    gap: 18px;
  }

  .index-main .hero-visual {
    height: auto;
    min-height: 0;
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    justify-items: stretch;
  }

  .index-main .feature-card-float {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    animation: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  }

  .index-main .card-1,
  .index-main .card-2,
  .index-main .card-3 {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
  }

  .index-main .visual-blob {
    display: none;
  }
}

@media (max-width: 420px) {
  .index-main .feature-card-float {
    padding: 12px 14px;
    gap: 10px;
    border-radius: 12px;
  }

  .index-main .feature-card-float .icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .index-main .feature-card-float strong {
    font-size: 0.95rem;
  }

  .index-main .feature-card-float p {
    font-size: 0.8rem;
    line-height: 1.35;
  }
}

/* --- Announcements --- */
.announcement-bar {
  width: 100%;
  position: relative;
  z-index: 1100;
  /* Above navbar (1000) */
  background-color: var(--bg-page);
  /* Ensure opaque */
  padding: 0.75rem 0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  overflow: hidden;
  /* For height animation on close */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.announcement-icon {
  font-size: 1.1em;
  opacity: 0.9;
}

.announcement-close {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
}

.announcement-close:hover {
  background: rgba(0, 0, 0, 0.1);
  opacity: 1;
}

/* Variants */
.announcement-info {
  background-color: #f0fdf4;
  /* Very light slate/green mix */
  background: linear-gradient(to right, #eff6ff, #f8fafc);
  color: #1e3a8a;
  border-bottom-color: #dbeafe;
}

.announcement-info .announcement-icon {
  color: #2563eb;
}

.announcement-warning {
  background: linear-gradient(to right, #fff7ed, #fffaf0);
  color: #9a3412;
  border-bottom-color: #ffedd5;
}

.announcement-warning .announcement-icon {
  color: #ea580c;
}

.announcement-success {
  background: linear-gradient(to right, #f0fdf4, #f7fee7);
  color: #166534;
  border-bottom-color: #dcfce7;
}

.announcement-success .announcement-icon {
  color: #16a34a;
}

/* Dark Mode Adaptation */
body.theme-dark .announcement-info {
  background: #1e293b;
  color: #bae6fd;
  border-bottom-color: #334155;
}

body.theme-dark .announcement-warning {
  background: #3f2c22;
  color: #fdba74;
  border-bottom-color: #7c2d12;
}

body.theme-dark .announcement-success {
  background: #14532d;
  color: #86efac;
  border-bottom-color: #14532d;
}

@media (max-width: 640px) {
  .announcement-inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .announcement-close {
    margin-top: 2px;
  }
}

/* Ko-fi Button */
.kofi-float {
  position: fixed;
  top: calc(var(--announcement-height, 0px) + 42px);
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  color: #13C3FF;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-dark .kofi-float {
  background: #2b2d31;
  color: #13C3FF;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.kofi-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(19, 195, 255, 0.25);
}

.kofi-icon {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
}

.kofi-text {
  display: block;
}

@media (max-width: 768px) {
  .kofi-float {
    top: auto;
    bottom: 90px;
    right: 20px;
    padding: 10px;
    border-radius: 50%;
  }

  .kofi-text {
    display: none;
  }
}

/* Mobile hardening: global layout and shared sections */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main.page {
  overflow-x: clip;
}

@media (max-width: 1024px) {
  .container {
    width: min(1120px, calc(100% - 32px));
  }

  .nav-wrapper {
    padding-top: 18px;
    padding-inline: 12px;
  }

  .navbar {
    width: 100%;
    max-width: none;
    min-height: 60px;
    border-radius: 20px;
    padding: 6px 14px;
    gap: 10px;
  }

  .page {
    padding-top: 150px;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(1120px, calc(100% - 24px));
  }

  .hero-grid,
  .tool-grid,
  .card-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .section {
    padding-left: 0;
    padding-right: 0;
  }

  .section .container,
  .tool-hero .container {
    width: min(1120px, calc(100% - 24px));
  }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 56px;
    border-radius: 16px;
    padding: 6px 10px;
  }

  .logo {
    gap: 10px;
    min-width: 0;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .nav-right {
    gap: 8px;
  }

  .cta-button {
    display: none;
  }

  .page {
    padding-top: 128px;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cookie-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cookie-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .feedback-card {
    width: min(520px, calc(100vw - 20px));
    max-height: calc(100vh - 24px);
  }

  .footer-minimal .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-minimal .footer-nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-minimal .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-wrapper {
    padding-top: 10px;
    padding-inline: 10px;
  }

  .navbar {
    min-height: 52px;
  }

  .logo-text {
    display: none;
  }

  .img-logo {
    height: 32px;
  }

  .page {
    padding-top: 112px;
  }

  .feedback-fab {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

