/* =====================================================================
   SUPERPOS CRM — "Studio" tasarım katmanı
   app.css'in üstüne yüklenir. Renk ve yazı tipi değişkenlerini yeniden
   tanımlar, uygulama kabuğunu (sol kenar çubuğu) ve ortak bileşenleri
   yeniden çizer. Palet: patlıcan moru zemin + şampanya altını vurgu
   (SUPERPOS logosu) + durumlar için canlı ama dengeli renkler.
   Yazı tipleri yerel (GDPR: Google Fonts'a istek yok), OFL lisanslı.
   ===================================================================== */

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/onest-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: "Onest";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/onest-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: "Bricolage Grotesque";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    font-stretch: 75% 100%;
    src: url("fonts/bricolage-grotesque-latin-ext-standard-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: "Bricolage Grotesque";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    font-stretch: 75% 100%;
    src: url("fonts/bricolage-grotesque-latin-standard-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;
}

/* ---------------------------------------------------------------- tokens */

:root {
    --app-font: "Onest", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    --display-font: "Bricolage Grotesque", "Onest", system-ui, sans-serif;

    /* marka */
    --aubergine: #1a0f2e;
    --aubergine-2: #2a1748;
    --plum: #4b2380;
    --iris: #7a4be0;
    --champagne: #c9a13b;
    --champagne-soft: #f3e7c4;

    /* durum renkleri (yalnız veri anlamı taşır) */
    --st-green: #16a974;
    --st-blue: #3b7ff6;
    --st-amber: #e8961e;
    --st-red: #e5484d;
    --st-violet: #8b5cf6;
    --st-teal: #0ea5a4;
    --st-pink: #e0559a;
    --st-grey: #938caa;
    --stage-0: #3b7ff6;
    --stage-1: #8b5cf6;
    --stage-2: #e8961e;
    --stage-3: #e0559a;
    --stage-4: #0ea5a4;
    --stage-5: #16a974;

    /* app.css değişkenleri yeni palete eşlenir */
    --ink: #1e1733;
    --muted: #6c6584;
    --line: #e7e2f0;
    --panel: #ffffff;
    --soft: #f4f1fa;
    --teal: #4b2380;
    --green: #16a974;
    --navy: #24133f;
    --gold: #b88a22;
    --page: #f6f4fb;
    --header: rgba(255, 255, 255, .9);
    --shadow: rgba(36, 19, 63, .07);
    --table-hover: #f3eefc;
    --control-hover: #e6dbf8;

    --surface: #ffffff;
    --surface-2: #faf9fd;
    --focus: 0 0 0 3px color-mix(in srgb, var(--iris) 35%, transparent);
    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 18px;
    --sidebar-w: 248px;
    --lift: 0 1px 2px rgba(36, 19, 63, .06), 0 8px 24px -12px rgba(36, 19, 63, .18);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --ink: #eeeaf7;
    --muted: #a69ebf;
    --line: #2f2546;
    --panel: #1c1430;
    --soft: #170f27;
    --teal: #b392ff;
    --green: #3fd39b;
    --navy: #efe8ff;
    --gold: #e2be5e;
    --page: #120b1f;
    --header: rgba(18, 11, 31, .9);
    --shadow: rgba(0, 0, 0, .35);
    --table-hover: #241a3a;
    --control-hover: #33254f;
    --surface: #1c1430;
    --surface-2: #211836;
    --lift: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
}

/* ---------------------------------------------------------------- temel */

body {
    font-family: var(--app-font);
    font-size: 14.5px;
    letter-spacing: -.003em;
    background: var(--page);
    color: var(--ink);
    font-feature-settings: "ss01", "cv11";
}

h1, h2, h3,
.erp-page-head h1, .erp-page-head h2, .erp-detail-head h1 {
    font-family: var(--display-font);
    letter-spacing: -.02em;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 6px;
}

::selection {
    background: color-mix(in srgb, var(--iris) 28%, transparent);
}

.tabular, td, .s-num {
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------------------------------------------------------------- uygulama kabuğu */

.app-topbar {
    display: none;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    padding: 18px 14px 14px;
    color: #d9d1ee;
    background:
        radial-gradient(120% 60% at 0% 0%, rgba(122, 75, 224, .28), transparent 60%),
        linear-gradient(180deg, var(--aubergine-2), var(--aubergine) 55%);
    border-right: 1px solid rgba(255, 255, 255, .04);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 16px;
    color: #fff;
}

.app-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .95);
}

.app-brand-text {
    display: grid;
    line-height: 1;
}

.app-brand-text strong {
    font-family: var(--display-font);
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: .01em;
}

.app-brand-text small {
    margin-top: 3px;
    color: var(--champagne);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.app-quick {
    position: relative;
    margin: 2px 4px 14px;
}

.app-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    color: var(--aubergine);
    background: linear-gradient(180deg, #f6e7bd, var(--champagne));
    font-weight: 700;
    box-shadow: 0 6px 18px -8px rgba(201, 161, 59, .8), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.app-quick-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.app-quick-menu,
.app-user-menu {
    position: absolute;
    z-index: 60;
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 18px 50px -12px rgba(26, 15, 46, .45);
    animation: s-pop .14s ease-out;
}

.app-quick-menu {
    top: calc(100% + 6px);
}

.app-user-menu {
    bottom: calc(100% + 8px);
}

.app-quick-menu a,
.app-user-menu a,
.app-user-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    color: inherit;
    background: transparent;
    font-weight: 600;
    text-align: left;
}

.app-quick-menu a:hover,
.app-user-menu a:hover,
.app-user-menu button:hover {
    background: var(--soft);
}

.app-user-menu .is-danger {
    color: var(--st-red);
}

@keyframes s-pop {
    from { opacity: 0; transform: translateY(-4px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.app-nav {
    display: grid;
    align-content: start;
    gap: 1px;
    flex: 1;
    overflow-y: auto;
    padding: 0 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

.app-nav-group {
    margin: 14px 10px 4px;
    color: rgba(217, 209, 238, .5);
    font-size: .75rem;
    font-weight: 600;
}

.app-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    color: #cfc6e6;
    font-weight: 550;
    transition: background .15s ease, color .15s ease;
}

.app-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.app-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.app-nav a.is-active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--champagne);
}

.app-ico {
    flex: none;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .9;
}

.app-dot {
    position: absolute;
    left: 25px;
    top: 9px;
    width: 7px;
    height: 7px;
    border: 2px solid var(--aubergine-2);
    border-radius: 50%;
    background: var(--c);
}

.app-sidebar-foot {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.app-readonly {
    padding: 8px 10px;
    border-radius: 9px;
    color: #ffd7d8;
    background: rgba(229, 72, 77, .18);
    font-size: .82rem;
    font-weight: 600;
}

.app-toggles {
    display: flex;
    gap: 6px;
    padding: 0 4px;
}

.app-toggle {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: #d9d1ee;
    background: transparent;
    font-size: .78rem;
    font-weight: 700;
}

.app-toggle:hover {
    background: rgba(255, 255, 255, .08);
}

.app-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.app-user {
    position: relative;
}

.app-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    text-align: left;
}

.app-user-btn:hover {
    background: rgba(255, 255, 255, .1);
}

.app-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--aubergine);
    background: linear-gradient(135deg, #f6e7bd, var(--champagne));
    font-size: .8rem;
    font-weight: 800;
}

.app-user-text {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.app-user-text strong,
.app-user-text small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-user-text strong {
    font-size: .86rem;
}

.app-user-text small {
    color: rgba(217, 209, 238, .6);
    font-size: .74rem;
}

.app-user-chev {
    width: 16px;
    height: 16px;
    margin-left: auto;
    fill: none;
    stroke: rgba(255, 255, 255, .5);
    stroke-width: 2;
}

.app-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: transparent;
}

.app-backdrop.is-dim {
    background: rgba(18, 11, 31, .5);
    backdrop-filter: blur(2px);
}

/* içerik alanı: kenar çubuğu kadar sağa kayar, sabit üst başlık yok */
.site-shell.has-sidebar > main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

.has-sidebar .panel-page,
.has-sidebar .form-page,
.has-sidebar .erp-detail-page,
.has-sidebar .jewelry-erp-page.erp-list-page {
    min-height: 100vh;
    padding: 28px clamp(18px, 3vw, 40px) 56px;
    background:
        radial-gradient(900px 300px at 100% -80px, color-mix(in srgb, var(--iris) 9%, transparent), transparent),
        var(--page);
}

/* sayfa başlık bandı: tüm liste sayfalarında aynı dil (eski fotoğraflı bannerlar yerine) */
.has-sidebar .erp-page-head,
.has-sidebar .jewelry-erp-page .erp-page-head,
.has-sidebar .jewelry-erp-page .customers-hero,
.has-sidebar .jewelry-erp-page .purchases-hero,
.has-sidebar .jewelry-erp-page .users-hero,
.has-sidebar .jewelry-erp-page .islemler-hero,
.has-sidebar .jewelry-erp-page .profile-hero,
.has-sidebar .jewelry-erp-page .sertifika-hero,
.has-sidebar .jewelry-erp-page .sertifikalar-hero,
.has-sidebar .jewelry-erp-page .anasayfa-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    margin: 0 0 18px;
    padding: 6px 0 14px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.has-sidebar .jewelry-erp-page .erp-page-head::before,
.has-sidebar .jewelry-erp-page .erp-page-head::after {
    display: none;
}

h1:focus,
h2:focus {
    outline: none;
    box-shadow: none;
}

.has-sidebar .customers-hero-title {
    text-align: left;
}

.has-sidebar .erp-page-head h1,
.has-sidebar .erp-page-head h2,
.has-sidebar .jewelry-erp-page .erp-page-head h2,
.has-sidebar .jewelry-erp-page .customers-hero h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: none;
}

.has-sidebar .jewelry-erp-page .customers-hero .eyebrow,
.has-sidebar .erp-page-head .eyebrow {
    display: none;
}

.has-sidebar .erp-hero-left {
    display: none;
}

.has-sidebar .erp-add-button,
.has-sidebar .jewelry-erp-page .erp-add-button,
.has-sidebar .jewelry-erp-page .customers-hero .erp-add-button {
    position: static;
    width: 40px;
    height: 40px;
    transform: none;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--plum);
    box-shadow: 0 8px 18px -10px var(--plum);
}

.has-sidebar .erp-add-button svg,
.has-sidebar .jewelry-erp-page .customers-hero .erp-add-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.4;
}

.has-sidebar .erp-add-button:hover {
    color: #fff;
    background: var(--iris);
}

.has-sidebar .erp-hero-action-group {
    position: static;
    display: flex;
    gap: 8px;
    transform: none;
}

/* ---------------------------------------------------------------- kartlar, filtreler, tablolar */

.has-sidebar .erp-filter-card,
.has-sidebar .erp-table-card,
.has-sidebar .erp-form-card,
.has-sidebar .detail-panel,
.has-sidebar .erp-side-card,
.has-sidebar .settings-card,
.s-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--surface);
    box-shadow: var(--lift);
}

.has-sidebar .erp-filter-card {
    padding: 12px;
    box-shadow: none;
    background: var(--surface-2);
}

.has-sidebar .erp-filter-card label,
.has-sidebar .erp-form-card label,
.has-sidebar .settings-card label {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
}

.has-sidebar input:not([type=checkbox]):not([type=radio]):not([type=range]),
.has-sidebar select,
.has-sidebar textarea,
.has-sidebar .form-control,
.has-sidebar .form-select {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background-color: var(--surface);
    font-size: .9rem;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.has-sidebar input:not([type=checkbox]):not([type=radio]):focus,
.has-sidebar select:focus,
.has-sidebar textarea:focus,
.has-sidebar .form-control:focus,
.has-sidebar .form-select:focus {
    border-color: var(--iris);
    box-shadow: var(--focus);
    outline: none;
}

.has-sidebar .form-control-sm,
.has-sidebar .form-select-sm {
    min-height: 34px;
}

.has-sidebar .table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--table-hover);
    --bs-table-color: var(--ink);
    --bs-table-hover-color: var(--ink);
    margin: 0;
    color: var(--ink);
}

.has-sidebar .table > thead th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface-2);
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
}

.has-sidebar .table > tbody td,
.has-sidebar .table > tbody th {
    padding: 11px 12px;
    border-color: var(--line);
    vertical-align: middle;
}

.has-sidebar .erp-table-card {
    overflow: hidden;
    padding: 0;
}

.has-sidebar .erp-table-card > h3,
.has-sidebar .settings-card > h3 {
    margin: 0;
    padding: 16px 18px 6px;
    font-size: 1.05rem;
}

.has-sidebar .settings-card {
    padding: 0 18px 18px;
    margin-bottom: 16px;
}

.has-sidebar .settings-card > h3 {
    padding: 16px 0 10px;
}

/* düğmeler: bootstrap + eski sınıflar tek dile */
.s-btn,
.has-sidebar .btn-dark,
.has-sidebar .modal-btn-primary,
.has-sidebar .form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--plum);
    font-weight: 650;
    box-shadow: 0 8px 18px -12px var(--plum);
    transition: background .15s ease, transform .1s ease;
}

.s-btn:hover,
.has-sidebar .btn-dark:hover,
.has-sidebar .modal-btn-primary:hover,
.has-sidebar .form-submit:hover {
    color: #fff;
    background: var(--iris);
}

.s-btn:active,
.has-sidebar .btn-dark:active {
    transform: translateY(1px);
}

.s-btn.is-ghost,
.has-sidebar .btn-outline-secondary,
.has-sidebar .modal-btn:not(.modal-btn-primary) {
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: none;
}

.s-btn.is-ghost:hover,
.has-sidebar .btn-outline-secondary:hover,
.has-sidebar .modal-btn:not(.modal-btn-primary):hover {
    color: var(--ink);
    background: var(--soft);
    border-color: color-mix(in srgb, var(--iris) 30%, var(--line));
}

.has-sidebar .btn {
    border-radius: 9px;
    font-weight: 600;
}

.s-link {
    color: var(--iris);
    font-size: .85rem;
    font-weight: 650;
}

.s-link:hover {
    text-decoration: underline;
}

.s-count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--soft);
    font-size: .75rem;
    font-weight: 700;
}

.s-empty {
    margin: 0;
    padding: 18px 0 6px;
    color: var(--muted);
}

/* durum hapları (monday.com tarzı dolu renk) */
.s-pill,
.has-sidebar .sales-badge,
.has-sidebar .status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--st-grey);
    font-size: .74rem;
    font-weight: 650;
    white-space: nowrap;
}

.s-pill.is-green, .has-sidebar .sales-badge.is-ok { background: var(--st-green); }
.s-pill.is-amber, .has-sidebar .sales-badge.is-warn { background: var(--st-amber); }
.s-pill.is-red, .has-sidebar .sales-badge.is-bad { background: var(--st-red); }
.s-pill.is-blue, .has-sidebar .sales-badge.is-info { background: var(--st-blue); }
.s-pill.is-grey, .has-sidebar .sales-badge.is-muted { background: var(--st-grey); }

/* ---------------------------------------------------------------- liste sayfaları (eski ızgara tablolar) */

.has-sidebar .jewelry-table-card {
    overflow-x: auto;
}

.has-sidebar .erp-customer-head,
.has-sidebar .jewelry-erp-page .erp-customer-head,
.has-sidebar .erp-purchase-head,
.has-sidebar .jewelry-erp-page .erp-purchase-head {
    color: var(--muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    font-size: .76rem;
    font-weight: 600;
}

.has-sidebar .jewelry-erp-page .erp-customer-data:nth-child(odd),
.has-sidebar .jewelry-erp-page .erp-customer-data:nth-child(even),
.has-sidebar .jewelry-erp-page .erp-purchase-data:nth-child(odd),
.has-sidebar .jewelry-erp-page .erp-purchase-data:nth-child(even) {
    background: var(--surface);
}

.has-sidebar .erp-customer-data:hover,
.has-sidebar .jewelry-erp-page .erp-customer-data:hover,
.has-sidebar .erp-purchase-data:hover {
    background: var(--table-hover) !important;
}

.has-sidebar .erp-customer-row > span strong {
    color: var(--ink);
    font-weight: 650;
}

.has-sidebar .selection-toolbar {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.has-sidebar .selection-btn {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: var(--surface);
    font-weight: 600;
}

.has-sidebar .selection-btn-primary {
    border-color: transparent;
    color: #fff;
    background: var(--plum);
}

.has-sidebar .selection-btn-primary:hover:not(:disabled) {
    background: var(--iris);
}

.has-sidebar .customer-thumb {
    border-color: var(--line);
    background: var(--soft);
}

/* ---------------------------------------------------------------- genel bakış (dashboard) */

.dash2 {
    max-width: 1320px;
}

.dash2-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.dash2-head h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.05;
}

.dash2-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 8px 0 0;
    color: var(--muted);
    text-transform: none;
}

.dash2-plan {
    padding: 3px 10px;
    border-radius: 999px;
    color: color-mix(in srgb, var(--champagne) 70%, #3a2700);
    background: var(--champagne-soft);
    font-size: .78rem;
    font-weight: 650;
}

:root[data-theme="dark"] .dash2-plan {
    color: var(--champagne);
    background: rgba(201, 161, 59, .14);
}

.dash2-plan.is-bad {
    color: #fff;
    background: var(--st-red);
}

.dash2-notice {
    margin: 8px 0 0;
    color: var(--st-red);
    font-weight: 600;
}

.dash2-actions {
    display: flex;
    gap: 8px;
}

.dash2-pipe {
    padding: 18px 20px 16px;
    margin-bottom: 16px;
}

.dash2-pipe-head,
.dash2-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.dash2-pipe-head h2,
.dash2-card-head h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 700;
}

/* imza öğe: aşama şeridi — her aşama kendi rengiyle, adet oranında genişler */
.dash2-ribbon {
    display: flex;
    gap: 4px;
}

.dash2-seg {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "bar bar" "num name" "num pct";
    align-items: center;
    gap: 0 10px;
    flex: var(--w) 1 0;
    min-width: 84px;
    color: var(--ink);
}

.dash2-seg-bar {
    grid-area: bar;
    height: 34px;
    margin-bottom: 8px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 60%),
        var(--c);
    transform-origin: left;
    animation: dash2-grow .7s cubic-bezier(.2, .8, .2, 1) both;
}

.dash2-seg:nth-child(2) .dash2-seg-bar { animation-delay: .06s; }
.dash2-seg:nth-child(3) .dash2-seg-bar { animation-delay: .12s; }
.dash2-seg:nth-child(4) .dash2-seg-bar { animation-delay: .18s; }

.dash2-seg:first-child .dash2-seg-bar { border-radius: 10px 6px 6px 10px; }
.dash2-seg:last-child .dash2-seg-bar { border-radius: 6px 10px 10px 6px; }

.dash2-seg:hover .dash2-seg-bar {
    filter: brightness(1.08) saturate(1.1);
}

@keyframes dash2-grow {
    from { transform: scaleX(.2); opacity: .2; }
    to { transform: none; opacity: 1; }
}

.dash2-seg-name {
    grid-area: name;
    align-self: end;
    overflow: hidden;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash2-seg strong {
    grid-area: num;
    font-family: var(--display-font);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.dash2-seg small {
    grid-area: pct;
    align-self: start;
    color: var(--muted);
    font-size: .74rem;
}

.dash2-pipe-sum {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.dash2-pipe-sum div {
    display: grid;
}

.dash2-pipe-sum span,
.dash2-pipe-sum small {
    color: var(--muted);
    font-size: .78rem;
}

.dash2-pipe-sum strong {
    font-family: var(--display-font);
    font-size: 1.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

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

.dash2-kpi {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    color: var(--ink);
    background: var(--surface);
    transition: border-color .15s ease, transform .15s ease;
}

.dash2-kpi:hover {
    border-color: color-mix(in srgb, var(--c) 45%, var(--line));
    transform: translateY(-1px);
}

.dash2-kpi-ico {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 13%, transparent);
}

.dash2-kpi-ico svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash2-kpi strong {
    font-family: var(--display-font);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
}

.dash2-kpi > span:last-child {
    color: var(--muted);
    font-size: .82rem;
}

.dash2-kpi.is-hot {
    border-color: color-mix(in srgb, var(--st-amber) 50%, var(--line));
    background: color-mix(in srgb, var(--st-amber) 7%, var(--surface));
}

.dash2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 16px;
}

.dash2-grid > .s-card {
    padding: 18px 20px;
}

.dash2-pb {
    display: inline-flex;
    padding: 3px;
    border-radius: 9px;
    background: var(--soft);
}

.dash2-pb button {
    min-width: 44px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    font-size: .78rem;
    font-weight: 650;
}

.dash2-pb button.is-on {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(36, 19, 63, .12);
}

.dash2-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    height: 190px;
    padding: 8px 4px 0;
    border-bottom: 1px solid var(--line);
}

.dash2-bar {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: end;
    height: 100%;
    text-align: center;
}

.dash2-bar-val {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.dash2-bar-fill {
    align-self: end;
    height: max(var(--h), 3px);
    margin: 4px 10% 0;
    border-radius: 7px 7px 2px 2px;
    background: color-mix(in srgb, var(--iris) 30%, var(--soft));
}

.dash2-bar.is-now .dash2-bar-fill {
    background: linear-gradient(180deg, var(--iris), var(--plum));
}

.dash2-bar-lbl {
    padding: 8px 0 6px;
    color: var(--muted);
    font-size: .76rem;
    text-transform: capitalize;
}

.dash2-money {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    font-size: .88rem;
}

.dash2-money th,
.dash2-money td {
    padding: 7px 4px;
    border-bottom: 1px solid var(--line);
    text-align: right;
}

.dash2-money thead th {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
}

.dash2-money tbody th {
    text-align: left;
    font-weight: 700;
}

.dash2-money tr:last-child > * {
    border-bottom: 0;
}

.dash2-money .is-due {
    color: var(--st-amber);
    font-weight: 700;
}

.dash2-agenda {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash2-agenda li {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 12px;
}

.dash2-agenda time {
    display: grid;
    place-items: center;
    height: 48px;
    border-radius: 12px;
    color: var(--plum);
    background: color-mix(in srgb, var(--iris) 10%, transparent);
    font-size: .7rem;
    font-weight: 650;
    line-height: 1;
    text-transform: capitalize;
}

:root[data-theme="dark"] .dash2-agenda time {
    color: #cdb8ff;
}

.dash2-agenda time b {
    font-family: var(--display-font);
    font-size: 1.2rem;
}

.dash2-agenda div {
    display: grid;
    min-width: 0;
}

.dash2-agenda strong {
    font-size: .92rem;
}

.dash2-agenda span {
    overflow: hidden;
    color: var(--muted);
    font-size: .82rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash2-rows {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash2-rows a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto minmax(100px, auto);
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.dash2-rows li:last-child a {
    border-bottom: 0;
}

.dash2-rows a:hover {
    background: var(--table-hover);
}

.dash2-doc {
    overflow: hidden;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dash2-when {
    color: var(--muted);
    font-size: .82rem;
}

.dash2-rows strong {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.dash2-rows small {
    color: var(--muted);
    font-weight: 600;
}

.dash2-skeleton {
    display: grid;
    gap: 14px;
}

.dash2-skeleton span {
    height: 120px;
    border-radius: var(--radius-m);
    background: linear-gradient(90deg, var(--soft), var(--surface), var(--soft));
    background-size: 200% 100%;
    animation: dash2-shimmer 1.2s linear infinite;
}

@keyframes dash2-shimmer {
    to { background-position: -200% 0; }
}

/* ---------------------------------------------------------------- fırsat panosu (kanban) */

.has-sidebar .pipeline-totals strong {
    font-family: var(--display-font);
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.has-sidebar .pipeline-board {
    grid-auto-columns: minmax(262px, 1fr);
    gap: 14px;
    padding-bottom: 14px;
}

.has-sidebar .pipeline-column {
    gap: 10px;
    min-height: 220px;
    padding: 12px 10px 12px;
    border: 0;
    border-radius: 14px;
    background: color-mix(in srgb, var(--col, var(--st-grey)) 5%, var(--soft));
    box-shadow: inset 0 3px 0 var(--col, var(--st-grey));
}

:root[data-theme="dark"] .has-sidebar .pipeline-column {
    background: color-mix(in srgb, var(--col, var(--st-grey)) 6%, #1a1229);
}

.has-sidebar .pipeline-column.is-won { --col: var(--st-green); }
.has-sidebar .pipeline-column.is-lost { --col: var(--st-red); }

.has-sidebar .pipeline-column.is-drop {
    outline: 2px dashed var(--col);
    outline-offset: -4px;
}

.has-sidebar .pipeline-column-head {
    display: grid;
    gap: 2px;
    padding: 4px 4px 6px;
}

.has-sidebar .pipeline-column-head strong {
    font-family: var(--display-font);
    font-size: 1.02rem;
    font-weight: 700;
}

.has-sidebar .pipeline-column-head span {
    color: var(--muted);
    font-size: .78rem;
}

.pipeline-empty {
    margin: 0;
    padding: 18px 8px;
    border: 1.5px dashed color-mix(in srgb, var(--col, var(--st-grey)) 35%, var(--line));
    border-radius: 12px;
    color: var(--muted);
    font-size: .8rem;
    text-align: center;
}

.has-sidebar .pipeline-card {
    position: relative;
    gap: 6px;
    padding: 12px 12px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(36, 19, 63, .05);
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.has-sidebar .pipeline-card:hover {
    border-color: color-mix(in srgb, var(--col) 45%, var(--line));
    box-shadow: 0 14px 28px -18px rgba(36, 19, 63, .55);
    transform: translateY(-1px);
}

.has-sidebar .pipeline-card.is-late {
    background: color-mix(in srgb, var(--st-red) 5%, var(--surface));
}

.pc-stripes {
    display: flex;
    gap: 4px;
}

.pc-stripes i {
    width: 26px;
    height: 4px;
    border-radius: 3px;
    background: var(--col);
}

.pc-stripes i + i {
    width: 18px;
    background: var(--st-grey);
}

.pc-stripes .pc-pb-usd { background: #3fb98a; }
.pc-stripes .pc-pb-eur { background: #f3c548; }
.pc-stripes .pc-pb-try { background: #ef6f6c; }
.pc-stripes .pc-pb-gbp { background: #6aa6ff; }

.has-sidebar .pipeline-card-title {
    color: var(--ink);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
}

.has-sidebar .pipeline-card-customer {
    margin-top: -3px;
    color: var(--muted);
    font-size: .82rem;
}

.pc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
}

.pc-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
}

.pc-date svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.pc-late {
    padding: 2px 7px;
    border-radius: 6px;
    color: #fff;
    background: var(--st-red);
    font-size: .7rem;
    font-weight: 700;
}

/* olasılık halkası */
.pc-ring {
    width: 20px;
    height: 20px;
    margin-left: auto;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, var(--surface) 64%, transparent 66%),
        conic-gradient(var(--col) calc(var(--p) * 1%), color-mix(in srgb, var(--col) 16%, var(--line)) 0);
}

.pc-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.pc-avatar {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--iris), var(--plum));
    font-size: .64rem;
    font-weight: 750;
}

.pc-quotes {
    padding: 2px 7px;
    border-radius: 6px;
    color: var(--plum);
    background: color-mix(in srgb, var(--iris) 12%, transparent);
    font-size: .72rem;
    font-weight: 650;
}

:root[data-theme="dark"] .pc-quotes {
    color: #cdb8ff;
}

.pc-foot strong {
    margin-left: auto;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- telefon */

@media (max-width: 1024px) {
    .dash2-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 860px) {
    .app-topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        height: 56px;
        padding: 0 12px;
        color: #fff;
        background: var(--aubergine);
    }

    .app-topbar-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #fff;
        font-family: var(--display-font);
        font-weight: 700;
    }

    .app-topbar-brand img {
        width: 28px;
        height: 28px;
        padding: 2px;
        border-radius: 8px;
        background: #fff;
    }

    .app-topbar-btn {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 10px;
        color: #fff;
        background: rgba(255, 255, 255, .08);
    }

    .app-topbar-btn.is-plus {
        color: var(--aubergine);
        background: var(--champagne);
    }

    .app-topbar-btn svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
    }

    .app-sidebar {
        width: min(86vw, 300px);
        transform: translateX(-102%);
        transition: transform .22s cubic-bezier(.2, .8, .2, 1);
        box-shadow: 20px 0 60px rgba(0, 0, 0, .3);
    }

    .app-sidebar.is-open {
        transform: none;
    }

    .site-shell.has-sidebar > main {
        margin-left: 0;
    }

    .has-sidebar .panel-page,
    .has-sidebar .form-page,
    .has-sidebar .erp-detail-page,
    .has-sidebar .jewelry-erp-page.erp-list-page {
        padding: 18px 14px 40px;
    }

    .dash2-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash2-ribbon {
        flex-wrap: wrap;
    }

    .dash2-seg {
        flex-basis: calc(50% - 4px);
    }

    .dash2-rows a {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dash2-rows .dash2-when,
    .dash2-rows .s-pill {
        display: none;
    }
}

/* =====================================================================
   Tanıtım panosu (PanoVitrini): giriş, kayıt ve tanıtım sayfası
   ===================================================================== */

.pv {
    --pad: 12px;
    --gap: 10px;
    --cpad: 8px;
    --card-h: 86px;
    --head-h: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    color: #1e1733;
    background: #f7f5fc;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 255, 255, .04);
    font-size: 12px;
    text-align: left;
}

.pv-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 14px;
    border-bottom: 1px solid #ebe6f4;
    background: #fff;
}

.pv-title {
    font-family: var(--display-font);
    font-size: 14px;
    font-weight: 700;
}

.pv-tabs {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 8px;
    background: #f1edf8;
}

.pv-tabs i {
    padding: 3px 9px;
    border-radius: 6px;
    color: #6c6584;
    font-style: normal;
    font-weight: 600;
}

.pv-tabs i.is-on {
    color: #1e1733;
    background: #fff;
    box-shadow: 0 1px 2px rgba(36, 19, 63, .12);
}

.pv-people {
    display: flex;
    margin-left: auto;
}

.pv-people b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-left: -6px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--a);
    font-size: 9px;
}

.pv-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    padding: var(--pad);
}

.pv-col {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: var(--cpad);
    border-radius: 12px;
    background: color-mix(in srgb, var(--col) 7%, #f3f0f9);
    box-shadow: inset 0 3px 0 var(--col);
}

.pv-head {
    display: grid;
    height: var(--head-h);
    padding: 2px 4px 0;
    line-height: 1.15;
}

.pv-head strong {
    font-family: var(--display-font);
    font-size: 13px;
}

.pv-head small {
    color: #6c6584;
    font-size: 11px;
}

.pv-card,
.pv-mover {
    display: grid;
    align-content: start;
    gap: 3px;
    height: var(--card-h);
    padding: 9px 10px;
    border: 1px solid #ebe6f4;
    border-radius: 10px;
    background: #fff;
}

.pv-card b,
.pv-mover b {
    overflow: hidden;
    font-size: 12.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pv-card em,
.pv-mover em {
    color: #6c6584;
    font-size: 11px;
    font-style: normal;
}

.pv-stripes {
    display: flex;
    gap: 3px;
}

.pv-stripes i {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--col, var(--stage-2));
}

.pv-stripes i.g { width: 13px; background: #3fb98a; }
.pv-stripes i.y { width: 13px; background: #f3c548; }

.pv-foot {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.pv-foot u {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--iris), var(--plum));
    font-size: 8px;
    font-weight: 750;
    text-decoration: none;
}

.pv-foot strong {
    margin-left: auto;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}

.pv-ghost,
.pv-landing {
    border: 1.5px dashed color-mix(in srgb, var(--col) 45%, #ddd6ea);
    background: transparent;
}

.pv-card.is-done {
    opacity: .85;
}

.pv-total {
    display: grid;
}

.pv-total span {
    grid-area: 1 / 1;
    font-weight: 700;
    color: var(--st-green);
}

.pv-total .b {
    opacity: 0;
}

/* hareket eden kart: 2. sütunun ilk yuvasından 3. sütunun ilk yuvasına */
.pv-mover {
    --cw: calc((100% - 2 * var(--pad) - 2 * var(--gap)) / 3);
    position: absolute;
    top: calc(44px + var(--pad) + var(--cpad) + var(--head-h) + 8px);
    left: calc(var(--pad) + var(--cw) + var(--gap) + var(--cpad));
    width: calc(var(--cw) - 2 * var(--cpad));
    --col: var(--stage-2);
    z-index: 2;
    box-shadow: 0 1px 2px rgba(36, 19, 63, .08);
    animation: pv-move 9s cubic-bezier(.65, .05, .25, 1) infinite;
}

.pv-chip {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 1px 6px;
    border-radius: 5px;
    color: #fff;
    background: var(--st-green);
    font-size: 9.5px;
    font-weight: 700;
    opacity: 0;
    animation: pv-chip 9s ease infinite;
}

@keyframes pv-move {
    0%, 16% { transform: none; box-shadow: 0 1px 2px rgba(36, 19, 63, .08); opacity: 1; }
    22% { transform: translateY(-6px) rotate(-1.5deg) scale(1.03); box-shadow: 0 22px 38px -14px rgba(36, 19, 63, .45); }
    46% { transform: translateX(calc(100% + 2 * var(--cpad) + var(--gap))) translateY(-6px) rotate(1deg) scale(1.03); box-shadow: 0 22px 38px -14px rgba(36, 19, 63, .45); }
    52%, 86% { transform: translateX(calc(100% + 2 * var(--cpad) + var(--gap))); box-shadow: 0 1px 2px rgba(36, 19, 63, .08); opacity: 1; }
    94% { transform: translateX(calc(100% + 2 * var(--cpad) + var(--gap))); opacity: 0; }
    95% { transform: none; opacity: 0; }
    100% { transform: none; opacity: 1; }
}

@keyframes pv-chip {
    0%, 48% { opacity: 0; }
    54%, 86% { opacity: 1; }
    94%, 100% { opacity: 0; }
}

.pv-mover .pv-stripes i:first-child {
    animation: pv-stripe 9s ease infinite;
}

@keyframes pv-stripe {
    0%, 48% { background: var(--stage-2); }
    54%, 90% { background: var(--st-green); }
    100% { background: var(--stage-2); }
}

.pv-total .a { animation: pv-total-a 9s ease infinite; }
.pv-total .b { animation: pv-total-b 9s ease infinite; }

@keyframes pv-total-a {
    0%, 50% { opacity: 1; transform: none; }
    54%, 90% { opacity: 0; transform: translateY(-6px); }
    96%, 100% { opacity: 1; transform: none; }
}

@keyframes pv-total-b {
    0%, 50% { opacity: 0; transform: translateY(6px); }
    54%, 90% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; }
}

.pv.is-compact {
    --card-h: 80px;
}

@media (prefers-reduced-motion: reduce) {
    .pv-mover, .pv-chip, .pv-total span, .pv-mover .pv-stripes i:first-child {
        animation: none !important;
    }
}

@media (max-width: 560px) {
    .pv-tabs, .pv-people { display: none; }
    .pv-col:nth-child(1) .pv-card:nth-child(3) { display: none; }
}

/* =====================================================================
   Giriş ve kayıt (auth2)
   ===================================================================== */

.auth2 {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    min-height: 100vh;
    background: var(--page);
}

.auth2-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow: hidden;
    padding: 34px clamp(28px, 4vw, 64px) 40px;
    color: #f1ecfb;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Cpath d='M20 60 140 20 260 110 410 40 500 150M140 20l40 170 120 60 140-90M260 110l40 140M20 60l60 200 120 70 100-80M80 260l-40 140M200 330l160 60 120-150'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.18'%3E%3Ccircle cx='140' cy='20' r='3'/%3E%3Ccircle cx='260' cy='110' r='3'/%3E%3Ccircle cx='410' cy='40' r='3'/%3E%3Ccircle cx='180' cy='190' r='3'/%3E%3Ccircle cx='300' cy='250' r='3'/%3E%3Ccircle cx='80' cy='260' r='3'/%3E%3Ccircle cx='200' cy='330' r='3'/%3E%3Ccircle cx='360' cy='390' r='3'/%3E%3C/g%3E%3C/svg%3E") right -60px top -40px / 620px no-repeat,
        radial-gradient(70% 60% at 85% 10%, rgba(122, 75, 224, .45), transparent 70%),
        radial-gradient(60% 50% at 0% 100%, rgba(201, 161, 59, .16), transparent 70%),
        linear-gradient(160deg, var(--aubergine-2), var(--aubergine) 60%);
}

.auth2-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--display-font);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.auth2-brand img {
    width: 34px;
    height: 34px;
    padding: 3px;
    border-radius: 10px;
    background: #fff;
}

.auth2-brand b {
    color: var(--champagne);
}

.auth2-copy {
    max-width: 34rem;
}

.auth2-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.025em;
}

.auth2-copy p {
    max-width: 32rem;
    margin: 16px 0 0;
    color: rgba(241, 236, 251, .74);
    font-size: 1.02rem;
    line-height: 1.6;
}

.auth2-stage .pv {
    max-width: 640px;
}

.auth2-proof {
    display: grid;
    gap: 8px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
    color: rgba(241, 236, 251, .78);
    font-size: .9rem;
}

.auth2-proof li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth2-proof li::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: none;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0f2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E") center / 12px no-repeat,
        var(--champagne);
}

.auth2-panel {
    display: grid;
    place-items: center;
    padding: 40px clamp(20px, 4vw, 56px);
}

.auth2-form-wrap {
    width: min(100%, 400px);
}

.auth2-form-wrap.is-wide {
    width: min(100%, 560px);
}

.auth2-form-wrap h2 {
    margin: 0;
    color: var(--navy);
    font-size: 2rem;
    font-weight: 700;
}

.auth2-sub {
    margin: 8px 0 26px;
    color: var(--muted);
}

.auth2-form {
    display: grid;
    gap: 14px;
}

.auth2 label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: .84rem;
    font-weight: 600;
}

.auth2 input:not([type=checkbox]):not([type=radio]),
.auth2 select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: var(--surface);
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth2 input:focus,
.auth2 select:focus {
    border-color: var(--iris);
    box-shadow: var(--focus);
    outline: none;
}

.auth2 input::placeholder {
    color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.auth2-submit,
.auth2 .form-submit {
    min-height: 48px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(180deg, var(--iris), var(--plum));
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 14px 28px -14px var(--plum);
    transition: filter .15s ease, transform .1s ease;
}

.auth2-submit:hover,
.auth2 .form-submit:hover {
    filter: brightness(1.08);
}

.auth2-submit:active {
    transform: translateY(1px);
}

.auth2-submit:disabled {
    opacity: .7;
}

.auth2-error,
.auth2 .form-message {
    margin: 4px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    color: #9b1c23;
    background: #fde8e9;
    font-size: .88rem;
}

:root[data-theme="dark"] .auth2-error,
:root[data-theme="dark"] .auth2 .form-message {
    color: #ffc9cc;
    background: rgba(229, 72, 77, .16);
}

.auth2-foot {
    margin: 22px 0 0;
    color: var(--muted);
}

.auth2-foot a {
    color: var(--iris);
    font-weight: 650;
}

.auth2-lang {
    display: inline-flex;
    gap: 4px;
    margin-top: 26px;
    padding: 3px;
    border-radius: 10px;
    background: var(--soft);
}

.auth2-lang button {
    padding: 5px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    font-size: .8rem;
    font-weight: 600;
}

.auth2-lang button.is-on {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(36, 19, 63, .12);
}

/* kayıt sihirbazı ve yerel kayıt formu auth2 içinde */
.auth2 .kayit-form,
.auth2 .crm-form {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.auth2 .field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.auth2 .check-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 6px;
    font-weight: 500;
}

.auth2 .form-submit {
    width: 100%;
}

.auth2 .kayit-adimlar li.is-done {
    border-color: var(--iris);
}

.auth2 .kayit-paket.is-selected {
    border-color: var(--iris);
    box-shadow: inset 0 0 0 1px var(--iris);
}

@media (max-width: 980px) {
    .auth2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth2-stage {
        gap: 16px;
        padding: 22px 20px 26px;
    }

    .auth2-stage .pv,
    .auth2-proof {
        display: none;
    }

    .auth2-copy h1 {
        font-size: 1.8rem;
    }

    .auth2-copy p {
        font-size: .92rem;
    }

    .auth2-panel {
        place-items: start center;
        padding: 26px 18px 40px;
    }

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

/* =====================================================================
   Tanıtım sayfası (/)
   ===================================================================== */

.is-public > main {
    background: var(--page);
}

.public-header.site-header {
    min-height: 68px;
    padding: 10px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(26, 15, 46, .82);
    box-shadow: none;
}

.public-header .brand-logo {
    height: 38px;
    padding: 3px;
    border-radius: 10px;
    background: #fff;
}

.public-header .main-nav a,
.public-header .ghost-link {
    color: rgba(241, 236, 251, .82);
    font-weight: 600;
}

.public-header .main-nav a:hover,
.public-header .ghost-link:hover {
    color: #fff;
}

.public-header .small-action {
    padding: 9px 16px;
    border-radius: 10px;
    color: var(--aubergine);
    background: linear-gradient(180deg, #f6e7bd, var(--champagne));
    font-weight: 700;
}

.public-header .lang-toggle {
    color: #f1ecfb;
    border-color: rgba(255, 255, 255, .18);
    background: transparent;
}

.lp {
    color: var(--ink);
}

.lp-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    min-height: min(100vh, 860px);
    padding: 120px clamp(20px, 5vw, 80px) 80px;
    color: #f1ecfb;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Cpath d='M20 60 140 20 260 110 410 40 500 150M140 20l40 170 120 60 140-90M260 110l40 140M20 60l60 200 120 70 100-80M80 260l-40 140M200 330l160 60 120-150'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.16'%3E%3Ccircle cx='140' cy='20' r='3'/%3E%3Ccircle cx='260' cy='110' r='3'/%3E%3Ccircle cx='410' cy='40' r='3'/%3E%3Ccircle cx='180' cy='190' r='3'/%3E%3Ccircle cx='300' cy='250' r='3'/%3E%3Ccircle cx='80' cy='260' r='3'/%3E%3Ccircle cx='200' cy='330' r='3'/%3E%3Ccircle cx='360' cy='390' r='3'/%3E%3C/g%3E%3C/svg%3E") left -120px bottom -60px / 700px no-repeat,
        radial-gradient(60% 70% at 80% 20%, rgba(122, 75, 224, .5), transparent 70%),
        radial-gradient(40% 50% at 10% 90%, rgba(201, 161, 59, .18), transparent 70%),
        linear-gradient(165deg, var(--aubergine-2), var(--aubergine) 65%);
}

.lp-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, 5.6vw, 5.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
}

.lp-hero-copy > p {
    max-width: 34rem;
    margin: 22px 0 0;
    color: rgba(241, 236, 251, .78);
    font-size: 1.12rem;
    line-height: 1.6;
}

.lp-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 13px;
    font-weight: 700;
    transition: filter .15s ease, background .15s ease;
}

.lp-btn.is-gold {
    color: var(--aubergine);
    background: linear-gradient(180deg, #f8ebc6, var(--champagne));
    box-shadow: 0 18px 36px -18px rgba(201, 161, 59, .9), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.lp-btn.is-gold:hover {
    filter: brightness(1.05);
}

.lp-btn.is-line {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
}

.lp-btn.is-line:hover {
    background: rgba(255, 255, 255, .08);
}

.lp-note {
    margin: 16px 0 0;
    color: rgba(241, 236, 251, .55);
    font-size: .88rem;
}

.lp-hero-demo .pv {
    transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
    transform-origin: left center;
}

.lp-tour {
    padding: 90px clamp(20px, 5vw, 80px) 70px;
}

.lp-tour-head {
    max-width: 44rem;
    margin-bottom: 28px;
}

.lp-tour-head h2,
.lp-who h2,
.lp-start h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.lp-tour-head p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.lp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.lp-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: var(--surface);
    font-weight: 650;
}

.lp-tab i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--c);
}

.lp-tab:hover {
    border-color: color-mix(in srgb, var(--c) 50%, var(--line));
}

.lp-tab.is-on {
    color: #fff;
    border-color: transparent;
    background: var(--aubergine);
}

:root[data-theme="dark"] .lp-tab.is-on {
    color: var(--aubergine);
    background: #efe8ff;
}

.lp-panel {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 56px);
    padding: clamp(22px, 3vw, 40px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%),
        var(--surface);
}

.lp-panel-text h3 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.15;
}

.lp-panel-text p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.lp-panel-text ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.lp-panel-text li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 550;
}

.lp-panel-text li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--c);
}

.lp-panel-shot {
    display: grid;
    min-height: 300px;
    place-items: center;
    padding: 18px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--c) 9%, var(--soft));
}

.lp-panel-shot > * {
    width: 100%;
    max-width: 460px;
    animation: s-pop .25s ease-out;
}

.lp-mini-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.lp-mini-col {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 220px;
    padding: 8px;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: inset 0 3px 0 var(--col);
}

.lp-mini-col b {
    font-size: .76rem;
}

.lp-mini-card {
    position: relative;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.lp-mini-card::before,
.lp-mini-card::after {
    content: "";
    position: absolute;
    left: 8px;
    height: 6px;
    border-radius: 3px;
}

.lp-mini-card::before {
    top: 10px;
    width: var(--w);
    background: color-mix(in srgb, var(--ink) 30%, transparent);
}

.lp-mini-card::after {
    top: 24px;
    width: 40%;
    background: color-mix(in srgb, var(--muted) 30%, transparent);
}

.lp-quote,
.lp-report,
.lp-phone {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--lift);
    font-size: .86rem;
}

.lp-quote-top,
.lp-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.lp-quote-line,
.lp-quote-total {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
}

.lp-quote-line.is-disc {
    color: var(--st-red);
}

.lp-quote-total {
    border: 0;
    font-size: 1rem;
}

.lp-quote-total strong {
    font-family: var(--display-font);
}

.lp-quote-why {
    padding: 8px 10px;
    border-radius: 8px;
    color: color-mix(in srgb, var(--st-amber) 70%, #4a2a00);
    background: color-mix(in srgb, var(--st-amber) 14%, transparent);
    font-weight: 600;
}

.lp-quote-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.lp-fake-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    color: #fff;
    background: var(--plum);
    font-size: .8rem;
    font-weight: 700;
}

.lp-fake-btn.is-red {
    background: var(--st-red);
}

.lp-fake-btn.is-line {
    color: var(--ink);
    border: 1px solid var(--line);
    background: transparent;
}

.lp-map {
    position: relative;
    aspect-ratio: 5 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #dfe9f3;
    box-shadow: var(--lift);
}

:root[data-theme="dark"] .lp-map {
    background: #1d2a3a;
}

.lp-map-land {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.lp-map-land path {
    fill: #f4f1ea;
    stroke: #d7cfbf;
}

:root[data-theme="dark"] .lp-map-land path {
    fill: #2a2438;
    stroke: #3a3150;
}

.lp-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.lp-pin.is-ring {
    border: 4px solid var(--c);
    background: #fff;
}

.lp-cluster {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 5px solid rgba(122, 75, 224, .25);
    border-radius: 50%;
    color: #fff;
    background: var(--iris);
    background-clip: padding-box;
    font-size: .8rem;
    font-weight: 750;
}

.lp-map-pop {
    position: absolute;
    left: 52%;
    top: 8%;
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--lift);
    font-size: .8rem;
}

.lp-map-pop .s-pill {
    justify-self: start;
    margin-top: 4px;
}

.lp-phone {
    max-width: 300px !important;
    border-radius: 26px;
    padding: 14px;
}

.lp-phone-top {
    padding: 4px 4px 8px;
    font-family: var(--display-font);
    font-weight: 700;
}

.lp-phone-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.lp-phone-row span {
    display: grid;
}

.lp-phone-row small {
    color: var(--muted);
}

.lp-phone-row em {
    font-style: normal;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lp-phone-row.is-open {
    border-color: color-mix(in srgb, var(--c) 50%, var(--line));
}

.lp-phone-row .lp-fake-btn {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 34px;
}

.lp-report-row {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
}

.lp-report-row span:not(:first-child) {
    text-align: right;
}

.lp-report-row.is-head {
    color: var(--muted);
    font-size: .76rem;
}

.lp-report-row .is-due {
    color: var(--st-red);
    font-weight: 700;
}

.lp-who {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: clamp(20px, 4vw, 60px);
    padding: 40px clamp(20px, 5vw, 80px) 80px;
}

.lp-who dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 36px;
    margin: 0;
}

.lp-who dl div {
    padding-top: 14px;
    border-top: 2px solid var(--ink);
}

.lp-who dt {
    font-family: var(--display-font);
    font-size: 1.2rem;
    font-weight: 700;
}

.lp-who dd {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.lp-start {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(20px, 4vw, 56px);
    margin: 0 clamp(12px, 3vw, 40px) 40px;
    padding: clamp(28px, 4vw, 52px);
    border-radius: 28px;
    color: #f1ecfb;
    background:
        radial-gradient(60% 90% at 100% 0%, rgba(122, 75, 224, .45), transparent 70%),
        var(--aubergine);
}

.lp-start h2 {
    color: #fff;
}

.lp-start p {
    margin: 14px 0 0;
    color: rgba(241, 236, 251, .74);
    line-height: 1.6;
}

.lp-steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: adim;
}

.lp-steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    counter-increment: adim;
}

.lp-steps li::before {
    content: counter(adim);
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: var(--champagne);
    font-family: var(--display-font);
    font-weight: 700;
}

.lp-steps b {
    color: #fff;
}

.lp-steps span {
    color: rgba(241, 236, 251, .65);
    font-size: .9rem;
}

.lp-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 26px clamp(20px, 5vw, 80px) 40px;
    color: var(--muted);
    font-size: .88rem;
}

.lp-foot span:first-child {
    color: var(--ink);
    font-weight: 700;
}

.lp-foot a {
    margin-left: auto;
    color: var(--iris);
    font-weight: 650;
}

@media (max-width: 980px) {
    .lp-hero,
    .lp-panel,
    .lp-who,
    .lp-start {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-hero {
        padding-top: 100px;
        min-height: 0;
    }

    .lp-hero-demo .pv {
        transform: none;
    }

    .lp-who dl {
        grid-template-columns: minmax(0, 1fr);
    }

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

.auth2-copy {
    margin-top: auto;
}

.auth2-stage > .pv:last-child {
    margin-bottom: auto;
}

.auth2-form-wrap h2 + .crm-form,
.auth2-form-wrap h2 + form {
    margin-top: 22px;
}

/* ---------------------------------------------------------------- detay sayfaları */

.has-sidebar .customer-detail-hero,
.has-sidebar .purchase-detail-hero {
    border: 0;
    border-radius: var(--radius-l);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Cpath d='M20 60 140 20 260 110 410 40 500 150M140 20l40 170 120 60 140-90M260 110l40 140M20 60l60 200 120 70 100-80'/%3E%3C/g%3E%3C/svg%3E") right -40px center / 560px no-repeat,
        radial-gradient(80% 140% at 100% 0%, rgba(122, 75, 224, .45), transparent 70%),
        linear-gradient(120deg, var(--aubergine-2), var(--aubergine));
    box-shadow: 0 18px 40px -24px rgba(26, 15, 46, .7);
}

.has-sidebar .customer-detail-hero::before,
.has-sidebar .customer-detail-hero::after,
.has-sidebar .purchase-detail-hero::before,
.has-sidebar .purchase-detail-hero::after {
    display: none;
}

.has-sidebar .customer-detail-hero h1,
.has-sidebar .customer-detail-hero h2,
.has-sidebar .purchase-detail-hero h1,
.has-sidebar .purchase-detail-hero h2 {
    font-family: var(--display-font);
    font-weight: 700;
    letter-spacing: -.02em;
}

.has-sidebar .detail-hero-icon {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .06);
}

.has-sidebar .card-section-heading,
.has-sidebar .user-detail-card .card-section-heading,
.has-sidebar .customer-detail-page .customer-card-form .card-section-heading,
.has-sidebar .customer-detail-page .customer-side-card .card-section-heading {
    color: var(--navy);
    background: transparent;
    border-bottom: 1px solid var(--line);
}

.has-sidebar .card-section-heading strong,
.has-sidebar .card-section-heading h2,
.has-sidebar .card-section-heading h3 {
    color: var(--navy);
    font-family: var(--display-font);
    font-weight: 700;
}

.has-sidebar .account-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.has-sidebar .sales-panel .sales-quick-actions,
.has-sidebar .sales-panel .timeline-form,
.has-sidebar .sales-panel .sales-mini-list,
.has-sidebar .sales-panel .timeline-list,
.has-sidebar .sales-panel .empty-state,
.has-sidebar .konum-karti > :not(.card-section-heading) {
    margin-left: 14px;
    margin-right: 14px;
}

.has-sidebar .sales-panel .sales-quick-actions {
    margin-top: 12px;
}

.has-sidebar .sales-panel .timeline-form {
    margin-top: 12px;
}

.has-sidebar .konum-karti > :last-child,
.has-sidebar .sales-panel > :last-child {
    margin-bottom: 14px;
}

.has-sidebar .sales-quick-actions a {
    border-radius: 999px;
    border-color: var(--line);
}

/* ---------------------------------------------------------------- raporlar, harita */

.has-sidebar .rapor-sekme {
    border-color: var(--line);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.has-sidebar .rapor-sekme:hover {
    border-color: color-mix(in srgb, var(--iris) 40%, var(--line));
}

.has-sidebar .rapor-sekme.is-active {
    border-color: var(--iris);
    box-shadow: inset 0 0 0 1px var(--iris), 0 10px 24px -16px var(--iris);
}

.has-sidebar .rapor-katalog {
    max-width: none;
}

.has-sidebar .rapor-sonuc .rapor-baslik {
    padding: 16px 18px 8px;
    margin: 0;
}

.has-sidebar .rapor-sonuc .rapor-not {
    padding: 0 18px;
}

.has-sidebar .rapor-sonuc .rapor-not:last-child {
    padding-bottom: 16px;
}

.has-sidebar .rapor-bar {
    background: linear-gradient(90deg, var(--iris) var(--oran), transparent var(--oran));
}

.has-sidebar .anasayfa-toolbar,
.has-sidebar .harita-lejant,
.has-sidebar .anasayfa-harita-wrap,
.has-sidebar .anasayfa-cozulemeyen {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.has-sidebar .anasayfa-harita-wrap {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    box-shadow: var(--lift);
}

.has-sidebar .anasayfa-harita {
    height: calc(100vh - 230px);
    min-height: 420px;
}

/* koyu temada eski sabit renklerin üzerine */
:root[data-theme="dark"] .has-sidebar input:not([type=checkbox]):not([type=radio]),
:root[data-theme="dark"] .has-sidebar select,
:root[data-theme="dark"] .has-sidebar textarea,
:root[data-theme="dark"] .has-sidebar .user-detail-form input,
:root[data-theme="dark"] .has-sidebar .user-detail-form select,
:root[data-theme="dark"] .auth2 input:not([type=checkbox]):not([type=radio]),
:root[data-theme="dark"] .auth2 select {
    color: var(--ink);
    background-color: var(--soft);
    border-color: var(--line);
}

:root[data-theme="dark"] .has-sidebar .user-detail-card .card-section-heading,
:root[data-theme="dark"] .has-sidebar .customer-detail-page .customer-card-form .card-section-heading,
:root[data-theme="dark"] .has-sidebar .customer-detail-page .customer-side-card .card-section-heading {
    background: transparent;
}

.has-sidebar .erp-combobox-option:hover,
.has-sidebar .erp-combobox-option:focus-visible,
.has-sidebar .erp-combobox-option.is-selected,
:root[data-theme="dark"] .has-sidebar .erp-combobox-option:hover,
:root[data-theme="dark"] .has-sidebar .erp-combobox-option:focus-visible {
    color: var(--ink);
    background: color-mix(in srgb, var(--iris) 14%, var(--surface));
}

.has-sidebar input::placeholder,
.has-sidebar textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 75%, transparent);
}

/* Detay kartı başlıkları: eski koyu bant kaldırıldı, yazı tema rengine döner */
.has-sidebar .customer-detail-page .customer-card-form .card-section-heading strong,
.has-sidebar .customer-detail-page .customer-side-card .card-section-heading strong,
.has-sidebar .user-detail-card .card-section-heading strong,
.has-sidebar .card-section-heading strong {
    color: var(--navy);
    font-size: 1.02rem;
    letter-spacing: -.01em;
}

.has-sidebar .customer-detail-page .customer-card-form .card-section-heading span,
.has-sidebar .customer-detail-page .customer-side-card .card-section-heading span,
.has-sidebar .card-section-heading span {
    color: var(--muted);
    font-weight: 600;
}

.has-sidebar .customer-detail-page .customer-side-card .summary-grid {
    margin: 14px;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
}

.has-sidebar .customer-summary-grid div {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--soft);
    border-color: var(--line);
    box-shadow: none;
}

.has-sidebar .customer-summary-grid strong {
    color: var(--navy);
    font-size: .92rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.has-sidebar .customer-summary-grid strong.currency-balance-negative {
    color: var(--st-red);
    background: none;
    border: 0;
}

/* Müşteri detayı: sağ sütun form yüksekliğine sabitlenmez, kartlar ezilmez */
@media (min-width: 1101px) {
    .has-sidebar .customer-detail-page .customer-side-stack {
        height: auto;
        min-height: 0;
    }
}

.has-sidebar .customer-side-stack > * {
    flex-shrink: 0;
}

.has-sidebar .customer-purchase-history-card .sales-mini-list,
.has-sidebar .customer-side-card .timeline-list {
    max-height: 340px;
    overflow-y: auto;
}

.has-sidebar .customer-side-stack .erp-side-card {
    border-radius: var(--r-lg, 16px);
}

/* Kullanıcı listesi: koyu başlık yerine diğer tablolarla aynı açık başlık */
.has-sidebar .erp-user-head {
    color: var(--muted);
    background: var(--soft);
    font-weight: 600;
    font-size: .78rem;
}

.has-sidebar .erp-user-data:nth-child(odd),
.has-sidebar .erp-user-data:nth-child(even) {
    background: var(--panel);
}

.has-sidebar .erp-user-data:hover,
.has-sidebar .erp-user-data.is-selected {
    background: color-mix(in srgb, var(--iris) 8%, var(--panel));
}

.has-sidebar .status-chip.status-active { background: var(--st-green); }
.has-sidebar .status-chip.status-passive { background: var(--st-grey); }
.has-sidebar .status-chip.is-ok { background: var(--st-green); }
.has-sidebar .status-chip.is-info { background: var(--st-blue); }
.has-sidebar .status-chip.is-warn { background: var(--st-amber); }
.has-sidebar .status-chip.is-bad { background: var(--st-red); }
.has-sidebar .status-chip.is-muted { background: var(--st-violet); }

/* Açık kart içindeki ikon düğmeleri (kullanıcı kartı vb.) */
.has-sidebar .user-detail-card .detail-hero-icon {
    border: 0;
    color: #fff;
    background: var(--plum);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--plum) 30%, transparent);
}

.has-sidebar .user-detail-card .detail-hero-icon svg {
    stroke: #fff;
}

.has-sidebar .user-detail-card .detail-cancel-icon {
    color: var(--ink);
    background: var(--soft);
    box-shadow: none;
}

.has-sidebar .user-detail-card .detail-cancel-icon svg {
    stroke: var(--ink);
}

/* Saha: telefon için tasarlandı; masaüstünde de sayfa genişliğini kullanır */
.has-sidebar .saha-page {
    max-width: 920px;
    margin: 0;
    background: none;
}

.has-sidebar .saha-kart {
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 1px 2px rgba(26, 15, 46, .05);
}

/* ---------------------------------------------------------------- mağaza analizi */

.mz-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mz-kart { margin-bottom: 16px; }
/* Kart içi form ve grafikler kenardan boşluklu; tablolar karta yaslı kalır. */
.has-sidebar .mz-kart > :not(h3):not(.table-responsive):not(.empty-state) { margin-left: 18px; margin-right: 18px; }
.has-sidebar .mz-kart > :last-child:not(.table-responsive) { margin-bottom: 18px; }
.has-sidebar .mz-kart > :first-child:not(h3) { margin-top: 18px; }
.has-sidebar .mz-kart > .mz-kroki { width: auto; }
.has-sidebar .mz-ziyaret > h3:not(:first-child) { margin-top: 8px; }
.mz-kart h3 { font-size: 1.05rem; margin: 0 0 14px; display: flex; align-items: baseline; gap: 8px; }
.mz-kart h3 small { font-family: var(--app-font); font-weight: 400; font-size: .8rem; color: var(--muted); }
.mz-bos { display: grid; gap: 4px; padding: 16px 18px; margin-bottom: 16px; border: 1px dashed var(--line); border-radius: var(--radius-m); background: var(--surface-2); }
.mz-bos span { color: var(--muted); }

.mz-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mz-kpi-kart { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--lift); }
.mz-kpi-kart > span { color: var(--muted); font-size: .82rem; }
.mz-kpi-kart strong { font-family: var(--display-font); font-size: 1.7rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mz-kpi-kart small { color: var(--muted); font-size: .78rem; }
.mz-kpi-kart.is-vurgu { border-color: color-mix(in srgb, var(--champagne) 60%, var(--line)); background: color-mix(in srgb, var(--champagne-soft) 45%, var(--surface)); }
:root[data-theme="dark"] .mz-kpi-kart.is-vurgu { background: color-mix(in srgb, var(--champagne) 12%, var(--surface)); }

.mz-izgara { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
@media (max-width: 960px) { .mz-izgara { grid-template-columns: 1fr; } }

.mz-huni { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mz-huni li { display: grid; gap: 2px; }
.mz-huni small { color: var(--muted); font-size: .75rem; padding-left: 4px; }
.mz-huni-bar { position: relative; display: flex; align-items: baseline; gap: 10px; min-height: 38px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--soft); }
.mz-huni-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: color-mix(in srgb, var(--iris) 22%, transparent); }
.mz-huni li:last-child .mz-huni-bar::before { background: color-mix(in srgb, var(--st-green) 30%, transparent); }
.mz-huni-bar > * { position: relative; }
.mz-huni-bar strong { font-variant-numeric: tabular-nums; min-width: 56px; }
.mz-huni-bar span { color: var(--muted); }

.mz-kroki { position: relative; width: 100%; max-height: 420px; border: 1px solid var(--line); border-radius: var(--radius-s);
    background-color: var(--surface-2);
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 5% 8.33%; }
.mz-bolge { position: absolute; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 4px; overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--st-red) 45%, var(--line)); border-radius: 6px; text-align: center; font: inherit; color: var(--ink);
    background: color-mix(in srgb, var(--st-red) var(--isi, 0%), var(--surface)); }
.mz-bolge strong { font-size: .8rem; line-height: 1.15; }
.mz-bolge span { font-size: .72rem; color: var(--ink); opacity: .78; font-variant-numeric: tabular-nums; }
.mz-bolge.is-vitrin { border-style: dashed; }
.mz-kroki.is-duzen .mz-bolge { cursor: pointer; background: color-mix(in srgb, var(--c, var(--st-blue)) 14%, var(--surface)); border-color: color-mix(in srgb, var(--c, var(--st-blue)) 55%, var(--line)); }
.mz-kroki.is-duzen .mz-bolge.is-secili { outline: 2px solid var(--iris); outline-offset: 1px; z-index: 1; }
.mz-bolge.is-tip-vitrin { --c: var(--st-amber); }
.mz-bolge.is-tip-giris { --c: var(--st-green); }
.mz-bolge.is-tip-kabin { --c: var(--st-pink); }
.mz-bolge.is-tip-kasa { --c: var(--st-teal); }
.mz-bolge:focus-visible { outline: none; box-shadow: var(--focus); }
.mz-olcek { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: .75rem; }
.mz-olcek i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--surface), var(--st-red)); border: 1px solid var(--line); }

.mz-ozet { margin: -6px 0 10px; color: var(--muted); }
.mz-saatler { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 8px; }
.mz-saat { flex: 1; display: grid; grid-template-rows: 1fr auto; height: 100%; min-width: 0; }
.mz-saat-cubuk { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.mz-saat-cubuk i { display: block; width: 72%; min-height: 2px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--iris) 55%, var(--surface)); }
.mz-saat.is-tepe .mz-saat-cubuk i { background: var(--iris); }
.mz-saat-cubuk b { font-size: .72rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.mz-saat.is-tepe .mz-saat-cubuk b { color: var(--ink); }
.mz-saat > span { text-align: center; font-size: .72rem; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }

.mz-page .sales-table .sales-badge { margin-left: 8px; }
.mz-satir { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.mz-satir > label { display: grid; gap: 4px; flex: 1 1 140px; font-size: .82rem; color: var(--muted); }
.mz-satir > label.mz-genis { flex: 3 1 260px; position: relative; }
.mz-satir > label.mz-tam { flex: 1 1 100%; }
.mz-satir > label.check-line { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--ink); }
.mz-satir input, .mz-satir select, .mz-satir textarea { width: 100%; }
.mz-satir .mz-sil { flex: 0 0 auto; align-self: center; }
.mz-alt { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mz-kaydet { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }

.mz-secili { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); color: var(--ink); }
.mz-oneri { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; display: grid; margin-top: 4px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); box-shadow: var(--lift); overflow: hidden; }
.mz-oneri button { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 0; background: none; text-align: left; color: var(--ink); font: inherit; }
.mz-oneri button:hover, .mz-oneri button:focus-visible { background: var(--table-hover); outline: none; }
.mz-oneri small { color: var(--muted); }

.mz-urun-satir { padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-2); }
.mz-urun-satir .mz-satir { margin-bottom: 0; }
.mz-tipler { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mz-tip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .86rem; }
.mz-tip.is-on { border-color: var(--iris); background: color-mix(in srgb, var(--iris) 14%, var(--surface)); font-weight: 600; }
.mz-tip.is-satis.is-on { border-color: var(--st-green); background: color-mix(in srgb, var(--st-green) 16%, var(--surface)); }
.mz-tip.is-eksik.is-on { border-color: var(--st-red); background: color-mix(in srgb, var(--st-red) 12%, var(--surface)); }
.mz-tip:focus-visible { outline: none; box-shadow: var(--focus); }

.mz-sekme { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mz-bilgi { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 12px 0 16px; }
.mz-bilgi dt { color: var(--muted); font-weight: 500; }
.mz-bilgi dd { margin: 0; overflow-wrap: anywhere; }
.mz-anahtar { font-size: .95rem; padding: 4px 8px; border-radius: 6px; background: var(--soft); user-select: all; }
.mz-ornek { font-size: .78rem; padding: 10px 12px; border-radius: var(--radius-s); background: var(--soft); overflow-x: auto; }

@media (max-width: 600px) {
    .mz-bolge strong { font-size: .68rem; }
    .mz-bolge span { display: none; }
    .has-sidebar .mz-kart > :not(h3):not(.table-responsive):not(.empty-state) { margin-left: 14px; margin-right: 14px; }
    .mz-saatler { height: 140px; gap: 2px; }
    .mz-bilgi { grid-template-columns: 1fr; }
}
