/* te-mail — kurulum rehberi sayfaları */

.guide-top{
  position:sticky;top:0;z-index:10;
  background:var(--surface);border-bottom:1px solid var(--line);
}
.guide-top .inner{
  max-width:820px;margin:0 auto;padding:14px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.guide-top .brand img{height:32px;width:auto;display:block}
:root[data-theme="dark"] .guide-top .brand img{filter:brightness(1.28) saturate(1.05)}
.guide-top .right{display:flex;align-items:center;gap:10px}

.theme-toggle{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;
  background:var(--surface);border:1px solid var(--line);
  color:var(--text-2);transition:.16s color,.16s border-color;
}
.theme-toggle:hover{color:var(--brand);border-color:var(--brand-300)}
.theme-toggle svg{width:18px;height:18px}
.theme-toggle .i-sun{display:none}
:root[data-theme="dark"] .theme-toggle .i-sun{display:block}
:root[data-theme="dark"] .theme-toggle .i-moon{display:none}

.btn-back{
  display:inline-flex;align-items:center;gap:7px;
  height:38px;padding:0 15px;border-radius:999px;
  border:1px solid var(--line);background:var(--surface);
  color:var(--text-2);text-decoration:none;font-size:13.5px;font-weight:600;
  transition:.16s color,.16s border-color;
}
.btn-back:hover{color:var(--brand);border-color:var(--brand-300)}
.btn-back svg{width:16px;height:16px}

.guide{max-width:820px;margin:0 auto;padding:34px 24px 60px}

.guide-head{margin-bottom:30px}
.guide-head .kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 13px;border-radius:999px;margin-bottom:16px;
  background:var(--brand-50);color:var(--brand);
  font-size:12.5px;font-weight:600;
}
.guide-head .kicker svg{width:15px;height:15px}
.guide-head h1{margin:0 0 10px;font-size:32px;font-weight:700;letter-spacing:-.8px;line-height:1.2}
.guide-head p{margin:0;color:var(--text-2);font-size:15px;line-height:1.65;max-width:62ch}

/* Sunucu bilgileri kartı */
.server-card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:22px 24px;margin:0 0 32px;
  box-shadow:var(--shadow-sm);
}
.server-card h2{margin:0 0 4px;font-size:17px;font-weight:700}
.server-card .hint{margin:0 0 18px;font-size:13.2px;color:var(--text-3);line-height:1.55}
.server-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media (max-width:640px){.server-grid{grid-template-columns:1fr}}
.server-col h3{
  margin:0 0 10px;font-size:12px;font-weight:700;letter-spacing:.6px;
  text-transform:uppercase;color:var(--text-3);
}
.kv{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px dashed var(--line)}
.kv:last-child{border-bottom:0}
.kv dt{color:var(--text-2);font-size:13.5px;margin:0}
.kv dd{margin:0;font-size:13.5px;font-weight:600;text-align:right;word-break:break-all}
.kv dd code{
  background:var(--surface-2);border:1px solid var(--line);
  border-radius:6px;padding:2px 7px;font-size:12.8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* Adımlar */
.steps{list-style:none;margin:0;padding:0;counter-reset:step}
.steps > li{
  position:relative;padding:0 0 26px 52px;counter-increment:step;
}
.steps > li::before{
  content:counter(step);
  position:absolute;left:0;top:0;
  width:34px;height:34px;border-radius:50%;
  background:var(--brand);color:#fff;
  display:grid;place-items:center;
  font-size:14.5px;font-weight:700;
}
.steps > li::after{
  content:"";position:absolute;left:17px;top:38px;bottom:6px;width:2px;
  background:var(--line);
}
.steps > li:last-child{padding-bottom:0}
.steps > li:last-child::after{display:none}
.steps h3{margin:6px 0 7px;font-size:16.5px;font-weight:600}
.steps p{margin:0 0 8px;color:var(--text-2);font-size:14.3px;line-height:1.7}
.steps ul{margin:8px 0 0;padding-left:20px;color:var(--text-2);font-size:14.3px;line-height:1.75}
.steps code{
  background:var(--surface-2);border:1px solid var(--line);
  border-radius:6px;padding:1px 6px;font-size:13px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--text);
}

.callout{
  display:flex;gap:12px;align-items:flex-start;
  background:var(--brand-50);border:1px solid rgba(17,119,189,.18);
  border-radius:var(--r-md);padding:14px 16px;margin:26px 0 0;
  font-size:13.6px;line-height:1.65;color:var(--text-2);
}
.callout svg{width:18px;height:18px;flex:none;margin-top:2px;color:var(--brand)}
.callout b{color:var(--text)}
.callout.warn{background:var(--danger-bg);border-color:rgba(214,69,69,.22)}
.callout.warn svg{color:var(--danger)}

.guide-foot{
  margin-top:40px;padding-top:24px;border-top:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  font-size:13px;color:var(--text-3);
}
.guide-foot a{color:var(--text-2);text-decoration:none;font-weight:600}
.guide-foot a:hover{color:var(--brand);text-decoration:underline}
.guide-foot .others{display:flex;gap:8px;flex-wrap:wrap}
.guide-foot .others a{
  padding:7px 13px;border-radius:999px;border:1px solid var(--line);
  background:var(--surface);font-weight:500;font-size:12.8px;
}
.guide-foot .others a:hover{border-color:var(--brand-300);background:var(--brand-50);text-decoration:none}

/* ---------- Kapı: rehber açılmadan önce adres sorusu ---------- */
.gate{
  min-height:calc(100dvh - 67px);
  display:flex;align-items:center;justify-content:center;
  padding:32px 24px 60px;
}
.gate[hidden]{display:none}

.gate-card{
  width:100%;max-width:520px;text-align:center;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-xl);padding:44px 40px 36px;
  box-shadow:var(--shadow-lg);
}
.gate-icon{
  width:60px;height:60px;margin:0 auto 20px;border-radius:18px;
  background:var(--brand-50);color:var(--brand);
  display:grid;place-items:center;
}
.gate-icon svg{width:28px;height:28px}
.gate-card .kicker{
  display:inline-block;margin-bottom:12px;padding:5px 12px;border-radius:999px;
  background:var(--surface-2);border:1px solid var(--line);
  color:var(--text-3);font-size:12px;font-weight:600;
}
.gate-card h1{margin:0 0 10px;font-size:27px;font-weight:700;letter-spacing:-.6px;line-height:1.22}
.gate-card .lead{margin:0 0 26px;color:var(--text-2);font-size:14.6px;line-height:1.65}

.setup-form{display:flex;gap:10px;flex-wrap:wrap}
.setup-form .box{position:relative;flex:1;min-width:220px;display:flex;align-items:center}
.setup-form .box .lead{position:absolute;left:15px;margin:0;color:var(--text-3);display:grid;place-items:center;pointer-events:none}
.setup-form .box .lead svg{width:18px;height:18px}
.setup-form input{
  width:100%;height:52px;padding:0 14px 0 44px;
  background:var(--surface-2);color:var(--text);
  border:1px solid var(--line);border-radius:var(--r-md);
  font-size:15px;transition:.15s border-color,.15s box-shadow,.15s background;
}
.setup-form input::placeholder{color:var(--text-3)}
.setup-form input:focus{
  outline:none;background:var(--surface);
  border-color:var(--brand);box-shadow:0 0 0 3px rgba(17,119,189,.13);
}
.setup-form button{
  height:52px;padding:0 24px;border:0;border-radius:var(--r-md);cursor:pointer;
  background:var(--brand);color:#fff;font-size:15px;font-weight:600;
  box-shadow:0 8px 20px rgba(17,119,189,.24);
  transition:.15s background,.15s transform;
}
.setup-form button:hover{background:var(--brand-600)}
.setup-form button:active{transform:translateY(1px)}

.setup-err{
  display:none;margin:14px 0 0;padding:10px 13px;border-radius:var(--r-md);
  background:var(--danger-bg);color:var(--danger);
  border:1px solid rgba(214,69,69,.24);
  font-size:13.2px;line-height:1.5;text-align:left;
}
.setup-err.show{display:block}

.gate-note{
  margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line);
  font-size:12.6px;color:var(--text-3);line-height:1.6;
}

/* ---------- Hazırlandı çubuğu ---------- */
.ready-bar{
  display:flex;align-items:center;gap:13px;flex-wrap:wrap;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);padding:13px 17px;margin:0 0 28px;
  box-shadow:var(--shadow-sm);
}
.ready-bar .tick{
  width:32px;height:32px;flex:none;border-radius:50%;
  background:rgba(30,158,106,.13);color:var(--success);
  display:grid;place-items:center;
}
.ready-bar .tick svg{width:17px;height:17px}
.ready-bar .txt{flex:1;min-width:190px;font-size:13.8px;line-height:1.5;color:var(--text-2)}
.ready-bar .txt b{color:var(--text)}
.ready-bar button{
  height:34px;padding:0 14px;border-radius:999px;cursor:pointer;
  background:transparent;border:1px solid var(--line-strong);color:var(--text-2);
  font-size:12.8px;font-weight:600;transition:.15s color,.15s border-color;
}
.ready-bar button:hover{color:var(--brand);border-color:var(--brand-300)}

/* ---------- Değişken alanlar ---------- */
.v{color:var(--brand);font-weight:600;background:var(--brand-50);border-radius:5px;padding:1px 6px}
code.v{border-color:rgba(17,119,189,.28);color:var(--brand);background:var(--brand-50)}

@media (max-width:520px){
  .gate{padding:20px 16px 40px}
  .gate-card{padding:32px 22px 26px;border-radius:var(--r-lg)}
  .gate-card h1{font-size:23px}
  .setup-form button{width:100%}
}
