:root {
    --bg: #0f1419;
    --surface: #1a222c;
    --surface2: #243040;
    --text: #e8eef4;
    --muted: #8b9aab;
    --accent: #3d9cf5;
    --accent2: #5ae4a8;
    --danger: #f07178;
    --radius: 12px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
    --max: 1080px;
    --touch: 44px;
    --nav-break: 769px;
}

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

body {
    margin: 0;
    font-family: var(--font);
    background: radial-gradient(1200px 600px at 10% -10%, #1e3a5f 0%, transparent 55%),
        radial-gradient(900px 500px at 100% 0%, #1a3d3a 0%, transparent 50%),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-tap-highlight-color: transparent;
}

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

a:hover {
    text-decoration: underline;
}

.layout--public .main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.25rem 1.5rem 4rem;
    padding-bottom: max(4rem, env(safe-area-inset-bottom));
}

/* Uygulama kabuğu: üst bar ile ana içerik (deneme bandı dahil) aynı max-genişlik ve yatay padding */
.layout--app .main--app {
    width: 100%;
    max-width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

/* Ayarlardan: yönetim / satış için kenar boşluklarını azaltır (tam ekran hissi) */
body.layout--app.layout--compact-admin .main--app,
body.layout--app.layout--compact-pos .main--app {
    max-width: 100%;
    padding: 0.35rem 0.5rem;
    padding-left: max(0.35rem, env(safe-area-inset-left));
    padding-right: max(0.35rem, env(safe-area-inset-right));
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
}

body.layout--app.layout--compact-admin .topbar__row,
body.layout--app.layout--compact-pos .topbar__row {
    max-width: 100%;
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
}

body.layout--app.layout--compact-admin .section.section--admin .admin-grid {
    max-width: 100%;
}

.topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: max(0.4rem, env(safe-area-inset-top));
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0.42rem;
}

.topbar__row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    max-width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

.topbar__end {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
}

/* Dil: hamburger / masaüstü menüsünün hemen solunda */
.lang-picker {
    position: relative;
    flex: 0 0 auto;
}

.lang-picker__summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 30px;
    padding: 0.2rem 0.45rem 0.2rem 0.4rem;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    user-select: none;
}

.lang-picker__summary::-webkit-details-marker {
    display: none;
}

.lang-picker__summary:hover,
.lang-picker__summary:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
    outline: none;
}

.lang-picker[open] > .lang-picker__summary {
    border-color: rgba(61, 156, 245, 0.35);
}

.lang-picker__flag {
    font-size: 1.05rem;
    line-height: 1;
}

.lang-picker__name {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-picker__menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 30;
    min-width: 11rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(22, 28, 36, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.lang-picker__item {
    margin: 0;
}

.lang-picker__opt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-picker__opt:hover,
.lang-picker__opt:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.lang-picker__opt.is-active {
    background: rgba(61, 156, 245, 0.12);
}

.lang-picker__opt .lang-picker__flag {
    flex-shrink: 0;
}

.lang-picker__label {
    flex: 1 1 auto;
    min-width: 0;
}

.brand {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav {
    font-size: 0.95rem;
}

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

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

.nav--inline {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.nav--stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav--stack a {
    min-height: var(--touch);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: var(--text);
}

.nav--stack a:hover,
.nav--stack a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.nav--app a {
    color: var(--text);
    opacity: 0.9;
}

.nav--app.nav--inline a:hover {
    opacity: 1;
}

@media (min-width: 769px) {
    .nav--inline {
        display: flex;
    }

    .drawer {
        display: none;
    }
}

.drawer {
    position: relative;
    flex-shrink: 0;
}

.drawer summary {
    list-style: none;
}

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

.drawer__trigger {
    cursor: pointer;
    min-width: var(--touch);
    min-height: var(--touch);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--surface2);
    color: var(--text);
}

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

.drawer__icon {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.drawer__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: min(18rem, calc(100vw - 2rem));
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    z-index: 30;
}

.drawer__panel--app {
    left: auto;
}

.form-logout {
    margin: 0.5rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-logout--inline {
    margin: 0;
    padding: 0;
    border: none;
    display: inline-flex;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--accent);
    color: #061018;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    filter: brightness(1.08);
    text-decoration: none;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.35);
}

.btn--danger {
    background: transparent;
    color: var(--danger);
    border-color: rgba(240, 113, 120, 0.55);
}

.btn--danger:hover {
    border-color: var(--danger);
    background: rgba(240, 113, 120, 0.12);
}

.inline-form {
    display: inline;
}

.inline-form button {
    margin: 0;
}

.btn--small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.btn--nav {
    min-height: var(--touch);
    padding-left: 1rem;
    padding-right: 1rem;
}

.btn--touch {
    min-height: var(--touch);
}

.btn--block {
    width: 100%;
}

@media (max-width: 768px) {
    .form input {
        font-size: 16px;
    }
}

.hero {
    padding: 2.5rem 0 2rem;
}

.hero__inner {
    max-width: 40rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--accent2);
    margin: 0 0 0.75rem;
}

.hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.lead {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.note {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0;
}

.section {
    padding: 2.5rem 0;
}

.section--alt {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    margin: 1rem 0;
}

.section--narrow {
    max-width: 28rem;
    margin: 0 auto;
}

.section__title {
    font-size: 1.35rem;
    margin: 0 0 1rem;
}

.section__lead {
    color: var(--muted);
    margin: 0 0 1rem;
    max-width: 42rem;
}

.section__subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.page-title {
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.card--form {
    max-width: 100%;
}

.split {
    display: grid;
    gap: 2rem;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form label {
    display: block;
    margin-bottom: 1rem;
}

.form label span {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.form label.settings-radio {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form label.settings-radio span {
    display: inline;
    margin-bottom: 0;
    font-size: 0.92rem;
    color: var(--text);
}

.form label.settings-radio input[type='radio'] {
    width: auto;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.form input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--surface2);
    color: var(--text);
    font: inherit;
}

.form select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--surface2);
    color: var(--text);
    font: inherit;
}

.checkbox {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    user-select: none;
    margin: 0.25rem 0 1rem;
}

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

.section__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.form--row {
    display: flex;
    gap: 0.75rem;
    align-items: end;
    margin: 1rem 0 1.25rem;
}

.form__grow {
    flex: 1 1 auto;
}

.table {
    padding: 0.5rem;
}

.table__head,
.table__row {
    display: grid;
    grid-template-columns: 90px 1fr 120px 120px 90px 120px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.75rem;
    border-radius: 10px;
}

.table__head {
    color: var(--muted);
    font-size: 0.85rem;
}

.table__row {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    margin: 0.5rem 0;
}

.table--sales-report-cashiers > .table__head,
.table--sales-report-cashiers > .table__row {
    grid-template-columns: minmax(8.5rem, 1.35fr) repeat(6, minmax(4.25rem, 1fr));
}

/*
 * Yönetim ürün listesi: 7/8 sütun, satırlar yalnızca .products-list-rows içinde
 * (genel .table__row 6 kol ile çakışmasın). align-items: start — çok satırlı ad
 * hücresinde kategori yanlış hizalanmış gibi görünmesin.
 */
.admin-products-table > .table__head,
.admin-products-table .products-list-rows > .table__row:not(.products-list-empty) {
    align-items: start;
}

.admin-products-table--with-actions > .table__head,
.admin-products-table--with-actions .products-list-rows > .table__row:not(.products-list-empty) {
    display: grid !important;
    /* İsim sütunu: min 0 olmasın — dar ekranda 1fr sıfıra inince metin tamamen kayboluyordu */
    grid-template-columns: 5.5rem minmax(11rem, 1.5fr) minmax(7rem, 10rem) minmax(6rem, 8rem) 6.5rem 5.5rem 6rem minmax(8.5rem, auto) !important;
}

.admin-products-table--no-actions > .table__head,
.admin-products-table--no-actions .products-list-rows > .table__row:not(.products-list-empty) {
    display: grid !important;
    grid-template-columns: 5.5rem minmax(11rem, 1.5fr) minmax(7rem, 10rem) minmax(6rem, 8rem) 6.5rem 5.5rem 6rem !important;
}

/* Genel .table__title nowrap + overflow:hidden dar hücrede metni görünmez yapıyor */
.admin-products-table .table__main .table__title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.admin-products-table .table__main .table__sub {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-products-table > .table__head > div {
    min-width: 0;
    overflow-wrap: break-word;
    white-space: normal;
}

.admin-products-table .table__actions {
    align-self: center;
}

.table__row.products-list-empty {
    display: block;
    text-align: center;
}

.products-list-empty-note {
    margin: 0;
}

.products-list-sentinel {
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.products-list-status {
    margin: 0.5rem 0 0;
    text-align: center;
}

/* Denetim: liste icinde kaydirma, sayfa uzamasin */
.audit-log-scroll {
    max-height: min(58vh, 26rem);
    margin: 0.75rem 0;
}

.audit-log-meta {
    margin: 0 0 0.25rem;
}

.audit-action-cell {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    line-height: 1.35;
}

.table--audit .table__head,
.table--audit .table__row {
    grid-template-columns: 4.5rem minmax(11rem, 1.5fr) minmax(8rem, 1fr) 7.5rem minmax(9rem, auto) 0.5rem;
}

/* Yönetim satış listesi: fiş, zaman, kasiyer, satır/adet, tutar, ürün özeti, aksiyon */
.table--sales-list > .table__head,
.table--sales-list > .table__row {
    grid-template-columns: 4.25rem minmax(10rem, 1.05fr) minmax(6.5rem, 0.85fr) 5.25rem 5.25rem minmax(7rem, 1.2fr) minmax(9.5rem, auto);
    align-items: start;
}

.audit-pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.25rem 0 1rem;
}

.audit-pager__status {
    color: var(--muted);
    font-size: 0.9rem;
}

.audit-pager__nums {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.audit-pager__ellipsis {
    padding: 0 0.15rem;
    color: var(--muted);
    user-select: none;
}

.audit-pager__num--current {
    border-color: rgba(61, 156, 245, 0.55);
    background: rgba(61, 156, 245, 0.18);
    pointer-events: none;
    cursor: default;
}

.table--nav-traffic-log.table--audit .table__head,
.table--nav-traffic-log.table--audit .table__row {
    grid-template-columns: 4.5rem minmax(10rem, 1.2fr) minmax(7.5rem, 1fr) minmax(8rem, 1.1fr) 7.5rem minmax(9rem, auto);
}

/* Master katalog / dagitim — barkod, ad, kategori, marka, firma, fiyat, birim, PB, aksiyon */
.table--master-pool .table__head,
.table--master-pool .table__row {
    grid-template-columns: 92px minmax(0, 1fr) 78px minmax(0, 0.75fr) minmax(0, 0.85fr) 72px 56px 48px 100px;
}

.table--master-pool.table--with-check .table__head,
.table--master-pool.table--with-check .table__row {
    grid-template-columns: 40px 88px minmax(0, 1fr) 82px minmax(0, 0.8fr) minmax(0, 0.95fr) 84px;
}

.table--master-pool.table--with-check.table--master-dist-meta .table__head,
.table--master-pool.table--with-check.table--master-dist-meta .table__row {
    grid-template-columns: 40px minmax(4.5rem, 0.42fr) minmax(0, 1fr);
}

.table--ledger .table__head,
.table--ledger .table__row {
    grid-template-columns: 140px minmax(0, 1.2fr) 100px minmax(0, 1fr);
}

/* Master uyeler: uzun metin kirilir; form alanlari etiket + aciklama ile dikey */
.master-tenants-page-title {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.master-tenants-form-intro {
    max-width: 52rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.admin-table-scroll--master-tenants {
    max-height: min(75vh, 48rem);
}

.card--master-tenants .admin-table-scroll {
    margin-top: 0.35rem;
}

.table--master-tenants {
    min-width: 76rem;
}

.table--master-tenants .table__head > div,
.table--master-tenants .table__row > div {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.table--master-tenants .table__head,
.table--master-tenants .table__row {
    grid-template-columns:
        minmax(8rem, 1.05fr)
        minmax(7rem, 1fr)
        minmax(4.5rem, 0.55fr)
        minmax(4.5rem, 0.55fr)
        minmax(4rem, 0.5fr)
        minmax(4.75rem, 0.55fr)
        minmax(4.75rem, 0.55fr)
        minmax(4.75rem, 0.55fr)
        minmax(4rem, 0.5fr)
        minmax(15rem, 1.85fr);
    gap: 0.5rem 0.45rem;
    align-items: start;
    font-size: 0.86rem;
}

.table--master-tenants .master-tenants-cell--dt {
    font-variant-numeric: tabular-nums;
}

.table--master-tenants .master-tenants-cell--email {
    font-size: 0.82rem;
}

.master-tenants-wrap {
    display: inline;
    overflow-wrap: anywhere;
}

.form--master-tenant-update {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.15rem 0;
}

.master-tenant-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.master-tenant-field__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text, inherit);
    line-height: 1.25;
}

.master-tenant-field__hint {
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.form--master-tenant-update .input--small {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.master-tenant-field--submit {
    margin-top: 0.15rem;
}

.table__main {
    min-width: 0;
}

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

.table__sub {
    color: var(--muted);
    font-size: 0.85rem;
}

.table__actions {
    display: flex;
    justify-content: end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Admin stok: kaydirilabilir tablo + miktar filtreleri */
.admin-table-scroll {
    max-height: min(52vh, 24rem);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-top: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.admin-table-scroll--compact {
    max-height: min(36vh, 16rem);
}

.admin-table-scroll--movements {
    max-height: min(45vh, 20rem);
}

.admin-table-scroll .table {
    padding: 0.35rem 0.5rem 0.75rem;
    min-width: min(100%, 480px);
}

.admin-table-scroll .table__head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
    margin: 0 0 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.admin-table-scroll .table__row {
    margin: 0.35rem 0;
}

.table--stock-qty .table__head,
.table--stock-qty .table__row {
    grid-template-columns: minmax(56px, 72px) minmax(0, 1.25fr) minmax(72px, 100px) minmax(68px, 88px) minmax(68px, 84px);
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.table--stock-qty .table__row > div {
    min-width: 0;
}

.stock-qty-row.is-hidden {
    display: none !important;
}

.table--stock-qty .table__row.stock-qty-row--warn {
    border-color: rgba(240, 113, 120, 0.45);
    background: rgba(240, 113, 120, 0.08);
}

.table--stock-qty .table__row.stock-qty-row--zero {
    border-color: rgba(255, 180, 80, 0.35);
    background: rgba(255, 180, 80, 0.06);
}

.table--stock-recent .table__head,
.table--stock-recent .table__row {
    grid-template-columns: 56px minmax(0, 1fr) 80px 72px minmax(88px, 1fr);
    gap: 0.5rem;
}

.stock-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    justify-content: flex-start;
    margin-bottom: 0.35rem;
}

.stock-page__head .page-title,
.stock-bulk__title-row .page-title {
    margin: 0;
}

.stock-page__bulk-btn {
    flex: 0 0 auto;
}

.stock-bulk__search-card {
    margin-bottom: 0.85rem;
}

.stock-bulk__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 1rem;
}

.stock-bulk__search-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 18rem;
    min-width: 0;
    max-width: 36rem;
}

.stock-bulk__load-all {
    flex: 0 0 auto;
    white-space: nowrap;
}

.stock-bulk__count {
    margin: 0 0 0.5rem;
}

.stock-bulk__scroll {
    max-height: min(70vh, 38rem);
}

.table--stock-bulk .table__head,
.table--stock-bulk .table__row {
    grid-template-columns:
        minmax(44px, 56px)
        minmax(5rem, 0.9fr)
        minmax(4.5rem, 0.75fr)
        minmax(7rem, 1.35fr)
        minmax(4rem, 0.65fr)
        minmax(5rem, 0.85fr)
        minmax(52px, 4.5rem)
        minmax(56px, 5.5rem)
        minmax(72px, 5.5rem);
    gap: 0.4rem 0.45rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.table--stock-bulk .table__row > div {
    min-width: 0;
}

.stock-bulk__barcodes {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-bulk__qty-input {
    width: 100%;
    max-width: 5.75rem;
    padding: 0.35rem 0.45rem;
}

.stock-bulk__action {
    text-align: right;
}

.stock-bulk__sentinel {
    height: 2rem;
    width: 100%;
}

.stock-bulk__status--error {
    color: #fca5a5;
}

.stock-bulk__readonly-note {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.stock-overview-card {
    margin-bottom: 1rem;
}

.stock-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.stock-kpi {
    flex: 1 1 140px;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.stock-kpi__value {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.stock-kpi__label {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.stock-kpi--danger .stock-kpi__value {
    color: var(--danger);
}

.stock-kpi--warn .stock-kpi__value {
    color: #f0b050;
}

.stock-kpi--total .stock-kpi__value {
    color: var(--accent2);
}

.stock-recent-card {
    margin-bottom: 1rem;
}

.stock-qty-filters {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.75rem 0 0.25rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.stock-qty-filters__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stock-qty-filters__inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.stock-qty-filters__field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 120px;
}

.stock-qty-filters__field input {
    max-width: 140px;
}

.stock-qty-filters__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

#stock-qty-section .stock-qty-search-row.form--row {
    align-items: center;
    margin-bottom: 0.5rem;
}

#stock-qty-section .stock-qty-search-row .form__grow {
    min-width: 0;
}

.mono {
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.card--scan {
    margin: 0.75rem 0 1rem;
    padding: 0.9rem;
}

.scan__row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.scan__video {
    width: 100%;
    max-height: 260px;
    border-radius: 10px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.image-preview {
    margin-top: 0.5rem;
}

.image-preview img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
}

.section.section--admin .admin-grid {
    max-width: min(1180px, 100%);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.admin-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 220px 1fr;
}

.label-like > span:first-child {
    display: block;
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.brand-picker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.brand-picker-row select {
    flex: 1;
    min-width: 140px;
}

.brand-dialog {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    background: var(--surface);
    color: var(--text);
    max-width: min(420px, 92vw);
}

.brand-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.brand-dialog__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.brand-dialog__field {
    display: block;
    margin-top: 0.5rem;
}

.brand-dialog__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.brand-dialog__err {
    margin-top: 0.5rem;
    color: var(--danger);
}

/* Master: yalnizca liste tablolari .master-table-scroll icinde kayar (sayfa degil) */
.master-table-scroll {
    max-height: min(52vh, 30rem);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-top: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.master-table-scroll .table {
    padding: 0.35rem 0.5rem 0.75rem;
    margin-top: 0;
}

.master-table-scroll .table__head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
    margin: 0 0 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.master-table-scroll .table__row {
    margin: 0.35rem 0;
}

.card > .master-table-scroll:first-child {
    margin-top: 0;
}

.admin-sidebar {
    height: fit-content;
    position: sticky;
    top: 90px;
}

.admin-sidebar__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.admin-nav {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.admin-nav a {
    color: var(--text);
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.01);
}

.admin-nav a:hover {
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.12);
}

.admin-nav a.active {
    border-color: rgba(61, 156, 245, 0.45);
    background: rgba(61, 156, 245, 0.12);
}

.admin-nav button.admin-nav__live-support {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.01);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.admin-nav button.admin-nav__live-support:hover {
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.12);
}

/* Yönetim / master: mobilde sol çekmece menü */
.js-admin-drawer .admin-mobile-nav-bar {
    display: none;
}

.admin-drawer-open__icon {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
    flex-shrink: 0;
}

.admin-drawer-open {
    gap: 0.45rem;
}

@media (max-width: 768px) {
    body.admin-drawer-open {
        overflow: hidden;
    }

    .js-admin-drawer .admin-mobile-nav-bar {
        display: flex;
        align-items: center;
        margin-bottom: 0.65rem;
    }

    .js-admin-drawer .admin-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .js-admin-drawer .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(18.5rem, 88vw);
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        z-index: 45;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        border-radius: 0;
        padding-top: max(0.65rem, env(safe-area-inset-top));
        padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
        padding-left: max(0.65rem, env(safe-area-inset-left));
        padding-right: 0.65rem;
        box-sizing: border-box;
    }

    .js-admin-drawer.is-open .admin-sidebar {
        transform: translateX(0);
        box-shadow: 8px 0 36px rgba(0, 0, 0, 0.5);
    }

    .admin-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 40;
        margin: 0;
        padding: 0;
        border: none;
        background: rgba(0, 0, 0, 0.5);
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.2s ease,
            visibility 0.2s ease;
    }

    .js-admin-drawer.is-open .admin-drawer-backdrop {
        opacity: 1;
        visibility: visible;
    }
}

@media (min-width: 769px) {
    .js-admin-drawer .admin-drawer-backdrop {
        display: none !important;
    }
}

.admin-nav__badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.08rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 999px;
    background: rgba(230, 126, 80, 0.35);
    color: var(--text);
    vertical-align: middle;
}

.section--master .master-dashboard__kpis {
    margin-top: 0.5rem;
}

.section--master #receipt-requests {
    scroll-margin-top: 1rem;
}

.admin-content .card {
    margin-bottom: 0.8rem;
}

/* Yönetim — müşteriler: sadakat kartı listesi ve detay kahramanı */
.loyalty-cards-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.loyalty-card {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(155deg, rgba(61, 156, 245, 0.14) 0%, var(--surface) 42%, var(--surface) 100%);
    overflow: hidden;
    transition:
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.loyalty-card:hover {
    text-decoration: none;
    border-color: rgba(61, 156, 245, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

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

.loyalty-card__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0.85;
}

.loyalty-card__body {
    padding: 1rem 1.2rem 1.15rem;
}

.loyalty-card__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent2);
}

.loyalty-card__name {
    margin: 0 0 0.45rem;
    font-size: 1.12rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.loyalty-card__contact {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
    word-break: break-word;
}

.loyalty-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.loyalty-card__balance {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

.loyalty-card__balance-value {
    font-size: 1.85rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--accent2);
    letter-spacing: -0.03em;
}

.loyalty-card__balance-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.loyalty-card__cta {
    pointer-events: none;
}

.loyalty-cards-empty {
    text-align: center;
    padding: 2rem 1.25rem;
}

.loyalty-cards-pager {
    margin-top: 1.15rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}

.customer-loyalty-hero {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(90, 228, 168, 0.12) 0%, rgba(61, 156, 245, 0.1) 48%, var(--surface) 100%);
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

.customer-loyalty-hero__accent {
    height: 5px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
}

.customer-loyalty-hero__main {
    padding: 1.2rem 1.35rem 1.4rem;
}

.customer-loyalty-hero__title.page-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.customer-loyalty-hero__balance-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
    margin-bottom: 1rem;
}

.customer-loyalty-hero__balance-value {
    font-size: clamp(2.4rem, 8vw, 3rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--accent2);
    letter-spacing: -0.04em;
}

.customer-loyalty-hero__balance-unit {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
}

.customer-loyalty-hero__chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.65rem 1.25rem;
    margin: 0 0 1rem;
    padding: 0.75rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-loyalty-hero__chips dt {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.customer-loyalty-hero__chips dd {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    color: var(--text);
    word-break: break-word;
}

.customer-loyalty-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kpi {
    font-size: 1.6rem !important;
    font-weight: 700;
    color: var(--text) !important;
}

.admin-form {
    max-width: 760px;
}

/* Ürün ekle/düzenle: barkod & fiyat üstte, bölümlü form */
.admin-form--product {
    max-width: min(56rem, 100%);
}

.admin-form__block {
    border: none;
    margin: 0 0 1.35rem;
    padding: 0 0 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-form--product > .admin-form__block:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}

.admin-form__legend {
    padding: 0;
    margin: 0 0 0.85rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
}

.admin-form__block--emphasis {
    background: rgba(61, 156, 245, 0.07);
    border: 1px solid rgba(61, 156, 245, 0.22);
    border-radius: var(--radius);
    padding: 1rem 1rem 1.15rem;
    margin-bottom: 1.2rem;
    border-bottom: none;
}

.product-form__highlights {
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 720px) {
    .product-form__highlights {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.35rem;
    }
}

.product-form__type-hint {
    margin: -0.4rem 0 0.6rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.product-form__scan {
    margin-top: 0.4rem;
    margin-bottom: 0;
}

.product-form__scan.card--scan {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.product-form__price-row,
.product-form__stock-row {
    margin-top: 0.35rem;
}

.product-form__price-row label,
.product-form__stock-row label {
    margin-bottom: 0;
}

.product-form__stock-row--full {
    grid-column: 1 / -1;
}

.product-form__cost-row {
    grid-column: 1 / -1;
    margin-top: 0.35rem;
}

.product-form__cost-row label {
    margin-bottom: 0;
}

.product-form__tax-cell {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.product-form__tax-cell > label.checkbox {
    margin-bottom: 0;
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 0.35rem 0.75rem;
    margin-top: 0.4rem;
}

.perm-grid label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
}

.checks-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
}

.check-inline {
    margin: 0;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
}

.check-inline input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.check-inline span {
    display: inline !important;
    margin: 0 !important;
    color: var(--text) !important;
}

.perm-multiselect {
    margin-top: 0.35rem;
    position: relative;
}

.perm-multiselect__summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.85rem;
}

.table--users .users-actions .perm-multiselect__summary.btn {
    padding: 0.28rem 0.62rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
}

.table--users .users-actions .perm-multiselect__summary.btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
}

.perm-multiselect__summary::-webkit-details-marker {
    display: none;
}

.perm-multiselect__panel {
    margin-top: 0.3rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(10, 14, 22, 0.98);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.perm-multiselect__panel--popup {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(620px, 94vw);
    max-height: min(78vh, 620px);
    overflow: auto;
    z-index: 70;
}

.perm-multiselect--compact .perm-multiselect__panel--popup {
    width: min(560px, 92vw);
    max-height: min(74vh, 560px);
}

.perm-multiselect--compact .perm-multiselect__summary {
    padding: 0.28rem 0.45rem;
    font-size: 0.8rem;
}

.perm-multiselect .perm-grid {
    margin-top: 0;
}

.perm-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 60;
}

.perm-multiselect__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.perm-multiselect__panel-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.6rem;
}

.categories-lazy-sentinel {
    height: 1px;
}

.voucher-cats__lead {
    margin-bottom: 6px;
}

.voucher-cats-picker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.voucher-cats-popup .checks-inline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.45rem 0.75rem;
}

.qtp-cell {
    position: relative;
}

.qtp-product-search {
    width: 100%;
    min-height: 2rem;
}

.qtp-clear-btn {
    margin-top: 0.25rem;
}

.qtp-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    z-index: 20;
    background: rgba(10, 14, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    max-height: 220px;
    overflow: auto;
    padding: 0.2rem;
}

.qtp-suggest__item {
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    padding: 0.35rem 0.45rem;
    cursor: pointer;
}

.qtp-suggest__item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.table--users .table__head,
.table--users .table__row {
    display: grid;
    align-items: start;
    grid-template-columns: 4.5rem minmax(9rem, 1fr) minmax(12rem, 1.15fr) 5.5rem 5rem minmax(20rem, 1.8fr);
}

.table--users .table__head > div,
.table--users .table__row > div {
    min-width: 0;
}

.table--users .users-cell-meta {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.table--users .users-cell-meta .table__sub {
    white-space: normal;
    overflow-wrap: anywhere;
}

.table--users .users-actions {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table--users .users-actions__form {
    margin: 0;
}

.table--users .users-actions__form--password {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: nowrap;
}

.table--users .users-password-input {
    width: 7.75rem;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 8px;
    padding: 0.28rem 0.4rem;
    min-height: 1.8rem;
    font-size: 0.8rem;
}

.table--users .users-perm-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
}

.table--users .users-actions .btn.btn--small {
    padding: 0.28rem 0.62rem;
    font-size: 0.8rem;
}

/* Kampanya formu: .check-inline !important yuzunden [hidden] calismaz */
.campaign-product-row.is-filtered-out,
.campaign-category-row.is-filtered-out {
    display: none !important;
}

@media (max-width: 860px) {
    .table__head,
    .table__row {
        grid-template-columns: 70px 1fr;
        grid-auto-rows: auto;
    }

    .table__head > :nth-child(n + 3),
    .table__row > :nth-child(n + 3) {
        display: none;
    }

    .table--ledger .table__head,
    .table--ledger .table__row {
        grid-template-columns: 1fr;
    }

    .table--ledger .table__head > :nth-child(n + 3),
    .table--ledger .table__row > :nth-child(n + 3) {
        display: block;
    }

    .table--master-pool .table__head,
    .table--master-pool .table__row {
        grid-template-columns: 1fr;
    }

    .table--master-pool .table__head > :nth-child(n + 3),
    .table--master-pool .table__row > :nth-child(n + 3) {
        display: block;
    }

    .admin-products-table > .table__head,
    .admin-products-table .products-list-rows > .table__row:not(.products-list-empty) {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .admin-products-table > .table__head > :nth-child(n + 3),
    .admin-products-table .products-list-rows > .table__row:not(.products-list-empty) > :nth-child(n + 3) {
        display: block;
    }

    .table--audit .table__head,
    .table--audit .table__row {
        grid-template-columns: 1fr;
    }

    .table--audit .table__head > :nth-child(n + 3),
    .table--audit .table__row > :nth-child(n + 3) {
        display: block;
    }

    .table--stock-qty .table__head,
    .table--stock-qty .table__row {
        grid-template-columns: 1fr;
    }

    .table--stock-qty .table__head > :nth-child(n + 3),
    .table--stock-qty .table__row > :nth-child(n + 3) {
        display: block;
    }

    .table--stock-recent .table__head,
    .table--stock-recent .table__row {
        grid-template-columns: 1fr;
    }

    .table--stock-recent .table__head > :nth-child(n + 3),
    .table--stock-recent .table__row > :nth-child(n + 3) {
        display: block;
    }

    .table--users .table__head {
        display: none;
    }

    .table--users .table__row {
        grid-template-columns: 1fr !important;
        gap: 0.45rem;
    }

    .table--users .table__row > div {
        display: block !important;
    }

    .table--users .users-actions {
        max-width: 100%;
    }

    .table__actions {
        justify-content: start;
        margin-top: 0.5rem;
    }

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

    .admin-sidebar {
        position: static;
    }
}

.checks {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.checks li {
    margin: 0.35rem 0;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.flash--ok {
    background: rgba(90, 228, 168, 0.12);
    border: 1px solid rgba(90, 228, 168, 0.35);
    color: #b8f5d8;
}

.flash--err {
    background: rgba(240, 113, 120, 0.12);
    border: 1px solid rgba(240, 113, 120, 0.35);
    color: #ffc9cc;
}

.flash--warn {
    background: rgba(255, 200, 100, 0.1);
    border: 1px solid rgba(255, 200, 100, 0.35);
    color: #ffe4b5;
}

.section--panel .page-title,
.section--panel .section__lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section--panel .section__lead {
    max-width: 36rem;
}

.panel-cards {
    margin-top: 1.5rem;
}

.section--panel .panel-cards {
    max-width: min(100%, 52rem);
    margin-left: auto;
    margin-right: auto;
}

.panel-card {
    display: block;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, var(--surface), var(--surface2));
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}

.panel-card:hover {
    border-color: rgba(61, 156, 245, 0.45);
    transform: translateY(-2px);
    text-decoration: none;
}

.panel-card:active {
    transform: scale(0.99);
}

@media (hover: none) {
    .panel-card:hover {
        transform: none;
    }
}

.panel-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.panel-card p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.panel-card__go {
    font-weight: 600;
    color: var(--accent);
}

.footer {
    text-align: center;
    padding: 2rem 1rem 3rem;
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qtp-admin-picker {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

.qtp-admin-picker__label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}

.qtp-admin-picker__select {
    min-height: var(--touch);
    max-width: min(100%, 28rem);
    font: inherit;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--surface);
    color: var(--text);
}

.qtp-admin-picker__hint {
    margin: 0.5rem 0 0;
}

.qtp-page-names {
    margin-bottom: 0.85rem;
    padding: 0.6rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.14);
}

.qtp-page-names__lead {
    margin: 0 0 0.55rem;
}

.qtp-page-names__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.5rem 0.65rem;
}

.qtp-page-names__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.qtp-page-names__field-label {
    font-weight: 650;
}

.qtp-page-names__field input {
    min-height: var(--touch);
    width: 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
    font-size: 0.88rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--surface);
    color: var(--text);
}

.qtp-page-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0 0.85rem;
    padding: 3px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
    max-width: 100%;
}

.qtp-page-tab {
    min-width: 2.35rem;
    max-width: 7rem;
    min-height: 2.35rem;
    padding: 0 0.45rem;
    border: none;
    border-radius: calc(var(--radius) - 4px);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    font-size: clamp(0.72rem, 2vw, 0.9rem);
    line-height: 1.15;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qtp-page-tab:hover,
.qtp-page-tab:focus-visible {
    color: var(--text);
    outline: none;
}

.qtp-page-tab.is-active {
    background: var(--surface2);
    color: var(--text);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.qtp-page-panel {
    margin-bottom: 0.85rem;
}

.qtp-page-panel[hidden] {
    display: none !important;
}

.qtp-fieldset {
    margin-bottom: 0;
    padding: 0.65rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.qtp-legend {
    padding: 0 0.35rem;
    font-weight: 650;
}

.qtp-grid {
    display: grid;
    grid-template-columns: repeat(var(--qtp-cols, 6), minmax(0, 1fr));
    gap: 0.4rem;
    max-height: min(78vh, 900px);
    overflow: auto;
    align-content: start;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.qtp-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: var(--muted);
}

.qtp-cell select {
    min-height: var(--touch);
    width: 100%;
    font-size: 0.85rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--surface);
    color: var(--text);
}

.qtp-cell-label {
    font-weight: 600;
    color: var(--muted);
}

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

.trial-soon-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.trial-soon-banner__text {
    flex: 1 1 220px;
}

.trial-soon-banner__actions {
    flex: 0 0 auto;
}

.trial-blocker {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(env(safe-area-inset-bottom), 1rem) max(env(safe-area-inset-right), 1rem) max(env(safe-area-inset-left), 1rem);
}

.trial-blocker[hidden] {
    display: none;
}

.trial-blocker__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.trial-blocker__panel {
    position: relative;
    width: min(100%, 420px);
    padding: 1.35rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.trial-blocker__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.trial-blocker__lead {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.trial-blocker__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.trial-blocker__actions .btn {
    justify-content: center;
}

/* —— Admin dashboard (donut + KPI) —— */
.dashboard {
    --dash-net: #3ecf9c;
    --dash-ret: #f0a030;
    --dash-track: rgba(255, 255, 255, 0.08);
    --dash-mix-p: var(--accent);
    --dash-mix-u: #a78bfa;
    --dash-mix-c: #f472b6;
}

.dashboard__header {
    margin-bottom: 1.35rem;
}

.dashboard__title {
    margin-bottom: 0.35rem;
}

.dashboard__lead {
    margin: 0;
}

.dashboard__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    gap: 1.1rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
}

.admin-content .dashboard .dashboard__chart-card {
    margin-bottom: 0;
}

.dashboard__chart-card {
    background: linear-gradient(145deg, rgba(61, 156, 245, 0.07) 0%, var(--surface) 42%, var(--surface) 100%);
    border-color: rgba(61, 156, 245, 0.14);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.dashboard__chart-title {
    margin: 0 0 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard__donut-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2rem;
}

.dashboard__donut {
    position: relative;
    width: min(200px, 70vw);
    height: min(200px, 70vw);
    flex-shrink: 0;
}

.dashboard__donut-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--dash-track);
}

.dashboard__donut:not(.dashboard__donut--empty) .dashboard__donut-ring {
    background: conic-gradient(
        from -90deg,
        var(--dash-net) 0deg calc(var(--net-deg, 0) * 1deg),
        var(--dash-ret) calc(var(--net-deg, 0) * 1deg) calc((var(--net-deg, 0) + var(--ret-deg, 0)) * 1deg),
        rgba(255, 255, 255, 0.06) calc((var(--net-deg, 0) + var(--ret-deg, 0)) * 1deg) 360deg
    );
}

.dashboard__donut--mix:not(.dashboard__donut--empty) .dashboard__donut-ring--mix {
    background: conic-gradient(
        from -90deg,
        var(--dash-mix-p) 0deg calc(var(--mix-p, 0) * 1deg),
        var(--dash-mix-u) calc(var(--mix-p, 0) * 1deg) calc((var(--mix-p, 0) + var(--mix-u, 0)) * 1deg),
        var(--dash-mix-c) calc((var(--mix-p, 0) + var(--mix-u, 0)) * 1deg) 360deg
    );
}

@media (prefers-reduced-motion: no-preference) {
    .dashboard__donut:not(.dashboard__donut--empty) .dashboard__donut-ring {
        animation: dashboard-donut-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

@keyframes dashboard-donut-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dashboard__donut-hole {
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard__donut-hole-kicker {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    line-height: 1.2;
}

.dashboard__donut-hole-value {
    font-size: clamp(0.95rem, 2.8vw, 1.15rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin-top: 0.15rem;
}

.dashboard__donut-hole-label {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.35;
    padding: 0 0.25rem;
}

.dashboard__legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--text);
}

.dashboard__legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard__swatch {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    flex-shrink: 0;
}

.dashboard__swatch--net {
    background: var(--dash-net);
}

.dashboard__swatch--ret {
    background: var(--dash-ret);
}

.dashboard__swatch--p {
    background: var(--dash-mix-p);
}

.dashboard__swatch--u {
    background: var(--dash-mix-u);
}

.dashboard__swatch--c {
    background: var(--dash-mix-c);
}

.dashboard__kpi-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-kpi {
    flex: 1;
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: var(--surface2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 3px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 5.5rem;
    justify-content: center;
}

.dash-kpi__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
}

.dash-kpi__value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.dash-kpi--products {
    border-top-color: rgba(61, 156, 245, 0.75);
}

.dash-kpi--users {
    border-top-color: rgba(167, 139, 250, 0.85);
}

.dash-kpi--campaigns {
    border-top-color: rgba(244, 114, 182, 0.85);
}

.dashboard__sales-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dash-kpi--wide {
    min-height: auto;
}

.dash-kpi--sales {
    border-top-color: rgba(61, 156, 245, 0.6);
}

.dash-kpi--gross {
    border-top-color: rgba(94, 228, 168, 0.65);
}

.dash-kpi--net {
    border-top-color: rgba(62, 207, 156, 0.9);
}

.dashboard__returns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.dash-kpi--return {
    border-top-color: rgba(240, 160, 48, 0.85);
    background: rgba(240, 160, 48, 0.06);
}

.dashboard__returns-note {
    margin: 0 0 1rem;
}

.dashboard__stock-banner {
    margin-top: 0.5rem;
    margin-bottom: 0;
    border-left: 4px solid var(--danger);
    background: linear-gradient(90deg, rgba(240, 113, 120, 0.09) 0%, var(--surface) 55%);
}

.dashboard__stock-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard__stock-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.dashboard__stock-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

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

    .dashboard__kpi-stack {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dashboard__kpi-stack .dash-kpi {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 140px;
        min-height: auto;
    }
}

/* ── New Dashboard v2 KPI cards ──────────────────────── */

.dashboard__kpi-row,
.dashboard__sales-kpi-row,
.dashboard__sales-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.dash-kpi2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--surface2), var(--surface));
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.25s;
}

.dash-kpi2:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.dash-kpi2::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s;
    /* Tıklamaları yutmasın; KPI içindeki butonlar (ör. satış raporu net kar detayı) tıklanabilsin */
    pointer-events: none;
}

.dash-kpi2:hover::before {
    opacity: 1;
}

.dash-kpi2__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.dash-kpi2__icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.dash-kpi2__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.dash-kpi2__value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.dash-kpi2__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
}

.dash-kpi2__sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* KPI color accents */
.dash-kpi2--products { border-top: 3px solid #6366f1; }
.dash-kpi2--products .dash-kpi2__icon { background: rgba(99,102,241,0.14); color: #818cf8; }
.dash-kpi2--products::before { background: linear-gradient(135deg, rgba(99,102,241,0.06), transparent); }

.dash-kpi2--users { border-top: 3px solid #06b6d4; }
.dash-kpi2--users .dash-kpi2__icon { background: rgba(6,182,212,0.14); color: #22d3ee; }
.dash-kpi2--users::before { background: linear-gradient(135deg, rgba(6,182,212,0.06), transparent); }

.dash-kpi2--campaigns { border-top: 3px solid #f59e0b; }
.dash-kpi2--campaigns .dash-kpi2__icon { background: rgba(245,158,11,0.14); color: #fbbf24; }
.dash-kpi2--campaigns::before { background: linear-gradient(135deg, rgba(245,158,11,0.06), transparent); }

.dash-kpi2--today { border-top: 3px solid #10b981; }
.dash-kpi2--today .dash-kpi2__icon { background: rgba(16,185,129,0.14); color: #34d399; }
.dash-kpi2--today::before { background: linear-gradient(135deg, rgba(16,185,129,0.06), transparent); }

.dash-kpi2--week { border-top: 3px solid #8b5cf6; }
.dash-kpi2--week .dash-kpi2__icon { background: rgba(139,92,246,0.14); color: #a78bfa; }
.dash-kpi2--week::before { background: linear-gradient(135deg, rgba(139,92,246,0.06), transparent); }

.dash-kpi2--month { border-top: 3px solid #ec4899; }
.dash-kpi2--month .dash-kpi2__icon { background: rgba(236,72,153,0.14); color: #f472b6; }
.dash-kpi2--month::before { background: linear-gradient(135deg, rgba(236,72,153,0.06), transparent); }

.dash-kpi2--profit { border-top: 3px solid #10b981; }
.dash-kpi2--profit .dash-kpi2__icon { background: rgba(16,185,129,0.14); color: #34d399; }
.dash-kpi2--profit::before { background: linear-gradient(135deg, rgba(16,185,129,0.06), transparent); }

.dash-kpi2--trend { border-top: 3px solid #6366f1; }
.dash-kpi2--trend .dash-kpi2__icon { background: rgba(99,102,241,0.14); color: #818cf8; }
.dash-kpi2--trend::before { background: linear-gradient(135deg, rgba(99,102,241,0.06), transparent); }

.dash-kpi2--up { border-top-color: #10b981; }
.dash-kpi2--up .dash-kpi2__value { color: #34d399; }
.dash-kpi2--up .dash-kpi2__icon { background: rgba(16,185,129,0.14); color: #34d399; }

.dash-kpi2--down { border-top-color: #ef4444; }
.dash-kpi2--down .dash-kpi2__value { color: #f87171; }
.dash-kpi2--down .dash-kpi2__icon { background: rgba(239,68,68,0.14); color: #f87171; }

.dash-kpi2--wide { }

.dash-kpi2--sales-all { border-top: 3px solid rgba(61,156,245,0.6); }
.dash-kpi2--sales-all .dash-kpi2__icon { background: rgba(61,156,245,0.14); color: #3d9cf5; }

.dash-kpi2--gross { border-top: 3px solid rgba(94,228,168,0.65); }
.dash-kpi2--gross .dash-kpi2__icon { background: rgba(94,228,168,0.14); color: #5ee4a8; }

.dash-kpi2--net { border-top: 3px solid rgba(62,207,156,0.9); }
.dash-kpi2--net .dash-kpi2__icon { background: rgba(62,207,156,0.14); color: #3ecf9c; }

.dash-kpi2--return {
    border-top: 3px solid rgba(240,160,48,0.85);
    background: linear-gradient(145deg, rgba(240,160,48,0.05), var(--surface));
}

/* Loading skeleton pulse */
.dash-kpi2--loading .dash-kpi2__value {
    display: inline-block;
    min-width: 60px;
    height: 1.55rem;
    border-radius: 6px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.04) 75%
    );
    background-size: 200% 100%;
    animation: kpi-skeleton-pulse 1.8s ease-in-out infinite;
    color: transparent !important;
}

@keyframes kpi-skeleton-pulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Loaded pop-in */
.dash-kpi2--loaded {
    animation: kpi-pop-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes kpi-pop-in {
    from { opacity: 0.6; transform: scale(0.96); }
    to   { opacity: 1;   transform: scale(1); }
}

/* ── Chart cards ──────────────────────────────────── */

.dashboard__charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard__chart-wrap {
    position: relative;
    height: 260px;
}

.dashboard__chart-wrap--bar {
    height: 340px;
}

.dashboard__chart-wrap--doughnut {
    height: 280px;
}

.dashboard__chart-title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.dashboard__chart-title-wrap .dashboard__chart-title {
    margin: 0;
}

/* Satış raporu: ürün kar detayı (dialog) */
.sr-profit-detail-dialog {
    max-width: min(96vw, 52rem);
    width: 100%;
    padding: 0;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    background: var(--card-bg, #1a1b2e);
    color: inherit;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.sr-profit-detail-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.sr-profit-detail-dialog__inner {
    padding: 1rem 1.1rem 1.15rem;
}

.sr-profit-detail-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.sr-profit-detail-dialog__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.sr-profit-detail-dialog__note {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
}

.sr-profit-detail-dialog__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 1rem;
    margin-bottom: 0.75rem;
}

.sr-profit-detail-dialog__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.sr-profit-detail-dialog__field input {
    min-width: 11rem;
}

.sr-profit-detail-dialog__status {
    margin: 0 0 0.5rem;
}

.sr-profit-detail-dialog__status--error {
    color: #fca5a5;
}

.sr-profit-detail-dialog__table-wrap {
    overflow-x: auto;
    max-height: min(55vh, 28rem);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.sr-profit-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.sr-profit-detail-table th,
.sr-profit-detail-table td {
    padding: 0.45rem 0.55rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sr-profit-detail-table th {
    position: sticky;
    top: 0;
    background: rgba(24, 25, 40, 0.98);
    z-index: 1;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.sr-profit-detail-table__num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sr-profit-detail-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.sr-profit-detail-pager button {
    min-width: 2.1rem;
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    cursor: pointer;
    font-size: 0.85rem;
}

.sr-profit-detail-pager button:hover {
    background: rgba(99, 102, 241, 0.2);
}

.sr-profit-detail-pager button.is-active {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.28);
}

@media (max-width: 720px) {
    .dashboard__kpi-row,
    .dashboard__sales-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .dash-kpi2__value {
        font-size: 1.2rem;
    }
}

.sales-report__lead {
    margin-bottom: 0.5rem;
}

/* Satış raporu: filtreler tek satır (dar ekranda kırılır) */
.sales-report__filters {
    padding: 0.65rem 1rem;
    margin-bottom: 0.75rem;
}

.sales-report__filter-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
}

.sales-report__filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    margin: 0;
}

.sales-report__filter-field > span {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    white-space: nowrap;
}

.sales-report__filter-field--date {
    flex: 0 0 auto;
}

.sales-report__filter-field--date input[type='date'] {
    width: auto;
    min-width: 9.25rem;
    max-width: 11rem;
}

.sales-report__filter-field--grow {
    flex: 1 1 7rem;
    min-width: 6.5rem;
    max-width: 16rem;
}

.sales-report__filter-field--grow select {
    width: 100%;
    min-width: 0;
}

.sales-report__filter-submit {
    flex: 0 0 auto;
    margin: 0;
    align-self: flex-end;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .sales-report__filter-bar {
        flex-wrap: wrap;
    }

    .sales-report__filter-field--grow {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: none;
    }
}

@media (max-width: 520px) {
    .sales-report__filter-field--date,
    .sales-report__filter-field--grow {
        flex: 1 1 100%;
        max-width: none;
    }

    .sales-report__filter-field--date input[type='date'] {
        max-width: none;
        width: 100%;
    }

    .sales-report__filter-submit {
        width: 100%;
    }
}

.section__row--wrap {
    align-items: flex-start;
}

.section__row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.label-template-toggles {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
}

.label-template-toggles legend {
    padding: 0 0.35rem;
    font-weight: 600;
}

.label-template-toggles label {
    display: block;
    margin: 0.35rem 0;
}

.label-template-preview-card {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
}

.label-template-preview-card__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.label-template-preview-viewport {
    margin-top: 0.65rem;
    padding: 0.75rem;
    min-height: 11rem;
    max-height: 20rem;
    overflow: auto;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
}

.label-template-preview-scale {
    display: inline-block;
    transform: scale(0.58);
    transform-origin: top left;
    margin-bottom: -3.5rem;
}

.label-template-preview__label {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.label-print-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1rem;
    align-items: start;
    margin-top: 1rem;
}

@media (max-width: 960px) {
    .label-print-layout {
        grid-template-columns: 1fr;
    }
}

.label-print-sidebar__title {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.label-print-sidebar__subtitle {
    font-size: 0.9rem;
    margin: 1rem 0 0.35rem;
}

.label-print-search-explainer {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 0 0.65rem;
    line-height: 1.45;
}

.label-print-search-panel {
    margin: 0.35rem 0 0.75rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.label-print-search-status {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0.35rem 0 0;
    min-height: 1.25em;
}

.label-print-search-panel .label-print-results {
    margin-top: 0.35rem;
}

.label-print-results {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    max-height: 14rem;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.label-print-results__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.label-print-results__item:last-child {
    border-bottom: none;
}

.label-print-add {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.65rem;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.label-print-add:hover {
    background: rgba(255, 255, 255, 0.06);
}

.admin-table-scroll--label-queue {
    max-height: min(28vh, 16rem);
    margin: 0.35rem 0 0.75rem;
}

.table-label-queue {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.table-label-queue th,
.table-label-queue td {
    padding: 0.35rem 0.4rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.table-label-queue th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.78rem;
}

.label-print-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.label-print-sheet {
    min-height: 6rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.label-print-item:last-child {
    page-break-after: auto;
}

/* Barkod: canvas + pixelated ölçekte çizgiler korunur (SVG/CSS bazen tek siyah blok) */
.label-print-item .label-print-barcode-canvas {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    min-width: 0;
    flex-shrink: 1;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

@media print {
    .no-print,
    .topbar,
    .admin-sidebar,
    .drawer,
    .flash,
    .trial-soon-banner,
    .trial-blocker,
    .form-logout,
        .lang-picker,
    .label-print-sidebar,
    .label-print-page > .section__lead,
    .label-print-page > .page-title,
    .label-print-preview-wrap > .label-print-sidebar__title {
        display: none !important;
    }

    body.layout--app {
        background: #fff !important;
    }

    body.layout--app .main--app {
        padding: 0 !important;
        margin: 0 !important;
    }

    .section--admin .admin-grid {
        display: block !important;
    }

    .section--admin .admin-content {
        max-width: none !important;
    }

    .label-print-layout {
        display: block !important;
    }

    .label-print-preview-wrap {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .label-print-sheet {
        background: transparent !important;
        padding: 0 !important;
    }

    .label-print-item {
        border: none !important;
        box-shadow: none !important;
    }
}

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

    .panel-card:hover {
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════
   LANDING PAGES — Hero, Stats, Features, Pricing
   ═══════════════════════════════════════════════════ */

/* --- Hero: tam genislik degrade, kesilme yok --- */
.landing-hero-wrap {
    position: relative;
    margin: -1.25rem -1.5rem 0;
    padding: clamp(2.75rem, 7vw, 5.25rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(180deg, #121a22 0%, var(--bg) 100%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}
.landing-hero-wrap::before {
    content: '';
    position: absolute;
    inset: -20% -15% -10%;
    background:
        radial-gradient(ellipse 100% 70% at 50% -5%, rgba(61, 156, 245, 0.32) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 95% 25%, rgba(90, 228, 168, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 5% 70%, rgba(61, 156, 245, 0.1) 0%, transparent 48%);
    pointer-events: none;
    z-index: 0;
    animation: landing-hero-aurora 14s ease-in-out infinite alternate;
}
.landing-hero-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.25) 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.25) 100%);
}
@keyframes landing-hero-aurora {
    0% { opacity: 0.85; transform: translate(0, 0) scale(1); }
    100% { opacity: 1; transform: translate(-1%, 1%) scale(1.03); }
}
.landing-hero {
    position: relative;
    z-index: 1;
    padding: 0;
    overflow: visible;
}
.landing-hero__inner {
    position: relative;
    max-width: 48rem;
}
.landing-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.12;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
    color: var(--text);
}
.landing-hero h1 .text-gradient {
    background: linear-gradient(135deg, #5eb8ff 0%, var(--accent2) 50%, #8af0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}
.landing-hero .lead {
    font-size: 1.1rem;
    max-width: 38rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}
.landing-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
}
.landing-hero .note {
    margin: 0;
}
.btn--accent2 {
    background: var(--accent2);
    color: #061018;
}

/* --- Telefon barkod vurgu bandi --- */
.landing-phone-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid rgba(61, 156, 245, 0.22);
    background: linear-gradient(135deg, rgba(61, 156, 245, 0.1) 0%, rgba(90, 228, 168, 0.06) 100%);
    box-shadow: 0 8px 28px rgba(61, 156, 245, 0.06);
}
.landing-phone-banner__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(61, 156, 245, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.landing-phone-banner__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.landing-phone-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text);
}
.landing-phone-banner strong {
    color: var(--accent2);
    font-weight: 600;
}

/* --- Stats Bar --- */
.landing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 2rem 0;
}
.landing-stat {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
}
.landing-stat__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing-stat__label {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

/* --- Feature Cards (Landing) --- */
.landing-features {
    padding: 3rem 0;
}
.landing-features .section__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.landing-feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 1.5rem;
}
.landing-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.landing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(61,156,245,0.25);
    box-shadow: 0 8px 32px rgba(61,156,245,0.08);
}
.landing-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(61,156,245,0.15), rgba(90,228,168,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.landing-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.landing-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}
.landing-card p {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
    flex: 1;
}
.landing-card__link {
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Screenshot Showcase --- */
.landing-showcase {
    padding: 2.5rem 0;
}
.landing-showcase__row {
    display: grid;
    gap: 2rem 2.75rem;
    align-items: center;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.32fr);
    margin-bottom: 3.25rem;
}
.landing-showcase__row--reverse {
    direction: rtl;
}
.landing-showcase__row--reverse > * {
    direction: ltr;
}
.landing-showcase__img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    transition: transform 0.3s;
}
.landing-showcase__row--reverse .landing-showcase__img {
    aspect-ratio: 4 / 3;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: rgba(0, 0, 0, 0.28);
    cursor: zoom-in;
}
.landing-showcase__img:hover {
    transform: perspective(800px) rotateY(-2deg) scale(1.02);
}
.landing-showcase__text h3 {
    font-size: 1.35rem;
    margin: 0 0 0.75rem;
}
.landing-showcase__text p {
    color: var(--muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}
.landing-showcase__sublead {
    margin-top: 1rem !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

/* POS screenshot carousel (kasa1–3.png + seamless loop) */
.landing-pos-carousel {
    width: 100%;
    min-width: 0;
}
.landing-pos-carousel__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    /* Önceki ~16:10 yerine daha uzun kutu (aynı genişlikte daha çok yükseklik) */
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.32);
}
.landing-pos-carousel__track {
    display: flex;
    flex-direction: row;
    width: 400%;
    height: 100%;
    animation: landing-pos-carousel-x 20s ease-in-out infinite;
    will-change: transform;
}
.landing-pos-carousel__slide {
    flex: 0 0 25%;
    height: 100%;
    margin: 0;
    position: relative;
}
.landing-pos-carousel__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    cursor: zoom-in;
}
.landing-pos-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
}
.landing-pos-carousel__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    animation: landing-pos-carousel-dot 20s ease-in-out infinite;
}
.landing-pos-carousel__dot:nth-child(2) {
    animation-delay: 5s;
}
.landing-pos-carousel__dot:nth-child(3) {
    animation-delay: 10s;
}

@keyframes landing-pos-carousel-x {
    0%,
    22% {
        transform: translateX(0);
    }
    25%,
    47% {
        transform: translateX(-25%);
    }
    50%,
    72% {
        transform: translateX(-50%);
    }
    75%,
    100% {
        transform: translateX(-75%);
    }
}

@keyframes landing-pos-carousel-dot {
    0%,
    18% {
        background: rgba(255, 255, 255, 0.85);
        transform: scale(1.15);
    }
    22%,
    100% {
        background: rgba(255, 255, 255, 0.22);
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-pos-carousel__track {
        animation: none;
        transform: translateX(0);
    }
    .landing-pos-carousel__slide--repeat {
        display: none;
    }
    .landing-pos-carousel__dot {
        animation: none;
        background: rgba(255, 255, 255, 0.35);
    }
    .landing-pos-carousel__dot:nth-child(1) {
        background: rgba(255, 255, 255, 0.85);
    }
}

@media (max-width: 680px) {
    .landing-showcase__row,
    .landing-showcase__row--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .landing-pos-carousel__viewport {
        aspect-ratio: 10 / 8;
    }
}

/* Homepage: tıklanınca büyüt (lightbox) */
.landing-img-lightbox {
    padding: 0;
    margin: 0;
    border: none;
    max-width: none;
    max-height: none;
    width: min(96vw, 1440px);
    background: transparent;
    box-shadow: none;
}
.landing-img-lightbox::backdrop {
    background: rgba(5, 8, 12, 0.9);
    cursor: zoom-out;
}
.landing-img-lightbox__img {
    display: block;
    max-width: min(94vw, 1400px);
    max-height: min(88vh, 1200px);
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.landing-img-lightbox__close {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(20, 26, 36, 0.92);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.landing-img-lightbox__close:hover {
    background: rgba(40, 48, 62, 0.95);
}

/* --- Pricing Teaser (on homepage) --- */
.landing-pricing-teaser {
    padding: 3rem 0;
    text-align: center;
}
.landing-pricing-teaser .section__title {
    font-size: 1.5rem;
}
.landing-pricing-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
    text-align: left;
}
.landing-price-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
}
.landing-price-card--highlight {
    border-color: rgba(90,228,168,0.35);
    box-shadow: 0 0 30px rgba(90,228,168,0.06);
}
.landing-price-card__name {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}
.landing-price-card__price {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.5rem 0;
}
.landing-price-card__price small {
    font-size: 0.7em;
    font-weight: 400;
    color: var(--muted);
}
.landing-price-card__sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 0.75rem;
}
.landing-price-card__badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg, var(--accent2), #3dc48a);
    color: #061018;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Pricing Page (full) --- */
.pricing-section {
    padding: 3rem 0;
}
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}
.pricing-toggle__label {
    font-size: 0.92rem;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}
.pricing-toggle__label--active {
    color: var(--text);
    font-weight: 600;
}
.pricing-toggle__switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--surface2);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}
.pricing-toggle__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform 0.2s;
}
.pricing-toggle__switch[data-active="yearly"]::after {
    transform: translateX(22px);
}
.pricing-toggle__switch[data-active="yearly"] {
    background: rgba(90,228,168,0.2);
}
.pricing-toggle__switch[data-active="yearly"]::after {
    background: var(--accent2);
}
.pricing-toggle__save {
    font-size: 0.75rem;
    color: var(--accent2);
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.3s;
}
.pricing-card:hover {
    transform: translateY(-4px);
}
.pricing-card--highlight {
    border-color: rgba(90,228,168,0.4);
    box-shadow: 0 0 40px rgba(90,228,168,0.08);
}
.pricing-card--highlight:hover {
    box-shadow: 0 8px 48px rgba(90,228,168,0.12);
}
.pricing-card__badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent2), #3dc48a);
    color: #061018;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.pricing-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.pricing-card__subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}
.pricing-card__price {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.25rem;
}
.pricing-card__amount {
    display: inline;
}
.pricing-card__price small {
    font-size: 0.45em;
    font-weight: 400;
    color: var(--muted);
}
.pricing-card__features {
    list-style: none;
    margin: 1.25rem 0;
    padding: 0;
}
.pricing-card__features li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.pricing-card__features li::before {
    content: '✓';
    color: var(--accent2);
    font-weight: 700;
    flex-shrink: 0;
}
.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

/* --- FAQ --- */
.pricing-faq {
    max-width: 600px;
    margin: 3rem auto 0;
}
.pricing-faq__item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1rem 0;
}
.pricing-faq__q {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
}
.pricing-faq__a {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* --- Purchase Contact --- */
.purchase-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 3rem 0;
}
.purchase-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 520px;
    text-align: center;
}
.purchase-card h1 {
    font-size: 1.4rem;
    margin: 0 0 1rem;
}
.purchase-card p {
    color: var(--muted);
    margin: 0 0 1.5rem;
    line-height: 1.7;
}
.purchase-card__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Features Page --- */
.features-hero {
    padding: 3rem 0 2rem;
    max-width: 42rem;
}
.features-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.features-grid {
    display: grid;
    gap: 2rem;
    padding: 1rem 0 3rem;
}
.features-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.25rem;
    align-items: start;
}
.features-item__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(61,156,245,0.12), rgba(90,228,168,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.features-item__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.features-item h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}
.features-item p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
}
.features-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 0 3rem;
}

/* --- Section Divider --- */
.landing-divider {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent 0%, rgba(61,156,245,0.2) 30%, rgba(90,228,168,0.2) 70%, transparent 100%);
    margin: 1rem 0;
}

/* --- Kullanici yorumlari (kayan serit) --- */
.landing-testimonials {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    overflow: hidden;
}
.landing-testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(61, 156, 245, 0.09) 0%, transparent 60%);
    pointer-events: none;
}
.landing-testimonials__title {
    position: relative;
    text-align: center;
    font-size: clamp(1.3rem, 3.2vw, 1.75rem);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 45%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing-testimonials__sub {
    position: relative;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 1.85rem;
}
.landing-testimonials__mask {
    position: relative;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.landing-testimonials__track {
    display: flex;
    width: max-content;
    gap: 1.25rem;
    animation: landing-testimonials-scroll 44s linear infinite;
}
.landing-testimonials:hover .landing-testimonials__track {
    animation-play-state: paused;
}
@keyframes landing-testimonials-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.landing-testimonial-card {
    flex: 0 0 min(300px, 85vw);
    padding: 1.35rem 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(165deg, rgba(42, 56, 72, 0.55) 0%, rgba(26, 34, 44, 0.92) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.landing-testimonial-card__stars {
    color: #e8b84a;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
    text-shadow: 0 0 20px rgba(232, 184, 74, 0.25);
}
.landing-testimonial-card__quote {
    font-size: 0.93rem;
    line-height: 1.58;
    color: var(--text);
    margin: 0 0 1rem;
}
.landing-testimonial-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.landing-testimonial-card__name {
    font-weight: 700;
    font-size: 0.9rem;
}
.landing-testimonial-card__loc {
    font-size: 0.78rem;
    color: var(--muted);
}

/* --- Signup Section Enhancement --- */
.landing-signup {
    padding: 3rem 0 2rem;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .landing-hero-wrap::before { animation: none; }
    .landing-testimonials__track { animation: none; }
    .landing-card, .pricing-card, .landing-showcase__img { transition: none; }
    .landing-card:hover, .pricing-card:hover { transform: none; }
    .landing-showcase__img:hover { transform: none; }
}
