/* Premium How to Use styles without container */
.how-to-use-premium-title {
  color: #ffd75a;
  font-size: 1.13rem;
  font-weight: 700;
  margin: 0 0 0.7em 0;
  letter-spacing: 0.01em;
  text-align: left;
}
.how-to-use-premium-list {
  color: var(--text-primary);
  font-size: 1em;
  line-height: 1.6;
  padding-left: 1.1em;
  margin-bottom: 0;
  text-align: left;
}
.how-to-use-premium-list li {
  margin-bottom: 0.45em;
  padding-left: 0.05em;
  position: relative;
}
.how-to-use-premium-list li::marker {
  color: #ffd75a;
  font-weight: 700;
}
/* Premium horizontal rule for section separation */
.premium-hr {
  border: 0;
  border-top: 1.5px solid rgba(255,215,90,0.22);
  margin: 28px 0 24px 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(255,215,90,0.18) 0%, rgba(59,130,246,0.10) 100%);
  height: 0;
}
/* Premium How to Use section */
.how-to-use-section {
  background: linear-gradient(120deg, #232946 60%, #1e293b 100%);
  border: 1.5px solid rgba(255, 215, 90, 0.18);
  box-shadow: 0 4px 24px 0 rgba(255, 215, 90, 0.08), 0 1.5px 8px 0 rgba(60,80,120,0.04);
  border-radius: 20px;
  max-width: 540px;
  margin: 28px auto 0 auto;
  padding: 2.2rem 2rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.how-to-use-section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,215,90,0.18) 0%, transparent 80%);
  z-index: 0;
}
.how-to-use-section h2.section-title {
  color: #ffd75a;
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 1.1em;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}
.how-to-use-section ol {
  color: var(--text-primary);
  font-size: 1.09em;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  padding-left: 1.3em;
}
.how-to-use-section ol li {
  margin-bottom: 0.7em;
  padding-left: 0.1em;
}
/* Ensure How to Use section text matches main tool container */
.how-to-use-section, .how-to-use-section * {
  color: var(--text-primary) !important;
}
:root {
  --bg-main: #0b0e14;
  --bg-navbar: #151a23;
  --bg-sidebar: #0f131b;
  --bg-card: #121826;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-secondary: #22d3ee;
  --glow-shadow: rgba(59, 130, 246, 0.55);
  --soft-border: rgba(148, 163, 184, 0.22);
  --ease: 220ms cubic-bezier(.22, .61, .36, 1);

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;

  --elev-1: 0 10px 36px rgba(0, 0, 0, 0.35);
  --elev-2: 0 20px 60px rgba(7, 11, 20, 0.42);
  --elev-3: 0 25px 70px rgba(3, 8, 17, 0.65);

  --btn-bg: rgba(59, 130, 246, 0.10);
  --btn-border: rgba(59, 130, 246, 0.58);
  --btn-hover-bg: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(34, 211, 238, 0.92));
  --btn-hover-text: #04111f;

  /* Enhanced visibility colors for gradients */
  --gradient-text-primary: #ffffff;
  --gradient-text-secondary: #f8f9fa;
  --gradient-text-muted: #e9ecef;
  --gradient-accent: #00d4ff;

  --topbar-h: 72px;
  --home-hero-stack: 0px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: Inter, "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(34, 211, 238, 0.13), transparent 26%),
    radial-gradient(circle at 92% 14%, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(160deg, #090c12 0%, var(--bg-main) 42%, #090d17 100%);
  color: var(--text-primary);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

::selection {
  background: rgba(34, 211, 238, 0.22);
  color: var(--text-primary);
}

:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent-secondary) 70%, white 10%);
  outline-offset: 3px;
}

/* Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.45) rgba(0, 0, 0, 0);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border: 2px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.38);
  border: 2px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg-navbar) 88%, transparent);
  border-bottom: 1px solid rgba(59, 130, 246, 0.28);
}

.topbar-inner {
  max-width: 1680px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

/* Tablet/compact widths: wrap instead of hiding items */
@media (max-width: 1100px) and (min-width: 881px) {
  .topbar-inner {
    flex-wrap: wrap;
    row-gap: .6rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: transform var(--ease);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: Inter, "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(
    to right, 
    #ffffff 20%, 
    #a5f3fc 30%, 
    #22d3ee 50%, 
    #a5f3fc 70%, 
    #ffffff 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Use filter instead of text-shadow to avoid clipping issues */
  filter: drop-shadow(0 4px 10px rgba(34, 211, 238, 0.3));
  animation: shine 3s linear infinite;
  display: inline-block;
}

@keyframes shine {
  from {
    background-position: 200% center;
  }
  to {
    background-position: 0% center;
  }
}

.brand-tagline {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(165, 243, 252, 0.85);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 1px;
  opacity: 0.9;
}

.top-nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
}

.top-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--ease);
}

.top-nav a:hover {
  color: var(--text-primary);
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  transform: scaleX(0);
}

/* Enhanced Visual Elements for Better Visibility */
.visual-diagram, 
.productivity-impact-chart, 
.workflow-comparison,
.data-types-visual {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.visual-diagram h3,
.productivity-impact-chart h3,
.workflow-comparison h3,
.data-types-visual h3 {
  color: var(--gradient-text-primary) !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
  letter-spacing: 0.5px !important;
}

/* Diagram/Image titles inside guides: centered + black (pill) */
.visual-diagram > h2,
.visual-diagram > h3,
.productivity-impact-chart > h2,
.productivity-impact-chart > h3,
.workflow-comparison > h2,
.workflow-comparison > h3,
.data-types-visual > h2,
.data-types-visual > h3 {
  display: table;
  width: fit-content;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 1.5rem auto !important;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0b1220 !important;
  text-shadow: none !important;
  text-align: center !important;
}

/* Explicitly visible title for diagrams on dark gradients */
.diag-title {
  display: block !important;
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  box-shadow: none !important;
  text-align: center !important;
  margin: 0 auto 1.5rem auto !important;
  padding: 0 !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
}

.visual-diagram p,
.productivity-impact-chart p,
.workflow-comparison p,
.data-types-visual p {
  color: var(--gradient-text-secondary) !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

.visual-diagram .chart-bar span,
.productivity-impact-chart .chart-bar span {
  color: #000000 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

/* Data Types Cards Enhancement */
.data-types-visual h4 {
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.data-types-visual code {
  font-weight: 600 !important;
  color: #2c3e50 !important;
  background: #ffffff !important;
  border: 1px solid #e1e8ed !important;
}

/* Workflow Comparison Enhancement */
.workflow-comparison div > div > div {
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Chart Percentage Labels */
.chart-percentage {
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  position: absolute !important;
  top: -30px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Enhanced Bar Chart Visibility */
.chart-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Better contrast for gradient backgrounds */
.gradient-enhanced {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  color: var(--gradient-text-primary) !important;
}

.gradient-enhanced-green {
  background: linear-gradient(135deg, #0f4c75 0%, #3282b8 100%) !important;
  color: var(--gradient-text-primary) !important;
}

.gradient-enhanced-purple {
  background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%) !important;
  color: var(--gradient-text-primary) !important;
}

/* Enhanced CTA Cards for Better Visibility */
.cta-card {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.cta-card h3 {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
  letter-spacing: 0.5px !important;
}

.cta-card p {
  color: #f8f9fa !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
  line-height: 1.6 !important;
}

.cta-card .btn-primary {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4) !important;
  padding: 0.75rem 2rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.cta-card .btn-primary:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6) !important;
}

/* Light Panel Utility for Blog Diagrams/Tables */
.light-panel {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.light-panel h2, 
.light-panel h3, 
.light-panel h4 {
  color: #0f172a !important;
  text-shadow: none !important;
}

.light-panel p {
  color: #475569 !important;
  text-shadow: none !important;
}

.light-panel table {
  width: 100%;
  border-collapse: collapse;
  color: #334155 !important;
}

.light-panel th {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 2px solid #e2e8f0 !important;
  font-weight: 700 !important;
}

.light-panel td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #475569 !important;
}

.light-panel b, 
.light-panel strong {
  color: #0f172a !important;
}

/* Enhanced Data Types Visual for Better Text Visibility */
.data-types-visual {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  color: #2c3e50 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  border: 1px solid #dee2e6 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.data-types-visual h3 {
  color: #2c3e50 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9) !important;
  letter-spacing: 0.3px !important;
}

.data-types-visual h4 {
  color: #495057 !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

.data-types-visual p {
  color: #6c757d !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7) !important;
}

/* Tool Interface Specific Enhancements */
.data-types-visual .toolbar button {
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  letter-spacing: 0.3px !important;
}

.data-types-visual .input-output h4 {
  color: #495057 !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

.data-types-visual .status-bar span {
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7) !important;
}

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  transform-origin: left;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 10px var(--glow-shadow);
  transition: transform var(--ease);
}

.top-nav a:hover::after {
  transform: scaleX(1);
}

/* Premium nav (desktop) */
@media (min-width: 881px) {
  .top-nav {
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: color-mix(in oklab, var(--bg-navbar) 78%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.28);
    gap: 0.25rem;
  }

  .top-nav a {
    color: rgba(241, 245, 249, 0.82);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
  }

  .top-nav a::after {
    display: none;
  }

  .top-nav a:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(34, 211, 238, 0.18);
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--accent-primary);
  transition: transform var(--ease), opacity var(--ease);
}

.app-shell {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  padding: 1rem;
  align-items: flex-start; /* Enable sticky children */
}

.sidebar {
  background: color-mix(in oklab, var(--bg-sidebar) 92%, transparent);
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-1);
  backdrop-filter: blur(8px);
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--topbar-h) - 2rem);
  transition: transform var(--ease), opacity var(--ease);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem .8rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.sidebar-head h2 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .4px;
  text-transform: uppercase;
}

.sidebar-collapse {
  display: none;
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: var(--accent-secondary);
  border-radius: 8px;
  padding: .2rem .45rem;
  cursor: pointer;
}

.sidebar-scroll {
  overflow-y: auto;
  padding: .9rem;
  scrollbar-width: thin;
}

.sidebar-group {
  margin-bottom: 1rem;
}

.sidebar-group h3 {
  font-size: .8rem;
  margin-bottom: .5rem;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: .7px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  margin-bottom: .5rem;
  background: var(--btn-bg);
  color: var(--text-secondary);
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  padding: .7rem .85rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--ease);
}

.sidebar-btn:hover {
  transform: translateX(5px) translateY(-1px);
  color: var(--btn-hover-text);
  background: var(--btn-hover-bg);
  border-color: rgba(34, 211, 238, 0.85);
  box-shadow: 
    0 10px 25px -5px rgba(59, 130, 246, 0.4),
    0 8px 10px -6px rgba(34, 211, 238, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.content-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 1rem;
}

.home-page .content-layout {
  grid-template-columns: 1fr;
}

.home-page .side-ad {
  display: none;
}

.home-page .tools-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 75svh;
}

.home-page .sidebar-scroll {
  min-height: 42svh;
}

.side-ad {
  position: static;
  height: fit-content;
}

.main-content {
  min-width: 0;
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.glass-card {
  background:
    linear-gradient(165deg, rgba(18, 24, 38, 0.9), rgba(15, 19, 27, 0.92)),
    radial-gradient(800px 240px at 30% 0%, rgba(34, 211, 238, 0.08), transparent 55%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--elev-2), inset 0 1px 0 rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
}

.hero {
  text-align: center;
  padding: clamp(2rem, 4vw, 3.3rem);
  animation: slideIn .5s var(--ease);
}

.eyebrow {
  color: var(--accent-secondary);
  font-size: .85rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: .7rem;
}

.hero h1 {
  font: 800 clamp(1.9rem, 4.2vw, 3.1rem)/1.12 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.02em;
  margin-bottom: .85rem;
  color: var(--text-primary);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(90deg, #ffffff 0%, #dbeafe 22%, var(--accent-primary) 55%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 12px 34px rgba(34, 211, 238, 0.10), 0 18px 44px rgba(59, 130, 246, 0.16);
  }

  .home-page .hero h1 {
    background: linear-gradient(90deg, #00ffff 0%, #a5f3fc 32%, #3b82f6 70%, #00ffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 14px 40px rgba(0, 255, 255, 0.10), 0 20px 54px rgba(59, 130, 246, 0.18);
  }
}

.hero p {
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 auto 1.3rem;
}

.home-page .hero p {
  color: rgba(224, 251, 252, 0.86);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 500;
  text-shadow: 0 10px 30px rgba(0, 255, 255, 0.06);
}

.btn,
.open-btn,
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-weight: 600;
  letter-spacing: .2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 42%),
    var(--btn-bg);
  color: #e5e7eb;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-md);
  padding: .64rem 1rem;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 26px rgba(3, 8, 17, 0.32);
  transition: background var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease), border-color var(--ease), filter var(--ease);
}

.btn:hover,
.open-btn:hover,
.action-btn:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.22),
    0 18px 44px rgba(59, 130, 246, 0.20);
  transform: translateY(-1px);
}

.btn:active,
.open-btn:active,
.action-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn:disabled,
.open-btn:disabled,
.action-btn:disabled,
.btn[aria-disabled="true"],
.open-btn[aria-disabled="true"],
.action-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.section-head {
  margin: .4rem 0 .8rem;
}

.home-page .hero {
  position: static;
}

.home-page .tools .section-head {
  background: transparent;
  padding: 0;
  backdrop-filter: none;
}

.btn-reset-premium {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #ffd4d4 !important;
  transition: all var(--ease) !important;
}

.btn-reset-premium:hover {
  background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 
    0 0 15px rgba(239, 68, 68, 0.4),
    0 10px 25px -5px rgba(239, 68, 68, 0.3) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

.btn-reset-premium:active {
  transform: translateY(0) scale(0.98) !important;
  filter: brightness(0.9) !important;
}

.section-head h2 {
  font-size: 1.4rem;
}

.section-head p {
  color: var(--text-secondary);
  margin-top: .35rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.tool-card {
  background:
    linear-gradient(160deg, rgba(18, 24, 38, 0.92), rgba(20, 28, 43, 0.78)),
    radial-gradient(900px 260px at 18% 0%, rgba(59, 130, 246, 0.12), transparent 60%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  height: 100%;
  box-shadow: 0 10px 28px rgba(3, 8, 17, 0.35);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.22), 0 18px 46px rgba(59, 130, 246, 0.18);
}

.tool-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tool-icon {
  font-size: 1.1rem;
}

.tool-title {
  font-size: 1rem;
  font-weight: 600;
  color: #00ffff;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

.tool-card .tool-title a {
  pointer-events: none;
  color: inherit;
}

.tool-link {
  text-decoration: none;
}

.tool-link:hover {
  color: var(--accent-secondary);
}

.tool-desc {
  color: var(--text-secondary);
  font-size: .9rem;
  min-height: 2.6em;
  flex: 1 1 auto;
}

.tool-card .tool-open-link {
  margin-top: auto;
}

.text-block {
  padding: 1.2rem;
}

.text-block h2 {
  margin-bottom: .45rem;
}

.text-block p {
  color: var(--text-secondary);
}

.tool-page-main {
  max-width: 980px;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
  display: grid;
  gap: 1rem;
}

.ad-box {
  border: 2px dashed rgba(59, 130, 246, .45);
  border-radius: 14px;
  background: rgba(59, 130, 246, .08);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 600;
  letter-spacing: .3px;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(3, 8, 17, .75);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.tool-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%) scale(.96);
  width: min(980px, calc(100vw - 1.2rem));
  max-height: 90vh;
  z-index: 1450;
  border: 1px solid rgba(59, 130, 246, .4);
  border-radius: 18px;
  background: linear-gradient(165deg, #121826, #0f141f);
  box-shadow: 0 25px 70px rgba(3, 8, 17, .65);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--ease), opacity var(--ease);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.tool-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(59, 130, 246, .22);
}

.close-btn {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, .6);
  background: transparent;
  color: #dbeafe;
  cursor: pointer;
}

.ad-top {
  margin: .8rem auto .2rem;
  width: min(728px, calc(100% - 1.2rem));
  height: 90px;
}

.modal-body {
  overflow: auto;
  padding: .8rem 1rem 1rem;
}

.tool-panel {
  display: grid;
  gap: .85rem;
}

.tool-help {
  color: var(--text-secondary);
  font-size: .92rem;
}

.tool-help.tool-error {
  color: #fca5a5;
}

.input-with-btn {
  display: flex;
  gap: .5rem;
  align-items: stretch;
}

.input-with-btn input {
  flex: 1 1 auto;
}

.action-btn.mini-btn {
  padding: .58rem .85rem;
  min-height: 0;
  font-size: .9rem;
}

@media (max-width: 600px) {
  .input-with-btn {
    flex-direction: column;
  }
  .action-btn.mini-btn {
    width: 100%;
  }
}

.dropzone {
  border: 1px dashed rgba(59, 130, 246, .58);
  border-radius: 14px;
  background: rgba(59, 130, 246, .08);
  min-height: 156px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: .9rem;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.dropzone.drag {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .28), 0 0 28px rgba(59, 130, 246, .18);
  background: rgba(59, 130, 246, .14);
}

.dropzone input {
  display: none;
}

.file-list,
.preview,
.result-box,
.live-stats {
  background: rgba(59, 130, 246, .07);
  border: 1px solid rgba(59, 130, 246, .2);
  border-radius: 12px;
  padding: .75rem;
}

.file-list,
.preview {
  color: var(--text-secondary);
  font-size: .9rem;
}

.preview img,
.preview video,
.preview canvas {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, .3);
  background: #0c1119;
}

.preview video {
  max-height: 280px;
}

.row.preview-row {
  align-items: start;
}

.row {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.row-3 {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  font-size: .87rem;
  color: var(--text-secondary);
  display: grid;
  gap: .35rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(59, 130, 246, .38);
  border-radius: 10px;
  background: #0d121d;
  color: var(--text-primary);
  padding: .58rem .65rem;
  font: inherit;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

.status-strip {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.status-strip.btn-row {
  gap: .75rem;
  align-items: stretch;
}

.status-strip.btn-row .action-btn {
  flex: 1 1 220px;
  min-height: 46px;
  padding: .78rem 1.05rem;
  font-size: .98rem;
}

.inline-toast {
  display: none;
  margin-top: .55rem;
  background: #0f1728;
  border: 1px solid rgba(59, 130, 246, .45);
  color: #dbeafe;
  border-radius: 10px;
  padding: .65rem .75rem;
  box-shadow: 0 16px 34px rgba(3, 8, 17, .35);
  animation: toastIn .25s var(--ease);
}

.inline-toast.show {
  display: block;
}

.badge {
  border: 1px solid rgba(59, 130, 246, .48);
  background: rgba(59, 130, 246, .1);
  color: #bfdbfe;
  border-radius: 999px;
  padding: .28rem .6rem;
  font-size: .77rem;
}

.progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, .18);
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 16px var(--glow-shadow);
  transition: width var(--ease);
}

.toast-wrap {
  position: fixed;
  right: .9rem;
  bottom: .9rem;
  z-index: 1700;
  display: grid;
  gap: .5rem;
}

.toast {
  background: #0f1728;
  border: 1px solid rgba(59, 130, 246, .45);
  color: #dbeafe;
  border-radius: 10px;
  padding: .65rem .75rem;
  box-shadow: 0 16px 34px rgba(3, 8, 17, .45);
  min-width: 210px;
  animation: toastIn .25s var(--ease);
}

@keyframes toastIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-ad {
    display: none;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Tablet: allow category sidebar to be collapsed */
  .sidebar-collapse {
    display: inline-block;
  }

  .sidebar.collapsed .sidebar-scroll {
    display: none;
  }
}

@media (max-width: 880px) {
  .top-nav {
    position: fixed;
    top: 72px;
    right: .8rem;
    width: min(280px, 84vw);
    border: 1px solid rgba(59, 130, 246, .35);
    border-radius: 14px;
    padding: .7rem;
    background: #121826;
    box-shadow: 0 18px 50px rgba(3, 8, 17, .5);
    z-index: 1400;
    display: none;
    flex-direction: column;
  }

  .top-nav.active {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
    position: relative;
    z-index: 1450;
  }

  /* Keep share button in the top-right on mobile headers */
  .share-btn-container.in-header {
    margin-left: auto;
  }

  /* Prevent iOS-style auto text resizing from making the brand look inconsistent */
  .brand-name {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }

  .sidebar-collapse {
    display: inline-block;
  }

  .sidebar.collapsed .sidebar-scroll {
    display: none;
  }

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

  .home-page .tools-grid {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .ad-top {
    width: 320px;
    max-width: calc(100% - 1.2rem);
    height: 100px;
  }
}

/* Blog guides: keep brand non-underlined and share icons white (override .blog-page a color). */
.blog-page .brand:hover,
.blog-page .brand:focus,
.blog-page .brand:active {
  text-decoration: none;
}

.blog-page .share-options a.share-icon,
.blog-page .share-options a.share-icon:visited {
  color: #fff;
  text-decoration: none;
}
.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-right: 10px;
}


.tool-page-main h1 {
  text-align: center;
}
.tool-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.85;
  border-top: 1px dashed rgba(59, 130, 246, 0.35);
}
/* Common Ad Box */
.ad-box {
  max-width: 100%;
  margin: 16px auto 24px;
  padding: 8px;
  text-align: center;
}

/* Top Ad */
.ad-banner {
  min-height: 90px; /* mobile */
}

/* Bottom Ad */
.ad-bottom {
  min-height: 90px; /* mobile */
}
/* Physiological Analytics Engine (V3 Studio) */
.v3-studio {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.studio-header {
  padding: 32px 24px;
  background: linear-gradient(135deg, hsla(210, 100%, 50%, 0.05) 0%, hsla(160, 100%, 50%, 0.05) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}
.studio-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 100px;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.2);
}
.studio-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 550px;
}
.studio-sidebar {
  padding: 32px;
  background: rgba(255,255,255,0.3);
  border-right: 1px solid rgba(0,0,0,0.03);
}
.studio-sidebar h3 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.studio-main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.1);
}
.control-group {
  margin-bottom: 20px;
}
.control-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #334155;
}
.modern-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #f1f5f9;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modern-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
  outline: none;
}
.bmi-gauge-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 32px;
  padding: 20px;
  background: rgba(255,255,255,0.5);
  border-radius: 30px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.bmi-gauge {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
}
.bmi-gauge-val {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  font-weight: 900;
  color: #0f172a;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}
.bmi-gauge-cat {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.primary-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 25px rgba(15,23,42,0.15);
  position: relative;
  overflow: hidden;
}
.primary-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.primary-card .age-card-label {
  color: #94a3b8 !important;
}
.primary-card .unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 4px;
}
.row-3 .age-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.row-3 .age-card:hover {
  transform: translateY(-5px);
}
@media (max-width: 900px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .studio-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding: 24px;
  }
}

/* Desktop / Tablet */
@media (min-width: 768px) {
  .ad-top,
  .ad-bottom {
    min-height: 250px; /* 300x250 / responsive */
  }
}
.ad-banner {
  display: block;   /* mobile pe dikhe */
}

.ad-desktop {
  display: none;    /* mobile pe hide */
}
@media (min-width: 768px) {
  .ad-banner {
    display: none;   /* desktop pe TOP + BOTTOM ads gayab */
  }

  .ad-desktop {
    display: block;  /* desktop pe LEFT + RIGHT ads dikhen */
  }
}
/* Advertica Banner Fix */
.ad-banner {
  width: 100%;
  max-width: 100%;
  min-height: 90px;        /* mobile safe height */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 16px auto;
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .ad-banner {
    min-height: 250px;     /* 300x250, 336x280 safe */
  }
}
/* Default: mobile pe show */
.ad-banner {
  display: block;
}



/* desktop pe full hide */
@media screen and (min-width: 992px) {
  .ad-mobile-only {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
/* ===== AD COLLAPSE PREVENTION ===== */

.ad-box {
  width: 100%;
  min-height: 120px;          /* 👈 collapse stop */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px 0;
  position: relative;
}

/* iframe / ad content safety */
.ad-box iframe,
.ad-box img,
.ad-box > div {
  max-width: 100% !important;
  min-height: 90px !important;
}

/* mobile only */
@media (min-width: 992px) {
  .ad-mobile {
    display: none !important; /* desktop pe hide */
  }
}
.ad-box {
  width: 100%;
  max-width: 100%;
  margin: 16px 0;   /* sirf top-bottom gap */
  padding: 0;
}
/* =========================
   TOOL PAGE ADS – ALWAYS ON
========================= */

.ad-mobile {
  display: flex !important;
  width: 100%;
  min-height: 120px;
  margin: 16px auto;
  justify-content: center;
  align-items: center;
  visibility: visible !important;
  opacity: 1 !important;
}

/* iframe / advertica safety */
.ad-mobile iframe,
.ad-mobile img,
.ad-mobile > div {
  max-width: 100% !important;
  min-height: 90px !important;
}

/* desktop */
@media (min-width: 768px) {
  .ad-mobile{
    min-height: 250px;
  }
}
/* =====================================================
   FINAL LAYOUT FIX – ADS + FOOTER ALIGNMENT
   ===================================================== */

/* ===== TOOL PAGE CONTENT WRAPPER ===== */
.tool-page-main {
  max-width: 980px;
  margin: 16px auto 0;
  padding: 0 16px;
  display: grid;
  gap: 16px;
}

/* ===== COMMON AD BOX (TOP + BOTTOM SAME GAP) ===== */
.ad-box {
  width: 100%;
  max-width: 100%;
  min-height: 120px;      /* collapse stop */
  margin: 24px auto;      /* 👈 TOP & BOTTOM SAME */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE ONLY TOOL ADS ===== */
.ad-mobile {
  display: block;
  margin: 24px auto;
}

@media (min-width: 992px) {
  .ad-mobile {
    display: block;       /* tool page ads desktop pe bhi dikhen */
  }
}
/* =====================================================
   FORCE TOOL PAGE ADS (NO HIDE, NO COLLAPSE)
   ===================================================== */

/* tool page pe ads hamesha dikhen */
body[data-tool] .ad-box {
  display: flex !important;
  min-height: 120px !important;
  margin: 24px auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* mobile + desktop dono */
body[data-tool] .ad-mobile {
  display: flex !important;
}

/* kisi bhi media query ka hide cancel */
@media (min-width: 768px),
       (min-width: 992px),
       (min-width: 1024px) {
  body[data-tool] .ad-mobile {
    display: flex !important;
  }
}

/* ad content collapse na ho */
body[data-tool] .ad-box iframe,
body[data-tool] .ad-box img,
body[data-tool] .ad-box > div {
  min-height: 90px !important;
}
/* ===== TOP BANNER AD SPACING FIX ===== */
.ad-box.ad-top {
  width: 100%;
  max-width: 100%;
  margin: 24px auto;      /* 👈 top & bottom equal gap */
  padding: 0;
  min-height: 120px;      /* collapse prevent */
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ===== GLOBAL ALIGNMENT FIX ===== */

/* Same width as tool cards */
.ad-box,
footer.glass-card {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Top & Bottom spacing – SAME AS TOOL SECTIONS */
.ad-top {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.ad-bottom {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}


/* Prevent ad collapse */
.ad-box {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop ad height */
@media (min-width: 768px) {
  .ad-box {
    min-height: 250px;
  }
}
/* ===============================
   MOBILE ONLY ADS (TOP + BOTTOM)
================================ */

/* default: show on mobile */
.ad-top,
.ad-bottom {
  display: flex;
  width: 100%;
  max-width: 980px;
  margin: 16px auto;
  min-height: 90px;
  align-items: center;
  justify-content: center;
}

/* desktop / tablet: hide both */
@media (min-width: 768px) {
  .ad-top,
  .ad-bottom {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

footer {
  width: 100%;
}

footer.glass-card {
  width: calc(100% - 2rem);
  margin: 1rem auto 1.5rem;
}

.home-page footer.glass-card {
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
}

/* Premium Link Highlighting (Global for Text Blocks) */
.text-block p a,
.blog-box p a,
.tool-page-main p a {
  color: #6366f1; /* Vibrant Accent */
  font-weight: 700;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  padding: 0 2px;
  border-radius: 4px;
}

.text-block p a::after,
.blog-box p a::after,
.tool-page-main p a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-block p a:hover,
.blog-box p a:hover,
.tool-page-main p a:hover {
  color: #a855f7;
  background: rgba(99, 102, 241, 0.08); /* Subtle glow */
}

.text-block p a:hover::after,
.blog-box p a:hover::after,
.tool-page-main p a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.text-block p a strong {
  color: inherit; /* Ensure internal bolding doesn't override highlight color */
}

/* ===== RELATED TOOLS ===== */
.related-tools-section {
  margin-top: 1.5rem;
}

.related-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--accent-secondary);
  margin-bottom: .6rem;
}

.related-tools-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;
}

.related-tool-card {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .7rem;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(18,24,38,.9), rgba(20,28,43,.76));
  border: 1px solid rgba(59,130,246,.25);
  text-decoration: none;
  color: var(--text-primary);
  font-size: .9rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.related-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34,211,238,.6);
  box-shadow: 0 0 0 1px rgba(34,211,238,.25),
              0 10px 22px rgba(59,130,246,.18);
}
/* ===== Floating Share Button ===== */
.share-btn-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
}

/* Main Share Button */
.share-main-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 8px 24px rgba(99,102,241,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.share-main-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(99,102,241,0.6);
}

/* ===============================
   Floating Share Button – Global
   =============================== */

.share-btn-container {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 9999;
}

/* Main round share button */
.share-main-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.share-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(99,102,241,0.6);
}

/* Share options container */
.share-options {
  position: absolute;
  bottom: 70px;
  right: 0;

  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.share-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Individual icons */
.share-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;

  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}

.share-icon:hover {
  transform: scale(1.15);
}

/* Platform colors */
.share-icon.whatsapp { background: #25D366; }
.share-icon.facebook { background: #1877F2; }
.share-icon.twitter  { background: #000000; }
.share-icon.linkedin { background: #0A66C2; }
.share-icon.telegram { background: #229ED9; }

/* ===============================
   Share Button (Header + Fallback)
   =============================== */

/* Default: floating (fallback for pages without header) */
.share-btn-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
}

/* When moved into header */
.share-btn-container.in-header {
  position: relative;
  bottom: auto;
  right: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-left: 0.6rem;
}

/* Main share button (square box) */
.share-main-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.share-main-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.5);
}

.share-main-btn:active {
  transform: translateY(0);
}

/* Share options container (floating opens upward; header opens downward) */
.share-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.share-btn-container.in-header .share-options {
  bottom: auto;
  top: calc(100% + 12px);
}

.share-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Individual icons */
.share-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: transform 0.18s ease;
}

.share-icon:hover {
  transform: translateY(-1px);
}

/* Platform colors */
.share-icon.whatsapp { background: #25D366; }
.share-icon.facebook { background: #1877F2; }
.share-icon.twitter  { background: #000000; }
.share-icon.linkedin { background: #0A66C2; }
.share-icon.telegram { background: #229ED9; }

.share-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Make share button match topbar theme when placed in header */
.share-btn-container.in-header .share-main-btn {
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 10px;
  box-shadow: none;
  color: var(--accent-primary);
}

.share-btn-container.in-header .share-main-btn:hover {
  transform: translateY(-1px);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.18);
  color: var(--accent-secondary);
}

.share-main-btn svg,
.share-main-btn svg * {
  stroke: currentColor;
}

/* Premium + dynamic share button */
.share-main-btn {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.share-main-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 180deg,
    rgba(34, 211, 238, 0.0),
    rgba(34, 211, 238, 0.35),
    rgba(59, 130, 246, 0.45),
    rgba(34, 211, 238, 0.35),
    rgba(34, 211, 238, 0.0)
  );
  filter: blur(10px);
  opacity: 0.35;
  pointer-events: none;
}

.share-main-btn::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 65%
  );
  transform: translateX(-40%) rotate(12deg);
  animation: shareSheen 6s linear infinite;
  opacity: 0.65;
  pointer-events: none;
}

@keyframes shareSheen {
  0% { transform: translateX(-55%) rotate(12deg); }
  55% { transform: translateX(55%) rotate(12deg); }
  100% { transform: translateX(55%) rotate(12deg); }
}

.share-btn-container.is-open .share-main-btn {
  transform: translateY(-1px) scale(1.02);
}

.share-options.active .share-icon {
  animation: sharePop 260ms var(--ease) both;
}
.share-options.active .share-icon:nth-child(1) { animation-delay: 0ms; }
.share-options.active .share-icon:nth-child(2) { animation-delay: 25ms; }
.share-options.active .share-icon:nth-child(3) { animation-delay: 50ms; }
.share-options.active .share-icon:nth-child(4) { animation-delay: 75ms; }
.share-options.active .share-icon:nth-child(5) { animation-delay: 100ms; }

@keyframes sharePop {
  from { transform: translateY(6px) scale(0.92); opacity: 0.0; }
  to { transform: translateY(0) scale(1); opacity: 1.0; }
}

@media (prefers-reduced-motion: reduce) {
  .share-main-btn::after { animation: none; }
  .share-options.active .share-icon { animation: none; }
}
/* ===== CENTER ALL ADS ===== */

.ad-center {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  margin: 18px 0;
}

/* iframe fix */
.ad-center iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* Mobile visibility helpers */
.mobileShow { display: none; }
.mobileHide { display: block; }

@media (max-width: 767px) {
  .mobileShow { display: block; }
  .mobileHide { display: none; }
}
/* ===== MOBILE TOP & BOTTOM AD SPACE FIX ===== */
@media (max-width: 767px) {

  .ad-top,
  .ad-bottom {
    margin: 3px 0 !important; 
    
     /* pehle 16px / 24px tha */
    min-height: auto !important;   /* forced height hatao */
    padding: 0 !important;
  }

  .ad-top iframe,
  .ad-bottom iframe {
    margin: 0 auto !important;
  }

}
/* ===== GLOBAL FAQ ACCORDION ===== */

.faq-section {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  padding: 14px 16px;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
  background: rgba(255,255,255,0.03);
}

.faq-answer p {
  padding: 12px 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}
.faq-question {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255,255,255,0.04);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255,255,255,0.08);
}

.faq-icon {
  transition: transform 0.3s ease;
  display: flex;
}

/* Rotate arrow when open */
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.popular-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.popular-tool-item {
  display: block;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 500;
  transition: all 0.2s ease;
}

.popular-tool-item:hover {
  background: rgba(0, 180, 255, 0.15);
  border-color: rgba(0, 180, 255, 0.4);
  transform: translateY(-2px);
}
.category-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.category-modal.active {
  display: block;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.category-box {
  position: relative;
  max-width: 600px;
  margin: 8% auto;
  background: #111827;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 15px;
  margin-top: 25px;
}

.category-card {
  display: block;
  padding: 18px;
  background: #1f2937;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}

.category-card:hover {
  background: #374151;
  transform: translateY(-3px);
}

.close-modal {
  margin-top: 25px;
  background: transparent;
  border: 1px solid #555;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}
/* ===== Breadcrumb Box ===== */
.breadcrumb-box {
  margin-bottom: 20px;
  padding: 14px 20px;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

.breadcrumb {
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 100%;
}

.breadcrumb a {
  color: #9bbcff;
  text-decoration: none;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb span {
  color: #ffffff;
  font-weight: 500;
}
/* ===============================
   PROFESSIONAL BLOG UI
================================= */

.blog-container {
  padding: 80px 20px 40px 20px;
}

.blog-content {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 50px 55px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

/* Title */
.blog-content h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Section Headings */
.blog-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  position: relative;
}

/* Elegant underline accent */
.blog-content h2::after {
  content: "";
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg,#ffffff,#ffffff);
  position: absolute;
  left: 0;
  bottom: -6px;
  border-radius: 2px;
}

/* Paragraph */
.blog-content p {
  font-size: 16px;
  line-height: 1.9;
  color: #d1d5db;
  margin-bottom: 18px;
}

/* List */
.blog-content ul {
  margin-left: 20px;
  margin-bottom: 25px;
}

.blog-content li {
  margin-bottom: 10px;
  color: #e5e7eb;
}

/* Links */
.blog-content a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease;
}

.blog-content a:hover {
  color: #6366f1;
  text-decoration: underline;
}

/* ================= BLOG PAGE UI ================= */

.blog-page {
  background: #0b1220;
}

.blog-page .tool-page-main {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.blog-page .glass-card {
  padding: 40px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.blog-page h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.3;
}

.blog-page h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #ffffff;
}

.blog-page p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 18px;
  color: #d1d5db;
}

.blog-page ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.blog-page li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Links Styling */
.blog-page a {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
}

/* Keep header nav readable (override blog link color) */
.blog-page .top-nav a,
.blog-page .top-nav a:visited {
  color: rgba(241, 245, 249, 0.82);
  font-weight: 600;
  text-decoration: none;
}

.blog-page .top-nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* HEADER BRAND FIX */
.blog-page .brand,
.blog-page .brand:visited,
.blog-page .brand:hover {
  color: var(--text-primary);
}

.blog-page a:hover {
  text-decoration: underline;
}

/* ================= FAQ BOX ================= */

.blog-page .faq-box {
  margin-top: 50px;
}

.blog-page .faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.blog-page .faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.blog-page .faq-answer {
  display: none;
  padding-bottom: 15px;
  color: #ffffff;
}

.blog-page .faq-item.active .faq-answer {
  display: block;
}

/* Smooth transition */
.blog-page .faq-answer p {
  margin-top: 10px;
}
a{
text-decoration:none;
color:inherit;
}

a:hover{
text-decoration:none;
}
.related-guides-grid{
display:grid;
grid-template-columns:1fr;
gap:12px;
margin-top:15px;
}

.related-guide-item{
display:block;
padding:14px 16px;
border-radius:10px;
background:linear-gradient(145deg,#0f1c2e,#0b1625);
border:1px solid rgba(255,255,255,0.08);
color:#6ea8ff;
font-weight:500;
text-decoration:none;
transition:all .2s ease;
}

.related-guide-item:hover{
background:#12233d;
transform:translateY(-2px);
}
.site-footer{
text-align:center;
padding:15px 10px;
font-size:14px;
color:#aaa;
border-top:1px solid rgba(255,255,255,0.08);
margin-top:20px;
}
.related-guides-box{
max-width:1100px;
margin:30px auto;
padding:20px;
}

.related-guides-box h2{
margin-bottom:15px;
}

.related-guides-box .popular-tools-grid{
gap:10px;
margin-top:10px;
}

.related-guides-box .popular-tool-item{
padding:12px 14px;
font-size:15px;
}

/* ================= BLOG COMMON STYLES ================= */

/* Blog CSS Variables */
:root {
  --blog-primary: #6366f1;
  --blog-bg-dark: #0f172a;
  --blog-card-bg: #1e293b;
  --blog-text-main: #f8fafc;
  --blog-text-muted: #94a3b8;
  --blog-glass: rgba(255, 255, 255, 0.03);
  --blog-border: rgba(255, 255, 255, 0.1);
}

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 4px;
  background: transparent;
}

.progress-bar {
  height: 4px;
  background: var(--blog-primary);
  width: 0%;
}

/* Blog Container */
.blog-container {
  max-width: 850px;
  margin: 60px auto;
  padding: 0 20px;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,255,255,0.08), transparent 55%), 
              radial-gradient(900px 500px at 110% 10%, rgba(0,0,0,0.25), transparent 55%);
  border: 1px solid var(--blog-border);
  border-radius: 24px;
  padding: 42px 34px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

@media (max-width: 720px) {
  .blog-container {
    padding: 28px 18px;
    border-radius: 18px;
  }
}

/* Blog Typography */
.post-meta {
  color: var(--blog-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

.blog-container h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.blog-container h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  color: #fff;
  position: relative;
  padding-left: 0;
  scroll-margin-top: 90px;
}

.blog-container h2::before {
  content: none;
}

.blog-container p {
  font-size: 1.1rem;
  color: rgba(148,163,184,0.95);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Blog images (responsive + caption) */
.blog-container .blog-image-container {
  margin: 2rem 0;
}

.blog-container img.blog-image {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-container .blog-image-caption {
  margin: 0.85rem auto 0 auto;
  max-width: 760px;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--blog-text-muted);
}

/* Force high visibility for dashboard text */
.blog-dashboard-container p,
.workflow-comparison p,
.visual-diagram p,
.cta-card p {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Data-types visuals use light cards; keep text dark for readability */
.data-types-visual p,
.data-types-visual li {
  color: #4b5563 !important;
  text-shadow: none !important;
}

.data-types-visual h2,
.data-types-visual h3,
.data-types-visual h4 {
  color: #111827 !important;
  text-shadow: none !important;
}

/* Blog Links */
.blog-container a:not(.btn-primary):not(.tool-link) {
  color: #d9f7ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: 0.2s;
}

.blog-container a:not(.btn-primary):not(.tool-link):hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.45);
}

/* FAQ Styling - Enhanced */
.faq-section {
  margin-top: 40px;
}

.faq-item {
  background: var(--blog-glass);
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px;
  text-align: left;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 16px;
}

.faq-question:hover {
  background: rgba(255,255,255,0.08);
}

.faq-question:focus {
  outline: 2px solid var(--blog-primary);
  outline-offset: -2px;
}

.faq-answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.35s ease, padding 0.25s ease;
  color: var(--blog-text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Increased for longer content */
  padding: 0 20px 20px 20px;
}

.faq-icon {
  transition: transform 0.25s ease;
  display: flex;
  font-style: normal;
  font-size: 14px;
  color: var(--blog-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Ensure FAQ works across different icon elements */
.faq-question i.faq-icon,
.faq-question span.faq-icon {
  transition: transform 0.25s ease;
  display: flex;
  font-style: normal;
  font-size: 14px;
  color: var(--blog-primary);
}

.faq-item.active .faq-question i.faq-icon,
.faq-item.active .faq-question span.faq-icon {
  transform: rotate(180deg);
}

/* Highlight Box */
.highlight-box {
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 24px;
  border-radius: 12px;
  margin: 30px 0;
}

/* Comparison Table */
div.comparison-table {
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--blog-border);
  box-shadow: 0 16px 45px rgba(0,0,0,0.25);
  background: var(--blog-glass);
}

table.comparison-table {
  width: 100%;
  min-width: 600px; /* Force scroll on mobile */
  border-collapse: collapse;
  background: transparent;
  border: none;
  margin: 0;
}

.comparison-table th, 
.comparison-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--blog-border);
}

.comparison-table th {
  background: rgba(99, 102, 241, 0.1);
  color: #fff;
}

.comparison-table tr:hover td {
  background: rgba(255,255,255,0.05);
}

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  padding: 50px 40px;
  border-radius: 24px;
  text-align: center;
  margin: 60px 0;
  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

.cta-card h3 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #1e40af;
  padding: 16px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 35px rgba(0,0,0,0.25);
}

/* Related Tools Section */
.related-section {
  margin-top: 40px;
  border-top: 1px solid var(--blog-border);
  padding-top: 40px;
}

.related-section.related-guides {
  margin-top: 34px;
  padding-top: 34px;
}

.related-guides-subtitle {
  margin: 10px 0 0;
  color: var(--blog-text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.related-section .tools-grid,
.blog-container .tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.related-section.related-guides .tools-grid {
  margin-top: 18px;
}

.related-section .tool-link,
.blog-container .tool-link {
  background: var(--blog-card-bg);
  padding: 25px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  text-align: center;
  transition: 0.3s;
  border: 1px solid var(--blog-border);
}

.related-section.related-guides .tool-link {
  text-align: left;
  position: relative;
  overflow: hidden;
  padding: 22px 22px;
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(30, 41, 59, 1) 55%,
    rgba(30, 41, 59, 1) 100%
  );
}

.related-section.related-guides .tool-link::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(700px circle at 18% 0%, rgba(99, 102, 241, 0.42), transparent 45%);
  opacity: 0.35;
  pointer-events: none;
}

.related-section.related-guides .tool-link > * {
  position: relative;
}

.related-section.related-guides .tool-link-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.related-section.related-guides .tool-link-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.related-section.related-guides .tool-link-meta svg {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.related-section .tool-link:hover,
.blog-container .tool-link:hover {
  background: var(--blog-primary);
  transform: translateY(-5px);
  border-color: var(--blog-primary);
}

.related-section.related-guides .tool-link:hover {
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.22) 0%,
    rgba(99, 102, 241, 0.12) 60%,
    rgba(30, 41, 59, 1) 100%
  );
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

/* Table of Contents */
#toc + ul {
  list-style: none;
  padding: 18px 18px;
  margin: 0 0 1.6rem;
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

@media (max-width: 720px) {
  #toc + ul {
    grid-template-columns: 1fr;
  }
}

#toc + ul li {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15,23,42,0.35);
}

#toc + ul li a {
  border-bottom: none;
  color: #e5fbff;
}

#toc + ul li:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transform: translateY(-1px);
  transition: 0.2s;
}

/* Step List */
.step-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: step-counter;
}

.step-list li {
  background: var(--blog-glass);
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--blog-border);
}

.step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background: var(--blog-primary);
  color: white;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .blog-container h1 {
    font-size: 2.2rem;
  }
  .cta-card h3 {
    font-size: 1.7rem;
  }
}

/* Tool breadcrumbs: allow full-width on small screens */
@media (max-width: 600px) {
  .breadcrumb-box {
    width: 100%;
  }
}

/* --- Blog Premium Components --- */

/* Breadcrumbs */
.blog-container .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.blog-container .breadcrumb a {
  text-decoration: none;
  transition: color var(--ease);
}

.blog-container .breadcrumb a:hover {
  color: var(--accent-secondary);
}

.blog-container .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.2);
}

/* Table of Contents */
.toc-container {
  background: var(--bg-sidebar);
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--elev-1);
}

.toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.toc-list li {
  padding-left: 0;
}

.toc-list a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--ease);
  display: inline-block;
  padding: 0.2rem 0;
}

.toc-list a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

/* Scroll progress bar for blog */
.progress-container {
  position: fixed;
  top: 72px; /* Topbar height */
  z-index: 1201;
  width: 100%;
  height: 3px;
  background: transparent;
}

.progress-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  width: 0%;
  box-shadow: 0 0 10px var(--glow-shadow);
}

/* Enhanced Typography for Blog Content */
.blog-container h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.blog-container h2 {
  font-size: 1.8rem;
  margin: 3rem 0 1.2rem;
  color: var(--accent-secondary);
  scroll-margin-top: 100px;
}

.blog-container h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
  scroll-margin-top: 100px;
}

.blog-container p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.blog-container .step-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--soft-border);
  margin-bottom: 1.5rem;
}

/* Responsive Grid Components for Blog Dashboards */
.blog-dashboard-container {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  color: white;
}

.blog-dashboard-container h3,
.visual-diagram h3,
.blog-process-container h3,
.blog-workflow-grid h3 {
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  width: 100%;
}

.diag-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

/* Age Calculator Premium Styles */
.age-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.age-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.age-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light, #3b82f6);
    background: rgba(255, 255, 255, 0.08);
}

.age-card-val {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.age-card-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

.age-summary-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.age-summary-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.age-summary-text strong {
    color: var(--primary-light, #60a5fa);
}

.zodiac-section {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.zodiac-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #fff;
}

.zodiac-icon {
    font-size: 1.2rem;
}

.age-countdown {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-align: center;
}

.countdown-bar-wrap {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.countdown-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    width: 0%;
    transition: width 1s ease-out;
}
.age-summary-intro {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.age-section-divider {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light, #60a5fa);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.life-stats-grid .age-card {
    background: rgba(59, 130, 246, 0.03);
}

.planet-grid .age-card {
    background: rgba(139, 92, 246, 0.03);
}

.age-milestone-panel {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(34, 211, 238, 0.05);
    border: 1px dashed rgba(34, 211, 238, 0.3);
    border-radius: 16px;
    text-align: center;
}

.milestone-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.countdown-header {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.countdown-subtext {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 5px 0 0;
}

@media (max-width: 600px) {
    .row-3 {
        grid-template-columns: 1fr;
    }
    .age-summary-text {
        font-size: 1.25rem;
    }
}

.blog-grid-3, .blog-grid-4, .blog-grid-2 {
  display: grid;
  gap: 1rem;
}

.blog-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.blog-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.blog-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .blog-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .blog-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 650px) {
  .blog-grid-4 {
    grid-template-columns: 1fr;
  }
  .blog-dashboard-container {
    padding: 1.2rem 1rem;
  }
  .blog-card-mini {
    padding: 1.2rem 0.8rem;
  }
}

.blog-card-mini {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: transform var(--ease);
}

.blog-card-mini:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

/* Responsive Process Flows */
.blog-process-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
}

.blog-process-step {
  text-align: center;
  flex: 1;
  color: #ffffff;
}

.blog-process-step p {
  color: #ffffff !important;
  margin: 0.5rem 0;
}

.blog-process-arrow {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .blog-process-container {
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem 1rem;
  }
  .blog-process-step {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .blog-process-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
    font-size: 2rem;
    opacity: 0.6;
  }
  .blog-process-step svg {
     width: 80px;
     height: 80px;
  }
}

/* Multi-line Workflow Grid (2x3 or 3x2) */
.blog-workflow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.blog-workflow-step {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.2rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  color: #ffffff;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .blog-workflow-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .blog-workflow-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
    text-align: center;
  }
}

/* Impact Chart (Bar Chart) */
.blog-impact-chart {
  margin: 2rem 0;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  color: #ffffff;
}

.blog-impact-chart-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 1rem;
  height: 200px;
  margin-top: 2rem;
}

.blog-impact-item {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.blog-impact-bar-wrapper {
  width: 45px;
  height: 160px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px 6px 0 0;
  position: relative;
  margin-bottom: 1rem;
}

.blog-impact-bar-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.blog-impact-percentage {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--blog-primary);
}

.blog-impact-label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 600px) {
  .blog-impact-chart-container {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }
  
  .blog-impact-item {
    flex-direction: row;
    gap: 1.5rem;
    height: auto;
    text-align: left;
  }
  
  .blog-impact-bar-wrapper {
    width: 60%;
    height: 12px;
    border-radius: 99px;
    margin-bottom: 0;
    order: 2;
  }
  
  .blog-impact-bar-fill {
    height: 100% !important;
    width: var(--progress);
    border-radius: 99px;
    padding-top: 0;
    box-shadow: none;
    position: relative;
  }
  
  .blog-impact-percentage {
    display: none;
  }
  
  .blog-impact-label {
    min-width: 140px;
    order: 1;
  }
}

/* Premium CTA Component for Guides */
.premium-cta-box {
  position: relative;
  margin: 3rem 0;
  padding: 2.5rem;
  background: rgba(18, 24, 38, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease);
}

.premium-cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(59, 130, 246, 0.1) 25%,
    transparent 50%,
    rgba(34, 211, 238, 0.1) 75%,
    transparent 100%
  );
  animation: rotate-bg 10s linear infinite;
  z-index: -1;
}

@keyframes rotate-bg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.premium-cta-box:hover {
  transform: translateY(-5px);
}

.premium-cta-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, #ffffff, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.premium-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b0e14;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  border: none;
  border-radius: 14px;
  text-decoration: none;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
  transition: all 0.3s var(--ease);
}

.premium-cta-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 15px 35px rgba(34, 211, 238, 0.5);
  filter: brightness(1.1);
}

.premium-cta-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease);
}

.premium-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Featured Image for Blog Guides */
.featured-image-container {
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: none;
  transition: transform 0.3s ease;
}

.featured-image-container:hover {
  transform: translateY(-5px);
}

.featured-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: scale 0.5s ease;
}

.featured-image-container:hover .featured-image {
  scale: 1.02;
}



/* Smart Preview System Tabs */
.preview-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-md);
  width: fit-content;
}

.preview-tab {
  padding: 0.4rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease);
}

.preview-tab.active {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.preview-frame {
    position: relative;
    width: 100%;
}

.preview-container .preview {
    display: none;
    width: 100%;
}

.preview-container .preview.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Preview Navigation */
.preview-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0.8rem;
  border-top: 1px solid var(--soft-border);
}

.preview-nav-btn {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--text-primary);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
  font-size: 1.1rem;
  font-weight: bold;
}

.preview-nav-btn:hover:not(:disabled) {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  transform: translateY(-1px);
}

.preview-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.preview-counter {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-secondary);
  min-width: 65px;
  text-align: center;
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- AI TEXT CLEANER ADVANCED --- */
.text-cleaner-advanced .cleaner-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media(max-width: 800px) {
  .text-cleaner-advanced .cleaner-layout {
    grid-template-columns: 1fr;
  }
}
.cleaner-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: rgba(15, 23, 42, 0.4);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}
.cleaner-sidebar h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
  border-bottom: 1px dashed rgba(59, 130, 246, 0.2);
  padding-bottom: 0.5rem;
}
.cleaner-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  color: #cbd5e1;
  user-select: none;
  transition: color 0.2s;
}
.cleaner-option:hover {
  color: #fff;
}
.cleaner-option input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 18px;
  height: 18px;
  min-width: 18px;
  cursor: pointer;
}
.modern-select {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #e2e8f0;
  padding: 0.7rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}
.modern-select:focus {
  border-color: var(--accent-secondary);
}
.cleaner-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cleaner-pane {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cleaner-pane label {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-weight: 600;
  color: var(--text-primary);
}
.cleaner-stats {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), #0ea5e9);
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.cleaner-pane textarea {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  padding: 1.25rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  scrollbar-width: thin;
  transition: all 0.2s;
}
.cleaner-pane textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  background: rgba(15, 23, 42, 0.5);
}
.cleaner-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
  border-top: 1px dashed rgba(59, 130, 246, 0.2);
  border-bottom: 1px dashed rgba(59, 130, 246, 0.2);
  margin: 0.5rem 0;
}

/* ===============================
   AUDIO CONVERTER V3 STUDIO
   =============================== */
.v3-studio { gap: 1.5rem; background: rgba(15, 23, 42, 0.4); border-radius: 20px; padding: 1.5rem; border: 1px solid rgba(59, 130, 246, 0.15); }
.studio-header { text-align: center; margin-bottom: 2rem; }
.studio-badge { display: inline-block; padding: 4px 12px; background: linear-gradient(90deg, #3b82f6, #22d3ee); color: #fff; font-size: 0.7rem; font-weight: 800; border-radius: 6px; margin-bottom: 0.5rem; letter-spacing: 1px; }
.studio-layout { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; }
@media (max-width: 900px) { .studio-layout { grid-template-columns: 1fr; } }
.studio-sidebar { background: rgba(30, 41, 59, 0.5); padding: 1.5rem; border-radius: 16px; border: 1px solid rgba(59, 130, 246, 0.1); height: fit-content; }
.studio-sidebar h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 1.2rem; border-bottom: 1px solid rgba(59, 130, 246, 0.1); padding-bottom: 0.5rem; }
.control-group { margin-bottom: 1.2rem; }
.modern-select { background: #0f172a; border: 1px solid rgba(59, 130, 246, 0.2); transition: all 0.3s ease; }
.modern-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
.drop-zone-v3 { border: 2px dashed rgba(59, 130, 246, 0.3); border-radius: 20px; padding: 3rem 2rem; text-align: center; cursor: pointer; transition: all 0.3s var(--ease); background: rgba(30, 41, 59, 0.3); }
.drop-zone-v3:hover { background: rgba(59, 130, 246, 0.05); border-color: #3b82f6; }
.dz-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.8; }
.dz-text { font-size: 1.2rem; font-weight: 600; color: #e2e8f0; margin-bottom: 0.4rem; }
.dz-subtext { font-size: 0.9rem; color: #94a3b8; }
.waveform-container { background: #0f172a; border-radius: 16px; padding: 1.5rem; border: 1px solid rgba(59, 130, 246, 0.2); margin: 1.5rem 0; position: relative; }
.waveform-container canvas { width: 100%; height: 120px; display: block; }
.waveform-timestamp { position: absolute; bottom: 10px; right: 15px; font-family: monospace; font-size: 0.8rem; color: #3b82f6; background: rgba(15, 23, 42, 0.8); padding: 2px 8px; border-radius: 4px; }
.studio-main .file-list { margin: 1.5rem 0; background: transparent; border: none; padding: 0; }
.file-item { display: flex; justify-content: space-between; padding: 10px 15px; background: rgba(30, 41, 59, 0.4); border-radius: 10px; margin-bottom: 8px; border: 1px solid rgba(59, 130, 246, 0.1); }
.studio-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.primary-btn { background: linear-gradient(135deg, #3b82f6, #2563eb); font-weight: 700; font-size: 1.1rem; box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3); }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4); }
