/* Geliştirici Portalı: Discord Developer Portal düzeninde koyu panel (kenar çubuğu, üst çubuk, sayfalar, belgeler) */
:root {
  --dp-bg: #111214;
  --dp-side: #17181b;
  --dp-main: #1e1f22;
  --dp-card: #26282c;
  --dp-card-2: #2e3035;
  --dp-input: #141517;
  --dp-line: #2f3136;
  --dp-line-2: #3d4047;
  --dp-text: #f2f3f5;
  --dp-text-2: #c4c9d1;
  --dp-muted: #949ba4;
  --dp-blurple: #5865f2;
  --dp-blurple-h: #4752c4;
  --dp-green: #23a55a;
  --dp-green-h: #1a8a4a;
  --dp-red: #da373c;
  --dp-red-h: #a12829;
  --dp-link: #00a8fc;
  --dp-mint: #2de1b5;
  --dp-radius: 12px;
  --dp-display: 'Space Grotesk', system-ui, sans-serif;
  --dp-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --dp-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --dp-ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.dvp { margin: 0; background: var(--dp-bg); color: var(--dp-text); font: 15px/1.55 var(--dp-body); -webkit-font-smoothing: antialiased; }
:where(.dvp) a { color: var(--dp-link); text-decoration: none; }
:where(.dvp) a:hover { text-decoration: underline; }
:where(.dvp) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.dvp) button:disabled { cursor: not-allowed; }
:where(.dvp) code { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); font: 500 .88em var(--dp-mono); color: #e7eaf0; }
:where(.dvp) svg { flex: none; }
.dp-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--dp-blurple); color: #fff; }
.dp-skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- iskelet */
.dp { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.dp-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; background: var(--dp-side); border-right: 1px solid var(--dp-line); overflow-y: auto; }
.dp-brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; color: var(--dp-text) !important; text-decoration: none !important; }
.dp-brand b { display: block; font: 700 16px/1.15 var(--dp-display); }
.dp-brand small { display: block; color: var(--dp-muted); font-size: 12.5px; font-weight: 600; }
.dp-logo { display: grid; filter: drop-shadow(0 4px 12px rgba(45, 225, 181, .25)); }
.dp-nav { display: grid; gap: 2px; }
.dp-nav-h { margin: 16px 10px 6px; color: var(--dp-muted); font: 700 11.5px var(--dp-body); letter-spacing: .06em; text-transform: uppercase; }
.dp-nav-i {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--dp-text-2) !important; font-weight: 600; font-size: 14.5px;
  text-decoration: none !important; transition: background-color .12s, color .12s;
}
.dp-nav-i:hover { background: rgba(255, 255, 255, .05); color: var(--dp-text) !important; }
.dp-nav-i.on { background: rgba(88, 101, 242, .16); color: #fff !important; box-shadow: inset 3px 0 0 var(--dp-blurple); }
.dp-nav-i svg { color: var(--dp-muted); }
.dp-nav-i.on svg { color: #aab3ff; }
.dp-nav-sub { display: grid; gap: 1px; margin: 2px 0 6px 30px; padding-left: 12px; border-left: 1px solid var(--dp-line-2); }
.dp-nav-sub a { padding: 5px 10px; border-radius: 6px; color: var(--dp-muted) !important; font-size: 13.5px; font-weight: 500; text-decoration: none !important; }
.dp-nav-sub a:hover, .dp-nav-sub a.on { color: var(--dp-text) !important; background: rgba(255, 255, 255, .04); }
.dp-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 4px 10px; color: var(--dp-muted) !important; font-weight: 600; font-size: 13.5px; text-decoration: none !important; }
.dp-back:hover { color: var(--dp-text) !important; }
.dp-appchip { display: flex; align-items: center; gap: 10px; margin: 0 2px 4px; padding: 10px; border-radius: 10px; background: var(--dp-card); border: 1px solid var(--dp-line); }
.dp-appchip b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.dp-appchip small { display: inline-flex; align-items: center; gap: 6px; color: var(--dp-muted); font-size: 12.5px; }
.dp-appchip i, .dp-botmeta i { width: 8px; height: 8px; border-radius: 50%; background: #80848e; display: inline-block; }
.dp-appchip i.on, .dp-botmeta i.on { background: var(--dp-green); box-shadow: 0 0 6px rgba(35, 165, 90, .7); }

.dp-scrim { display: none; }
.dp-body { min-width: 0; display: flex; flex-direction: column; background: var(--dp-main); }
.dp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 28px; background: rgba(30, 31, 34, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--dp-line); }
.dp-menu { display: none; color: var(--dp-text-2); }
.dp-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--dp-muted); font-size: 14px; white-space: nowrap; overflow: hidden; }
.dp-crumbs a { color: var(--dp-muted) !important; }
.dp-crumbs b { color: var(--dp-text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.dp-top-r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.dp-toplink { color: var(--dp-text-2) !important; font-weight: 600; font-size: 14px; }
.dp-user { display: inline-flex; align-items: center; gap: 9px; color: var(--dp-text-2); font-weight: 600; font-size: 14px; }
.dp-user:empty { display: none; }
.dp-main { flex: 1; min-width: 0; padding: 32px 40px 140px; }
.dp-view, .dp-docs { max-width: 1040px; }

/* ---------------------------------------------------------------- ortak parçalar */
.dp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.dp-head h1 { margin: 0 0 6px; font: 700 28px/1.2 var(--dp-display); letter-spacing: -.01em; }
.dp-head p { margin: 0; max-width: 680px; color: var(--dp-muted); font-size: 15px; }
.dp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 8px; font: 600 14.5px var(--dp-body) !important;
  color: #fff !important; text-decoration: none !important; white-space: nowrap; transition: background-color .15s, opacity .15s, transform .1s;
}
.dp-btn:active:not(:disabled) { transform: translateY(1px); }
.dp-btn:disabled { opacity: .5; }
.dp-btn-sm { height: 32px; padding: 0 12px; font-size: 13px !important; border-radius: 7px; }
.dp-btn-pri { background: var(--dp-blurple); }
.dp-btn-pri:hover:not(:disabled) { background: var(--dp-blurple-h); }
.dp-btn-sec { background: #4e5058; }
.dp-btn-sec:hover:not(:disabled) { background: #6d6f78; }
.dp-btn-sec.ok { background: var(--dp-green); }
.dp-btn-ok { background: var(--dp-green); }
.dp-btn-ok:hover:not(:disabled) { background: var(--dp-green-h); }
.dp-btn-danger { background: var(--dp-red); }
.dp-btn-danger:hover:not(:disabled) { background: var(--dp-red-h); }
.dp-btn-link { background: none; color: var(--dp-text) !important; padding: 0 12px; }
.dp-btn-link:hover { text-decoration: underline !important; }
.dp-btn:focus-visible, .dp-switch:focus-visible, .dp-input:focus-visible, .dp-card:focus-visible { outline: 2px solid var(--dp-blurple); outline-offset: 2px; }
.dp-ava { border-radius: 14px; object-fit: cover; display: inline-grid; place-items: center; }
.dp-ava.round { border-radius: 50%; }
.dp-ava-fb { background: linear-gradient(135deg, #5865f2, #8b7bff); color: #fff; }
.dp-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--dp-blurple); color: #fff; font: 700 10.5px/1.3 var(--dp-display); letter-spacing: .04em; vertical-align: 3px; }
.dp-kicker { color: #aab3ff; font: 700 12px var(--dp-body); letter-spacing: .08em; text-transform: uppercase; }
.dp-muted { color: var(--dp-muted); }
.dp-err { color: #ff8a9b; }
.dp-sep { height: 1px; margin: 28px 0; background: var(--dp-line); }
.dp-sec { padding: 24px 0; border-top: 1px solid var(--dp-line); }
.dp-sec:first-of-type { border-top: 0; padding-top: 4px; }
.dp-sec h2 { margin: 0 0 8px; font: 700 18px var(--dp-display); }
.dp-p { margin: 0 0 14px; max-width: 760px; color: var(--dp-text-2); font-size: 14.5px; }
.dp-hint { color: var(--dp-muted); font-size: 12.5px; }
.dp-intline { margin: 12px 0 0; color: var(--dp-muted); font-size: 13.5px; }

/* form */
.dp-field { display: grid; gap: 8px; margin-bottom: 18px; position: relative; }
.dp-field-l { display: block; color: var(--dp-text-2); font: 700 12px var(--dp-body); letter-spacing: .05em; text-transform: uppercase; }
.dp-field-l small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--dp-muted); }
.dp-input {
  width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--dp-line); background: var(--dp-input); color: var(--dp-text); font: 15px var(--dp-body);
  outline: none; resize: vertical; transition: border-color .15s, box-shadow .15s;
}
.dp-input:hover { border-color: var(--dp-line-2); }
.dp-input:focus { border-color: var(--dp-blurple); box-shadow: 0 0 0 3px rgba(88, 101, 242, .22); }
select.dp-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #b5bac1 50%), linear-gradient(135deg, #b5bac1 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.dp-count { position: absolute; right: 10px; bottom: 8px; color: var(--dp-muted); font-size: 12px; }
.dp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }

/* onay kutusu ve anahtar */
.dp-check { display: flex; align-items: flex-start; gap: 10px; color: var(--dp-text-2); font-size: 14px; cursor: pointer; line-height: 1.4; }
.dp-check input { position: absolute; opacity: 0; pointer-events: none; }
.dp-box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: -1px; border-radius: 5px; border: 2px solid #72767d; color: transparent; transition: background-color .12s, border-color .12s; }
.dp-check input:checked + .dp-box { background: var(--dp-blurple); border-color: var(--dp-blurple); color: #fff; }
.dp-check input:focus-visible + .dp-box { outline: 2px solid var(--dp-blurple); outline-offset: 2px; }
.dp-check:hover .dp-box { border-color: #b5bac1; }
.dp-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--dp-line); }
.dp-switchrow:last-child { border-bottom: 0; }
.dp-switchrow b { display: block; font-size: 15px; margin-bottom: 4px; }
.dp-switchrow p { margin: 0; max-width: 680px; color: var(--dp-muted); font-size: 14px; }
.dp-switch { position: relative; flex: none; width: 46px; height: 26px; border-radius: 13px; background: #72767d; transition: background-color .2s; }
.dp-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--dp-ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.dp-switch.on { background: var(--dp-green); }
.dp-switch.on i { transform: translateX(20px); }

/* uygulama kartları */
.dp-grid-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.dp-grid-h span { font: 700 15px var(--dp-display); }
.dp-grid-h small { color: var(--dp-muted); }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.dp-card {
  display: grid; gap: 4px; padding: 12px 12px 14px; border-radius: 14px; background: var(--dp-card); border: 1px solid var(--dp-line); color: var(--dp-text) !important;
  text-decoration: none !important; transition: transform .15s var(--dp-ease), border-color .15s, box-shadow .15s;
}
.dp-card:hover { transform: translateY(-3px); border-color: var(--dp-line-2); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.dp-card-img { position: relative; display: block; aspect-ratio: 1; margin-bottom: 8px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #3c45a5, #5865f2); }
.dp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-card-img i { position: absolute; right: 8px; bottom: 8px; width: 14px; height: 14px; border-radius: 50%; background: #80848e; border: 3px solid var(--dp-card); }
.dp-card-img i.on { background: var(--dp-green); }
.dp-card-fb { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font: 700 54px var(--dp-display); background: linear-gradient(135deg, #3c45a5, #5865f2 60%, #8b7bff); }
.dp-card-n { font: 700 15.5px var(--dp-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-card small { color: var(--dp-muted); font-size: 12.5px; }
.dp-empty { display: grid; justify-items: center; gap: 10px; padding: 60px 20px; text-align: center; color: var(--dp-muted); border: 1px dashed var(--dp-line-2); border-radius: 16px; }
.dp-empty h2 { margin: 4px 0 0; color: var(--dp-text); font: 700 20px var(--dp-display); }
.dp-empty p { margin: 0 0 8px; max-width: 460px; }
.dp-empty.big { padding: 80px 20px; }
.dp-empty-art { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; background: linear-gradient(135deg, rgba(88, 101, 242, .3), rgba(45, 225, 181, .18)); color: #c9ceff; margin-bottom: 6px; }

/* genel bilgiler */
.dp-gen { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
.dp-iconbox { display: grid; gap: 10px; align-content: start; }
.dp-icon-up { position: relative; display: block; width: 168px; height: 168px; border-radius: 22px; overflow: hidden; cursor: pointer; background: var(--dp-card); box-shadow: 0 0 0 1px var(--dp-line); }
.dp-icon-up.sm { width: 84px; height: 84px; border-radius: 50%; flex: none; }
.dp-icon-up img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-icon-up .dp-card-fb { font-size: 64px; }
.dp-icon-up.sm .dp-card-fb { font-size: 34px; }
.dp-icon-hover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transition: opacity .15s; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.dp-icon-up:hover .dp-icon-hover, .dp-icon-up:focus-within .dp-icon-hover { opacity: 1; }
.dp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--dp-line); background: var(--dp-input); }
.dp-tags:focus-within { border-color: var(--dp-blurple); box-shadow: 0 0 0 3px rgba(88, 101, 242, .22); }
.dp-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 11px; border-radius: 6px; background: var(--dp-card-2); font-size: 13.5px; font-weight: 600; }
.dp-tag button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; color: var(--dp-muted); }
.dp-tag button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.dp-tag-in { flex: 1; min-width: 140px; height: 28px; border: 0; outline: none; background: none; color: var(--dp-text); font: 14px var(--dp-body); }
.dp-ids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.dp-id { display: grid; gap: 8px; min-width: 0; }
.dp-copyrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dp-copyrow code { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 8px; background: var(--dp-input); border: 1px solid var(--dp-line); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-copyrow.wide { flex-wrap: wrap; }
.dp-copyrow.wide code { flex: 1 1 360px; white-space: normal; word-break: break-all; }
.dp-danger { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 32px; padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(218, 55, 60, .45); background: rgba(218, 55, 60, .06); }
.dp-danger b { display: block; font-size: 15px; }
.dp-danger small { color: var(--dp-muted); font-size: 13.5px; }

/* izin ızgarası ve kapsamlar */
.dp-perms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 12px 0 4px; }
.dp-perm-g { display: grid; gap: 11px; align-content: start; margin: 0; padding: 16px; border-radius: 12px; border: 1px solid var(--dp-line); background: var(--dp-card); }
.dp-perm-g legend { padding: 0 6px; color: var(--dp-text); font: 700 13px var(--dp-display); }
.dp-scopes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.dp-scope { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 6px; background: var(--dp-card-2); color: var(--dp-text-2); font: 600 13px var(--dp-mono); }
.dp-scope.on svg { color: var(--dp-green); }
.dp-scopes.sel { gap: 22px; }

/* bot */
.dp-botcard { display: flex; align-items: center; gap: 20px; }
.dp-botmeta { display: grid; gap: 4px; }
.dp-botmeta b { font: 700 20px var(--dp-display); }
.dp-botmeta small { display: block; color: var(--dp-muted); font-size: 13.5px; }
.dp-botmeta small i { margin: 0 3px 0 2px; vertical-align: 1px; }
.dp-token { margin-bottom: 24px; padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(240, 178, 50, .45); background: rgba(240, 178, 50, .07); }
.dp-token-h { display: flex; align-items: center; gap: 8px; color: #f0b232; font-size: 15.5px; }
.dp-token p { margin: 8px 0 12px; color: #e9dcc0; font-size: 14px; }
.dp-secret { color: #fff !important; letter-spacing: .02em; }

/* komutlar */
.dp-cmds { display: grid; gap: 10px; margin-bottom: 14px; }
.dp-cmd { padding: 14px 16px; border-radius: 12px; background: var(--dp-card); border: 1px solid var(--dp-line); }
.dp-cmd-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.dp-cmd-h code { font-size: 14.5px; color: #c9ceff; background: rgba(88, 101, 242, .16); }
.dp-cmd-h span { color: var(--dp-text-2); font-size: 14px; }
.dp-cmd-o { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dp-opt { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 6px; background: var(--dp-card-2); font: 600 13px var(--dp-mono); }
.dp-opt small { color: var(--dp-muted); font: 500 11.5px var(--dp-body); }
.dp-opt.req { box-shadow: inset 0 0 0 1px rgba(88, 101, 242, .55); }

/* kaydedilmemiş değişiklik çubuğu */
.dp-save {
  position: fixed; left: calc(260px + 50%); bottom: 22px; z-index: 40; transform: translateX(calc(-50% - 130px)); width: min(720px, calc(100% - 300px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 10px; background: #0e0f11; color: var(--dp-text);
  font-weight: 600; font-size: 14.5px; box-shadow: 0 12px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); animation: dpSaveIn .25s var(--dp-ease);
}
.dp-save > div { display: flex; align-items: center; gap: 6px; }
.dp-save .dp-btn { height: 34px; font-size: 14px !important; }
.dp-save.shake { animation: dpShake .5s; background: #3b1013; box-shadow: 0 12px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(218, 55, 60, .5); }
@keyframes dpSaveIn { from { opacity: 0; transform: translate(calc(-50% - 130px), 20px); } }
@keyframes dpShake { 10%, 90% { transform: translateX(calc(-50% - 132px)); } 20%, 80% { transform: translateX(calc(-50% - 126px)); } 30%, 50%, 70% { transform: translateX(calc(-50% - 138px)); } 40%, 60% { transform: translateX(calc(-50% - 122px)); } }

/* pencere, bildirim */
.dp-modal-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); animation: dpFade .15s; }
.dp-modal-wrap.out { opacity: 0; transition: opacity .15s; }
.dp-modal { width: min(460px, 100%); padding: 22px 22px 0; border-radius: 12px; background: #313338; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); animation: dpPop .2s var(--dp-ease); overflow: hidden; }
.dp-modal h3 { margin: 0 0 12px; font: 700 20px var(--dp-display); }
.dp-modal-body { color: var(--dp-text-2); font-size: 15px; }
.dp-modal-body p { margin: 0 0 14px; }
.dp-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin: 18px -22px 0; padding: 14px 18px; background: #2b2d31; }
.dp-terms { margin: 4px 0 6px; }
@keyframes dpFade { from { opacity: 0; } }
@keyframes dpPop { from { opacity: 0; transform: scale(.95); } }
.dp-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 16px;
  border-radius: 10px; background: #0e0f11; color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); transition: opacity .2s, transform .2s var(--dp-ease); pointer-events: none;
}
.dp-toast svg { color: var(--dp-green); }
.dp-toast.bad svg { color: #ff6b81; }
.dp-toast.show { opacity: 1; transform: translate(-50%, 0); }
.has-save .dp-toast { bottom: 92px; }

/* botu sunucuya ekleme (OAuth2 yetkilendirme ekranı) */
.dp-auth { display: grid; place-items: start center; padding-top: 10px; }
.dp-auth-card { width: min(480px, 100%); display: grid; gap: 12px; padding: 30px 28px 0; border-radius: 16px; background: #2b2d31; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); overflow: hidden; }
.dp-auth-top { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; }
.dp-auth-dots { display: inline-flex; gap: 5px; }
.dp-auth-dots i { width: 6px; height: 6px; border-radius: 50%; background: #80848e; animation: dpDot 1.4s infinite; }
.dp-auth-dots i:nth-child(2) { animation-delay: .2s; }
.dp-auth-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dpDot { 50% { background: var(--dp-text); } }
.dp-auth-card .dp-kicker { text-align: center; color: var(--dp-muted); }
.dp-auth-card h2 { margin: 0; text-align: center; font: 700 22px var(--dp-display); }
.dp-auth-sub { margin: 0; text-align: center; color: var(--dp-muted); font-size: 14px; }
.dp-auth-desc { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--dp-input); color: var(--dp-text-2); font-size: 14px; }
.dp-auth-perms { display: grid; gap: 12px; max-height: 260px; overflow-y: auto; padding: 4px 2px; }
.dp-auth-notes { display: grid; gap: 8px; margin: 4px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--dp-line); color: var(--dp-muted); font-size: 13px; }
.dp-auth-notes li { display: flex; gap: 8px; align-items: flex-start; }
.dp-auth-notes svg { margin-top: 2px; }
.dp-auth-foot { display: flex; justify-content: flex-end; gap: 8px; margin: 10px -28px 0; padding: 16px 20px; background: #232428; }
.dp-auth-done { display: grid; justify-items: center; gap: 10px; padding: 10px 0 26px; text-align: center; }
.dp-auth-done svg { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--dp-green); color: #fff; }
.dp-auth-done h2 { margin: 0; }
.dp-auth-done p { margin: 0 0 6px; color: var(--dp-text-2); }

/* ---------------------------------------------------------------- belgeler */
.dp-docs { color: var(--dp-text-2); }
.dp-docs section { scroll-margin-top: 80px; }
.dp-docs-hero { padding: 26px 30px 30px; margin-bottom: 18px; border-radius: 18px; background: radial-gradient(600px 220px at 15% 0%, rgba(88, 101, 242, .3), transparent 70%), radial-gradient(500px 200px at 90% 100%, rgba(45, 225, 181, .14), transparent 70%), var(--dp-card); border: 1px solid var(--dp-line); }
.dp-docs-hero h1 { margin: 8px 0 10px; color: var(--dp-text); font: 700 32px/1.15 var(--dp-display); letter-spacing: -.02em; }
.dp-docs-hero p { margin: 0; max-width: 680px; font-size: 16px; }
.dp-hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dp-docs h2 { margin: 40px 0 12px; color: var(--dp-text); font: 700 23px/1.25 var(--dp-display); letter-spacing: -.01em; }
.dp-docs p, .dp-docs li { font-size: 15.5px; line-height: 1.7; }
.dp-base { word-break: break-all; }
.dp-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dp-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; border-radius: 12px; background: var(--dp-card); border: 1px solid var(--dp-line); }
.dp-steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--dp-blurple); color: #fff; font: 700 14px var(--dp-display); }
.dp-list { display: grid; gap: 6px; padding-left: 20px; }
.dp-code { margin: 14px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--dp-line-2); background: #0d0e10; }
.dp-code-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px 7px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--dp-line); color: var(--dp-muted); font: 600 12.5px var(--dp-body); }
.dp-copy { padding: 5px 12px; border-radius: 6px; background: #4e5058 !important; color: #fff !important; font: 600 12.5px var(--dp-body) !important; }
.dp-copy:hover { background: #6d6f78 !important; }
.dp-copy.ok { background: var(--dp-green) !important; }
.dp-code pre { margin: 0; padding: 16px 18px; overflow: auto; max-height: 560px; }
.dp-code pre code { padding: 0; background: none; font: 13.5px/1.6 var(--dp-mono); color: #dfe6f5; white-space: pre; }
.dp-table { display: grid; gap: 1px; margin: 14px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--dp-line); background: var(--dp-line); }
.dp-row { display: grid; grid-template-columns: 70px minmax(0, 300px) minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 16px; background: var(--dp-card); font-size: 14px; color: var(--dp-text-2); }
.dp-row.two { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.dp-row code { justify-self: start; word-break: break-all; }
.dp-m { justify-self: start; padding: 3px 8px; border-radius: 6px; font: 700 11.5px var(--dp-display); letter-spacing: .04em; }
.dp-m.get { background: rgba(35, 165, 90, .16); color: #57d68d; }
.dp-m.post { background: rgba(88, 101, 242, .2); color: #aab3ff; }
.dp-m.put, .dp-m.patch { background: rgba(240, 178, 50, .16); color: #f0c060; }
.dp-m.delete { background: rgba(218, 55, 60, .18); color: #ff8a8f; }

/* ---------------------------------------------------------------- dar ekran */
@media (max-width: 980px) {
  .dp { grid-template-columns: minmax(0, 1fr); }
  .dp-side { position: fixed; left: 0; top: 0; z-index: 50; width: 280px; transform: translateX(-100%); transition: transform .22s var(--dp-ease); box-shadow: 20px 0 50px rgba(0, 0, 0, .5); }
  .nav-open .dp-side { transform: none; }
  .dp-scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-open .dp-scrim { opacity: 1; pointer-events: auto; }
  .dp-menu { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -8px; border-radius: 8px; }
  .dp-top { padding: 0 16px; }
  .dp-main { padding: 22px 16px 140px; }
  .dp-save { left: 50%; transform: translateX(-50%); width: calc(100% - 24px); }
  @keyframes dpSaveIn { from { opacity: 0; transform: translate(-50%, 20px); } }
  @keyframes dpShake { 10%, 90% { transform: translateX(calc(-50% - 2px)); } 20%, 80% { transform: translateX(calc(-50% + 4px)); } 30%, 50%, 70% { transform: translateX(calc(-50% - 8px)); } 40%, 60% { transform: translateX(calc(-50% + 8px)); } }
  .dp-perms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-user span { display: none; }
}
@media (max-width: 680px) {
  .dp-head { flex-direction: column; }
  .dp-head h1 { font-size: 24px; }
  .dp-gen { grid-template-columns: 1fr; gap: 18px; }
  .dp-two, .dp-ids, .dp-perms { grid-template-columns: 1fr; }
  .dp-row, .dp-row.two { grid-template-columns: 1fr; gap: 6px; }
  .dp-danger { flex-direction: column; align-items: flex-start; }
  .dp-save { flex-direction: column; align-items: stretch; text-align: center; }
  .dp-save > div { justify-content: flex-end; }
  .dp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dp-toplink { display: none; }
  .dp-docs-hero { padding: 20px; }
  .dp-docs-hero h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-card, .dp-save, .dp-modal, .dp-modal-wrap, .dp-toast, .dp-side { animation: none !important; transition: none !important; }
}
