/* Modern white UI – Dr Ads.txt */
:root{
  --bg:#f7f9ff;
  --surface:#ffffff;
  --text:#0b1220;
  --muted:#5f6b7a;
  --border:rgba(11,18,32,.10);
  --shadow: 0 10px 26px rgba(2,6,23,.06);

  /* Google-like palette (AdSense/AdMob inspired) */
  --g-blue:#1a73e8;
  --g-green:#34a853;
  --g-yellow:#fbbc04;
  --g-red:#ea4335;

  --accent: var(--g-blue);
  --accent2: var(--g-green);
  --accentSoft: rgba(26,115,232,.08);
  --ring: rgba(26,115,232,.20);

  --ok: var(--g-green);
  --warn: var(--g-yellow);
  --bad: var(--g-red);

  --boxAccent: var(--g-red);
  --boxAccentSoft: rgba(234,67,53,.10);

  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}

/* Prevent horizontal scroll from decorative blobs / long content */
html, body{overflow-x:hidden}
@supports (overflow-x: clip){
  html, body{overflow-x:clip}
}
/* Allow grid children to shrink instead of forcing page overflow */
.panels-grid > .col{min-width:0}
.card, .stat, prebody{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1120px; margin:0 auto; padding:0 16px}
.muted{color:var(--muted)}
.small{font-size:13px}
.mt{margin-top:18px}
.row{display:flex; gap:10px; align-items:center}
.row-between{display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap}

.bg-blob{display:none}
.blob-2{display:none}

/* Navbar */
.nav{position:sticky; top:0; background:rgba(255,255,255,.72); backdrop-filter: blur(12px); border-bottom:1px solid var(--border); z-index:10}
.nav-inner{display:flex; align-items:center; justify-content:space-between; gap:14px}
.brand{display:flex; align-items:center; gap:10px}
.logo img{width:34px; height:34px}
.brand-text{display:flex; flex-direction:column; line-height:1.1}
.brand-text small{color:var(--muted)}
.links{display:flex; gap:14px; align-items:center}
.links a{color:var(--text); font-weight:600; opacity:.85}
.links a:hover{opacity:1}
.lang select{
  border:1px solid var(--border);
  background: var(--surface);
  padding:10px 10px;
  border-radius:12px;
}

/* Hamburger for mobile */
.hamburger{display:none; border:1px solid var(--border); background:rgba(255,255,255,.85); border-radius:12px; padding:8px; cursor:pointer}
.hamburger span{display:block; width:18px; height:2px; background:var(--text); margin:4px 0; opacity:.8}

.hero{padding:20px 0}
.hero-card{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  padding:18px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-text h1{font-size:38px; margin:6px 0 10px}
.hero-text p{margin:0 0 14px; max-width:60ch}

.form .grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.field{display:flex; flex-direction:column; gap:8px}
.field label{font-weight:700; font-size:13px; color:rgba(15,23,42,.85)}
.field input{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 12px;
  font-size:15px;
  outline:none;
  background: var(--surface);
}
.field input:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow:0 0 0 4px var(--ring);
}

.advanced{margin-top:10px; padding:10px 12px; border:1px solid var(--border); border-radius:14px; background:rgba(255,255,255,.7)}
.advanced summary{cursor:pointer; font-weight:700}
.grid-3{display:grid; grid-template-columns: 1fr 1fr 1fr; gap:10px; margin-top:10px}
.toggle{display:flex; align-items:center; gap:10px; font-weight:600; color:rgba(15,23,42,.85)}
.toggle input{width:18px; height:18px}
.field.small{gap:6px}
.field.small input{padding:10px 10px}

.actions{display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap}
.error{color:#b91c1c; font-weight:600}

.btn{
  border:1px solid rgba(26,115,232,.28);
  background: var(--accent);
  color:#fff;
  padding:11px 14px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(26,115,232,.14);
  transition: transform .08s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover{transform: translateY(-1px); filter:saturate(1.03)}
.btn.ghost{
  background: rgba(255,255,255,.85);
  color: var(--text);
  border:1px solid var(--border);
  box-shadow:none;
}

.hero-side{display:flex; flex-direction:column; gap:12px}
.mini-card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  background: rgba(255,255,255,.78);
}
.mini-title{font-weight:900; letter-spacing:.2px; margin-bottom:10px}
.mini-code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size:13px;
  padding:10px;
  border:1px dashed rgba(15,23,42,.16);
  border-radius:14px;
  background: rgba(255,255,255,.9);
}
.accent{color:var(--accent)}
.mini-note{margin-top:10px; font-size:13px}

.results .card, .card{
  border:1px solid rgba(234,67,53,.18);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding:16px;
  position:relative;
}
.card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, rgba(234,67,53,1), rgba(251,188,4,1), rgba(52,168,83,1));
  opacity:.9;
}
.card-head{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap}
.card-head h2{margin:0}
.page-title{margin:0 0 10px}

.grid-2{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
.stat{border:1px solid var(--border); border-radius: var(--radius); padding:14px; background: rgba(255,255,255,.85)}
.stat-label{font-size:13px; color:rgba(15,23,42,.72); font-weight:800}
.stat-value{font-size:28px; font-weight:900; margin-top:6px}

.meter{height:10px; background: rgba(2,6,23,.08); border-radius:999px; overflow:hidden; margin-top:10px}
.meter-bar{height:100%; width:0%; background: linear-gradient(90deg, rgba(6,182,212,1), rgba(37,99,235,1)); border-radius:999px}

.pill{display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background: rgba(2,6,23,.06); border:1px solid var(--border); font-weight:900}

.bullets{margin:10px 0 0; padding-left:18px}
.bullets li{margin:6px 0; color:rgba(15,23,42,.86)}
.code{
  margin:10px 0 0;
  max-height:320px;
  overflow:auto;
  padding:12px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: rgba(2,6,23,.025);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size:13px;
  white-space:pre;
}
.code{white-space:pre-wrap; word-break:break-word}


.ad{margin:16px 0; padding:10px; border:1px dashed rgba(2,6,23,.18); border-radius: var(--radius); background: rgba(255,255,255,.75)}
.footer{margin-top:26px; border-top:1px solid var(--border); padding:18px 0; background:rgba(255,255,255,.66); backdrop-filter: blur(10px)}
.footer-inner{display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap}
.foot-left{display:flex; flex-direction:column; gap:4px}

/* RTL tweaks */
[dir="rtl"] .links{direction:rtl}
[dir="rtl"] .bullets{padding-left:0; padding-right:18px}
[dir="rtl"] .form .grid{direction:rtl}

/* Responsive */
@media (max-width: 920px){
  .hero-card{grid-template-columns:1fr}
  .hero-text h1{font-size:32px}
}
@media (max-width: 720px){
  .links{display:none}
  .hamburger{display:block}
  .form .grid{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
}
.sr-only{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}

/* status colors (no hard-coded specific colors requested by user; keep minimal) */
.pill.ok{border-color: rgba(6,182,212,.35)}
.pill.bad{border-color: rgba(185,28,28,.25)}
.pill.warn{border-color: rgba(245,158,11,.25)}


/* Articles */
.articles-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:14px;
}
.article-card{background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  background: rgba(255,255,255,.85);
}
.article-card h3{margin:0 0 8px; font-size:18px}
.article-card p{margin:0 0 10px}
.article-card .more{font-weight:800}
.bread{display:flex; gap:8px; align-items:center; margin-bottom:10px}
.bread .sep{opacity:.5}
.article p{line-height:1.8}
@media (max-width: 920px){
  .articles-grid{grid-template-columns:1fr}
}


/* Standalone generator */
#genStandalone{margin-top:14px}


/* Generator builder */
.subhead{font-weight:900; margin-top:14px}
.entries{border:1px solid var(--border); border-radius: var(--radius); padding:12px; background: rgba(255,255,255,.7)}
.entries-head{display:flex; justify-content:space-between; align-items:flex-start; gap:10px}
.entries-title{font-weight:900}
.entries-table{margin-top:10px; width:100%}
.entries-row{display:grid; grid-template-columns: 1.2fr 1.2fr .7fr 1fr 1fr 42px; gap:10px; align-items:center; padding:8px 0; border-top:1px dashed rgba(0,0,0,.08)}
.entries-headrow{border-top:none; padding-top:0; font-weight:800; opacity:.8}
.entries-row input, .entries-row select{width:100%}
.icon-btn{
  width:36px;height:36px;border-radius:12px;border:1px solid var(--border);
  background:#fff;font-weight:900;font-size:18px;cursor:pointer;
}
.icon-btn:hover{transform: translateY(-1px)}
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{border:1px solid var(--border); background:#fff; border-radius:999px; padding:8px 12px; cursor:pointer; font-weight:800}
.chip:hover{transform: translateY(-1px)}
#genMsg .msg{border:1px solid var(--border); border-radius: var(--radius); padding:10px 12px; margin-top:8px}
#genMsg .ok{background: rgba(0,200,120,.06)}
#genMsg .warn{background: rgba(255,170,0,.06)}
#genMsg .bad{background: rgba(255,70,70,.06)}

/* Modal */
.modal{position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:50}
.modal-backdrop{position:absolute; inset:0; background: rgba(0,0,0,.25)}
.modal-card{
  position:relative; width:min(820px, 92vw);
  background:#fff; border:1px solid var(--border); border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  padding:16px;
}
.modal-head{display:flex; justify-content:space-between; align-items:center; gap:10px}
.modal-card textarea{width:100%; border:1px solid var(--border); border-radius: 14px; padding:12px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}
@media (max-width: 920px){
  .entries-row{grid-template-columns: 1fr; gap:8px}
  .entries-headrow{display:none}
}


/* FAQ */
.faq{margin-top:10px; display:flex; flex-direction:column; gap:10px}
.faq-item{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:10px 12px;
  background: rgba(255,255,255,.75);
}
.faq-item summary{
  cursor:pointer;
  font-weight:900;
  outline:none;
}
.faq-item p{margin:10px 0 0; line-height:1.7}


/* Section jump links */
.jump{display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 14px}
.jump .btn{padding:10px 12px}


/* Simplicity tweaks */
.adv-sum{
  cursor:pointer;
  font-weight:900;
  user-select:none;
  padding:10px 12px;
  border:1px solid rgba(234,67,53,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.90);
}
#advancedGen[open] .adv-sum{background: rgba(255,255,255,1)}
#advancedGen{border:none}
#advancedGen > div{padding:4px 0}


/* New layout: simple & professional */
.page-head{padding:22px 0 14px; border-bottom:1px solid var(--border)}
.page-title{font-size:34px; margin:6px 0 8px}
.page-sub{margin:0; max-width:72ch}

.panels{padding:8px 0 0}
.panels-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:start;
}
.col{display:flex; flex-direction:column; gap:16px}

@media (max-width: 980px){
  .panels-grid{grid-template-columns: 1fr}
  .page-title{font-size:30px}
}


/* Home tool cards */
.tool-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px}
@media (max-width:900px){.tool-grid{grid-template-columns:1fr}}
.tool-card{
  display:block;
  border:1px solid rgba(234,67,53,.18);
  border-radius: 20px;
  padding:16px 16px;
  background:
    linear-gradient(180deg, rgba(234,67,53,.06), rgba(255,255,255,1) 55%),
    radial-gradient(120px 120px at 92% 18%, rgba(251,188,4,.10), transparent 60%);
  text-decoration:none;
  position:relative;
}
.tool-card:before{
  content:"";
  position:absolute;
  inset:12px auto 12px 12px;
  width:4px;
  border-radius:999px;
  background: rgba(234,67,53,.85);
}
.tool-card .tool-title{margin-left:6px}
.tool-card:hover{box-shadow: 0 14px 36px rgba(16,24,40,.07)}
.tool-top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.badge{
  border:1px solid rgba(234,67,53,.20);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  color: var(--muted);
  background: rgba(255,255,255,.82);
}
.more{display:inline-block; margin-top:8px; font-weight:900}
.head-actions{margin-top:10px; display:flex; gap:10px; flex-wrap:wrap}
.card.slim{padding:14px 14px}
.m0{margin:0}


/* Articles "more" list (compact) */
.articles-more{margin-top:12px}
.more-list{display:flex; flex-direction:column; gap:8px; margin-top:10px}
.more-link{
  display:block;
  padding:10px 12px;
  border:1px solid rgba(234,67,53,.18);
  border-radius: 14px;
  background: var(--surface);
  text-decoration:none;
  color: var(--text);
}
.more-link:hover{box-shadow: 0 10px 20px rgba(2,6,23,.05)}


/* Gentle top glow (eye-friendly) */
.top-glow{
  position:fixed;
  inset:0 0 auto 0;
  height:220px;
  pointer-events:none;
  background: radial-gradient(900px 260px at 70% 0%, rgba(26,115,232,.12), transparent 55%),
              radial-gradient(800px 240px at 20% 0%, rgba(52,168,83,.10), transparent 60%);
  z-index:-1;
}

/* Links */
a{color: var(--accent); text-decoration:none}
a:hover{opacity:.92}

.tool-top{display:flex; align-items:center; justify-content:space-between; gap:12px}
.tool-ico{
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius:14px;
  border:1px solid rgba(234,67,53,.18);
  background: rgba(255,255,255,.9);
  color: var(--accent);
  flex:0 0 auto;
}
.tool-title{display:flex; align-items:center; gap:12px}
.badge{
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  color: var(--muted);
  background: rgba(255,255,255,.82);
}



/* ==========================================================
   Classic "AdSense Checker" style (teal header + yellow CTA)
   Inspired by the reference screenshot – keeps all text as-is.
   ========================================================== */

:root{
  --page-bg:#ffffff;
  --header:#0b9aa0;          /* teal */
  --cta:#fbbc04;             /* Google yellow */
  --ctaText:#111827;

  --surface:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:rgba(17,24,39,.14);
  --shadow: 0 18px 50px rgba(2,6,23,.08);

  --accent:#1a73e8;          /* Google blue */
  --ok:#34a853;
  --warn:#fbbc04;
  --bad:#ea4335;
}

html, body{background:var(--page-bg) !important; color:var(--text) !important; margin:0; padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{color:var(--accent)}
a:hover{text-decoration:underline}

.container{max-width:1200px}
.muted{color:var(--muted)}
.small{font-size:13px}

/* Top glow: very subtle like modern landing pages */
.top-glow{
  position:fixed;
  inset:0 0 auto 0;
  height:260px;
  pointer-events:none;
  background: radial-gradient(900px 260px at 50% 0%, rgba(11,154,160,.14), transparent 55%),
              radial-gradient(800px 240px at 15% 0%, rgba(26,115,232,.10), transparent 60%);
  z-index:-1;
}

/* NAVBAR (teal bar) */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background: var(--header);
  border-bottom: none;
}
.nav-inner{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
html[dir="rtl"] .nav-inner{flex-direction:row-reverse}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff !important;
  text-decoration:none;
  min-width:0;
}
.logo img{
  width:34px;
  height:34px;
  display:block;
  /* make svg look white-ish */
  filter: brightness(0) invert(1);
  opacity:.95;
}
.brand-text{display:flex; flex-direction:column; min-width:0}
.brand-text strong{font-size:20px; line-height:1.1}
.brand-text small{color:rgba(255,255,255,.78); font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:320px}

.links{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.links a{
  color:#fff !important;
  text-decoration:none;
  padding:10px 12px;
  border-radius:8px;
  font-weight:700;
  letter-spacing:.2px;
}
.links a:hover{background: rgba(255,255,255,.14); text-decoration:none}
.links a.active{
  background: var(--cta);
  color: var(--ctaText) !important;
}

.lang select{
  appearance:none;
  background: rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.26);
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
}
.lang select:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}

.hamburger{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.14);
}
.hamburger span{background:#fff}

/* Mobile menu */
@media (max-width: 980px){
  .hamburger{display:grid; place-items:center}
  .links{
    display:none;
    position:absolute;
    top:76px;
    left:0;
    right:0;
    padding:12px 16px 16px;
    background: var(--header);
    border-top:1px solid rgba(255,255,255,.18);
  }
  .links a{display:block}
}

/* PAGE HEAD / HERO */
.page-head{
  padding: 70px 0 10px;
  text-align:center;
}
.page-head h1{
  font-size: clamp(40px, 5vw, 76px);
  margin: 0 0 10px;
  letter-spacing:-.6px;
}
.page-head p{max-width: 760px; margin: 0 auto}

.hero{
  padding: 72px 0 30px;
  text-align:center;
}
.hero h1{
  font-size: clamp(44px, 5vw, 82px);
  margin: 0 0 10px;
  letter-spacing:-.8px;
}
.hero p{max-width: 820px; margin: 0 auto}

/* "Adsense checker" input row */
.hero-form{
  max-width: 820px;
  margin: 34px auto 0;
  display:flex;
  border:1px solid rgba(17,24,39,.16);
  border-radius: 4px;
  background: #fff;
  overflow:hidden;
  box-shadow: 0 20px 60px rgba(2,6,23,.06);
}
.hero-form input{
  flex:1;
  border:0 !important;
  outline:none;
  padding: 18px 18px;
  font-size: 18px;
  background:transparent;
}
.hero-form .btn{
  border:0 !important;
  border-radius:0 !important;
  padding: 0 28px;
  font-weight:900;
  box-shadow:none !important;
}
.hero-sub{max-width: 820px; margin: 14px auto 0; text-align: start}
html[dir="rtl"] .hero-sub{text-align:right}
.hero-sub .field.slim{max-width: 520px; margin: 0 auto}
.hero-sub .field.slim input{
  border-radius: 12px;
  border:1px solid rgba(17,24,39,.14);
  padding: 12px 14px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:8px;
  padding:11px 14px;
  border:1px solid rgba(11,154,160,.30);
  background: var(--header);
  color:#fff;
  font-weight:900;
  text-decoration:none;
}
.btn:hover{filter:brightness(1.03); text-decoration:none}
.btn.cta{
  background: var(--cta);
  color: var(--ctaText);
  border-color: transparent;
}
.btn.ghost{
  background: transparent;
  border:1px solid rgba(17,24,39,.16);
  color: var(--text);
}
.btn.ghost:hover{background: rgba(17,24,39,.04)}

/* CARDS / BOXES (clean, like the reference) */
.card{
  border:1px solid rgba(17,24,39,.12) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  background: #fff !important;
}
.card:before{display:none !important; content:none !important}

.tool-grid{margin-top: 10px}
.tool-card{
  border:1px solid rgba(17,24,39,.12) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  background:#fff !important;
}
.tool-card:before{display:none !important; content:none !important}
.tool-ico{
  border:1px solid rgba(17,24,39,.12) !important;
  border-radius: 10px !important;
  background:#fff !important;
  color: var(--accent) !important;
}

/* Results pill / meter */
.pill{border-radius:999px}
.pill.ok{background: rgba(52,168,83,.10); border-color: rgba(52,168,83,.22)}
.pill.warn{background: rgba(251,188,4,.12); border-color: rgba(251,188,4,.28)}
.pill.bad{background: rgba(234,67,53,.10); border-color: rgba(234,67,53,.22)}
.meter{border-radius:999px; overflow:hidden}

/* Articles */
.articles-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
@media (max-width: 980px){ .articles-grid{grid-template-columns:1fr} }

/* Hide excessive visual noise on small screens */
.bg-blob{display:none !important}
