@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Reset & Variables --- */
:root {
  /* Neon Navy Dark Theme (default) */
  --bg-gradient: linear-gradient(135deg, #060b1a 0%, #0d1b3e 40%, #0a0f2e 70%, #080c1a 100%);
  --bg-color: #080c16;
  --glass-bg: rgba(15, 25, 55, 0.55);
  --glass-bg-strong: rgba(8, 12, 28, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(91, 141, 239, 0.65);
  --glass-shine: rgba(255, 255, 255, 0.06);
  --glass-blur: 24px;
  --text-primary: #fafafa;
  --text-muted: #a1a1aa;
  --primary-blue: #5b8def;
  --blue-hover: #7ba7ff;
  --accent-glow: rgba(91, 141, 239, 0.45);
  --shadow-glass: 0 16px 40px rgba(0, 0, 0, 0.85), inset 1px 1px 0px rgba(255, 255, 255, 0.08);

  /* Legacy compat */
  --card-bg: rgba(14, 7, 28, 0.72);
  --border-color: rgba(255, 255, 255, 0.18);
  --shadow-dark: rgba(0, 0, 0, 0.6);
  --inset-light: rgba(255, 255, 255, 0.12);
  --inset-dark: rgba(0, 0, 0, 0.5);

  /* Badges */
  --badge-hot-bg: rgba(239, 68, 68, 0.2);
  --badge-hot-text: #f87171;
  --badge-new-bg: rgba(168, 85, 247, 0.2);
  --badge-new-text: #c084fc;
  --badge-free-bg: rgba(34, 197, 94, 0.18);
  --badge-free-text: #4ade80;
  --badge-top-bg: rgba(251, 191, 36, 0.18);
  --badge-top-text: #fbbf24;

  --font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

html.theme-light {
  /* Light theme -> Premium Sunset Orchid */
  --bg-gradient: linear-gradient(135deg, #fae8ff 0%, #fdf4ff 35%, #faf5ff 65%, #f5f3ff 100%);
  --bg-color: #fdf4ff;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(200, 150, 220, 0.35);
  --glass-border-hover: rgba(217, 70, 239, 0.68);
  --glass-shine: rgba(255, 255, 255, 0.95);
  --glass-blur: 20px;
  --text-primary: #2e1065;
  --text-muted: #701a75;
  --primary-blue: #c026d3;
  --blue-hover: #d946ef;
  --accent-glow: rgba(192, 38, 211, 0.25);
  --shadow-glass: 0 16px 40px rgba(120, 80, 160, 0.2), inset 1px 1px 0px rgba(255, 255, 255, 0.85);

  --card-bg: rgba(255, 255, 255, 0.72);
  --border-color: rgba(200, 150, 220, 0.35);
  --shadow-dark: rgba(120, 80, 160, 0.12);
  --inset-light: rgba(255, 255, 255, 0.9);
  --inset-dark: rgba(120, 80, 160, 0.08);

  --badge-hot-bg: rgba(239, 68, 68, 0.15);
  --badge-hot-text: #dc2626;
  --badge-new-bg: rgba(192, 38, 211, 0.15);
  --badge-new-text: #c026d3;
  --badge-free-bg: rgba(22, 163, 74, 0.15);
  --badge-free-text: #16a34a;
  --badge-top-bg: rgba(217, 119, 6, 0.15);
  --badge-top-text: #b45309;
}

html.theme-forest {
  --bg-gradient: linear-gradient(135deg, #051208 0%, #0a2116 35%, #061a10 65%, #040e08 100%);
  --bg-color: #061008;
  --glass-bg: rgba(6, 26, 14, 0.72);
  --glass-bg-strong: rgba(3, 16, 9, 0.88);
  --glass-border: rgba(52, 211, 153, 0.28);
  --glass-border-hover: rgba(52, 211, 153, 0.68);
  --glass-shine: rgba(255, 255, 255, 0.12);
  --glass-blur: 24px;
  --text-primary: #e0fdf4;
  --text-muted: #6ee7b7;
  --primary-blue: #10b981;
  --blue-hover: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.45);
  --shadow-glass: 0 16px 40px rgba(0, 30, 15, 0.65), inset 1px 1px 0px rgba(255, 255, 255, 0.15);

  --card-bg: rgba(6, 26, 14, 0.72);
  --border-color: rgba(52, 211, 153, 0.28);
  --shadow-dark: rgba(0, 0, 0, 0.6);
  --inset-light: rgba(52, 211, 153, 0.12);
  --inset-dark: rgba(0, 0, 0, 0.6);

  --badge-hot-bg: rgba(239, 68, 68, 0.2);
  --badge-hot-text: #fda4af;
  --badge-new-bg: rgba(16, 185, 129, 0.2);
  --badge-new-text: #6ee7b7;
  --badge-free-bg: rgba(16, 185, 129, 0.18);
  --badge-free-text: #a7f3d0;
  --badge-top-bg: rgba(252, 211, 77, 0.18);
  --badge-top-text: #fcd34d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Ambient orbs for glassmorphism depth */
body::before {
  content: '';
  position: fixed;
  top: -20vh;
  left: -10vw;
  width: 60vw;
  height: 60vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed;
  bottom: -15vh;
  right: -10vw;
  width: 50vw;
  height: 50vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: orbFloat 15s ease-in-out infinite alternate-reverse;
}
@keyframes orbFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(4vw, 4vh) scale(1.15); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-blue); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}
h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
h2 { font-size: 22px; margin-bottom: 20px; border-bottom: 1px solid var(--glass-border); padding-bottom: 8px; }
a { color: var(--primary-blue); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--blue-hover); }

/* ═══════════════════════════════════════════════════
   GLASSMORPHISM CARD SYSTEM
═══════════════════════════════════════════════════ */
.skeu-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-glass);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Glass shine overlay */
.skeu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--glass-shine) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Sliding glare glint */
.skeu-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 55%
  );
  transform: rotate(45deg);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  z-index: 2;
}

html.theme-light .skeu-card::after {
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 55%
  );
}

.skeu-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glass), 0 0 30px var(--accent-glow);
  background: var(--glass-bg-strong);
}

.skeu-card:hover::after {
  transform: translate(110%, 110%) rotate(45deg);
}

/* Featured Card */
.skeu-card.featured {
  border: 1.5px solid var(--primary-blue);
  box-shadow: var(--shadow-glass), 0 0 20px var(--accent-glow);
}
.skeu-card.featured:hover {
  box-shadow: var(--shadow-glass), 0 0 40px var(--accent-glow);
}

/* Inset Elements */
.skeu-inset {
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}
html.theme-light .skeu-inset {
  background: rgba(255, 255, 255, 0.35);
}

/* ═══════════════════════════════════════════════════
   GLASSMORPHISM BUTTONS
═══════════════════════════════════════════════════ */
.skeu-btn {
  background: var(--primary-blue);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}
.skeu-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
}
.skeu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3);
  filter: brightness(1.1);
}
.skeu-btn:active { transform: translateY(1px); }

.skeu-btn-alt {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted) !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-glass);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.skeu-btn-alt:hover {
  color: var(--text-primary) !important;
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass), 0 0 16px var(--accent-glow);
  background: var(--glass-bg-strong);
}
.skeu-btn-alt:active { transform: translateY(1px); }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.07em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge-hot { background: var(--badge-hot-bg); color: var(--badge-hot-text); border: 1px solid currentColor; }
.badge-new { background: var(--badge-new-bg); color: var(--badge-new-text); border: 1px solid currentColor; }
.badge-free { background: var(--badge-free-bg); color: var(--badge-free-text); border: 1px solid currentColor; }
.badge-top { background: var(--badge-top-bg); color: var(--badge-top-text); border: 1px solid currentColor; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ═══════════════════════════════════════════════════
   GLASSMORPHISM HEADER
═══════════════════════════════════════════════════ */
header {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-section a { display: flex; align-items: center; gap: 10px; }

.logo-icon-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo-section a {
  perspective: 800px;
}
.logo-section a:hover .logo-icon-img {
  transform: perspective(800px) rotateY(180deg) scale(1.18);
  box-shadow: 0 0 25px var(--accent-glow);
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-text span {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--primary-blue);
  -webkit-text-fill-color: var(--primary-blue);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.12em;
  margin-left: 4px;
  backdrop-filter: blur(6px);
}

.nav-links { display: flex; gap: 24px; list-style: none; }

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(8px);
}
.nav-links a.active {
  background: rgba(var(--primary-blue), 0.15);
  color: var(--primary-blue);
  border: 1px solid var(--glass-border-hover);
  -webkit-text-fill-color: var(--primary-blue);
}


/* Hero Section */
.hero {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.hero-tagline {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--primary-blue);
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.hero-desc {
  max-width: 600px;
  margin: 15px auto 30px;
  color: var(--text-muted);
  font-size: 16px;
}

/* Search Bar (Skeumorphic) */
.search-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input-container {
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 
    0 4px 10px var(--shadow-dark),
    inset 3px 3px 6px var(--inset-light),
    inset -3px -3px 6px var(--inset-dark);
  transition: all 0.2s ease;
}

.search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 12px 18px;
  font-size: 16px;
  outline: none;
  font-family: var(--font-family);
}

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

.search-icon-btn {
  background: var(--primary-blue);
  border: none;
  border-radius: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 2px 2px 4px rgba(255, 255, 255, 0.3),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2);
}

/* Search Dropdown / Results List */
.search-results-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--glass-shine); }
.search-result-name { font-weight: 500; color: var(--text-primary); }
.search-result-cat {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

/* Category Grid & Cards */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Model Selector Panel */
.model-block {
  padding: 30px;
  margin-top: 40px;
}

.model-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--glass-border);
}

.model-pill {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}
.model-pill:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  background: var(--glass-bg-strong);
}
.model-pill.active {
  background: var(--primary-blue);
  color: #fff !important;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.model-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.model-card {
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 
    inset 3px 3px 6px var(--inset-dark),
    inset -3px -3px 6px var(--inset-light);
}

html.theme-light .model-card {
  background-color: rgba(0, 0, 0, 0.03);
  box-shadow: 
    inset 3px 3px 6px var(--inset-dark),
    inset -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.model-card-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.model-card-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.model-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Category Grid on Home */
.category-card {
  text-align: center;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.category-icon {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--primary-blue);
}

.category-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Tool Grid Cards */
.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tool-card-title-group {
  flex-grow: 1;
}

.tool-card-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-card-tagline {
  font-size: 13px;
  color: var(--primary-blue);
  margin-top: 2px;
  font-weight: 500;
}

.tool-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}

.tool-card-meta {
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.tool-meta-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
  font-weight: 600;
}

.tool-meta-pricing {
  color: var(--text-muted);
}

.tool-meta-pricing.free {
  color: #86efac;
}

.tool-card-footer-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.tool-card-footer-btns a {
  flex: 1;
  font-size: 12px;
  padding: 8px;
}

/* AdSense Slots */
.adsense-placeholder {
  margin: 30px auto;
  background: repeating-linear-gradient(
    45deg,
    #111827,
    #111827 10px,
    #161e31 10px,
    #161e31 20px
  );
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.adsense-placeholder::before {
  content: 'Advertisement';
  background-color: var(--bg-color);
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  font-size: 10px;
  margin-bottom: 6px;
}

.ads-728 {
  width: 728px;
  height: 90px;
}

.ads-336 {
  width: 336px;
  height: 280px;
}

.ads-link-unit {
  width: 100%;
  height: 50px;
}

/* Detail Tool Page styling */
.tool-detail-header {
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.tool-detail-title-group h1 {
  font-size: 38px;
}

.tool-detail-tagline {
  font-size: 18px;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.tool-detail-meta-box {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tool-detail-meta-item {
  background-color: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--border-color);
}

.tool-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.tool-detail-section {
  margin-bottom: 30px;
}

.tool-detail-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.pro-con-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pro-box, .con-box {
  padding: 20px;
  border-radius: 10px;
}

.pro-box {
  background-color: rgba(26, 46, 26, 0.2);
  border: 1px solid rgba(134, 239, 172, 0.2);
}

.con-box {
  background-color: rgba(59, 29, 29, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.pro-con-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-box .pro-con-title { color: #86efac; }
.con-box .pro-con-title { color: #f87171; }

.pro-con-list {
  list-style: none;
}

.pro-con-list li {
  margin-bottom: 8px;
  font-size: 14px;
  position: relative;
  padding-left: 18px;
}

.pro-con-list li::before {
  position: absolute;
  left: 0;
  font-weight: bold;
}

.pro-box .pro-con-list li::before {
  content: '✓';
  color: #86efac;
}

.con-box .pro-con-list li::before {
  content: '✗';
  color: #f87171;
}

.rating-breakdown-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

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

.rating-bar-track {
  width: 150px;
  height: 8px;
  background-color: rgba(0,0,0,0.3);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary-blue), #60a5fa);
  border-radius: 4px;
}

.rating-bar-score {
  font-size: 14px;
  font-weight: 600;
  width: 30px;
  text-align: right;
}

/* Category Filter Pills */
.filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-pill {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 
    0 4px 8px var(--shadow-dark),
    inset 2px 2px 4px var(--inset-light),
    inset -2px -2px 4px var(--inset-dark);
  transition: all 0.2s ease;
}

.filter-pill.active {
  background-color: var(--primary-blue);
  color: #fff !important;
  border-color: var(--primary-blue);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 2px 2px 4px rgba(255, 255, 255, 0.3),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2);
}

/* Models page table style */
.model-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  text-align: left;
}

.model-table th, .model-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.model-table th {
  font-weight: 600;
  color: var(--primary-blue);
  background-color: rgba(0, 0, 0, 0.2);
}

.model-table tr:hover {
  background-color: rgba(255,255,255,0.01);
}

/* FAQ section */
.faq-item {
  margin-bottom: 25px;
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 
    0 4px 10px var(--shadow-dark),
    inset 2px 2px 4px var(--inset-light),
    inset -2px -2px 4px var(--inset-dark);
}

.faq-question {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-answer {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Form Styles */
.submit-form {
  max-width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  background-color: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  box-shadow: 
    inset 3px 3px 6px var(--inset-dark),
    inset -3px -3px 6px var(--inset-light);
  border-radius: 16px;
  padding: 14px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

html.theme-light .form-input, html.theme-light .form-textarea {
  background-color: rgba(0, 0, 0, 0.03);
  box-shadow: 
    inset 3px 3px 6px var(--inset-dark),
    inset -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 
    inset 3px 3px 6px var(--inset-dark),
    inset -3px -3px 6px var(--inset-light),
    0 0 10px rgba(59, 130, 246, 0.2);
}

/* Footer styling */
footer {
  background-color: #050811;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 15px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #fff;
}

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


/* --- Theme Toggle Switch --- */
.theme-switch-container {
  display: flex;
  gap: 6px;
  padding: 4px;
  background-color: rgba(0, 0, 0, 0.2);
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.45);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  margin-left: 10px;
}

html.theme-light .theme-switch-container {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1);
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0;
  outline: none;
}

.theme-toggle-btn:hover {
  transform: scale(1.15);
  background-color: rgba(255, 255, 255, 0.08);
}

html.theme-light .theme-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn.active {
  background-color: var(--primary-blue);
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 2px 2px 4px rgba(255, 255, 255, 0.35);
}

/* Page Background Fix */
body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Nav links styling update for themes */
header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 
    0 4px 15px var(--shadow-dark),
    inset 0 1px 0 var(--inset-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  box-shadow: 
    0 -4px 15px var(--shadow-dark),
    inset 0 1px 0 var(--inset-light);
}

.model-table th {
  background-color: rgba(0, 0, 0, 0.12);
  border-bottom: 2px solid var(--border-color);
}

html.theme-light .model-table th {
  background-color: rgba(0, 0, 0, 0.04);
}

/* --- Header Search styling --- */
.header-search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.header-search-input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px 8px 32px;
  border-radius: 16px;
  font-size: 13px;
  width: 140px;
  transition: all 0.3s ease;
  outline: none;
  font-family: var(--font-family);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-search-input:focus {
  width: 220px;
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-strong);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.header-search-icon {
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Header search results dropdown */
.header-search-results {
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: var(--shadow-glass);
}

.header-search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease;
}
.header-search-result-item:last-child { border-bottom: none; }
.header-search-result-item:hover { background: var(--glass-shine); }
.header-search-result-name { font-weight: 600; color: var(--text-primary); }
.header-search-result-cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-blue);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

/* Search Pricing Badges */
.search-pricing-badge, .header-search-pricing-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0.05em;
  line-height: 1;
}

.search-pricing-badge.free, .header-search-pricing-badge.free,
.search-pricing-badge.freemium, .header-search-pricing-badge.freemium {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

html.theme-light .search-pricing-badge.free, html.theme-light .header-search-pricing-badge.free,
html.theme-light .search-pricing-badge.freemium, html.theme-light .header-search-pricing-badge.freemium {
  background-color: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.search-pricing-badge.paid, .header-search-pricing-badge.paid {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

html.theme-light .search-pricing-badge.paid, html.theme-light .header-search-pricing-badge.paid {
  background-color: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

/* Hide header search bar on very small devices to avoid overcrowding */
@media (max-width: 480px) {
  .header-search-container {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════
   PREMIUM MOTION & ANIMATION SYSTEM
   ═══════════════════════════════════════════════════ */

/* Fade-In-Up Keyframes */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown Slide-Down Keyframes */
@keyframes dropdownSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Breathing Neon Glow Keyframes */
@keyframes borderGlowPulse {
  0% {
    box-shadow: var(--shadow-glass), 0 0 15px rgba(91, 141, 239, 0.35);
    border-color: var(--glass-border);
  }
  50% {
    box-shadow: var(--shadow-glass), 0 0 35px var(--accent-glow);
    border-color: var(--glass-border-hover);
  }
  100% {
    box-shadow: var(--shadow-glass), 0 0 15px rgba(91, 141, 239, 0.35);
    border-color: var(--glass-border);
  }
}

/* Apply Entrance Animations to Hero Elements */
.hero .hero-tagline {
  animation: fadeInUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.05s;
}

.hero h1 {
  animation: fadeInUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.12s;
}

.hero .hero-desc {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.18s;
}

.hero .search-wrapper {
  animation: fadeInUp 0.9s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.24s;
}

/* Apply Entrance Animations to Cards & Blocks */
.skeu-card {
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

/* Stagger Grid Items Entrance */
.grid-3 > *:nth-child(1), .grid-4 > *:nth-child(1) { animation-delay: 0.05s; }
.grid-3 > *:nth-child(2), .grid-4 > *:nth-child(2) { animation-delay: 0.1s; }
.grid-3 > *:nth-child(3), .grid-4 > *:nth-child(3) { animation-delay: 0.15s; }
.grid-3 > *:nth-child(4), .grid-4 > *:nth-child(4) { animation-delay: 0.2s; }
.grid-3 > *:nth-child(5), .grid-4 > *:nth-child(5) { animation-delay: 0.25s; }
.grid-3 > *:nth-child(6), .grid-4 > *:nth-child(6) { animation-delay: 0.3s; }
.grid-3 > *:nth-child(n+7), .grid-4 > *:nth-child(n+7) { animation-delay: 0.35s; }

/* Apply Breathing Glow to Featured Cards */
.skeu-card.featured {
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) both, borderGlowPulse 4s infinite ease-in-out;
}

/* Tab Switch Animations (Triggered dynamically on innerHTML replacement) */
.model-card {
  animation: fadeInUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}
.model-card:nth-child(1) { animation-delay: 0.02s; }
.model-card:nth-child(2) { animation-delay: 0.06s; }
.model-card:nth-child(3) { animation-delay: 0.1s; }
.model-card:nth-child(4) { animation-delay: 0.14s; }

/* Search Results Overlay entrance transition */
.search-results-overlay, .header-search-results {
  animation: dropdownSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top center;
}

/* Nav Link Hover Underline Indicator Effect */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Soft transition for model selection pills */
.model-pill {
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}
.model-pill:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 20px var(--accent-glow);
  background: var(--primary-blue);
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   CURSOR HOVER & PLACEMENT ANIMATIONS (INTERACTIVE FEEDBACK)
   ═══════════════════════════════════════════════════ */

/* Category Card Specific Hover Animations */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 30px 20px;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.category-icon {
  font-size: 38px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.category-card:hover .category-icon {
  transform: translateY(-8px) scale(1.25) rotate(8deg);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.category-card-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.category-card:hover .category-card-name {
  color: var(--primary-blue);
}

/* Tool Card Hover Internal Animations */
.tool-card {
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.tool-card:hover .tool-card-name {
  color: var(--primary-blue);
  text-shadow: 0 0 10px rgba(91, 141, 239, 0.4);
}

/* Make visit buttons pop when card itself is hovered */
.tool-card:hover .skeu-btn {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Sun/Forest theme togglers hover animation */
.theme-toggle-btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.theme-toggle-btn:hover {
  transform: scale(1.25) rotate(15deg);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

/* --- Burger Menu Button --- */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Nav Drawer Overlay --- */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Mobile Nav Drawer --- */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--bg-gradient);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  box-sizing: border-box;
}

.mobile-nav-overlay.active .mobile-nav-drawer {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.mobile-nav-header .logo-text {
  font-size: 20px;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Mobile Search Inside Drawer */
.mobile-search-container {
  position: relative;
  width: 100%;
}

.mobile-search-container .header-search-input {
  width: 100%;
  box-sizing: border-box;
  padding-left: 35px;
}

.mobile-search-container .header-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.mobile-search-container .header-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin-top: 8px;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Mobile Nav Links */
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
}

.mobile-nav-links li a {
  display: block;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
  color: var(--text-primary);
  background: var(--glass-bg);
  border-left: 3px solid var(--primary-blue);
  padding-left: 12px;
}

/* Mobile Theme Toggles Section */
.mobile-theme-section {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-theme-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.mobile-theme-section .theme-switch-container {
  margin-left: 0;
  justify-content: space-around;
}

/* --- Responsive Table Wrapper --- */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-color);
}

/* Ensure table header cells and regular cells don't wrap too aggressively */
.model-table th, .model-table td {
  white-space: nowrap;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  .burger-menu {
    display: flex;
  }
  .header-nav .nav-links,
  .header-nav .header-search-container,
  .header-nav .theme-switch-container {
    display: none !important;
  }
  .header-container {
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .model-display {
    grid-template-columns: 1fr;
  }
  .tool-detail-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ads-728 {
    width: 100%;
    height: auto;
    aspect-ratio: 728/90;
  }
  .tool-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .pro-con-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}




