/* ===========================
   GoKitly - Global CSS
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap&font-display=swap');

/* ── CSS Variables ── */
:root {
  --primary: #f5c518;
  --primary-dark: #e0b015;
  --primary-light: #ffd84d;
  --primary-bg: #fffdf0;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #10b981;
  --error: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px -4px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
* { -webkit-user-drag: none; }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header / Navbar ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gray-900);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.logo img {
  height: 65px !important;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--gray-600);
  transition: var(--transition);
}

.nav-links a:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.nav-links a.active {
  background: var(--primary);
  color: var(--gray-900);
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.hamburger:hover { background: var(--gray-100); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, #fffdf0 0%, #fff8d6 40%, #fffaee 100%);
  padding: 80px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,197,24,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,197,24,0.10) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,197,24,0.15);
  border: 1px solid rgba(245,197,24,0.4);
  color: #9a7a00;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hero h1 span {
  color: var(--primary-dark);
  position: relative;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 8px;
  background: rgba(245,197,24,0.4);
  z-index: -1;
  border-radius: 4px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

/* ── Search Bar ── */
.search-wrap {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.search-wrap input {
  width: 100%;
  padding: 18px 60px 18px 22px;
  border: 2px solid var(--gray-200);
  border-radius: 100px;
  font-size: 1rem;
  background: var(--white);
  color: var(--gray-800);
  outline: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(245,197,24,0.2), var(--shadow-md);
}

.search-wrap input::placeholder { color: var(--gray-400); }

.search-btn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-800);
  font-size: 1.1rem;
  transition: var(--transition);
}

.search-btn:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.05); }

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ── Ad Banner Top ── */
.ad-banner-top {
  margin: 20px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.ad-banner-top .ad-banner {
  padding: 18px;
}

/* ── Section ── */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1rem;
}

/* ── Tools Grid ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ── Tool Card ── */
.tool-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin-bottom: 24px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: white;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 
    10px 15px 30px rgba(0,0,0,0.08),
    inset 0 -8px 0 rgba(0,0,0,0.05),
    inset 0 2px 5px rgba(255,255,255,0.9);
  animation: float 4s ease-in-out infinite;
  overflow: visible;
}

.tool-icon img {
    width: 90%; height: 90%; object-fit: contain;
}

.tool-card:hover .tool-icon {
  transform: translateY(-12px) rotateY(15deg) scale(1.1);
  box-shadow: 
    20px 30px 45px rgba(0,0,0,0.12),
    inset 0 -2px 0 rgba(0,0,0,0.05);
}

.icon-red { background: linear-gradient(135deg, #fff 0%, #fee2e2 100%) !important; border-bottom: 4px solid #fecaca !important; }
.icon-blue { background: linear-gradient(135deg, #fff 0%, #e0f2fe 100%) !important; border-bottom: 4px solid #bae6fd !important; }
.icon-orange { background: linear-gradient(135deg, #fff 0%, #ffedd5 100%) !important; border-bottom: 4px solid #fed7aa !important; }
.icon-purple { background: linear-gradient(135deg, #fff 0%, #f5f3ff 100%) !important; border-bottom: 4px solid #ddd6fe !important; }
.icon-green { background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%) !important; border-bottom: 4px solid #dcfce7 !important; }
.icon-indigo { background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%) !important; border-bottom: 4px solid #c7d2fe !important; }
.icon-teal { background: linear-gradient(135deg, #fff 0%, #f0fdfa 100%) !important; border-bottom: 4px solid #ccfbf1 !important; }


.tool-icon::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: -5px; bottom: -5px;
  background: inherit;
  filter: brightness(0.9);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.3;
  transition: var(--transition);
}

.tool-card:hover .tool-icon {
  transform: translateY(-5px) rotateX(10deg) rotateY(-5deg);
  box-shadow: 
    8px 15px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 15px rgba(255, 255, 255, 0.8);
}

.tool-card:hover .tool-icon::before {
  opacity: 0.6;
  transform: translate(3px, 3px);
}

.tool-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: 18px;
}

.tool-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  transition: var(--transition);
}

.tool-card-link:hover { gap: 10px; }

/* ── Category Pills ── */
.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.pill {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  transition: var(--transition);
  cursor: pointer;
}

.pill:hover, .pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--gray-900);
}

/* ── Tool Page Layout ── */
.tool-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 40px 0 60px;
  align-items: start;
}
.tool-sidebar {
  position: sticky;
  top: 88px;
}

.ad-sidebar {
  padding: 100px 20px;
  margin-bottom: 20px;
}

/* ── Tool Container ── */
.tool-container {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}

.tool-header-icon {
  width: 70px; height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  position: relative;
  background: white;
  box-shadow: 
    10px 15px 30px rgba(0,0,0,0.1),
    inset 0 0 10px rgba(255,255,255,0.5);
  border: 1px solid var(--gray-100);
}

.tool-header-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0));
    z-index: -1;
}

.tool-header-info h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.tool-header-info p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ── Form Elements ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}

textarea.form-control { min-height: 150px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 44px;
  transition: var(--transition);
  position: relative;
}

.btn:active { transform: scale(0.97); }

/* Loading state */
.btn--loading {
  opacity: 0.75;
  pointer-events: none;
  cursor: not-allowed;
}

.btn--loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 6px;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: var(--gray-900);
  box-shadow: 0 4px 12px rgba(245,197,24,0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,197,24,0.4);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover { background: var(--gray-200); }

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-danger {
  background: var(--error);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
}

.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ── Output Box ── */
.output-box {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 120px;
  font-size: 0.95rem;
  color: var(--gray-700);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
}

.output-box.has-content {
  border-color: var(--primary);
  background: rgba(245,197,24,0.04);
}

.output-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Stats Chips ── */
.stats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.stat-chip {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  min-width: 90px;
}

.stat-chip strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
}

.stat-chip span {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray-400);
  padding: 16px 0 0;
}

.breadcrumb a { color: var(--gray-500); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { color: var(--gray-300); }

/* ── Footer ── */
.footer {
  margin-top: auto;
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
}

/* ── Back to home link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 20px;
  transition: var(--transition);
  padding: 8px 0;
}

.back-link:hover { color: var(--primary-dark); gap: 10px; }

/* ── Info Box ── */
.info-box {
  background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ── Range Input ── */
input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  border-radius: 100px;
}

/* ── Result Card ── */
.result-card {
  background: linear-gradient(135deg, #fffef7, #fffce8);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-top: 16px;
}

.result-card .result-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.result-card .result-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #fffdf0, #fff8d6);
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-100);
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--gray-500);
  max-width: 560px;
}

/* ── Prose (about, privacy, etc.) ── */
.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 36px 0 12px;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 24px 0 10px;
}

.prose p, .prose li {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 14px;
}

.prose ul { padding-left: 20px; }
.prose ul li { list-style: disc; }

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.contact-info-icon {
  width: 44px; height: 44px;
  background: rgba(245,197,24,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 3px;
}

.contact-info-text span {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ── Notification ── */
.notification {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification.show { transform: translateY(0); opacity: 1; }
.notification.success { background: var(--success); }
.notification.error { background: var(--error); }

/* ── Toggle (for settings) ── */
.toggle-group {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 4px;
}

.toggle-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: var(--transition);
}

.toggle-btn.active {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

/* ── File Drop Zone ── */
.drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: var(--gray-50);
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(245,197,24,0.05);
}

.drop-zone-icon { font-size: 3rem; margin-bottom: 16px; }

.drop-zone h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.drop-zone p {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}

/* ── Tags ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  background: rgba(245,197,24,0.15);
  color: #8a6d00;
  border: 1px solid rgba(245,197,24,0.3);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tag .remove-tag {
  cursor: pointer;
  opacity: 0.7;
  font-size: 1rem;
  line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .tool-page { grid-template-columns: 1fr; }
  .tool-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .navbar-inner { padding: 0 16px; }
  .nav-links { display: none; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--gray-100); padding: 12px 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { padding: 50px 0 50px; }
  .stats-bar { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .tool-container { padding: 20px; }
  .btn-group { gap: 8px; }
  .page-hero { padding: 36px 0; }
  .page-hero h1 { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.6rem; }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-in { animation: fadeInUp 0.5s ease forwards; }

.loader {
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Progress Bar ── */
.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* ── Highlight ── */
mark {
  background: rgba(245,197,24,0.3);
  color: inherit;
  border-radius: 3px;
  padding: 1px 2px;
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.p-4 { padding: 16px; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }

/* Tool Icon Colors */
.icon-blue { background: rgba(59,130,246,0.12); }
.icon-purple { background: rgba(139,92,246,0.12); }
.icon-green { background: rgba(16,185,129,0.12); }
.icon-orange { background: rgba(245,158,11,0.12); }
.icon-pink { background: rgba(236,72,153,0.12); }
.icon-yellow { background: rgba(245,197,24,0.15); }
.icon-red { background: rgba(239,68,68,0.12); }
.icon-teal { background: rgba(20,184,166,0.12); }
.icon-indigo { background: rgba(99,102,241,0.12); }

/* ── Toast Notifications ── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-icon { font-size: 1.1rem; }

/* ── Tool Content Styles (SEO) ── */
.tool-details {
  margin-top: 60px;
  border-top: 1px solid var(--gray-100);
  padding-top: 40px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.info-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-to-steps {
  counter-reset: steps-counter;
  padding: 0;
}

.how-to-steps li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 24px;
  list-style: none !important;
}

.how-to-steps li::before {
  counter-increment: steps-counter;
  content: counter(steps-counter);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  background: var(--primary);
  color: var(--gray-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.how-to-steps li strong {
  display: block;
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.how-to-steps li p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin: 0;
}

/* ── FAQ Accordion ── */
.faq-section {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  margin-top: 40px;
  box-shadow: var(--shadow-sm);
}

.faq-section h2 {
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-bottom: 30px;
  font-weight: 800;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
  padding: 16px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  gap: 20px;
}

.faq-question h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
  transition: var(--transition);
}

.faq-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.faq-answer p {
  padding-top: 15px;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 10px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item.active .faq-question h3 {
  color: var(--primary-dark);
}

/* ── Ad Placeholders ── */
.ad-banner {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 20px 0;
}

.ad-sidebar {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.logo img {
  display: block;
  max-height: 55px;
  width: auto;
  transition: var(--transition);
}
.logo:hover img {
  transform: scale(1.05);
}

/* --- CATEGORY ICON COLORS (Improved Visuals) --- */
.icon-red { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important; color: #dc2626 !important; }
.icon-blue { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important; color: #0284c7 !important; }
.icon-orange { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%) !important; color: #ea580c !important; }
.icon-purple { background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 100%) !important; color: #7c3aed !important; }
.icon-green { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important; color: #16a34a !important; }
.icon-indigo { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important; color: #4f46e5 !important; }
.icon-yellow { background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%) !important; color: #ca8a04 !important; }
.icon-teal { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%) !important; color: #0d9488 !important; }
.icon-pink { background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%) !important; color: #db2777 !important; }
.icon-gray { background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important; color: #4b5563 !important; }
.icon-teal { background: #f0fdfa !important; color: #0d9488 !important; border-radius: 12px; }
.icon-pink { background: #fdf2f8 !important; color: #db2777 !important; border-radius: 12px; }
.icon-yellow { background: #fefce8 !important; color: #ca8a04 !important; border-radius: 12px; }

/* Improved Card Link Styles */
.tool-card-link { font-weight: 700; color: #d09000; letter-spacing: -0.2px; }
.tool-card:hover .tool-card-link { gap: 10px; }

/* Better Search UI Integration */
.search-wrap { border-radius: 100px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.06); }
.search-btn { border-radius: 50%; right: 10px; width: 48px; height: 48px; background: #f5c518; }
.search-btn:hover { background: #e0b015; transform: translateY(-50%) scale(1.05); }
.search-btn::after { font-weight: 900; }

/* ── Floating Feedback Widget ── */
.feedback-fab {
  position: fixed; bottom: 30px; right: 30px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #1e293b;
  display: flex !important; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2), inset 0 0 15px rgba(255,255,255,0.4);
  cursor: pointer; z-index: 2000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255,255,255,0.3);
}
.feedback-fab:hover { transform: scale(1.1) rotate(15deg); box-shadow: 0 15px 35px rgba(0,0,0,0.25); }

.feedback-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.feedback-modal.open { opacity: 1; pointer-events: auto; }

.feedback-inner {
  background: white; width: 95%; max-width: 450px;
  padding: 30px; border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transform: translateY(20px); transition: transform 0.3s ease;
}
.feedback-modal.open .feedback-inner { transform: translateY(0); }

.feedback-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.feedback-header h2 { font-size: 1.4rem; font-weight: 800; color: #1e293b; }
.close-feedback { cursor: pointer; font-size: 1.5rem; color: #94a3b8; }

.feedback-form label { display: block; font-weight: 600; font-size: 0.875rem; color: #475569; margin-bottom: 8px; }
.feedback-form textarea, .feedback-form select, .feedback-form input {
  width: 100%; padding: 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; margin-bottom: 20px; font-family: inherit; font-size: 0.95rem;
}

/* ── Quick Access & Pinned ── */
#quickAccessSection { display: none; margin-bottom: 40px; padding: 30px; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 24px; }
#quickAccessSection.visible { display: block; }
.quick-title { font-size: 1.25rem; font-weight: 800; color: #1e293b; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.pin-btn {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: #cbd5e1;
  cursor: pointer; z-index: 10; opacity: 1;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1.5px solid #f1f5f9;
}
.pin-btn:hover { color: #0284c7; border-color: #0284c7; }
.pin-btn.pinned { color: #f59e0b; border-color: #f59e0b; background: #fffbeb; }
.pin-btn.pinned i::before { content: "\\f08d"; } /* Solid pin */

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}
