/* AdSense-friendly, fast, readable UI (Vanilla CSS) */
:root{
  --bg:#f6f7fb;
  --surface:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --stroke:rgba(17,24,39,.12);
  --shadow:0 12px 30px rgba(17,24,39,.10);
  --radius:18px;
  --accent:#2563eb;
  --accent2:#0ea5e9;
  --danger:#dc2626;
  --ok:#16a34a;
  --focus:rgba(37,99,235,.25);
  --max:1280px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: linear-gradient(180deg, #fbfbfe, var(--bg));
}

a{ color:inherit; }
.skip{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:12px; width:auto; height:auto;
  background:var(--surface); border:1px solid var(--stroke); padding:10px 12px;
  border-radius:999px; box-shadow:var(--shadow); z-index:50;
}

.siteHeader{
  position:sticky; top:0; z-index:30;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--stroke);
}
.siteHeader__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{
  display:flex; align-items:center; gap:10px; text-decoration:none;
}
.brand__mark{
  width:34px; height:34px; border-radius:12px;
  background: radial-gradient(14px 14px at 30% 30%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%),
              linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow:0 10px 20px rgba(37,99,235,.25);
}
.brand__txt{ display:flex; flex-direction:column; gap:2px; }
.brand__title{ margin:0; font-size:14px; font-weight:800; letter-spacing:.2px; }
.brand__sub{ margin:0; font-size:12px; color:var(--muted); line-height:1.3; }

.nav{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.nav a{
  text-decoration:none;
  font-size:13px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}
.nav a:hover{ color:var(--text); border-color:var(--stroke); background:#fff; }

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:16px;
}

.adSlot{
  border:1px dashed rgba(17,24,39,.20);
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.00));
  border-radius:16px;
  padding:14px;
  color:rgba(17,24,39,.45);
  display:flex; align-items:center; justify-content:center;
  min-height:96px;
}
.adSlot small{ font-weight:700; letter-spacing:.3px; text-transform:uppercase; }
.adSlot--top{ margin:10px 0 16px; min-height:90px; }
.adSlot--side{ position:sticky; top:86px; min-height:250px; }
.adSlot--bottom{ margin-top:16px; min-height:90px; }

.pageGrid{
  display:grid; gap:14px; grid-template-columns:1fr;
}
@media(min-width:980px){
  .pageGrid{ grid-template-columns: 1.85fr 1.05fr; align-items:start; }
}

.card{
  background:var(--surface);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.card__title{
  margin:0 0 6px;
  font-size:16px;
  font-weight:900;
  letter-spacing:.2px;
}
.card__hint{
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.alert{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(220,38,38,.25);
  background: rgba(220,38,38,.06);
  color:#991b1b;
  font-size:13px;
  line-height:1.45;
}

.form{ display:grid; gap:12px; }
.field{ display:grid; gap:6px; }
.field__label{
  font-size:13px; font-weight:800; letter-spacing:.2px;
}
.field__hint{
  margin:0;
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}

.input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.18);
  background:#fff;
  color:var(--text);
  font-size:15px;
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 5px var(--focus);
}

.actions{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:4px;
}
.btn{
  border:1px solid rgba(17,24,39,.14);
  background:#fff;
  color:var(--text);
  border-radius:999px;
  padding:11px 14px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  border-color: rgba(37,99,235,.35);
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(14,165,233,.10));
}
.btn--ghost{
  background: transparent;
}

.result{ display:grid; gap:10px; }
.result__row{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  padding:10px 12px;
  border:1px solid rgba(17,24,39,.10);
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.00));
  border-radius:14px;
}
.result__label{
  font-size:13px;
  color:var(--muted);
  line-height:1.35;
}
.result__value{
  font-size:15px;
  font-weight:950;
  letter-spacing:.2px;
}
.result__block{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.10);
  background: rgba(0,0,0,.02);
  color:var(--text);
  font-size:13px;
  line-height:1.55;
  white-space:pre-wrap;
}
.mini-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(14,165,233,.20);
  background: rgba(14,165,233,.08);
  color: rgba(17,24,39,.82);
  font-size:12px;
  line-height:1.45;
}

.footer{
  margin-top:18px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  text-align:center;
}
.badgeRow{
  display:flex; gap:8px; flex-wrap:wrap; margin-top:10px;
}
.badge{
  font-size:11px;
  font-weight:900;
  letter-spacing:.2px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.12);
  background:#fff;
  color:var(--muted);
}

/* Home page extras */
.hero{
  display:grid; gap:10px;
  padding:16px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(14,165,233,.06));
  border:1px solid rgba(37,99,235,.12);
  border-radius:22px;
  box-shadow: var(--shadow);
}
.hero h1{ margin:0; font-size:18px; font-weight:1000; letter-spacing:.2px; }
.hero p{ margin:0; color:var(--muted); font-size:13px; line-height:1.55; }

.toolbar{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:10px;
}
.search{
  flex:1 1 220px;
  display:flex; gap:8px; align-items:center;
  background:#fff; border:1px solid rgba(17,24,39,.14);
  border-radius:999px; padding:8px 10px;
}
.search input{
  border:none; outline:none; width:100%;
  font-size:14px; background:transparent;
}
.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  border:1px solid rgba(17,24,39,.12);
  background:#fff;
  border-radius:999px;
  padding:8px 10px;
  font-size:12px;
  font-weight:900;
  color:var(--muted);
  cursor:pointer;
}
.chip[aria-pressed="true"]{
  border-color: rgba(37,99,235,.35);
  background: rgba(37,99,235,.08);
  color: var(--text);
}

.toolGrid{
  margin-top:14px;
  display:grid; gap:12px;
  grid-template-columns:1fr;
}
@media(min-width:720px){
  .toolGrid{ grid-template-columns: repeat(2, 1fr); }
}
@media(min-width:1060px){
  .toolGrid{ grid-template-columns: repeat(3, 1fr); }
}
.toolCard{
  --acc: 37 99 235; /* default */
  text-decoration:none;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 14px 16px;
  border-radius:20px;
  border:1px solid rgba(15,23,42,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.86));
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.toolCard[data-cat="Finans"]{ --acc: 37 99 235; }
.toolCard[data-cat="Sağlık"]{ --acc: 22 163 74; }
.toolCard[data-cat="Zaman"]{ --acc: 124 58 237; }
.toolCard[data-cat="Eğitim"]{ --acc: 245 158 11; }
.toolCard[data-cat="Matematik"]{ --acc: 14 165 233; }
.toolCard[data-cat="Diğer"]{ --acc: 100 116 139; }

.toolCard::before{
  content:"";
  position:absolute; inset:0;
  border-radius:20px;
  pointer-events:none;
  background:
    radial-gradient(900px 240px at 10% 0%, rgba(var(--acc),.15), transparent 55%),
    radial-gradient(900px 240px at 90% 100%, rgba(var(--acc),.10), transparent 60%);
  opacity:1;
  z-index:-1;
}
.toolCard::after{
  content:"";
  position:absolute;
  top:-65%;
  left:-45%;
  width:130%;
  height:130%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.55) 20%, transparent 40%);
  transform: translateX(-70%) rotate(12deg);
  opacity:0;
  pointer-events:none;
  transition: opacity .14s ease, transform .65s ease;
}
.toolCard:hover::after{ opacity:.9; transform: translateX(55%) rotate(12deg); }

.toolCard:focus-visible{
  outline: 3px solid rgba(var(--acc), .28);
  outline-offset: 3px;
}

.toolCard__head{
  display:flex;
  gap:12px;
  align-items:center;
  min-width:0;
}
.toolCard__icon{
  width:44px; height:44px;
  border-radius:16px;
  display:grid; place-items:center;
  font-size:18px;
  background: radial-gradient(circle at 30% 30%, rgba(var(--acc),.22), rgba(var(--acc),.06));
  border:1px solid rgba(var(--acc),.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  flex:0 0 auto;
}
.toolCard__texts{
  min-width:0;
  flex:1 1 auto;
}
.toolCard h3{
  margin:0;
  font-size:16px;
  line-height:1.18;
  font-weight:850;
  letter-spacing:-.18px;
  color: var(--text);
}
.toolCard__meta{
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.70);
  font-size:11px;
  line-height:1;
}
.badge--cat{
  background: rgba(var(--acc),.10);
  border-color: rgba(var(--acc),.20);
  color: rgba(var(--acc),.95);
  font-weight:800;
}
.badge--slug{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  opacity:.85;
}
.toolCard__desc{
  margin:0;
  color: var(--muted);
  font-size:12.5px;
  line-height:1.45;
  max-width: 60ch;
}
.toolCard__cta{
  margin-top:2px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.toolCard__ctaText{
  color: rgba(15,23,42,.65);
  font-size:12px;
  font-weight:700;
}
.toolCard__arrow{
  width:34px; height:34px;
  border-radius:14px;
  display:grid; place-items:center;
  background: rgba(var(--acc),.10);
  border:1px solid rgba(var(--acc),.18);
  transition: transform .12s ease, background .12s ease;
  flex:0 0 auto;
}
.toolCard:hover .toolCard__arrow{ transform: translateX(2px); background: rgba(var(--acc),.16); }

/* Dark theme adjustments */
html.theme-dark .toolCard{
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(15,23,42,.78));
}
html.theme-dark .badge{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
}
html.theme-dark .toolCard__ctaText{ color: rgba(255,255,255,.72); }
html.theme-dark .toolCard::after{
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 20%, transparent 40%);
}
.countRow{ margin-top:8px; color:var(--muted); font-size:12px; }




/* Premium polish */
:root{
  --ring: rgba(59,130,246,.22);
}
@media (prefers-reduced-motion: no-preference){
  .toolCard, .card, .btn, .chip{ transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease, color .12s ease; }
  .toolCard:hover{ transform: translateY(-1px); }
  .btn:hover{ transform: translateY(-1px); }
}

.kicker{
  font-size:11px;
  letter-spacing:.28px;
  font-weight:1000;
  text-transform:uppercase;
  color:rgba(17,24,39,.45);
}

.themeBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;height:38px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.12);
  background:#fff;
  cursor:pointer;
}
.themeBtn:focus{ outline:none; box-shadow: 0 0 0 6px var(--ring); border-color: rgba(59,130,246,.45); }

html.theme-dark{
  --bg:#0b1220;
  --surface:#0f172a;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --stroke:rgba(255,255,255,.14);
  --shadow:0 18px 45px rgba(0,0,0,.55);
  --focus:rgba(59,130,246,.18);
  background: radial-gradient(1200px 700px at 10% 10%, rgba(37,99,235,.18), transparent 55%),
              radial-gradient(1200px 700px at 90% 0%, rgba(14,165,233,.14), transparent 60%),
              var(--bg);
}
html.theme-dark body{
  background: transparent;
}
html.theme-dark .siteHeader{
  background: rgba(11,18,32,.72);
}
html.theme-dark .input,
html.theme-dark .select{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}
html.theme-dark .btn{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}
html.theme-dark .btn--primary{
  background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(14,165,233,.14));
}
html.theme-dark .adSlot{
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.55);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
html.theme-dark .result__row{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}
html.theme-dark .result__block{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}




/* Home: popular & recent panels */
.homePanels{ margin-top:14px; }
.homePanels__grid{ display:grid; gap:12px; grid-template-columns:1fr; }
@media(min-width:980px){ .homePanels__grid{ grid-template-columns: 1fr 1fr; } }
.homePanel__title{ margin:0 0 6px; font-size:14px; font-weight:1000; }
.homePanel__hint{ margin:0 0 10px; color:var(--muted); font-size:12px; line-height:1.45; }

.miniGrid{ display:grid; gap:10px; grid-template-columns:1fr; }
@media(min-width:720px){ .miniGrid{ grid-template-columns: repeat(2, 1fr); } }
.miniCard{
  text-decoration:none;
  display:block;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(17,24,39,.12);
  background:#fff;
}
.miniCard:hover{ border-color: rgba(37,99,235,.35); }
.miniCard__t{ margin:0 0 4px; font-size:13px; font-weight:1000; }
.miniCard__m{ margin:0; color:var(--muted); font-size:12px; line-height:1.35; }

.emptyState{
  border:1px dashed rgba(17,24,39,.18);
  border-radius:16px;
  padding:12px;
  color: rgba(17,24,39,.55);
  font-size:12px;
  line-height:1.45;
  background: rgba(0,0,0,.02);
}
html.theme-dark .miniCard{ background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
html.theme-dark .emptyState{ border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: rgba(255,255,255,.62); }




/* Tool intro + mini guide (anti-thin-content) */
.toolIntro{
  margin-top:12px;
  border-radius:16px;
  border:1px solid rgba(17,24,39,.12);
  background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(0,0,0,.00));
  padding:12px 12px;
}
.toolIntro__desc{
  margin:0 0 10px;
  font-size:13px;
  line-height:1.6;
  color: rgba(17,24,39,.86);
}
.toolIntro__desc b{ font-weight:1000; }
.toolIntro__title{
  margin:0 0 8px;
  font-size:13px;
  font-weight:1000;
  letter-spacing:.2px;
}
.toolIntro__list{
  margin:0;
  padding-left:18px;
  color: rgba(17,24,39,.80);
  font-size:13px;
  line-height:1.55;
}
.toolIntro__list li{ margin:0 0 6px; }
.toolIntro__list li:last-child{ margin-bottom:0; }

html.theme-dark .toolIntro{
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(37,99,235,.18), rgba(255,255,255,.02));
}
html.theme-dark .toolIntro__desc,
html.theme-dark .toolIntro__list{
  color: rgba(255,255,255,.82);
}




/* Home: top searches (chips) */
.chipWrap{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chipBtn{
  appearance:none;
  border:1px solid rgba(17,24,39,.12);
  background:#fff;
  color: rgba(17,24,39,.86);
  padding:8px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
}
.chipBtn:hover{ border-color: rgba(37,99,235,.35); }
.chipBtn:focus{ outline:none; box-shadow: 0 0 0 6px var(--ring); border-color: rgba(59,130,246,.45); }
.chipBtn__n{
  margin-left:6px;
  font-weight:900;
  color: rgba(17,24,39,.55);
}
html.theme-dark .chipBtn{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
}
html.theme-dark .chipBtn__n{ color: rgba(255,255,255,.62); }


.footer{
  margin-top:28px;
  padding:18px 16px;
  border-top:1px solid rgba(17,24,39,.10);
  color: var(--muted);
}
.footer__links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  justify-content:center;
  margin-bottom:10px;
}
.footer__links a{
  color: var(--muted);
  text-decoration:none;
  font-size:13px;
}
.footer__links a:hover{ text-decoration:underline; }
.footer__copy{
  text-align:center;
  font-size:13px;
  margin:0;
}


/* Back to top */
.toTop{
  position:fixed;
  right:16px;
  bottom:16px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.18);
  background: rgba(255,255,255,.92);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:50;
}
.toTop:hover{ transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce){
  .toTop{ transition:none !important; }
}


/* Form controls */
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.18);
  background:#fff;
  color:var(--text);
  font-size:15px;
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 5px var(--focus);
}
select{
  background-color:#fff;
}
.field label{
  font-weight:650;
}

/* Page helpers */
.page{ padding: 18px 0 40px; }
.pageCard{ padding: 18px 18px; }
.pageTitle{ margin:0 0 10px 0; font-size:18px; font-weight:950; }
.grid2{ display:grid; grid-template-columns: 1fr; gap:12px; margin: 14px 0; }
.miniCard{ background: rgba(255,255,255,.9); border:1px solid rgba(17,24,39,.12); border-radius:16px; padding:14px; box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.muted{ color: var(--muted); font-size:13px; }
@media (min-width: 860px){
  .grid2{ grid-template-columns: 1fr 1fr; }
}


/* =========================
   Premium layer v2 (global)
   ========================= */
:root{
  --radius: 18px;
  --radius-sm: 14px;
  --radius-lg: 24px;
  --shadow: 0 14px 38px rgba(2,6,23,.08);
  --shadow-sm: 0 10px 22px rgba(2,6,23,.06);
  --stroke: rgba(15,23,42,.10);
  --stroke-2: rgba(15,23,42,.14);
  --focus: rgba(37,99,235,.18);
  --text: #0b1220;
  --muted: rgba(11,18,32,.70);
  --surface: rgba(255,255,255,.92);
  --surface2: rgba(255,255,255,.70);
}

body{
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(16,185,129,.08), transparent 60%),
    linear-gradient(180deg, #fbfbfe, #f4f6fb 60%, #f2f4f8);
  letter-spacing: .1px;
}

*{ -webkit-tap-highlight-color: transparent; }
a{ text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.card{
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.card__title{
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.card__hint{
  color: var(--muted);
}

.pageGrid{
  gap: 14px;
}
@media (min-width: 960px){
  .pageGrid{
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    align-items: start;
  }
  aside.card[aria-label="Sonuç"]{
    position: sticky;
    top: 78px;
  }
}

/* Form layout */
.form{
  display: grid;
  gap: 12px;
}
.formGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 860px){
  .formGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }
  .formGrid .field{ margin:0; }
}
.field label{
  font-weight: 800;
  color: rgba(11,18,32,.88);
}

input, select, textarea{
  border: 1px solid var(--stroke-2);
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 6px var(--focus);
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible, .copyBtn:focus-visible, .themeBtn:focus-visible, .toTop:focus-visible{
  outline: 3px solid rgba(37,99,235,.45);
  outline-offset: 2px;
}

select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(11,18,32,.70) 50%),
    linear-gradient(135deg, rgba(11,18,32,.70) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 15px) calc(50% - 2px),
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  padding-right: 42px;
}

/* Buttons */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.btn{
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 30px rgba(2,6,23,.08); }
.btn:active{ transform: translateY(0px); box-shadow: 0 10px 22px rgba(2,6,23,.06); }
.btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none; box-shadow:none; }

.btn--primary{
  border-color: rgba(37,99,235,.25);
  background: linear-gradient(180deg, rgba(37,99,235,.98), rgba(29,78,216,.98));
  color: #fff;
}
.btn--ghost{
  background: rgba(255,255,255,.9);
}

/* Alert */
.alert{
  border-radius: 16px;
  border: 1px solid rgba(239,68,68,.28);
  background: rgba(239,68,68,.08);
  color: rgba(127,29,29,1);
}

/* Result */
.result{
  display:grid;
  gap: 10px;
}
.result__row{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 12px;
  background: var(--surface2);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
}
.result__row--total{
  background: linear-gradient(180deg, rgba(16,185,129,.10), rgba(255,255,255,.85));
  border-color: rgba(16,185,129,.25);
}
.result__label{
  font-weight: 850;
  color: rgba(11,18,32,.80);
  font-size: 13px;
}
.result__value{
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.mini-note{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
}

/* Copy */
.copyBtn{
  width: 100%;
  margin: 8px 0 10px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  padding: 10px 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
}
.copyBtn:hover{ transform: translateY(-1px); }
.copyBtn:active{ transform: translateY(0px); }

/* FAQ */
.faq{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
}
.faq__sum{
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 950;
}
.faq__sum::-webkit-details-marker{ display:none; }
.faq__sum:after{
  content: "▾";
  float: right;
  opacity: .65;
}
details.faq[open] .faq__sum:after{ content:"▴"; }
.faq__body{
  padding: 0 14px 14px;
}
.faq__p{
  margin: 10px 0;
  line-height: 1.55;
  color: rgba(11,18,32,.86);
}

/* Badges */
.badgeRow{
  gap: 8px;
  margin-top: 12px;
}
.badge{
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(2,6,23,.04);
}

/* Ads: keep neutral */
.adSlot{
  background: transparent;
  border: 1px dashed rgba(15,23,42,.10);
  border-radius: 18px;
}
.adSlot--side{
  border-radius: 18px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}


/* =========================
   Visual fixes (hotfix)
   ========================= */

/* Hide empty detail box to avoid "blank card" look */
.result__block:empty{ display:none; }

/* Ensure badges render as compact chips (avoid stretched boxes) */
.badgeRow{ display:flex !important; flex-wrap:wrap; gap:8px; }
.badge{
  display:inline-flex !important;
  align-items:center;
  width:auto !important;
  max-width:100%;
  line-height:1.1;
  white-space:nowrap;
}

/* Related tools cards: prevent ugly wraps */
.relCard__t{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.relCard{ min-height:74px; }


/* Unit pills inside inputs */
.inputWrap{ position:relative; }
.inputWrap input{ padding-right: 64px; }
.unitPill{
  position:absolute;
  right:10px;
  top:50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.78);
  color: rgba(11,18,32,.78);
  font-weight: 850;
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(2,6,23,.04);
  pointer-events:none;
}

/* Mini summary in result card */
.mini-summary{
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(37,99,235,.06);
  color: rgba(11,18,32,.82);
  font-size: 13px;
  line-height: 1.55;
}

/* Desktop compact */
@media(min-width:980px){
  .card{ padding: 18px; }
  input, select, textarea{ padding: 11px 12px; font-size: 14px; }
  .result__value{ font-size: 18px; }
}

/* --- Trendokur PRO v3 tweaks --- */
.toolCard__desc{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: 36px;
}
.heroStats{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; margin-top:14px; }
@media (min-width: 860px){ .heroStats{ grid-template-columns: repeat(4, minmax(0,1fr)); } }
.heroStat{ padding:10px 12px; border:1px solid rgba(15,23,42,.10); border-radius:16px; background: rgba(255,255,255,.75); box-shadow: var(--shadow); }
html.theme-dark .heroStat{ border-color: rgba(255,255,255,.12); background: rgba(15,23,42,.55); }
.heroStat__k{ font-weight:1000; letter-spacing:.2px; }
.heroStat__v{ margin-top:2px; color: var(--muted); font-size:12px; }
.featuredRow{ margin-top:14px; }
.featuredRow__grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
@media (min-width: 860px){ .featuredRow__grid{ grid-template-columns: repeat(4, minmax(0,1fr)); } }
.featuredLink{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-radius:16px; border:1px solid rgba(15,23,42,.10); background: rgba(255,255,255,.75); box-shadow: var(--shadow); text-decoration:none; color:inherit; }
.featuredLink:hover{ border-color: rgba(var(--acc),.35); }
.featuredLink__left{ display:flex; gap:10px; align-items:center; min-width:0; }
.featuredLink__ico{ width:38px; height:38px; border-radius:14px; display:grid; place-items:center; background: radial-gradient(circle at 30% 30%, rgba(var(--acc),.22), rgba(var(--acc),.06)); border:1px solid rgba(var(--acc),.18); }
.featuredLink__t{ font-weight:950; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.featuredLink__m{ font-size:12px; color: var(--muted); }
.featuredLink__arr{ width:30px; height:30px; border-radius:12px; display:grid; place-items:center; background: rgba(var(--acc),.10); border:1px solid rgba(var(--acc),.18); }
html.theme-dark .featuredLink{ border-color: rgba(255,255,255,.12); background: rgba(15,23,42,.55); }

.featuredLink[data-cat="Finans"]{ --acc: 37 99 235; }
.featuredLink[data-cat="Sağlık"]{ --acc: 22 163 74; }
.featuredLink[data-cat="Zaman"]{ --acc: 124 58 237; }
.featuredLink[data-cat="Eğitim"]{ --acc: 245 158 11; }
.featuredLink[data-cat="Matematik"]{ --acc: 14 165 233; }
.featuredLink[data-cat="Teknoloji"]{ --acc: 56 189 248; }
.featuredLink[data-cat="Ev & Yapı"]{ --acc: 234 88 12; }
.featuredLink[data-cat="Diğer"]{ --acc: 100 116 139; }
