
      /* ===== CSS RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light mode (default) */
    
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --text-primary: #020617;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent: #ff7a00;
  --accent-hover: #e86800;
  --accent-soft: rgba(255, 122, 0, 0.1);
  --border-light: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --header-bg: rgba(255, 255, 255, 0.88);
  --footer-bg: rgba(255, 255, 255, 0.88);
  --input-bg: #ffffff;
  --badge-free-bg: #10b981;
  --badge-popular-bg: #f59e0b;
}

/* Dark mode (when body has class 'dark') */
body.dark {
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-card: #020617;
  --bg-elevated: #1e293b;
  --text-primary: #e5e7eb;
  --text-secondary: #cbd5f5;
  --text-muted: #94a3b8;
  --accent: #ff7a00;
  --accent-hover: #e86800;
  --accent-soft: rgba(255, 122, 0, 0.15);
  --border-light: #1e293b;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.5);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.6);
  --header-bg: rgba(2, 6, 23, 0.88);
  --footer-bg: rgba(2, 6, 23, 0.88);
  --input-bg: #0f172a;
  --badge-free-bg: #059669;
  --badge-popular-bg: #d97706;
}

/* ===== BASE STYLES ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== LAYOUT ===== */
.wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
}

.app {
  max-width: 900px;
  margin: 0 auto 30px;
  background: var(--bg-card);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.6s ease-in-out;
}

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

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.8rem;
  color: var(--accent);
  margin: 2rem 0 1rem;
}

h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ===== FORMS & INPUTS ===== */
textarea,
input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
  margin: 8px 0;
  resize: vertical;
}

textarea:focus,
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ===== BUTTONS ===== */
button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -8px var(--accent);
}

button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.buttons {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.buttons button {
  min-width: 180px;
}

/* ===== RESULT CARD ===== */
.result-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 24px 0;
  padding: 24px;
  background: var(--bg-elevated);
  border-radius: 20px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.stat {
  background: var(--bg-card);
  padding: 16px 12px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  cursor: default;
}

.stat:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

.stat span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat strong {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
}

/* Animation for stat update */
.stat-update {
  animation: statPulse 0.4s ease;
}

@keyframes statPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); background: var(--accent-soft); }
  100% { transform: scale(1); }
}

/* ===== TOOLS SECTION (PROFESSIONAL, ICON-FREE, FULLY RESPONSIVE) ===== */
.tools-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 32px 20px;
  background: var(--bg-card);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.tools-title {
  text-align: center;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.tools-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.5;
}

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

.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Subtle top border accent */
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.tool-card:hover::before {
  transform: scaleX(1);
}

/* Decorative line under the heading */
.tool-card h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-soft);
  margin-top: 8px;
  transition: width 0.3s ease;
}

.tool-card:hover h3::after {
  width: 60px;
  background: var(--accent);
}

/* Hide icon – no emojis */
.tool-icon {
  display: none;
}

.tool-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--badge-popular-bg);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 40px;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.tool-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  padding-right: 60px; /* space for badge */
  line-height: 1.3;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
  flex: 1;
}

.tool-btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.tool-card:hover .tool-btn {
  background: var(--accent);
  color: white;
  transform: translateX(4px);
}

/* Card hover effect */
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .tools-section {
    margin: 24px auto;
    padding: 24px 16px;
  }

  .tools-title {
    font-size: 1.8rem;
  }

  .tools-subtitle {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .tools-grid {
    gap: 20px;
  }

  .tool-card {
    padding: 20px;
  }

  .tool-card h3 {
    font-size: 1.2rem;
    padding-right: 55px; /* slightly less space for badge */
  }

  .tool-card p {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .tool-btn {
    font-size: 0.85rem;
    padding: 6px 16px;
  }

  /* Decorative line width on mobile – smaller, but still visible */
  .tool-card h3::after {
    width: 30px;
  }

  .tool-card:hover h3::after {
    width: 45px;
  }
}

@media (max-width: 480px) {
  .tools-section {
    padding: 20px 12px;
  }

  .tools-title {
    font-size: 1.6rem;
  }

  .tool-card {
    padding: 18px;
  }

  .tool-card h3 {
    font-size: 1.1rem;
    padding-right: 50px;
  }

  .tool-badge {
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .tool-card h3::after {
    width: 25px;
    margin-top: 6px;
  }

  .tool-card:hover h3::after {
    width: 40px;
  }
}


/* ===== FAQ SECTION ===== */
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.3s;
}

.faq-question {
  width: 100%;
  background: transparent;
  color: var(--text-primary);
  padding: 18px 20px;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
}

.faq-question:hover {
  background: var(--accent-soft);
  transform: none;
  box-shadow: none;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s;
  color: var(--accent);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 20px;
  background: var(--bg-card);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 20px 20px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-secondary);
}

/* ===== SEO CONTENT ===== */
.seo {
  max-width: 900px;
  margin: 40px auto;
  padding: 32px;
  background: var(--bg-card);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.seo ul {
  padding-left: 24px;
  margin: 16px 0;
  color: var(--text-secondary);
}

.seo li {
  margin-bottom: 8px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 12px;
  margin: 12px;
  padding: 12px 24px;
  border-radius: 40px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  z-index: 100;
  border: 1px solid var(--border-light);
  transition: background 0.3s, border-color 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  transition: transform 0.2s;
}

.logo-img:hover {
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--accent-soft);
  transition: all 0.2s;
}

.nav-links a:hover {
  background: var(--accent);
  color: white;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.mode-btn {
  font-size: 1.2rem;
  padding: 10px 16px;
  border-radius: 30px;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}

.mode-btn:hover {
  background: var(--accent);
  color: white;
}

.menu-btn {
  display: none;
  font-size: 1.5rem;
  padding: 8px 18px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
}

.mobile-menu a {
  display: block;
  padding: 14px;
  margin-bottom: 8px;
  border-radius: 40px;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--accent-soft);
  font-weight: 500;
}

.mobile-menu a:active {
  background: var(--accent);
  color: white;
}

.mobile-menu.show {
  display: block;
}

/* ===== FOOTER ===== */
.site-footer {
  margin: 20px 12px 12px;
  padding: 24px;
  border-radius: 40px;
  background: var(--footer-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  transition: background 0.3s, border-color 0.3s;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.footer-links a {
  padding: 8px 18px;
  border-radius: 40px;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--accent-soft);
  font-weight: 500;
}

.footer-links a:hover {
  background: var(--accent);
  color: white;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  .app { padding: 20px; }

  /* Make action buttons full width on mobile */
  .buttons { flex-direction: column; }
  .buttons button { width: 100%; }

  /* Result card: 2 columns, smaller text */
  .result-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .stat {
    padding: 12px 8px;
  }
  .stat span {
    font-size: 0.7rem;
  }
  .stat strong {
    font-size: 1.1rem;
  }

  /* Tools grid: single column */
  .tools-grid { grid-template-columns: 1fr; }

  /* Hide desktop nav, show menu button */
  .nav-links { display: none; }
  .menu-btn { display: block; }

  /* Adjust header spacing */
  .site-header {
    margin: 8px;
    padding: 12px 16px;
  }

  /* FAQ and SEO sections */
  .faq-question {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  .faq-icon { font-size: 1.3rem; }

  .seo {
    padding: 24px 20px;
  }

  /* Footer links wrap nicely */
  .footer-links a {
    padding: 6px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }

  /* Result card: single column on very small screens */
  .result-card {
    grid-template-columns: 1fr;
  }

  .stat strong {
    font-size: 1.2rem; /* slightly larger for readability */
  }

  .tool-card h3 {
    font-size: 1.1rem;
    padding-right: 50px; /* adjust for badge */
  }

  .tool-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .footer-links {
    gap: 8px;
  }
  .footer-links a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* Extra small devices (<= 360px) */
@media (max-width: 360px) {
  .app { padding: 16px; }
  .stat span { font-size: 0.65rem; }
  .stat strong { font-size: 1rem; }
}
/* CONTENT + ADS LAYOUT */

.content-layout{
display:flex;
justify-content:center;
gap:20px;
max-width:1500px;
margin:auto;
padding:20px;
}

/* MAIN CONTENT */

.wrapper{
flex:1;
max-width:1100px;
}

/* ADS */

.ad-left,
.ad-right{
width:160px;
}

/* AD BOX */

.ad-box{
width:160px;
height:600px;
border:1px solid #e2e8f0;
border-radius:16px;
overflow:hidden;
display:flex;
align-items:center;
justify-content:center;
background:#ffffff;
box-shadow:0 8px 20px rgba(0,0,0,0.06);
}

/* STICKY ADS */

.ad-left{
position:sticky;
top:120px;
height:fit-content;
}

.ad-right{
position:sticky;
top:120px;
height:fit-content;
}

/* MOBILE */

@media (max-width:1200px){

.ad-left,
.ad-right{
display:none;
}

.content-layout{
padding:10px;
}

}


/* Fix 728x90 ad display */
.ad-placeholder {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 10px auto;
  border-radius: 20px;
  overflow: hidden;
  background-color: #fff8f0;
  border: 2px dashed #ff7a00;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  position: relative;
}

/* Ensure iframe fills the container */
.ad-placeholder iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Remove extra spacing from inner span if present */
.ad-placeholder span {
  display: block;
  width: 100%;
  height: 100%;
}

/* Mobile adjustment (already present, but keep it) */
@media (max-width: 768px) {
  .ad-placeholder {
    max-width: 100%;
    height: 80px;
    margin: 10px 0;
  }
}

/* Smaller screens */
@media (max-width: 768px) {
  .ad-placeholder {
    max-width: 100%;
    height: 80px;
    margin: 10px 0;  /* less vertical space */
  }
}

