/* =========================================================
   IPTVkit – Frontend Stylesheet
   ========================================================= */
:root{
  --teal:#111111;              /* ana renk (siyah) */
  --teal-hover:#000000;        /* hover */
  --teal-bright:#4b5563;       /* açık vurgu */
  --teal-soft:#f3f4f6;         /* çok açık arka plan */
  --teal-pale:#fafafa;         /* en açık arka plan */
  --amber:#ffb23f;             /* aynı kaldı */
  --amber-soft:#fff3dc;        /* aynı kaldı */
  --bg:#ffffff;                /* arka plan beyaz */
  --page:#ffffff;              /* sayfa beyaz */
  --line:#e5e7eb;              /* çizgi rengi (gri) */
  --text:#374151;              /* gövde metni */
  --head:#111827;              /* başlık rengi */
  --muted:#6b7280;             /* soluk metin */
  --radius:16px;
  --shadow:0 10px 28px -16px rgba(0,0,0,.35);
  --font:"Nunito","Segoe UI",system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{font-family:var(--font);background:var(--page);color:var(--text);line-height:1.65;font-size:17px}
a{color:inherit;text-decoration:none}
svg{display:block}
.i{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
:focus-visible{outline:3px solid var(--teal-bright);outline-offset:3px;border-radius:8px}
.wrap{width:min(1180px,100% - 36px);margin-inline:auto}
h1,h2,h3,h4{color:var(--head);line-height:1.2;font-weight:800;letter-spacing:-.01em}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--teal);color:#fff;font:800 1rem var(--font);padding:13px 26px;border-radius:12px;border:0;cursor:pointer;transition:background .15s,box-shadow .15s}
.btn:hover{background:var(--teal-hover);box-shadow:var(--shadow)}
.btn.light{background:var(--teal-soft);color:var(--teal)}
.btn.light:hover{background:#dbe7ff;box-shadow:none}

/* ---------- announcement + header ---------- */
.notice{background:var(--teal-soft);text-align:center;padding:9px 18px;font-size:.92rem;font-weight:700;color:var(--head)}
.notice a{color:var(--teal);text-decoration:underline}
.header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.bar{display:flex;align-items:center;gap:28px;height:72px}
.logo{display:flex;align-items:center;gap:10px;font-weight:900;font-size:1.45rem;color:var(--head)}
.logo b{color:var(--teal)}
.logo-mark{width:36px;height:36px;border-radius:11px;background:var(--teal);color:#fff;display:grid;place-items:center;font-size:20px}
.menu{display:flex;gap:4px;list-style:none;flex:1;font-weight:700;font-size:.97rem}
.menu>li{position:relative}
.menu>li>a{display:flex;align-items:center;gap:5px;padding:10px 14px;border-radius:10px}
.menu>li>a:hover,.menu>li:focus-within>a{background:var(--teal-soft);color:var(--teal)}
.drop{position:absolute;left:0;top:100%;min-width:230px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;box-shadow:0 18px 40px -18px rgba(47,69,96,.35);display:none;list-style:none}
.menu>li:hover .drop,.menu>li:focus-within .drop{display:block}
.drop a{display:block;padding:9px 14px;border-radius:9px;font-weight:600;font-size:.94rem}
.drop a:hover{background:var(--teal-pale);color:var(--teal)}
.bar .btn{padding:10px 20px;font-size:.95rem}


/* ---------- hero / quick tiles ---------- */
.hero{background:#fff;padding:48px 0 28px;text-align:center}
.quick{display:grid;grid-template-columns:repeat(5,1fr);gap:14px; margin-top: 5px;}
.tile{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px 10px 16px;display:flex;flex-direction:column;align-items:center;gap:10px;font-weight:800;font-size:.95rem;color:var(--head);transition:transform .15s,border-color .15s,box-shadow .15s;position:relative}
.tile:hover{transform:translateY(-3px);border-color:var(--teal-bright);box-shadow:var(--shadow)}
.tile .ic{width:170px;height:100px;border-radius:15px;background:var(--teal-soft);color:var(--teal);display:grid;place-items:center;font-size:26px;overflow:hidden;background-size:cover;background-position:center;background-repeat:no-repeat}
.tile em{position:absolute;top:10px;right:10px;font-style:normal;font-size:.68rem;font-weight:900;background:var(--amber);color:#5b3b00;padding:2px 8px;border-radius:99px}

/* ---------- sections ---------- */
section{padding:56px 0}
.title{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:8px;flex-wrap:wrap}
.title h2{font-size:clamp(1.55rem,3vw,2.1rem)}
.lead{color:var(--muted);margin-bottom:26px;font-weight:600}
.more{color:var(--teal);font-weight:800}
.more:hover{text-decoration:underline}

/* ---------- checks list ---------- */
.rows{display:grid;gap:12px}
.row{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 20px;transition:border-color .15s,box-shadow .15s}
.row:hover{border-color:var(--teal-bright);box-shadow:var(--shadow)}
.row .ic{flex:none;width:48px;height:48px;border-radius:14px;background:var(--teal-soft);color:var(--teal);display:grid;place-items:center;font-size:24px}
.row p{flex:1;font-weight:700;color:var(--head)}
.row p span{display:block;font-weight:600;color:var(--muted);font-size:.9rem}
.row .btn{padding:10px 20px;font-size:.92rem}

/* ---------- platform ---------- */
.platform{background:var(--teal-pale);border-block:1px solid var(--line)}
.platform-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:48px;align-items:center}
.platform h2{font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:14px}
.platform p{color:var(--muted);font-weight:600}
.feats{display:grid;gap:14px}
.feat{display:flex;gap:16px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.feat .ic{flex:none;width:46px;height:46px;border-radius:13px;background:#fff;color:var(--teal);display:grid;place-items:center;font-size:23px;border:1px solid var(--line)}
.feat h3{font-size:1.05rem;margin-bottom:4px}
.feat p{font-size:.94rem}

/* ---------- players ---------- */
.chips{display:flex;flex-wrap:wrap;gap:12px}
.chip{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 22px;font-weight:800;color:var(--head);transition:all .15s}
.chip:hover{border-color:var(--teal-bright);color:var(--teal)}

/* ---------- calculators / tools ---------- */
.cards4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.tool{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;gap:10px;transition:transform .15s,border-color .15s,box-shadow .15s}
.tool:hover{transform:translateY(-3px);border-color:var(--teal-bright);box-shadow:var(--shadow)}
.tool .ic{width:46px;height:46px;border-radius:13px;background:var(--teal-soft);color:var(--teal);display:grid;place-items:center;font-size:23px;overflow:hidden;background-size:cover;background-position:center;background-repeat:no-repeat}
.tool h3{font-size:1.1rem}
.tool p{flex:1;font-size:.94rem;color:var(--muted);font-weight:600}
.tool .more{font-size:.93rem}

/* ---------- guides ---------- */
.guides{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.guide{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.guide:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.art{height:160px;display:grid;place-items:center;font-size:56px;color:#fff;background:linear-gradient(135deg,#5b8def,#8db4fb)}
.guide:nth-child(2) .art{background:linear-gradient(135deg,#ffb23f,#ffd17a)}
.guide:nth-child(3) .art{background:linear-gradient(135deg,#8a8cf2,#b4b6fa)}
.guide .body{padding:22px;display:flex;flex-direction:column;gap:8px;flex:1}
.tag{align-self:flex-start;font-size:.78rem;font-weight:900;color:var(--teal);background:var(--teal-soft);padding:3px 12px;border-radius:99px}
.guide h3{font-size:1.15rem}
.guide p{color:var(--muted);font-size:.94rem;font-weight:600;flex:1}

/* ---------- faq ---------- */
.faq{display:grid;gap:12px;max-width:860px;margin-inline:auto}
details{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:4px 22px}
details[open]{border-color:var(--teal-bright)}
summary{cursor:pointer;list-style:none;font-weight:800;color:var(--head);padding:16px 0;display:flex;justify-content:space-between;gap:16px;align-items:center}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:1.5rem;color:var(--teal);line-height:1}
details[open] summary::after{content:"–"}
details p,details ul{padding:0 0 18px;color:var(--muted);font-weight:600}
details ul{padding-left:20px}

/* ---------- footer ---------- */
footer{background:#fff;border-top:1px solid var(--line);padding:54px 0 28px;margin-top:0}
.fgrid{display:grid;grid-template-columns:1.4fr 1fr 1fr repeat(4,0.9fr);gap:24px}

.fgrid h4{font-size:.98rem;margin-bottom:12px}
.fgrid ul{list-style:none;display:grid;gap:8px;font-size:.93rem;font-weight:600;color:var(--muted)}
.fgrid a:hover{color:var(--teal)}
.fgrid p{color:var(--muted);font-size:.93rem;font-weight:600;margin-top:12px;max-width:30ch}
.legal{margin-top:34px;padding-top:22px;border-top:1px solid var(--line);font-size:.84rem;color:var(--muted);font-weight:600}
.legal strong{color:var(--head)}

/* =========================================================
   ARTICLE (blog detail)
   ========================================================= */
.crumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.9rem;font-weight:700;color:var(--muted);padding:26px 0 10px}
.crumbs a:hover{color:var(--teal)}
.crumbs span[aria-current]{color:var(--head)}
.post-head{max-width:860px;padding:8px 0 26px}
.post-head h1{font-size:clamp(2rem,4.4vw,3.1rem);font-weight:900;margin:16px 0 14px}
.post-head .dek{font-size:1.2rem;color:var(--muted);font-weight:600;max-width:60ch}
.meta-row{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;margin-top:24px;font-size:.92rem;font-weight:700;color:var(--muted)}
.by{display:flex;align-items:center;gap:12px;color:var(--head)}
.avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#5b8def,#8db4fb);color:#fff;display:grid;place-items:center;font-weight:900}
.by small{display:block;font-weight:700;color:var(--muted);font-size:.8rem;line-height:1.2}
.meta-row .m{display:flex;align-items:center;gap:7px}
.banner{height:clamp(190px,32vw,340px);border-radius:24px;background:linear-gradient(135deg,#dbe7ff 0%,#c4d8ff 45%,#e1e3ff 100%);border:1px solid var(--line);display:grid;place-items:center;color:var(--teal);font-size:clamp(70px,12vw,120px);position:relative;overflow:hidden}
.banner::before,.banner::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.55)}
.banner::before{width:260px;height:260px;left:-60px;bottom:-110px}
.banner::after{width:200px;height:200px;right:-40px;top:-80px}
.banner .i{position:relative;z-index:1;stroke-width:1.6}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:56px;padding:44px 0 20px;align-items:start}

/* prose */
.prose{font-size:1.1rem;line-height:1.85;max-width:72ch}
.prose p{margin-bottom:1.25em}
.prose h2{font-size:clamp(1.5rem,2.8vw,1.95rem);margin:2.1em 0 .7em}
.prose h3{font-size:1.25rem;margin:1.6em 0 .5em}
.prose a{color:var(--teal);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.prose strong{color:var(--head)}
.prose ul,.prose ol{margin:0 0 1.3em 1.3em}
.prose li{margin-bottom:.5em;padding-left:.3em}
.prose li::marker{color:var(--teal);font-weight:800}
.prose code{background:var(--teal-soft);color:var(--teal-hover);padding:2px 8px;border-radius:7px;font-size:.92em;font-weight:700}

/* callouts */
.callout{display:flex;gap:16px;border-radius:var(--radius);padding:20px 22px;margin:1.8em 0;border:1px solid var(--line)}
.callout .i{flex:none;font-size:26px;margin-top:2px}
.callout p{margin:0;font-size:1rem;line-height:1.7}
.callout strong{display:block;margin-bottom:4px}
.callout.note{background:var(--teal-pale);border-color:#cfdffc}
.callout.note .i{color:var(--teal)}
.callout.tip{background:#f1faf4;border-color:#cdebd8}
.callout.tip .i{color:#2f9a5a}
.callout.warn{background:var(--amber-soft);border-color:#fbdca4}
.callout.warn .i{color:#d98a12}

/* steps */
.steps{counter-reset:s;list-style:none;margin:1.4em 0 1.6em !important;display:grid;gap:14px}
.steps li{counter-increment:s;position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px 18px 68px;margin:0}
.steps li::before{content:counter(s);position:absolute;left:18px;top:16px;width:36px;height:36px;border-radius:11px;background:var(--teal-soft);color:var(--teal);display:grid;place-items:center;font-weight:900}
.steps li strong{display:block;margin-bottom:2px}

/* table */
.tbl{overflow-x:auto;margin:1.6em 0;border:1px solid var(--line);border-radius:var(--radius)}
table{width:100%;border-collapse:collapse;font-size:.97rem;min-width:460px}
th,td{padding:13px 18px;text-align:left;border-bottom:1px solid var(--line)}
th{background:var(--teal-pale);color:var(--head);font-weight:800}
tr:last-child td{border-bottom:0}
td:first-child{font-weight:800;color:var(--head)}
.tbl-note{font-size:.88rem;color:var(--muted);font-weight:600;margin-top:-.8em}

/* cta inline */
.cta-inline{display:flex;align-items:center;gap:20px;flex-wrap:wrap;background:var(--teal-soft);border-radius:20px;padding:26px 28px;margin:2.2em 0}
.cta-inline .ic{width:54px;height:54px;border-radius:16px;background:#fff;color:var(--teal);display:grid;place-items:center;font-size:27px}
.cta-inline div{flex:1;min-width:220px}
.cta-inline h3{margin:0 0 4px;font-size:1.2rem}
.cta-inline p{margin:0;font-size:.98rem}

/* sidebar */
.side{position:sticky;top:92px;display:grid;gap:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.card h4{font-size:1rem;margin-bottom:12px;display:flex;align-items:center;gap:8px}
.toc ol{list-style:none;display:grid;gap:2px;counter-reset:t}
.toc a{display:block;padding:8px 12px;border-radius:10px;font-weight:700;font-size:.93rem;color:var(--text);border-left:3px solid transparent;transition:background .15s}
.toc a:hover{background:var(--teal-pale);color:var(--teal);border-left-color:var(--teal)}
.side-cta{background:var(--teal);color:#fff;border:0;text-align:left}
.side-cta h4{color:#fff;font-size:1.1rem}
.side-cta p{font-size:.93rem;font-weight:600;color:#e6eeff;margin-bottom:16px}
.side-cta .btn{background:#fff;color:var(--teal);width:100%}
.side-cta .btn:hover{background:#eaf1ff;box-shadow:none}
.share-row{display:flex;gap:8px;flex-wrap:wrap}
.share-row a{padding:8px 14px;border:1px solid var(--line);border-radius:10px;font-weight:800;font-size:.88rem;color:var(--head);transition:all .15s}
.share-row a:hover{border-color:var(--teal-bright);color:var(--teal);background:var(--teal-pale)}

/* author + prev/next */
.author-box{display:flex;gap:20px;align-items:center;border:1px solid var(--line);border-radius:20px;padding:26px;margin-top:3em;background:var(--teal-pale)}
.author-box .avatar{width:68px;height:68px;font-size:1.5rem;flex:none}
.author-box h4{font-size:1.1rem}
.author-box p{margin:4px 0 0;font-size:.97rem;color:var(--muted);font-weight:600;line-height:1.6}
.pn{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:28px}
.pn a{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:var(--radius);padding:18px 22px;transition:all .15s;background:#fff}
.pn a:hover{border-color:var(--teal-bright);box-shadow:var(--shadow)}
.pn small{color:var(--muted);font-weight:800;font-size:.8rem}
.pn strong{color:var(--head);font-size:1rem;line-height:1.35}
.pn a:last-child{text-align:right}

/* related */
.related{background:var(--teal-pale);border-top:1px solid var(--line);margin-top:56px;padding:56px 0}

/* =========================================================
   COUNTRIES
   ========================================================= */
.countries{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.country{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:32px 20px 28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:14px;
  transition:.18s;
  position:relative;
  overflow:hidden;
}
.country::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,#eaf1ff 0%,transparent 55%);
  opacity:0;
  transition:opacity .2s;
  pointer-events:none;
}
.country:hover{
  transform:translateY(-6px);
  border-color:var(--teal-bright);
  box-shadow:0 22px 40px -20px rgba(43,102,217,.5);
}
.country:hover::after{opacity:1}
.country .flag{
  width:96px;
  height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:52px;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 8px 20px -12px rgba(47,69,96,.4);
  position:relative;
  z-index:1;
}
.country .flag img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.country h3{
  font-size:1.1rem;
  margin:0;
  position:relative;
  z-index:1;
}
.country p{
  font-size:.82rem;
  font-weight:800;
  color:var(--teal);
  background:var(--teal-soft);
  padding:5px 16px;
  border-radius:99px;
  margin:0;
  position:relative;
  z-index:1;
}

/* =========================================================
   CHANNELS (country detail)
   ========================================================= */
.country-hero{display:flex;align-items:center;gap:28px;background:linear-gradient(135deg,var(--teal-pale) 0%,#fff 100%);border:1px solid var(--line);border-radius:24px;padding:32px;margin:20px 0 36px}
.country-flag{flex:none;width:120px;height:84px;border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:64px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 24px -12px rgba(43,102,217,.3)}
.country-flag img{width:100%;height:100%;object-fit:cover;display:block}
.country-info{flex:1}
.country-info h1{font-size:clamp(1.7rem,3.2vw,2.4rem);margin:0 0 8px}
.country-info p{color:var(--muted);font-weight:600;font-size:.98rem;margin:0}
.count-badge{display:inline-block;background:var(--teal);color:#fff;padding:3px 12px;border-radius:99px;font-size:.82rem;font-weight:800;margin-right:6px}

.channels{display:grid;gap:14px;max-width:900px; margin-bottom: 10px;}
.channel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 22px;transition:.15s}
.channel:hover{border-color:var(--teal-bright);box-shadow:var(--shadow)}
.ch-head{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.ch-num{flex:none;width:32px;height:32px;border-radius:10px;background:var(--teal-soft);color:var(--teal);display:grid;place-items:center;font-weight:900;font-size:.88rem}
.ch-head h3{font-size:1.1rem;margin:0}
.code-row{display:flex;gap:10px;align-items:stretch}
.code-input{flex:1;padding:11px 14px;border:1px solid var(--line);border-radius:10px;font:600 .9rem ui-monospace,"SFMono-Regular",Menlo,monospace;background:var(--teal-pale);color:var(--head);width:100%}
.code-input:focus{outline:none;border-color:var(--teal-bright);background:#fff}
.copy-btn{white-space:nowrap;padding:11px 22px;font-size:.92rem}
.copy-btn.copied{background:#22c55e}
.empty-state{text-align:center;padding:60px 20px;background:var(--teal-pale);border:1px dashed var(--line);border-radius:var(--radius);color:var(--muted);font-weight:600}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1000px){
  .quick{grid-template-columns:repeat(4,1fr)}
  .cards4{grid-template-columns:1fr 1fr}
  .platform-grid{grid-template-columns:1fr}
  .guides{grid-template-columns:1fr 1fr}
  .fgrid{grid-template-columns:1fr 1fr 1fr}
  .menu{display:none}
  .bar{justify-content:space-between}
  .layout{grid-template-columns:1fr;gap:32px}
  .side{position:static;order:-1}
  .toc ol{grid-template-columns:1fr 1fr}
  .countries{grid-template-columns:repeat(3,1fr);gap:14px}
}
@media (max-width:640px){
  .quick{grid-template-columns:repeat(2,1fr)}
  .cards4,.guides{grid-template-columns:1fr}
  .fgrid{grid-template-columns:1fr 1fr}
  .row{flex-wrap:wrap}
  .row .btn{width:100%}
  .hero{padding-top:32px}
  .toc ol{grid-template-columns:1fr}
  .author-box{flex-direction:column;align-items:flex-start}
  .pn{grid-template-columns:1fr}
  .pn a:last-child{text-align:left}
  .prose{font-size:1.04rem}
  .steps li{padding-left:62px}
  .countries{grid-template-columns:repeat(2,1fr);gap:12px}
  .country{padding:24px 14px 20px;gap:10px}
  .country .flag{width:76px;height:54px;font-size:40px}
  .country h3{font-size:.96rem}
  .country p{font-size:.76rem;padding:4px 12px}
  .country-hero{flex-direction:column;text-align:center;padding:24px}
  .country-flag{width:100px;height:70px;font-size:52px}
  .channels{max-width:100%}
  .code-row{flex-wrap:wrap}
  .copy-btn{width:100%}
  .channel{padding:16px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* National Channels section header */
section h2 + .more,
.title .more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  background:var(--teal-soft);
  border-radius:10px;
  font-size:.9rem;
  transition:.15s;
}
.title .more:hover{
  background:var(--teal);
  color:#fff;
  text-decoration:none;
}
#countries-section{
  padding:20px 0 60px;
  background:linear-gradient(180deg, #fff 0%, var(--teal-pale) 100%);
  border-radius:24px;
  margin:20px 0;
}
#countries-section .title{
  align-items:flex-start;

    
}
#countries-section .title h2{
  font-size:clamp(1.6rem,3vw,2.2rem);
  padding-bottom:12px;
  position:relative;
}
#countries-section .title h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:56px;
  height:4px;
  border-radius:99px;
  background:linear-gradient(90deg, var(--teal), var(--teal-bright));
}
#countries-section .lead{
  font-size:1.05rem;
  margin:8px 0 32px;
  max-width:60ch;
}
#countries-section .title .more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 18px;
  background:var(--teal);
  color:#fff;
  border-radius:10px;
  font-size:.9rem;
  font-weight:800;
  transition:.15s;
}
#countries-section .title .more:hover{
  background:var(--teal-hover);
  box-shadow:var(--shadow);
  text-decoration:none;
}
/* ============ Mobile nav / Hamburger ============ */
.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  padding:10px;
  flex-direction:column;
  justify-content:space-between;
  transition:.15s;
}
.menu-toggle:hover{border-color:var(--teal-bright);background:var(--teal-pale)}
.menu-toggle span{
  display:block;
  height:2px;
  background:var(--head);
  border-radius:2px;
  transition:.25s;
}
.menu-toggle.active span:nth-child(1){transform:translateY(9px) rotate(45deg)}
.menu-toggle.active span:nth-child(2){opacity:0}
.menu-toggle.active span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}

.mobile-nav{
  display:none;
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  padding:90px 24px 24px;
  background:#fff;
  z-index:39;
  overflow-y:auto;
  animation:slideDown .2s ease;
}
.mobile-nav.open{display:block}
@keyframes slideDown{
  from{opacity:0;transform:translateY(-10px)}
  to{opacity:1;transform:translateY(0)}
}
.mobile-nav ul{list-style:none;display:grid;gap:4px}
.mobile-nav li a{
  display:block;
  padding:14px 16px;
  border-radius:12px;
  font-weight:800;
  font-size:1.05rem;
  color:var(--head);
}
.mobile-nav li a:hover,.mobile-nav li a:focus{background:var(--teal-soft);color:var(--teal)}
.mobile-nav ul ul{
  margin:4px 0 8px 16px;
  padding-left:12px;
  border-left:2px solid var(--teal-soft);
}
.mobile-nav ul ul a{
  font-size:.95rem;
  font-weight:700;
  color:var(--muted);
  padding:10px 14px;
}
.mobile-nav ul ul a:hover{color:var(--teal);background:var(--teal-pale)}
body.nav-open{overflow:hidden}

@media (max-width:1000px){
  .menu-toggle{display:flex}
  .main-nav{display:none}
  .bar{justify-content:space-between}
}
.menu{
  display:flex;
  gap:4px;
  list-style:none;
  flex:1;
  font-weight:700;
  font-size:.97rem;
  margin-left:40px;       /* logo ile menü arasına boşluk */
  justify-content:flex-start;
}
.guide .art{
  position:relative;
  overflow:hidden;
}
.guide .art img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  position:relative;
  z-index:1;
}
/* ============ Fix horizontal overflow ============ */
html, body{
  overflow-x: hidden;
  max-width: 100%;
}
*{
  max-width: 100%;
}
img, svg, video{
  max-width: 100%;
  height: auto;
}
.wrap{
  overflow-x: hidden;
}

/* Mobil menü kapatma butonu */
.mobile-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--head);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .15s;
  z-index: 2;
}
.mobile-close:hover{
  background: var(--teal-soft);
  border-color: var(--teal-bright);
  color: var(--teal);
}

/* Mobile nav relative context */
.mobile-nav{
  position: fixed;
  ...
}
@media (max-width: 640px){
  .quick,
  .cards4,
  .guides,
  .countries,
  .fgrid{
    max-width: 100%;
    overflow: hidden; margin-top: 5px;
  }
  .tile,
  .tool,
  .guide,
  .country{
    max-width: 100%;
    box-sizing: border-box;
  }
  .tile .ic{
    max-width: 100% !important;
    width: 100% !important;
  }
  .code-input,
  pre,
  code{
    overflow-wrap: break-word;
    word-break: break-all;
  }
  body{
    overflow-x: hidden;
  }
}

.mobile-close{
  position:absolute;
  top:16px;
  right:16px;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--head);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:.15s;
  z-index:2;
}
.mobile-close:hover{background:var(--teal-soft);border-color:var(--teal-bright);color:var(--teal)}
.nav-backdrop{
  position:fixed;
  inset:0;
  background:rgba(47,69,96,.45);
  opacity:0;
  visibility:hidden;
  transition:.25s;
  z-index:59;
}
.nav-backdrop.open{opacity:1;visibility:visible}
.mobile-nav{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  width:min(320px,85vw);
  background:#fff;
  border-left:1px solid var(--line);
  box-shadow:-12px 0 40px -12px rgba(47,69,96,.25);
  z-index:60;
  padding:88px 20px 24px;
  overflow-y:auto;
  transform:translateX(100%);
  transition:transform .28s cubic-bezier(.4,0,.2,1);
  visibility:hidden;
}
.mobile-nav.open{transform:translateX(0);visibility:visible}
/* =========================================================
   COUNTRIES
   ========================================================= */
.countries{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.country{
  position:relative;
  display:block;
  height:180px;
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  transition:transform .18s, box-shadow .18s, border-color .18s;
  text-decoration:none;
}

.country:hover{
  transform:translateY(-4px);
  border-color:var(--teal-bright);
  box-shadow:0 22px 40px -20px rgba(0,0,0,.35);
}

.country .flag{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border-radius:0;
  border:0;
  box-shadow:none;
  background:#f3f4f6;
  display:block;
  z-index:0;
}

.country .flag img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.country .flag:not(:has(img)){
  display:grid;
  place-items:center;
  font-size:72px;
}

.country::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%);
  z-index:1;
  pointer-events:none;
}

.country h3{
  position:absolute;
  left:18px;
  right:18px;
  bottom:44px;
  margin:0;
  color:#fff;
  font-size:1.15rem;
  font-weight:800;
  z-index:2;
  text-shadow:0 2px 6px rgba(0,0,0,.5);
}

.country p{
  position:absolute;
  left:18px;
  bottom:16px;
  margin:0;
  padding:4px 12px;
  background:rgba(255,255,255,.92);
  color:#111;
  border-radius:99px;
  font-size:.8rem;
  font-weight:800;
  z-index:2;
}

/* Tablet */
@media (max-width:1000px){
  .countries{grid-template-columns:repeat(2,1fr);gap:14px}
}

/* Mobil */
@media (max-width:640px){
  .countries{grid-template-columns:repeat(2,1fr);gap:12px}
  .country{height:130px}
  .country h3{font-size:.95rem;left:12px;right:12px;bottom:38px}
  .country p{left:12px;bottom:12px;font-size:.72rem;padding:3px 10px}
  .country .flag:not(:has(img)){font-size:48px}
}
.country h3{
  position:absolute;
  left:16px;
  bottom:52px;
  margin:0;
  padding:5px 14px;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border-radius:8px;
  color:#fff;
  font-size:1rem;
  font-weight:800;
  letter-spacing:.2px;
  z-index:2;
  text-shadow:none;
}

.country p{
  position:absolute;
  left:16px;
  bottom:16px;
  margin:0;
  padding:4px 12px;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
  border-radius:99px;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.3px;
  z-index:2;
}
.country h3{
  position:absolute;
  left:16px;
  bottom:40px;
  margin:0;
  padding:4px 12px;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border-radius:6px;
  color:#fff;
  font-size:.95rem;
  font-weight:800;
  letter-spacing:.2px;
  z-index:2;
  display:inline-block;
  max-width:calc(100% - 32px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.country p{
  position:absolute;
  left:16px;
  bottom:12px;
  margin:0;
  padding:3px 10px;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
  border-radius:99px;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.3px;
  z-index:2;
  display:inline-block;
}
/* =========================================================
   COUNTRIES
   ========================================================= */
.countries{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.country{
  position:relative;
  display:block;
  height:180px;
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  transition:transform .18s, box-shadow .18s, border-color .18s;
  text-decoration:none;
}

.country:hover{
  transform:translateY(-4px);
  border-color:var(--teal-bright);
  box-shadow:0 22px 40px -20px rgba(0,0,0,.35);
}

.country .flag{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border-radius:0;
  border:0;
  box-shadow:none;
  background:#f3f4f6;
  display:block;
  z-index:0;
}

.country .flag img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.country .flag:not(:has(img)){
  display:grid;
  place-items:center;
  font-size:72px;
}

.country::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%);
  z-index:1;
  pointer-events:none;
}

.country h3{
  position:absolute;
  left:16px;
  bottom:40px;
  margin:0;
  padding:4px 12px;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border-radius:6px;
  color:#fff;
  font-size:.95rem;
  font-weight:800;
  letter-spacing:.2px;
  z-index:2;
  display:inline-block;
  width:auto;
  max-width:calc(100% - 32px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.country p{
  position:absolute;
  left:16px;
  bottom:12px;
  margin:0;
  padding:3px 10px;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
  border-radius:99px;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.3px;
  z-index:2;
  display:inline-block;
  width:auto;
}

/* Tablet */
@media (max-width:1000px){
  .countries{grid-template-columns:repeat(2,1fr);gap:14px}
}

/* Mobil */
@media (max-width:640px){
  .countries{grid-template-columns:repeat(2,1fr);gap:12px}
  .country{height:130px}
  .country h3{font-size:.85rem;left:12px;bottom:34px;padding:3px 9px;max-width:calc(100% - 24px)}
  .country p{font-size:.68rem;left:12px;bottom:10px;padding:3px 8px}
  .country .flag:not(:has(img)){font-size:48px}
}
.bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:28px;height:72px}
.menu{display:flex;gap:4px;list-style:none;font-weight:700;font-size:.97rem;justify-content:center}
footer{background:#fff;border-top:1px solid var(--line);padding:54px 0 28px;margin-top:0}
.fgrid{display:grid;gap:30px}
.fgrid-top{grid-template-columns:1fr 1fr 1fr;gap:40px;align-items:start;}

.fgrid-bottom{grid-template-columns:repeat(4,1fr);gap:30px}
.fgrid h4{font-size:.98rem;margin-bottom:12px}
.fgrid ul{list-style:none;display:grid;gap:8px;font-size:.93rem;font-weight:600;color:var(--muted)}
.fgrid a:hover{color:var(--teal)}
.fgrid p{color:var(--muted);font-size:.93rem;font-weight:600;margin-top:12px;max-width:30ch}
.legal{margin-top:34px;padding-top:22px;border-top:1px solid var(--line);font-size:.84rem;color:var(--muted);font-weight:600}
.legal strong{color:var(--head)}
@media(max-width:1000px){
  .fgrid-top{grid-template-columns:1fr 1fr;gap:30px}
  .fgrid-bottom{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .fgrid-top{grid-template-columns:1fr}
  .fgrid-bottom{grid-template-columns:1fr 1fr}
  footer{background:#fff;border-top:1px solid var(--line);padding:54px 0 28px;margin-top:0}
.fgrid{display:grid;gap:30px}
.fgrid-top{grid-template-columns:1fr 1fr 1fr;gap:40px;align-items:start;margin-bottom:30px}
.fgrid-bottom{grid-template-columns:repeat(4,1fr);gap:30px}
.fgrid h4{font-size:.98rem;margin-bottom:12px}
.fgrid ul{list-style:none;display:grid;gap:8px;font-size:.93rem;font-weight:600;color:var(--muted)}
.fgrid a:hover{color:var(--teal)}
.fgrid p{color:var(--muted);font-size:.93rem;font-weight:600;margin-top:12px;max-width:30ch}
.legal{margin-top:34px;padding-top:22px;border-top:1px solid var(--line);font-size:.84rem;color:var(--muted);font-weight:600}
.legal strong{color:var(--head)}
@media(max-width:1000px){
  .fgrid-top{grid-template-columns:1fr 1fr;gap:30px}
  .fgrid-bottom{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .fgrid-top{grid-template-columns:1fr}
  .fgrid-bottom{grid-template-columns:1fr 1fr}
}
@media (max-width:1000px){
  .bar{grid-template-columns:auto 1fr auto}
  .menu-toggle{justify-self:end}
}

/* ============ ÜLKE KARTLARI ============ */
.countries-block .countries-grid{
  display:grid !important;
  grid-template-columns:repeat(5, minmax(0,1fr)) !important;
  gap:14px !important;
}

.countries-block .country{
  position:relative !important;
  display:block !important;
  aspect-ratio:1 / 1 !important;
  height:auto !important;
  width:100% !important;
  min-width:0 !important;
  border-radius:12px !important;
  overflow:hidden !important;
  border:1px solid var(--line) !important;
  background:#f3f4f6 !important;
  padding:0 !important;
  transition:transform .18s, box-shadow .18s, border-color .18s !important;
}

.countries-block .country:hover{
  transform:translateY(-3px) !important;
  border-color:var(--teal-bright) !important;
  box-shadow:0 18px 30px -18px rgba(0,0,0,.35) !important;
}

/* Resim kartı tamamen kaplasın, eşit dağılsın */
.countries-block .country .flag{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  border-radius:0 !important;
  border:0 !important;
  box-shadow:none !important;
  background:#f3f4f6 !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
}

.countries-block .country .flag img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
}

.countries-block .country .flag:not(:has(img)){
  display:grid !important;
  place-items:center !important;
  font-size:56px !important;
}

/* Tablet */
@media (max-width:1000px){
  .countries-block .countries-grid{
    grid-template-columns:repeat(4, minmax(0,1fr)) !important;
    gap:12px !important;
  }
}

/* Mobil - 2 kolon, kare */
@media (max-width:640px){
  .countries-block .countries-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:10px !important;
  }
  .countries-block .country{
    aspect-ratio:1 / 1 !important;
    border-radius:10px !important;
  }
  .countries-block .country .flag:not(:has(img)){font-size:40px !important}
}

/* ÜLKE KARTLARI - MASAÜSTÜ 3 DİKDÖRTGEN */
.countries-block .countries-grid{
  display:grid !important;
  grid-template-columns:repeat(3, 1fr) !important;
  gap:16px !important;
  width:100% !important;
}

.countries-block .country{
  display:block !important;
  position:relative !important;
  aspect-ratio:16 / 9 !important;
  height:auto !important;
  width:100% !important;
  border-radius:12px !important;
  overflow:hidden !important;
  border:1px solid var(--line) !important;
  background:#f3f4f6 !important;
  padding:0 !important;
  transition:transform .18s, box-shadow .18s, border-color .18s !important;
}

.countries-block .country:hover{
  transform:translateY(-3px) !important;
  border-color:var(--teal-bright) !important;
  box-shadow:0 18px 30px -18px rgba(0,0,0,.35) !important;
}

.countries-block .country .flag{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  border-radius:0 !important;
  border:0 !important;
  background:#f3f4f6 !important;
  display:block !important;
}

.countries-block .country .flag img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
}

.countries-block .country .flag:not(:has(img)){
  display:grid !important;
  place-items:center !important;
  font-size:48px !important;
}

/* Tablet */
@media (max-width:1000px){
  .countries-block .countries-grid{
    grid-template-columns:repeat(2, 1fr) !important;
    gap:14px !important;
  }
}

/* Mobil */
@media (max-width:640px){
  .countries-block .countries-grid{
    grid-template-columns:repeat(2, 1fr) !important;
    gap:10px !important;
  }
  .countries-block .country{
    aspect-ratio:16 / 9 !important;
    border-radius:10px !important;
  }
  .countries-block .country .flag:not(:has(img)){font-size:32px !important}
}

/* ============ QUICK TILES — FINAL ============ */
.quick{
  display:grid !important;
  grid-template-columns:repeat(6,1fr) !important;
  gap:16px !important;
}
.tile{
  background:#fff !important;
  border:1px solid var(--line) !important;
  border-radius:18px !important;
  padding:22px 12px 18px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:12px !important;
  font-weight:800 !important;
  font-size:.92rem !important;
  color:var(--head) !important;
  text-align:center !important;
  position:relative !important;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
  overflow:hidden !important;
}
.tile:hover{
  transform:translateY(-5px) !important;
  border-color:var(--teal-bright) !important;
  box-shadow:0 18px 32px -16px rgba(43,102,217,.45) !important;
}
.tile .ic{
  width:100% !important;
  height:100px !important;
  border-radius:12px !important;
  background-color:var(--teal-soft) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  color:var(--teal) !important;
  display:grid !important;
  place-items:center !important;
  font-size:30px !important;
  overflow:hidden !important;
  flex:none !important;
}
.tile .ic svg{
  width:32px !important;
  height:32px !important;
}
.tile em{
  position:absolute !important;
  top:10px !important;
  right:10px !important;
  font-style:normal !important;
  font-size:.66rem !important;
  font-weight:900 !important;
  background:var(--amber) !important;
  color:#5b3b00 !important;
  padding:3px 9px !important;
  border-radius:99px !important;
  z-index:2 !important;
}

@media (max-width:1100px){
  .quick{grid-template-columns:repeat(4,1fr) !important;gap:14px !important}
}
@media (max-width:700px){
  .quick{grid-template-columns:repeat(2,1fr) !important;gap:12px !important}
  .tile{padding:18px 10px 14px !important;font-size:.86rem !important}
  .tile .ic{height:80px !important;font-size:26px !important}
  .tile .ic svg{width:26px !important;height:26px !important}
}
/* Tool title (inside quick tile) */
.tile{
  font-size:.95rem;
  font-weight:800;
  color:var(--head);
  line-height:1.35;
  letter-spacing:-.01em;
}
.tile:hover{
  color:var(--teal);
}

/* Badge (New) */
.tile em{
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
  background:var(--amber);
  color:#5b3b00;
  padding:3px 9px;
  border-radius:99px;
}
/* Tool title with background */
.tile-title{
  display:inline-block;
  background:var(--teal-soft);
  color:var(--teal);
  padding:6px 14px;
  border-radius:8px;
  font-weight:800;
  font-size:.88rem;
  line-height:1.3;
  margin-top:4px;
  transition:.15s;
}
.tile:hover .tile-title{
  background:var(--teal);
  color:#fff;
} 
@media (max-width:700px){
  .quick{
    grid-template-columns:repeat(2,1fr) !important;
    gap:12px !important;
  }
  .tile{
    padding:14px 8px 12px !important;
    gap:8px !important;
  }
  .tile .ic{
    height:100px !important;
    border-radius:10px !important;
  }
  .tile-title{
    font-size:.78rem !important;
    padding:5px 10px !important;
  }
}
@media (max-width:700px){
  .tile{height:110px !important}
  .tile-title{font-size:.78rem !important;padding:18px 8px 8px !important}
}
@media (max-width:700px){
  .tile{
    height:120px !important;
    border-radius:14px !important;
  }
  .tile-title{
    font-size:.78rem !important;
    padding:18px 8px 8px !important;
  }
  .quick{
    grid-template-columns:repeat(2,1fr) !important;
    gap:10px !important;
  }
}
@media (max-width:700px){
  .quick{
    grid-template-columns:repeat(2,1fr) !important;
    gap:10px !important;
  }
  .tile{
    height:120px !important;
    border-radius:14px !important;
  }
  .tile-title{
    font-size:.78rem !important;
    padding:18px 8px 8px !important;
  }
}
/* ============ Quick tiles — full-cover images ============ */
.quick{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:16px;
}

.tile{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  height:140px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  text-decoration:none;
  display:block;
  transition:transform .18s ease, box-shadow .18s ease;
}
.tile:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 32px -16px rgba(43,102,217,.5);
}

.tile-title{
  position:absolute;
  left:0;right:0;bottom:0;
  padding:24px 12px 12px;
  background:linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
  color:#fff;
  font-weight:800;
  font-size:.9rem;
  line-height:1.3;
  text-align:center;
}

.tile em{
  position:absolute;
  top:10px;
  right:10px;
  font-style:normal;
  font-size:.66rem;
  font-weight:900;
  background:var(--amber);
  color:#5b3b00;
  padding:3px 9px;
  border-radius:99px;
  z-index:2;
}

/* Responsive */
@media (max-width:1100px){
  .quick{grid-template-columns:repeat(4,1fr);gap:14px}
}
@media (max-width:700px){
  .quick{grid-template-columns:repeat(2,1fr) !important;gap:10px !important}
  .tile{
    height:110px !important;
    border-radius:12px !important;
    background-size:cover !important;
    background-position:center !important;
    background-repeat:no-repeat !important;
  }
  .tile-title{
    font-size:.75rem !important;
    padding:16px 6px 8px !important;
  }
}
.crumbs{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin:18px 0 14px;
  padding:8px 14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  font-size:.84rem;
  font-weight:700;
  color:var(--muted);
}
.crumbs a{
  display:inline-flex;
  align-items:center;
  color:var(--head);
  text-decoration:none;
  padding:2px 6px;
  border-radius:6px;
  transition:background-color .15s ease,color .15s ease;
}
.crumbs a:hover{
  background:var(--teal-soft);
  color:var(--teal);
}
.crumbs span[aria-current="page"]{
  color:var(--teal);
  font-weight:800;
  padding:2px 6px;
}

.channels{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.channel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 16px;
  box-shadow:0 4px 16px -12px rgba(15,23,42,.18);
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.channel:hover{
  border-color:var(--teal);
  box-shadow:0 10px 24px -14px rgba(15,23,42,.24);
  transform:translateY(-1px);
}
.ch-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.ch-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  height:26px;
  padding:0 7px;
  border-radius:8px;
  background:var(--teal-soft);
  color:var(--head);
  font-size:.78rem;
  font-weight:800;
  flex:none;
}
.ch-head h3{
  margin:0;
  font-size:.98rem;
  font-weight:800;
  color:var(--head);
  line-height:1.3;
  word-break:break-word;
}
.code-row{
  display:flex;
  align-items:stretch;
  gap:8px;
}
.code-input{
  flex:1;
  min-width:0;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f8fafc;
  color:#0f172a;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:.82rem;
  font-weight:600;
  outline:none;
  transition:border-color .15s ease,background-color .15s ease;
}
.code-input:focus{
  border-color:var(--teal);
  background:#fff;
}
.code-row .copy-btn{
  flex:none;
  padding:0 14px;
  border-radius:10px;
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease;
}
.code-row .copy-btn.copied{
  background:#0f766e;
  border-color:#0f766e;
  color:#fff;
}

@media (max-width:820px){
  .channels{
    grid-template-columns:1fr;
    gap:10px;
  }
}
@media (max-width:640px){
  .crumbs{
    margin:12px 0 10px;
    padding:6px 10px;
    font-size:.78rem;
    gap:4px;
  }
  .channel{
    padding:12px;
    border-radius:12px;
  }
  .ch-head h3{
    font-size:.92rem;
  }
  .code-row{
    flex-direction:column;
    gap:8px;
  }
  .code-input{
    font-size:.8rem;
    padding:9px 10px;
  }
  .code-row .copy-btn{
    width:100%;
    padding:9px 12px;
    text-align:center;
  }
}