/* ==========================================================================
   CraftFix API — Tasarım sistemi
   Yumuşak beyaz zemin, koyu metin, indigo vurgu
   ========================================================================== */

:root {
    --bg: #f4f5f7;
    --bg-soft: #f8f9fb;
    --surface: #ffffff;
    --surface-muted: #f7f8fa;
    --surface-sunken: #f1f2f5;
    --border: #e7e9ee;
    --border-strong: #d8dbe2;
    --text: #16181d;
    --text-soft: #4c515c;
    --muted: #717784;
    --muted-light: #979da8;

    --accent: #4b5bd7;
    --accent-strong: #3a49c1;
    --accent-soft: #eef0ff;
    --accent-soft-2: #e2e5ff;

    --success: #0e9f6e;
    --success-soft: #e7f8f1;
    --danger: #d92d20;
    --danger-soft: #fef0ef;
    --warning: #b54708;
    --warning-soft: #fff6e8;
    --violet: #7a5af8;
    --violet-soft: #f1eeff;
    --blue: #1570ef;
    --blue-soft: #eaf2ff;
    --amber: #b54708;
    --amber-soft: #fff6e8;

    --navy: #111827;
    --code-bg: #12141a;
    --code-head: #191c24;
    --code-text: #d8dfeb;
    --code-muted: #8b95a7;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius-lg: 18px;
    --radius: 14px;
    --radius-sm: 10px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 14px 34px -20px rgba(16, 24, 40, 0.28);
    --shadow-lg: 0 34px 70px -34px rgba(16, 24, 40, 0.32);

    --sidebar-width: 260px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-soft-2);
    color: var(--accent-strong);
}

h1, h2, h3, h4, h5 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.022em;
    font-weight: 700;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img, svg {
    display: block;
}

code, pre, kbd {
    font-family: var(--mono);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 780px;
}

.page-flashes {
    padding-top: 18px;
}

.page-flashes .alert:last-child {
    margin-bottom: 0;
}

.btn.is-copied {
    color: var(--success);
    border-color: #c8efdf;
    background: var(--success-soft);
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm {
    width: 15px;
    height: 15px;
}

.mono {
    font-family: var(--mono);
    font-size: 0.92em;
}

.text-soft {
    color: var(--muted);
}

.text-danger {
    color: var(--danger);
}

/* --------------------------------------------------------------------------
   Marka
   -------------------------------------------------------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #5a68e6 0%, #3d4ac4 100%);
    box-shadow: 0 6px 14px -6px rgba(75, 91, 215, 0.65);
}

.brand-mark .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.brand-text {
    font-size: 16.5px;
}

.brand-badge {
    display: inline-block;
    margin-left: 3px;
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
    vertical-align: 2px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Butonlar
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
        box-shadow 0.16s ease, transform 0.16s ease;
}

.btn .icon {
    width: 16px;
    height: 16px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(75, 91, 215, 0.8);
}

.btn-primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 10px 22px -10px rgba(75, 91, 215, 0.85);
}

.btn-dark {
    background: var(--navy);
    color: #fff;
}

.btn-dark:hover {
    background: #1f2534;
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text-soft);
}

.btn-ghost:hover {
    border-color: var(--muted-light);
    color: var(--text);
    background: var(--surface-muted);
}

.btn-light {
    background: #fff;
    color: var(--navy);
}

.btn-light:hover {
    background: #eef0f6;
}

.btn-cta-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #b42318;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 8px;
    gap: 6px;
}

.btn-xs {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 7px;
}

.btn-lg {
    padding: 13px 22px;
    font-size: 14.5px;
    border-radius: 11px;
}

.btn-block {
    width: 100%;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    transition: 0.16s ease;
}

.icon-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface-muted);
}

.icon-btn-danger:hover {
    color: var(--danger);
    border-color: #f3c7c2;
    background: var(--danger-soft);
}

.icon-btn .icon {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Rozetler ve küçük etiketler
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.badge-green { background: var(--success-soft); color: #087a54; }
.badge-red { background: var(--danger-soft); color: #b42318; }
.badge-amber { background: var(--amber-soft); color: #a6430b; }
.badge-blue { background: var(--blue-soft); color: #0f5cc9; }
.badge-violet { background: var(--violet-soft); color: #6541e8; }
.badge-gray { background: var(--surface-muted); color: var(--muted); }

.count-pill {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    border-radius: 7px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
}

.meta-chip .icon {
    width: 14px;
    height: 14px;
}

.key-chip,
.code-chip {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-soft);
    white-space: nowrap;
}

.method-post {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-family: var(--font);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.endpoint-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-soft);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Üst menü
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(231, 233, 238, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 66px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

.site-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    transition: 0.16s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: var(--surface-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    place-items: center;
}

.nav-toggle .icon {
    width: 19px;
    height: 19px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 78px 0 44px;
    overflow: hidden;
    background:
        radial-gradient(900px 460px at 82% -12%, #e7eaff 0%, rgba(231, 234, 255, 0) 62%),
        radial-gradient(600px 320px at 0% 110%, #eef1f7 0%, rgba(238, 241, 247, 0) 70%),
        linear-gradient(180deg, #f7f8fb 0%, var(--bg) 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero-glow-one {
    width: 320px;
    height: 320px;
    background: rgba(122, 90, 248, 0.1);
    top: -80px;
    right: 8%;
}

.hero-glow-two {
    width: 260px;
    height: 260px;
    background: rgba(75, 91, 215, 0.09);
    bottom: -120px;
    left: 12%;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-soft);
    box-shadow: var(--shadow-sm);
}

.eyebrow-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.14);
}

.eyebrow-sep {
    color: var(--border-strong);
}

.hero h1 {
    margin: 22px 0 0;
    font-size: clamp(38px, 4.6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.042em;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(100deg, #4b5bd7 0%, #7a5af8 58%, #4b5bd7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin-top: 18px;
    max-width: 540px;
    font-size: 16.5px;
    line-height: 1.68;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.hero-meta div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-meta strong {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-meta span {
    font-size: 12px;
    color: var(--muted);
}

.meta-unit {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.code-window {
    background: var(--code-bg);
    border: 1px solid #262a34;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 34px 60px -28px rgba(15, 20, 40, 0.55);
}

.code-window-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: var(--code-head);
    border-bottom: 1px solid #262a34;
}

.window-dots {
    display: inline-flex;
    gap: 5px;
}

.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3d4350;
}

.window-dots i:first-child { background: #f27a72; }
.window-dots i:nth-child(2) { background: #f2bd5c; }
.window-dots i:nth-child(3) { background: #66c78b; }

.code-path {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--code-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-copy {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #303642;
    background: #20242d;
    color: #aab3c2;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.16s ease;
}

.code-copy:hover {
    color: #fff;
    border-color: #465064;
}

.code-block {
    margin: 0;
    padding: 20px 22px;
    background: transparent;
    color: var(--code-text);
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.78;
    overflow-x: auto;
    tab-size: 2;
}

.code-block code {
    font-family: inherit;
    font-size: inherit;
    background: none;
}

.code-block-sm {
    font-size: 11.5px;
    padding: 16px 18px;
}

.response-window {
    margin: 14px 0 0 44px;
    background: #151922;
    border: 1px solid #262a34;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 44px -26px rgba(15, 20, 40, 0.5);
}

.response-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    border-bottom: 1px solid #262a34;
    background: #191e28;
    font-family: var(--mono);
    font-size: 11px;
    color: #9aa5b8;
}

.response-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7ee2b8;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.16);
}

.response-time {
    color: #727d90;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 34px;
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
}

.trust-strip .icon {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Bölümler
   -------------------------------------------------------------------------- */
.section {
    padding: 84px 0;
}

.section-tight {
    padding: 48px 0 72px;
}

.section-soft {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    max-width: 640px;
    margin-bottom: 38px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-heading h2 {
    font-size: clamp(27px, 3vw, 36px);
    letter-spacing: -0.035em;
}

.section-heading p {
    margin-top: 12px;
    font-size: 15.5px;
    line-height: 1.68;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Yöntem kartları
   -------------------------------------------------------------------------- */
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.method-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.method-card:hover {
    transform: translateY(-3px);
    border-color: #cfd4f7;
    box-shadow: var(--shadow-md);
}

.method-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 6px;
}

.method-icon .icon {
    width: 21px;
    height: 21px;
}

.method-icon-sm {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    margin: 0;
}

.method-icon-lg {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    margin: 0;
}

.method-icon-lg .icon {
    width: 28px;
    height: 28px;
}

.method-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.method-card h3 {
    font-size: 18.5px;
    letter-spacing: -0.025em;
}

.method-card p {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 4px;
}

.method-card .endpoint-chip {
    margin-top: auto;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.card-link .icon {
    width: 14px;
    height: 14px;
    transition: transform 0.16s ease;
}

.method-card:hover .card-link .icon {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Nasıl çalışır
   -------------------------------------------------------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    position: relative;
    padding: 26px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.step-number {
    display: inline-block;
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--accent-soft);
}

.step-card h3 {
    font-size: 17px;
}

.step-card p {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted);
}

.step-card code {
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.step-visual {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.mini-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted);
}

.mini-badge-success {
    background: var(--success-soft);
    border-color: #c5efdd;
    color: #087a54;
}

.mini-badge-danger {
    background: var(--danger-soft);
    border-color: #f6d2ce;
    color: #b42318;
}

.mini-code {
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 10.5px;
    color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Dokümantasyon
   -------------------------------------------------------------------------- */
.docs-section {
    background: linear-gradient(180deg, var(--bg) 0%, #f7f8fa 100%);
}

.docs {
    display: grid;
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}

.docs-nav {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.docs-nav-title {
    padding: 0 12px 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.docs-nav > a {
    padding: 7px 12px;
    border-left: 2px solid transparent;
    font-size: 13px;
    color: var(--muted);
    transition: 0.15s ease;
}

.docs-nav > a:hover,
.docs-nav > a.is-active {
    color: var(--text);
    border-left-color: var(--accent);
    background: linear-gradient(90deg, var(--accent-soft), transparent);
}

.docs-nav-card {
    margin-top: 22px;
    padding: 16px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.docs-nav-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 10px;
}

.docs-nav-card-icon .icon {
    width: 16px;
    height: 16px;
}

.docs-nav-card strong {
    display: block;
    font-size: 13px;
}

.docs-nav-card p {
    margin: 4px 0 12px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
}

.docs-nav-card .btn {
    width: 100%;
}

.docs-body {
    min-width: 0;
}

.docs-block {
    padding: 0 0 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 92px;
}

.docs-block:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.docs-block > h2 {
    font-size: 25px;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.docs-block > h3,
.docs-block h3 {
    font-size: 16px;
    margin: 24px 0 10px;
    letter-spacing: -0.015em;
}

.docs-block > p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
    max-width: 740px;
}

.docs-block-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.docs-block-head h2 {
    font-size: 23px;
    margin-bottom: 6px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 22px;
}

.info-card {
    padding: 14px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.info-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.info-card code {
    font-size: 12px;
    color: var(--text-soft);
    word-break: break-word;
}

.info-card-tall strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.info-card-tall p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
}

.info-card-tall code {
    font-size: 11.5px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.docs-list {
    margin: 10px 0 18px;
    padding-left: 20px;
    color: var(--text-soft);
    font-size: 13.5px;
    line-height: 1.7;
}

.docs-list li {
    margin-bottom: 5px;
}

.docs-list code,
.docs-note code,
.docs-block p code,
.callout code,
.info-card code {
    font-size: 0.9em;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    color: var(--text-soft);
}

.docs-note {
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--muted);
}

.code-window-docs {
    margin: 14px 0 18px;
    box-shadow: var(--shadow-sm);
}

.response-details {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
}

.response-details summary {
    padding: 11px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    list-style: none;
}

.response-details summary::-webkit-details-marker {
    display: none;
}

.response-details summary::before {
    content: '›';
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.16s ease;
    color: var(--muted);
}

.response-details[open] summary::before {
    transform: rotate(90deg);
}

.response-details .code-block {
    border-top: 1px solid var(--border);
    background: var(--code-bg);
}

/* --------------------------------------------------------------------------
   Tablolar
   -------------------------------------------------------------------------- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted-light);
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover td {
    background: #fcfcfe;
}

.table code {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    color: var(--text-soft);
    white-space: nowrap;
}

.table .cell-actions {
    text-align: right;
    white-space: nowrap;
}

.cell-stack {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.cell-stack strong {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.cell-stack small {
    font-size: 11.5px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   Kartlar
   -------------------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card + .card {
    margin-top: 18px;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.card-head h2 {
    font-size: 15.5px;
    letter-spacing: -0.015em;
}

.card-head p {
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.55;
}

.card-head .text-link {
    flex: none;
}

.card-body {
    padding: 22px;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    background: var(--surface-muted);
    font-size: 12.5px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    transition: 0.15s ease;
}

.text-link:hover {
    color: var(--accent-strong);
}

.text-link .icon {
    width: 14px;
    height: 14px;
}

/* --------------------------------------------------------------------------
   Uyarılar / bilgi kutusu
   -------------------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.alert .icon {
    width: 17px;
    height: 17px;
    margin-top: 2px;
}

.alert-success { background: var(--success-soft); border-color: #c8efdf; color: #087a54; }
.alert-error { background: var(--danger-soft); border-color: #f6d4d0; color: #b42318; }
.alert-warning { background: var(--warning-soft); border-color: #f5dfb8; color: #a6430b; }
.alert-info { background: var(--blue-soft); border-color: #cee0fd; color: #0f5cc9; }

.callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    margin: 18px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-soft);
}

.callout > .icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--muted);
}

.callout strong {
    display: block;
    font-size: 13.5px;
    color: var(--text);
    margin-bottom: 2px;
}

.callout p {
    margin: 0;
    color: var(--muted);
}

.callout-warning {
    background: #fffdf8;
    border-color: #f3e3c4;
}

.callout-warning > .icon {
    color: var(--warning);
}

.callout-info {
    background: #f7f9ff;
    border-color: #dfe5fb;
}

.callout-info > .icon {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta-section {
    padding: 0 0 84px;
}

.cta-band {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 32px;
    align-items: center;
    padding: 46px;
    border-radius: 22px;
    background:
        radial-gradient(500px 240px at 88% 10%, rgba(122, 90, 248, 0.22), transparent 70%),
        radial-gradient(420px 260px at 10% 110%, rgba(75, 91, 215, 0.25), transparent 70%),
        linear-gradient(135deg, #141826 0%, #111827 60%, #171c30 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 34px 60px -34px rgba(17, 24, 39, 0.6);
}

.cta-glow {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%);
    pointer-events: none;
}

.cta-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a9b1ff;
}

.cta-band h2 {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.cta-band p {
    margin-top: 12px;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
}

.cta-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 200px;
}

.cta-actions .btn {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-top: 54px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
}

.footer-brand p {
    margin: 16px 0 16px;
    max-width: 320px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col h4 {
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.footer-col a,
.footer-muted {
    font-size: 13px;
    color: var(--muted);
    transition: 0.15s ease;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 22px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted-light);
}

.footer-mono {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   Sayfa başlığı / breadcrumb
   -------------------------------------------------------------------------- */
.page-hero {
    padding: 52px 0 32px;
    background:
        radial-gradient(700px 300px at 85% -20%, #eaedff 0%, transparent 60%),
        linear-gradient(180deg, #f8f9fb 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    margin-top: 14px;
    font-size: clamp(31px, 4vw, 44px);
    letter-spacing: -0.04em;
    font-weight: 800;
}

.page-lead {
    margin-top: 14px;
    max-width: 680px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--text-soft);
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 12.5px;
    color: var(--muted-light);
}

.breadcrumb a {
    color: var(--muted);
    transition: 0.15s ease;
}

.breadcrumb a:hover {
    color: var(--text);
}

.method-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 8px;
}

.method-hero h1 {
    margin: 6px 0 0;
    font-size: clamp(28px, 3.6vw, 38px);
}

.method-hero .page-lead {
    margin-top: 10px;
}

.method-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Doğrulama sayfası
   -------------------------------------------------------------------------- */
.auth-requirement {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.auth-requirement-icon {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
}

.auth-requirement-icon .icon {
    width: 20px;
    height: 20px;
}

.auth-requirement h2 {
    font-size: 15px;
}

.auth-requirement p {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.auth-requirement .btn {
    margin-left: auto;
    flex: none;
}

.quick-panel {
    margin-top: 22px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.quick-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.quick-panel-head h2 {
    font-size: 20px;
    letter-spacing: -0.025em;
}

.quick-panel-head .section-eyebrow {
    margin-bottom: 4px;
}

.method-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.method-content {
    min-width: 0;
}

.method-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.method-aside .card + .card {
    margin-top: 0;
}

.content-title {
    font-size: 18px;
    margin: 26px 0 12px;
    letter-spacing: -0.02em;
}

.content-title:first-child {
    margin-top: 0;
}

.aside-title {
    font-size: 14px;
    margin-bottom: 12px;
}

.fact-list {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.fact-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.fact-list > div:last-child {
    border-bottom: 0;
}

.fact-list dt {
    font-size: 12px;
    color: var(--muted);
    flex: none;
}

.fact-list dd {
    margin: 0;
    font-size: 12.5px;
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
}

.fact-list dd code {
    font-size: 11.5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.fact-list .badge {
    font-size: 11px;
}

.fact-list + .btn {
    margin-top: 16px;
}

.aside-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aside-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 8px;
    transition: 0.15s ease;
}

.aside-links a:hover {
    background: var(--surface-muted);
}

.aside-links a > .icon {
    width: 14px;
    height: 14px;
    color: var(--muted-light);
    margin-left: auto;
}

.aside-link-icon {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
}

.aside-link-icon .icon {
    width: 15px;
    height: 15px;
}

.aside-links span:not(.aside-link-icon) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.aside-links strong {
    font-size: 12.5px;
    font-weight: 600;
}

.aside-links small {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--mono);
}

.aside-links-plain a {
    padding-left: 0;
    padding-right: 0;
}

.aside-help {
    background: linear-gradient(160deg, #f6f7ff, #fff);
}

.aside-help-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 10px;
}

.aside-help h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.aside-help p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Giriş / kurulum
   -------------------------------------------------------------------------- */
.auth-body,
.install-body,
.error-body {
    min-height: 100vh;
    background: var(--bg);
}

.auth-body {
    display: grid;
    place-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 30px 0;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.orb-one {
    width: 460px;
    height: 460px;
    background: #d9defe;
    top: -180px;
    right: -80px;
}

.orb-two {
    width: 420px;
    height: 420px;
    background: #e6e1ff;
    bottom: -200px;
    left: -100px;
}

.auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 24, 29, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 24, 29, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 470px;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(231, 233, 238, 0.9);
    border-radius: 22px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.auth-brand {
    margin-bottom: 26px;
}

.auth-card-head h1 {
    font-size: 25px;
    letter-spacing: -0.035em;
}

.auth-card-head p {
    margin-top: 7px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
}

.auth-card .alert {
    margin-top: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.auth-submit {
    margin-top: 4px;
}

.auth-note {
    display: flex;
    gap: 9px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.auth-note .icon {
    width: 15px;
    height: 15px;
    color: var(--muted-light);
    margin-top: 3px;
}

.auth-note p {
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--muted);
}

.auth-footer a:hover {
    color: var(--text);
}

.password-wrap {
    position: relative;
}

.password-wrap .input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.password-toggle:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.password-toggle .icon {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Formlar
   -------------------------------------------------------------------------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field > label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
}

.field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.field-label-row label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
}

.field-hint {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--muted);
}

.label-optional {
    font-weight: 400;
    color: var(--muted-light);
    font-size: 11px;
}

.field-error {
    font-size: 11.5px;
    color: var(--danger);
}

.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 13.5px;
    line-height: 1.5;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
    appearance: none;
}

select.input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23717784' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    padding-right: 34px;
}

.input::placeholder {
    color: var(--muted-light);
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(75, 91, 215, 0.12);
}

.input.is-invalid {
    border-color: #e7a49e;
    background: #fffafa;
}

.input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1);
}

.textarea {
    resize: vertical;
    min-height: 84px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.7;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.field-full {
    grid-column: 1 / -1;
}

.form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.form-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--muted);
}

.form-note .icon {
    width: 14px;
    height: 14px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-soft);
    cursor: pointer;
    user-select: none;
}

.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    margin: 0;
    cursor: pointer;
}

.checkbox-field {
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
}

.checkbox-inline {
    margin-top: 12px;
}

.static-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 12.5px;
}

.inline-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-form .field-grow {
    flex: 1;
    min-width: 180px;
}

.field-note {
    width: 150px;
}

.filter-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form .field-grow {
    flex: 1;
    min-width: 220px;
}

.filter-form .field {
    min-width: 150px;
}

/* --------------------------------------------------------------------------
   Panel düzeni
   -------------------------------------------------------------------------- */
.app-body {
    background: var(--bg);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 18px 14px;
    overflow-y: auto;
    z-index: 50;
}

.sidebar-brand {
    padding: 4px 10px 20px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-label {
    padding: 16px 12px 6px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.side-label:first-child {
    padding-top: 0;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
    transition: 0.15s ease;
}

.side-nav a .icon {
    width: 17px;
    height: 17px;
    color: var(--muted);
    transition: 0.15s ease;
}

.side-nav a:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.side-nav a.is-active {
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 600;
}

.side-nav a.is-active .icon {
    color: var(--accent);
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 18px;
}

.compact-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-radius: 10px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.compact-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.compact-user-info strong {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-user-info span {
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-logout {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin-top: 8px;
    padding: 9px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s ease;
}

.side-logout:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

.side-logout .icon {
    width: 16px;
    height: 16px;
}

.avatar {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft-2);
    color: var(--accent-strong);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 10px;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-menu {
    display: none;
}

.topbar-eyebrow {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-light);
    line-height: 1.4;
}

.topbar-title {
    font-size: 16px;
    letter-spacing: -0.02em;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.topbar-site-link {
    color: var(--muted);
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 11px 4px 4px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.user-pill-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-content {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 26px 28px 46px;
}

.sidebar-backdrop {
    display: none;
}

/* --------------------------------------------------------------------------
   Panel sayfa başlığı
   -------------------------------------------------------------------------- */
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.page-eyebrow {
    margin-bottom: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.page-head h1 {
    font-size: 25px;
    letter-spacing: -0.033em;
    font-weight: 700;
}

.page-sub {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.back-link {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    transition: 0.15s ease;
}

.back-link:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   İstatistik kartları
   -------------------------------------------------------------------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.stat-icon .icon {
    width: 18px;
    height: 18px;
}

.tone-indigo { background: var(--accent-soft); color: var(--accent); }
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-violet { background: var(--violet-soft); color: var(--violet); }
.tone-green { background: var(--success-soft); color: var(--success); }
.tone-amber { background: var(--amber-soft); color: var(--amber); }

.stat-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.3;
    margin-top: 1px;
}

.stat-hint {
    margin-top: 1px;
    font-size: 10.5px;
    color: var(--muted-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Dashboard ızgarası
   -------------------------------------------------------------------------- */
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.dash-grid .card + .card {
    margin-top: 0;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-actions a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 8px;
    border-radius: 9px;
    transition: 0.15s ease;
}

.quick-actions a:hover {
    background: var(--surface-muted);
}

.quick-actions a > .icon {
    width: 14px;
    height: 14px;
    color: var(--muted-light);
    margin-left: auto;
}

.quick-actions a > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.quick-actions strong {
    font-size: 12.5px;
    font-weight: 600;
}

.quick-actions small {
    font-size: 11px;
    color: var(--muted);
}

.quick-icon {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 9px;
    display: grid;
    place-items: center;
}

.quick-icon .icon {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Grafik
   -------------------------------------------------------------------------- */
.chart {
    display: flex;
    align-items: stretch;
    gap: 10px;
    height: 188px;
}

.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.chart-value {
    height: 15px;
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
}

.chart-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bar {
    width: 100%;
    max-width: 36px;
    background: linear-gradient(180deg, #8b97ef 0%, #4b5bd7 100%);
    border-radius: 6px 6px 3px 3px;
    transition: height 0.4s ease, opacity 0.16s ease;
    min-height: 4px;
}

.chart-col:hover .chart-bar {
    opacity: 0.82;
}

.chart-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    line-height: 1.4;
}

.chart-label small {
    display: block;
    font-size: 9.5px;
    font-weight: 400;
    color: var(--muted-light);
}

.chart-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
}

.chart-total {
    color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   Basit listeler
   -------------------------------------------------------------------------- */
.simple-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.simple-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 9px;
    transition: 0.15s ease;
}

.simple-list-item:hover {
    background: var(--surface-muted);
}

.simple-list-item.static:hover {
    background: transparent;
}

.simple-list-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.simple-list-body strong {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simple-list-body small {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simple-list-body small.mono {
    font-family: var(--mono);
    font-size: 10.5px;
}

.simple-list-meta {
    font-size: 10.5px;
    color: var(--muted-light);
    flex: none;
}

.simple-list .badge {
    flex: none;
}

/* --------------------------------------------------------------------------
   Detay düzeni
   -------------------------------------------------------------------------- */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.stack > .card + .card {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Anahtar gösterimi
   -------------------------------------------------------------------------- */
.key-hero {
    padding: 20px 22px;
    border-radius: 16px;
    background:
        radial-gradient(480px 220px at 90% -20%, rgba(122, 90, 248, 0.28), transparent 70%),
        radial-gradient(400px 200px at 0% 120%, rgba(75, 91, 215, 0.28), transparent 70%),
        linear-gradient(135deg, #151a27 0%, #111827 100%);
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 24px 44px -30px rgba(17, 24, 39, 0.7);
}

.key-hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.key-hero-head > span:first-child {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #98a3ba;
}

.key-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.5);
}

.key-hero-meta .icon {
    width: 12px;
    height: 12px;
}

.key-hero-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.key-hero-row code {
    flex: 1;
    min-width: 200px;
    padding: 11px 14px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e8ecf7;
    font-size: 13.5px;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.key-hero-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.key-hero-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
}

.key-hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.key-hero-actions .btn-dark {
    background: #fff;
    color: var(--navy);
}

.key-hero-actions .btn-dark:hover {
    background: #e9ecf2;
}

.key-hero-hint {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
}

.locked-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #fffdf7;
    border: 1px solid #f0e2c4;
}

.locked-icon {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--amber-soft);
    color: var(--amber);
}

.locked-panel h2 {
    font-size: 14px;
    margin-bottom: 3px;
}

.locked-panel p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 620px;
}

.locked-panel .key-chip {
    margin-left: auto;
    flex: none;
}

.secret-card {
    padding: 17px 19px;
    margin-bottom: 18px;
    border-radius: 13px;
    border: 1px solid #d8ddff;
    background: linear-gradient(140deg, #f4f5ff 0%, #fbfbff 100%);
}

.secret-card-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.secret-icon {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--accent);
    border: 1px solid #e0e3ff;
}

.secret-icon .icon {
    width: 16px;
    height: 16px;
}

.secret-card-head strong {
    display: block;
    font-size: 13px;
}

.secret-card-head p {
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--muted);
}

.secret-value {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.secret-value code {
    flex: 1;
    min-width: 200px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px dashed #c8cdf5;
    background: #fff;
    font-size: 12.5px;
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   IP kuralları
   -------------------------------------------------------------------------- */
.ip-form {
    margin-bottom: 14px;
}

.rule-list {
    display: flex;
    flex-direction: column;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.rule-item:last-child {
    border-bottom: 0;
}

.rule-icon {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--surface-muted);
    color: var(--muted);
}

.rule-icon .icon {
    width: 15px;
    height: 15px;
}

.rule-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.rule-body code {
    font-size: 12.5px;
    color: var(--text-soft);
    overflow-wrap: anywhere;
}

.rule-body small {
    font-size: 11px;
    color: var(--muted);
}

.rule-date {
    font-size: 10.5px;
    color: var(--muted-light);
    flex: none;
}

.rule-item form {
    flex: none;
}

/* --------------------------------------------------------------------------
   Mini istatistik
   -------------------------------------------------------------------------- */
.mini-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 9px;
    margin-bottom: 16px;
}

.mini-stat {
    padding: 12px 13px;
    border-radius: 9px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-stat span {
    font-size: 10.5px;
    color: var(--muted);
}

.mini-stat strong {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Boş durum
   -------------------------------------------------------------------------- */
.empty-state {
    padding: 34px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.empty-state-sm {
    padding: 22px 16px;
}

.empty-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    color: var(--muted-light);
    margin-bottom: 4px;
}

.empty-icon .icon {
    width: 19px;
    height: 19px;
}

.empty-state h3 {
    font-size: 14px;
}

.empty-state p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 360px;
}

.empty-state .btn {
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Sayfalama
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-link {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    transition: 0.15s ease;
}

.page-link:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.page-link.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Log tablosu
   -------------------------------------------------------------------------- */
.logs-table td:first-child {
    white-space: nowrap;
}

.logs-table .cell-stack small.mono {
    font-family: var(--mono);
    font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   Hata sayfaları
   -------------------------------------------------------------------------- */
.error-page {
    padding: 100px 0;
}

.error-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 46px 40px;
    box-shadow: var(--shadow-md);
}

.error-code {
    display: inline-block;
    margin-bottom: 14px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--accent-soft);
}

.error-card h1 {
    font-size: 25px;
    letter-spacing: -0.03em;
}

.error-card p {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--muted);
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.error-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.error-shell .error-card {
    text-align: left;
    max-width: 640px;
}

.error-checklist {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.error-checklist div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-soft);
}

.error-checklist span {
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
}

.error-checklist a {
    color: var(--accent);
    font-weight: 600;
}

.error-debug {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 9px;
    background: var(--danger-soft);
    border: 1px solid #f6d4d0;
    font-size: 11.5px;
    color: #8f2d24;
}

.error-debug pre {
    margin: 6px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 11px;
}

/* --------------------------------------------------------------------------
   Kurulum
   -------------------------------------------------------------------------- */
.install-shell {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 40px 20px;
}

.install-brand {
    margin-bottom: 22px;
}

.install-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 34px;
    box-shadow: var(--shadow-md);
}

.install-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.install-head h1 {
    margin-top: 7px;
    font-size: 26px;
    letter-spacing: -0.035em;
}

.install-head p {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted);
}

.install-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
    padding: 14px 16px;
    border-radius: 11px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.install-step {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.install-step-dot {
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.install-step-dot .icon {
    width: 13px;
    height: 13px;
}

.install-step.is-active .install-step-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.install-step.is-done .install-step-dot {
    background: var(--success-soft);
    border-color: #c8efdf;
    color: var(--success);
}

.install-step div {
    display: flex;
    flex-direction: column;
}

.install-step strong {
    font-size: 11.5px;
}

.install-step small {
    font-size: 10px;
    color: var(--muted);
}

.install-line {
    flex: 1;
    height: 1px;
    background: var(--border-strong);
}

.install-db-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.install-db-info div {
    padding: 9px 11px;
    border-radius: 8px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    min-width: 0;
}

.install-db-info span {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 2px;
}

.install-db-info code {
    font-size: 10.5px;
    color: var(--text-soft);
    overflow-wrap: anywhere;
}

.install-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.install-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.install-form .btn {
    margin-top: 4px;
}

.install-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.install-checklist div {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-soft);
}

.install-checklist span {
    width: 19px;
    height: 19px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 9.5px;
    font-weight: 700;
}

.install-debug {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 9px;
    background: var(--danger-soft);
    border: 1px solid #f6d4d0;
    font-size: 11.5px;
    color: #8f2d24;
}

.install-debug pre {
    margin: 6px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 10.5px;
}

.install-success {
    text-align: center;
    padding: 22px 0 14px;
}

.install-success-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--success-soft);
    color: var(--success);
}

.install-success-icon .icon {
    width: 26px;
    height: 26px;
}

.install-success h2 {
    font-size: 20px;
}

.install-success p {
    margin: 6px auto 0;
    max-width: 400px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
}

.install-callout {
    margin-bottom: 0;
}

.install-footnote {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 16px;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--muted);
}

.install-footnote .icon {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    flex: none;
}

.install-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 11.5px;
    color: var(--muted-light);
}

.install-footer a {
    color: var(--muted);
}

.install-footer a:hover {
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Küçük yardımcılar
   -------------------------------------------------------------------------- */
.code-inline {
    padding: 10px 12px;
    margin: 12px 0;
    border-radius: 8px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.code-inline code {
    font-size: 12px;
    color: var(--text-soft);
}

.danger-card {
    border-color: #f0dbd8;
}

.danger-card .card-head {
    background: #fffbfa;
}

.danger-card .btn-danger {
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Duyarlı tasarım
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
    .hero-grid {
        gap: 36px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        --sidebar-width: 244px;
    }
}

@media (max-width: 980px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 270px;
        height: 100vh;
        transform: translateX(-102%);
        transition: transform 0.24s ease;
        box-shadow: 30px 0 60px -30px rgba(16, 24, 40, 0.35);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(17, 24, 39, 0.35);
        backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .sidebar-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .topbar-menu {
        display: inline-grid;
    }

    .topbar {
        padding: 0 18px;
    }

    .app-content {
        padding: 20px 18px 40px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .method-layout {
        grid-template-columns: 1fr;
    }

    .method-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .method-aside .card + .card {
        margin-top: 0;
    }

    .docs {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .docs-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px;
        padding: 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    .docs-nav-title {
        grid-column: 1 / -1;
    }

    .docs-nav-card {
        display: none;
    }

    .docs-nav > a {
        border-left: 0;
        border-radius: 7px;
    }

    .docs-nav > a:hover,
    .docs-nav > a.is-active {
        background: var(--accent-soft);
    }
}

@media (max-width: 900px) {
    .hero {
        padding-top: 54px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        max-width: 640px;
    }

    .hero h1 {
        font-size: clamp(34px, 7vw, 46px);
    }

    .method-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .method-card {
        padding: 22px;
    }

    .section {
        padding: 64px 0;
    }

    .cta-band {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cta-actions .btn {
        width: auto;
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .site-nav {
        position: absolute;
        top: 66px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: var(--shadow-md);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 10px 12px;
    }

    .nav-toggle {
        display: inline-grid;
    }

    .header-actions .btn-ghost {
        display: none;
    }

    .header-inner {
        gap: 12px;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero-meta {
        gap: 22px;
    }

    .response-window {
        margin-left: 0;
    }

    .page-hero {
        padding: 38px 0 26px;
    }

    .method-hero {
        flex-direction: column;
        gap: 14px;
    }

    .method-aside {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions {
        padding-top: 0;
    }

    .topbar-site-link {
        display: none;
    }

    .user-pill-name {
        display: none;
    }

    .user-pill {
        padding: 4px;
        border: 0;
        background: transparent;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-col:last-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .table {
        font-size: 13px;
    }

    .table th,
    .table td {
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth-card {
        padding: 28px;
        border-radius: 18px;
    }

    .install-card {
        padding: 26px;
    }

    .install-db-info {
        grid-template-columns: 1fr;
    }

    .install-form-row {
        grid-template-columns: 1fr;
    }

    .install-progress {
        flex-wrap: wrap;
    }

    .install-line {
        display: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .auth-requirement {
        flex-wrap: wrap;
    }

    .auth-requirement .btn {
        margin-left: 0;
        width: 100%;
    }

    .locked-panel {
        flex-wrap: wrap;
    }

    .locked-panel .key-chip {
        margin-left: 0;
    }

    .chart {
        height: 150px;
        gap: 6px;
    }

    .chart-label small {
        display: none;
    }

    .field-note {
        width: 100%;
    }

    .inline-form .field-note {
        flex: 1;
    }

    .filter-form .field,
    .filter-form .field-grow {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .filter-form .btn {
        flex: 1;
    }

    .card-foot {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 33px;
    }

    .lead {
        font-size: 15px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-strip {
        gap: 10px 20px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .app-content,
    .topbar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-head h1 {
        font-size: 22px;
    }

    .method-card {
        padding: 20px;
    }

    .cta-band {
        padding: 26px 22px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col:last-child {
        grid-column: auto;
    }

    .key-hero-row code {
        min-width: 100%;
    }

    .key-hero-actions {
        width: 100%;
    }

    .key-hero-actions .btn {
        flex: 1;
    }

    .secret-value code {
        min-width: 100%;
    }

    .secret-value .btn {
        width: 100%;
    }

    .error-card {
        padding: 32px 22px;
    }

    .error-page {
        padding: 50px 0;
    }

    .auth-shell {
        padding: 12px;
    }

    .auth-card {
        padding: 22px;
    }

    .install-shell {
        padding: 24px 14px;
    }

    .install-card {
        padding: 22px;
    }

    .docs-nav {
        grid-template-columns: 1fr;
    }

    .chart-total {
        display: none !important;
    }

    .simple-list-meta {
        display: none;
    }

    .rule-date {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
