/* Minimal, fast, responsive */
:root{
  --bg:#0b0e14;
  --panel:#11151f;
  --text:#e6e6e6;
  --muted:#a3a3a3;
  --brand:#6ee7ff;
  --accent:#22d3ee;
  --card:#0f1320;
  --border:#1f2635;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
a{color:var(--brand);text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:16px}
.header{display:flex;justify-content:space-between;align-items:center;padding:20px 16px}
.brand{display:flex;align-items:center;gap:10px}
.brand h1{font-size:20px;margin:0}
nav a{margin:0 10px;color:var(--muted)}
nav .pill{border:1px solid var(--border);padding:8px 12px;border-radius:999px;color:var(--text)}
.hero{padding:40px 16px;text-align:center;background:linear-gradient(180deg, rgba(34,211,238,0.08), transparent)}
.hero h2{font-size:28px;margin:0 0 8px}
.hero p{color:var(--muted);margin:0 0 16px}
.hero-cta{display:flex;gap:12px;justify-content:center;margin:12px 0 16px}
.btn{display:inline-block;padding:10px 16px;border:1px solid var(--border);border-radius:10px}
.btn.primary{background:var(--accent);color:#000;font-weight:700;border:none}
.grid{display:grid;gap:28px}
h3{margin:18px 0}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;list-style:none;padding:0;margin:0}
.cards li{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:14px}
.cards a{display:block;font-weight:600}
.ad{border:1px dashed var(--border);border-radius:12px;height:90px;display:flex;align-items:center;justify-content:center;color:var(--muted);margin:16px 0}
.ad-incontent{height:250px}
.affiliate{background:var(--panel);border:1px solid var(--border);padding:12px;border-radius:10px;color:var(--muted);margin-top:12px}
.footer{margin-top:40px;padding:24px 0;border-top:1px solid var(--border)}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.tiny{color:var(--muted);text-align:center;margin-top:10px}
@media (max-width:640px){
  .hero-cta{flex-direction:column}
}


/* ---- Ad Experience Tweaks ---- */
.ad{min-height:90px;height:auto}
.ad-banner{min-height:120px}
.ad-incontent{min-height:250px}
/* Prevent intrusive sticky ads from overlapping */
.sticky-ad{position:static !important}

/* Globe styling */
.globe-wrap{display:flex;justify-content:center;align-items:center;margin:10px 0 4px}
.globe{width:110px;height:110px;filter:drop-shadow(0 0 12px rgba(34,211,238,0.25))}
@keyframes rotate { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.globe .spin{transform-origin:50% 50%; animation: rotate 18s linear infinite}

/* Slight hero spacing to account for globe */
.hero{padding-top:56px}


/* ---- Site-wide animated globe (fixed, right side) ---- */
.bg-globe{
  position:fixed;
  right:4vw;
  top:50%;
  transform:translateY(-50%);
  width:min(28vw, 360px);
  height:auto;
  opacity:0.25;
  z-index:0; /* behind content */
  pointer-events:none;
  filter:blur(0.2px) drop-shadow(0 0 24px rgba(34,211,238,0.15));
}
.bg-globe-svg{width:100%;height:auto}
.bg-globe-svg .spin{transform-origin:50% 50%; animation: rotate 28s linear infinite}

/* Ensure content sits above the decorative globe */
header, .hero, main, footer, .container{position:relative; z-index:1}

/* Generic tool-page form styling */
input, select, textarea, button{
  background:var(--card);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
}
button, .btn{cursor:pointer}
table{width:100%;border-collapse:collapse;border:1px solid var(--border);background:var(--panel)}
td, th{border:1px solid var(--border);padding:8px 10px}
label{display:block;margin:6px 0;color:var(--muted)}
hr{border:none;border-top:1px solid var(--border)}


/* ---- Tool page clean header ---- */
.tool-topbar{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid var(--border);margin-bottom:10px}
.tool-topbar a.back{padding:6px 10px;border:1px solid var(--border);border-radius:8px;color:var(--text)}
.tool-title{font-size:22px;font-weight:800;margin:8px 0 16px}
.tool-meta{color:var(--muted);font-size:13px;margin-top:-6px;margin-bottom:14px}

/* --- Professional Tool Shell --- */
.tool-shell{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(3px);
  margin: 12px 0 24px;
}
.tool-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.tool-title{font-size:24px;font-weight:800;margin:6px 0 18px}
.tool-page main.container{max-width:940px}
input[type="text"], input[type="number"], input[type="email"], input[type="url"], select, textarea{
  font-size:15px;
}
button, .btn{transition:transform .06s ease, box-shadow .2s ease}
button:hover, .btn:hover{transform: translateY(-1px);box-shadow: 0 6px 18px rgba(34,211,238,0.12)}
/* So the decorative globe is very subtle on tools for a 'pro' feel */
.tool-page .bg-globe{opacity:0.14; filter:blur(0.4px) drop-shadow(0 0 12px rgba(34,211,238,0.12));}


/* ---- Light Theme ---- */
:root[data-theme='light']{
  --bg:#f7f7fb;
  --panel:#ffffff;
  --text:#0b0e14;
  --muted:#4b5563;
  --brand:#0ea5b7;
  --accent:#06b6d4;
  --card:#ffffff;
  --border:#e5e7eb;
}
/* Toggle button */
.theme-toggle{border:1px solid var(--border);padding:6px 10px;border-radius:8px;cursor:pointer}
