/* ===========================================================
   Binam — Site & Apartman Yönetim Platformu
   Tasarım sistemi · düz CSS (build gerektirmez)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Marka & renk sistemi */
    --brand: #2b50ec;
    --brand-600: #1f3fd1;
    --brand-700: #1b34a8;
    --brand-50: #eef2fe;
    /* İkincil aksiyon rengi (öde/tahsilat/CTA) — marka birliği için sky-mavi. */
    --accent: #0ea5e9;
    --accent-50: #e0f2fe;

    --ink: #0d1424;
    --ink-soft: #1f2738;
    --muted: #5b6678;
    --muted-light: #8b94a3;
    --line: #e7eaf0;
    --line-soft: #eef0f5;
    --bg: #f5f6f9;
    --surface: #ffffff;

    --green: #0f9d6b;
    --green-bg: #e7f6ef;
    --red: #d92d3a;
    --red-bg: #fdeaeb;
    --amber: #b7791f;
    --amber-bg: #fbf2e0;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    --shadow-xs: 0 1px 2px rgba(13, 20, 36, .05);
    --shadow-sm: 0 1px 3px rgba(13, 20, 36, .06), 0 1px 2px rgba(13, 20, 36, .04);
    --shadow: 0 4px 12px rgba(13, 20, 36, .06), 0 2px 4px rgba(13, 20, 36, .04);
    --shadow-lg: 0 12px 32px rgba(13, 20, 36, .10), 0 4px 8px rgba(13, 20, 36, .04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }

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

svg.ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 14.5px; cursor: pointer; border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
    text-decoration: none; white-space: nowrap; font-family: inherit; line-height: 1.2;
}
.btn:active { transform: translateY(.5px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0284c7; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); border-color: #d7dbe4; color: var(--ink); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #f3f5ff; color: var(--brand-600); }
.btn-lg { padding: 13px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- Bölüm başlıkları ---------- */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: 33px; line-height: 1.18; margin-bottom: 14px; letter-spacing: -.025em; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 18px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}

/* =========================================================
   Navbar
   ========================================================= */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px; background: var(--brand);
    display: grid; place-items: center; color: #fff; box-shadow: 0 2px 6px rgba(43, 80, 236, .35);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(680px 360px at 88% -8%, rgba(15, 157, 107, .07), transparent 70%),
        radial-gradient(720px 420px at 6% -4%, rgba(43, 80, 236, .08), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -.035em; margin-bottom: 22px; font-weight: 800; }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { font-size: 18.5px; color: var(--muted); margin-bottom: 32px; max-width: 540px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .tick { color: var(--green); }

/* Hero kart */
.hero-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.hero-card-top { background: var(--ink); color: #fff; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; }
.hero-card-top strong { font-weight: 600; font-size: 15px; }
.hero-card-top small { opacity: .7; font-size: 13px; }
.hero-card-icon { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.hero-card-body { padding: 8px 22px; }
.mini-stat { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.mini-stat:last-child { border-bottom: 0; }
.mini-stat .label { color: var(--muted); font-size: 14px; }
.mini-stat .value { font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; gap: 10px; }
.bar { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; width: 120px; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 99px; }

/* =========================================================
   İstatistik şeridi
   ========================================================= */
.stat-strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 24px; }
.stat-strip .stat { text-align: center; }
.stat-strip .stat b { display: block; font-size: 30px; color: var(--ink); letter-spacing: -.03em; font-weight: 800; }
.stat-strip .stat span { color: var(--muted); font-size: 14px; }

/* =========================================================
   Özellik kartları
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d9deea; }
.feature .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; font-weight: 600; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* =========================================================
   Farklılaştırıcılar
   ========================================================= */
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.diff:last-child { margin-bottom: 0; }
.diff.rev .diff-text { order: 2; }
.diff-text h3 { font-size: 27px; margin-bottom: 14px; letter-spacing: -.025em; font-weight: 700; }
.diff-text p { color: var(--muted); font-size: 16.5px; margin-bottom: 20px; line-height: 1.6; }
.diff-list { list-style: none; }
.diff-list li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-soft); }
.diff-list li > svg { position: absolute; left: 0; top: 9px; color: var(--green); }
.diff-visual {
    background: linear-gradient(160deg, #fbfcfe, #f1f4fb);
    border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; min-height: 240px;
    display: grid; place-items: center; text-align: center;
}
.diff-visual .vmark { width: 72px; height: 72px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: var(--brand); display: grid; place-items: center; margin: 0 auto 18px; }
.diff-visual .accent { color: var(--accent); }
.diff-visual strong { font-size: 19px; letter-spacing: -.01em; }
.diff-visual span { color: var(--muted); }

/* =========================================================
   Fiyatlandırma
   ========================================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.plan.popular { border: 1.5px solid var(--brand); box-shadow: var(--shadow); }
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600;
    padding: 5px 14px; border-radius: 99px; letter-spacing: .03em;
}
.plan h3 { font-size: 21px; margin-bottom: 4px; font-weight: 700; }
.plan .tagline { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.plan ul { list-style: none; margin-top: 18px; }
.plan ul li { padding: 9px 0 9px 28px; position: relative; font-size: 14.5px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); }
.plan ul li:first-child { border-top: 0; }
.plan ul li > svg { position: absolute; left: 0; top: 11px; color: var(--accent); }
.plan .btn { margin-top: 22px; }

.price-calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 560px; margin: 0 auto 52px; }
.price-calc label { display: block; font-weight: 600; margin-bottom: 14px; }
.price-calc input[type="range"] { width: 100%; accent-color: var(--brand); }
.price-calc .calc-out { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.price-calc .calc-out .num { font-size: 38px; font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.price-calc .calc-units { font-size: 20px; font-weight: 700; color: var(--brand); }
.price-note { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.6; }

/* =========================================================
   CTA bandı
   ========================================================= */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 120%, rgba(43,80,236,.4), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: 31px; margin-bottom: 12px; letter-spacing: -.025em; font-weight: 700; }
.cta-band p { font-size: 17px; opacity: .82; margin-bottom: 28px; }

/* =========================================================
   İletişim formu
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 14.5px; font-family: inherit; background: var(--surface); color: var(--ink);
    transition: border .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-light); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 80, 236, .13); }
.field .err { color: var(--red); font-size: 13px; margin-top: 5px; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14.5px; }
.alert-success { background: var(--green-bg); color: #0a6b4a; border: 1px solid #b9e6d2; }
.alert-error { background: var(--red-bg); color: #a31621; border: 1px solid #f3c4c8; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--ink); color: #aab2c2; padding: 60px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand .brand-mark { background: rgba(255,255,255,.12); box-shadow: none; }
.footer p { font-size: 14px; color: #8b94a6; max-width: 320px; line-height: 1.65; }
.footer h5 { color: #fff; font-size: 13px; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: #8b94a6; font-size: 14px; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 24px; text-align: center; font-size: 13px; color: #6b7488; }

/* =========================================================
   Auth
   ========================================================= */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 20% 0%, rgba(43,80,236,.35), transparent 65%); }
.auth-side > * { position: relative; }
.auth-side .brand { color: #fff; margin-bottom: 40px; }
.auth-side .brand .brand-mark { background: rgba(255,255,255,.14); box-shadow: none; }
.auth-side h2 { font-size: 30px; margin-bottom: 16px; line-height: 1.22; letter-spacing: -.025em; font-weight: 700; }
.auth-side ul { list-style: none; margin-top: 24px; }
.auth-side ul li { padding: 9px 0 9px 30px; position: relative; color: #cdd3df; }
.auth-side ul li > svg { position: absolute; left: 0; top: 11px; color: #93c5fd; }
.auth-main { display: grid; place-items: center; padding: 40px; background: var(--bg); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 26px; margin-bottom: 6px; letter-spacing: -.02em; font-weight: 700; }
.auth-box .sub { color: var(--muted); margin-bottom: 28px; }
.auth-box .alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.checkbox-row input { accent-color: var(--brand); }

/* =========================================================
   Uygulama paneli
   ========================================================= */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #aab2c2; padding: 16px 12px 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #394256 transparent; }
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: #394256; border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #4a5468; background-clip: padding-box; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar .brand { color: #fff; padding: 4px 10px 16px; }
.sidebar .brand .brand-mark { box-shadow: none; }
.side-nav { list-style: none; }
.side-nav li a { display: flex; align-items: center; gap: 11px; padding: 7.5px 12px; border-radius: var(--radius-sm); color: #aab2c2; font-weight: 500; font-size: 14px; margin-bottom: 1px; transition: background .12s ease, color .12s ease; }
.side-nav li a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav li a.active { background: var(--brand); color: #fff; }
.side-nav li a.active svg { color: #fff; }
.side-nav li a svg { color: #7e8799; }
.side-nav li a:hover svg, .side-nav li a.active svg { color: #fff; }
.side-nav .group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #5d6678; padding: 12px 12px 5px; font-weight: 600; }

.app-main { background: var(--bg); min-width: 0; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 28px; height: 66px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar h1 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hamburger { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 7px; cursor: pointer; color: var(--ink); align-items: center; }
.hamburger:hover { background: var(--bg); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(13,20,36,.5); z-index: 40; }
.topbar .user-chip { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.content { padding: 28px; max-width: 1280px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge-trial { background: var(--amber-bg); color: var(--amber); }
.badge-success { background: var(--green-bg); color: var(--green); }
.badge-warn { background: var(--amber-bg); color: var(--amber); }
.badge-danger { background: var(--red-bg); color: var(--red); }

/* Stat kartları */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-xs); }
.stat-card .k { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; gap: 7px; }
.stat-card .k svg { color: var(--muted-light); }
.stat-card .v { font-size: 27px; font-weight: 800; margin-top: 10px; letter-spacing: -.03em; }
.stat-card .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); margin-bottom: 24px; overflow: hidden; }
.panel-head { padding: 17px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.panel-body { padding: 22px; }

table { width: 100%; border-collapse: collapse; }
table th { text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--bg); }
table th:first-child, table td:first-child { text-align: right; }
table td { padding: 13px 22px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
table tr:last-child td { border-bottom: 0; }
table tbody tr:hover { background: #fafbfc; }

.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty .eico { width: 56px; height: 56px; border-radius: 14px; background: var(--bg); color: var(--muted-light); display: grid; place-items: center; margin: 0 auto 16px; }
.empty h2 { color: var(--ink); font-size: 18px; }

.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Kompakt KPI kartları (dashboard) */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 8px; }
.kpi .kpi-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.kpi .kpi-v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.kpi .kpi-k { font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* Hızlı işlem butonları */
.quick-actions { display: grid; gap: 10px; }
.quick-actions a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14.5px; color: #fff; transition: filter .15s ease; }
.quick-actions a:hover { filter: brightness(1.07); color: #fff; }

/* Basit çubuk grafik */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding: 12px 4px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bars { display: flex; align-items: flex-end; gap: 4px; height: 100%; width: 100%; justify-content: center; }
.chart .bar { width: 16px; border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .bar.gelir { background: var(--green); }
.chart .bar.gider { background: var(--red); }
.chart .col-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.chart-legend { display: flex; gap: 18px; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* Doluluk çubuğu */
.occ-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.occ-row:last-child { border-bottom: 0; }
.occ-row b { font-weight: 700; }

/* Modal */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(13, 20, 36, .55); z-index: 100; place-items: center; padding: 20px; backdrop-filter: blur(2px); }
.modal-backdrop.open { display: grid; }
.modal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; padding: 28px; max-height: 92vh; overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-head h2 { font-size: 19px; font-weight: 700; }
.modal-close { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; }
.modal-close:hover { background: var(--bg); color: var(--ink); }

/* Araç çubuğu (site seçici vb.) */
.toolbar { display: flex; align-items: center; gap: 10px; }
.toolbar label { font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.select { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: var(--surface); color: var(--ink); }
.select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43,80,236,.13); }
.page-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 920px) {
    .nav-links, .nav-cta .btn-ghost { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav.open .nav-links { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
    .hero-grid, .diff, .diff.rev .diff-text, .contact-grid, .footer-grid, .auth-wrap { grid-template-columns: 1fr; }
    .diff.rev .diff-text { order: 0; }
    .hero h1 { font-size: 38px; }
    .grid-3, .pricing-grid, .stats { grid-template-columns: 1fr; }
    .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
    .auth-side { display: none; }

    /* --- Uygulama paneli: mobil drawer --- */
    .app { grid-template-columns: 1fr; }
    .hamburger { display: inline-flex; }
    .sidebar {
        position: fixed; top: 0; left: 0; width: 270px; height: 100vh; z-index: 50;
        transform: translateX(-100%); transition: transform .25s ease;
        box-shadow: 0 0 40px rgba(0,0,0,.3);
    }
    .app.sidebar-open .sidebar { transform: translateX(0); }
    .app.sidebar-open .sidebar-overlay { display: block; }
    .topbar { padding: 0 16px; }
    .content { padding: 18px 16px; }
    .cols-2 { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stats { grid-template-columns: 1fr; }
    .stats[style] { grid-template-columns: 1fr !important; }

    /* Tablolar: mobilde yatay kaydırılabilir (taşıp bozulmaz) */
    .panel table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

    /* Sayfa üstü araç çubuğu / aksiyonlar alt alta */
    .page-actions { flex-direction: column; align-items: stretch; }
    .page-actions .toolbar { width: 100%; }
    .page-actions .select { flex: 1; }
    .page-actions > div { display: flex; flex-wrap: wrap; gap: 10px; }
    .page-actions > div > *, .page-actions > div form { flex: 1 1 auto; }
    .page-actions > div .btn { width: 100%; }

    /* Form ızgaraları tek sütun */
    .modal { max-width: 100%; }
}

@media (max-width: 520px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .user-chip .badge-trial { display: none; }
    .user-chip > div { display: none; } /* topbar'da uzun isim/rol gizle, avatar kalsın */
    .topbar h1 { font-size: 17px; }
}

/* =========================================================
   TANITIM SAYFASI — sıcak & güven veren tema (lp- önekli)
   ========================================================= */
.lp {
    --lp-cream: #faf6ef;
    --lp-cream-2: #f3ece0;
    --lp-ink: #1f1b16;
    --lp-muted: #6c645b;
    --lp-line: #e8e0d4;
    /* Tanıtım sitesi marka rengi — panelle aynı mavi aile (değişken adı geçmişten kalma). */
    --lp-green: #2b50ec;
    --lp-green-d: #1f3fd1;
    --lp-green-soft: #eef2fe;
    --lp-amber: #b9722a;
    --lp-amber-soft: #f8efe2;
    color: var(--lp-ink);
    background: var(--lp-cream);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.lp ::selection { background: #d3ddfb; }

.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Üst bar (tanıtıma özel, sıcak) */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(250,246,239,.85); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--lp-line); }
.lp-nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.lp-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; color: var(--lp-ink); letter-spacing: -.02em; }
.lp-brand:hover { color: var(--lp-ink); }
.lp-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--lp-green); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px rgba(43,80,236,.3); }
.lp-links { display: flex; align-items: center; gap: 30px; }
.lp-links a { color: var(--lp-muted); font-weight: 500; font-size: 15px; }
.lp-links a:hover { color: var(--lp-ink); }
.lp-navcta { display: flex; align-items: center; gap: 12px; }

.lp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1.5px solid transparent; transition: all .15s ease; text-decoration: none; }
.lp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.lp-btn-green { background: var(--lp-green); color: #fff; box-shadow: 0 6px 18px rgba(43,80,236,.28); }
.lp-btn-green:hover { background: var(--lp-green-d); color: #fff; }
.lp-btn-ghost { background: #fff; color: var(--lp-ink); border-color: var(--lp-line); }
.lp-btn-ghost:hover { background: #fff; border-color: #d8cebd; }
.lp-btn-lg { padding: 15px 28px; font-size: 16px; }
.lp-btn-text { color: var(--lp-green-d); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--lp-green-soft); color: var(--lp-green-d); font-weight: 600; font-size: 13.5px; padding: 6px 14px; border-radius: 99px; }

/* Hero */
.lp-hero { padding: 64px 0 70px; position: relative; overflow: hidden; }
.lp-hero::after { content: ""; position: absolute; right: -180px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(43,80,236,.10), transparent 65%); z-index: 0; }
.lp-hero-grid { display: grid; grid-template-columns: 1.02fr 1.1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.lp-hero h1 { font-size: 54px; line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 20px 0 20px; }
.lp-hero h1 em { font-style: normal; color: var(--lp-green-d); position: relative; white-space: nowrap; }
.lp-hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; background: #bcc9f7; opacity: .55; z-index: -1; border-radius: 3px; }
.lp-lead { font-size: 19px; color: var(--lp-muted); line-height: 1.6; max-width: 540px; margin-bottom: 28px; }
.lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.lp-hero-trust { display: flex; flex-direction: column; gap: 9px; }
.lp-hero-trust span { display: inline-flex; align-items: center; gap: 9px; color: var(--lp-muted); font-size: 15px; }
.lp-hero-trust svg { color: var(--lp-green); flex-shrink: 0; }

/* Tarayıcı çerçevesi içinde ekran görüntüsü */
.lp-shot { position: relative; }
.lp-browser { background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(31,27,22,.28), 0 12px 24px -12px rgba(31,27,22,.15); }
.lp-browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f7f2ea; border-bottom: 1px solid var(--lp-line); }
.lp-dot { width: 11px; height: 11px; border-radius: 50%; }
.lp-browser-bar .lp-url { margin-left: 12px; font-size: 12px; color: #9c9389; background: #fff; border: 1px solid var(--lp-line); padding: 3px 12px; border-radius: 6px; flex: 1; max-width: 280px; }
.lp-browser img { display: block; width: 100%; }
.lp-float-mobile { position: absolute; right: -22px; bottom: -34px; width: 150px; border-radius: 22px; border: 5px solid #1f1b16; overflow: hidden; box-shadow: 0 24px 48px -16px rgba(31,27,22,.4); background: #1f1b16; }
.lp-float-mobile img { display: block; width: 100%; }

/* Güven şeridi */
.lp-trustbar { background: #fff; border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); }
.lp-trustbar .lp-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; }
.lp-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--lp-muted); font-weight: 500; }
.lp-chip svg { color: var(--lp-green); }

/* Bölüm başlığı */
.lp-section { padding: 84px 0; }
.lp-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.lp-head h2 { font-size: 36px; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin: 14px 0 14px; }
.lp-head p { font-size: 18px; color: var(--lp-muted); }

/* Özellik gösterimi (alternating, gerçek ekran) */
.lp-feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; margin-bottom: 96px; }
.lp-feature:last-child { margin-bottom: 0; }
.lp-feature.rev .lp-feature-text { order: 2; }
.lp-feature-text h3 { font-size: 30px; letter-spacing: -.03em; font-weight: 800; margin: 14px 0 14px; line-height: 1.15; }
.lp-feature-text p { font-size: 17px; color: var(--lp-muted); line-height: 1.65; margin-bottom: 20px; }
.lp-flist { list-style: none; }
.lp-flist li { display: flex; align-items: flex-start; gap: 11px; padding: 8px 0; font-size: 15.5px; color: var(--lp-ink); }
.lp-flist svg { color: var(--lp-green); margin-top: 3px; flex-shrink: 0; }
.lp-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lp-amber); }

/* Farklılaştırıcı kartlar */
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-card { background: #fff; border: 1px solid var(--lp-line); border-radius: 16px; padding: 30px; transition: transform .18s ease, box-shadow .18s ease; }
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(31,27,22,.22); }
.lp-card-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--lp-green-soft); color: var(--lp-green-d); display: grid; place-items: center; margin-bottom: 18px; }
.lp-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.lp-card p { color: var(--lp-muted); font-size: 15px; line-height: 1.6; }

/* Segmentler */
.lp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lp-seg-card { border-radius: 18px; padding: 36px; border: 1px solid var(--lp-line); }
.lp-seg-card.a { background: var(--lp-green-soft); }
.lp-seg-card.b { background: var(--lp-amber-soft); }
.lp-seg-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: -.02em; }
.lp-seg-card p { color: var(--lp-muted); font-size: 15.5px; line-height: 1.6; margin-bottom: 16px; }

/* Alıntı */
.lp-quote { background: var(--lp-ink); color: #f6f1e9; border-radius: 22px; padding: 56px; text-align: center; max-width: 880px; margin: 0 auto; position: relative; }
.lp-quote .q { font-size: 26px; line-height: 1.45; font-weight: 600; letter-spacing: -.02em; margin-bottom: 22px; }
.lp-quote .who { color: #c2b8aa; font-size: 15px; }
.lp-quote .who b { color: #fff; }

/* CTA */
.lp-cta { background: linear-gradient(135deg, var(--lp-green-d), var(--lp-green)); color: #fff; border-radius: 24px; padding: 60px 40px; text-align: center; }
.lp-cta h2 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.lp-cta p { font-size: 18px; opacity: .9; margin-bottom: 26px; }
.lp-btn-white { background: #fff; color: var(--lp-green-d); }
.lp-btn-white:hover { background: #f3f5ff; color: var(--lp-green-d); }

@media (max-width: 920px) {
    .lp-links { display: none; }
    .lp-hero-grid, .lp-feature, .lp-feature.rev .lp-feature-text, .lp-cards, .lp-seg { grid-template-columns: 1fr; }
    .lp-feature.rev .lp-feature-text { order: 0; }
    .lp-hero h1 { font-size: 38px; }
    .lp-head h2, .lp-cta h2 { font-size: 28px; }
    .lp-float-mobile { width: 110px; right: 6px; bottom: -24px; }
    .lp-quote { padding: 36px 24px; }
    .lp-quote .q { font-size: 20px; }
}

/* Tanıtım — fiyatlandırma (warm) */
.lp-calc { background: #fff; border: 1px solid var(--lp-line); border-radius: 18px; padding: 32px; box-shadow: 0 18px 36px -22px rgba(31,27,22,.25); max-width: 600px; margin: 0 auto 48px; }
.lp-calc label { display: block; font-weight: 600; margin-bottom: 14px; color: var(--lp-ink); }
.lp-calc input[type="range"] { width: 100%; accent-color: var(--lp-green); }
.lp-calc-out { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--lp-line); }
.lp-calc-out .num { font-size: 40px; font-weight: 800; color: var(--lp-green-d); letter-spacing: -.03em; }
.lp-calc-units { font-size: 22px; font-weight: 800; color: var(--lp-green-d); }
.lp-calc .note { color: var(--lp-muted); font-size: 13px; margin-top: 12px; line-height: 1.6; }
.lp-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--lp-green-soft); color: var(--lp-green-d); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 99px; }

.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.lp-plan { background: #fff; border: 1px solid var(--lp-line); border-radius: 18px; padding: 32px; position: relative; }
.lp-plan.pop { border: 2px solid var(--lp-green); box-shadow: 0 18px 40px -22px rgba(43,80,236,.4); }
.lp-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--lp-green); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 15px; border-radius: 99px; letter-spacing: .03em; }
.lp-plan h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.lp-plan .tag { color: var(--lp-muted); font-size: 14px; margin-bottom: 6px; }
.lp-plan ul { list-style: none; margin: 18px 0; }
.lp-plan li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14.5px; color: var(--lp-ink); border-top: 1px solid #f0e9dc; }
.lp-plan li:first-child { border-top: 0; }
.lp-plan li svg { color: var(--lp-green); margin-top: 3px; flex-shrink: 0; }

@media (max-width: 920px) { .lp-plans { grid-template-columns: 1fr; } }

/* Tanıtım — mobil menü */
.lp-burger { display: none; background: none; border: 1px solid var(--lp-line); border-radius: 9px; padding: 7px; cursor: pointer; color: var(--lp-ink); }
.lp-mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 18px; border-bottom: 1px solid var(--lp-line); background: var(--lp-cream); }
.lp-mobile-menu a:not(.lp-btn) { padding: 11px 6px; color: var(--lp-ink); font-weight: 500; border-bottom: 1px solid var(--lp-line); }
.lp-mobile-menu .lp-btn { margin-top: 8px; justify-content: center; }
.lp-nav.open .lp-mobile-menu { display: flex; }

@media (max-width: 920px) {
    .lp-burger { display: inline-flex; }
    .lp-links, .lp-navcta { display: none; }
}

/* Tanıtım — auth (warm) — body.lp ile etkin */
.lp .auth-main { background: var(--lp-cream); }
.lp .auth-side { background: linear-gradient(150deg, var(--lp-green-d), var(--lp-green)); }
.lp .auth-side::before { background: radial-gradient(600px 400px at 20% 0%, rgba(255,255,255,.18), transparent 60%); }
.lp .auth-box h1 { color: var(--lp-ink); }
.lp .brand-mark { background: var(--lp-green); box-shadow: 0 4px 12px rgba(43,80,236,.3); }
.lp .auth-side .brand-mark { background: rgba(255,255,255,.16); box-shadow: none; }
.lp .btn-primary { background: var(--lp-green); box-shadow: 0 6px 18px rgba(43,80,236,.28); }
.lp .btn-primary:hover { background: var(--lp-green-d); }
.lp .field input:focus { border-color: var(--lp-green); box-shadow: 0 0 0 3px rgba(43,80,236,.15); }
.lp .auth-box .alt a, .lp a { color: var(--lp-green-d); }
