/* ============================================================
   HESAPLA — Ana Stil Dosyası
   Modern, mobil uyumlu tasarım. Gece / gündüz modu destekli.
   Marka rengi (--primary) config.php üzerinden header'da atanır.
   ============================================================ */

/* ---------------- Tema Değişkenleri ---------------- */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-soft: rgba(99, 102, 241, 0.12);
    --primary-ring: rgba(99, 102, 241, 0.22);

    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e5e9f2;

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -14px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, 0.28);

    --radius: 16px;
    --radius-sm: 10px;
    --sidebar-w: 270px;
    --sidebar-mini-w: 84px;
    --topbar-h: 64px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

[data-theme="dark"] {
    --primary-soft: rgba(129, 140, 248, 0.16);
    --primary-ring: rgba(129, 140, 248, 0.28);

    --bg: #0b1120;
    --surface: #111a2e;
    --surface-2: #16213a;
    --text: #e6ecf7;
    --text-muted: #92a3bd;
    --border: #22304e;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 14px 34px -16px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    transition: background-color 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }

button { font-family: inherit; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

::selection { background: var(--primary-ring); }

/* ---------------- Yerleşim ---------------- */
.layout { min-height: 100vh; }

.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.content {
    flex: 1;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 28px 48px;
}

/* ---------------- Sidebar ---------------- */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 60;
    transition: width 0.3s ease, transform 0.3s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 18px 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    min-width: 0;
}

.brand-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 19px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 18px -8px var(--primary);
}

.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.brand-text small {
    color: var(--text-muted);
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.sidebar-head .sidebar-close { display: none; }

.sidebar-toggle i { transition: transform 0.3s ease; }

.sidebar-nav {
    flex: 1;
    overflow: hidden auto;
    padding: 6px 14px 14px;
}

.nav-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 10px 8px;
}

.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link i {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 14.5px;
    color: var(--text-muted);
    background: var(--surface-2);
    transition: inherit;
}

.nav-link span { min-width: 0; white-space: nowrap; overflow: hidden; }

.nav-link:hover { background: var(--surface-2); }
.nav-link:hover i { color: var(--primary); }

.nav-link.is-active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

.nav-link.is-active i {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.nav-link.is-active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    border-radius: 0 4px 4px 0;
    background: var(--primary);
}

.sidebar-foot { padding: 14px 18px 18px; border-top: 1px solid var(--border); }

.sidebar-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.sidebar-note i { color: var(--success); margin-top: 2px; }

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 24, 0.55);
    backdrop-filter: blur(2px);
    z-index: 55;
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

/* ---------------- Üst Bar ---------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.topbar-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.icon-btn:hover { color: var(--primary); border-color: var(--primary-ring); background: var(--primary-soft); }
.icon-btn:active { transform: scale(0.95); }

.menu-btn { display: none; }

/* Tema butonu ikon geçişi */
#themeToggle .fa-sun { color: #f59e0b; }

/* ---------------- Sayfa Başlığı ---------------- */
.page-head { margin-bottom: 22px; }

.page-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 8px;
    font-size: clamp(22px, 3.4vw, 28px);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.page-title .title-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 10px 22px -10px var(--primary);
}

.page-desc { margin: 0; color: var(--text-muted); font-size: 14.5px; max-width: 640px; }

/* ---------------- Kartlar ---------------- */
.calc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

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

/* ---------------- Sekmeler ---------------- */
.tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 13px;
    margin-bottom: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    flex: 1 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.tab.is-active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-pane { display: none; }
.tab-pane.is-active { display: block; animation: fadeIn 0.25s ease both; }

/* ---------------- Formlar ---------------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid .field-span { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; }

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

.field .hint { font-size: 12.5px; color: var(--text-muted); }

.field input[type="text"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.25s ease;
    appearance: none;
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-ring);
}

.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 0.75; }

/* Uzunluk kaydırıcısı */
input[type="range"] {
    width: 100%;
    appearance: none;
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(to right, var(--primary) var(--range-progress, 20%), var(--border) var(--range-progress, 20%));
    outline: none;
    margin: 10px 0 6px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
    transition: transform 0.12s ease;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }

input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
}

/* Onay kutuları */
.option-group {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 15px 15px;
    margin: 16px 0 0;
    background: var(--surface-2);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.option-group legend {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0 7px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 0;
    user-select: none;
}

.check + .check { border-top: 1px dashed var(--border); }

.check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.check small { display: block; color: var(--text-muted); font-weight: 400; font-size: 12px; }

/* Karakter türü seçici kartları (şifre üretici) */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.type-card { position: relative; display: block; cursor: pointer; }

.type-card > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    padding: 16px 8px 13px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.type-content > i { font-size: 19px; color: var(--text-muted); transition: color 0.18s ease; }
.type-content strong { font-size: 13.5px; font-weight: 700; }
.type-content small { font-size: 11px; color: var(--text-muted); }

.type-card:hover .type-content { border-color: var(--primary-ring); transform: translateY(-1px); }

.type-card > input:checked + .type-content {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.type-card > input:checked + .type-content > i { color: var(--primary); }

.type-card > input:focus-visible + .type-content {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.type-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 9.5px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.type-card > input:checked + .type-content .type-check { opacity: 1; transform: scale(1); }

/* Hızlı seçim çipleri */
.quick-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border: 1.5px solid var(--border);
    border-radius: 99px;
    background: var(--surface);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.chip i { font-size: 11px; }
.chip:hover { border-color: var(--primary-ring); color: var(--primary); }

.chip.is-active {
    background: var(--primary-soft);
    border-color: var(--primary-ring);
    color: var(--primary);
}

/* ---------------- Butonlar ---------------- */
.actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 26px;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 10px 22px -10px var(--primary);
}

.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: translateY(1px) scale(0.99); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

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

.btn-ghost:hover { border-color: var(--primary-ring); color: var(--primary); }

/* ---------------- Sonuç Alanı ---------------- */
.result-area { display: grid; gap: 10px; margin-top: 18px; }

.result-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 2px 4px;
}

.result-head i { color: var(--success); }

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.3s ease both;
}

.result-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    flex: 1 1 auto;
}

.result-value-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
}

.result-value {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: right;
    overflow-wrap: anywhere;
}

.result-row.is-mono .result-value {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: left;
}

.result-row.is-highlight {
    background: var(--primary-soft);
    border-color: transparent;
}

.result-row.is-highlight .result-value {
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
}

.result-row.is-highlight.is-mono .result-value { font-size: 15.5px; }

.result-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--danger) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
    color: var(--danger);
    font-weight: 600;
    font-size: 14px;
    animation: fadeIn 0.25s ease both;
}

.result-error i { margin-top: 3px; }

/* ---------------- Kopyalama Butonu ---------------- */
.copy-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.copy-btn:hover {
    color: var(--primary);
    border-color: var(--primary-ring);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

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

/* ---------------- Ana Sayfa ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 38px 34px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    margin-bottom: 26px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.hero::before { width: 260px; height: 260px; top: -130px; right: -60px; }
.hero::after { width: 180px; height: 180px; bottom: -110px; left: 32%; background: rgba(255, 255, 255, 0.08); }

.hero h2 {
    position: relative;
    margin: 0 0 10px;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero p { position: relative; margin: 0; max-width: 560px; font-size: 15px; opacity: 0.92; }

.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 99px;
    padding: 6px 14px;
    margin-bottom: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin: 30px 0 15px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.tool-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-ring);
}

.tool-card .tool-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 19px;
    color: var(--primary);
    background: var(--primary-soft);
}

.tool-card h3 { margin: 0 0 3px; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.tool-card p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.tool-card .tool-arrow {
    position: absolute;
    right: 16px;
    bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.tool-card:hover .tool-arrow { opacity: 1; transform: translateX(0); color: var(--primary); }

/* Özellik şeridi */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px 17px;
    font-size: 13.5px;
    font-weight: 600;
}

.feature-item i {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 15px;
    color: var(--success);
    background: color-mix(in srgb, var(--success) 12%, transparent);
}

/* ---------------- Footer ---------------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 22px 28px 26px;
    text-align: center;
}

.footer-note {
    margin: 0 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-note i { color: var(--success); }

.footer-copy { margin: 0; font-size: 12.5px; color: var(--text-muted); opacity: 0.85; }

/* ---------------- Animasyonlar ---------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------- Duyarlı Tasarım ---------------- */

/* Masaüstünde sidebar mini modu: yalnızca ikonlar görünür */
@media (min-width: 992px) {
    html.sidebar-mini .sidebar { width: var(--sidebar-mini-w); }

    html.sidebar-mini .main { margin-left: var(--sidebar-mini-w); }

    html.sidebar-mini .sidebar-head {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        padding: 16px 12px 12px;
    }

    html.sidebar-mini .brand,
    html.sidebar-mini .nav-title,
    html.sidebar-mini .nav-link span,
    html.sidebar-mini .sidebar-note span { display: none; }

    html.sidebar-mini .nav-link {
        justify-content: center;
        padding: 11px 0;
    }

    html.sidebar-mini .sidebar-foot { padding: 14px 12px 16px; }

    html.sidebar-mini .sidebar-note {
        justify-content: center;
        align-items: center;
        padding: 10px 8px;
    }

    html.sidebar-mini .sidebar-note i { margin-top: 0; }

    html.sidebar-mini .sidebar-toggle i { transform: rotate(180deg); }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        width: min(var(--sidebar-w), 84vw);
    }

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

    .sidebar-head .sidebar-close { display: grid; }

    .sidebar-toggle { display: none; }

    .main { margin-left: 0; }

    .menu-btn { display: grid; }

    .topbar { padding: 0 18px; }

    .content { padding: 22px 18px 40px; }
}

@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }

    .calc-card { padding: 17px; }

    .hero { padding: 28px 22px; }

    .tab { font-size: 12.5px; padding: 9px 11px; }

    .result-row { flex-wrap: wrap; gap: 8px; }

    .result-value-wrap { width: 100%; justify-content: space-between; }

    .result-row.is-mono .result-value { font-size: 12.5px; }

    .btn { width: 100%; }
}
