/* Inter (değişken yazı tipi, yerel dosya): latin, latin-ext (Türkçe), cyrillic. Diğer yazılar için sistem yazı tipleri kullanılır. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
    color-scheme: light;
    /* FCRSOFT marka paleti (fcrsoft.com): ocean #0C6685, ink #0B1F2A, surface #F8F9FF */
    --bg: #f8f9ff;
    --bg-deep: #eff4ff;
    --surface: #ffffff;
    --surface-strong: #eff4ff;
    --surface-glass: rgba(255, 255, 255, 0.82);
    --text: #0b1c30;
    --text-soft: #1f2a37;
    --muted: #43474b;
    --line: #dbe3ef;
    --line-strong: #c3cddc;
    --ocean: #0c6685;
    --ocean-dark: #00617f;
    --ocean-soft: #95dbfe;
    --ink: #0b1f2a;
    --blue: #0c6685;
    --blue-strong: #00617f;
    --blue-deep: #0b1f2a;
    --cyan: #1a8fb4;
    --teal: #14a0a0;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --indigo: #4f46e5;
    --violet: #7c3aed;
    --grad-primary: linear-gradient(135deg, #00617f 0%, #0c6685 55%, #1a86a6 100%);
    --grad-aurora: radial-gradient(at 18% 12%, rgba(149, 219, 254, 0.28) 0%, transparent 55%),
        radial-gradient(at 82% 8%, rgba(12, 102, 133, 0.10) 0%, transparent 50%),
        radial-gradient(at 78% 88%, rgba(20, 160, 160, 0.10) 0%, transparent 55%);
    --shadow-sm: 0 1px 2px rgba(11, 31, 42, 0.06);
    --shadow-md: 0 8px 22px -10px rgba(11, 31, 42, 0.16), 0 2px 6px rgba(11, 31, 42, 0.05);
    --shadow-lg: 0 28px 60px -28px rgba(11, 31, 42, 0.30), 0 10px 24px -16px rgba(11, 31, 42, 0.16);
    --shadow-glow: 0 18px 44px -18px rgba(12, 102, 133, 0.45);
    --shadow: var(--shadow-md);
    --ring: 0 0 0 4px rgba(12, 102, 133, 0.20);
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --sidebar-width: 292px;
    font-family: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Devanagari", "Nirmala UI", "Microsoft YaHei", "Yu Gothic UI", "Malgun Gothic", sans-serif;
}

* {
    box-sizing: border-box;
}

*::selection {
    background: rgba(14, 165, 233, 0.25);
    color: var(--blue-deep);
}

html {
    min-width: 320px;
    /* Geniş bir tablo/öğe (ör. min-width:680px tablolar) sayfayı mobilde büyütüp position:fixed
     * öğeleri (alt sekme çubuğu gibi) ekranın çok altına/dışına kaydırmasın (2026-09-27 giderildi) */
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01", "ss03";
    /* Mobilde "web sayfası" hissini azaltır: dokunma parlaması kapalı */
    -webkit-tap-highlight-color: transparent;
}

/* Dokunma hissiyatı: basma (:active) anında tepki verir, bırakınca yumuşak döner — 200ms'lik
 * tekdüze geçiş dokunmada "yavaş/yapışkan" hissettiriyordu (2026-09-27). Fare imleci gerçekten
 * varsa (dokunmatik değil) parlama/yükselme efektleri korunur; dokunmatikte devre dışı kalır
 * (aksi halde dokunma sonrası ":hover" durumu ekranda "takılı" kalır). */
.button, .icon-button, .nav-link, .tab-link, .demo-account-btn {
    transition-duration: 110ms;
}

.button:active, .icon-button:active, .nav-link:active, .tab-link:active, .demo-account-btn:active {
    transition-duration: 30ms !important;
}

@media (hover: none) {
    .button:hover, .button:focus-visible:not(:active) { transform: none; box-shadow: none; filter: none; }
    .button:hover::after { transform: translateX(-120%); }
    .nav-link:hover { transform: none; }
    .icon-button:hover { transform: none; }
    .demo-account-btn:hover { background: #ffffff; border-color: #bae6fd; }
}

button,
a,
.icon-button,
input[type="submit"] {
    -webkit-tap-highlight-color: transparent;
}

/* Sayfa geçişi ilerleme çubuğu: tıklanır tıklanmaz belirir, tarayıcı yeni sayfayı çizene kadar
 * "bir şeyler oluyor" hissini verir (2026-09-28). Yeni sayfa yüklenince zaten sıfırlanmış olur. */
#nav-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 3px;
    width: 0;
    z-index: 9999;
    pointer-events: none;
    background: linear-gradient(90deg, #38bdf8, var(--ocean, #0c6685));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
    opacity: 0;
    transition: width 900ms cubic-bezier(0.1, 0.6, 0.3, 1), opacity 150ms ease;
}

#nav-progress.active {
    width: 82%;
    opacity: 1;
}

.table-wrap table.kv-table { min-width: 0; }
.kv-table th { width: 42%; text-align: start; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #93c5fd, #38bdf8);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #60a5fa, #0ea5e9); background-clip: padding-box; }

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-body {
    position: relative;
    min-height: 100vh;
    background: var(--bg);
}

.app-body::before {
    content: "";
    position: fixed;
    inset: -10% -10% auto auto;
    width: 70vw;
    height: 70vw;
    pointer-events: none;
    background: var(--grad-aurora);
    filter: blur(8px);
    z-index: 0;
    animation: aurora-shift 18s ease-in-out infinite alternate;
}

.app-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(11, 58, 102, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 58, 102, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.55), transparent 70%);
    z-index: 0;
}

@keyframes aurora-shift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-3%, 2%, 0) scale(1.04); }
    100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}

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

@media (prefers-reduced-motion: reduce) {
    .app-body::before { animation: none; }
    .panel, .stat-card, .alert-tile { animation: none !important; }
    * { transition: none !important; }
}

.app-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px 18px;
    color: #e6f6ff;
    background:
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.32) 0%, transparent 55%),
        radial-gradient(at 100% 100%, rgba(20, 184, 166, 0.22) 0%, transparent 60%),
        linear-gradient(180deg, #062a4a 0%, #083d6b 50%, #0a4f7a 100%);
    border-right: 1px solid rgba(125, 211, 252, 0.14);
    box-shadow: 18px 0 60px -28px rgba(3, 32, 60, 0.6);
    z-index: 20;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
    mix-blend-mode: overlay;
    z-index: -1;
}

.brand,
.brand-row,
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #14b8a6 100%);
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 10px 22px -10px rgba(6, 182, 212, 0.7);
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.brand strong,
.brand-row strong,
.mobile-brand {
    display: block;
    font-size: 1rem;
    letter-spacing: 0;
}

.brand small,
.brand-row small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
}

.nav-list {
    display: grid;
    gap: 4px;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -4px;
}

.nav-list::-webkit-scrollbar { width: 6px; }
.nav-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); }

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 11px;
    color: rgba(230, 246, 255, 0.78);
    font-weight: 600;
    letter-spacing: 0.1px;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.nav-link span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.74rem;
    font-weight: 800;
    color: #e0f2fe;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.nav-link.active {
    color: #022035;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    box-shadow: 0 12px 28px -16px rgba(8, 145, 178, 0.6);
}

.nav-link.active span {
    background: linear-gradient(135deg, #06b6d4, #14b8a6);
    color: #ffffff;
    border-color: transparent;
}

.nav-link.active::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    width: 4px;
    height: 22px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #38bdf8, #14b8a6);
    transform: translateY(-50%);
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 12px;
}

.user-card {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.user-card span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
}

.main-content {
    min-width: 0;
    padding: 28px;
}

.mobile-topbar {
    display: none;
}

.bottom-tabbar-wrap {
    display: none;
}

.page-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(224, 242, 254, 0.78) 100%);
    border: 1px solid rgba(186, 230, 253, 0.7);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 100% at 100% 0%, rgba(20, 184, 166, 0.16), transparent 70%),
        radial-gradient(40% 100% at 0% 100%, rgba(124, 58, 237, 0.12), transparent 70%);
}

.page-header > * { position: relative; }

.page-header h1,
.login-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0b3a66 0%, #0369a1 45%, #14b8a6 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.page-header h1 {
    font-size: clamp(1.85rem, 2.6vw, 2.6rem);
    font-weight: 800;
}

.page-header p,
.login-hero p {
    max-width: 740px;
    margin: 8px 0 0;
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.role-chip,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.role-chip {
    color: #075985;
    background: linear-gradient(135deg, #ecfeff, #e0f2fe);
    border: 1px solid #bae6fd;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, filter 200ms ease;
}

.button::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 600ms ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.button:hover::after { transform: translateX(120%); }

.button:active { transform: translateY(0); filter: brightness(0.97); }

.button:focus-visible {
    outline: 0;
    box-shadow: var(--ring), var(--shadow-glow);
}

.button-primary {
    color: #ffffff;
    background: var(--grad-primary);
    box-shadow: 0 14px 28px -10px rgba(14, 165, 233, 0.45);
}

.button-soft {
    color: #075985;
    background: linear-gradient(135deg, #ecfeff, #e0f2fe);
    border: 1px solid #bae6fd;
}

.button-ghost {
    color: #0369a1;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #bae6fd;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.button.full {
    width: 100%;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--blue-strong);
    background: #ffffff;
    font-weight: 900;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.icon-button:hover {
    color: #ffffff;
    background: var(--grad-primary);
    border-color: transparent;
    transform: translateY(-1px);
}

.panel,
.stat-card,
.login-card,
.login-hero,
.setup-panel > div,
.alert-tile {
    position: relative;
    border: 1px solid rgba(186, 230, 253, 0.55);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.panel {
    margin-bottom: 18px;
    padding: 22px;
    animation: panel-rise 380ms ease both;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 40%);
    mix-blend-mode: overlay;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(186, 230, 253, 0.7);
}

.panel-heading h2 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--blue-deep);
}

.formula {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 10px;
    color: #075985;
    background: linear-gradient(135deg, #ecfeff, #e0f2fe);
    border: 1px solid #bae6fd;
    font-size: 0.84rem;
    font-weight: 700;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.kpi-grid.compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 6px;
    min-height: 138px;
    padding: 20px;
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: auto -30% -60% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22), transparent 60%);
    pointer-events: none;
}

.stat-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--blue);
}

.stat-card span,
.stat-card small {
    position: relative;
    color: var(--muted);
}

.stat-card strong {
    position: relative;
    font-size: clamp(1.3rem, 1.95vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--blue-deep);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.stat-blue::after { background: linear-gradient(180deg, #0ea5e9, #0369a1); }
.stat-cyan::after { background: linear-gradient(180deg, #06b6d4, #0e7490); }
.stat-emerald::after { background: linear-gradient(180deg, #10b981, #047857); }
.stat-amber::after { background: linear-gradient(180deg, #f59e0b, #b45309); }
.stat-rose::after { background: linear-gradient(180deg, #f43f5e, #be123c); }
.stat-indigo::after { background: linear-gradient(180deg, #6366f1, #4338ca); }

.stat-blue::before    { background: radial-gradient(circle, rgba(14, 165, 233, 0.22), transparent 60%); }
.stat-cyan::before    { background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 60%); }
.stat-emerald::before { background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 60%); }
.stat-amber::before   { background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 60%); }
.stat-rose::before    { background: radial-gradient(circle, rgba(244, 63, 94, 0.22), transparent 60%); }
.stat-indigo::before  { background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 60%); }

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

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

.form-grid label,
.login-card label,
.report-filter label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 800;
}

.span-2 {
    grid-column: span 2;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #cbd9ec;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    outline: 0;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #94c2eb;
}

input,
select {
    min-height: 44px;
    padding: 9px 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

textarea {
    resize: vertical;
    padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    background: #ffffff;
    box-shadow: var(--ring);
}

.check-field {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    align-self: end;
    min-height: 44px;
}

.check-field input {
    width: 18px;
    min-height: 18px;
}

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

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Yatay sürüklemeyi kendi katmanında izole eder: sayfanın geri kalanını yeniden boyamaz/
     * ölçmez, geniş tabloyu sağa kaydırırken hissedilen takılmayı azaltır (2026-09-28). */
    overscroll-behavior-x: contain;
    contain: layout paint;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: inset 0 -1px 0 rgba(11, 58, 102, 0.04);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid #e6eef9;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

thead th {
    position: sticky;
    top: 0;
    color: #475569;
    background: linear-gradient(180deg, #f8fbff, #eff5fb);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line-strong);
}

tbody tr { transition: background 160ms ease; }
tbody tr:nth-child(even) td { background: rgba(241, 247, 255, 0.4); }
tbody tr:hover td { background: rgba(186, 230, 253, 0.22); }
tbody tr:last-child td { border-bottom: 0; }

td {
    color: #1e293b;
    font-size: 0.9rem;
}

.empty-cell,
.empty-state {
    color: var(--muted);
    text-align: center;
}

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

.actions form {
    margin: 0;
}

.icon-link {
    border: 0;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--blue-strong);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease;
}

.icon-link:hover { background: rgba(14, 165, 233, 0.1); }

.icon-link.danger {
    color: var(--rose);
}

.icon-link.danger:hover { background: rgba(244, 63, 94, 0.1); }

.badge-success { color: #047857; background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.badge-warning { color: #92400e; background: linear-gradient(135deg, #fef3c7, #fde68a); }
.badge-danger  { color: #be123c; background: linear-gradient(135deg, #ffe4e6, #fecdd3); }
.badge-info    { color: #075985; background: linear-gradient(135deg, #e0f2fe, #bae6fd); }

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.alert-success { color: #047857; background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-color: #a7f3d0; }
.alert-warning { color: #92400e; background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.alert-danger  { color: #be123c; background: linear-gradient(135deg, #fff1f2, #ffe4e6); border-color: #fecdd3; }
.alert-info    { color: #075985; background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border-color: #bae6fd; }

.alert-close {
    border: 0;
    background: transparent;
    color: currentColor;
    font-size: 1.3rem;
    line-height: 1;
}

.alert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.alert-tile {
    display: grid;
    gap: 6px;
    min-height: 96px;
    padding: 14px;
    box-shadow: none;
}

.alert-tile span {
    color: var(--muted);
    font-size: 0.9rem;
}

.alert-tile-success { border-color: #a7f3d0; background: linear-gradient(135deg, #ecfdf5, #ffffff); }
.alert-tile-warning { border-color: #fde68a; background: linear-gradient(135deg, #fffbeb, #ffffff); }
.alert-tile-danger  { border-color: #fecdd3; background: linear-gradient(135deg, #fff1f2, #ffffff); }

.quick-summary {
    margin-bottom: 18px;
}

.quick-shortcuts {
    margin-bottom: 18px;
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

.quick-card {
    margin-bottom: 0;
}

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

.quick-form .form-actions {
    align-self: end;
}

.report-filter {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) repeat(2, minmax(160px, 1fr)) auto minmax(220px, auto);
    align-items: end;
    gap: 14px;
}

.export-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.report-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.report-section {
    margin-bottom: 0;
}

.fcr-preview {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid #bae6fd;
    border-radius: var(--radius);
    background: #f0f9ff;
}

.fcr-preview strong {
    color: var(--blue-strong);
    font-size: 1.6rem;
}

.fcr-preview span,
.fcr-preview small {
    color: var(--muted);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.chart-panel {
    margin-bottom: 0;
}

.chart-panel .panel-heading span {
    color: var(--muted);
    font-size: 0.9rem;
}

.chart-wrap {
    position: relative;
    width: 100%;
    min-height: 200px;
    padding: 8px 4px 4px;
}

.chart-wrap canvas {
    display: block;
    width: 100% !important;
    max-height: 220px;
}

.backup-actions,
.permission-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.permission-check {
    width: 20px;
    min-height: 20px;
}

.login-body {
    position: relative;
    min-height: 100vh;
    background: #061a30;
    overflow-x: hidden;
    /* Not overflow:hidden on Y — mobilde dikey kaydırmayı tamamen engelliyordu (2026-09-27) */
}

.login-body::before {
    content: "";
    position: fixed;
    inset: -10%;
    pointer-events: none;
    background:
        radial-gradient(at 20% 18%, rgba(56, 189, 248, 0.55) 0%, transparent 45%),
        radial-gradient(at 78% 12%, rgba(124, 58, 237, 0.5) 0%, transparent 45%),
        radial-gradient(at 82% 82%, rgba(20, 184, 166, 0.55) 0%, transparent 50%),
        radial-gradient(at 18% 88%, rgba(244, 63, 94, 0.35) 0%, transparent 50%),
        linear-gradient(135deg, #061a30 0%, #082547 100%);
    filter: blur(2px);
    animation: aurora-shift 20s ease-in-out infinite alternate;
}

.login-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 75%);
}

.login-body .login-shell { position: relative; z-index: 1; }

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    align-items: center;
    padding: 28px 0;
}

.login-hero,
.login-card {
    padding: clamp(24px, 4vw, 44px);
    border-radius: 24px;
}

.login-hero {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(2, 132, 199, 0.85), rgba(8, 145, 178, 0.7) 55%, rgba(20, 184, 166, 0.65)),
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 40px 80px -30px rgba(2, 32, 60, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    position: relative;
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 40%);
    mix-blend-mode: overlay;
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(186, 230, 253, 0.6);
    box-shadow: 0 40px 80px -30px rgba(2, 32, 60, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.login-hero .brand-row small,
.login-hero p {
    color: rgba(255, 255, 255, 0.85);
}

.login-hero h1 {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 60%, #99f6e4 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    text-shadow: 0 2px 30px rgba(2, 32, 60, 0.25);
}

.login-hero .brand-mark {
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #14b8a6);
}

.login-metrics {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.login-metrics span {
    display: grid;
    gap: 4px;
    min-height: 88px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-metrics strong {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.login-card form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.login-card h2 {
    margin: 0;
    font-size: 1.85rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0b3a66, #0891b2);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.demo-box {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding: 14px;
    border-radius: 14px;
    color: #075985;
    background: linear-gradient(135deg, #ecfeff, #e0f2fe);
    border: 1px solid #bae6fd;
    font-size: 0.84rem;
}

.demo-accounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.demo-account-form { margin: 0; }

.demo-account-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #bae6fd;
    background: #ffffff;
    color: #075985;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.demo-account-btn:hover { background: #f0f9ff; border-color: #7dd3fc; }
.demo-account-btn:active { transform: scale(0.98); }
.demo-account-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.demo-account-role { font-weight: 700; font-size: 0.86rem; }
.demo-account-cred { font-size: 0.74rem; color: #0369a1; opacity: 0.85; word-break: break-all; }

.setup-panel {
    display: grid;
    place-items: center;
    min-height: 62vh;
}

.setup-panel > div {
    max-width: 720px;
    padding: 24px;
}

.setup-panel h1 {
    margin: 0 0 10px;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 1180px) {
    .kpi-grid,
    .kpi-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .dashboard-charts {
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-entry-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    /* Cam bulanıklığı (backdrop-filter) tek panelde ucuzdur ama bir sayfada onlarca panel/kart
     * varken (KPI ızgarası, tablolar) kaydırma sırasında telefonun GPU'sunu zorlayıp takılmaya
     * sebep olur. Mobilde kapatılır; görünüm neredeyse aynı kalır, kaydırma belirgin şekilde
     * pürüzsüzleşir (2026-09-28). Sekme çubuğu/üst çubuk gibi TEK, sabit öğelerde bulanıklık kalır. */
    .panel,
    .stat-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 64px;
        /* PWA olarak yüklenip tam ekran açıldığında çentik/durum çubuğu alanına taşmasın */
        padding: calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 12px calc(14px + env(safe-area-inset-left));
        background: rgba(255, 255, 255, 0.78);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 1px 0 rgba(11, 58, 102, 0.04);
        backdrop-filter: saturate(180%) blur(16px);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(84vw, var(--sidebar-width));
        transform: translateX(-105%);
        transition: transform 180ms ease;
    }

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

    .sidebar-backdrop.open {
        position: fixed;
        inset: 0;
        z-index: 15;
        display: block;
        background: rgba(15, 23, 42, 0.45);
    }

    .main-content {
        padding: 18px 14px calc(32px + 64px + env(safe-area-inset-bottom));
    }

    /* Alt sekme çubuğu (native mobil uygulama düzeni): web menüsü yerine ekranın altında sabit,
     * camsı (glassmorphism) sekmeler — yüzen kart, bulanık arka plan, aktif sekmede hap biçimli vurgu. */
    .bottom-tabbar-wrap {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 25;
        display: flex;
        justify-content: center;
        padding: 0 10px calc(10px + env(safe-area-inset-bottom));
        pointer-events: none;
    }

    .bottom-tabbar {
        pointer-events: auto;
        display: flex;
        width: 100%;
        max-width: 560px;
        gap: 2px;
        padding: 7px 8px;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow:
            0 12px 32px -12px rgba(11, 58, 102, 0.35),
            0 1px 0 rgba(255, 255, 255, 0.7) inset,
            0 0 0 1px rgba(186, 230, 253, 0.4);
        backdrop-filter: blur(22px) saturate(190%);
        -webkit-backdrop-filter: blur(22px) saturate(190%);
    }

    /* Menü (soldaki tam menü) açıkken alt çubuk gizlenir; içerik/perde onun yerini alır */
    body:has(.sidebar-backdrop.open) .bottom-tabbar-wrap {
        display: none;
    }

    .tab-link {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 7px 4px;
        border: 0;
        border-radius: 16px;
        background: none;
        color: var(--muted);
        font: inherit;
        font-size: 0.66rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color 110ms ease, transform 110ms ease;
    }

    .tab-link .icon {
        width: 20px;
        min-height: 20px;
        transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .tab-link.active,
    .tab-link[aria-current="page"] {
        color: var(--ocean-dark);
    }

    .tab-link.active::before,
    .tab-link[aria-current="page"]::before {
        content: "";
        position: absolute;
        inset: -2px 2px;
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(186, 230, 253, 0.85), rgba(224, 242, 254, 0.55));
        box-shadow: 0 4px 10px -4px rgba(12, 102, 133, 0.4);
        z-index: -1;
        animation: tab-pop 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .tab-link.active .icon,
    .tab-link[aria-current="page"] .icon {
        transform: translateY(-1px) scale(1.08);
    }

    .tab-link:active { transform: scale(0.94); }

    @keyframes tab-pop {
        from { transform: scale(0.7); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }

    @media (prefers-reduced-motion: reduce) {
        .tab-link, .tab-link .icon, .tab-link.active::before { animation: none !important; transition: none !important; }
    }

    .page-header {
        display: grid;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .split-grid,
    .login-shell {
        /* minmax(0, 1fr): 1fr TEK BAŞINA öğeye "min-width: auto" (içeriğin doğal genişliği) bırakır;
         * içinde geniş bir tablo (.table-wrap min-width:680px) varsa panel/sayfa mobilde genişleyip
         * position:fixed öğeleri (alt sekme çubuğu) ekranın dışına kaydırıyordu (2026-09-27 giderildi) */
        grid-template-columns: minmax(0, 1fr);
    }

    .login-shell {
        align-items: stretch;
        min-height: auto;
    }

    .login-hero {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    .page-header h1,
    .login-hero h1 {
        font-size: 2rem;
    }

    .kpi-grid,
    .kpi-grid.compact,
    .form-grid,
    .alert-grid,
    .report-filter,
    .login-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .export-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .backup-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .export-actions .button {
        width: 100%;
    }

    .backup-actions .button {
        width: 100%;
    }

    .quick-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-actions .button {
        width: 100%;
    }

    .quick-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .span-2 {
        grid-column: auto;
    }

    .panel,
    .stat-card,
    .login-card,
    .login-hero {
        padding: 14px;
    }

    .panel-heading {
        display: grid;
    }

    .form-actions,
    .header-actions {
        width: 100%;
    }

    .form-actions .button,
    .header-actions .button {
        width: 100%;
    }

    .role-chip {
        width: 100%;
    }

    table {
        min-width: 680px;
    }

    th,
    td {
        padding: 11px 10px;
        font-size: 0.84rem;
    }

    .actions {
        min-width: 130px;
    }

    .login-shell {
        width: min(100% - 20px, 1180px);
        padding: 14px 0;
    }
}

@media (max-width: 420px) {
    .main-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .demo-accounts {
        grid-template-columns: minmax(0, 1fr);
    }

    .mobile-brand {
        font-size: 0.92rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .button {
        min-height: 44px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* === Kamera/AI modülü === */
.camera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.camera-tile {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(186, 230, 253, 0.6);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.92));
    box-shadow: var(--shadow-sm);
}

.camera-tile.tile-termal {
    border-color: #fecdd3;
    background:
        linear-gradient(180deg, rgba(255, 245, 247, 0.96), rgba(255, 230, 235, 0.85));
}

.camera-tile.tile-dual {
    border-color: #c7d2fe;
    background:
        linear-gradient(180deg, rgba(238, 242, 255, 0.96), rgba(224, 231, 255, 0.85));
}

.camera-tile strong {
    font-size: 1rem;
    color: var(--blue-deep);
}

.camera-tile .tile-meta {
    color: var(--muted);
    font-size: 0.82rem;
}

.severity-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.severity-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px currentColor;
    opacity: 0.25;
}

.sev-dusuk    { color: #075985; background: #e0f2fe; }
.sev-orta     { color: #92400e; background: #fef3c7; }
.sev-yuksek   { color: #be123c; background: #ffe4e6; }
.sev-kritik   { color: #ffffff; background: linear-gradient(135deg, #be123c, #7f1d1d); box-shadow: 0 6px 16px -8px rgba(190, 18, 60, 0.5); }

.confidence-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.confidence-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9);
}

.cot-block {
    margin: 8px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f0f9ff, #ecfeff);
    border: 1px dashed #bae6fd;
}

.cot-block summary {
    cursor: pointer;
    color: var(--blue-strong);
    font-weight: 700;
    list-style: none;
}

.cot-block summary::after { content: " ▾"; font-size: 0.8em; }
.cot-block[open] summary::after { content: " ▴"; }

.cot-list {
    margin: 10px 0 0;
    padding-left: 20px;
    color: #0f172a;
}

.cot-list li {
    margin-bottom: 4px;
    line-height: 1.55;
}

.cot-recommend {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(20, 184, 166, 0.1);
    color: #115e59;
    font-weight: 600;
    font-size: 0.86rem;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.learning-card {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f6faff);
    display: grid;
    gap: 4px;
}

.learning-card strong {
    font-size: 1.2rem;
    color: var(--blue-deep);
}

.learning-card span {
    color: var(--muted);
    font-size: 0.84rem;
}

.dot-online  { color: #047857; }
.dot-offline { color: #be123c; }
.dot-bakim   { color: #b45309; }
.dot-pasif   { color: #475569; }

/* Kamera modülü ek sınıflar */
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form select { padding: 6px 8px; }

label.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--blue-deep);
    background: rgba(186, 230, 253, 0.18);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(186, 230, 253, 0.5);
}

label.checkbox input { width: 18px; height: 18px; }

.section-subtitle {
    margin: 22px 0 10px;
    font-size: 1rem;
    color: var(--blue-strong);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

meter {
    width: 110px;
    height: 10px;
}

/* =====================================================================
   FCRSOFT v3 — marka teması, ikonlar, gruplu menü, dil seçici, RTL, yazdırma
   (Önceki kurallar üzerine yazar.)
   ===================================================================== */

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: -0.2em;
}
.icon-sm { width: 1em; height: 1em; vertical-align: -0.15em; }
.button .icon { margin-inline-end: 8px; }
.icon-button .icon { margin: 0; width: 1.3em; height: 1.3em; }

.muted { color: var(--muted); }
.field-hint { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Tema --- */
.app-body::before { opacity: 0.9; }
.app-body::after { background-image: linear-gradient(rgba(12, 102, 133, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 102, 133, 0.035) 1px, transparent 1px); }

.sidebar {
    color: #dbe7ef;
    background:
        radial-gradient(at 0% 0%, rgba(12, 102, 133, 0.55) 0%, transparent 55%),
        radial-gradient(at 100% 100%, rgba(0, 97, 127, 0.35) 0%, transparent 60%),
        linear-gradient(180deg, #0b1f2a 0%, #0d2a39 55%, #0b1f2a 100%);
    border-right: 1px solid rgba(149, 219, 254, 0.12);
    gap: 16px;
    padding: 18px 14px;
}

.brand-block { padding: 2px 4px 6px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.brand-badge img { width: 34px; height: 34px; display: block; }
.brand-text { display: grid; gap: 4px; min-width: 0; }
.brand-wordmark { display: block; height: 15px; width: auto; }
.brand small { color: rgba(219, 231, 239, 0.75); font-size: 0.74rem; letter-spacing: 0.02em; }

.nav-list { gap: 6px; padding-right: 0; margin-right: 0; padding-inline-end: 4px; margin-inline-end: -4px; }

.nav-group { border-radius: 12px; }
.nav-group > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 10px;
    color: rgba(219, 231, 239, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
.nav-group > summary span { flex: 1; }
.nav-chevron { transition: transform 160ms ease; opacity: 0.7; }
.nav-group[open] > summary .nav-chevron { transform: rotate(180deg); }
.nav-group-items { display: grid; gap: 2px; padding: 2px 0 8px; }

.nav-link {
    min-height: 40px;
    padding: 8px 12px;
    gap: 12px;
    border-radius: 10px;
    color: rgba(219, 231, 239, 0.82);
    font-weight: 600;
    font-size: 0.92rem;
}
.nav-link span {
    display: block;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: 1.25;
}
.nav-link .icon { color: rgba(149, 219, 254, 0.9); }
.nav-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.07); transform: none; }
.nav-link.active {
    color: #0b1f2a;
    background: linear-gradient(135deg, #ffffff 0%, #e6f3fa 100%);
    box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.6);
}
.nav-link.active span { background: none; color: inherit; }
.nav-link.active .icon { color: var(--ocean); }
.nav-link.active::before { left: -14px; background: linear-gradient(180deg, #95dbfe, #14a0a0); }

.user-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)); }
.sidebar-footer .button-soft { color: #e6f3fa; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }

.page-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 244, 255, 0.9) 100%);
    border-color: var(--line);
}
.page-header::before {
    background:
        radial-gradient(60% 100% at 100% 0%, rgba(149, 219, 254, 0.35), transparent 70%),
        radial-gradient(40% 100% at 0% 100%, rgba(12, 102, 133, 0.10), transparent 70%);
}
.page-header h1 { background: linear-gradient(135deg, #0b1f2a 0%, #0c6685 70%, #1a8fb4 100%); -webkit-background-clip: text; background-clip: text; }

.panel,
.stat-card,
.login-card,
.setup-panel > div,
.alert-tile { border-color: var(--line); background: linear-gradient(180deg, #ffffff, #fbfcff); }
.panel-heading { border-bottom-color: var(--line); }
.panel-heading h2 { color: var(--ink); }
.stat-card strong { color: var(--ink); }

.button-soft { color: var(--ocean-dark); background: linear-gradient(135deg, #f1f8fb, #e4f1f7); border: 1px solid #cfe3eb; }
.button-ghost { color: var(--ocean-dark); background: rgba(255, 255, 255, 0.7); border: 1px solid #cfe3eb; }
.button-primary { box-shadow: 0 14px 28px -12px rgba(12, 102, 133, 0.55); }
.button.disabled, .button[aria-disabled="true"], .button:disabled { opacity: 0.5; pointer-events: none; }
.role-chip { color: var(--ocean-dark); background: linear-gradient(135deg, #f1f8fb, #e4f1f7); border-color: #cfe3eb; }
.badge-info { color: #0c4a63; background: linear-gradient(135deg, #e4f1f7, #cbe6f1); }
.alert-info { color: #0c4a63; background: linear-gradient(135deg, #f1f8fb, #e4f1f7); border-color: #cfe3eb; }

input, select, textarea { border-color: #ccd6e3; }
input:hover, select:hover, textarea:hover { border-color: #7fb0c4; }
.table-wrap { border-color: var(--line); }
th, td { text-align: start; border-bottom-color: #e6ecf5; }
thead th { background: linear-gradient(180deg, #f8fbff, #eef3fb); color: #3f4a57; }
tbody tr:hover td { background: rgba(149, 219, 254, 0.16); }
.icon-link:hover { background: rgba(12, 102, 133, 0.09); }
.form-grid label, .login-card label, .report-filter label { color: #2f3b4a; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }

/* --- Dil seçici --- */
.lang-switcher { position: relative; }
.lang-switcher > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #cfe3eb;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.lang-switcher > summary::-webkit-details-marker { display: none; }
.lang-switcher > summary:hover { border-color: var(--ocean); }
.lang-switcher[open] > summary { border-color: var(--ocean); box-shadow: var(--ring); }
.flag { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.lang-menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 6px);
    z-index: 60;
    width: 232px;
    max-height: 340px;
    margin: 0;
    padding: 6px;
    overflow: auto;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}
.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}
.lang-menu a:hover { background: #eff4ff; }
.lang-menu a[aria-current="true"] { background: #e4f1f7; color: var(--ocean-dark); }

/* --- Mobil üst çubuk (koyu) --- */
@media (max-width: 900px) {
    .mobile-topbar {
        background: #0b1f2a;
        border-bottom: 1px solid rgba(149, 219, 254, 0.14);
    }
    .mobile-topbar .icon-button { color: #e6f3fa; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
    .mobile-brand { display: flex; align-items: center; flex: 1; }
    .mobile-brand img { height: 15px; width: auto; }
    .mobile-topbar .lang-switcher > summary { min-height: 40px; padding: 6px 10px; }
    .mobile-topbar .lang-switcher > summary span { display: none; }
    .page-header .header-actions .lang-switcher { display: none; }
}

/* --- Giriş sayfası --- */
.login-body { background: #0b1f2a; }
.login-body::before {
    background:
        radial-gradient(at 20% 18%, rgba(12, 102, 133, 0.75) 0%, transparent 48%),
        radial-gradient(at 82% 14%, rgba(149, 219, 254, 0.22) 0%, transparent 45%),
        radial-gradient(at 80% 84%, rgba(0, 97, 127, 0.6) 0%, transparent 52%),
        linear-gradient(135deg, #0b1f2a 0%, #0d2a39 100%);
}
.login-hero {
    background:
        linear-gradient(135deg, rgba(12, 102, 133, 0.55), rgba(11, 31, 42, 0.55) 70%),
        radial-gradient(at 0% 0%, rgba(149, 219, 254, 0.2), transparent 60%);
    border-color: rgba(149, 219, 254, 0.18);
}
.login-hero .brand-wordmark { height: 20px; }
.login-hero .brand-badge { width: 52px; height: 52px; }
.login-hero .brand-badge img { width: 40px; height: 40px; }
.login-hero h1 { background: linear-gradient(135deg, #ffffff 0%, #d7edf7 60%, #95dbfe 100%); -webkit-background-clip: text; background-clip: text; font-size: clamp(1.9rem, 3.2vw, 3rem); }
.login-card h2 { background: linear-gradient(135deg, #0b1f2a, #0c6685); -webkit-background-clip: text; background-clip: text; }
.login-card { border-color: rgba(149, 219, 254, 0.35); }
.login-card .login-lang { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.login-site-link { position: relative; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: #95dbfe; font-weight: 700; font-size: 0.9rem; }
.login-site-link:hover { color: #ffffff; }
.demo-box { color: var(--ocean-dark); background: linear-gradient(135deg, #f1f8fb, #e4f1f7); border-color: #cfe3eb; }

/* --- Liste, filtre, sayfalama, belge başlığı --- */
.panel-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-tools form { margin: 0; }
.list-filter { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) auto; margin-bottom: 16px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 22px; margin: 0; }
.doc-meta div { display: grid; gap: 3px; }
.doc-meta dt { color: var(--muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.doc-meta dd { margin: 0; font-weight: 600; word-break: break-word; }
.doc-notes { margin: 16px 0 0; color: var(--text-soft); }
.child-form { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
tfoot td { font-weight: 800; background: #f4f8fc; border-top: 1px solid var(--line-strong); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #e4f1f7; color: var(--ocean-dark); font-size: 0.78rem; font-weight: 700; }
.kpi-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.num { text-align: end; font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 999px; background: #e4ecf5; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad-primary); }

/* --- Barkod / QR etiketleri --- */
.label-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.label-card { display: grid; justify-items: center; gap: 6px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: #ffffff; text-align: center; break-inside: avoid; }
.label-card strong { font-size: 0.95rem; }
.label-card small { color: var(--muted); }
.label-card canvas { max-width: 100%; height: auto; }
.scan-box { display: grid; gap: 12px; }
.scan-box video { display: none; width: 100%; max-width: 420px; border-radius: 12px; background: #000; }
.scan-box video.active { display: block; }
.scan-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.scan-row label { flex: 1 1 260px; }

/* --- İzlenebilirlik ağacı --- */
.trace-tree, .trace-tree ul { list-style: none; margin: 0; padding: 0; }
.trace-tree ul { margin-inline-start: 18px; padding-inline-start: 18px; border-inline-start: 2px solid #cfe3eb; }
.trace-node { position: relative; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; }
.trace-node.current { border-color: var(--ocean); box-shadow: var(--ring); }
.trace-node strong { display: block; }
.trace-node small { color: var(--muted); }

/* --- Yazdırma --- */
.print-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--ocean); }
.print-brand { display: flex; align-items: center; gap: 10px; }
.print-meta { text-align: end; }
.print-meta h1 { margin: 0; font-size: 1.3rem; }
.print-meta span { color: var(--muted); font-size: 0.85rem; }
.print-actions { margin-top: 18px; }
.print-mode { background: #ffffff; }
.print-mode::before, .print-mode::after { display: none; }
.print-mode .panel, .print-mode .stat-card { box-shadow: none; animation: none; backdrop-filter: none; }
.print-mode table { min-width: 0; }
.print-mode th, .print-mode td { white-space: normal; }

@media print {
    body { background: #ffffff !important; }
    .sidebar, .mobile-topbar, .page-header .header-actions, .sidebar-backdrop, .no-print, .actions, .form-actions, .lang-switcher, .panel-tools, form.child-form, .list-filter, .pagination, .alert { display: none !important; }
    .app-shell { display: block; }
    .main-content { padding: 0; }
    .app-body::before, .app-body::after { display: none; }
    .panel, .stat-card, .page-header { box-shadow: none !important; border-color: #cfd6df !important; background: #ffffff !important; animation: none !important; backdrop-filter: none !important; break-inside: avoid; }
    .page-header { padding: 0 0 12px; border: 0; }
    .page-header h1 { color: #0b1f2a; -webkit-text-fill-color: #0b1f2a; }
    .table-wrap { overflow: visible; border: 1px solid #cfd6df; }
    table { min-width: 0; font-size: 0.78rem; }
    th, td { white-space: normal; padding: 6px 8px; }
    a { color: inherit; }
}

/* --- Sağdan sola diller (Arapça, İbranice) --- */
[dir="rtl"] .sidebar { border-right: 0; border-left: 1px solid rgba(149, 219, 254, 0.12); box-shadow: -18px 0 60px -28px rgba(3, 32, 60, 0.6); }
[dir="rtl"] .nav-link.active::before { left: auto; right: -14px; border-radius: 4px 0 0 4px; }
[dir="rtl"] .stat-card::after { left: auto; right: 0; border-radius: 4px 0 0 4px; }
[dir="rtl"] .stat-card::before { inset: auto auto -60% -30%; }
[dir="rtl"] .cot-list { padding-left: 0; padding-right: 20px; }
@media (max-width: 900px) {
    [dir="rtl"] .sidebar { inset: 0 0 0 auto; transform: translateX(105%); }
    [dir="rtl"] .sidebar.open { transform: translateX(0); }
}

/* Harf aralığı ve büyük harfe çevirme: bitişik yazılarda (Arapça, İbranice) ve Hint/CJK yazılarında kapatılır */
:lang(ar), :lang(he), :lang(hi), :lang(ja), :lang(ko), :lang(zh) { letter-spacing: 0; }
:lang(ar) .eyebrow, :lang(he) .eyebrow, :lang(hi) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow, :lang(zh) .eyebrow,
:lang(ar) thead th, :lang(he) thead th, :lang(hi) thead th, :lang(ja) thead th, :lang(ko) thead th, :lang(zh) thead th,
:lang(ar) .nav-group > summary, :lang(he) .nav-group > summary, :lang(hi) .nav-group > summary, :lang(ja) .nav-group > summary, :lang(ko) .nav-group > summary, :lang(zh) .nav-group > summary,
:lang(ar) .doc-meta dt, :lang(he) .doc-meta dt, :lang(hi) .doc-meta dt, :lang(ja) .doc-meta dt, :lang(ko) .doc-meta dt, :lang(zh) .doc-meta dt,
:lang(ar) .section-subtitle, :lang(he) .section-subtitle, :lang(hi) .section-subtitle, :lang(ja) .section-subtitle, :lang(ko) .section-subtitle, :lang(zh) .section-subtitle {
    letter-spacing: 0;
    text-transform: none;
}
:lang(ar) .page-header h1, :lang(he) .page-header h1 { line-height: 1.25; }

@media (max-width: 1180px) {
    .kpi-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .kpi-grid.five, .list-filter { grid-template-columns: minmax(0, 1fr); }
    .pagination { flex-wrap: wrap; justify-content: center; }
}

pre.code-sample { margin: 0 0 6px; padding: 14px; overflow: auto; border-radius: 12px; background: #0b1f2a; color: #d7edf7; font-size: 0.82rem; line-height: 1.5; white-space: pre-wrap; word-break: break-all; }
.audit-payload { max-width: 520px; margin: 6px 0 0; white-space: pre-wrap; word-break: break-all; font-size: 0.78rem; }
code { padding: 2px 6px; border-radius: 6px; background: #eef3fb; font-size: 0.85em; }

/* RTL: sayı + birim / para birimi değerleri mantıksal sırada (soldan sağa) gösterilir */
[dir="rtl"] .stat-card strong { direction: ltr; unicode-bidi: isolate; text-align: right; }

/* Rapor yazdırma: geniş tablolar için yatay A4 */
@page land { size: A4 landscape; margin: 10mm; }
@page { size: A4; margin: 12mm; }
.print-landscape .print-main { page: land; }

/* Dil menüsü: başlık kutusunun altında kesilmesin, kartların üstünde açılsın; 15 dil iki sütunda kaydırmasız görünür */
/* z-index düşük tutulur: mobilde menü açıkken .sidebar (20) ve .sidebar-backdrop (15) bu başlığın
   üstünde kalmalı (2026-09-27 önce 30 idi, menü açıkken başlık hiç kaybolmuyordu) */
.page-header { overflow: visible; z-index: 5; }
.page-header::before { border-radius: inherit; }
.lang-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    width: min(400px, calc(100vw - 24px));
    max-height: none;
    overflow: visible;
    z-index: 200;
}
.lang-switcher[open] { z-index: 200; }
.lang-menu li { min-width: 0; }
.lang-menu a { white-space: nowrap; }
.lang-menu a span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .lang-menu { grid-template-columns: minmax(0, 1fr); } }

/* Ayarlar formu: tam satır yayılan alanlar */
.form-grid .span-all { grid-column: 1 / -1; }
.settings-locale-note { display: grid; gap: 10px; }
.settings-locale-note .field-hint { margin: 0; }

/* Güvenlik: hesap ve güvenlik merkezi */
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.backup-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 14px; }
.backup-codes code { padding: 8px 10px; text-align: center; font-size: 0.95rem; letter-spacing: 0.06em; }
.totp-setup { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.totp-setup .label-card { flex: none; }
.totp-secret { display: inline-block; padding: 8px 12px; font-size: 1rem; letter-spacing: 0.08em; word-break: break-all; }
a.user-card { color: inherit; text-decoration: none; }
a.user-card:hover { filter: brightness(1.12); }
.logout-form { margin: 0; }
.login-secondary { margin-top: 10px; }

/* =====================================================================================================
 * Demo sitesi + paket kartları (app/modules/demo_site.php, app/modules/packages.php)
 * fcrsoft.com tasarım dili: açık zemin, cam başlık, ink → ocean gradyan hero, ince çizgili 2xl kartlar.
 * 2026 CSS: container queries, cross-document view transitions, scroll-driven reveal, @starting-style,
 * color-mix(), text-wrap: balance/pretty, interpolate-size (SSS), :has(). Eski tarayıcılar sade görünüme düşer.
 * ===================================================================================================== */

.site-body {
    --site-max: 1200px;
    --site-line: color-mix(in oklab, var(--line) 70%, transparent);
    --site-card: #fff;
    --site-low: #f1f5fc;
    --site-ink-2: #3c4a5a;
    display: flex; flex-direction: column; min-height: 100vh;
    background: var(--bg); color: var(--text);
    interpolate-size: allow-keywords;
}
.site-body h1, .site-body h2, .site-body h3 { text-wrap: balance; letter-spacing: -0.01em; }
.site-body p { text-wrap: pretty; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* --- Header (cam) --- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--site-line); }
.site-header-inner { display: flex; align-items: center; gap: 20px; width: min(var(--site-max), calc(100% - 32px)); margin: 0 auto; padding: 12px 0; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; text-decoration: none; }
.site-brand img:first-child { width: 36px; height: 36px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.site-brand-word { height: 16px; width: auto; }
.site-brand-tag { padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ocean-dark); background: color-mix(in oklab, var(--ocean-soft) 45%, white); }
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: 0 0 auto; padding: 8px 11px; border-radius: 10px; color: var(--site-ink-2); text-decoration: none; font-size: 0.9rem; font-weight: 600; white-space: nowrap; transition: color 120ms, background 120ms; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ocean); background: color-mix(in oklab, var(--ocean) 8%, transparent); }
.site-nav-sep { flex: 0 0 1px; height: 18px; margin: 0 6px; background: var(--line-strong); }
.site-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* --- Ortak bant/düzen --- */
.site-main { flex: 1 0 auto; }
.site-flash { width: min(var(--site-max), calc(100% - 32px)); margin: 16px auto 0; }
.site-band { padding: clamp(48px, 7vw, 80px) 0; }
.site-band-alt { background: var(--site-low); border-block: 1px solid var(--site-line); }
.site-band-inner, .pkg-section-inner { width: min(var(--site-max), calc(100% - 32px)); margin: 0 auto; }
.site-narrow { width: min(820px, calc(100% - 32px)); }
.site-h2, .pkg-section-head h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--text); }
.site-band-inner > .site-h2 { margin-bottom: 28px; }
.site-body .eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ocean); }
.button-lg { min-height: 50px; padding: 12px 22px; font-size: 1rem; border-radius: 14px; }
.button-glass { color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.45); }
.button-glass:hover { background: rgba(255, 255, 255, 0.2); }
.button-light { color: var(--ink); background: #fff; border: 0; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5); }

/* --- Hero (ink → ocean gradyan) --- */
.site-hero { position: relative; overflow: clip; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(149, 219, 254, 0.28), transparent 60%), linear-gradient(135deg, var(--ink) 0%, var(--ocean-dark) 55%, var(--ocean) 100%); }
.site-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; width: min(var(--site-max), calc(100% - 32px)); margin: 0 auto; padding: clamp(44px, 7vw, 88px) 0; }
.site-hero .eyebrow { color: var(--ocean-soft); }
.site-hero h1 { margin: 0 0 16px; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; color: #fff; }
.site-hero-lead { margin: 0 0 26px; max-width: 58ch; font-size: clamp(1rem, 1.3vw, 1.12rem); color: #d4e8f2; }
.site-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 30px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.site-hero-stats li { display: grid; font-size: 0.85rem; color: #b8d6e4; }
.site-hero-stats strong { font-size: 1.7rem; line-height: 1.1; font-weight: 800; color: #fff; }
.browser-shot { display: block; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.browser-shot img { display: block; width: 100%; height: auto; }
.site-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 0.86rem; color: #b8d6e4; }
.site-breadcrumb a { color: #fff; text-decoration: none; }
.site-breadcrumb a:hover { text-decoration: underline; }

/* --- Nasıl çalışır --- */
.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: 20px; background: var(--site-card); border: 1px solid var(--site-line); box-shadow: var(--shadow-sm); }
.step-num { position: absolute; top: 18px; right: 20px; font-size: 2.6rem; font-weight: 800; line-height: 1; color: color-mix(in oklab, var(--ocean) 14%, white); }
.step-icon, .why-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px; color: var(--ocean); background: color-mix(in oklab, var(--ocean) 10%, white); }
.step h3, .why-item h3, .res-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text); }
.step p, .why-item p, .res-card p { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--muted); }

/* --- Paket bölümleri ve kartlar --- */
.pkg-section { padding: clamp(48px, 7vw, 80px) 0; scroll-margin-top: 72px; }
.pkg-section:nth-of-type(even) { background: var(--site-low); border-block: 1px solid var(--site-line); }
.pkg-section-head { max-width: 720px; margin-bottom: 28px; }
.pkg-section-head p:not(.eyebrow) { margin: 0; font-size: 1rem; color: var(--muted); }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.pkg-card { container-type: inline-size; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 20px; background: var(--site-card, #fff); color: var(--text); border: 1px solid var(--site-line, var(--line)); box-shadow: 0 1px 2px rgba(11, 31, 42, 0.04), 0 12px 32px -20px rgba(11, 31, 42, 0.22); transition: transform 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms, border-color 220ms; }
.pkg-card:hover { border-color: color-mix(in oklab, var(--ocean) 35%, var(--line)); box-shadow: 0 2px 4px rgba(11, 31, 42, 0.05), 0 26px 50px -24px rgba(12, 102, 133, 0.38); }
.pkg-card.is-current { border-color: var(--ocean); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ocean) 22%, transparent); }
.pkg-card.is-roadmap .pkg-shot-empty { background: linear-gradient(135deg, #3c4a5a, #6b7a8c); }
.pkg-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--ink), var(--ocean)); border-bottom: 1px solid var(--site-line, var(--line)); }
.pkg-shot-bar { position: absolute; inset: 0 0 auto; z-index: 1; display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; background: rgba(248, 249, 255, 0.94); border-bottom: 1px solid rgba(11, 31, 42, 0.08); }
.pkg-shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d8dee8; }
.pkg-shot-bar i:first-child { background: #ff6b6b; } .pkg-shot-bar i:nth-child(2) { background: #ffc24b; } .pkg-shot-bar i:nth-child(3) { background: #3fcf8e; }
.pkg-shot-bar span { margin-inline-start: 8px; padding: 1px 10px; border-radius: 6px; font-size: 0.64rem; color: #6b7684; background: #eef1f6; }
.browser-shot .pkg-shot-bar { position: static; height: 30px; }
.pkg-shot img { display: block; width: 100%; height: 100%; padding-top: 24px; object-fit: cover; object-position: top left; }
.pkg-shot-empty { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, 0.75); }
.pkg-shot-empty .icon { width: 44px; height: 44px; }
.pkg-body { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; padding: 18px 20px 20px; }
.pkg-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ocean); }
.pkg-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--ocean); background: color-mix(in oklab, var(--ocean) 10%, white); }
.pkg-badge-warn, .pkg-badge-live { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; letter-spacing: 0.02em; text-transform: none; }
.pkg-badge-warn { color: #92400e; background: #fef3c7; }
.pkg-badge-live { color: #065f46; background: #d1fae5; }
.pkg-body h3 { margin: 0; font-size: 1.2rem; line-height: 1.25; font-weight: 700; }
.pkg-body h3 a { color: var(--text); text-decoration: none; }
.pkg-body h3 a::after { content: ""; position: absolute; inset: 0; }
.pkg-card { position: relative; }
.pkg-card:has(h3 a:hover) h3 a { color: var(--ocean); }
.pkg-desc { margin: 0; font-size: 0.94rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pkg-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 0.83rem; font-weight: 600; color: var(--site-ink-2, #3c4a5a); }
.pkg-facts li { display: inline-flex; align-items: center; gap: 5px; }
.pkg-facts .icon { color: var(--ocean); }
.pkg-cta { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.pkg-cta .button { flex: 1 1 auto; justify-content: center; }
.pkg-cta .button-ghost { flex: 0 0 auto; }
.pkg-note { font-size: 0.86rem; color: var(--muted); }
.pkg-note-light { color: #d4e8f2; }

/* Öne çıkan (Enterprise) kart: geniş alanda yatay — container query */
.pkg-card--featured { grid-column: 1 / -1; }
@supports (container-type: inline-size) {
    .pkg-section-enterprise .pkg-grid { container-type: inline-size; }
    @container (min-width: 760px) {
        .pkg-card--featured { flex-direction: row; }
        .pkg-card--featured .pkg-shot { flex: 0 0 58%; aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-inline-end: 1px solid var(--site-line, var(--line)); }
        .pkg-card--featured .pkg-body { justify-content: center; padding: 32px; gap: 14px; }
        .pkg-card--featured h3 { font-size: 1.7rem; }
        .pkg-card--featured .pkg-desc { -webkit-line-clamp: 4; line-clamp: 4; font-size: 1rem; }
        .pkg-card--featured .pkg-cta { margin-top: 8px; }
    }
}

/* --- Neden FCRSOFT / kaynaklar / modüller --- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.why-item { padding: 24px; border-radius: 20px; background: var(--site-card); border: 1px solid var(--site-line); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.res-grid-5 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.res-card { display: flex; flex-direction: column; padding: 24px; border-radius: 20px; text-decoration: none; background: var(--site-card); border: 1px solid var(--site-line); transition: transform 200ms, border-color 200ms, box-shadow 200ms; }
.res-card:hover { border-color: color-mix(in oklab, var(--ocean) 35%, var(--line)); box-shadow: var(--shadow-md); }
.res-card:hover h3 { color: var(--ocean); }
.res-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font-size: 0.85rem; font-weight: 700; color: var(--ocean); }
.module-groups { columns: 3 300px; column-gap: 16px; }
.module-group { break-inside: avoid; margin: 0 0 16px; padding: 20px; border-radius: 20px; background: var(--site-card); border: 1px solid var(--site-line); }
.module-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ocean-dark); }
.module-group ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.module-group li { display: flex; gap: 12px; align-items: flex-start; }
.module-icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 9px; color: var(--ocean); background: color-mix(in oklab, var(--ocean) 9%, white); }
.module-group strong { display: block; font-size: 0.95rem; color: var(--text); }
.module-group li span:not(.module-icon) { display: block; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }

/* --- SSS (details yüksekliği interpolate-size ile yumuşak açılır) --- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: 16px; background: var(--site-card); border: 1px solid var(--site-line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 700; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: 0 0 auto; transition: transform 200ms; color: var(--ocean); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size 260ms ease, content-visibility 260ms allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* --- CTA bandı --- */
.site-cta { padding: clamp(44px, 6vw, 72px) 0; color: #fff; background: linear-gradient(90deg, var(--ink), var(--ocean-dark)); }
.site-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; width: min(var(--site-max), calc(100% - 32px)); margin: 0 auto; }
.site-cta h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; }
.site-cta p { margin: 0; color: #c9e2ee; }

/* --- Footer (açık, fcrsoft.com gibi) --- */
.site-footer { background: var(--site-low); border-top: 1px solid var(--site-line); color: var(--muted); }
.site-footer-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, 1fr)); gap: 32px; width: min(var(--site-max), calc(100% - 32px)); margin: 0 auto; padding: 56px 0 32px; }
.site-footer-brand p { margin: 14px 0 18px; max-width: 34ch; font-size: 0.92rem; }
.site-footer-col h2 { margin: 0 0 14px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.site-footer-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.site-footer-col a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.site-footer-col a:hover { color: var(--ocean); }
.site-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: min(var(--site-max), calc(100% - 32px)); margin: 0 auto; padding: 20px 0 28px; border-top: 1px solid var(--site-line); font-size: 0.82rem; }
.site-footer-langs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.site-footer-langs a { color: var(--muted); text-decoration: none; }
.site-footer-langs a[aria-current] { color: var(--ocean); font-weight: 700; }

/* --- Giriş penceresi (popup) — @starting-style ile açılış --- */
.login-modal { width: min(440px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 24px; background: transparent; overflow: visible;
    opacity: 0; transform: translateY(16px) scale(0.98);
    transition: opacity 200ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1), overlay 220ms allow-discrete, display 220ms allow-discrete; }
.login-modal[open] { opacity: 1; transform: none; }
@starting-style { .login-modal[open] { opacity: 0; transform: translateY(16px) scale(0.98); } }
.login-modal::backdrop { background: rgba(4, 14, 22, 0); transition: background 220ms, overlay 220ms allow-discrete, display 220ms allow-discrete; }
.login-modal[open]::backdrop { background: rgba(4, 14, 22, 0.6); }
@starting-style { .login-modal[open]::backdrop { background: rgba(4, 14, 22, 0); } }
.login-modal-card { position: relative; display: grid; gap: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 26px; border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.login-modal-card h2 { margin: 0; padding-inline-end: 40px; font-size: 1.35rem; }
.login-modal-card .muted { margin: 0; }
.login-modal-card .demo-accounts { display: flex; flex-direction: column; gap: 8px; }
.login-modal-card .demo-account-form[hidden] { display: none; }
.login-modal-close { position: absolute; top: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-strong); color: var(--text); cursor: pointer; }
.login-modal-manual summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--ocean-dark); }
.login-modal-manual form { display: grid; gap: 10px; margin-top: 10px; }

/* --- Panelde paket seçimi ve pano kısa yolları --- */
.demo-catalog.in-panel .pkg-section { padding: 18px 0; background: none; border: 0; }
.demo-catalog.in-panel .pkg-section-inner { width: 100%; }
.pkg-chip-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.pkg-shortcut { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--text); background: var(--surface-strong); border: 1px solid var(--line); font-weight: 600; font-size: 0.88rem; transition: transform 110ms, border-color 110ms; }
.pkg-shortcut span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg-shortcut .icon { flex: 0 0 auto; color: var(--ocean); }
.pkg-shortcut:active { transform: scale(0.97); }
@media (hover: hover) { .pkg-shortcut:hover { border-color: var(--ocean); } }

/* --- Giriş ekranı (JS'siz yedek akış): seçilen demo --- */
.pkg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pkg-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; font-size: 0.78rem; color: var(--text-soft); background: var(--surface-strong); border: 1px solid var(--line); text-decoration: none; }
.demo-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #cfe6f1; text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.flip-x { transform: scaleX(-1); }
.demo-hero-preview { display: block; width: 100%; height: auto; margin-top: 16px; border-radius: 14px; border: 1px solid rgba(149, 219, 254, 0.25); }
.demo-box-first { margin-top: 4px; margin-bottom: 16px; }

/* --- Duyarlı --- */
@media (max-width: 1080px) {
    .site-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .site-header-inner { flex-wrap: wrap; gap: 8px 12px; padding: 10px 0 6px; }
    .site-nav { order: 3; flex-basis: 100%; margin-inline: -6px; }
    .site-header-actions { margin-inline-start: auto; }
    .site-hide-sm { display: none; }
    .site-header-actions .lang-switcher summary span { display: none; }
    .site-hero-inner { grid-template-columns: minmax(0, 1fr); }
    .browser-shot { transform: none; }
    .step-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .site-brand-word { height: 13px; }
    .site-brand-tag { display: none; }
    .site-header-inner { flex-wrap: wrap; }
    .site-header-actions .lang-switcher summary { padding: 6px 8px; }
    .site-brand img:first-child { width: 30px; height: 30px; }
    .site-header-actions .button { min-height: 38px; padding: 8px 12px; font-size: 0.86rem; }
    .site-header-actions .button .icon { display: none; }
    .site-hero-actions .button { flex: 1 1 100%; justify-content: center; }
    .site-hero-stats { justify-content: space-between; }
    .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .pkg-grid { gap: 16px; }
}

/* --- Demo giriş kartı (popup ve login.php): solda paket, sağda rol kartları --- */
.login-modal { width: min(960px, calc(100% - 24px)); }
.lg-card { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); overflow: hidden; border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 40px 100px -30px rgba(4, 14, 22, 0.55); }
.login-modal .lg-card { max-height: calc(100dvh - 24px); }
.lg-aside { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px; color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(149, 219, 254, 0.3), transparent 60%), linear-gradient(150deg, var(--ink) 0%, var(--ocean-dark) 60%, var(--ocean) 100%); }
.lg-aside .eyebrow { color: var(--ocean-soft); margin: 0; }
.lg-aside h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; font-weight: 800; color: #fff; }
.lg-summary { margin: 0; font-size: 0.95rem; color: #d4e8f2; }
.lg-summary:empty { display: none; }
.lg-shot { margin: 6px 0 0; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6); }
.lg-shot .pkg-shot-bar { position: static; height: 24px; }
.lg-shot img { display: block; width: 100%; height: auto; }
.lg-points { display: grid; gap: 8px; margin: auto 0 0; padding: 14px 0 0; list-style: none; font-size: 0.86rem; color: #cfe6f1; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.lg-points li { display: flex; align-items: center; gap: 8px; }
.lg-points .icon { flex: 0 0 auto; color: #7fe0b8; }
.lg-change { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: #fff; text-decoration: none; }
.lg-change:hover { text-decoration: underline; }
.lg-main { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 30px; overflow-y: auto; }
.lg-main h3 { margin: 0; padding-inline-end: 44px; font-size: 1.25rem; font-weight: 800; color: var(--text); }
.lg-lead { margin: 0 0 4px; font-size: 0.92rem; color: var(--muted); }
.lg-roles { display: flex; flex-direction: column; gap: 10px; }
.lg-role-form { margin: 0; }
.lg-role-form[hidden] { display: none; }
.lg-role { --role: var(--ocean); display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: start; font: inherit; color: var(--text); cursor: pointer; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); transition: border-color 140ms, box-shadow 140ms, background 140ms; }
.lg-role-tesis_sorumlusu .lg-role { --role: #0f9f8f; }
.lg-role-kullanici .lg-role { --role: #4f46e5; }
.lg-role-bayi .lg-role { --role: #d97706; }
.lg-role:hover, .lg-role:focus-visible { border-color: var(--role); background: color-mix(in oklab, var(--role) 5%, white); box-shadow: 0 10px 24px -16px color-mix(in oklab, var(--role) 70%, transparent); outline: none; }
.lg-role:active { background: color-mix(in oklab, var(--role) 10%, white); }
.lg-role-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 13px; color: #fff; background: var(--role); box-shadow: 0 8px 18px -10px var(--role); }
.lg-role-text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.lg-role-text strong { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.lg-role-text em { padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em; color: #065f46; background: #d1fae5; }
.lg-role-text small { font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.lg-role-go { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; color: var(--role); background: color-mix(in oklab, var(--role) 10%, white); transition: transform 140ms; }
.lg-role:hover .lg-role-go { transform: translateX(3px); }
[dir="rtl"] .lg-role-go .icon, [dir="rtl"] .lg-role:hover .lg-role-go { transform: scaleX(-1); }
.lg-role:disabled { cursor: default; opacity: 0.55; }
.lg-role-form.is-loading .lg-role { opacity: 1; border-color: var(--role); background: color-mix(in oklab, var(--role) 7%, white); }
.lg-role-form.is-loading .lg-role-go { border: 2px solid color-mix(in oklab, var(--role) 25%, white); border-top-color: var(--role); background: none; animation: lg-spin 700ms linear infinite; }
.lg-role-form.is-loading .lg-role-go .icon { display: none; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.lg-manual { margin-top: 4px; border-radius: 14px; background: var(--site-low, #f1f5fc); border: 1px solid var(--line); }
.lg-manual summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: 0.9rem; font-weight: 700; color: var(--ocean-dark); }
.lg-manual summary::-webkit-details-marker { display: none; }
.lg-manual summary .icon:last-child { margin-inline-start: auto; transition: transform 160ms; }
.lg-manual[open] summary .icon:last-child { transform: rotate(180deg); }
.lg-manual-form { display: grid; gap: 10px; padding: 0 14px 14px; }
.lg-manual-form label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.login-modal .login-modal-close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; }
.lg-page { display: grid; place-items: center; padding: clamp(24px, 5vw, 56px) 16px; background: linear-gradient(180deg, var(--site-low, #f1f5fc), var(--bg)); }
.lg-card-page { width: min(1000px, 100%); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(11, 31, 42, 0.45); }
.lg-page > .alert { width: min(1000px, 100%); margin-bottom: 12px; }
@media (max-width: 760px) {
    .lg-card { grid-template-columns: minmax(0, 1fr); }
    .lg-aside { padding: 22px 22px 18px; gap: 8px; }
    .lg-shot, .lg-points { display: none; }
    .lg-main { padding: 22px; }
    .login-modal .lg-card { overflow-y: auto; }
    .login-modal .lg-card { position: relative; }
    .login-modal .lg-main { overflow: visible; position: static; }
    .lg-aside h2 { padding-inline-end: 40px; }
    .login-modal .login-modal-close { top: 14px; color: #fff; background: rgba(255, 255, 255, 0.15); }
    .lg-main h3 { padding-inline-end: 0; font-size: 1.1rem; }
}

/* --- Herkese açık SEO sayfaları: ücretsiz araçlar, rehberler, çözümler (app/modules/seo_render.php) --- */
.seo-hero-inner { position: relative; z-index: 1; width: min(var(--site-max), calc(100% - 32px)); margin: 0 auto; padding: clamp(30px, 5vw, 56px) 0 clamp(34px, 5vw, 60px); }
.seo-hero h1 { max-width: 22ch; }
.seo-hero .site-hero-lead { max-width: 70ch; margin-bottom: 0; }
.seo-hero .site-hero-actions { margin-top: 22px; }
.seo-wrap { width: min(var(--site-max), calc(100% - 32px)); margin: 0 auto; padding: clamp(28px, 4vw, 48px) 0 10px; }
.seo-band-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.seo-band-head .site-h2 { margin: 0; }

/* Hesaplayıcı */
.tool-shell { margin-top: calc(-1 * clamp(40px, 6vw, 70px)); position: relative; z-index: 2; }
.tool-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--site-line); box-shadow: 0 30px 70px -40px rgba(11, 31, 42, 0.45); }
.tool-inputs { padding: clamp(20px, 3vw, 32px); }
.tool-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tool-head h2, .tool-results h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.15rem; color: var(--text); }
.tool-currency { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.tool-currency select { width: auto; min-height: 38px; padding: 6px 10px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.tool-field { display: grid; gap: 6px; }
.tool-label { font-size: 0.86rem; font-weight: 600; color: var(--site-ink-2); }
.tool-control { display: flex; align-items: stretch; overflow: hidden; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; transition: border-color 120ms, box-shadow 120ms; }
.tool-control:focus-within { border-color: var(--ocean); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ocean) 18%, transparent); }
.tool-control input, .tool-control select { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 10px 12px; border: 0; outline: none; background: transparent; font: inherit; font-size: 1rem; font-weight: 600; color: var(--text); box-shadow: none; }
.tool-unit { display: flex; align-items: center; padding: 0 12px; font-size: 0.82rem; font-weight: 700; white-space: nowrap; color: var(--muted); background: var(--site-low); border-inline-start: 1px solid var(--line); }
.tool-privacy { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; font-size: 0.8rem; color: var(--muted); }
.tool-results { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 32px); background: linear-gradient(180deg, color-mix(in oklab, var(--ocean) 5%, white), var(--site-low)); border-inline-start: 1px solid var(--site-line); }
.tool-out { display: grid; gap: 8px; margin: 0; }
.tool-out > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--site-line); }
.tool-out dt { font-size: 0.88rem; color: var(--muted); }
.tool-out dd { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.tool-out dd small { margin-inline-start: 4px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.tool-out > div.is-hl { border-color: color-mix(in oklab, var(--ocean) 40%, var(--line)); background: color-mix(in oklab, var(--ocean) 6%, white); }
.tool-out > div.is-hl dd { font-size: 1.3rem; color: var(--ocean-dark); }
.tool-out > div.is-alert { border-color: #f59e0b; background: #fffbeb; }
.tool-out > div.is-alert dd { color: #b45309; }
.tool-table-wrap { overflow-x: auto; }
.tool-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 0.9rem; }
.tool-table th { padding: 4px 8px; text-align: start; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.tool-table td { padding: 4px; }
.tool-table input { width: 100%; min-height: 42px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; font-weight: 600; }
.tool-out-table td { padding: 10px 8px; background: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.tool-out-table tr.is-best td { color: #065f46; background: #ecfdf5; }
.quiz-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: q; }
.quiz-q { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; cursor: pointer; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; transition: border-color 120ms, background 120ms; }
.quiz-q input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ocean); }
.quiz-q:has(input:checked) { border-color: var(--ocean); background: color-mix(in oklab, var(--ocean) 6%, white); }
.quiz-none { margin: 0; padding: 14px; border-radius: 14px; background: #ecfdf5; color: #065f46; font-weight: 600; }
.quiz-results { display: grid; gap: 10px; }
.quiz-results h3 { margin: 0; font-size: 1rem; }
.quiz-cat { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--site-line); border-inline-start: 4px solid #f59e0b; }
.quiz-cat:first-of-type { border-inline-start-color: #ef4444; }
.quiz-cat h4 { margin: 0 0 6px; font-size: 0.98rem; }
.quiz-score { color: #f59e0b; letter-spacing: 2px; }
.quiz-cat p { margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); }
.quiz-cat a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--ocean); text-decoration: none; }
.water-out { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.water-out li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--site-line); border-inline-start: 4px solid #10b981; }
.water-out li.is-warn { border-inline-start-color: #f59e0b; }
.water-out li.is-crit { border-inline-start-color: #ef4444; background: #fef2f2; }
.water-name { font-size: 0.88rem; font-weight: 600; color: var(--site-ink-2); }
.water-out strong { font-variant-numeric: tabular-nums; }
.water-out em { padding: 2px 10px; border-radius: 999px; font-style: normal; font-size: 0.74rem; font-weight: 800; color: #065f46; background: #d1fae5; }
.water-out li.is-warn em { color: #92400e; background: #fef3c7; }
.water-out li.is-crit em { color: #991b1b; background: #fee2e2; }
.water-out small { grid-column: 1 / -1; font-size: 0.76rem; color: var(--muted); }
.water-overall { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 12px 14px; border-radius: 14px; background: #fff; font-weight: 700; }
.water-overall output { padding: 3px 12px; border-radius: 999px; }
.water-overall output.is-ok { color: #065f46; background: #d1fae5; } .water-overall output.is-warn { color: #92400e; background: #fef3c7; } .water-overall output.is-crit { color: #991b1b; background: #fee2e2; }

/* Satır içi reklam (hesap sonucunun altında) */
.seo-inline-ad { display: flex; gap: 14px; margin-top: auto; padding: 16px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--ink), var(--ocean-dark) 60%, var(--ocean)); }
.seo-inline-ad-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); }
.seo-inline-ad strong { display: block; font-size: 1rem; }
.seo-inline-ad p { margin: 4px 0 12px; font-size: 0.86rem; color: #d4e8f2; }
.seo-inline-ad-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-inline-ad .button-ghost { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); }

/* Makale */
.seo-article { max-width: 820px; margin: 28px 0 0; font-size: 1.02rem; line-height: 1.75; color: var(--text-soft); }
.seo-article.seo-wide { max-width: none; }
.seo-article h2 { margin: 34px 0 10px; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.3; color: var(--text); }
.seo-article > h2:first-child { margin-top: 0; }
.seo-article p { margin: 0 0 14px; }
.formula, .formula-list li { padding: 12px 16px; border-radius: 12px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.92rem; color: var(--ocean-dark); background: color-mix(in oklab, var(--ocean) 7%, white); border: 1px solid color-mix(in oklab, var(--ocean) 18%, white); }
.formula-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.check-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-inline-start: 28px; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 4px; top: 0; font-weight: 800; color: var(--emerald); }
.numbered-items { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: item; }
.numbered-items li { position: relative; padding: 18px 20px 18px 64px; border-radius: 18px; background: #fff; border: 1px solid var(--site-line); counter-increment: item; }
[dir="rtl"] .numbered-items li { padding: 18px 64px 18px 20px; }
.numbered-items li::before { content: counter(item); position: absolute; inset-inline-start: 18px; top: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-weight: 800; color: #fff; background: var(--grad-primary); }
.numbered-items h2 { margin: 0 0 4px; font-size: 1.08rem; }
.numbered-items p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.tool-callout { display: flex; align-items: center; gap: 14px; margin: 16px 0 22px; padding: 14px 18px; border-radius: 16px; text-decoration: none; color: var(--text); background: #fff; border: 1.5px solid color-mix(in oklab, var(--ocean) 30%, var(--line)); transition: box-shadow 140ms, border-color 140ms; }
.tool-callout:hover { border-color: var(--ocean); box-shadow: var(--shadow-md); }
.tool-callout .why-icon { flex: 0 0 auto; margin: 0; }
.tool-callout > span:nth-child(2) { display: grid; flex: 1 1 auto; }
.tool-callout small { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ocean); }
.tool-callout strong { font-size: 1rem; }
.seo-table { width: 100%; margin: 6px 0 8px; border-collapse: collapse; font-size: 0.94rem; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--site-line); }
.seo-table th, .seo-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--site-line); }
.seo-table thead th { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--site-low); }
.seo-table td a { font-weight: 700; color: var(--ocean-dark); text-decoration: none; }
.seo-table td small { display: block; font-style: italic; font-size: 0.78rem; color: var(--muted); }
.seo-kv th { width: 45%; font-weight: 600; color: var(--muted); }
.seo-kv td { font-weight: 800; color: var(--text); }
.seo-note { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 18px; font-size: 0.84rem; color: var(--muted); }
.seo-callout-note { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 0.95rem; }
.seo-callout-note .icon { flex: 0 0 auto; margin-top: 4px; }
.seo-ext { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ocean); }
.seo-updated { margin-top: 28px; font-size: 0.82rem; color: var(--muted); }
.seo-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.seo-benefits h2 { margin: 0 0 6px; font-size: 1.05rem; }
.seo-benefits p { margin: 0; color: var(--muted); }
.seo-shot { max-width: 980px; margin: 32px auto 0; }
.seo-shot .browser-shot { transform: none; }
.seo-hub-group { margin: 36px 0 0; }
.seo-hub-group:first-child { margin-top: 0; }
.seo-card h3 { font-size: 1.05rem; }
.seo-card p { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.seo-card-type { margin-bottom: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ocean); }
.seo-related { padding-bottom: 20px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.tpl-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--site-line); }
.tpl-card h2 { margin: 0; font-size: 1.1rem; }
.tpl-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tpl-cols { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 8px; padding: 0; list-style: none; }
.tpl-cols li { padding: 3px 8px; border-radius: 7px; font-size: 0.74rem; color: var(--text-soft); background: var(--site-low); border: 1px solid var(--line); }
.tpl-cols li.is-formula { color: #fff; background: var(--ocean); border-color: var(--ocean); }
.tpl-card .button { align-self: flex-start; margin-top: auto; }

/* Sayfa sonu sistem reklamı */
.seo-ad { padding: clamp(36px, 5vw, 60px) 0 clamp(40px, 5vw, 64px); background: var(--site-low); border-top: 1px solid var(--site-line); }
.seo-ad-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; width: min(var(--site-max), calc(100% - 32px)); margin: 0 auto; padding: clamp(24px, 4vw, 40px); border-radius: 24px; color: #fff; background: radial-gradient(600px 260px at 100% 0%, rgba(149, 219, 254, 0.3), transparent 60%), linear-gradient(135deg, var(--ink), var(--ocean-dark) 60%, var(--ocean)); }
.seo-ad-text { max-width: 640px; }
.seo-ad .eyebrow { color: var(--ocean-soft); }
.seo-ad-band h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; }
.seo-ad-band p { margin: 0; color: #d4e8f2; }
.seo-ad-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-ad-cards { width: min(var(--site-max), calc(100% - 32px)); margin: 34px auto 0; }
.seo-ad-cards .site-h2 { margin-bottom: 18px; }

@media (max-width: 900px) {
    .tool-card { grid-template-columns: minmax(0, 1fr); }
    .tool-results { border-inline-start: 0; border-top: 1px solid var(--site-line); }
    .tool-shell { margin-top: -28px; }
}
@media (max-width: 560px) {
    .seo-ad-actions .button { flex: 1 1 100%; justify-content: center; }
    .numbered-items li { padding: 16px 16px 16px 56px; }
    .seo-kv th { width: 52%; }
}

/* CTA katmanları: hero çipi, kişisel sonuç cümlesi, şablon kartı, alt çubuk, indirme penceresi */
.numbered-items + .seo-inline-ad + .numbered-items { counter-reset: none; }
.seo-article > .seo-inline-ad { margin: 22px 0 26px; }
.seo-wrap > .seo-inline-ad { margin: 8px 0 0; }
.seo-hook { font-size: 0.92rem !important; line-height: 1.55; color: #e6f3f8 !important; }
.seo-hook strong { display: inline; padding: 1px 7px; border-radius: 7px; font-size: inherit; color: #0b1f2a; background: #95dbfe; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seo-hero-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; padding: 8px 8px 8px 14px; border-radius: 999px; color: #e6f3f8; font-size: 0.9rem; font-weight: 600; text-decoration: none; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28); transition: background 140ms; }
.seo-hero-chip:hover { background: rgba(255, 255, 255, 0.18); }
.seo-hero-chip strong { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; color: var(--ocean-dark); background: #fff; }
.seo-hero-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25); }
.tpl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; }
.tpl-card .tpl-actions .button { margin-top: 0; }
.tpl-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--ocean); text-decoration: none; }
.tpl-auto:hover { text-decoration: underline; }
.seo-sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); color: #fff; background: linear-gradient(135deg, var(--ink), var(--ocean-dark)); box-shadow: 0 -8px 24px rgba(11, 31, 42, 0.18); }
.seo-sticky[hidden] { display: none; }
.seo-sticky-inner { display: flex; align-items: center; gap: 14px; width: min(var(--site-max), 100%); margin: 0 auto; }
.seo-sticky-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); }
.seo-sticky p { display: grid; flex: 1 1 auto; min-width: 0; margin: 0; }
.seo-sticky p strong { font-size: 0.95rem; }
.seo-sticky p span { font-size: 0.8rem; color: #cfe6f0; }
.seo-sticky .button { flex: 0 0 auto; color: var(--ocean-dark); background: #fff; }
.seo-sticky-close { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 0; border-radius: 8px; color: #fff; background: transparent; cursor: pointer; }
.seo-sticky-close:hover { background: rgba(255, 255, 255, 0.12); }
body.has-seo-sticky .site-footer { padding-bottom: 76px; }
.seo-dl-modal { width: min(460px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 22px; box-shadow: 0 30px 80px rgba(11, 31, 42, 0.3); }
.seo-dl-modal::backdrop { background: rgba(11, 31, 42, 0.5); }
.seo-dl-modal h2 { margin: 12px 0 6px; font-size: 1.3rem; }
.seo-dl-modal > p { margin: 0 0 14px; color: var(--muted); }
.seo-dl-close { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; }
.seo-dl-close button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--site-low); cursor: pointer; }
.seo-dl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) {
    .seo-sticky p span { display: none; }
    .seo-sticky-icon { display: none; }
    .seo-sticky .button { padding-inline: 14px; }
    .seo-hero-chip { border-radius: 16px; }
}

/* "FCRSOFT bunu sizin için otomatik yapar" kutusu */
.seo-auto { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 36px); margin: 36px 0 8px; padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: linear-gradient(135deg, #f1f8fb, #e4f1f7); border: 1px solid #cfe3eb; }
.seo-article .seo-auto { max-width: none; }
.seo-auto h2 { margin: 0 0 8px !important; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--text); }
.seo-auto-text > p { margin: 0 0 14px; color: var(--text-soft); }
.seo-auto-list { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.seo-auto-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--text); line-height: 1.5; }
.seo-auto-list .icon { flex: 0 0 auto; margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 7px; color: #fff; background: var(--ocean); }
.seo-auto-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-auto-shot .browser-shot { transform: none; }
@media (max-width: 900px) { .seo-auto { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .seo-auto-actions .button { flex: 1 1 100%; justify-content: center; } }

/* Daraltılmış yeni kayıt formu (crud collapse_form) */
.crud-form-toggle { margin: 0 0 18px; }
.crud-form-toggle > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.crud-form-toggle > summary::-webkit-details-marker { display: none; }
.crud-form-toggle[open] > summary { margin-bottom: 14px; }

/* Ücretsiz dış ticaret, lojistik, denizcilik ve üretim araçları (xtools.js) */
.xt-card .tool-inputs { min-width: 0; }
.xt-table th.is-calc, .xt-table td.is-calc { color: var(--ocean-dark); }
.xt-table td.is-calc { padding: 4px 8px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xt-table td.is-calc small { color: var(--muted); font-weight: 600; }
.xt-row-del { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.xt-row-del:hover { background: #fee2e2; color: #b91c1c; }
.xt-row-add { margin-top: 8px; }
.tool-check { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--site-ink-2); }
.tool-check input { width: 18px; height: 18px; accent-color: var(--ocean); }
.xt-viz canvas { width: 100%; height: auto; border-radius: 14px; background: #fff; border: 1px solid var(--site-line); }
.xt-hs { display: grid; gap: 10px; margin-top: 14px; }
.xt-hs-table { max-height: 460px; }
.xt-hs .tool-table-wrap { max-height: 460px; overflow-y: auto; border-radius: 12px; border: 1px solid var(--site-line); }
.xt-hs-table td small { color: var(--muted); }
.xt-code-out { margin-top: 14px; }
.xt-blno { display: grid; gap: 4px; margin: 10px 0 0; padding-inline-start: 22px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700; }
.xt-doc-form .tool-field.is-wide { grid-column: 1 / -1; }
.tool-control textarea { flex: 1 1 auto; min-width: 0; padding: 10px 12px; border: 0; outline: none; background: transparent; font: inherit; resize: vertical; }
.xt-doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.xt-doc-wrap { margin-top: 14px; overflow-x: auto; }
.xt-doc { min-width: 560px; padding: 22px; border-radius: 6px; background: #fff; color: #111827; border: 1px solid #cbd5e1; font-size: 0.82rem; box-shadow: var(--shadow-sm); }
.xt-doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #111827; }
.xt-doc-head h3 { margin: 0; font-size: 1rem; letter-spacing: 0.04em; }
.xt-doc-head p { margin: 0; font-family: ui-monospace, Consolas, monospace; }
.xt-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); border-top: 1px solid #cbd5e1; border-inline-start: 1px solid #cbd5e1; margin-bottom: 10px; }
.xt-doc-box { padding: 6px 8px; min-height: 48px; border-bottom: 1px solid #cbd5e1; border-inline-end: 1px solid #cbd5e1; }
.xt-doc-box small { display: block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; }
.xt-doc-table { width: 100%; margin-bottom: 10px; border-collapse: collapse; }
.xt-doc-table th, .xt-doc-table td { padding: 6px 8px; text-align: start; vertical-align: top; border: 1px solid #cbd5e1; }
.xt-doc-table th { font-size: 0.68rem; text-transform: uppercase; color: #64748b; background: #f8fafc; }
.xt-doc-stamp { display: inline-block; margin: 4px 0 10px; padding: 6px 12px; border: 2px solid #111827; font-weight: 800; letter-spacing: 0.06em; }
.xt-doc-foot { margin-top: 10px; font-size: 0.7rem; color: #94a3b8; text-align: end; }
.xt-check-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; }
.xt-check-progress progress { flex: 1 1 auto; height: 10px; accent-color: var(--ocean); }
.xt-check-title { margin: 18px 0 8px; font-size: 1rem; }
.xt-issues { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.xt-issues li { padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; }
.xt-issues li.is-bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.xt-issues li.is-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.xt-cons th[scope="row"] { font-size: 0.84rem; color: var(--site-ink-2); white-space: nowrap; }
.xt-cons tr[data-state="bad"] output { color: #b91c1c; font-weight: 800; }
.xt-cons tr[data-state="tol"] output, .xt-cons tr[data-state="empty"] output { color: #b45309; font-weight: 700; }
.xt-cons tr[data-state="ok"] output { color: #047857; font-weight: 700; }
.xt-cons tr[data-state="bad"] input { border-color: #fca5a5; background: #fef2f2; }
.xt-engine h2 { display: flex; align-items: center; gap: 8px; }
.xt-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.xt-links a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--site-line); background: var(--site-card); font-size: 0.86rem; font-weight: 600; color: var(--text); text-decoration: none; }
.xt-links a:hover { border-color: var(--ocean); color: var(--ocean-dark); }
.xt-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; margin-top: 28px; align-items: start; }
.xt-index-col { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: var(--site-card); border: 1px solid var(--site-line); box-shadow: 0 1px 2px rgb(11 31 42 / 4%); }
.xt-index-head { display: flex; align-items: center; gap: 12px; }
.xt-index-head .why-icon { margin: 0; flex: none; }
.xt-index-head h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.xt-index-head h3 a { color: var(--text); text-decoration: none; }
.xt-index-head h3 a:hover { color: var(--ocean); }
.xt-index-head small { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.xt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.xt-tiles a { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 100%; min-height: 44px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--site-line); background: color-mix(in oklab, var(--ocean) 4%, var(--site-card)); font-size: 0.84rem; font-weight: 600; line-height: 1.3; color: var(--text); text-decoration: none; transition: border-color 160ms, background 160ms, transform 160ms; }
.xt-tiles a .icon { flex: none; opacity: 0; color: var(--ocean); transition: opacity 160ms; }
.xt-tiles a:hover { border-color: color-mix(in oklab, var(--ocean) 45%, var(--line)); background: color-mix(in oklab, var(--ocean) 9%, var(--site-card)); color: var(--ocean-dark); transform: translateY(-1px); }
.xt-tiles a:hover .icon, .xt-tiles a:focus-visible .icon { opacity: 1; }
.xt-index-all { align-self: flex-start; margin-top: 2px; }
.seo-hub-group h2 small { font-size: 0.8em; font-weight: 600; color: var(--muted); }
@media print {
    body.xt-printing * { visibility: hidden; }
    body.xt-printing .xt-print-target, body.xt-printing .xt-print-target * { visibility: visible; }
    body.xt-printing .xt-print-target { position: absolute; inset: 0 auto auto 0; width: 100%; min-width: 0; border: 0; box-shadow: none; }
}
.xt-card.xt-mode-doc, .xt-card.xt-mode-hs, .xt-card.xt-mode-checklist, .xt-card.xt-mode-check, .xt-card.xt-mode-consistency { grid-template-columns: minmax(0, 1fr); }
.xt-card.xt-mode-doc .tool-results, .xt-card.xt-mode-hs .tool-results, .xt-card.xt-mode-checklist .tool-results, .xt-card.xt-mode-check .tool-results, .xt-card.xt-mode-consistency .tool-results { border-inline-start: 0; border-top: 1px solid var(--site-line); }
.seo-band-sub { margin: 28px 0 14px; font-size: 1.1rem; }

/* Ücretsiz araç: örnek hesaplama ve kullanım adımları */
.xt-example h2 { display: flex; align-items: center; gap: 8px; }
.xt-example h3 { margin: 22px 0 10px; font-size: 1.05rem; }
.xt-example-table { width: 100%; min-width: 0; max-width: 640px; table-layout: fixed; border-collapse: separate; border-spacing: 0; margin: 12px 0 4px; border: 1px solid var(--site-line); border-radius: 14px; overflow: hidden; background: var(--site-card); }
.xt-example-table th, .xt-example-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; padding: 10px 14px; text-align: start; font-size: 0.93rem; border-bottom: 1px solid var(--site-line); }
.xt-example-table tr:last-child th, .xt-example-table tr:last-child td { border-bottom: 0; }
.xt-example-table th { font-weight: 600; color: var(--muted); width: 55%; }
.xt-example-table td { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.xt-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: xtstep; }
.xt-steps li { position: relative; padding: 10px 14px 10px 48px; border-radius: 12px; background: color-mix(in oklab, var(--ocean) 5%, var(--site-card)); border: 1px solid var(--site-line); line-height: 1.5; counter-increment: xtstep; }
.xt-steps li::before { content: counter(xtstep); position: absolute; inset-inline-start: 12px; top: 9px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.8rem; font-weight: 800; color: #fff; background: var(--ocean); }
[dir="rtl"] .xt-steps li { padding: 10px 48px 10px 14px; }
.xt-example-table tbody tr td, .xt-example-table tbody tr:hover td { background: none; }
.xt-example-table tbody tr:nth-child(even) th, .xt-example-table tbody tr:nth-child(even) td { background: color-mix(in oklab, var(--ocean) 4%, var(--site-card)); }

/* =====================================================================================================
 * Yeni nesil AI — ERP (AI Merkezi, modül sayfası, soru alanı, yanıt, taslaklar, ayarlar) ve vitrin (/ai)
 * ===================================================================================================== */
.ai-hero-panel { background: linear-gradient(135deg, color-mix(in oklab, var(--ocean) 7%, var(--surface)), var(--surface) 60%); }
.ai-platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.ai-platform { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 160ms, box-shadow 160ms, transform 160ms; }
.ai-platform:hover, .ai-platform.is-active { border-color: color-mix(in oklab, var(--ocean) 45%, var(--line)); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ai-platform .why-icon { margin: 0; }
.ai-platform small { color: var(--muted); line-height: 1.45; }
.ai-platform em { margin-top: auto; font-style: normal; font-size: 0.8rem; font-weight: 700; color: var(--ocean); }
.ai-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.74rem; color: var(--muted); }
.ai-flow span { padding: 2px 8px; border-radius: 999px; background: color-mix(in oklab, var(--ocean) 8%, var(--surface)); }
.ai-flow .icon { width: 12px; height: 12px; opacity: 0.6; }
.ai-system-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.ai-system { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.ai-system small { display: block; color: var(--muted); font-size: 0.78rem; }
.ai-system:hover, .ai-system.is-active { border-color: var(--ocean); }
.ai-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.ai-cat { display: flex; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.ai-cat .why-icon { margin: 0; flex: none; }
.ai-cat small { display: block; margin: 4px 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.ai-cat em { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--ocean); }
.ai-cat:hover, .ai-cat.is-active { border-color: var(--ocean); box-shadow: var(--shadow-md); }
.ai-search { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-search input { min-width: 220px; }
.ai-mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px; margin-bottom: 12px; }
.ai-mod-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 140ms, background 140ms; }
.ai-mod-card:hover { border-color: var(--ocean); background: color-mix(in oklab, var(--ocean) 5%, var(--surface)); }
.ai-mod-card.is-locked { opacity: 0.62; }
.ai-mod-no { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 11px; font-size: 0.78rem; font-weight: 800; color: var(--ocean); background: color-mix(in oklab, var(--ocean) 10%, var(--surface)); font-variant-numeric: tabular-nums; }
.ai-mod-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ai-mod-body strong { font-size: 0.9rem; line-height: 1.3; }
.ai-mod-body small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-lock { color: var(--muted); }
.ai-mod-hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; background: linear-gradient(135deg, color-mix(in oklab, var(--ocean) 9%, var(--surface)), var(--surface) 65%); }
.ai-mod-hero-main { max-width: 860px; }
.ai-mod-hero h2 { margin: 2px 0 6px; font-size: 1.6rem; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.ai-chip.is-ok { color: #0b7a4b; border-color: color-mix(in oklab, #0b7a4b 35%, var(--line)); background: color-mix(in oklab, #10b981 8%, var(--surface)); }
.ai-chip.is-local { color: #9a5b00; border-color: color-mix(in oklab, #f59e0b 40%, var(--line)); background: color-mix(in oklab, #f59e0b 9%, var(--surface)); }
.ai-locked { border: 1px dashed color-mix(in oklab, var(--ocean) 40%, var(--line)); }
.ai-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .ai-layout { grid-template-columns: 1fr; } }
.ai-ask-form { display: grid; gap: 10px; }
.ai-ask-form textarea { width: 100%; min-height: 110px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); font: inherit; font-size: 1rem; line-height: 1.5; resize: vertical; background: var(--surface); }
.ai-ask-form textarea:focus { outline: 2px solid color-mix(in oklab, var(--ocean) 45%, transparent); border-color: var(--ocean); }
.ai-ask-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai-upload { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 0.86rem; }
.ai-suggest { display: grid; gap: 6px; margin-top: 14px; }
.ai-suggest form { margin: 0; }
.ai-suggest-chip { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in oklab, var(--ocean) 4%, var(--surface)); color: var(--text); font: inherit; font-size: 0.88rem; text-align: start; cursor: pointer; }
.ai-suggest-chip:hover:not(:disabled) { border-color: var(--ocean); color: var(--ocean-dark); }
.ai-suggest-chip:disabled { cursor: not-allowed; opacity: 0.6; }
.ai-sources { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ai-sources li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name spark" "val spark"; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.ai-sources a { grid-area: name; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.ai-sources a small { color: var(--muted); font-size: 0.76rem; }
.ai-sources a:hover strong { color: var(--ocean); }
.ai-src-val { grid-area: val; font-size: 0.82rem; color: var(--muted); }
.ai-src-val em { font-style: normal; font-weight: 700; }
.ai-src-val em.up { color: #0b7a4b; }
.ai-src-val em.down { color: #b42318; }
.ai-spark { grid-area: spark; width: 120px; height: 36px; color: var(--ocean); }
.ai-answer { border: 1px solid color-mix(in oklab, var(--ocean) 25%, var(--line)); }
.ai-answer-q { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: color-mix(in oklab, var(--ocean) 7%, var(--surface)); font-weight: 600; }
.ai-answer-body h2, .ai-answer-body h3, .ai-answer-body h4 { margin: 18px 0 8px; font-size: 1.08rem; }
.ai-answer-body h2:first-child, .ai-answer-body h3:first-child { margin-top: 0; }
.ai-answer-body ul, .ai-answer-body ol { margin: 0 0 10px; padding-inline-start: 20px; line-height: 1.6; }
.ai-answer-body p { line-height: 1.6; }
.ai-answer-body .ai-table table { min-width: 0; }
.ai-answer-body .ai-table th, .ai-answer-body .ai-table td { white-space: normal; }
.ai-note { padding: 10px 12px; border-inline-start: 3px solid var(--ocean); border-radius: 8px; background: color-mix(in oklab, var(--ocean) 5%, var(--surface)); color: var(--muted); font-size: 0.88rem; }
.ai-code { padding: 12px; border-radius: 10px; background: #0b1f2a; color: #e6f1f8; overflow-x: auto; font-size: 0.82rem; }
.ai-answer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.ai-answer-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ai-rate { display: flex; gap: 6px; margin-inline-start: auto; }
.ai-history { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ai-history li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ai-history small { color: var(--muted); white-space: nowrap; }
.ai-provider-grid { display: grid; gap: 10px; }
.ai-provider { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 14px; }
.ai-provider summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.ai-provider summary::-webkit-details-marker { display: none; }
.ai-provider summary .why-icon { margin: 0; }
.ai-provider summary > span:nth-child(2) { flex: 1; }
.ai-provider summary small { display: block; color: var(--muted); }
.ai-provider[open] { padding-bottom: 14px; }
.ai-provider.is-ready { border-color: color-mix(in oklab, #10b981 40%, var(--line)); }
.ai-steps-list { line-height: 1.7; }

/* Vitrin /ai */
.site-nav-ai { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ocean) !important; }
.nav-new { padding: 1px 6px; border-radius: 999px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--ocean), #7c3aed); }
/* AI vitrini: koyu, parlayan kahraman alanı (beyaz metin okunur) */
.ai-hero { isolation: isolate; background: radial-gradient(760px 420px at 92% 0%, rgb(168 85 247 / 42%), transparent 62%), radial-gradient(680px 460px at 0% 100%, rgb(14 165 233 / 34%), transparent 60%), radial-gradient(520px 300px at 55% 40%, rgb(16 185 129 / 12%), transparent 70%), linear-gradient(135deg, #070d1c 0%, #16113f 46%, #0b3b58 100%); }
.ai-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(900px 500px at 70% 30%, #000, transparent 75%); }
.ai-hero .eyebrow { color: #c4b5fd; }
.ai-hero h1 { background: linear-gradient(100deg, #fff 30%, #c7d2fe 62%, #67e8f9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-hero .site-hero-lead { color: #d6def5; }
.ai-hero .site-hero-stats li { color: #b9c3e6; }
.ai-hero .site-hero-stats strong { background: linear-gradient(135deg, #fff, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-hero .button-primary { background: linear-gradient(135deg, #7c3aed, #0891b2); border-color: transparent; box-shadow: 0 10px 30px rgb(124 58 237 / 35%); }
.ai-hero .button-primary:hover { filter: brightness(1.08); }
.ai-flowline { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.ai-flowline li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--site-line, var(--line)); background: var(--site-card, var(--surface)); font-weight: 600; font-size: 0.9rem; }
.ai-flowline li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.78rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #7c3aed, #0891b2); }
.ai-flowline li:nth-child(n+5) span { background: linear-gradient(135deg, #0891b2, #059669); }
.ai-proof { margin-top: 10px; }
/* Renkli AI kartları: her platform/sistem/bölüm kendi rengiyle (--c) */
.ai-offer-card { --c: var(--ocean); position: relative; overflow: hidden; padding: 0; border-color: color-mix(in oklab, var(--c) 22%, var(--site-line)); background: linear-gradient(180deg, color-mix(in oklab, var(--c) 7%, var(--site-card)) 0%, var(--site-card) 55%); box-shadow: 0 1px 2px rgb(11 31 42 / 5%); }
.ai-offer-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; z-index: 2; background: linear-gradient(90deg, var(--c), color-mix(in oklab, var(--c) 40%, #67e8f9)); }
.ai-offer-card:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--c) 55%, var(--site-line)); box-shadow: 0 22px 44px -18px color-mix(in oklab, var(--c) 55%, transparent); }
.ai-offer-shot { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, color-mix(in oklab, var(--c) 30%, #0b1020), #0b1020); }
.ai-offer-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, color-mix(in oklab, var(--c) 55%, transparent) 100%); mix-blend-mode: multiply; }
.ai-offer-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 500ms ease; }
.ai-offer-card:hover .ai-offer-shot img { transform: scale(1.04); }
.ai-offer-badge { position: absolute; z-index: 1; inset-inline-end: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; color: #fff; background: color-mix(in oklab, var(--c) 85%, #000); box-shadow: 0 6px 16px rgb(0 0 0 / 25%); }
.ai-offer-body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 0 22px 22px; }
.ai-offer-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: -25px 0 12px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in oklab, var(--c) 55%, #67e8f9)); box-shadow: 0 10px 24px -8px color-mix(in oklab, var(--c) 70%, transparent), 0 0 0 4px var(--site-card); position: relative; z-index: 1; }
.ai-proof-card .ai-offer-icon { margin-top: 0; box-shadow: 0 10px 24px -8px color-mix(in oklab, var(--c) 70%, transparent); }
.ai-proof-card { border-top: 3px solid var(--c); background: linear-gradient(180deg, color-mix(in oklab, var(--c) 6%, var(--site-card)), var(--site-card) 70%); }
.ai-offer-kind { margin-bottom: 4px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); }
.ai-offer-body h3 { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.3; color: var(--text); }
.ai-offer-body p { margin: 0 0 14px; color: var(--site-ink-2, var(--muted)); line-height: 1.55; }
.ai-offer-body .res-more { margin-top: auto; color: var(--c); }
.ai-index-col { border-top: 3px solid var(--c); }
.ai-index-col .why-icon { color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in oklab, var(--c) 55%, #67e8f9)); }
.ai-index-col .xt-index-head a { color: var(--text); }
.ai-index-col .xt-tiles a { background: color-mix(in oklab, var(--c) 5%, var(--site-card)); }
.ai-index-col .xt-tiles a:hover { border-color: color-mix(in oklab, var(--c) 50%, var(--line)); background: color-mix(in oklab, var(--c) 11%, var(--site-card)); color: var(--c); }
.ai-index-col .xt-tiles a .icon { color: var(--c); }

/* Ziyaretçi soru alanı */
.ai-ask-site { --c: #7c3aed; display: grid; gap: 14px; padding: clamp(18px, 2.4vw, 26px); border-radius: 24px; background: var(--site-card); border: 1px solid color-mix(in oklab, var(--c) 25%, var(--site-line)); box-shadow: 0 24px 60px -30px color-mix(in oklab, var(--c) 60%, transparent); scroll-margin-top: 90px; }
.ai-ask-band .ai-ask-site { --c: inherit; }
.ai-ask-site-head { display: flex; align-items: center; gap: 12px; }
.ai-ask-site-head strong { display: block; font-size: 1.15rem; }
.ai-ask-site-head small { color: var(--site-ink-2, var(--muted)); }
.ai-ask-site-orb { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: conic-gradient(from 200deg, #7c3aed, #0891b2, #10b981, #7c3aed); box-shadow: 0 0 0 4px color-mix(in oklab, #7c3aed 18%, transparent), 0 8px 26px rgb(124 58 237 / 45%); animation: ai-orb 6s linear infinite; }
.ai-ask-site-orb .icon { animation: ai-orb 6s linear infinite reverse; }
@keyframes ai-orb { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-ask-site-orb, .ai-ask-site-orb .icon { animation: none; } }
.ai-ask-site-label { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 700; }
.ai-ask-site select, .ai-ask-site textarea { width: 100%; min-width: 0; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--site-line); background: var(--surface); color: var(--text); font: inherit; }
.ai-ask-site textarea { resize: vertical; min-height: 56px; }
.ai-ask-site select:focus, .ai-ask-site textarea:focus { outline: none; border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c) 22%, transparent); }
.ai-ask-site-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-ask-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 8px 12px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--c) 30%, var(--site-line)); background: color-mix(in oklab, var(--c) 7%, var(--site-card)); color: var(--text); font: inherit; font-size: 0.86rem; font-weight: 600; text-align: start; cursor: pointer; transition: background 160ms, transform 160ms, border-color 160ms; }
.ai-ask-chip span { overflow: hidden; text-overflow: ellipsis; }
.ai-ask-chip .icon { flex: none; color: var(--c); }
.ai-ask-chip:hover { transform: translateY(-1px); border-color: var(--c); background: color-mix(in oklab, var(--c) 14%, var(--site-card)); }
.ai-ask-site-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ai-ask-site-send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 14px; color: #fff; font: inherit; font-weight: 800; cursor: pointer; background: linear-gradient(135deg, #7c3aed, #0891b2); box-shadow: 0 10px 26px -8px rgb(124 58 237 / 60%); transition: filter 160ms, transform 160ms; }
.ai-ask-site-send:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ai-ask-site-send[disabled] { opacity: 0.7; cursor: progress; }
.ai-ask-site.is-busy .ai-ask-site-send .icon { animation: ai-orb 1s linear infinite; }
@media (max-width: 560px) { .ai-ask-site-input { grid-template-columns: 1fr; } }
.ai-ask-site-out:empty { display: none; }
.ai-ask-site-out .ai-answer-site { max-height: 560px; color: var(--text); background: var(--site-card); }
.ai-ask-site-error { margin: 0; padding: 10px 14px; border-radius: 12px; color: #9f1239; background: #ffe4e6; font-weight: 600; }
.ai-ask-site-note { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 0.78rem; color: var(--site-ink-2, var(--muted)); }
.ai-ask-site-note .icon { flex: none; margin-top: 2px; }
.ai-thinking { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 16px; background: color-mix(in oklab, var(--c) 7%, var(--site-card)); color: var(--text); font-weight: 600; }
.ai-thinking i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); animation: ai-dot 1s infinite ease-in-out; }
.ai-thinking i:nth-child(2) { animation-delay: 0.15s; }
.ai-thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1.15); } }
/* Kahramandaki koyu (cam) sürüm */
.ai-ask-site.is-dark { color: #eef2ff; background: rgb(255 255 255 / 7%); border-color: rgb(255 255 255 / 16%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px -30px rgb(124 58 237 / 55%), inset 0 1px 0 rgb(255 255 255 / 12%); }
.ai-ask-site.is-dark .ai-ask-site-head small, .ai-ask-site.is-dark .ai-ask-site-note { color: #b9c3e6; }
.ai-ask-site.is-dark select, .ai-ask-site.is-dark textarea { color: #fff; background: rgb(8 12 30 / 55%); border-color: rgb(255 255 255 / 18%); }
.ai-ask-site.is-dark select option, .ai-ask-site.is-dark select optgroup { color: #0b1f2a; background: #fff; }
.ai-ask-site.is-dark textarea::placeholder { color: #94a3c8; }
.ai-ask-site.is-dark .ai-ask-chip { color: #eef2ff; background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 18%); }
.ai-ask-site.is-dark .ai-ask-chip .icon { color: #a5f3fc; }
.ai-ask-site.is-dark .ai-ask-chip:hover { background: rgb(255 255 255 / 16%); border-color: #a5f3fc; }
.ai-ask-site.is-dark .ai-thinking { color: #eef2ff; background: rgb(255 255 255 / 8%); }
.ai-ask-site.is-dark .ai-thinking i { background: #a5f3fc; }
.ai-hero-ask { align-self: center; }
.ai-ask-band { background: radial-gradient(900px 300px at 100% 0%, color-mix(in oklab, var(--c, #7c3aed) 10%, transparent), transparent 70%); }
.ai-h2-gap { margin-top: 36px; }
.ai-scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.ai-scenario { padding: 16px; border-radius: 18px; border: 1px solid var(--site-line, var(--line)); background: var(--site-card, var(--surface)); }
.ai-scenario h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.ai-scenario ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ai-scenario li { position: relative; padding-inline-start: 18px; font-size: 0.88rem; color: var(--site-ink-2, var(--muted)); }
.ai-scenario li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--ocean); }
.ai-agent-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 22px; padding: 22px; border-radius: 22px; color: #e8f3fa; background: linear-gradient(135deg, #0b1f2a, #133a4f); }
.ai-agent-demo .eyebrow { color: #8fd3ee; }
.ai-agent-demo h3 { margin: 4px 0 8px; font-size: 1.3rem; color: #fff; }
.ai-agent-demo p { color: #c3d9e6; }
@media (max-width: 760px) { .ai-agent-demo { grid-template-columns: 1fr; } }
.ai-chain { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ai-chain li { padding: 8px 12px; border-radius: 10px; background: rgb(255 255 255 / 8%); font-weight: 600; }
.ai-chain li:last-child { background: color-mix(in oklab, #10b981 35%, transparent); }
.ai-twin-quote { display: flex; gap: 10px; margin: 20px 0 0; padding: 16px 18px; border-radius: 16px; border-inline-start: 4px solid var(--ocean); background: var(--site-card, var(--surface)); font-size: 0.98rem; line-height: 1.6; }
.ai-provider-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ai-provider-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--site-line, var(--line)); background: var(--site-card, var(--surface)); font-size: 0.86rem; font-weight: 600; }
.ai-provider-chips li.is-local { border-color: color-mix(in oklab, #10b981 40%, var(--line)); }
.ai-example { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .ai-example { grid-template-columns: 1fr; } }
.ai-q-list { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.ai-q-list li { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--site-line, var(--line)); background: var(--site-card, var(--surface)); }
.ai-answer-site { padding: 18px; border-radius: 20px; background: var(--site-card, var(--surface)); max-height: 640px; overflow: auto; }
.ai-related-tiles { margin-top: 12px; }
/* AI vurgu renkleri (CSP: satır içi stil yok) */
.ai-c-violet { --c: #7c3aed; } .ai-c-purple { --c: #8b5cf6; } .ai-c-indigo { --c: #4f46e5; } .ai-c-sky { --c: #0284c7; } .ai-c-azure { --c: #0ea5e9; }
.ai-c-emerald { --c: #059669; } .ai-c-teal { --c: #0d9488; } .ai-c-lime { --c: #65a30d; } .ai-c-amber { --c: #d97706; } .ai-c-orange { --c: #ea580c; }
.ai-c-rose { --c: #e11d48; } .ai-c-pink { --c: #db2777; } .ai-c-blue { --c: #2563eb; } .ai-c-navy { --c: #1d4ed8; } .ai-c-cyan { --c: #0891b2; }
.ai-c-slate { --c: #475569; } .ai-c-ocean { --c: #0c6685; }
/* AI vitrini bant ritmi: daha sıkı aralık, dönüşümlü açık zemin */
.ai-site-body .site-band { padding: clamp(36px, 5vw, 60px) 0; }
.ai-site-body .site-main > .site-band:nth-of-type(odd):not(.ai-ask-band) { background: linear-gradient(180deg, color-mix(in oklab, #7c3aed 4%, transparent), color-mix(in oklab, #0891b2 3%, transparent)); }
.ai-site-body .site-band-inner > .site-h2 { position: relative; padding-bottom: 12px; }
.ai-site-body .site-band-inner > .site-h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #7c3aed, #0891b2, #10b981); }
.ai-hero .site-hero-inner { align-items: start; }
.ai-hero .site-hero-text { padding-top: clamp(0px, 2vw, 24px); }
.ai-ask-site { grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; }
.ai-ask-site-out, .ai-ask-site-out .ai-answer-site, .ai-ask-site-out .ai-answer-body { min-width: 0; max-width: 100%; }
.ai-ask-site-out .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ai-ask-site-out .table-wrap table { min-width: 480px; }
.ai-ask-site.is-dark .ai-ask-site-out .ai-answer-site { max-height: 440px; }
