.panel-kasa-apartment-row--sticky {
    margin-top: 0;
}

.panel-kasa-quick-toggle {
    width: 100%;
    margin-top: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 0.62rem;
    padding: 0.5rem 0.62rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    font-weight: 600;
}

.panel-kasa-quick-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: inherit;
}

.panel-kasa-quick-toggle-label i {
    color: var(--primary);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.panel-kasa-quick-toggle-caret {
    transition: transform 0.2s ease;
}

.panel-kasa-quick-card.is-collapsed .panel-kasa-quick-toggle-caret {
    transform: rotate(180deg);
}

.panel-feature-card {
    margin-top: 0.7rem;
    border: 1px solid rgba(3, 169, 244, 0.16);
    background: linear-gradient(160deg, rgba(9, 18, 34, 0.88), rgba(8, 14, 28, 0.9));
}

.panel-feature-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.panel-feature-card__head h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.9rem;
}

.panel-mini-title {
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
}

.panel-mini-title__icon {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--primary);
    flex-shrink: 0;
}

.panel-mini-title__icon i {
    font-size: 0.82rem;
}

.panel-feature-card__link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
}

.panel-feature-card__meta {
    margin: 0.45rem 0 0.58rem;
    color: var(--muted);
    font-size: 0.74rem;
}

.panel-feature-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.panel-feature-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.13);
    color: #cfefff;
    padding: 0.28rem 0.56rem;
    font-size: 0.7rem;
}

.panel-feature-card__pill--soft {
    background: rgba(148, 163, 184, 0.16);
}

.panel-feature-card__cta {
    border: 1px solid var(--primary-border);
    background: rgba(3, 169, 244, 0.12);
    color: #dff5ff;
    border-radius: 0.55rem;
    padding: 0.34rem 0.64rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.panel-feature-card__cta:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.panel-feature-card__cta--ghost {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.28);
}

.panel-feature-card--clickable {
    cursor: pointer;
}

.apartment-edit-modal[data-panel-active-survey-modal="true"] .apartment-edit-modal__dialog {
    width: min(480px, 100%);
}

/* Panel: anket oylama — apartment-edit-modal ile aynı yerleşim; seçenek satırları */
.apartment-edit-modal[data-panel-active-survey-modal="true"] .panel-survey-vote-modal__body.apartment-edit-modal__grid {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    padding: 0.72rem 1rem 0.85rem;
    grid-template-columns: unset;
}

.panel-survey-vote-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

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

.panel-survey-vote-option__surface {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.42rem;
    min-height: 2.55rem;
    padding: 0.5rem 0.72rem 0.55rem;
    border-radius: 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(12, 22, 38, 0.55);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.panel-survey-vote-option__main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
}

/* Oy verme: metin solda, yuvarlak secim sagda */
.panel-survey-vote-option:not(.panel-survey-vote-option--results) .panel-survey-vote-option__main {
    justify-content: space-between;
    gap: 0.65rem;
}

.panel-survey-vote-option:not(.panel-survey-vote-option--results) .panel-survey-vote-option__text {
    flex: 1 1 auto;
    text-align: left;
}

.panel-survey-vote-option__check {
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 0.22rem;
    border: 2px solid rgba(148, 163, 184, 0.45);
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.panel-survey-vote-option__check--round {
    width: 1.14rem;
    height: 1.14rem;
    border-radius: 50%;
}

.panel-survey-vote-option__check--round::after {
    display: none;
}

.panel-survey-vote-option__input:checked + .panel-survey-vote-option__surface .panel-survey-vote-option__check--round,
.panel-survey-vote-option.is-selected .panel-survey-vote-option__check--round {
    border-color: rgba(3, 169, 244, 0.95);
    background: rgba(3, 169, 244, 0.12);
}

.panel-survey-vote-option__input:checked + .panel-survey-vote-option__surface .panel-survey-vote-option__check--round::after,
.panel-survey-vote-option.is-selected .panel-survey-vote-option__check--round::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: var(--primary, #03a9f4);
    border: none;
    transform: translate(-50%, -50%);
    display: block;
    box-sizing: border-box;
}

.panel-survey-vote-option__input:checked + .panel-survey-vote-option__surface .panel-survey-vote-option__check:not(.panel-survey-vote-option__check--round),
.panel-survey-vote-option.is-selected .panel-survey-vote-option__check:not(.panel-survey-vote-option__check--round) {
    border-color: rgba(3, 169, 244, 0.9);
    background: rgba(3, 169, 244, 0.16);
}

.panel-survey-vote-option__input:checked + .panel-survey-vote-option__surface .panel-survey-vote-option__check:not(.panel-survey-vote-option__check--round)::after,
.panel-survey-vote-option.is-selected .panel-survey-vote-option__check:not(.panel-survey-vote-option__check--round)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 0.2rem;
    height: 0.42rem;
    border: solid #e6f0fb;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    box-sizing: border-box;
}

.panel-survey-vote-option:has(.panel-survey-vote-option__input:disabled):not(.is-selected) .panel-survey-vote-option__check {
    opacity: 0.48;
    border-color: rgba(148, 163, 184, 0.28);
}

.panel-survey-vote-option:has(.panel-survey-vote-option__input:disabled):not(.is-selected) .panel-survey-vote-option__check::after {
    display: none;
}

.panel-survey-vote-option__text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e6f0fb;
    line-height: 1.35;
    flex: 1 1 auto;
    min-width: 0;
}

.panel-survey-vote-option__pct {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.panel-survey-vote-option__bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
    width: 100%;
}

.panel-survey-vote-option--results .panel-survey-vote-option__bar {
    height: 8px;
    border: 1px solid rgba(3, 169, 244, 0.14);
    background: rgba(3, 169, 244, 0.1);
}

.panel-survey-vote-option__bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(3, 169, 244, 0.55) 0%, var(--primary) 55%, #5ac8fa 100%);
    transition: width 0.38s ease;
}

.panel-survey-vote-option__bar-fill--mine {
    background: linear-gradient(90deg, #0288d1 0%, var(--primary) 50%, #4fc3f7 100%);
}

.panel-survey-vote-option:hover .panel-survey-vote-option__surface {
    border-color: rgba(3, 169, 244, 0.35);
}

.panel-survey-vote-option:focus-within .panel-survey-vote-option__surface {
    outline: none;
    border-color: rgba(3, 169, 244, 0.55);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.28);
}

.panel-survey-vote-option__input:checked + .panel-survey-vote-option__surface,
.panel-survey-vote-option.is-selected .panel-survey-vote-option__surface {
    border-color: rgba(3, 169, 244, 0.55);
    background: rgba(3, 169, 244, 0.1);
}

.panel-survey-vote-option:has(.panel-survey-vote-option__input:disabled) {
    cursor: default;
}

.panel-survey-vote-option:has(.panel-survey-vote-option__input:disabled) .panel-survey-vote-option__surface {
    opacity: 0.92;
}

.apartment-edit-modal[data-panel-active-survey-modal="true"] .apartment-edit-modal__footer .apartment-edit-modal__btn--ghost:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

body.theme-light .panel-survey-vote-option__surface,
html.theme-light-preload .panel-survey-vote-option__surface {
    background: #ffffff;
    border-color: #d0e4f4;
}

body.theme-light .panel-survey-vote-option__text,
html.theme-light-preload .panel-survey-vote-option__text {
    color: #152235;
}

body.theme-light .panel-survey-vote-option__check,
html.theme-light-preload .panel-survey-vote-option__check {
    border-color: rgba(100, 130, 160, 0.45);
}

body.theme-light .panel-survey-vote-option__input:checked + .panel-survey-vote-option__surface .panel-survey-vote-option__check:not(.panel-survey-vote-option__check--round)::after,
body.theme-light .panel-survey-vote-option.is-selected .panel-survey-vote-option__check:not(.panel-survey-vote-option__check--round)::after,
html.theme-light-preload .panel-survey-vote-option__input:checked + .panel-survey-vote-option__surface .panel-survey-vote-option__check:not(.panel-survey-vote-option__check--round)::after,
html.theme-light-preload .panel-survey-vote-option.is-selected .panel-survey-vote-option__check:not(.panel-survey-vote-option__check--round)::after {
    border-color: #0284c7;
}

body.theme-light .panel-survey-vote-option__bar,
html.theme-light-preload .panel-survey-vote-option__bar {
    background: rgba(148, 163, 184, 0.28);
}

body.theme-light .panel-survey-vote-option:hover .panel-survey-vote-option__surface,
html.theme-light-preload .panel-survey-vote-option:hover .panel-survey-vote-option__surface {
    border-color: rgba(3, 169, 244, 0.45);
}

body.theme-light .panel-survey-vote-option__input:checked + .panel-survey-vote-option__surface,
body.theme-light .panel-survey-vote-option.is-selected .panel-survey-vote-option__surface,
html.theme-light-preload .panel-survey-vote-option__input:checked + .panel-survey-vote-option__surface,
html.theme-light-preload .panel-survey-vote-option.is-selected .panel-survey-vote-option__surface {
    background: rgba(3, 169, 244, 0.08);
    border-color: rgba(3, 169, 244, 0.5);
}

.payments-feed-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.hub-payments-card-item {
    background: linear-gradient(160deg, rgba(10, 18, 34, 0.92), rgba(8, 14, 28, 0.94));
    border: 1px solid rgba(3, 169, 244, 0.18);
    color: #dcecff;
}

.payments-feed-card .hub-payments-card-item__amount-row {
    margin-top: 0.2rem;
}

.payments-feed-section {
    grid-column: 1 / -1;
}

.payments-feed-card .hub-payments-card-item__head .hub-payments-card-item__status {
    margin-left: auto;
    flex-shrink: 0;
}

.payments-feed-card .hub-payments-card-item__amount i {
    font-size: 0.86rem;
    margin-right: 0.2rem;
}

.payments-feed-card .unit-pay-card__meta-row {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 0.35rem;
}

.payments-feed-card .unit-pay-card__meta-row .unit-pay-card__meta-note {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.38;
}

.payments-feed-card .unit-pay-card__meta-row .unit-pay-card__makbuz-link {
    margin-left: auto;
    flex: 0 0 auto;
}

/* Ödemeler akışı: aidat/due = yeşil (daire hareketi); kategori = tema mavisi */
.payments-feed-card--due .hub-payments-card-item__accent {
    background: linear-gradient(180deg, #6ee7b7 0%, #22c55e 48%, #15803d 100%);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35), 0 0 12px rgba(34, 197, 94, 0.22);
}

.payments-feed-card--due .hub-payments-card-item__category-icon {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.payments-feed-card--expense .hub-payments-card-item__accent {
    background: linear-gradient(180deg, #38bdf8 0%, #03a9f4 52%, #0284c7 100%);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.38), 0 0 12px rgba(3, 169, 244, 0.25);
}

.payments-feed-card--expense .hub-payments-card-item__category-icon {
    background: rgba(3, 169, 244, 0.16);
    color: #7dd3fc;
}

/* Ödemeler: daire rozeti her kartta yeşil (role-1/role-2 ayrımı yok) */
.dashboard-shell--payments-page .payments-feed-card .user-role-badge {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.user-mobile-card {
    display: flex;
    align-items: center;
    border: 1px solid rgba(3, 169, 244, 0.16);
    border-radius: 0.9rem;
    overflow: hidden;
    background: rgba(7, 14, 26, 0.84);
}

.user-mobile-card + .user-mobile-card {
    margin-top: 0.62rem;
}

.user-mobile-card__role-bar {
    width: 4px;
    margin: 0.55rem 0 0.55rem 0.5rem;
    border-radius: 999px;
    height: calc(100% - 1.1rem);
    min-height: 44px;
    background: linear-gradient(180deg, #38bdf8 0%, #03a9f4 48%, #0284c7 100%);
}

.user-mobile-card__role-bar.role-2 { background: linear-gradient(180deg, #4ade80 0%, #22c55e 48%, #16a34a 100%); }
.user-mobile-card__role-bar.role-3 { background: linear-gradient(180deg, #38bdf8 0%, #03a9f4 48%, #0284c7 100%); }
.user-mobile-card__role-bar.role-4 { background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 48%, #d97706 100%); }
.user-mobile-card__role-bar.role-5 { background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 48%, #7c3aed 100%); }

.user-mobile-card__body {
    flex: 1;
    padding: 0.64rem 0.72rem;
}

.user-mobile-card__top {
    display: flex;
    align-items: center;
    gap: 0.58rem;
}

.user-mobile-card__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 169, 244, 0.2);
    color: #eaf7ff;
    font-weight: 700;
    font-size: 0.74rem;
    flex-shrink: 0;
}

.user-mobile-card__identity {
    min-width: 0;
    flex: 1;
}

.user-mobile-card__name {
    margin: 0;
    color: #f7fbff;
    font-weight: 600;
    font-size: 0.82rem;
}

.user-mobile-card__phone {
    margin: 0.14rem 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.user-mobile-card__footer {
    margin-top: 0.44rem;
}

.mobile-bottom-nav {
    display: none;
}

body.theme-light .panel-kasa-quick-toggle,
html.theme-light-preload .panel-kasa-quick-toggle {
    color: #5a7a96;
    background: transparent;
}

body.theme-light .panel-kasa-quick-toggle-label i,
html.theme-light-preload .panel-kasa-quick-toggle-label i {
    color: var(--primary);
}

body.theme-light .panel-feature-card,
html.theme-light-preload .panel-feature-card,
body.theme-light .hub-payments-card-item,
html.theme-light-preload .hub-payments-card-item {
    background: linear-gradient(160deg, #f8fbff, #eef5fb);
    border-color: #d8e7f2;
}

body.theme-light .panel-feature-card__pill,
html.theme-light-preload .panel-feature-card__pill {
    color: #0c3a5f;
}

body.theme-light .panel-feature-card__cta,
html.theme-light-preload .panel-feature-card__cta {
    color: #0a3a5e;
    background: rgba(3, 169, 244, 0.1);
    border-color: rgba(3, 169, 244, 0.32);
}

body.theme-light .panel-feature-card__head h2,
html.theme-light-preload .panel-feature-card__head h2 {
    color: #0f2940;
}

body.theme-light .panel-mini-title,
html.theme-light-preload .panel-mini-title {
    color: #0f2940;
}

body.theme-light .panel-mini-title__icon,
html.theme-light-preload .panel-mini-title__icon {
    background: transparent;
    border: 0;
    color: #0287c9;
}

body.theme-light .panel-feature-card__meta,
html.theme-light-preload .panel-feature-card__meta {
    color: #567a96;
}

/* Anketler + İlanlar: 2 sütun yan yana */
.panel-feature-cards-row {
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
    margin-top: 0;
}

.panel-feature-cards-row .panel-feature-card {
    margin-top: 0;
}

body.theme-light .user-mobile-card,
html.theme-light-preload .user-mobile-card {
    background: #ffffff;
    border-color: #d9e8f3;
}

body.theme-light .user-mobile-card__name,
html.theme-light-preload .user-mobile-card__name {
    color: #0f2940;
}

@media (max-width: 1024px) {
    .payments-feed-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        position: fixed;
        left: max(0.85rem, env(safe-area-inset-left, 0px));
        right: max(0.85rem, env(safe-area-inset-right, 0px));
        bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
        z-index: 96;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        width: auto;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(8, 16, 32, 0.92);
        backdrop-filter: blur(24px) saturate(1.2);
        box-shadow: 0 10px 32px rgba(2, 8, 22, 0.38);
        padding: 0.35rem 0.45rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        overflow: visible;
        transform: translateY(0) scale(1);
        opacity: 1;
        transition:
            transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.32s ease,
            padding 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .mobile-bottom-nav.is-collapsed {
        transform: translateY(0) scale(0.88);
        transform-origin: center bottom;
        opacity: 0.94;
        padding: 0.22rem 0.38rem calc(0.22rem + env(safe-area-inset-bottom, 0px));
        pointer-events: auto;
    }

    .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__item {
        min-height: 46px;
        gap: 0;
    }

    .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__item > span:not(.mobile-bottom-nav__icon-wrap) {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        transform: translateY(4px);
    }

    .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__center-wrap {
        margin-top: -10px;
        min-height: 46px;
    }

    .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__item--center {
        width: 44px;
        height: 44px;
        margin-bottom: 4px;
        box-shadow: none;
    }

    .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__item.is-active::before {
        width: 16px;
        height: 2px;
    }

    .mobile-bottom-nav__item > span:not(.mobile-bottom-nav__icon-wrap) {
        transition:
            opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
            max-height 0.38s ease,
            transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* ── Normal nav item ── */
    .mobile-bottom-nav__item {
        position: relative;
        text-decoration: none;
        color: rgba(160, 190, 220, 0.55);
        min-height: 58px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.26rem;
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.01em;
        transition: color 0.2s ease;
        overflow: visible;
    }

    .mobile-bottom-nav__item i {
        font-size: 1rem;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .mobile-bottom-nav__icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-nav__badge {
        position: absolute;
        top: -5px;
        right: -7px;
        min-width: 14px;
        height: 14px;
        padding: 0 3px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: 0.5rem;
        font-weight: 700;
        line-height: 14px;
        text-align: center;
        pointer-events: none;
    }

    /* ── Active: top indicator line ── */
    .mobile-bottom-nav__item.is-active {
        color: var(--primary);
    }

    .mobile-bottom-nav__item.is-active i {
        color: var(--primary);
        transform: translateY(-1px);
    }

    .mobile-bottom-nav__item.is-active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 22px;
        height: 2.5px;
        background: var(--primary);
        border-radius: 0 0 3px 3px;
    }

    /* ── Center FAB button ── */
    .mobile-bottom-nav__item--center {
        position: relative;
        width: 52px;
        height: 52px;
        min-height: unset;
        border-radius: 50%;
        background: var(--primary-gradient, linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%));
        box-shadow:
            0 0 0 4px rgba(11, 18, 32, 0.94),
            0 6px 20px rgba(3, 169, 244, 0.45);
        color: #fff;
        gap: 0;
        margin-bottom: 10px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-bottom-nav__item--center:active {
        transform: scale(0.93);
    }

    .mobile-bottom-nav__item--center i {
        font-size: 1.2rem;
        color: #fff;
        transition: none;
    }

    .mobile-bottom-nav__item--center span {
        display: none;
    }

    .mobile-bottom-nav__item--center::before {
        display: none !important;
    }

    .mobile-bottom-nav__item--center.is-active {
        color: #fff;
    }

    .mobile-bottom-nav__item--center.is-active i {
        color: #fff;
        transform: none;
    }

    /* Center wrapper — grid hücresini doldurur, butonu üste taşır */
    .mobile-bottom-nav__center-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        min-height: 58px;
        margin-top: -18px;
    }

    /* ── Light theme ── */
    body.theme-light .mobile-bottom-nav,
    html.theme-light-preload .mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.94);
        border-color: rgba(15, 23, 42, 0.08);
        box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
    }

    body.theme-light .mobile-bottom-nav__item,
    html.theme-light-preload .mobile-bottom-nav__item {
        color: #64748b;
    }

    body.theme-light .mobile-bottom-nav__item.is-active,
    html.theme-light-preload .mobile-bottom-nav__item.is-active {
        color: var(--primary);
    }

    body.theme-light .mobile-bottom-nav__item--center,
    html.theme-light-preload .mobile-bottom-nav__item--center {
        box-shadow:
            0 0 0 4px rgba(255, 255, 255, 0.95),
            0 6px 18px rgba(3, 169, 244, 0.35);
    }

    body.theme-light .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__item--center,
    html.theme-light-preload .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__item--center {
        box-shadow: none;
    }

    body.theme-light .mobile-bottom-nav__item.is-active::before,
    html.theme-light-preload .mobile-bottom-nav__item.is-active::before {
        background: var(--primary);
    }
}
:root {
    --topbar-h: 4rem; /* ~64px; JS tarafından gerçek yüksekliğe güncellenir */
    --font-plus-jakarta-sans: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", ui-sans-serif, system-ui, sans-serif;
    --receipt-logo-brand-filter: invert(61%) sepia(89%) saturate(1887%) hue-rotate(165deg) brightness(101%) contrast(97%);
    --bg: #0b1220;
    --surface: #111a2e;
    --text: #e5edf7;
    --muted: #9fb0c8;
    --primary: #03a9f4;
    --primary-color: #03a9f4;
    --primary-hover: #29b6f6;
    --primary-soft: rgba(3, 169, 244, 0.12);
    --primary-border: rgba(3, 169, 244, 0.45);
    --border: #22314a;
    --border-color: #22314a;
    --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
    --mobile-top-gradient: linear-gradient(135deg, #03a9f4 0%, #039be5 100%);
    --mobile-top-shadow: 0 10px 24px rgba(2, 19, 45, 0.24);
    --mobile-page-banner-gradient-dark: linear-gradient(165deg, #152536 0%, #111a2e 44%, #0b1220 100%);
    --mobile-page-banner-top-dark: #152536;
    --footer-height: 58px;
    /* Card & input tokens — used across modals, survey options, profile */
    --card-bg: #111a2e;
    --card-border: #22314a;
    --input-bg: #0d1526;
    --input-border: #22314a;
}

@media (max-width: 680px) {
    .receipt-modal-actions {
        justify-content: center;
    }
}

body.modal-open {
    overflow: hidden;
}

.apartment-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 9150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
}

.apartment-edit-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.46);
    backdrop-filter: blur(6px);
}

.apartment-edit-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    border-radius: 1.1rem;
    border: 0;
    background: linear-gradient(165deg, rgba(16, 26, 44, 0.98), rgba(11, 20, 35, 0.97));
    box-shadow: 0 24px 52px rgba(2, 8, 23, 0.52);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2.4rem);
}

/* Dialog'un direkt form çocuğu: flex column olur, içeriği scroll eder */
.apartment-edit-modal__dialog > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Form içindeki grid alanı scroll eder */
.apartment-edit-modal__dialog > form > .apartment-edit-modal__grid {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* Header ve footer sabit kalır */
.apartment-edit-modal__header {
    flex-shrink: 0;
}

.apartment-edit-modal__dialog > form > .apartment-edit-modal__footer {
    flex-shrink: 0;
}

/* Mobil kabuk: form modallari alttan tam genislik sheet gibi acilsin */
body.has-dashboard-shell.browser-mobile-shell .apartment-edit-modal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    z-index: 9300;
}

body.has-dashboard-shell.browser-mobile-shell .apartment-edit-modal__dialog {
    width: 100%;
    max-width: 100%;
    max-height: min(92svh, calc(100dvh - env(safe-area-inset-top, 0px) - 0.35rem));
    margin: 0;
    border-radius: 1.2rem 1.2rem 0 0;
    border-bottom: 0;
    box-shadow: 0 -22px 44px rgba(2, 8, 23, 0.45);
}

body.has-dashboard-shell.browser-mobile-shell .apartment-edit-modal__dialog > form > .apartment-edit-modal__grid,
body.has-dashboard-shell.browser-mobile-shell .apartment-edit-modal__form > .space-y-3 {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.has-dashboard-shell.browser-mobile-shell .due-receipt-action-sheet {
    z-index: 9250;
}

body.has-dashboard-shell.browser-mobile-shell .due-receipt-action-sheet__panel {
    max-height: min(92svh, calc(100dvh - env(safe-area-inset-top, 0px) - 0.35rem));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.unit-card-sheet {
    position: fixed;
    inset: 0;
    z-index: 9200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.unit-card-sheet.hidden {
    display: none !important;
    pointer-events: none !important;
}

.unit-card-sheet.is-open {
    pointer-events: auto;
}

.dashboard-shell--units-page {
    position: relative;
}

.unit-card-sheet__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(5, 10, 20, 0.48);
    opacity: 0;
    transition: opacity 0.28s ease;
}

body.has-dashboard-shell.browser-mobile-shell .unit-card-sheet__backdrop {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.has-dashboard-shell.browser-mobile-shell .unit-card-sheet:not(.is-open) .unit-card-sheet__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.unit-card-sheet__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    border-radius: 1.2rem 1.2rem 0 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(165deg, rgba(16, 26, 44, 0.99), rgba(11, 20, 35, 0.98));
    box-shadow: 0 -22px 44px rgba(2, 8, 23, 0.45);
    padding: 0.7rem 0.95rem 1rem;
    opacity: 0.94;
    transform: translateY(108%);
    transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.2, 1), opacity 0.24s ease;
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    max-height: min(92svh, calc(100dvh - env(safe-area-inset-top, 0px) - 0.35rem));
    overflow: hidden;
    box-sizing: border-box;
}

.unit-card-sheet.is-open .unit-card-sheet__backdrop {
    opacity: 1;
}

.unit-card-sheet.is-open .unit-card-sheet__panel {
    opacity: 1;
    transform: translateY(0);
}

/* Mobil kabuk: makbuz popup ile ayni viewport-alt panel */
body.has-dashboard-shell.browser-mobile-shell [data-unit-card-sheet="true"] {
    position: fixed;
    inset: 0;
    z-index: 9200;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

body.has-dashboard-shell.browser-mobile-shell [data-unit-card-sheet="true"] .unit-card-sheet__panel {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    border-radius: 1.2rem 1.2rem 0 0;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    transition: opacity 0.24s ease !important;
    transform: translateY(110%);
}

body.has-dashboard-shell.browser-mobile-shell [data-unit-card-sheet="true"]:not(.is-open) .unit-card-sheet__panel {
    transform: translateY(110%);
    opacity: 0.94;
}

body.has-dashboard-shell.browser-mobile-shell [data-unit-card-sheet="true"].is-open .unit-card-sheet__panel {
    opacity: 1;
    transform: translateY(0);
    animation: due-receipt-sheet-in 0.28s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    body.has-dashboard-shell.browser-mobile-shell [data-unit-card-sheet="true"].is-open .unit-card-sheet__panel {
        animation: none;
        transform: translateY(0);
    }
}

/* Mobil kabuk: genis viewport'ta da makbuz gibi alttan acilir */
@media (min-width: 1025px) {
    body.has-dashboard-shell.browser-mobile-shell [data-unit-card-sheet="true"]:not(.unit-card-sheet--anchored),
    body.has-dashboard-shell.browser-mobile-shell [data-units-quick-sheet="true"] {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    body.has-dashboard-shell.browser-mobile-shell [data-unit-card-sheet="true"]:not(.unit-card-sheet--anchored) .unit-card-sheet__handle,
    body.has-dashboard-shell.browser-mobile-shell [data-units-quick-sheet="true"] .unit-card-sheet__handle {
        display: block;
    }

    body.has-dashboard-shell.browser-mobile-shell [data-unit-card-sheet="true"]:not(.unit-card-sheet--anchored) .unit-card-sheet__panel,
    body.has-dashboard-shell.browser-mobile-shell [data-units-quick-sheet="true"] .unit-card-sheet__panel {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        border-radius: 1.2rem 1.2rem 0 0 !important;
        box-shadow: 0 -22px 44px rgba(2, 8, 23, 0.45);
        transition: opacity 0.24s ease !important;
        transform: translateY(110%) !important;
        opacity: 0.94 !important;
    }

    body.has-dashboard-shell.browser-mobile-shell [data-unit-card-sheet="true"]:not(.unit-card-sheet--anchored).is-open .unit-card-sheet__panel,
    body.has-dashboard-shell.browser-mobile-shell [data-units-quick-sheet="true"].is-open .unit-card-sheet__panel {
        opacity: 1 !important;
        transform: translateY(0) !important;
        animation: due-receipt-sheet-in 0.28s ease-out forwards;
    }

    @media (prefers-reduced-motion: reduce) {
        body.has-dashboard-shell.browser-mobile-shell [data-unit-card-sheet="true"]:not(.unit-card-sheet--anchored).is-open .unit-card-sheet__panel,
        body.has-dashboard-shell.browser-mobile-shell [data-units-quick-sheet="true"].is-open .unit-card-sheet__panel {
            animation: none !important;
            transform: translateY(0) !important;
        }
    }
}

/* Daire / odeme sheet: masaustu — tetikleyici kartin altina sabitle (modal orta yerine) */
@media (min-width: 1025px) {
    .unit-card-sheet.unit-card-sheet--anchored {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
    }

    .unit-card-sheet.unit-card-sheet--anchored .unit-card-sheet__handle {
        display: none;
    }

    .unit-card-sheet.unit-card-sheet--anchored .unit-card-sheet__panel,
    .unit-card-sheet.unit-card-sheet--fixed .unit-card-sheet__panel {
        position: fixed;
        top: var(--unit-sheet-top, 5rem);
        left: var(--unit-sheet-left, 1rem);
        width: var(--unit-sheet-width, min(92vw, 440px));
        max-width: min(92vw, 440px);
        max-height: min(88vh, 720px);
        overflow-x: hidden;
        overflow-y: auto;
        margin: 0;
        border-radius: 1.2rem;
        box-shadow: 0 24px 54px rgba(2, 8, 23, 0.45);
        transform: translateY(12px) scale(0.97);
        opacity: 0;
        z-index: 9200;
    }

    .unit-card-sheet.unit-card-sheet--anchored.is-open .unit-card-sheet__panel,
    .unit-card-sheet.unit-card-sheet--fixed.is-open .unit-card-sheet__panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    body.theme-light .unit-card-sheet.unit-card-sheet--anchored .unit-card-sheet__panel,
    html.theme-light-preload .unit-card-sheet.unit-card-sheet--anchored .unit-card-sheet__panel,
    body.theme-light .unit-card-sheet.unit-card-sheet--fixed .unit-card-sheet__panel,
    html.theme-light-preload .unit-card-sheet.unit-card-sheet--fixed .unit-card-sheet__panel {
        box-shadow: 0 20px 48px rgba(15, 52, 90, 0.16);
    }

    /* Ortalanmis modal: yalnizca anchore olmayan sheet */
    .unit-card-sheet:not(.unit-card-sheet--anchored)[data-unit-card-sheet="true"],
    .unit-card-sheet:not(.unit-card-sheet--anchored)[data-upay-card-sheet="true"] {
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .unit-card-sheet:not(.unit-card-sheet--anchored)[data-unit-card-sheet="true"] .unit-card-sheet__handle,
    .unit-card-sheet:not(.unit-card-sheet--anchored)[data-upay-card-sheet="true"] .unit-card-sheet__handle {
        display: none;
    }

    .unit-card-sheet:not(.unit-card-sheet--anchored)[data-unit-card-sheet="true"] .unit-card-sheet__panel,
    .unit-card-sheet:not(.unit-card-sheet--anchored)[data-upay-card-sheet="true"] .unit-card-sheet__panel {
        width: min(92vw, 440px);
        max-height: min(88vh, 720px);
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 1.2rem;
        box-shadow: 0 24px 54px rgba(2, 8, 23, 0.45);
        transform: translateY(14px) scale(0.96);
        opacity: 0;
    }

    .unit-card-sheet:not(.unit-card-sheet--anchored)[data-unit-card-sheet="true"].is-open .unit-card-sheet__panel,
    .unit-card-sheet:not(.unit-card-sheet--anchored)[data-upay-card-sheet="true"].is-open .unit-card-sheet__panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    body.theme-light .unit-card-sheet:not(.unit-card-sheet--anchored)[data-unit-card-sheet="true"] .unit-card-sheet__panel,
    html.theme-light-preload .unit-card-sheet:not(.unit-card-sheet--anchored)[data-unit-card-sheet="true"] .unit-card-sheet__panel,
    body.theme-light .unit-card-sheet:not(.unit-card-sheet--anchored)[data-upay-card-sheet="true"] .unit-card-sheet__panel,
    html.theme-light-preload .unit-card-sheet:not(.unit-card-sheet--anchored)[data-upay-card-sheet="true"] .unit-card-sheet__panel {
        box-shadow: 0 20px 48px rgba(15, 52, 90, 0.16);
    }
}

.unit-card-sheet__handle {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.5);
    margin: 0.2rem auto 0.75rem;
}

.unit-card-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-shrink: 0;
}

.unit-card-sheet__title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text);
}

.unit-card-sheet__close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
}

.unit-card-sheet__rows {
    margin-top: 0.65rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.28);
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.unit-card-sheet__person-card {
    margin-top: 0.6rem;
    border: none;
    border-radius: 0.82rem;
    padding: 0.58rem 0.62rem;
    background: rgba(15, 23, 42, 0.42);
}

.unit-card-sheet__person-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.unit-card-sheet__identity {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    min-width: 0;
    flex: 1 1 auto;
}

.unit-card-sheet__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(3, 169, 244, 0.16);
    border: 1px solid rgba(3, 169, 244, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.unit-card-sheet__avatar--img {
    overflow: hidden;
    background: transparent;
}

.unit-card-sheet__avatar--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.unit-card-sheet__identity-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.unit-card-sheet__person-name {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
}

.unit-card-sheet__person-sub {
    margin-top: 0.34rem;
    color: var(--text);
    font-size: 0.76rem;
}

.unit-card-sheet__person-actions {
    margin-top: 0.48rem;
    display: flex;
    gap: 0.42rem;
}

.unit-card-sheet__quick {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    border-radius: 0.62rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.42rem 0.5rem;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.unit-card-sheet__quick:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.unit-card-sheet__quick.is-disabled {
    opacity: 0.46;
    pointer-events: none;
}

/* Ara butonu — primary blue */
.unit-card-sheet__quick--call {
    border: 0;
    background: rgba(3, 169, 244, 0.08);
    color: var(--primary);
}

.unit-card-sheet__quick--call:hover:not(.is-disabled),
.unit-card-sheet__quick--call:focus-visible {
    background: rgba(3, 169, 244, 0.16);
    border-color: rgba(3, 169, 244, 0.55);
}

/* WhatsApp butonu — WA green */
.unit-card-sheet__quick--wa {
    border: 0;
    background: rgba(37, 211, 102, 0.08);
    color: #25d366;
}

.unit-card-sheet__quick--wa:hover:not(.is-disabled),
.unit-card-sheet__quick--wa:focus-visible {
    background: rgba(37, 211, 102, 0.16);
    border-color: rgba(37, 211, 102, 0.55);
}

/* Phone display */
.unit-card-sheet__phone-display {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.unit-card-sheet__phone-display i {
    font-size: 0.68rem;
    color: var(--primary);
    opacity: 0.7;
}

/* ---- Unit Payments Summary Card ---- */
.upay-summary-card__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.upay-summary-card__item {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    background: var(--card-bg, var(--surface));
    border: 1px solid var(--border);
}

.upay-summary-card__item--paid {
    border-color: rgba(16,185,129,0.25);
    background: rgba(16,185,129,0.07);
}

.upay-summary-card__item--unpaid {
    border-color: rgba(239,68,68,0.22);
    background: rgba(239,68,68,0.06);
}

.upay-summary-card__label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.upay-summary-card__value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}

.upay-summary-card__item--paid .upay-summary-card__value {
    color: #10b981;
}

.upay-summary-card__item--unpaid .upay-summary-card__value {
    color: #ef4444;
}

.upay-summary-card__manager-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.15rem;
}

@media (max-width: 400px) {
    .upay-summary-card__grid {
        grid-template-columns: 1fr 1fr;
    }
    .upay-summary-card__item:first-child {
        grid-column: 1 / -1;
    }
}

.units-period-banner__mobile-tools-row {
    margin-top: 0.52rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.46rem;
    align-items: stretch;
}

.units-period-banner__mobile-tools-row .units-pay-filter-select-wrap--mobile {
    min-width: 0;
    width: 100%;
}

.units-period-banner__mobile-tools-row .units-period-banner__quick-actions-btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex-shrink: 1;
}

.units-period-banner__quick-actions-btn {
    border: 1px solid #30435f;
    background: #0d1729;
    color: #e6f0fb;
    border-radius: 0.52rem;
    padding: 0.42rem 0.64rem;
    min-height: 38px;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    box-shadow: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.units-period-banner__quick-actions-btn i {
    color: #7dd3fc;
    font-size: 0.82rem;
}

.units-period-banner__quick-actions-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.18);
    color: #f2fbff;
    box-shadow: none;
}

.units-period-banner__quick-actions-btn:active {
    transform: scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
    .units-period-banner__quick-actions-btn:active {
        transform: none;
    }
}

.units-period-banner__quick-actions-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

body.theme-light .units-period-banner__quick-actions-btn,
html.theme-light-preload .units-period-banner__quick-actions-btn {
    border-color: rgba(3, 169, 244, 0.24);
    background: #ffffff;
    color: #152235;
    box-shadow: none;
}

body.theme-light .units-period-banner__quick-actions-btn:hover,
html.theme-light-preload .units-period-banner__quick-actions-btn:hover {
    border-color: rgba(3, 169, 244, 0.24);
    background: rgba(3, 169, 244, 0.08);
    color: #0d3253;
    box-shadow: none;
}

body.theme-light .units-period-banner__quick-actions-btn i,
html.theme-light-preload .units-period-banner__quick-actions-btn i {
    color: #028ecc;
}

.units-period-banner--page-slot .units-period-banner__quick-actions-btn {
    border: 0;
    border-radius: 0.52rem;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.96);
}

.units-period-banner--page-slot .units-period-banner__quick-actions-btn:hover {
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.units-period-banner--page-slot .units-period-banner__quick-actions-btn i {
    color: rgba(255, 255, 255, 0.92);
}

.units-period-banner__search-heading {
    margin: 0 0 0.48rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    color: rgba(245, 250, 255, 0.94);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
}

.units-period-banner__search-heading-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.units-period-banner__search-heading-line {
    width: clamp(26px, 10vw, 44px);
    height: 1px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(235, 247, 255, 0.45), rgba(255, 255, 255, 0));
    opacity: 0.9;
}

.units-period-banner__search-heading-label {
    display: inline-block;
}

.units-period-banner__search-heading i {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.74rem;
    line-height: 1;
    opacity: 0.95;
}

.units-period-banner__search-heading--toolbar {
    margin: 0.56rem 0 0.46rem;
    flex-direction: row;
    gap: 0.42rem;
}

.units-period-banner--page-slot .units-period-banner__search-heading,
.units-period-banner--page-slot .units-period-banner__search-heading-text {
    color: rgba(245, 250, 255, 0.94) !important;
}

.units-period-banner--page-slot .units-period-banner__search-heading i {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.theme-light .units-period-banner--page-slot .units-period-banner__quick-actions-btn,
html.theme-light-preload .units-period-banner--page-slot .units-period-banner__quick-actions-btn {
    border: 0;
    border-radius: 0.52rem;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

body.theme-light .units-period-banner--page-slot .units-period-banner__quick-actions-btn:hover,
html.theme-light-preload .units-period-banner--page-slot .units-period-banner__quick-actions-btn:hover {
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

body.theme-light .units-period-banner--page-slot .units-period-banner__quick-actions-btn i,
html.theme-light-preload .units-period-banner--page-slot .units-period-banner__quick-actions-btn i {
    color: rgba(255, 255, 255, 0.92);
}

body.theme-light .units-period-banner__search-heading,
html.theme-light-preload .units-period-banner__search-heading {
    color: #1f3a52;
}

body.theme-light .units-period-banner__search-heading-line,
html.theme-light-preload .units-period-banner__search-heading-line {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(240, 248, 255, 0.74), rgba(255, 255, 255, 0));
    opacity: 0.98;
}

.units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-trigger {
    border: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.14);
    color: rgba(255, 255, 255, 0.96);
}

.units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label,
.units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-caret {
    color: rgba(255, 255, 255, 0.9);
}

.units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label.is-placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.units-period-banner--page-slot .units-pay-filter-select-wrap .units-pay-filter-select-icon {
    color: rgba(255, 255, 255, 0.88);
}

.units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label-icon {
    color: rgba(255, 255, 255, 0.92);
}

.units-period-banner--page-slot .units-pay-filter-select-wrap.is-open .custom-select-trigger {
    border: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.32);
}

body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-trigger,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-trigger {
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.22);
    color: #f0f9ff;
}

body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label,
body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-caret,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-caret {
    color: #f0f9ff;
}

body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label.is-placeholder,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label.is-placeholder {
    color: rgba(255, 255, 255, 0.62);
}

body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .units-pay-filter-select-icon,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .units-pay-filter-select-icon,
body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label-icon,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label-icon {
    color: rgba(255, 255, 255, 0.92);
}

body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap.is-open .custom-select-trigger {
    border: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-menu,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-menu {
    background: #0d1729;
    border: 1px solid var(--primary-border);
    box-shadow: 0 14px 32px rgba(1, 10, 20, 0.42);
}

body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-option,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-option {
    color: #e6f0fb;
}

body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-option.has-divider,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-option.has-divider {
    border-top-color: rgba(127, 152, 182, 0.25);
}

body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-option:hover,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-option:hover {
    background: var(--primary-soft);
}

body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-option.is-selected,
html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-option.is-selected {
    color: var(--primary);
    background: var(--primary-soft);
}

@media (min-width: 821px) {
    .units-period-banner__mobile-tools-row {
        display: none;
    }

    /* Genis pencerede mobil kabuk: viewport dar olsa da media genis; banner filtre + hizli islemler mobildeki gibi kalsin */
    body.has-dashboard-shell.browser-mobile-shell .units-period-banner--page-slot .units-period-banner__mobile-tools-row {
        display: grid;
    }
}

.units-quick-sheet__actions {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.45rem;
}

.units-quick-sheet__action {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 0.66rem;
    padding: 0.58rem 0.64rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.48rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.units-quick-sheet__action--danger {
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

.units-quick-sheet__action:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hızlı işlem sheet: menü satırları tema birincil rengine bağlı */
[data-units-quick-sheet="true"] .units-quick-sheet__action {
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

[data-units-quick-sheet="true"] .units-quick-sheet__action i {
    color: var(--primary);
    transition: color 0.18s ease;
}

[data-units-quick-sheet="true"] .units-quick-sheet__action:hover {
    border-color: var(--primary-border);
    background: var(--primary-soft);
    color: var(--text);
}

[data-units-quick-sheet="true"] .units-quick-sheet__action:hover i {
    color: var(--primary-hover);
}

[data-units-quick-sheet="true"] .units-quick-sheet__action--danger i {
    color: #f87171;
}

[data-units-quick-sheet="true"] .units-quick-sheet__action--danger:hover {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(254, 202, 202, 0.12);
    color: #fecaca;
}

[data-units-quick-sheet="true"] .units-quick-sheet__action--danger:hover i {
    color: #fca5a5;
}

[data-units-quick-sheet="true"] .unit-card-sheet__panel--quick-menu > .unit-card-sheet__title {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    margin: 0 0 0.7rem;
    padding: 0 0.35rem;
    box-sizing: border-box;
}

[data-upay-card-sheet="true"] .unit-card-sheet__panel--quick-menu > .unit-card-sheet__title,
[data-aidat-ledger-sheet="true"] .unit-card-sheet__panel--quick-menu > .unit-card-sheet__title,
[data-hub-pay-card-sheet="true"] .unit-card-sheet__panel--quick-menu > .unit-card-sheet__title,
[data-odemeler-card-sheet="true"] .unit-card-sheet__panel--quick-menu > .unit-card-sheet__title {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    margin: 0 0 0.7rem;
    padding: 0 0.35rem;
    box-sizing: border-box;
}

.unit-card-sheet__panel--aidat-ledger {
    padding-bottom: 0.9rem;
}

.unit-card-sheet--ledger-modal {
    align-items: center;
    padding: 1rem;
}

.unit-card-sheet--ledger-modal .unit-card-sheet__panel {
    width: min(92vw, 430px);
    border-radius: 1.2rem;
    box-shadow: 0 24px 54px rgba(2, 8, 23, 0.45);
    transform: translateY(10px) scale(0.96);
}

.unit-card-sheet--ledger-modal.is-open .unit-card-sheet__panel {
    transform: translateY(0) scale(1);
}

.aidat-ledger-modal__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.aidat-ledger-modal__icon,
.aidat-ledger-modal__close {
    display: inline-flex;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.68rem;
}

.aidat-ledger-modal__icon {
    background: rgba(3, 169, 244, 0.14);
    color: var(--primary);
}

.aidat-ledger-modal__close {
    margin-left: auto;
    border: 0;
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.aidat-ledger-modal__close:hover {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
}

.aidat-ledger-modal__close:active {
    transform: scale(0.96);
}

.aidat-ledger-modal__close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.unit-card-sheet--ledger-modal .unit-card-sheet__title {
    margin: 0;
    padding: 0;
    text-align: left;
}

.aidat-ledger-modal__subtitle {
    margin: 0.1rem 0 0;
    color: var(--muted);
    font-size: 0.68rem;
}

.aidat-ledger-table {
    overflow: hidden;
    margin-top: 0.72rem;
    border-radius: 0.82rem;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.aidat-ledger-table__head,
.aidat-ledger-table__row {
    display: grid;
    grid-template-columns: 0.98fr 0.9fr 0.82fr 0.9fr;
    align-items: center;
    gap: 0.34rem;
}

.aidat-ledger-table__head {
    padding: 0.54rem 0.62rem;
    background: rgba(3, 169, 244, 0.1);
    color: rgba(191, 226, 245, 0.86);
    font-size: 0.62rem;
    font-weight: 800;
}

.aidat-ledger-table__row {
    padding: 0.66rem 0.62rem;
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 650;
}

.aidat-ledger-table__amount {
    white-space: nowrap;
    text-align: right;
    font-weight: 850;
}

.aidat-ledger-table__amount--debt {
    color: #f87171;
}

.aidat-ledger-table__amount--paid {
    color: #4ade80;
}

body.theme-light .aidat-ledger-table,
html.theme-light-preload .aidat-ledger-table {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

body.theme-light .aidat-ledger-table__head,
html.theme-light-preload .aidat-ledger-table__head {
    background: rgba(3, 169, 244, 0.1);
    color: #0369a1;
}

body.theme-light .aidat-ledger-modal__close,
html.theme-light-preload .aidat-ledger-modal__close {
    background: rgba(3, 169, 244, 0.08);
    color: #6a86a0;
}

body.theme-light .aidat-ledger-modal__close:hover,
html.theme-light-preload .aidat-ledger-modal__close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

body.theme-light .aidat-ledger-table__amount--debt,
html.theme-light-preload .aidat-ledger-table__amount--debt {
    color: #dc2626;
}

body.theme-light .aidat-ledger-table__amount--paid,
html.theme-light-preload .aidat-ledger-table__amount--paid {
    color: #16a34a;
}

.units-quick-sheet__dismiss {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.45rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.5rem;
    font-family: inherit;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.units-quick-sheet__dismiss:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.12);
}

.units-quick-sheet__dismiss:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.theme-light .units-quick-sheet__dismiss:hover,
html.theme-light-preload .units-quick-sheet__dismiss:hover {
    background: rgba(15, 23, 42, 0.06);
}

.unit-card-sheet__row {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.56rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
    font-size: 0.8rem;
}

.unit-card-sheet__row span {
    color: var(--muted);
}

.unit-card-sheet__row strong {
    color: var(--text);
    text-align: right;
}

.unit-card-sheet__actions {
    margin-top: 0.72rem;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.unit-card-sheet__actions--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.unit-card-sheet__top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.unit-card-sheet__btn {
    border-radius: 0.62rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 0.46rem 0.8rem;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.unit-card-sheet__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.unit-card-sheet__btn--primary {
    background: var(--primary);
    border-color: var(--primary-border, var(--primary));
    color: #fff;
}

.unit-card-sheet__btn--primary:hover:not(:disabled) {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.unit-card-sheet__btn--primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.unit-card-sheet__btn--outline {
    background: transparent;
    border-color: var(--primary-border, rgba(3, 169, 244, 0.45));
    color: var(--primary);
}

.unit-card-sheet__btn--outline:hover:not(:disabled) {
    background: var(--primary-soft, rgba(3, 169, 244, 0.12));
}

.unit-card-sheet__btn--outline:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.unit-card-sheet__btn--ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--muted);
}

.unit-card-sheet__btn--ghost:hover:not(:disabled) {
    border-color: var(--text);
    color: var(--text);
}

.unit-card-sheet__btn--ghost:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.unit-card-sheet__quick-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.unit-card-sheet__quick-list form {
    margin: 0;
    width: 100%;
}

.unit-card-sheet__quick-list .unit-card-sheet__btn {
    width: 100%;
}

.unit-card-sheet__btn--danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.unit-card-sheet__btn--danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.unit-card-sheet__btn--charge-primary {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.unit-card-sheet__btn--charge-primary:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
}

.unit-card-sheet__btn--charge-primary:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.unit-card-sheet__btn--vacate {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.unit-card-sheet__btn--vacate:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.unit-card-sheet__btn--vacate:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.unit-card-sheet__btn--borderless {
    border-color: transparent !important;
    background: transparent !important;
    font-size: 0.74rem;
    color: var(--muted);
    opacity: 0.75;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.unit-card-sheet__btn--borderless:hover:not(:disabled) {
    opacity: 1;
    color: var(--text);
    border-color: transparent !important;
    background: transparent !important;
}

.unit-card-sheet__dismiss {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.45rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border-radius: 0.5rem;
    transition: color 0.15s ease, background 0.15s ease;
    text-align: center;
}
.unit-card-sheet__dismiss:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}
.unit-card-sheet__dismiss:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
body.theme-light .unit-card-sheet__dismiss:hover,
html.theme-light-preload .unit-card-sheet__dismiss:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text);
}

.unit-card-sheet__btn--detail {
    font-size: 0.74rem;
}

body.theme-light .unit-card-sheet__panel {
    background: #ffffff;
    border-color: #d9e8f5;
    box-shadow: 0 -18px 36px rgba(15, 52, 90, 0.2);
}

body.theme-light .unit-card-sheet__handle {
    background: rgba(100, 116, 139, 0.55);
}

body.theme-light .unit-card-sheet__row span {
    color: #64748b;
}

body.theme-light .unit-card-sheet__row strong {
    color: #152235;
}

body.theme-light .unit-card-sheet__person-card {
    background: #f3f8fd;
}

.apartment-edit-modal__header,
.apartment-edit-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1rem 1.1rem 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(10, 18, 32, 0.92);
    border-radius: 1.1rem 1.1rem 0 0;
}

.apartment-edit-modal__footer {
    border-bottom: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0 0 1.1rem 1.1rem;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.86rem 1.1rem 1rem;
}

.receipt-modal-actions {
    justify-content: center;
    flex-wrap: wrap;
}

.receipt-share-card {
    width: min(100%, 680px);
    margin: 0 auto;
}

.receipt-share-head {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.receipt-share-title {
    margin: 0;
    font-size: 1.1rem;
}

.receipt-share-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.receipt-share-line {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.24);
}

.receipt-share-line span {
    color: var(--muted);
}

.receipt-share-line strong {
    color: var(--text);
}

.receipt-share-note {
    margin-top: 0.8rem;
}

.receipt-share-note span {
    color: var(--muted);
    font-size: 0.82rem;
}

.receipt-share-note p {
    margin: 0.35rem 0 0;
    padding: 0.55rem 0.65rem;
    border-radius: 0.62rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.08);
    color: var(--text);
}

.receipt-share-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.receipt-share-actions--single {
    flex-direction: column;
    align-items: stretch;
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
}

.receipt-share-actions--single .sites-hero-add-btn {
    width: 100%;
    justify-content: center;
}

@media print {
    @page {
        size: auto;
        margin: 8mm;
    }

    body {
        background: #ffffff !important;
    }

    /* Hata bildir widget ve sheet'ler print'te görünmez */
    .error-reporter-widget,
    .due-receipt-action-sheet,
    .mobile-bottom-nav { display: none !important; }

    main.container {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .receipt-share-actions {
        display: none !important;
    }

    .receipt-brand-logo-wrap {
        border-color: #d4e3ef !important;
        background: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .receipt-brand-logo {
        filter: var(--receipt-logo-brand-filter) !important;
        opacity: 0.96;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .receipt-brand-title {
        color: #114067 !important;
    }

    .receipt-modal-body {
        background: #ffffff !important;
        border-top-color: #d4e3ef !important;
        border-bottom-color: #d4e3ef !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .receipt-line span {
        color: #5e738c !important;
    }

    .receipt-line strong {
        color: #122840 !important;
    }

    .receipt-brand-sub {
        color: #7e99b3 !important;
    }
}

.swal-share-popup {
    border-radius: 1rem !important;
    border: 1px solid rgba(3, 169, 244, 0.22) !important;
    background: linear-gradient(165deg, rgba(15, 25, 43, 0.98), rgba(10, 18, 32, 0.98)) !important;
}

.swal-share-popup .swal2-title {
    color: #eaf3ff !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.swal-share-popup .swal2-close {
    color: rgba(180, 204, 225, 0.9) !important;
}

.swal-share-popup .swal2-close:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.45);
    border-radius: 0.45rem;
}

.swal-share-popup .swal2-close:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.share-popup-actions {
    display: grid;
    gap: 0.5rem;
}

.share-popup-btn {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 0.72rem;
    padding: 0.56rem 0.68rem;
    background: rgba(148, 163, 184, 0.1);
    color: #dbeafe;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.share-popup-btn--ghost:hover {
    background: rgba(148, 163, 184, 0.18);
}

.share-popup-btn--primary {
    border-color: rgba(3, 169, 244, 0.46);
    background: rgba(3, 169, 244, 0.22);
    color: #eaf8ff;
}

.share-popup-btn--primary:hover {
    background: rgba(3, 169, 244, 0.3);
}

.share-popup-url-wrap {
    position: relative;
    width: 100%;
}

.share-popup-url-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.72rem;
    background: rgba(148, 163, 184, 0.08);
    color: #dbeafe;
    font-size: 0.74rem;
    padding: 0.56rem 2.1rem 0.56rem 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-popup-url-copy {
    position: absolute;
    top: 50%;
    right: 0.38rem;
    transform: translateY(-50%);
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(148, 163, 184, 0.14);
    color: #e1effc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.share-popup-url-copy:hover {
    background: rgba(3, 169, 244, 0.24);
    border-color: rgba(3, 169, 244, 0.48);
}

.share-popup-url-copy:active {
    transform: translateY(-50%) scale(0.96);
}

.share-popup-url-copy:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.65);
    outline-offset: 1px;
}

body.theme-light .swal-share-popup,
html.theme-light-preload .swal-share-popup {
    border-color: #cde3f3 !important;
    background: linear-gradient(165deg, #ffffff, #f4f9ff) !important;
}

body.theme-light .swal-share-popup .swal2-title,
html.theme-light-preload .swal-share-popup .swal2-title {
    color: #122235 !important;
}

body.theme-light .swal-share-popup .swal2-close,
html.theme-light-preload .swal-share-popup .swal2-close {
    color: #4f6780 !important;
}

body.theme-light .swal-share-popup .swal2-close:hover,
html.theme-light-preload .swal-share-popup .swal2-close:hover {
    color: #0c4a70 !important;
    background: rgba(3, 169, 244, 0.1) !important;
}

body.theme-light .share-popup-btn,
html.theme-light-preload .share-popup-btn {
    border-color: #d1e1ef;
    background: #f4f8fc;
    color: #3a5169;
}

body.theme-light .share-popup-btn--ghost:hover,
html.theme-light-preload .share-popup-btn--ghost:hover {
    background: #e9f2fa;
}

body.theme-light .share-popup-btn--primary,
html.theme-light-preload .share-popup-btn--primary {
    border-color: rgba(3, 169, 244, 0.36);
    background: rgba(3, 169, 244, 0.14);
    color: #0c6f9f;
}

body.theme-light .share-popup-url-input,
html.theme-light-preload .share-popup-url-input {
    border-color: #d1e1ef;
    background: #f4f8fc;
    color: #3a5169;
}

body.theme-light .share-popup-url-copy,
html.theme-light-preload .share-popup-url-copy {
    border-color: #c5d9ea;
    background: #e8f1f9;
    color: #3f5d78;
}

body.theme-light .share-popup-url-copy:hover,
html.theme-light-preload .share-popup-url-copy:hover {
    background: rgba(3, 169, 244, 0.16);
    border-color: rgba(3, 169, 244, 0.42);
}

.apartment-edit-modal__title-wrap {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.62rem;
    min-width: 0;
}

.apartment-edit-modal__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.68rem;
    background: rgba(3, 169, 244, 0.17);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.apartment-edit-modal__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #eaf3ff;
    letter-spacing: 0.01em;
}

.apartment-edit-modal__subtitle {
    margin: 0.12rem 0 0;
    font-size: 0.74rem;
    color: #9eb8d2;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.apartment-edit-modal__close {
    border: 0;
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 0.62rem;
    background: rgba(148, 163, 184, 0.14);
    color: #d7e5f5;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.apartment-edit-modal__close:hover {
    background: rgba(148, 163, 184, 0.24);
    color: #ffffff;
}

.apartment-edit-modal__form {
    display: grid;
}

.apartment-edit-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
    padding: 1rem 1.1rem 0.95rem;
    background: #0f1a2d;
}

.apartment-edit-modal__field {
    display: grid;
    gap: 0.38rem;
    margin-bottom: 0.22rem;
}

.apartment-edit-modal__field--full {
    grid-column: 1 / -1;
}

.apartment-edit-modal__grid > .units-optional-wrap {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.apartment-edit-modal__subscriptions-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.58rem;
}

.apartment-edit-modal__label {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #b8cce3;
}

.apartment-edit-modal__label i {
    color: var(--primary);
    font-size: 0.72rem;
}

.apartment-edit-modal__grid .auth-input,
.apartment-edit-modal__grid .custom-select-trigger {
    min-height: 42px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    color: #e6f0fb;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.apartment-edit-modal__grid .custom-select-label {
    font-size: 0.78rem;
    font-weight: 500;
}

.apartment-edit-modal__grid .custom-select-option {
    font-size: 0.78rem;
}

.apartment-edit-modal__field .input-icon {
    color: var(--primary);
}

.apartment-edit-modal__field .custom-select-wrap {
    z-index: 1;
}

.apartment-edit-modal__field .custom-select-wrap.is-open {
    z-index: 9160;
}

.apartment-edit-modal__btn {
    border: 0;
    border-radius: 0.65rem;
    min-height: 2.15rem;
    padding: 0 0.92rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.apartment-edit-modal__btn:hover {
    transform: translateY(-1px);
}

.apartment-edit-modal__btn--ghost {
    background: rgba(148, 163, 184, 0.15);
    color: #dbe7f4;
}

.apartment-edit-modal__btn--ghost:hover {
    background: rgba(148, 163, 184, 0.24);
}

.apartment-edit-modal__btn--primary {
    background: var(--primary);
    color: #ffffff;
}

.apartment-edit-modal__btn--primary:hover {
    background: var(--primary-hover);
}

body.theme-light .apartment-edit-modal__dialog,
html.theme-light-preload .apartment-edit-modal__dialog {
    background: linear-gradient(170deg, #ffffff, #f6fbff);
    box-shadow: 0 26px 56px rgba(15, 23, 42, 0.2);
}

body.theme-light .apartment-edit-modal__header,
body.theme-light .apartment-edit-modal__footer,
html.theme-light-preload .apartment-edit-modal__header,
html.theme-light-preload .apartment-edit-modal__footer {
    border-color: #d7e6f3;
    background: #eef5fc;
}

body.theme-light .apartment-edit-modal__title,
html.theme-light-preload .apartment-edit-modal__title {
    color: #12243b;
}

body.theme-light .apartment-edit-modal__subtitle,
html.theme-light-preload .apartment-edit-modal__subtitle {
    color: #5f738d;
}

body.theme-light .apartment-edit-modal__close,
html.theme-light-preload .apartment-edit-modal__close {
    background: rgba(148, 163, 184, 0.18);
    color: #43566c;
}

body.theme-light .apartment-edit-modal__close:hover,
html.theme-light-preload .apartment-edit-modal__close:hover {
    background: rgba(148, 163, 184, 0.26);
    color: #23374c;
}

body.theme-light .apartment-edit-modal__grid .auth-input,
body.theme-light .apartment-edit-modal__grid .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal__grid .auth-input,
html.theme-light-preload .apartment-edit-modal__grid .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
    font-size: 0.78rem;
    font-weight: 500;
    box-shadow: none;
}

body.theme-light .apartment-edit-modal__grid,
html.theme-light-preload .apartment-edit-modal__grid {
    background: #ffffff;
}

body.theme-light .apartment-edit-modal__label,
html.theme-light-preload .apartment-edit-modal__label {
    color: #627a92;
}

body.theme-light .apartment-edit-modal__grid .auth-input::placeholder,
html.theme-light-preload .apartment-edit-modal__grid .auth-input::placeholder {
    color: #7b8ea4;
}

body.theme-light .apartment-edit-modal__grid .auth-input:focus,
body.theme-light .apartment-edit-modal__grid .custom-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal__grid .auth-input:focus,
html.theme-light-preload .apartment-edit-modal__grid .custom-select-wrap.is-open .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.1);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.14);
}

/* Daireler: Yeni / Toplu odeme modallari (grid yerine space-y-3 + profile etiketleri) */
.apartment-edit-modal[data-dues-quick-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
.apartment-edit-modal[data-dues-bulk-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
.apartment-edit-modal[data-unit-charge-bulk-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
.apartment-edit-modal[data-unit-charge-single-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
.apartment-edit-modal[data-unit-bulk-mail-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
.apartment-edit-modal[data-unit-reminder-mail-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3 {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem 1.15rem 0.95rem;
    background: #0f1a2d;
}

.apartment-edit-modal[data-dues-quick-modal="true"] .profile-card-modern__label,
.apartment-edit-modal[data-dues-bulk-modal="true"] .profile-card-modern__label,
.apartment-edit-modal[data-unit-charge-bulk-modal="true"] .profile-card-modern__label,
.apartment-edit-modal[data-unit-charge-single-modal="true"] .profile-card-modern__label,
.apartment-edit-modal[data-unit-bulk-mail-modal="true"] .profile-card-modern__label,
.apartment-edit-modal[data-unit-reminder-mail-modal="true"] .profile-card-modern__label {
    color: #b8cce3;
}

.apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .auth-input,
.apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .custom-select-trigger,
.apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .auth-input,
.apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .custom-select-trigger,
.apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .auth-input,
.apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .custom-select-trigger,
.apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .auth-input,
.apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .custom-select-trigger,
.apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .auth-input,
.apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .custom-select-trigger,
.apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .auth-input,
.apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .custom-select-trigger {
    min-height: 42px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #e6f0fb;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .auth-input::placeholder,
.apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .auth-input::placeholder,
.apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .auth-input::placeholder,
.apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .auth-input::placeholder,
.apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .auth-input::placeholder,
.apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .auth-input::placeholder {
    color: rgba(184, 204, 227, 0.55);
}

body.theme-light .apartment-edit-modal[data-dues-quick-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
body.theme-light .apartment-edit-modal[data-dues-bulk-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
body.theme-light .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
body.theme-light .apartment-edit-modal[data-unit-charge-single-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
body.theme-light .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
body.theme-light .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
html.theme-light-preload .apartment-edit-modal[data-dues-quick-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
html.theme-light-preload .apartment-edit-modal[data-dues-bulk-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-single-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
html.theme-light-preload .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3,
html.theme-light-preload .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .apartment-edit-modal__dialog > form > .space-y-3 {
    background: #ffffff;
}

body.theme-light .apartment-edit-modal[data-dues-quick-modal="true"] .profile-card-modern__label,
body.theme-light .apartment-edit-modal[data-dues-bulk-modal="true"] .profile-card-modern__label,
body.theme-light .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .profile-card-modern__label,
body.theme-light .apartment-edit-modal[data-unit-charge-single-modal="true"] .profile-card-modern__label,
body.theme-light .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .profile-card-modern__label,
body.theme-light .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .profile-card-modern__label,
html.theme-light-preload .apartment-edit-modal[data-dues-quick-modal="true"] .profile-card-modern__label,
html.theme-light-preload .apartment-edit-modal[data-dues-bulk-modal="true"] .profile-card-modern__label,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .profile-card-modern__label,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-single-modal="true"] .profile-card-modern__label,
html.theme-light-preload .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .profile-card-modern__label,
html.theme-light-preload .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .profile-card-modern__label {
    color: #627a92;
}

body.theme-light .apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .auth-input,
body.theme-light .apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .custom-select-trigger,
body.theme-light .apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .auth-input,
body.theme-light .apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .custom-select-trigger,
body.theme-light .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .auth-input,
body.theme-light .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .custom-select-trigger,
body.theme-light .apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .auth-input,
body.theme-light .apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .custom-select-trigger,
body.theme-light .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .auth-input,
body.theme-light .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .custom-select-trigger,
body.theme-light .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .auth-input,
body.theme-light .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .auth-input,
html.theme-light-preload .apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .auth-input,
html.theme-light-preload .apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .auth-input,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .auth-input,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .auth-input,
html.theme-light-preload .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .auth-input,
html.theme-light-preload .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
    box-shadow: none;
}

body.theme-light .apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .auth-input::placeholder,
body.theme-light .apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .auth-input::placeholder,
body.theme-light .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .auth-input::placeholder,
body.theme-light .apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .auth-input::placeholder,
body.theme-light .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .auth-input::placeholder,
body.theme-light .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .auth-input::placeholder,
html.theme-light-preload .apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .auth-input::placeholder,
html.theme-light-preload .apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .auth-input::placeholder,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .auth-input::placeholder,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .auth-input::placeholder,
html.theme-light-preload .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .auth-input::placeholder,
html.theme-light-preload .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .auth-input::placeholder {
    color: #7b8ea4;
}

body.theme-light .apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .auth-input:focus,
body.theme-light .apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger,
body.theme-light .apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .auth-input:focus,
body.theme-light .apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger,
body.theme-light .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .auth-input:focus,
body.theme-light .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger,
body.theme-light .apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .auth-input:focus,
body.theme-light .apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger,
body.theme-light .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .auth-input:focus,
body.theme-light .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger,
body.theme-light .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .auth-input:focus,
body.theme-light .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .auth-input:focus,
html.theme-light-preload .apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .auth-input:focus,
html.theme-light-preload .apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .auth-input:focus,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .auth-input:focus,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .auth-input:focus,
html.theme-light-preload .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .auth-input:focus,
html.theme-light-preload .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .custom-select-wrap.is-open .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.1);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.14);
}

/* Daireler ödeme modalları: select sol dış ikon yok — tetikleyici normal iç boşluk */
.apartment-edit-modal[data-dues-quick-modal="true"] .dues-modal-select-wrap,
.apartment-edit-modal[data-dues-bulk-modal="true"] .dues-modal-select-wrap,
.apartment-edit-modal[data-unit-charge-bulk-modal="true"] .dues-modal-select-wrap,
.apartment-edit-modal[data-unit-charge-single-modal="true"] .dues-modal-select-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.apartment-edit-modal[data-dues-quick-modal="true"] .dues-modal-select-wrap.custom-select-wrap .custom-select-trigger,
.apartment-edit-modal[data-dues-bulk-modal="true"] .dues-modal-select-wrap.custom-select-wrap .custom-select-trigger,
.apartment-edit-modal[data-unit-charge-bulk-modal="true"] .dues-modal-select-wrap.custom-select-wrap .custom-select-trigger,
.apartment-edit-modal[data-unit-charge-single-modal="true"] .dues-modal-select-wrap.custom-select-wrap .custom-select-trigger {
    padding-left: 0.85rem;
    border: 0 !important;
    box-shadow: none;
}

/* Ödeme dönemi: düz çerçeve, ortalanmış (takvim ikonu solda kalır) */
.apartment-edit-modal[data-dues-quick-modal="true"] .dues-modal-period-input,
.apartment-edit-modal[data-dues-bulk-modal="true"] .dues-modal-period-input,
.apartment-edit-modal[data-unit-charge-bulk-modal="true"] .dues-modal-period-input,
.apartment-edit-modal[data-unit-charge-single-modal="true"] .dues-modal-period-input,
.apartment-edit-modal[data-unit-bulk-mail-modal="true"] .dues-modal-period-input,
.apartment-edit-modal[data-unit-reminder-mail-modal="true"] .dues-modal-period-input,
.apartment-edit-modal[data-unit-reminder-mail-modal="true"] .unit-reminder-mail-recipient-input {
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 0 !important;
    background: rgba(3, 169, 244, 0.12) !important;
    color: #bfeaff !important;
    box-shadow: inset 0 0 0 1px rgba(3, 169, 244, 0.08);
    cursor: default;
    padding-left: 2.55rem;
    padding-right: 2.55rem;
}

body.theme-light .apartment-edit-modal[data-dues-quick-modal="true"] .dues-modal-period-input,
body.theme-light .apartment-edit-modal[data-dues-bulk-modal="true"] .dues-modal-period-input,
body.theme-light .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .dues-modal-period-input,
body.theme-light .apartment-edit-modal[data-unit-charge-single-modal="true"] .dues-modal-period-input,
body.theme-light .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .dues-modal-period-input,
body.theme-light .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .dues-modal-period-input,
body.theme-light .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .unit-reminder-mail-recipient-input,
html.theme-light-preload .apartment-edit-modal[data-dues-quick-modal="true"] .dues-modal-period-input,
html.theme-light-preload .apartment-edit-modal[data-dues-bulk-modal="true"] .dues-modal-period-input,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-bulk-modal="true"] .dues-modal-period-input,
html.theme-light-preload .apartment-edit-modal[data-unit-charge-single-modal="true"] .dues-modal-period-input,
html.theme-light-preload .apartment-edit-modal[data-unit-bulk-mail-modal="true"] .dues-modal-period-input,
html.theme-light-preload .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .dues-modal-period-input,
html.theme-light-preload .apartment-edit-modal[data-unit-reminder-mail-modal="true"] .unit-reminder-mail-recipient-input {
    background: rgba(3, 169, 244, 0.1) !important;
    color: #0369a1 !important;
    box-shadow: inset 0 0 0 1px rgba(3, 169, 244, 0.08);
}

/* Odeme / borc modallari: grid satirlari ve select sarmalayıcılari ayni ic genislik */
.apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 > .grid,
.apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 > .grid,
.apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 > .grid,
.apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 > .grid,
.apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 > .grid,
.apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 > .grid {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .dues-modal-select-wrap,
.apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .dues-modal-select-wrap,
.apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .dues-modal-select-wrap,
.apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .dues-modal-select-wrap,
.apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .dues-modal-select-wrap,
.apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .dues-modal-select-wrap,
.apartment-edit-modal[data-dues-quick-modal="true"] .space-y-3 .custom-select-wrap,
.apartment-edit-modal[data-dues-bulk-modal="true"] .space-y-3 .custom-select-wrap,
.apartment-edit-modal[data-unit-charge-bulk-modal="true"] .space-y-3 .custom-select-wrap,
.apartment-edit-modal[data-unit-charge-single-modal="true"] .space-y-3 .custom-select-wrap,
.apartment-edit-modal[data-unit-bulk-mail-modal="true"] .space-y-3 .custom-select-wrap,
.apartment-edit-modal[data-unit-reminder-mail-modal="true"] .space-y-3 .custom-select-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.apartment-edit-modal[data-listing-edit-modal="true"] .listing-detail-edit-dialog .apartment-edit-modal__grid {
    min-width: 0;
}

.apartment-edit-modal[data-listing-edit-modal="true"] .listing-detail-edit-dialog .apartment-edit-modal__field {
    min-width: 0;
}

.apartment-edit-modal[data-listing-edit-modal="true"] .listing-detail-edit-dialog .apartment-edit-modal__field .dues-modal-select-wrap,
.apartment-edit-modal[data-listing-edit-modal="true"] .listing-detail-edit-dialog .apartment-edit-modal__field .custom-select-wrap,
.apartment-edit-modal[data-listing-edit-modal="true"] .listing-detail-edit-dialog .apartment-edit-modal__field .input-with-icon,
.apartment-edit-modal[data-listing-edit-modal="true"] .listing-detail-edit-dialog .apartment-edit-modal__field > .listing-detail-edit-title-price {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.apartment-edit-modal[data-listing-edit-modal="true"] .listing-detail-edit-dialog .apartment-edit-modal__field .dues-modal-select-wrap.custom-select-wrap .custom-select-trigger {
    padding-left: 0.85rem;
    border: 0 !important;
    box-shadow: none;
}

.apartment-edit-modal[data-listing-edit-modal="true"] .listing-detail-edit-dialog .apartment-edit-modal__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(186, 205, 228, 0.92);
}

body.theme-light .apartment-edit-modal[data-listing-edit-modal="true"] .listing-detail-edit-dialog .apartment-edit-modal__label,
html.theme-light-preload .apartment-edit-modal[data-listing-edit-modal="true"] .listing-detail-edit-dialog .apartment-edit-modal__label {
    color: #627a92;
}

.apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__grid {
    min-width: 0;
}

.apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__field {
    min-width: 0;
}

.apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__field .dues-modal-select-wrap,
.apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__field .custom-select-wrap,
.apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__field .input-with-icon {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__field .dues-modal-select-wrap.custom-select-wrap .custom-select-trigger {
    padding-left: 0.85rem;
    border: 0 !important;
    box-shadow: none;
}

.apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(186, 205, 228, 0.92);
}

body.theme-light .apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__label,
html.theme-light-preload .apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__label {
    color: #627a92;
}

.bulk-mail-warning {
    display: flex;
    gap: 0.72rem;
    align-items: flex-start;
    border-radius: 1rem;
    background: rgba(3, 169, 244, 0.1);
    padding: 0.82rem 0.9rem;
    color: #d8efff;
    box-shadow: inset 0 0 0 1px rgba(3, 169, 244, 0.12);
}

.bulk-mail-warning__icon {
    display: inline-flex;
    width: 1.85rem;
    height: 1.85rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.16);
    color: var(--primary);
}

.bulk-mail-warning p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.5;
    font-weight: 700;
}

body.theme-light .bulk-mail-warning,
html.theme-light-preload .bulk-mail-warning {
    background: rgba(3, 169, 244, 0.09);
    color: #075985;
}

.unit-charge-target-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.unit-charge-target-card {
    position: relative;
    display: flex;
    min-height: 6rem;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    background: rgba(148, 163, 184, 0.1);
    padding: 0.82rem;
    color: var(--text);
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.09);
}

.unit-charge-target-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(3, 169, 244, 0.14) 0,
        rgba(3, 169, 244, 0.14) 6px,
        rgba(3, 169, 244, 0.06) 6px,
        rgba(3, 169, 244, 0.06) 12px
    );
    transition: opacity 0.18s ease;
}

.unit-charge-target-card > * {
    position: relative;
    z-index: 1;
}

.unit-charge-target-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.unit-charge-target-card__check {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: inline-flex;
    width: 1.3rem;
    height: 1.3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.62rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.unit-charge-target-card__icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
}

.unit-charge-target-card__title {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.unit-charge-target-card__desc {
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.35;
}

.unit-charge-target-card:has(input:checked)::before {
    opacity: 1;
}

.unit-charge-target-card:has(input:checked) {
    box-shadow: inset 0 0 0 1px rgba(3, 169, 244, 0.35);
}

.unit-charge-target-card:has(input:checked) .unit-charge-target-card__check {
    opacity: 1;
    transform: scale(1);
}

[data-unit-charge-unit-wrap="true"] {
    display: none;
    opacity: 0;
    transition: opacity 0.18s ease;
}

[data-unit-charge-unit-wrap="true"].is-unit-active {
    display: grid;
    opacity: 1;
}

.unit-charge-unit-multiselect {
    position: relative;
}

.unit-charge-unit-multiselect__trigger {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: #e6f0fb;
    padding: 0.62rem 0.72rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.unit-charge-unit-multiselect__trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.unit-charge-unit-multiselect__lead {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.48rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.unit-charge-unit-multiselect__lead i {
    flex: 0 0 auto;
    color: var(--primary);
}

.unit-charge-unit-multiselect__count {
    display: none;
    min-width: 1.28rem;
    height: 1.28rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
}

.unit-charge-unit-multiselect__count.is-visible {
    display: inline-flex;
}

.unit-charge-unit-multiselect__caret {
    color: rgba(3, 169, 244, 0.65);
    font-size: 0.7rem;
    transition: transform 0.18s ease;
}

.unit-charge-unit-multiselect.is-open .unit-charge-unit-multiselect__caret {
    transform: rotate(180deg);
}

.unit-charge-unit-check-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 9175;
    display: none;
    gap: 0.42rem;
    max-height: 13.5rem;
    overflow-y: auto;
    padding: 0.42rem;
    border-radius: 0.82rem;
    background: #101a2c;
    box-shadow: 0 18px 36px rgba(2, 8, 23, 0.32), inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.unit-charge-unit-multiselect.is-open .unit-charge-unit-check-list {
    display: grid;
}

.unit-charge-unit-check {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 0.52rem;
    min-height: 2.55rem;
    padding: 0.52rem 0.62rem;
    border-radius: 0.82rem;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.unit-charge-unit-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.unit-charge-unit-check__box {
    display: inline-flex;
    width: 1.12rem;
    height: 1.12rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    color: #ffffff;
    font-size: 0.52rem;
    transform: scale(0.92);
}

.unit-charge-unit-check__box i {
    opacity: 0;
}

.unit-charge-unit-check__icon {
    color: var(--primary);
    font-size: 0.82rem;
}

.unit-charge-unit-check__text {
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 700;
}

.unit-charge-unit-check:has(input:checked) {
    background: rgba(3, 169, 244, 0.13);
    box-shadow: inset 0 0 0 1px rgba(3, 169, 244, 0.34);
}

.unit-charge-unit-check:has(input:checked) .unit-charge-unit-check__box {
    background: var(--primary);
    transform: scale(1);
}

.unit-charge-unit-check:has(input:checked) .unit-charge-unit-check__box i {
    opacity: 1;
}

body.theme-light .unit-charge-unit-check {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(201, 222, 239, 0.9);
}

body.theme-light .unit-charge-unit-multiselect__trigger,
html.theme-light-preload .unit-charge-unit-multiselect__trigger {
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
}

body.theme-light .unit-charge-unit-multiselect__trigger:hover,
html.theme-light-preload .unit-charge-unit-multiselect__trigger:hover,
body.theme-light .unit-charge-unit-multiselect.is-open .unit-charge-unit-multiselect__trigger,
html.theme-light-preload .unit-charge-unit-multiselect.is-open .unit-charge-unit-multiselect__trigger {
    background: rgba(3, 169, 244, 0.1);
}

body.theme-light .unit-charge-unit-check-list,
html.theme-light-preload .unit-charge-unit-check-list {
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16), inset 0 0 0 1px rgba(201, 222, 239, 0.95);
}

body.theme-light .unit-charge-unit-check__text {
    color: #2d4764;
}

body.theme-light .unit-charge-unit-check:has(input:checked) {
    background: rgba(3, 169, 244, 0.08);
    box-shadow: inset 0 0 0 1px rgba(3, 169, 244, 0.32);
}

.apartment-edit-modal[data-unit-edit-modal="true"] [data-unit-edit-input-owner="true"] + .custom-select-trigger,
.apartment-edit-modal[data-unit-edit-modal="true"] [data-unit-edit-input-tenant="true"] + .custom-select-trigger,
.apartment-edit-modal[data-unit-edit-modal="true"] [data-unit-edit-input-water="true"],
.apartment-edit-modal[data-unit-edit-modal="true"] [data-unit-edit-input-naturalgas="true"],
.apartment-edit-modal[data-unit-edit-modal="true"] [data-unit-edit-input-electricity="true"] {
    border: 0 !important;
    box-shadow: none;
}

@media (max-width: 480px) {
    .unit-charge-target-grid {
        grid-template-columns: 1fr;
    }
}

body.theme-light .apartment-edit-modal__footer,
html.theme-light-preload .apartment-edit-modal__footer {
    background: #eef5fc;
}

body.theme-light .apartment-edit-modal__btn--ghost,
html.theme-light-preload .apartment-edit-modal__btn--ghost {
    background: rgba(148, 163, 184, 0.18);
    color: #41556b;
}

body.theme-light .apartment-edit-modal__btn--ghost:hover,
html.theme-light-preload .apartment-edit-modal__btn--ghost:hover {
    background: rgba(148, 163, 184, 0.28);
}

body.theme-light .apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__dialog,
html.theme-light-preload .apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__dialog {
    background: linear-gradient(170deg, #ffffff, #f6fbff);
}

body.theme-light .apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__grid,
html.theme-light-preload .apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__grid {
    background: #ffffff;
}

body.theme-light .apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__grid .auth-input,
body.theme-light .apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__grid .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__grid .auth-input,
html.theme-light-preload .apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__grid .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
    box-shadow: none;
}

body.theme-light .apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__label,
html.theme-light-preload .apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__label {
    color: #627a92;
}

/* Kullanıcı düzenleme modalı: rol/durum dropdown menüsü kırpılmasın */
.apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__dialog,
.apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__dialog > form,
.apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__dialog > form > .apartment-edit-modal__grid {
    overflow: visible;
}

.apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__field .custom-select-wrap.is-open {
    z-index: 9300;
}

/* Apartman sayfası kartı + kullanıcı düzenleme: il/ilçe/rol — select yalnız dues-modal-select-wrap içinde */
.dashboard-content--units-page .apartment-settings-card .dues-modal-select-wrap,
.apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__field .dues-modal-select-wrap {
    width: 100%;
    min-width: 0;
}

.dashboard-content--units-page .apartment-settings-card .dues-modal-select-wrap.custom-select-wrap,
.apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__field .dues-modal-select-wrap.custom-select-wrap {
    position: relative;
}

.dashboard-content--units-page .apartment-settings-card .dues-modal-select-wrap.custom-select-wrap.is-open,
.apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__field .dues-modal-select-wrap.custom-select-wrap.is-open {
    z-index: 40;
}

.dashboard-content--units-page .apartment-settings-card .dues-modal-select-wrap.custom-select-wrap .custom-select-trigger,
.apartment-edit-modal[data-user-edit-modal="true"] .apartment-edit-modal__field .dues-modal-select-wrap.custom-select-wrap .custom-select-trigger {
    padding-left: 0.85rem;
    border: 0 !important;
    box-shadow: none;
}

.dashboard-content--units-page .apartment-settings-card {
    overflow: visible;
}

/* Daire düzenleme modalı: sahibi/sakini dropdown menüsü kırpılmasın */
.apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__dialog,
.apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__dialog > form,
.apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__dialog > form > .apartment-edit-modal__grid {
    overflow: visible;
}

.apartment-edit-modal[data-unit-edit-modal="true"] .apartment-edit-modal__field .custom-select-wrap.is-open {
    z-index: 9300;
}

/* Duyuru düzenleme modalı: kenar bosluklari minimum, form tam genislik */
.apartment-edit-modal[data-announcement-edit-modal="true"] {
    padding: 0.35rem;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .apartment-edit-modal__dialog {
    width: min(560px, calc(100vw - 0.65rem));
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .apartment-edit-modal__form.profile-card-modern__form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .apartment-edit-modal__header,
.apartment-edit-modal[data-announcement-edit-modal="true"] .apartment-edit-modal__footer {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .apartment-edit-modal__header {
    padding-top: 0.72rem;
    padding-bottom: 0.62rem;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .apartment-edit-modal__footer {
    padding-top: 0.72rem;
    padding-bottom: 0.82rem;
}

/* Tek sütun, tam genişlik; Yeni Duyuru formu ile aynı yerleşim */
.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body.apartment-edit-modal__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.45rem 0.65rem 0.65rem;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .grid {
    width: 100%;
    min-width: 0;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .input-with-icon {
    width: 100%;
    min-width: 0;
}

/* Tailwind preflight [type=text] vb. üzerine: element + sınıf ile net stiller (Yeni Duyuru ile aynı) */
.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body input.auth-input,
.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body textarea.auth-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 0.75rem;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #e6f0fb;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    padding-right: 0.75rem;
    padding-left: 2.3rem;
    outline: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body input.auth-input {
    padding-left: 2.3rem;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body textarea.auth-input {
    min-height: 6.5rem;
    line-height: 1.45;
    resize: vertical;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .input-with-icon textarea.auth-input {
    padding-top: 0.62rem;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .input-with-icon--textarea .input-icon {
    top: 0.85rem;
    transform: none;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body select.auth-input.auth-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .custom-select-wrap {
    width: 100%;
    min-width: 0;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .custom-select-trigger {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .apartment-edit-modal__dialog,
.apartment-edit-modal[data-announcement-edit-modal="true"] .apartment-edit-modal__dialog > form,
.apartment-edit-modal[data-announcement-edit-modal="true"] .apartment-edit-modal__dialog > form > .apartment-edit-modal__grid {
    overflow: visible;
}

.apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .custom-select-wrap.is-open {
    z-index: 9300;
}

body.theme-light .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body input.auth-input,
body.theme-light .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body textarea.auth-input,
html.theme-light-preload .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body input.auth-input,
html.theme-light-preload .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body textarea.auth-input {
    border: 0;
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
    box-shadow: none;
}

body.theme-light .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body input.auth-input:focus,
body.theme-light .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body textarea.auth-input:focus,
html.theme-light-preload .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body input.auth-input:focus,
html.theme-light-preload .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body textarea.auth-input:focus {
    border: 0;
    background: rgba(3, 169, 244, 0.1);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.14);
}

body.theme-light .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
    box-shadow: none;
}

body.theme-light .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .custom-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .custom-select-wrap.is-open .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.1);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.14);
}

body.theme-light .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .input-icon,
html.theme-light-preload .apartment-edit-modal[data-announcement-edit-modal="true"] .announcement-edit-modal__body .input-icon {
    color: #4c6178;
}

body.theme-light .apartment-edit-modal[data-announcement-edit-modal="true"] .profile-card-modern__label,
html.theme-light-preload .apartment-edit-modal[data-announcement-edit-modal="true"] .profile-card-modern__label {
    color: #6a86a0;
}

body.theme-light,
html.theme-light-preload {
    --bg: #f3f8fd;
    --surface: #ffffff;
    --text: #152235;
    --muted: #5f738d;
    --primary-soft: rgba(3, 169, 244, 0.1);
    --primary-border: rgba(3, 169, 244, 0.28);
    --border: #d4e5f4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 0;
    margin-top: auto;
    min-height: var(--footer-height);
    padding: 1rem 0 1.15rem;
}

main.container {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

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

.login-center-wrap {
    min-height: calc(100vh - 170px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.login-card {
    position: relative;
    overflow: visible;
    width: min(100%, 460px);
    background: linear-gradient(160deg, rgba(17, 26, 46, 0.94), rgba(11, 22, 40, 0.9));
    border: 0;
    box-shadow: 0 18px 42px rgba(1, 10, 20, 0.5);
    backdrop-filter: blur(6px);
}

.login-card::before {
    content: "";
    position: absolute;
    left: 0.8rem;
    top: 1rem;
    bottom: 1rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(3, 169, 244, 0.78), rgba(3, 169, 244, 0.08));
}


.login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.3rem;
}

.login-center-wrap-with-outside-logo {
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
}

.login-logo-wrap-outside {
    margin-bottom: 0;
}

.login-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: invert(61%) sepia(89%) saturate(1887%) hue-rotate(165deg) brightness(101%) contrast(97%);
    opacity: 0.95;
}

.login-title {
    color: var(--text);
}

.login-subtitle {
    color: var(--muted);
}

/* ── Login card — yeni profil uyumlu header ──────────────────────── */
.login-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.login-card-head__logo-ring {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #03a9f4;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card-head__logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 1;
}

.login-card-head__text {
    flex: 1;
    min-width: 0;
}

.login-card-head__title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.login-card-head__sub {
    margin: 0.15rem 0 0;
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.4;
}

.login-card-head--title-only {
    align-items: center;
}

.login-card-head--title-only .login-card-head__title {
    line-height: 1.15;
}

.login-card-head__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 1.1rem 0 1.2rem;
}

body.theme-light .login-card-head__logo-ring,
html.theme-light-preload .login-card-head__logo-ring {
    background: #03a9f4;
    border: none;
}

body.theme-light .login-card-head__title,
html.theme-light-preload .login-card-head__title {
    color: #0f2540;
}

body.theme-light .login-card-head__sub,
html.theme-light-preload .login-card-head__sub {
    color: #5f7a96;
}

body.theme-light .login-card-head__divider,
html.theme-light-preload .login-card-head__divider {
    background: rgba(3, 169, 244, 0.1);
}

/* ── Login card — submit button ──────────────────────────────────── */
.login-card .profile-card-modern__submit {
    background: var(--primary-gradient, linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%));
    box-shadow: 0 4px 14px rgba(3, 169, 244, 0.34);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.login-card .profile-card-modern__submit:hover {
    box-shadow: 0 6px 20px rgba(3, 169, 244, 0.46);
    transform: translateY(-1px);
}

.login-card .profile-card-modern__submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(3, 169, 244, 0.28);
}

.login-card .profile-card-modern__submit.is-disabled,
.login-card a.profile-card-modern__submit.is-disabled {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-card a.profile-card-modern__submit {
    text-decoration: none;
}

/* ── Login card — terms text ─────────────────────────────────────── */
.login-card-terms {
    margin-top: 1.1rem;
    text-align: center;
    font-size: 0.72rem;
    color: var(--muted);
    opacity: 0.7;
    line-height: 1.5;
}

.login-card-terms a {
    color: #0284c7;
    text-decoration: none;
}

.login-card-terms a:hover,
.login-card-legal-link:hover {
    color: #0369a1;
    text-decoration: none;
}

.login-card-legal-link {
    font-weight: 600;
}

.login-card-back-link,
.login-card-back-link:hover {
    text-decoration: none;
}

.login-card-forgot-wrap {
    margin: 0;
    text-align: center;
}

.login-card-forgot-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
}

.login-card-forgot-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

.login-card-forgot-hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--muted);
    opacity: 0.85;
}

.login-card-forgot-hint--center {
    text-align: center;
}

.auth-otp-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
}

.auth-otp-box {
    width: 100%;
    min-width: 0;
    height: 2.85rem;
    border-radius: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-otp-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.forgot-reset-step {
    display: none;
}

.forgot-reset-step.is-active {
    display: block;
}

.forgot-reset-phone-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
}

.forgot-reset-phone-badge i {
    font-size: 0.72rem;
}

body.theme-light .auth-otp-box,
html.theme-light-preload .auth-otp-box {
    background: #fff;
    border-color: #dbeafe;
}

body.theme-light .auth-otp-box:focus,
html.theme-light-preload .auth-otp-box:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.login-card-terms--split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.login-card-back-link.is-disabled,
.login-card-forgot-link.is-disabled {
    pointer-events: none;
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Yasal metin — giriş sonrası public sayfa ─────────────────────── */
.legal-public-wrap {
    align-items: flex-start;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}

.legal-public-card {
    width: min(100%, 40rem);
    max-height: calc(100vh - 5rem);
    display: flex;
    flex-direction: column;
}

.legal-public-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.legal-public-back {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #0284c7;
}

.legal-public-back:hover {
    color: #0369a1;
}

.legal-public-pdf-btn {
    margin-left: auto;
}

.legal-public-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(62vh, 34rem);
    overflow-y: auto;
    padding-right: 0.15rem;
    scrollbar-width: thin;
}

.legal-public-scroll::-webkit-scrollbar {
    width: 5px;
}

.legal-public-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.35);
}

body.theme-light .login-card-terms,
html.theme-light-preload .login-card-terms {
    color: #7a96b2;
    opacity: 1;
}

/* ── Login card — profile label rengi (dark mode) ────────────────── */
.login-card .profile-card-modern__label {
    color: rgba(159, 176, 200, 0.82);
}

body.theme-light .login-card .profile-card-modern__label,
html.theme-light-preload .login-card .profile-card-modern__label {
    color: #5a7a98;
}

.token-preparing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.58rem;
}

.token-preparing-stage-wrap {
    position: relative;
    width: 100%;
    min-height: 98px;
}

.token-preparing-stage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    opacity: 0;
    transform: translateY(6px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.34s ease, transform 0.34s ease;
}

.token-preparing-stage.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.token-preparing-check {
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.22rem;
    color: #ffffff;
    background: radial-gradient(circle at 30% 25%, #43d17f, #16a34a);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.32);
    animation: tokenCheckPulse 1.5s ease-in-out infinite;
}

.token-preparing-line {
    margin: 0;
    color: rgba(227, 236, 248, 0.9);
    font-size: 0.86rem;
    font-weight: 500;
}

.token-preparing-line--done {
    color: #c9f8dd;
    font-weight: 600;
}

.token-preparing-license {
    margin: 0.08rem 0 0;
    padding: 0.18rem 0.56rem;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.14);
    color: rgba(224, 244, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.token-preparing-badge {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(3, 169, 244, 0.28);
    background: rgba(3, 169, 244, 0.16);
    color: #e0f4ff;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.token-preparing-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.16rem;
}

.token-preparing-loader span {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: #8dd9ff;
    animation: tokenDotBounce 0.9s ease-in-out infinite;
}

.token-preparing-loader span:nth-child(2) {
    animation-delay: 0.12s;
}

.token-preparing-loader span:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes tokenCheckPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes tokenDotBounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.65;
    }
    50% {
        transform: translateY(-0.22rem);
        opacity: 1;
    }
}

/* ── Token/Lisans Preparing — light theme overrides ─────────────── */
body.theme-light .token-preparing-line,
html.theme-light-preload .token-preparing-line {
    color: #3d5068;
}

body.theme-light .token-preparing-line--done,
html.theme-light-preload .token-preparing-line--done {
    color: #1a6b38;
    font-weight: 600;
}

body.theme-light .token-preparing-license,
html.theme-light-preload .token-preparing-license {
    background: rgba(3, 169, 244, 0.10);
    color: #0a5d8f;
}

body.theme-light .token-preparing-badge,
html.theme-light-preload .token-preparing-badge {
    border-color: rgba(3, 169, 244, 0.30);
    background: rgba(3, 169, 244, 0.08);
    color: #0a5d8f;
}

body.theme-light .token-preparing-loader span,
html.theme-light-preload .token-preparing-loader span {
    background: #03a9f4;
}

.auth-label {
    color: #c7d5e8;
}

.auth-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #30435f;
    background: #0d1729;
    color: #e6f0fb;
    padding: 0.55rem 0.75rem 0.55rem 2.3rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
    color: #7f98b6;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.2);
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #e6f0fb;
    box-shadow: 0 0 0 1000px #0d1729 inset !important;
    transition: background-color 9999s ease-in-out 0s;
    border: 1px solid #30435f;
}

/* Tailwind CDN preflight strips native date UI; restore picker */
.auth-input-du-date[type='date'],
.auth-input-du-date[type='month'],
.auth-input-du-date[type='datetime-local'] {
    -webkit-appearance: auto;
    appearance: auto;
    min-block-size: 2.625rem;
    color-scheme: dark;
    padding-inline-end: 0.65rem;
}

body.theme-light .auth-input-du-date[type='date'],
body.theme-light .auth-input-du-date[type='month'],
body.theme-light .auth-input-du-date[type='datetime-local'] {
    color-scheme: light;
}

.auth-input-du-date[type='date']::-webkit-calendar-picker-indicator,
.auth-input-du-date[type='month']::-webkit-calendar-picker-indicator {
    opacity: 0.92;
    cursor: pointer;
    padding-inline: 0.2rem;
}

.auth-input-du-date-compact[type='date'],
.auth-input-du-date-compact[type='datetime-local'] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Form grid columns: allow date/datetime inputs to shrink on narrow viewports */
.profile-card-modern__form .grid > .grid,
.requests-add-card__body .grid > .grid {
    min-width: 0;
}

.auth-input-du-no-spin[type='number'] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.auth-input-du-no-spin[type='number']::-webkit-outer-spin-button,
.auth-input-du-no-spin[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.auth-input-with-toggle {
    padding-right: 2.45rem;
}

.auth-input-plain {
    padding-left: 0.75rem;
}

/* Panel: varsayilan form — kullanici ekle / profil ile ayni yumusak dolgu, cercevesiz */
body.has-dashboard-shell .auth-input {
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    color: #e6f0fb;
}

body.has-dashboard-shell .auth-input::placeholder {
    color: rgba(184, 204, 227, 0.62);
}

body.has-dashboard-shell .auth-input:focus {
    border: 0;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.has-dashboard-shell .auth-input:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.45);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.12);
}

body.has-dashboard-shell .auth-input:-webkit-autofill,
body.has-dashboard-shell .auth-input:-webkit-autofill:hover,
body.has-dashboard-shell .auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #e6f0fb;
    box-shadow: 0 0 0 1000px rgba(18, 30, 48, 0.96) inset !important;
    transition: background-color 9999s ease-in-out 0s;
    border: 0 !important;
}

/* Daire no: notr cerceve, renk vurgusu yok */
body.has-dashboard-shell .auth-input.auth-input--neutral-outline {
    border: 1px solid rgba(184, 204, 227, 0.22);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

body.has-dashboard-shell .auth-input.auth-input--neutral-outline:focus {
    border-color: rgba(184, 204, 227, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

body.has-dashboard-shell .auth-input.auth-input--neutral-outline:focus-visible {
    outline-color: rgba(184, 204, 227, 0.65);
}

.auth-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #7fa2c6 50%),
        linear-gradient(135deg, #7fa2c6 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2rem;
    font-weight: 500;
    line-height: 1.35;
}

.auth-select:invalid {
    color: #8aa2be;
}

.auth-select option {
    background: #0d1729;
    color: #e6f0fb;
}

.auth-select option:disabled {
    color: #7f98b6;
}

body.theme-light .auth-select option {
    background: #ffffff;
    color: #152235;
}

body.theme-light .auth-input:-webkit-autofill,
body.theme-light .auth-input:-webkit-autofill:hover,
body.theme-light .auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1f3347;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    border: 1px solid rgba(3, 169, 244, 0.24);
}

/* ── Login card & inputs — light theme ── */
body.theme-light .login-card,
html.theme-light-preload .login-card {
    background: #ffffff;
    border: 1px solid rgba(3, 169, 244, 0.14);
    box-shadow: 0 8px 32px rgba(21, 34, 53, 0.09);
}

body.theme-light .login-card::before,
html.theme-light-preload .login-card::before {
    background: linear-gradient(180deg, rgba(3, 169, 244, 0.55), rgba(3, 169, 244, 0.06));
}

body.theme-light .auth-label,
html.theme-light-preload .auth-label {
    color: #4e6a84;
}

body.theme-light .login-card .auth-input,
html.theme-light-preload .login-card .auth-input {
    background: #f4f8fc;
    border-color: #c9deef;
    color: #152235;
}

body.theme-light .login-card .auth-input::placeholder,
html.theme-light-preload .login-card .auth-input::placeholder {
    color: #9aaec4;
}

body.theme-light .login-card .auth-input:focus,
html.theme-light-preload .login-card .auth-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.14);
}

body.theme-light .login-card .auth-select,
html.theme-light-preload .login-card .auth-select {
    background-image:
        linear-gradient(45deg, transparent 50%, #5b7ea0 50%),
        linear-gradient(135deg, #5b7ea0 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

body.theme-light .login-card .input-icon,
html.theme-light-preload .login-card .input-icon {
    color: rgba(3, 169, 244, 0.55);
}

body.theme-light .login-card .password-toggle-btn,
html.theme-light-preload .login-card .password-toggle-btn {
    color: #7a9ab8;
}

body.theme-light .login-title,
html.theme-light-preload .login-title {
    color: #152235;
}

body.theme-light .login-logo,
html.theme-light-preload .login-logo {
    opacity: 1;
}

.setup-mode-logo-wrap {
    display: flex;
    justify-content: center;
}

.setup-mode-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: invert(61%) sepia(89%) saturate(1887%) hue-rotate(165deg) brightness(101%) contrast(97%);
    opacity: 0.95;
}

.setup-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

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

.setup-mode-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.setup-mode-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-height: 150px;
    padding: 0.9rem 0.7rem;
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--surface) 72%, #0b1528 28%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.setup-mode-check-badge {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary) 18%, #ffffff 12%);
    color: #ffffff;
    font-size: 0.67rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.setup-mode-title {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
}

.setup-mode-desc {
    color: var(--muted);
    font-size: 0.73rem;
    text-align: center;
    line-height: 1.4;
}

.setup-mode-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--surface) 86%, #ffffff 14%);
    color: #ffffff;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--border) 72%, #ffffff 28%);
    transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.2s ease;
}

.setup-mode-card:hover .setup-mode-icon-badge {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 38%, transparent), 0 0 12px rgba(3, 169, 244, 0.2);
    transform: translateY(-1px);
}

.setup-mode-input:checked + .setup-mode-content {
    background: color-mix(in srgb, var(--surface) 84%, var(--primary) 16%);
    box-shadow: 0 8px 20px rgba(3, 169, 244, 0.16);
}

.setup-mode-input:checked + .setup-mode-content .setup-mode-icon-badge {
    background: color-mix(in srgb, var(--primary) 22%, var(--surface));
    color: #ffffff;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 45%, transparent), 0 0 12px rgba(3, 169, 244, 0.22);
}

.setup-mode-input:checked + .setup-mode-content .setup-mode-check-badge {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 42%, transparent), 0 0 10px rgba(3, 169, 244, 0.2);
}

.input-with-icon {
    position: relative;
    min-width: 0;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.82;
    font-size: 0.9rem;
    pointer-events: none;
}

.custom-select-wrap {
    position: relative;
}

.custom-select-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 38px;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    border: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.custom-select-trigger {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 38px;
    border-radius: 0.75rem;
    border: 1px solid #30435f;
    background: #0d1729;
    color: #e6f0fb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem 0.55rem 2.55rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.custom-select-label.is-placeholder {
    color: #8aa2be;
}

.custom-select-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.custom-select-label-icon {
    color: var(--primary);
    font-size: 0.74rem;
    opacity: 0.9;
}

.custom-select-caret {
    font-size: 0.7rem;
    color: #9fc5e5;
    transition: transform 0.2s ease;
}

.custom-select-wrap.is-open .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.2);
}

.custom-select-wrap.is-open .custom-select-caret {
    transform: rotate(180deg);
}

body.has-dashboard-shell .custom-select-trigger {
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    color: #e6f0fb;
}

body.has-dashboard-shell .custom-select-wrap.is-open .custom-select-trigger {
    border: 0;
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.12);
    background: rgba(255, 255, 255, 0.1);
}

body.has-dashboard-shell .custom-select-label.is-placeholder {
    color: rgba(184, 204, 227, 0.62);
}

body.has-dashboard-shell .custom-select-caret {
    color: rgba(3, 169, 244, 0.52);
}

.custom-select-trigger.is-disabled,
.custom-select-trigger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    border-radius: 0.85rem;
    border: 1px solid rgba(3, 169, 244, 0.24);
    background: #0d1729;
    box-shadow: 0 14px 30px rgba(1, 10, 20, 0.46);
    z-index: 80;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-select-wrap.is-open .custom-select-menu {
    display: block;
}

.custom-select-menu::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none;
}

.custom-select-menu::-webkit-scrollbar-button,
.custom-select-menu::-webkit-scrollbar-track,
.custom-select-menu::-webkit-scrollbar-thumb,
.custom-select-menu::-webkit-scrollbar-corner {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.custom-select-option {
    width: 100%;
    border: 0;
    background: transparent;
    color: #e6f0fb;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    cursor: pointer;
}

.custom-select-option-icon {
    color: var(--primary);
    opacity: 0.88;
    font-size: 0.72rem;
    margin-right: 0.18rem;
}

.custom-select-option-text {
    flex: 1;
    min-width: 0;
}

.custom-select-option.has-divider {
    border-top: 1px solid rgba(159, 197, 229, 0.16);
}

.custom-select-option:hover {
    background: rgba(3, 169, 244, 0.12);
}

.custom-select-option.is-selected {
    background: rgba(3, 169, 244, 0.16);
}

.custom-select-option.is-disabled {
    color: #8aa2be;
    cursor: default;
    background: transparent;
}

body.theme-light .custom-select-trigger {
    border-color: #c9deef;
    background: #ffffff;
    color: #152235;
}

body.theme-light .custom-select-label.is-placeholder {
    color: #7b8ea4;
}

body.theme-light .custom-select-caret {
    color: #6d86a2;
}

body.theme-light .custom-select-wrap.is-open .custom-select-trigger {
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.16);
}

body.theme-light.has-dashboard-shell .auth-input,
html.theme-light-preload body.has-dashboard-shell .auth-input {
    border: 0;
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
    box-shadow: none;
}

body.theme-light.has-dashboard-shell .auth-input::placeholder,
html.theme-light-preload body.has-dashboard-shell .auth-input::placeholder {
    color: #8aa3bc;
}

body.theme-light.has-dashboard-shell .auth-input:focus,
html.theme-light-preload body.has-dashboard-shell .auth-input:focus {
    border: 0;
    background: rgba(3, 169, 244, 0.1);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.14);
}

body.theme-light.has-dashboard-shell .auth-input:focus-visible,
html.theme-light-preload body.has-dashboard-shell .auth-input:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.4);
    outline-offset: 2px;
}

body.theme-light.has-dashboard-shell .auth-input.auth-input--neutral-outline,
html.theme-light-preload body.has-dashboard-shell .auth-input.auth-input--neutral-outline {
    border: 1px solid #dbe8f2;
    background: rgba(248, 252, 255, 0.98);
    color: #152235;
}

body.theme-light.has-dashboard-shell .auth-input.auth-input--neutral-outline:focus,
html.theme-light-preload body.has-dashboard-shell .auth-input.auth-input--neutral-outline:focus {
    border-color: #c5d8e8;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(15, 34, 60, 0.06);
}

body.theme-light.has-dashboard-shell .custom-select-trigger,
html.theme-light-preload body.has-dashboard-shell .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
    box-shadow: none;
}

body.theme-light.has-dashboard-shell .custom-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload body.has-dashboard-shell .custom-select-wrap.is-open .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.1);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.14);
}

body.theme-light.has-dashboard-shell .custom-select-caret,
html.theme-light-preload body.has-dashboard-shell .custom-select-caret {
    color: rgba(3, 169, 244, 0.48);
}

body.theme-light .custom-select-menu {
    border-color: rgba(3, 169, 244, 0.2);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 34, 60, 0.18);
}

body.theme-light .custom-select-option {
    color: #152235;
}

body.theme-light .custom-select-option.has-divider {
    border-top-color: rgba(3, 169, 244, 0.12);
}

body.theme-light .custom-select-option:hover {
    background: rgba(3, 169, 244, 0.08);
}

body.theme-light .custom-select-option.is-selected {
    background: rgba(3, 169, 244, 0.12);
}

.email-suggest {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 100;
    border: 1px solid var(--primary-border);
    border-radius: 0.75rem;
    background: #0f1a2e;
    box-shadow: 0 10px 24px rgba(1, 10, 20, 0.38);
    max-height: min(13.75rem, 42vh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.email-suggest::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none;
}

.email-suggest::-webkit-scrollbar-button,
.email-suggest::-webkit-scrollbar-track,
.email-suggest::-webkit-scrollbar-thumb,
.email-suggest::-webkit-scrollbar-corner {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.email-suggest.hidden {
    display: none;
}

.email-suggest-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(3, 169, 244, 0.12);
    background: transparent;
    color: #cfe4fa;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.83rem;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
}

.email-suggest-icon {
    color: var(--primary);
    font-size: 0.72rem;
    opacity: 0.9;
}

.email-suggest-item:last-child {
    border-bottom: 0;
}

.email-suggest-item:hover {
    background: var(--primary-soft);
    color: #e8f6ff;
}

body.theme-light .email-suggest,
html.theme-light-preload .email-suggest {
    background: var(--surface);
    border-color: var(--primary-border);
    box-shadow: 0 10px 28px rgba(15, 58, 90, 0.14);
}

body.theme-light .email-suggest-item,
html.theme-light-preload .email-suggest-item {
    color: var(--text);
    border-bottom-color: rgba(3, 169, 244, 0.16);
}

body.theme-light .email-suggest-item:hover,
html.theme-light-preload .email-suggest-item:hover {
    background: var(--primary-soft);
    color: var(--text);
}

body.theme-light .email-suggest-item strong,
html.theme-light-preload .email-suggest-item strong {
    color: var(--primary);
    font-weight: 600;
}

body.theme-light .email-suggest-icon,
html.theme-light-preload .email-suggest-icon {
    color: var(--primary);
    opacity: 1;
}

.password-toggle-btn {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--primary);
    opacity: 0.9;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn .hidden {
    display: none;
}

.setup-password-meter,
.setup-password-match {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--border) 80%, transparent);
    overflow: hidden;
}

.setup-password-meter__bar,
.setup-password-match__bar {
    display: block;
    height: 100%;
    width: 0;
    transition: width 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

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

.setup-password-meter.is-inactive {
    display: none;
}

.setup-password-match.is-inactive {
    display: none;
}

.setup-password-meter.is-weak .setup-password-meter__bar {
    width: 33%;
    background: #ef4444;
}

.setup-password-meter.is-medium .setup-password-meter__bar {
    width: 66%;
    background: #f59e0b;
}

.setup-password-meter.is-strong .setup-password-meter__bar {
    width: 100%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
}

.setup-password-match.is-match .setup-password-match__bar {
    width: 100%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}

.setup-password-match.is-no-match .setup-password-match__bar {
    width: 100%;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.setup-password-note.is-success {
    color: #86efac;
}

.setup-password-note.is-error {
    color: #fca5a5;
}

.dashboard-shell {
    min-height: calc(100vh - var(--footer-height));
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    max-width: none;
    margin-top: 0;
    transition: grid-template-columns 0.42s ease;
}

.dashboard-fullbleed {
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - var(--footer-height));
    margin-left: 0;
    margin-right: 0;
    overflow-x: clip;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    width: 250px;
    min-width: 250px;
    min-height: calc(100vh - var(--footer-height));
    background: linear-gradient(180deg, rgba(14, 24, 42, 0.96), rgba(10, 19, 36, 0.94));
    border-radius: 0;
    border: 0;
    border-left: 0;
    border-top: 0;
    border-bottom: 0;
    padding: 1.05rem 0.92rem;
    box-shadow: inset -1px 0 0 rgba(159, 197, 229, 0.08), 0 12px 30px rgba(1, 10, 20, 0.32);
    transition: width 0.42s ease, padding 0.42s ease, transform 0.28s ease, opacity 0.22s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;
    color: #d9f3ff;
    font-weight: 600;
    margin-bottom: 1.08rem;
    padding: 0.42rem 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.sidebar-brand i {
    color: var(--primary);
}

.sidebar-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: invert(61%) sepia(89%) saturate(1887%) hue-rotate(165deg) brightness(101%) contrast(97%);
}

.sidebar-brand-text {
    color: #dbe9f8;
    white-space: nowrap;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    transition: opacity 0.28s ease;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
    min-height: 0;
}

.sidebar-nav-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
}

.sidebar-nav-cluster--bottom {
    margin-top: auto;
    padding-top: 0.35rem;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(3, 169, 244, 0.02), rgba(3, 169, 244, 0.2), rgba(3, 169, 244, 0.02));
    margin: 0.5rem 0 0.6rem;
}

.sidebar-section-title {
    margin: 0.24rem 0 0.18rem;
    padding: 0 0.4rem;
    font-size: 0.63rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7f96b1;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    min-height: 2.15rem;
    padding: 0.5rem 0.5rem;
    border-radius: 0.72rem;
    color: #b7cbe2;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-label {
    white-space: nowrap;
    transition: opacity 0.28s ease;
}

.sidebar-nav a i {
    color: var(--primary);
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.42rem;
    background: rgba(3, 169, 244, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    text-align: center;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    background: rgba(3, 169, 244, 0.16);
    color: #eaf6ff;
    transform: translateX(1px);
}

.sidebar-nav a.is-active {
    position: relative;
    box-shadow: none;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
}

/* Kategori Turbo cercevesi: ustte ekstra beyaz bosluk birakmaz; kabuk icinde scroll uyumu */
.dashboard-main > turbo-frame {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border: 0;
}

.dashboard-main > turbo-frame > .dashboard-content {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    /* Gece temasinda sticky altinda kayarken icerik gorunmesin — tam opak */
    background: #121a2d;
    border: 0;
    border-radius: 0;
    padding: 1rem 1.75rem 1rem 1.15rem;
    box-shadow: none;
    border-top: 0;
    border-right: 0;
    width: 100%;
    min-width: 0;
}

.topbar-spacer {
    flex: 1;
    min-width: 0;
}

.dashboard-topnav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.dashboard-topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 36px;
    padding: 0 0.72rem;
    border: 1px solid transparent;
    border-radius: 0.72rem;
    background: transparent;
    color: #bfd4eb;
    text-decoration: none;
    font-size: 0.81rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dashboard-topnav-link i {
    color: var(--primary);
    font-size: 0.76rem;
}

.dashboard-topnav-link:hover,
.dashboard-topnav-link:focus-visible,
.dashboard-topnav-link.is-active {
    background: rgba(3, 169, 244, 0.14);
    border-color: rgba(3, 169, 244, 0.28);
    color: #eaf7ff;
    outline: none;
}

.dashboard-topnav-dropdown {
    position: relative;
}

.dashboard-topnav-link--toggle {
    border: 1px solid rgba(3, 169, 244, 0.18);
    background: rgba(3, 169, 244, 0.06);
}

.dashboard-topnav-link--toggle i:last-child {
    color: #9fd4ed;
    font-size: 0.67rem;
    transition: transform 0.2s ease;
}

.dashboard-topnav-dropdown.is-open .dashboard-topnav-link--toggle i:last-child {
    transform: rotate(180deg);
}

.dashboard-topnav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    min-width: 190px;
    padding: 0.4rem;
    border-radius: 0.84rem;
    border: 1px solid rgba(3, 169, 244, 0.24);
    background: rgba(13, 23, 41, 0.98);
    box-shadow: 0 12px 22px rgba(1, 10, 20, 0.44);
    z-index: 65;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-topnav-dropdown.is-open .dashboard-topnav-dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dashboard-topnav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border-radius: 0.66rem;
    color: #dff1ff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.53rem 0.62rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dashboard-topnav-dropdown-link i {
    color: var(--primary);
    width: 14px;
    text-align: center;
}

.dashboard-topnav-dropdown-link:hover,
.dashboard-topnav-dropdown-link:focus-visible {
    background: rgba(3, 169, 244, 0.2);
    color: #ffffff;
    outline: none;
}

body.theme-light .dashboard-topnav-link {
    color: #27415f;
}

body.theme-light .dashboard-topnav-link:hover,
body.theme-light .dashboard-topnav-link:focus-visible,
body.theme-light .dashboard-topnav-link.is-active {
    color: #152235;
}

body.theme-light .dashboard-topnav-link--toggle {
    background: rgba(3, 169, 244, 0.08);
    border-color: rgba(3, 169, 244, 0.22);
}

body.theme-light .dashboard-topnav-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(3, 169, 244, 0.2);
    box-shadow: 0 12px 20px rgba(21, 34, 53, 0.14);
}

body.theme-light .dashboard-topnav-dropdown-link {
    color: #1d334c;
}

body.theme-light .dashboard-topnav-dropdown-link:hover,
body.theme-light .dashboard-topnav-dropdown-link:focus-visible {
    background: rgba(3, 169, 244, 0.12);
}

body.theme-light .dashboard-sidebar {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: inset -1px 0 0 rgba(3, 169, 244, 0.1), 0 10px 22px rgba(21, 34, 53, 0.08);
}

body.theme-light .sidebar-brand-text {
    color: #60758f;
}

body.theme-light .sidebar-section-title {
    color: #6f86a1;
}

body.theme-light .sidebar-nav a {
    color: #2d4764;
}

body.theme-light .sidebar-nav a:hover,
body.theme-light .sidebar-nav a.is-active {
    background: rgba(3, 169, 244, 0.14);
    color: #152235;
}

body.theme-light .dashboard-topbar,
html.theme-light-preload .dashboard-topbar {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(3, 169, 244, 0.18);
    box-shadow: 0 8px 18px rgba(21, 34, 53, 0.08);
}

body.theme-light .topbar-menu-btn {
    background: rgba(3, 169, 244, 0.1);
    color: var(--primary);
}

body.theme-light .topbar-menu-btn:hover {
    background: rgba(3, 169, 244, 0.16);
}

body.theme-light .header-icon-btn {
    background: rgba(3, 169, 244, 0.1);
    color: var(--primary);
}

body.theme-light .header-icon-btn:hover {
    background: rgba(3, 169, 244, 0.16);
}

body.theme-light .topbar-user-btn {
    background: #ffffff;
    border-color: rgba(3, 169, 244, 0.24);
    color: #152235;
}

body.theme-light .topbar-user-dropdown.is-open .topbar-user-btn {
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.14);
}

body.theme-light .user-avatar {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

body.theme-light .status-dot {
    border-color: #ffffff;
    border-width: 2.5px;
}

body.theme-light .desktop-user-name {
    color: #5f738d;
}

body.theme-light .topbar-user-dropdown:hover .desktop-user-name {
    color: #445a74;
}

body.theme-light .user-chevron {
    color: #4e6883;
}

body.theme-light .dashboard-hero,
body.theme-light .dashboard-card,
html.theme-light-preload .dashboard-hero,
html.theme-light-preload .dashboard-card {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(21, 34, 53, 0.08);
}

body.theme-light .dashboard-hero h1,
body.theme-light .dashboard-card h2,
html.theme-light-preload .dashboard-hero h1,
html.theme-light-preload .dashboard-card h2 {
    color: #152235;
}

body.theme-light .dashboard-card p,
html.theme-light-preload .dashboard-card p {
    color: #38516d;
}

.topbar-menu-btn {
    border: 0;
    background: rgba(159, 176, 200, 0.14);
    color: #d9f3ff;
    width: 38px;
    height: 36px;
    border-radius: 0.65rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.topbar-menu-btn:hover {
    background: rgba(159, 176, 200, 0.24);
}

.topbar-greet-inline,
.topbar-avatar-inline {
    display: none;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.topbar-avatar-inline {
    display: inline-flex;
}

.topbar-greet-meta {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.08;
}

.topbar-greet-label {
    font-family: var(--font-plus-jakarta-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: #9fb0c8;
}

.topbar-greet-name {
    font-family: var(--font-plus-jakarta-sans);
    font-size: 0.79rem;
    font-weight: 700;
    color: #eef6ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(42vw, 180px);
    margin-top: 3px;
}

body.theme-light .topbar-greet-label,
html.theme-light-preload .topbar-greet-label {
    color: #567089;
}

body.theme-light .topbar-greet-name,
html.theme-light-preload .topbar-greet-name {
    color: #10283f;
}

.topbar-back-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: #eef6ff;
    font-size: 0.86rem;
    font-weight: 650;
}

.topbar-back-title__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.14);
    color: var(--primary);
    font-size: 0.72rem;
}

body.theme-light .topbar-back-title,
html.theme-light-preload .topbar-back-title {
    color: rgba(21, 34, 53, 0.92);
}

body.theme-light .topbar-back-title__icon,
html.theme-light-preload .topbar-back-title__icon {
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
}

.dashboard-shell--requests-page .dashboard-topbar {
    background: #043f59;
    box-shadow: none;
    border-bottom: 0;
}

.dashboard-shell--requests-page .dashboard-topbar .topbar-back-title {
    color: rgba(240, 249, 255, 0.96);
}

.dashboard-shell--requests-page .dashboard-topbar .topbar-back-title__icon {
    background: rgba(255, 255, 255, 0.18);
    color: #f0f9ff;
}

body.theme-light .dashboard-shell--requests-page .dashboard-topbar .topbar-back-title,
html.theme-light-preload .dashboard-shell--requests-page .dashboard-topbar .topbar-back-title {
    color: rgba(240, 249, 255, 0.96);
}

body.theme-light .dashboard-shell--requests-page .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload .dashboard-shell--requests-page .dashboard-topbar .topbar-back-title__icon {
    background: rgba(255, 255, 255, 0.18);
    color: #f0f9ff;
}

.dashboard-shell--profile-page .dashboard-content--units-page {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.dashboard-shell--units-page .dashboard-content--units-page {
    padding-top: 0.68rem;
}

.dashboard-shell--requests-page .dashboard-content--units-page {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Kategoriler (turbo-frame): Talepler ile aynı içerik ofseti — üst navbar ile banner yapışır */
.dashboard-shell--categories-page .dashboard-content--units-page {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

/* requests-page: liste full-bleed; talep detay (.support-detail-page) yatay inset ayrı kurallarda */
.dashboard-shell--requests-page .dashboard-content--units-page > *:not(.units-period-banner--page-slot):not(.support-detail-page):not(.req-detail-page) {
    margin-left: 0;
    margin-right: 0;
}

.dashboard-shell--categories-page .dashboard-content--units-page > *:not(.units-period-banner--page-slot):not(.due-receipt-action-sheet):not(.unit-card-sheet) {
    margin-left: 0;
    margin-right: 0;
}

.profile-page-content {
    justify-content: start;
}

.profile-page-content > .profile-card-modern,
.profile-page-content > .profile-info-card {
    margin-top: 0.78rem;
}

.profile-page-content > .profile-license-summary-card {
    margin-top: 0.78rem;
}

/* ── Profil lisans özet kartı ── */
.profile-license-summary-card,
.dashboard-card.profile-license-summary-card {
    display: flex;
    align-items: center;
    gap: 0.78rem;
    width: 100%;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.92rem 1rem;
    border-radius: 1rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.18s ease;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.profile-license-summary-card--active,
.dashboard-card.profile-license-summary-card--active {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.2) 0%, rgba(17, 26, 46, 0.96) 52%, #111a2e 100%) !important;
    border: 1px solid rgba(251, 146, 60, 0.28) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    color: #fde68a;
}

.profile-license-summary-card--inactive,
.dashboard-card.profile-license-summary-card--inactive {
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.24) 0%, rgba(17, 26, 46, 0.96) 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    color: #94a3b8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.profile-license-summary-card--active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% 12%, rgba(251, 146, 60, 0.14) 0%, transparent 48%);
    pointer-events: none;
}

.profile-license-summary-card:hover {
    filter: brightness(1.05);
}

.profile-license-summary-card--active:hover {
    box-shadow: 0 10px 28px rgba(251, 146, 60, 0.16);
}

.profile-license-summary-card--inactive:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.profile-license-summary-card:active {
    transform: scale(0.985);
}

.profile-license-summary-card:focus-visible {
    outline: 2px solid rgba(251, 146, 60, 0.55);
    outline-offset: 2px;
}

.profile-license-summary-card__icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 146, 60, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.22);
    font-size: 1.12rem;
    color: #fb923c;
    box-shadow: none;
}

.profile-license-summary-card__icon i {
    font-size: 1.12rem;
    line-height: 1;
}

.profile-license-summary-card--inactive .profile-license-summary-card__icon {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.2);
}

.profile-license-summary-card__copy {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
}

.profile-license-summary-card__title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.profile-license-summary-card__title {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: #fcd34d;
}

.profile-license-summary-card--inactive .profile-license-summary-card__title {
    color: #cbd5e1;
}

.profile-license-summary-card__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.46rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #15803d;
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.profile-license-summary-card__pill--inactive {
    color: #b91c1c;
}

.profile-license-summary-card__sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(253, 230, 138, 0.72);
}

.profile-license-summary-card--inactive .profile-license-summary-card__sub {
    color: rgba(148, 163, 184, 0.82);
}

.profile-license-summary-card__chevron {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 146, 60, 0.12);
    color: rgba(253, 186, 116, 0.88);
    font-size: 0.72rem;
}

.profile-license-summary-card--inactive .profile-license-summary-card__chevron {
    color: rgba(148, 163, 184, 0.78);
    background: rgba(148, 163, 184, 0.12);
}

body.theme-light .profile-license-summary-card--active,
body.theme-light .dashboard-card.profile-license-summary-card--active,
html.theme-light-preload .profile-license-summary-card--active,
html.theme-light-preload .dashboard-card.profile-license-summary-card--active {
    background: linear-gradient(125deg, #fff7ed 0%, #ffedd5 22%, #fed7aa 52%, #fdba74 100%) !important;
    border: 0 !important;
    box-shadow: 0 6px 22px rgba(217, 119, 6, 0.14);
    color: #78350f;
}

body.theme-light .profile-license-summary-card--inactive,
body.theme-light .dashboard-card.profile-license-summary-card--inactive,
html.theme-light-preload .profile-license-summary-card--inactive,
html.theme-light-preload .dashboard-card.profile-license-summary-card--inactive {
    background: linear-gradient(125deg, #f1f5f9 0%, #cbd5e1 48%, #94a3b8 100%) !important;
    border: 0 !important;
    color: #334155;
    box-shadow: 0 6px 18px rgba(51, 65, 85, 0.12);
}

body.theme-light .profile-license-summary-card--active::before,
html.theme-light-preload .profile-license-summary-card--active::before {
    background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.45) 0%, transparent 48%);
}

body.theme-light .profile-license-summary-card--active:hover,
html.theme-light-preload .profile-license-summary-card--active:hover {
    box-shadow: 0 8px 26px rgba(217, 119, 6, 0.18);
}

body.theme-light .profile-license-summary-card--inactive:hover,
html.theme-light-preload .profile-license-summary-card--inactive:hover {
    box-shadow: 0 12px 30px rgba(51, 65, 85, 0.3);
}

body.theme-light .profile-license-summary-card:focus-visible,
html.theme-light-preload .profile-license-summary-card:focus-visible {
    outline-color: rgba(194, 65, 12, 0.55);
}

body.theme-light .profile-license-summary-card__icon,
html.theme-light-preload .profile-license-summary-card__icon {
    background: rgba(255, 255, 255, 0.72);
    border: 0;
    color: #c2410c;
    box-shadow: 0 2px 8px rgba(124, 45, 18, 0.1);
}

body.theme-light .profile-license-summary-card--inactive .profile-license-summary-card__icon,
html.theme-light-preload .profile-license-summary-card--inactive .profile-license-summary-card__icon {
    color: #475569;
    background: rgba(255, 255, 255, 0.55);
    border: 0;
}

body.theme-light .profile-license-summary-card__title,
html.theme-light-preload .profile-license-summary-card__title {
    color: #7c2d12;
}

body.theme-light .profile-license-summary-card--inactive .profile-license-summary-card__title,
html.theme-light-preload .profile-license-summary-card--inactive .profile-license-summary-card__title {
    color: #334155;
}

body.theme-light .profile-license-summary-card__sub,
html.theme-light-preload .profile-license-summary-card__sub {
    color: rgba(120, 53, 15, 0.78);
}

body.theme-light .profile-license-summary-card--inactive .profile-license-summary-card__sub,
html.theme-light-preload .profile-license-summary-card--inactive .profile-license-summary-card__sub {
    color: rgba(51, 65, 85, 0.72);
}

body.theme-light .profile-license-summary-card__chevron,
html.theme-light-preload .profile-license-summary-card__chevron {
    background: rgba(255, 255, 255, 0.55);
    color: rgba(120, 53, 15, 0.72);
}

body.theme-light .profile-license-summary-card--inactive .profile-license-summary-card__chevron,
html.theme-light-preload .profile-license-summary-card--inactive .profile-license-summary-card__chevron {
    color: rgba(51, 65, 85, 0.65);
    background: rgba(255, 255, 255, 0.55);
}

.profile-license-drawer__panel {
    max-width: min(420px, 100vw);
}

.profile-license-drawer__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.35rem 1rem 1.35rem;
    -webkit-overflow-scrolling: touch;
}

.profile-license-drawer__head {
    border-bottom: 1px solid rgba(3, 169, 244, 0.14);
}

.profile-license-drawer__title-wrap {
    flex: 1;
    min-width: 0;
}

.profile-license-drawer__title-icon {
    display: inline-flex !important;
    background: rgba(251, 146, 60, 0.18);
    color: #fb923c;
}

body.profile-license-open {
    overflow: hidden;
}

.pf-license-card--drawer {
    margin-top: 0.15rem;
    gap: 0.95rem;
    padding: 0.95rem 0.9rem 1rem;
}

.pf-license-status-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pf-license-status-strip__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.pf-license-status-strip__dot.pf-license-card__status-dot--active {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.pf-license-status-strip__dot.pf-license-card__status-dot--inactive {
    background: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.pf-license-status-strip__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.52rem;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: #34d399;
    font-size: 0.64rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.pf-license-status-strip__pill--inactive {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.28);
    color: #f87171;
}

.pf-license-status-strip__remaining {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.3;
}

.pf-license-meta {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 0.72rem;
    border: 1px solid rgba(3, 169, 244, 0.12);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.pf-license-meta__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.58rem 0.72rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pf-license-meta__row:last-child {
    border-bottom: 0;
}

.pf-license-meta__row dt {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}

.pf-license-meta__row dt i {
    width: 0.85rem;
    text-align: center;
    color: rgba(125, 211, 248, 0.85);
    font-size: 0.68rem;
}

.pf-license-meta__row dd {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 650;
    color: var(--text);
    text-align: right;
}

.pf-license-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 0.72rem;
    border: 1px solid rgba(3, 169, 244, 0.12);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.pf-license-features__head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.52rem 0.72rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(3, 169, 244, 0.06);
}

.pf-license-features__head span:last-child {
    text-align: right;
}

.pf-license-features__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pf-license-features__row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.62rem 0.72rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pf-license-features__row:last-child {
    border-bottom: 0;
}

.pf-license-features__label {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    min-width: 0;
}

.pf-license-features__label i {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.38rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 169, 244, 0.1);
    color: #38bdf8;
    font-size: 0.68rem;
    flex-shrink: 0;
}

.pf-license-features__value {
    display: inline-flex;
    justify-content: flex-end;
}

.pf-license-feature-badge {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
}

.pf-license-feature-badge--on {
    background: rgb(0 212 115);
    color: #ffffff;
}

.pf-license-feature-badge--off {
    background: rgb(248 82 82);
    color: #ffffff;
}

.pf-license-feature-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.42rem;
    border-radius: 999px;
    background: rgb(68 178 228);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

body.theme-light .pf-license-meta,
html.theme-light-preload .pf-license-meta,
body.theme-light .pf-license-features,
html.theme-light-preload .pf-license-features {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(3, 169, 244, 0.12);
}

body.theme-light .pf-license-meta__row,
html.theme-light-preload .pf-license-meta__row,
body.theme-light .pf-license-features__row,
html.theme-light-preload .pf-license-features__row {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

body.theme-light .pf-license-features__head,
html.theme-light-preload .pf-license-features__head {
    background: rgba(3, 169, 244, 0.06);
}

.pf-license-card__badge--inactive {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.35);
    color: #f87171;
}

.pf-license-card__progress-fill--inactive {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.dashboard-shell--profile-page .dashboard-content--units-page > *:not(.units-period-banner--page-slot):not(.profile-settings-drawer):not(.profile-license-drawer) {
    margin-left: auto;
    margin-right: auto;
}

/* ── Profil banner (topbar altı, yapışık) ── */
.profile-banner {
    margin-bottom: 0;
    padding: 1.05rem 0.85rem 1.15rem;
    position: relative;
}

.profile-banner__actions {
    position: absolute;
    top: 0.72rem;
    right: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    z-index: 3;
}

.profile-banner__action-btn,
.profile-banner__settings-btn {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.72rem;
    flex-shrink: 0;
}

.dashboard-shell--profile-page .dashboard-topbar {
    padding-right: 0.85rem;
}

.dashboard-shell--profile-page .topbar-user-dropdown {
    margin-right: 0;
    gap: 0.42rem;
}

.dashboard-shell--profile-page .profile-banner__actions {
    top: 0.55rem;
    right: 0.85rem;
}

.dashboard-shell--profile-page .profile-banner__action-btn,
.dashboard-shell--profile-page .profile-banner__settings-btn {
    width: 2.35rem;
    height: 2.35rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #f0f9ff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

body.theme-light .dashboard-shell--profile-page .profile-banner__action-btn,
body.theme-light .dashboard-shell--profile-page .profile-banner__settings-btn,
html.theme-light-preload .dashboard-shell--profile-page .profile-banner__action-btn,
html.theme-light-preload .dashboard-shell--profile-page .profile-banner__settings-btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--text);
}

.profile-banner__row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 7.5rem;
}

.profile-banner__settings-btn {
    /* ayarlar — banner sag ust, logout ile ayni sutun */
}

.topbar-profile-tools {
    display: none;
}

.topbar-notification-item--clickable {
    cursor: pointer;
}

.topbar-notification-item__new-badge {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.topbar-notification-dropdown__empty--soft {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 12rem;
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--muted);
}

.topbar-notification-dropdown__empty-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 169, 244, 0.1);
    color: var(--primary);
    font-size: 1.1rem;
}

.topbar-notification-dropdown__empty--soft p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 0.85;
}

.requests-add-card .firms-kind-pills,
.firms-add-card .firms-kind-pills {
    margin-left: auto;
    margin-right: auto;
}

.firms-kind-pills-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.firms-kind-pills-row .profile-card-modern__label {
    text-align: center;
}

.profile-banner__identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.42rem;
    text-align: center;
    max-width: calc(100% - 4.25rem);
    padding-right: 0.25rem;
}

.profile-banner__avatar-wrap {
    margin: 0 auto;
}

.profile-banner__avatar-shell {
    width: 4.5rem;
    height: 4.5rem;
    border: 3px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 22px rgba(2, 80, 120, 0.28);
}

.profile-banner__avatar-shell[data-avatar-trigger="true"] {
    cursor: pointer;
}

.profile-banner__avatar-shell[data-avatar-trigger="true"]:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.92);
    outline-offset: 2px;
}

.profile-banner__avatar {
    width: 100%;
    height: 100%;
}

.profile-banner__name {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    letter-spacing: 0.01em;
}

.profile-banner__role {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.profile-banner__role i {
    font-size: 0.68rem;
    opacity: 0.92;
}

.profile-banner__avatar-upload,
.profile-banner__avatar-delete {
    border-color: rgba(255, 255, 255, 0.55);
}

/* Topbar + sayfa banneri tek blok: profil ve diger ic sayfalar (kargo, ziyaretci vb.) */
.profile-banner.units-period-banner--page-slot {
    margin-top: 0;
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

@media (max-width: 820px) {
    .dashboard-main:has(.units-period-banner--page-slot) .dashboard-content.dashboard-content--units-page {
        padding-top: 0 !important;
    }

    .dashboard-main:has(.units-period-banner--page-slot) .units-period-banner--page-slot {
        margin-top: 0;
        border-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar,
    html:not(.theme-light-preload) body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar {
        background: var(--mobile-page-banner-top-dark);
        border-bottom: 0;
        box-shadow: none;
    }

    .dashboard-shell--requests-page .dashboard-topbar {
        background: #043f59;
        border-bottom: 0;
        box-shadow: none;
    }

    body.theme-light .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar,
    html.theme-light-preload .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar {
        background: var(--mobile-top-gradient);
        border-bottom: 0;
        box-shadow: none;
    }

    body.theme-light .dashboard-shell--requests-page .dashboard-topbar,
    html.theme-light-preload .dashboard-shell--requests-page .dashboard-topbar {
        background: #043f59;
        border-bottom: 0;
        box-shadow: none;
    }

    body.theme-light .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-back-title,
    html.theme-light-preload .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-back-title,
    body.theme-light .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-greet-label,
    html.theme-light-preload .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-greet-label,
    body.theme-light .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-greet-name,
    html.theme-light-preload .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-greet-name {
        color: rgba(240, 249, 255, 0.96);
    }

    body.theme-light .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-back-title__icon,
    html.theme-light-preload .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-back-title__icon {
        background: rgba(255, 255, 255, 0.18);
        color: #f0f9ff;
    }

    body.theme-light .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-menu-btn,
    html.theme-light-preload .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-menu-btn,
    body.theme-light .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .header-icon-btn,
    html.theme-light-preload .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .header-icon-btn {
        background: rgba(255, 255, 255, 0.16);
        color: #f0f9ff;
    }

    body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-back-title,
    html:not(.theme-light-preload) body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-back-title,
    body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-greet-label,
    html:not(.theme-light-preload) body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-greet-label,
    body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-greet-name,
    html:not(.theme-light-preload) body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-greet-name {
        color: rgba(240, 249, 255, 0.96);
    }

    body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-back-title__icon,
    html:not(.theme-light-preload) body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-back-title__icon,
    body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-menu-btn,
    html:not(.theme-light-preload) body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .topbar-menu-btn,
    body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .header-icon-btn,
    html:not(.theme-light-preload) body:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar .header-icon-btn {
        background: rgba(255, 255, 255, 0.16);
        color: #f0f9ff;
    }
}

/* ── Profil ayarları çekmecesi ── */
.profile-settings-drawer__panel {
    max-width: min(420px, 100vw);
}

.profile-settings-drawer__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.35rem 1rem 1.35rem;
    -webkit-overflow-scrolling: touch;
}

.profile-settings-drawer__head {
    border-bottom: 1px solid rgba(3, 169, 244, 0.14);
    gap: 0.45rem;
}

.profile-settings-drawer__back {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 169, 244, 0.12);
    color: #7dd3fc;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.profile-settings-drawer__back:hover,
.profile-settings-drawer__back:focus-visible {
    background: rgba(3, 169, 244, 0.22);
    outline: none;
}

.profile-settings-drawer__title-wrap {
    flex: 1;
    min-width: 0;
}

/* Mobil ayar bölümleri */
.pf-mset-section {
    margin: 0 0 1.15rem;
}

.pf-mset-view[data-pf-settings-view="main"] > .pf-mset-section:first-child .pf-mset-section__heading {
    margin-top: 0.85rem;
}

.pf-mset-section__heading {
    margin: 0 0 0.42rem 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.pf-mset-card {
    border-radius: 0.85rem;
    border: 1px solid rgba(3, 169, 244, 0.16);
    background: rgba(8, 18, 32, 0.55);
    overflow: hidden;
}

.pf-mset-card--options {
    padding: 0.15rem 0;
}

.pf-mset-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.78rem 0.85rem;
    border: 0;
    border-bottom: 1px solid rgba(3, 169, 244, 0.1);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.14s ease;
}

.pf-mset-row--last,
.pf-mset-row:last-child {
    border-bottom: 0;
}

.pf-mset-row--static {
    cursor: default;
}

.pf-mset-row:not(.pf-mset-row--static):hover,
.pf-mset-row:not(.pf-mset-row--static):focus-visible {
    background: rgba(3, 169, 244, 0.08);
    outline: none;
}

.pf-mset-row__icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.48rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.pf-mset-row__icon--theme { background: rgba(168, 85, 247, 0.18); color: #c084fc; }
.pf-mset-row__icon--font { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.pf-mset-row__icon--lang { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.pf-mset-row__icon--lock { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.pf-mset-row__icon--bell { background: rgba(236, 72, 153, 0.18); color: #f472b6; }
.pf-mset-row__icon--building { background: rgba(3, 169, 244, 0.18); color: #38bdf8; }
.pf-mset-row__icon--info { background: rgba(99, 102, 241, 0.18); color: #818cf8; }
.pf-mset-row__icon--version { background: rgba(100, 116, 139, 0.22); color: #94a3b8; }
.pf-mset-row__icon--shield { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.pf-mset-row__icon--doc { background: rgba(14, 165, 233, 0.18); color: #38bdf8; }

.pf-mset-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.pf-mset-row__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
}

.pf-mset-row__sub {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.3;
}

.pf-mset-row__value {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
}

.pf-mset-row__chev {
    flex-shrink: 0;
    font-size: 0.68rem;
    color: rgba(148, 163, 184, 0.75);
}

.pf-mset-view__lead {
    margin: 0.15rem 0.15rem 0.72rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
}

.pf-mset-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.82rem 0.95rem;
    border: 0;
    border-bottom: 1px solid rgba(3, 169, 244, 0.1);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.14s ease;
}

.pf-mset-option--last,
.pf-mset-option:last-child {
    border-bottom: 0;
}

.pf-mset-option:hover,
.pf-mset-option:focus-visible {
    background: rgba(3, 169, 244, 0.08);
    outline: none;
}

.pf-mset-option__icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 169, 244, 0.12);
    color: #38bdf8;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pf-mset-option__label {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.pf-mset-option__check {
    font-size: 0.78rem;
    color: var(--primary);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.pf-mset-option.is-active .pf-mset-option__check {
    opacity: 1;
    transform: scale(1);
}

.pf-mset-about {
    margin-top: 0.35rem;
    padding: 1.35rem 1rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(3, 169, 244, 0.16);
    background: rgba(8, 18, 32, 0.55);
    text-align: center;
}

.pf-mset-about__logo img {
    display: block;
    margin: 0 auto;
    border-radius: 0.65rem;
}

.pf-mset-about__name {
    margin: 0.72rem 0 0.2rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
}

.pf-mset-about__ver {
    margin: 0 0 0.85rem;
    font-size: 0.76rem;
    color: var(--muted);
}

.pf-mset-about__text,
.pf-mset-about__credit {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
}

.pf-mset-about__text {
    margin-bottom: 0.65rem;
}

.pf-mset-legal {
    padding: 0.15rem 0.05rem;
}

.pf-mset-legal-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.65rem;
}

.pf-mset-legal-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0369a1;
    background: rgba(3, 169, 244, 0.1);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.pf-mset-legal-pdf-btn:hover {
    background: rgba(3, 169, 244, 0.18);
    color: #0c4a6e;
}

.pf-mset-legal-meta {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
    opacity: 0.85;
}

.pf-mset-legal-intro {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text);
    font-weight: 500;
}

.pf-mset-legal-section {
    margin: 0 0 1rem;
}

.pf-mset-legal-section__title {
    margin: 0 0 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}

.pf-mset-legal-section__list {
    margin: 0 0 0.65rem;
    padding-left: 1.1rem;
}

.pf-mset-legal-section__list li {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
}

.pf-mset-legal p {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--muted);
}

.pf-mset-legal-section p:last-child,
.pf-mset-legal p:last-child {
    margin-bottom: 0;
}

body.theme-light .pf-mset-card,
html.theme-light-preload .pf-mset-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(3, 169, 244, 0.14);
}

body.theme-light .pf-mset-row,
html.theme-light-preload .pf-mset-row {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

body.theme-light .pf-mset-option,
html.theme-light-preload .pf-mset-option {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

body.theme-light .pf-mset-about,
html.theme-light-preload .pf-mset-about {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(3, 169, 244, 0.14);
}

body.theme-light .profile-settings-drawer__back,
html.theme-light-preload .profile-settings-drawer__back {
    background: rgba(3, 169, 244, 0.1);
    color: #0284c7;
}

/* Yazı boyutu ölçekleri */
html[data-font-scale="normal"],
html:not([data-font-scale]) {
    font-size: 100%;
}

html[data-font-scale="large"] {
    font-size: 106.25%;
}

html[data-font-scale="xlarge"] {
    font-size: 112.5%;
}

body.profile-settings-open {
    overflow: hidden;
}

.profile-page-content--no-tabs .profile-card-modern {
    margin-top: 0.78rem;
}

.profile-card-modern {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.1rem 1rem 1.1rem;
}

/* ── Profil bilgi kartı (salt okunur + düzenle rozeti) ── */
.profile-info-card {
    position: relative;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.95rem 3.15rem 0.95rem 1rem;
}

.profile-info-card__edit-btn {
    position: absolute;
    top: 0.72rem;
    right: 0.72rem;
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 8px;
    border: 0;
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    transition: background 0.16s ease, transform 0.12s ease;
}

.profile-info-card__edit-btn:hover,
.profile-info-card__edit-btn:focus-visible {
    background: rgba(3, 169, 244, 0.2);
    outline: none;
}

.profile-info-card__edit-btn:active {
    transform: scale(0.94);
}

.profile-info-card__rows {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.profile-info-card__row {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.profile-info-card__label {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.profile-info-card__value {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: #b4c2d4;
    word-break: break-word;
}

.profile-info-card__value--mail {
    font-weight: 500;
}

.profile-info-card__value--with-icon {
    font-weight: 500;
}

.profile-info-card__value-line {
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    min-width: 0;
    max-width: 100%;
}

.profile-info-card__value-icon {
    flex-shrink: 0;
    width: 1.72rem;
    height: 1.72rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.profile-info-card__value-icon--phone {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

.profile-info-card__value-icon--user {
    background: rgba(148, 163, 184, 0.16);
    color: #94a3b8;
}

.profile-info-card__value-icon--mail {
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
}

.profile-info-card__value-text {
    min-width: 0;
    word-break: break-word;
}

body.theme-light .profile-info-card__edit-btn,
html.theme-light-preload .profile-info-card__edit-btn {
    background: rgba(3, 169, 244, 0.1);
    color: #0284c7;
}

body.theme-light .profile-info-card__label,
html.theme-light-preload .profile-info-card__label {
    color: #64748b;
}

body.theme-light .profile-info-card__value,
html.theme-light-preload .profile-info-card__value {
    color: #4a6178;
}

/* ── Profil düzenleme alt sheet ── */
.profile-edit-sheet .unit-card-sheet__panel {
    max-height: min(90vh, 760px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-edit-sheet__form {
    padding: 0 0.85rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
}

.profile-edit-sheet__actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.55rem;
    padding-top: 0.35rem;
}

.profile-edit-sheet__btn {
    min-height: 2.65rem;
    border-radius: 0.78rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.profile-edit-sheet__btn--ghost {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.profile-edit-sheet__btn--primary {
    border: 0;
    background: var(--primary);
    color: #fff;
}

.profile-edit-sheet__btn--primary:hover {
    background: var(--primary-hover);
}

.profile-edit-sheet__btn:active {
    transform: scale(0.98);
}

body.theme-light .profile-edit-sheet__btn--ghost,
html.theme-light-preload .profile-edit-sheet__btn--ghost {
    background: #f8fafc;
    border-color: #dbe3ee;
    color: #334155;
}

.profile-listings-card {
    position: relative;
    width: min(430px, 100%);
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.95rem;
}

.profile-listings-card--summary {
    display: flex;
    min-height: 7.6rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.52rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.profile-listings-card--summary:hover {
    border-color: rgba(3, 169, 244, 0.3);
    background: rgba(3, 169, 244, 0.06);
}

.profile-listings-card--summary:active {
    transform: scale(0.99);
}

.profile-listings-card--summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.profile-listings-card__count {
    position: absolute;
    top: 0.72rem;
    right: 0.72rem;
    display: inline-flex;
    min-width: 1.72rem;
    min-height: 1.4rem;
    align-items: center;
    justify-content: center;
    padding: 0.16rem 0.44rem;
    border-radius: 8px;
    background: rgba(3, 169, 244, 0.14);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 850;
}

.profile-listings-card__summary-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    font-size: 1.18rem;
}

.profile-listings-card__summary-title {
    color: rgba(226, 232, 240, 0.76);
    font-size: 0.9rem;
    font-weight: 760;
    letter-spacing: 0.01em;
}

.profile-listings-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.78rem;
}

.profile-listings-card__head h2 {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
}

.profile-listings-card__head p {
    margin: 0.12rem 0 0;
    color: var(--muted);
    font-size: 0.68rem;
}

.profile-listings-card__link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.profile-listings-card__link:hover {
    background: rgba(3, 169, 244, 0.2);
    color: var(--primary-hover);
}

.profile-listings-card__link:active {
    transform: scale(0.98);
}

.profile-listings-card__link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.profile-listings-card__list.firm-cards {
    gap: 0.62rem;
    padding-left: 0;
    padding-right: 0;
}

.profile-listings-card__list .listing-firm-card {
    width: 100%;
}

.profile-listings-card__empty {
    margin: 0;
}

body.theme-light .profile-listings-card__head h2,
html.theme-light-preload .profile-listings-card__head h2 {
    color: #152235;
}

body.theme-light .profile-listings-card__summary-title,
html.theme-light-preload .profile-listings-card__summary-title {
    color: #52677e;
}

body.theme-light .profile-listings-card__count,
html.theme-light-preload .profile-listings-card__count {
    background: rgba(3, 169, 244, 0.12);
    color: #028ecc;
}

.profile-card-modern__head {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 0;
    margin-bottom: 1.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-light .profile-card-modern__head,
html.theme-light-preload .profile-card-modern__head {
    border-bottom-color: rgba(0, 0, 0, 0.07);
}

/* ── Avatar upload wrap ── */
.profile-avatar-upload-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.profile-avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(3, 169, 244, 0.4);
    transition: background 0.18s, transform 0.16s;
    z-index: 2;
}

.profile-avatar-upload-btn:hover {
    background: var(--primary-hover, #0288d1);
    transform: scale(1.1);
}

.profile-avatar-delete-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    font-size: 0.52rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s, transform 0.16s, border-color 0.18s;
    z-index: 2;
}

.profile-avatar-delete-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.55);
    transform: scale(1.1);
}

.profile-avatar-upload-wrap:hover .profile-card-modern__avatar-shell::after {
    content: none;
}

.profile-avatar-upload-wrap:hover .profile-card-modern__avatar-shell {
    box-shadow: 0 2px 8px rgba(124, 45, 18, 0.1);
}

/* Özel fotoğraf varsa object-fit cover uygula */
.profile-card-modern__avatar--custom {
    object-fit: cover;
    object-position: center;
}

.profile-card-modern__avatar-shell {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 10%);
    box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
    margin-bottom: 0.42rem;
}

.profile-card-modern__avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 1px solid rgba(3, 169, 244, 0.28);
    background: rgba(3, 169, 244, 0.06);
}

.profile-card-modern__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #e7f2ff;
    line-height: 1.15;
    letter-spacing: 0.01em;
    font-family: var(--font-plus-jakarta-sans);
}

.profile-card-modern__email {
    margin: -0.48rem 0 0;
    font-size: 0.565rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(122, 154, 184, 0.6);
    line-height: 1.24;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.profile-card-modern__role-badge {
    margin: 0 0 0.72rem;
    padding: 0.13rem 0.42rem;
    border-radius: 999px;
    border: none;
    background: rgba(3, 169, 244, 0.1);
    color: rgba(3, 169, 244, 0.72);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.profile-card-modern__role-badge i {
    color: rgba(3, 169, 244, 0.65);
}

.profile-card-modern__label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(159, 176, 200, 0.88);
}

.profile-form-hint {
    display: inline;
    margin: -0.2rem 0 0;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--muted);
    opacity: 0.65;
    letter-spacing: 0.015em;
    line-height: 1.3;
}

body.theme-light .profile-form-hint,
html.theme-light-preload .profile-form-hint {
    color: #8aacca;
    opacity: 0.85;
}

body.theme-light .profile-card-modern__label,
html.theme-light-preload .profile-card-modern__label {
    color: #6a86a0;
}

.profile-card-modern__form .auth-input {
    min-height: 42px;
    border: 0;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    color: #e6f0fb;
}

.profile-card-modern__form .auth-input::placeholder {
    color: rgba(184, 204, 227, 0.58);
}

.profile-card-modern__form .auth-input:focus {
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
}

body.theme-light .profile-card-modern__form .auth-input,
html.theme-light-preload .profile-card-modern__form .auth-input {
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
}

body.theme-light .profile-card-modern__form .auth-input:focus,
html.theme-light-preload .profile-card-modern__form .auth-input:focus {
    background: rgba(3, 169, 244, 0.1);
    box-shadow: none;
}

/* ── profile-card-modern__form içinde custom-select ── */
.profile-card-modern__form .custom-select-trigger {
    min-height: 42px;
    border: 0;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    border-radius: 0.75rem;
    color: #e6f0fb;
}
.profile-card-modern__form .custom-select-wrap.is-open .custom-select-trigger {
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.12);
}
.profile-card-modern__form .custom-select-caret {
    color: rgba(3, 169, 244, 0.55);
}
.profile-card-modern__form .custom-select-menu {
    z-index: 200;
}

body.theme-light .profile-card-modern__form .custom-select-trigger,
html.theme-light-preload .profile-card-modern__form .custom-select-trigger {
    background: rgba(3, 169, 244, 0.06);
    border: 0;
    color: #152235;
}
body.theme-light .profile-card-modern__form .custom-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload .profile-card-modern__form .custom-select-wrap.is-open .custom-select-trigger {
    background: rgba(3, 169, 244, 0.1);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.14);
}
body.theme-light .profile-card-modern__form .custom-select-caret,
html.theme-light-preload .profile-card-modern__form .custom-select-caret {
    color: rgba(3, 169, 244, 0.5);
}
body.theme-light .profile-card-modern__form .custom-select-label.is-placeholder,
html.theme-light-preload .profile-card-modern__form .custom-select-label.is-placeholder {
    color: #9aaec4;
}

/* Aidat borclandirma gunu: Daire Duzenle Daire No / Kat ile ayni satir (sol ikon + notr cerceve + odak) */
.aidat-charge-day-field .dues-modal-select-wrap {
    width: 100%;
    min-width: 0;
}

body.has-dashboard-shell .aidat-charge-day-field .custom-select-trigger {
    min-height: 42px;
    padding-left: 2.3rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(184, 204, 227, 0.22);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

body.has-dashboard-shell .aidat-charge-day-field .custom-select-wrap.is-open .custom-select-trigger {
    border-color: rgba(184, 204, 227, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.2);
}

body.has-dashboard-shell .aidat-charge-day-field .custom-select-trigger:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.45);
    outline-offset: 2px;
}

body.theme-light.has-dashboard-shell .aidat-charge-day-field .custom-select-trigger,
html.theme-light-preload body.has-dashboard-shell .aidat-charge-day-field .custom-select-trigger {
    border: 1px solid #dbe8f2;
    background: rgba(248, 252, 255, 0.98);
    color: #152235;
}

body.theme-light.has-dashboard-shell .aidat-charge-day-field .custom-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload body.has-dashboard-shell .aidat-charge-day-field .custom-select-wrap.is-open .custom-select-trigger {
    border-color: #c5d8e8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.18);
}

body.theme-light.has-dashboard-shell .aidat-charge-day-field .custom-select-caret,
html.theme-light-preload body.has-dashboard-shell .aidat-charge-day-field .custom-select-caret {
    color: rgba(3, 169, 244, 0.5);
}

/* Profile form — password toggle: login paneli ile aynı soft stil */
.profile-card-modern__form .password-toggle-btn {
    color: var(--muted);
    opacity: 0.72;
    transition: color 0.18s, opacity 0.18s;
}
.profile-card-modern__form .password-toggle-btn:hover,
.profile-card-modern__form .password-toggle-btn:focus-visible {
    color: var(--primary);
    opacity: 1;
}
body.theme-light .profile-card-modern__form .password-toggle-btn,
html.theme-light-preload .profile-card-modern__form .password-toggle-btn {
    color: #7a9ab8;
    opacity: 1;
}
body.theme-light .profile-card-modern__form .password-toggle-btn:hover,
html.theme-light-preload .profile-card-modern__form .password-toggle-btn:hover,
body.theme-light .profile-card-modern__form .password-toggle-btn:focus-visible,
html.theme-light-preload .profile-card-modern__form .password-toggle-btn:focus-visible {
    color: var(--primary);
}

.profile-form-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.35rem;
}

.profile-form-actions__save {
    flex: 1;
}

.profile-form-actions__remove-photo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s, border-color 0.18s;
    flex-shrink: 0;
}

.profile-form-actions__remove-photo i {
    font-size: 0.7rem;
}

.profile-form-actions__remove-photo:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
}

body.theme-light .profile-form-actions__remove-photo,
html.theme-light-preload .profile-form-actions__remove-photo {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.22);
    color: #dc2626;
}

body.theme-light .profile-form-actions__remove-photo:hover,
html.theme-light-preload .profile-form-actions__remove-photo:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
}

.profile-card-modern__submit {
    margin-top: 0;
}

.profile-card-modern__password-progress {
    display: none;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
    margin-top: 0.3rem;
}

.profile-card-modern__password-progress.is-active {
    display: block;
}

.profile-card-modern__password-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: rgba(148, 163, 184, 0.58);
    transition: width 0.25s ease, background-color 0.25s ease;
}

.profile-card-modern__password-note {
    display: none;
    margin: 0.25rem 0 0;
    font-size: 0.68rem;
    color: var(--muted);
}

.profile-card-modern__password-note.is-active {
    display: block;
}

.profile-card-modern__password-progress.is-weak .profile-card-modern__password-progress-bar {
    background: #ef4444;
}

.profile-card-modern__password-progress.is-medium .profile-card-modern__password-progress-bar {
    background: #f59e0b;
}

.profile-card-modern__password-progress.is-strong .profile-card-modern__password-progress-bar {
    background: #22c55e;
}

.profile-card-modern__password-progress.is-match .profile-card-modern__password-progress-bar {
    background: #22c55e;
}

.profile-card-modern__password-progress.is-no-match .profile-card-modern__password-progress-bar {
    background: #ef4444;
}

.profile-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

.profile-shortcuts-card {
    text-decoration: none;
    padding: 0.8rem 0.76rem;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.42rem;
    text-align: center;
}

.profile-shortcuts-card__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.72rem;
    border: 0;
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.profile-shortcuts-card__title {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.profile-shortcuts-card--red .profile-shortcuts-card__icon {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.profile-shortcuts-card--red .profile-shortcuts-card__title {
    color: #f87171;
}

.profile-shortcuts-card--amber .profile-shortcuts-card__icon {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.profile-shortcuts-card--amber .profile-shortcuts-card__title {
    color: #fbbf24;
}

/* ── Profile Tab Switch ────────────────────────────────── */
.profile-tab-switch-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.78rem;
    margin-bottom: 1.5rem;
}

.profile-tab-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    max-width: 340px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(17, 26, 46, 0.85);
    border: 1px solid rgba(3, 169, 244, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.profile-tab-switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: var(--primary-gradient, linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%));
    box-shadow: 0 4px 14px rgba(3, 169, 244, 0.4);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.profile-tab-switch[data-tab="license"] .profile-tab-switch-thumb {
    transform: translateX(100%);
}

.profile-tab-switch-btn {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: #7fa4c0;
    padding: 0.46rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.79rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.profile-tab-switch-btn i {
    font-size: 0.75rem;
}

.profile-tab-switch-btn:hover {
    color: #b8d9ef;
}

.profile-tab-switch-btn.is-active {
    color: #ffffff;
}

body.theme-light .profile-tab-switch,
html.theme-light-preload .profile-tab-switch {
    background: #f0f7fd;
    border-color: rgba(3, 169, 244, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(3, 169, 244, 0.1);
}

body.theme-light .profile-tab-switch-btn,
html.theme-light-preload .profile-tab-switch-btn {
    color: #5a7d9a;
}

body.theme-light .profile-tab-switch-btn:hover,
html.theme-light-preload .profile-tab-switch-btn:hover {
    color: #1a4a6e;
}

body.theme-light .profile-tab-switch-btn.is-active,
html.theme-light-preload .profile-tab-switch-btn.is-active {
    color: #ffffff;
}

/* Tab Panel gizleme */
[data-profile-tab-panel] {
    animation: profileTabFadeIn 0.22s ease forwards;
}

[data-profile-tab-panel][hidden] {
    display: none;
}

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

/* ── Lisans paneli üst boşluk düzeltmesi ── */
[data-profile-tab-panel="license"] .pf-theme-inline {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

[data-profile-tab-panel="license"] .profile-license-card,
[data-profile-tab-panel="license"] .pf-license-card {
    margin-top: 0;
}

/* ── Profile Theme Card ─────────────────────────────────── */
/* ── Profile Theme Inline (minimal) ────────────────────── */
.pf-theme-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.85rem;
    padding: 0.52rem 0.72rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(3, 169, 244, 0.12);
}

.pf-theme-inline__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    flex-shrink: 0;
}

.pf-theme-inline__label i {
    color: var(--primary);
    font-size: 0.7rem;
}

.pf-theme-inline__btns {
    display: flex;
    gap: 0.35rem;
}

.pf-theme-inline__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.3rem 0.72rem;
    border-radius: 7px;
    border: 1px solid rgba(3, 169, 244, 0.18);
    background: transparent;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pf-theme-inline__btn:hover {
    background: rgba(3, 169, 244, 0.1);
    border-color: rgba(3, 169, 244, 0.3);
    color: #c8eaff;
}

.pf-theme-inline__btn.is-active {
    background: rgba(3, 169, 244, 0.18);
    border-color: var(--primary);
    color: #dff5ff;
}

.pf-theme-inline__btn i {
    font-size: 0.66rem;
}

/* Güneş ikonu — sarı */
.pf-theme-inline__btn[data-profile-theme-select="light"] i {
    color: #f59e0b;
}

.pf-theme-inline__btn[data-profile-theme-select="light"].is-active i {
    color: #fbbf24;
}

/* Ay ikonu — mavi-mor */
.pf-theme-inline__btn[data-profile-theme-select="dark"] i {
    color: #818cf8;
}

.pf-theme-inline__btn[data-profile-theme-select="dark"].is-active i {
    color: #a5b4fc;
}

.pf-theme-inline__btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ── Light tema overrides ── */
body.theme-light .pf-theme-inline,
html.theme-light-preload .pf-theme-inline {
    background: rgba(3, 169, 244, 0.05);
    border-color: rgba(3, 169, 244, 0.2);
}

body.theme-light .pf-theme-inline__label,
html.theme-light-preload .pf-theme-inline__label {
    color: #4a6a8a;
}

body.theme-light .pf-theme-inline__btn,
html.theme-light-preload .pf-theme-inline__btn {
    border-color: rgba(3, 169, 244, 0.2);
    color: #4a6a8a;
    background: transparent;
}

body.theme-light .pf-theme-inline__btn:hover,
html.theme-light-preload .pf-theme-inline__btn:hover {
    background: rgba(3, 169, 244, 0.08);
    border-color: rgba(3, 169, 244, 0.35);
    color: #0c3a5f;
}

body.theme-light .pf-theme-inline__btn.is-active,
html.theme-light-preload .pf-theme-inline__btn.is-active {
    background: rgba(3, 169, 244, 0.12);
    border-color: var(--primary);
    color: #0c3a5f;
}

/* legacy card kept for ref — hidden via new HTML */
.pf-theme-card {
    margin-top: 0.9rem;
    border-radius: 1rem;
    padding: 0.82rem 0.88rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(3, 169, 244, 0.14);
}

.pf-theme-card__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.pf-theme-card__icon-wrap {
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    background: rgba(3, 169, 244, 0.15);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pf-theme-card__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ddeeff;
    line-height: 1.2;
}

.pf-theme-card__sub {
    margin: 0.1rem 0 0;
    font-size: 0.66rem;
    font-weight: 400;
    color: var(--muted);
    opacity: 0.82;
    letter-spacing: 0.01em;
}

.pf-theme-card__options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
}

.pf-theme-option {
    border: 1px solid rgba(3, 169, 244, 0.16);
    border-radius: 0.8rem;
    padding: 0.6rem 0.55rem 0.5rem;
    background: rgba(3, 169, 244, 0.07);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.38rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pf-theme-option:hover {
    border-color: rgba(3, 169, 244, 0.35);
    background: rgba(3, 169, 244, 0.12);
}

.pf-theme-option.is-active {
    border-color: var(--primary);
    background: rgba(3, 169, 244, 0.16);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.22);
}

.pf-theme-option__preview {
    width: 100%;
    border-radius: 0.5rem;
    padding: 0.38rem 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pf-theme-option__preview--light {
    background: #f0f5fb;
}

.pf-theme-option__preview--dark {
    background: #0d1829;
}

.pf-theme-option__preview-bar {
    height: 5px;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.55);
}

.pf-theme-option__preview-bar--short {
    width: 60%;
    background: rgba(148, 163, 184, 0.45);
}

.pf-theme-option__label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #a8c8e0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.pf-theme-option__label i {
    font-size: 0.68rem;
    color: var(--primary);
}

.pf-theme-option.is-active .pf-theme-option__label {
    color: #dff5ff;
}

/* ── Profile License Card ───────────────────────────────── */
.pf-license-card {
    margin-top: 0;
    border-radius: 1rem;
    padding: 0.88rem 0.88rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(3, 169, 244, 0.14);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pf-license-card__hero {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pf-license-card__status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.pf-license-card__status-dot--active {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
}

.pf-license-card__status-dot--inactive {
    background: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.22);
}

.pf-license-card__status-label {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    color: #ddeeff;
    line-height: 1.1;
}

.pf-license-card__status-sub {
    margin: 0.03rem 0 0;
    font-size: 0.66rem;
    font-weight: 400;
    color: var(--muted);
    opacity: 0.82;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.pf-license-card__badge {
    margin-left: auto;
    flex-shrink: 0;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.pf-license-card__progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.pf-license-card__progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    overflow: hidden;
}

.pf-license-card__progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #34d399 0%, #03a9f4 100%);
    transition: width 0.6s ease;
}

.pf-license-card__progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.63rem;
    color: var(--muted);
}

.pf-license-card__progress-remaining {
    color: var(--primary);
    font-weight: 700;
}

.pf-license-rows {
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.pf-license-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.52rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    gap: 0.5rem;
}

.pf-license-row:last-child {
    border-bottom: 0;
}

.pf-license-row dt {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
}

.pf-license-row dt i {
    color: var(--primary);
    font-size: 0.66rem;
    width: 0.9rem;
    text-align: center;
}

.pf-license-row dd {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 500;
    color: #9ab8d4;
    letter-spacing: 0.01em;
}

/* Light theme overrides */
body.theme-light .pf-theme-card,
html.theme-light-preload .pf-theme-card,
body.theme-light .pf-license-card,
html.theme-light-preload .pf-license-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(3, 169, 244, 0.2);
}

body.theme-light .pf-theme-card__title,
html.theme-light-preload .pf-theme-card__title,
body.theme-light .pf-license-card__status-label,
html.theme-light-preload .pf-license-card__status-label {
    color: #152235;
}

body.theme-light .pf-theme-option,
html.theme-light-preload .pf-theme-option {
    background: rgba(3, 169, 244, 0.06);
    border-color: rgba(3, 169, 244, 0.2);
}

body.theme-light .pf-theme-option.is-active,
html.theme-light-preload .pf-theme-option.is-active {
    background: rgba(3, 169, 244, 0.14);
}

body.theme-light .pf-theme-option__label,
html.theme-light-preload .pf-theme-option__label {
    color: #3d6583;
}

body.theme-light .pf-license-row,
html.theme-light-preload .pf-license-row {
    border-bottom-color: rgba(3, 169, 244, 0.12);
}

body.theme-light .pf-license-row dd,
html.theme-light-preload .pf-license-row dd {
    color: #4e7090;
}

/* ── Profile Settings Section (Ayarlar tab: divider + apt form) ── */
.pf-settings-section-divider {
    height: 1px;
    background: rgba(3, 169, 244, 0.12);
    margin: 1.2rem 0;
}

.pf-settings-section__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.1rem;
}

.pf-settings-section__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.12rem;
    min-width: 0;
}

.pf-accordion__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    background: transparent;
    border: 0;
    padding: 0.1rem 0;
    text-align: left;
    cursor: pointer;
}

.pf-accordion__caret {
    color: var(--muted);
    font-size: 0.72rem;
    transition: transform 0.18s ease;
}

.pf-accordion__toggle.is-open .pf-accordion__caret {
    transform: rotate(180deg);
}

.pf-accordion__body {
    margin-top: 0.3rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-3px);
    will-change: max-height, opacity, transform;
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.22s ease;
}

.pf-accordion__toggle.is-open + .pf-accordion__body {
    opacity: 1;
    transform: translateY(0);
    overflow: visible;
}

.pf-settings-section .dues-modal-select-wrap.custom-select-wrap.is-open {
    z-index: 30;
}

.pf-settings-section .dues-modal-select-wrap.custom-select-wrap .custom-select-trigger {
    padding-left: 0.85rem;
    border: 0 !important;
    box-shadow: none;
}

.pf-settings-section__icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.5rem;
    background: rgba(3, 169, 244, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--primary);
    flex-shrink: 0;
}

.pf-settings-section__title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin: 0;
}

.pf-settings-section__sub {
    font-size: 0.62rem;
    color: var(--muted);
    opacity: 0.8;
    margin: 0.02rem 0 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.pf-settings-section__sub--soft {
    font-size: 0.595rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    opacity: 0.62;
}

.pf-widget-switch-row {
    display: grid;
    grid-template-columns: 1.85rem minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.72rem;
    row-gap: 0.2rem;
    padding: 0.55rem 0;
}

.pf-widget-switch-row + .pf-widget-switch-row {
    border-top: 0;
}

.pf-widget-switch-row__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.pf-widget-switch-row__sub {
    margin: 0.12rem 0 0;
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--muted);
    opacity: 0.78;
    letter-spacing: 0.015em;
    line-height: 1.3;
    max-width: 100%;
}

.pf-widget-switch-row__badge {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.52rem;
    background: rgba(3, 169, 244, 0.12);
    border: none;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    flex-shrink: 0;
    box-shadow: none;
}

.pf-widget-switch-row__badge--marketplace {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.pf-widget-switch-row__badge--vehicles {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

.pf-widget-switch-row__badge--cargo {
    background: rgba(20, 184, 166, 0.14);
    color: #14b8a6;
}

.pf-widget-switch-row__badge--visitor {
    background: rgba(167, 139, 250, 0.14);
    color: #a78bfa;
}

.pf-widget-switch-row__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.pf-widget-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.85rem;
    align-self: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pf-widget-switch input[type='checkbox'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pf-widget-switch__slider {
    width: 2.62rem;
    height: 1.42rem;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.32);
    border: 1px solid rgba(148, 163, 184, 0.4);
    position: relative;
    transition:
        background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pf-widget-switch__slider::after {
    content: '';
    width: 1.06rem;
    height: 1.06rem;
    border-radius: 999px;
    background: #ffffff;
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.pf-widget-switch input[type='checkbox']:checked + .pf-widget-switch__slider {
    background: rgba(3, 169, 244, 0.88);
    border-color: rgba(3, 169, 244, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.pf-widget-switch input[type='checkbox']:checked + .pf-widget-switch__slider::after {
    transform: translateX(1.18rem);
    box-shadow: 0 1px 5px rgba(2, 24, 48, 0.2);
}

.pf-widget-switch input[type='checkbox']:focus-visible + .pf-widget-switch__slider {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .pf-widget-switch__slider,
    .pf-widget-switch__slider::after {
        transition-duration: 0.01ms;
    }
}

body.theme-light .pf-settings-section-divider,
html.theme-light-preload .pf-settings-section-divider {
    background: rgba(3, 169, 244, 0.14);
}

body.theme-light .pf-settings-section__title,
html.theme-light-preload .pf-settings-section__title {
    color: #152235;
}

body.theme-light .pf-settings-section__sub,
html.theme-light-preload .pf-settings-section__sub {
    color: #6a86a0;
}

body.theme-light .pf-settings-section__sub--soft,
html.theme-light-preload .pf-settings-section__sub--soft {
    color: #7f96b1;
    opacity: 0.74;
}

body.theme-light .pf-widget-switch-row__badge,
html.theme-light-preload .pf-widget-switch-row__badge {
    background: rgba(3, 169, 244, 0.1);
    border: none;
}

body.theme-light .pf-widget-switch-row__badge.pf-widget-switch-row__badge--marketplace,
html.theme-light-preload .pf-widget-switch-row__badge.pf-widget-switch-row__badge--marketplace {
    background: rgba(251, 191, 36, 0.14);
    color: #d97706;
}

body.theme-light .pf-widget-switch-row__badge.pf-widget-switch-row__badge--vehicles,
html.theme-light-preload .pf-widget-switch-row__badge.pf-widget-switch-row__badge--vehicles {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

body.theme-light .pf-widget-switch-row__badge.pf-widget-switch-row__badge--cargo,
html.theme-light-preload .pf-widget-switch-row__badge.pf-widget-switch-row__badge--cargo {
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
}

body.theme-light .pf-widget-switch-row__badge.pf-widget-switch-row__badge--visitor,
html.theme-light-preload .pf-widget-switch-row__badge.pf-widget-switch-row__badge--visitor {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

body.theme-light .pf-widget-switch-row__sub,
html.theme-light-preload .pf-widget-switch-row__sub {
    color: #6f869e;
}

body.theme-light .pf-widget-switch__slider,
html.theme-light-preload .pf-widget-switch__slider {
    background: rgba(148, 163, 184, 0.3);
    border-color: rgba(100, 116, 139, 0.32);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.theme-light .profile-card-modern__name,
html.theme-light-preload .profile-card-modern__name {
    color: #152235;
}

body.theme-light .profile-card-modern__email,
html.theme-light-preload .profile-card-modern__email {
    color: rgba(100, 130, 160, 0.65);
}

body.theme-light .profile-card-modern__role-badge,
html.theme-light-preload .profile-card-modern__role-badge {
    background: rgba(3, 169, 244, 0.1);
    border: none;
    color: rgba(2, 120, 190, 0.8);
}

body.theme-light .profile-card-modern__role-badge i,
html.theme-light-preload .profile-card-modern__role-badge i {
    color: rgba(2, 120, 190, 0.75);
}

.aidat-period-stepper {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    max-width: 16rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(3, 169, 244, 0.22);
    background: rgba(3, 169, 244, 0.06);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.aidat-period-stepper__btn {
    flex: 0 0 auto;
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding: 0 0.55rem;
    border: 0;
    background: rgba(15, 23, 42, 0.35);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease;
}

.aidat-period-stepper__btn:hover {
    background: rgba(3, 169, 244, 0.35);
    color: #ffffff;
}

.aidat-period-stepper__btn:active {
    transform: scale(0.98);
}

.aidat-period-stepper__btn:focus-visible {
    outline: 2px solid var(--primary, #03a9f4);
    outline-offset: 2px;
    z-index: 1;
}

.aidat-period-stepper__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.25);
    color: #f1f5f9;
    text-align: center;
    font-size: 1rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    padding: 0.35rem 0.25rem;
    -moz-appearance: textfield;
}

.aidat-period-stepper__input::-webkit-outer-spin-button,
.aidat-period-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.aidat-period-stepper__input::placeholder {
    color: rgba(226, 232, 240, 0.45);
    font-weight: 600;
}

.aidat-period-stepper__input:focus {
    outline: none;
    background: rgba(15, 23, 42, 0.4);
}

body.theme-light .aidat-period-stepper,
html.theme-light-preload .aidat-period-stepper {
    border-color: rgba(3, 169, 244, 0.28);
    background: rgba(3, 169, 244, 0.08);
    box-shadow: none;
}

body.theme-light .aidat-period-stepper__btn,
html.theme-light-preload .aidat-period-stepper__btn {
    background: rgba(241, 245, 249, 0.95);
    color: #0f172a;
}

body.theme-light .aidat-period-stepper__btn:hover,
html.theme-light-preload .aidat-period-stepper__btn:hover {
    background: rgba(3, 169, 244, 0.18);
    color: #0b1220;
}

body.theme-light .aidat-period-stepper__input,
html.theme-light-preload .aidat-period-stepper__input {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.35);
}

body.theme-light .aidat-period-stepper__input::placeholder,
html.theme-light-preload .aidat-period-stepper__input::placeholder {
    color: rgba(100, 116, 139, 0.55);
}

@media (max-width: 820px) {
    .dashboard-shell--requests-page .dashboard-content.dashboard-content--units-page,
    .dashboard-shell--categories-page .dashboard-content.dashboard-content--units-page {
        padding-top: 0.72rem;
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    }

    .dashboard-shell--profile-page .dashboard-content.dashboard-content--units-page {
        padding-top: 0;
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    }

    .dashboard-content.dashboard-content--units-page,
    .dashboard-content.dashboard-content--panel-page {
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* ── Browser / tablet / mobile: daima mobil kart görünümü ── */
body.has-dashboard-shell.browser-mobile-shell {
    background: #f3f4f6;
}

body.has-dashboard-shell.browser-mobile-shell .site-footer {
    display: none !important;
}

body.has-dashboard-shell.browser-mobile-shell main.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: visible;
    padding: 0.5rem;
}

body.has-dashboard-shell.browser-mobile-shell main.container::before {
    display: none !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell {
    position: relative;
    z-index: 1;
    width: clamp(390px, 92vw, 430px);
    height: calc(100vh - 1rem);
    min-height: 0;
    max-height: calc(100vh - 1rem);
    margin: 0;
    grid-template-columns: 1fr;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.14);
    background: #ffffff;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-topbar {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 60;
    margin: 0;
    border-radius: 0;
    background: #121a2d;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(1, 8, 20, 0.45);
}

body.has-dashboard-shell.browser-mobile-shell .topbar-greet-inline {
    display: inline-flex !important;
    align-items: center;
}

body.has-dashboard-shell.browser-mobile-shell .topbar-greet-meta {
    display: inline-flex !important;
}

body.has-dashboard-shell.browser-mobile-shell .topbar-greet-label,
body.has-dashboard-shell.browser-mobile-shell .topbar-greet-name {
    display: block !important;
}

body.has-dashboard-shell.browser-mobile-shell .topbar-spacer {
    flex: 1 1 auto;
}

/* Koyu zorunluluğunu kaldır: theme-light mobil kabukta topbar, sayfa banner rengiyle uyumlu */
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-topbar {
    background: #0277bd;
    border-bottom: 0;
    box-shadow: 0 8px 20px rgba(2, 19, 45, 0.24);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-topbar,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar {
    background: #043f59;
    box-shadow: none;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-topbar {
    background: #043f59;
    box-shadow: none;
    border-bottom: 0;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-topbar .topbar-greet-label,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-topbar .topbar-greet-name {
    color: rgba(240, 249, 255, 0.92);
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-topbar .header-icon-btn {
    background: rgba(255, 255, 255, 0.16);
    color: #f0f9ff;
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-topbar .topbar-greet-label,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-topbar .topbar-greet-label,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar .topbar-greet-label,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar .topbar-greet-label,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-topbar .topbar-greet-name,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-topbar .topbar-greet-name,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar .topbar-greet-name,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar .topbar-greet-name,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .topbar-greet-label,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .topbar-greet-label,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .topbar-greet-name,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .topbar-greet-name {
    color: rgba(240, 249, 255, 0.92);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .topbar-menu-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .topbar-menu-btn,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .header-icon-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .header-icon-btn {
    background: rgba(255, 255, 255, 0.16);
    color: #f0f9ff;
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .topbar-menu-btn:hover,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .topbar-menu-btn:hover,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .header-icon-btn:hover,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-topbar .header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.26);
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: var(--bg);
}

/* Mobil kabuk: kaydirma cubugu ve oklar gizli; overflow-y ile kaydirma devam eder */
body.has-dashboard-shell.browser-mobile-shell .dashboard-content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0;
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-content::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-content::-webkit-scrollbar-button,
body.has-dashboard-shell.browser-mobile-shell .dashboard-content::-webkit-scrollbar-button:start,
body.has-dashboard-shell.browser-mobile-shell .dashboard-content::-webkit-scrollbar-button:end,
body.has-dashboard-shell.browser-mobile-shell .dashboard-content::-webkit-scrollbar-button:increment,
body.has-dashboard-shell.browser-mobile-shell .dashboard-content::-webkit-scrollbar-button:decrement,
body.has-dashboard-shell.browser-mobile-shell .dashboard-content::-webkit-scrollbar-button:vertical,
body.has-dashboard-shell.browser-mobile-shell .dashboard-content::-webkit-scrollbar-button:horizontal {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-content::-webkit-scrollbar-track,
body.has-dashboard-shell.browser-mobile-shell .dashboard-content::-webkit-scrollbar-thumb,
body.has-dashboard-shell.browser-mobile-shell .dashboard-content::-webkit-scrollbar-corner {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Desktop dashboard: viewport kaydirmasi gorunmez (Win/WebKit oklari dahil) */
@media (min-width: 1024px) {
    html:has(body.has-dashboard-shell:not(.browser-mobile-shell)) {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    html:has(body.has-dashboard-shell:not(.browser-mobile-shell))::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none;
    }

    html:has(body.has-dashboard-shell:not(.browser-mobile-shell))::-webkit-scrollbar-button,
    html:has(body.has-dashboard-shell:not(.browser-mobile-shell))::-webkit-scrollbar-button:start,
    html:has(body.has-dashboard-shell:not(.browser-mobile-shell))::-webkit-scrollbar-button:end,
    html:has(body.has-dashboard-shell:not(.browser-mobile-shell))::-webkit-scrollbar-button:increment,
    html:has(body.has-dashboard-shell:not(.browser-mobile-shell))::-webkit-scrollbar-button:decrement,
    html:has(body.has-dashboard-shell:not(.browser-mobile-shell))::-webkit-scrollbar-button:vertical,
    html:has(body.has-dashboard-shell:not(.browser-mobile-shell))::-webkit-scrollbar-button:horizontal {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    body.has-dashboard-shell:not(.browser-mobile-shell) {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body.has-dashboard-shell:not(.browser-mobile-shell)::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none;
    }

    body.has-dashboard-shell:not(.browser-mobile-shell)::-webkit-scrollbar-button,
    body.has-dashboard-shell:not(.browser-mobile-shell)::-webkit-scrollbar-button:start,
    body.has-dashboard-shell:not(.browser-mobile-shell)::-webkit-scrollbar-button:end,
    body.has-dashboard-shell:not(.browser-mobile-shell)::-webkit-scrollbar-button:increment,
    body.has-dashboard-shell:not(.browser-mobile-shell)::-webkit-scrollbar-button:decrement,
    body.has-dashboard-shell:not(.browser-mobile-shell)::-webkit-scrollbar-button:vertical,
    body.has-dashboard-shell:not(.browser-mobile-shell)::-webkit-scrollbar-button:horizontal {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Scrollport = .dashboard-content (topbar dışında); sticky offset topbar tekrar eklenmez — boşluk oluşmaz */
body.has-dashboard-shell.browser-mobile-shell .units-period-banner--page-slot {
    position: sticky !important;
    top: 0 !important;
    z-index: 56 !important;
    margin-top: 0 !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-content--units-page > .units-period-banner--page-slot {
    margin-top: 0 !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-content.dashboard-content--units-page {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    gap: 0.62rem;
    align-content: start;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-content--units-page > *:not(.units-period-banner--page-slot):not(.due-receipt-action-sheet):not(.unit-card-sheet):not(.support-detail-page):not(.req-detail-page) {
    margin-left: 0.85rem;
    margin-right: 0.85rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-content--req-detail-v2 > .support-detail-page {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Segmented (pil) kontrol: yan margin ile blok ortalanmıyordu; anket / ziyaretçi kabukta gerçek orta */
body.has-dashboard-shell.browser-mobile-shell .dashboard-content--units-page > .visitor-view-pills {
    margin-left: auto !important;
    margin-right: auto !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-content.dashboard-content--panel-page {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    row-gap: 0.62rem;
    align-content: start;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .dashboard-content--panel-page > *:not(.panel-overview-card--banner-slot) {
    margin-left: 0.85rem;
    margin-right: 0.85rem;
}

/* SPA veya daha sonra gelen kurallarin padding-top ile navbar altinda beyaz bosluk birakmasini engelle (turbo-frame li / li olmayan sayfalar) */
body.has-dashboard-shell.browser-mobile-shell .dashboard-main .dashboard-content.dashboard-content--units-page,
body.has-dashboard-shell.browser-mobile-shell .dashboard-main .dashboard-content.dashboard-content--panel-page {
    padding-top: 0 !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-main .dashboard-content--units-page > .units-period-banner--page-slot,
body.has-dashboard-shell.browser-mobile-shell .dashboard-main .dashboard-content--panel-page > .panel-overview-card--banner-slot {
    margin-top: 0 !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-main .dashboard-content--panel-page > .panel-overview-card--banner-slot {
    margin-bottom: 0 !important;
}

/* Kategoriler Turbo çerçevesi: scroll alanı navbara yapışık başlar (metin düğümü :first-child’ı bozar) */
body.has-dashboard-shell.browser-mobile-shell .dashboard-main > turbo-frame > .dashboard-content.dashboard-content--units-page {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.has-dashboard-shell.browser-mobile-shell .panel-overview-card--banner-slot {
    position: sticky;
    top: 0;
    z-index: 56;
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    background: #043f59;
    box-shadow: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav {
    position: absolute;
    left: max(0.85rem, env(safe-area-inset-left, 0px));
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(0) scale(1);
    width: auto;
    border-radius: 999px;
    z-index: 120;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 16, 32, 0.92);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    box-shadow: 0 10px 32px rgba(2, 8, 22, 0.38);
    padding: 0.35rem 0.45rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    overflow: visible;
    opacity: 1;
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.32s ease,
        padding 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav.is-collapsed {
    transform: translateY(0) scale(0.88);
    transform-origin: center bottom;
    opacity: 0.94;
    padding: 0.22rem 0.38rem calc(0.22rem + env(safe-area-inset-bottom, 0px));
    pointer-events: auto;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__item {
    min-height: 46px;
    gap: 0;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__item > span:not(.mobile-bottom-nav__icon-wrap) {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    transform: translateY(4px);
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__center-wrap {
    margin-top: -10px;
    min-height: 46px;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__item--center {
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    box-shadow: none;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav.is-collapsed .mobile-bottom-nav__item.is-active::before {
    width: 16px;
    height: 2px;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item > span:not(.mobile-bottom-nav__icon-wrap) {
    transition:
        opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        max-height 0.38s ease,
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item {
    position: relative;
    display: inline-flex;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.26rem;
    overflow: visible;
    color: rgba(160, 190, 220, 0.55);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item i {
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item.is-active {
    color: var(--primary);
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item.is-active i {
    color: var(--primary);
    transform: translateY(-1px);
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 22px;
    height: 2.5px;
    border-radius: 0 0 3px 3px;
    background: var(--primary);
    transform: translateX(-50%);
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__center-wrap {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-top: -18px;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item--center {
    position: relative;
    width: 52px;
    height: 52px;
    min-height: unset;
    gap: 0;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--primary-gradient, linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%));
    box-shadow:
        0 0 0 4px rgba(11, 18, 32, 0.94),
        0 6px 20px rgba(3, 169, 244, 0.45);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item--center span {
    display: none;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item--center::before {
    display: none !important;
}

body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item--center i,
body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item--center.is-active i {
    color: #fff;
    font-size: 1.2rem;
    transform: none;
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item {
    color: rgba(70, 100, 130, 0.5);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item.is-active,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item.is-active {
    color: var(--primary);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item--center,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav__item--center {
    box-shadow:
        0 0 0 4px #ffffff,
        0 6px 20px rgba(3, 169, 244, 0.35);
}

/* Tam ekran telefon kapsuli (768px ustu): tablet genisligi, asiri uzun ince kolon degil */
@media (min-width: 769px) {
    body.has-dashboard-shell.browser-mobile-shell main.container {
        min-height: 100svh;
        height: auto;
        max-height: none;
        padding: clamp(0.71rem, 2.09vmin, 1.425rem);
        align-items: center;
        box-sizing: border-box;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell {
        width: min(760px, calc(100vw - 1.05rem));
        height: min(826px, calc(100svh - 2.375rem));
        max-height: calc(100svh - 1.9rem);
    }

    body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav {
        width: auto;
        left: max(0.85rem, env(safe-area-inset-left, 0px));
        right: max(0.85rem, env(safe-area-inset-right, 0px));
    }
}

/* Gerçek mobil cihazlarda container kapsülünü kapat:
   tam ekran native hissi korunur, beyaz kart çerçevesi görünmez. */
@media (max-width: 768px) {
    body.has-dashboard-shell.browser-mobile-shell {
        background: var(--bg);
    }

    body.has-dashboard-shell.browser-mobile-shell main.container {
        display: block;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 0;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell {
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }

    body.has-dashboard-shell.browser-mobile-shell .mobile-bottom-nav {
        position: fixed;
        left: max(0.85rem, env(safe-area-inset-left, 0px));
        right: max(0.85rem, env(safe-area-inset-right, 0px));
        bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
        width: auto;
        border-radius: 999px;
    }
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-hero.units-page-hero-desktop {
    display: none !important;
}

body.has-dashboard-shell.browser-mobile-shell .units-period-banner--page-slot {
    display: block !important;
    width: 100%;
    grid-column: 1 / -1;
}

body.has-dashboard-shell.browser-mobile-shell:not(.theme-light) .units-period-banner--page-slot,
html:not(.theme-light-preload) body.has-dashboard-shell.browser-mobile-shell .units-period-banner--page-slot {
    background-color: #0d1526;
    background: var(--mobile-page-banner-gradient-dark);
    border-color: rgba(3, 169, 244, 0.24);
    border-top: 0;
    box-shadow: 0 14px 38px rgba(1, 10, 22, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: rgba(229, 237, 247, 0.94);
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar,
html body.has-dashboard-shell.browser-mobile-shell .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar {
    border-bottom: 0;
}

body.has-dashboard-shell.browser-mobile-shell:not(.theme-light) .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar,
html:not(.theme-light-preload) body.has-dashboard-shell.browser-mobile-shell .dashboard-main:has(.units-period-banner--page-slot) .dashboard-topbar {
    background: var(--mobile-page-banner-top-dark);
    box-shadow: none;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar {
    background: #043f59;
    box-shadow: none;
    border-bottom: 0;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-main:has(.units-period-banner--page-slot) .units-period-banner--page-slot {
    margin-top: 0;
    border-top: 0;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-radius: 0 0 0.88rem 0.88rem;
}

body.has-dashboard-shell.browser-mobile-shell .units-period-banner--embedded {
    display: none !important;
}

body.has-dashboard-shell.browser-mobile-shell .units-page-embed-banner-wrap {
    display: none !important;
}

/* Desktop kapsül: tüm iç sayfa bannerları gerçek mobildeki gibi üstten düz başlar. */
body.has-dashboard-shell.browser-mobile-shell .units-period-banner--page-slot,
body.has-dashboard-shell.browser-mobile-shell .panel-overview-card--banner-slot {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-top: 0 !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .units-period-banner--page-slot,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--units-page .units-period-banner--page-slot {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: var(--mobile-top-shadow, 0 10px 24px rgba(2, 19, 45, 0.24));
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stats-row {
    margin-top: 0.62rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stats-row--single {
    grid-template-columns: 1fr;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stat {
    position: relative;
    border-radius: 0.62rem;
    min-height: 74px;
    padding: 0.62rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stat-body {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    width: 100%;
    line-height: 1;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stat-label,
body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stat-value {
    display: block;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stat-label {
    color: rgba(227, 241, 255, 0.88);
    font-size: 0.62rem;
    line-height: 1.2;
    width: 100%;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stat-value {
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stat-icon {
    flex: 0 0 auto;
    width: 1rem;
    text-align: center;
    line-height: 1;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__status-strip {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__status-strip::-webkit-scrollbar {
    display: none;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stat-meta-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1.2;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stat-meta-line--open {
    background: rgba(74, 222, 128, 0.16);
    color: #4ade80;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stat-meta-line--pending {
    background: rgba(251, 113, 133, 0.16);
    color: #fb7185;
}

body.has-dashboard-shell.browser-mobile-shell .panel-mobile-header__stat-meta-line--closed {
    background: rgba(156, 163, 175, 0.18);
    color: #cbd5e1;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--units-page .panel-mobile-header__status-strip {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 0.48rem;
    margin-bottom: 0.42rem;
    padding-bottom: 0;
    overflow: visible;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--units-page .panel-mobile-header__stat-meta-line {
    width: 100%;
    min-height: 2.25rem;
    border-radius: 0.62rem;
    font-size: 0.7rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--units-page .panel-mobile-header__stat-meta-line i {
    font-size: 0.82rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--units-page .panel-mobile-header__stat-meta-line--pending {
    background: rgba(231, 244, 255, 0.16);
    color: #ffffff;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--units-page .panel-mobile-header__stat-meta-line--pending i {
    color: #ffffff;
}

body.theme-light .dashboard-shell--units-page .panel-mobile-header__stat-meta-line--pending,
html.theme-light-preload body .dashboard-shell--units-page .panel-mobile-header__stat-meta-line--pending {
    background: rgba(231, 244, 255, 0.16);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.theme-light .dashboard-shell--units-page .panel-mobile-header__stat-meta-line--pending i,
html.theme-light-preload body .dashboard-shell--units-page .panel-mobile-header__stat-meta-line--pending i {
    color: #ffffff;
}

.dashboard-shell--unit-payments-page .panel-mobile-header__stat-meta-line--pending {
    background: rgba(254, 226, 226, 0.96);
    color: #991b1b;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.dashboard-shell--unit-payments-page .panel-mobile-header__stat-meta-line--pending i {
    color: #b91c1c;
}

.dashboard-shell--unit-payments-page .panel-mobile-header__stat-meta-line--open {
    background: rgba(220, 252, 231, 0.96);
    color: #166534;
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.16);
}

.dashboard-shell--unit-payments-page .panel-mobile-header__stat-meta-line--open i {
    color: #15803d;
}

body.has-dashboard-shell.browser-mobile-shell .units-period-banner--page-slot .units-period-banner__toolbar {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 0.42rem;
}

body.has-dashboard-shell.browser-mobile-shell .units-period-banner--page-slot .units-period-banner__extras {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
}

/* Desktop kapsül profil: kart ve tab kontrolü kapsül genişliğine göre ortalanır. */
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .profile-page-content {
    align-items: center;
    justify-content: flex-start;
    padding-top: 0 !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .profile-card-modern,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .profile-info-card,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .profile-license-summary-card,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .profile-listings-card {
    width: min(500px, calc(100% - 1.7rem));
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .firm-cards,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .req-cards {
    width: calc(100% - 1.7rem);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .profile-card-modern {
    box-sizing: border-box;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .profile-card-modern__form > .grid {
    grid-template-columns: 1fr !important;
}

/* Desktop kapsül daireler: masaüstü tablo yerine mobil kart listesi kullanılır. */
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--units-page .units-page-list-wrap {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--units-page .units-list-desktop {
    display: none !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--units-page .units-list-mobile.unit-pay-cards-root {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.76rem;
}

/* Desktop kapsül pazar: kartlar mobil ölçeğe yakın, görseller daha kompakt. */
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listings-page .payments-feed-cards[data-listings-grid='true'] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.62rem !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listings-page .listing-card-item.hub-payments-card-item {
    padding: 0.52rem 0.58rem !important;
    gap: 0.32rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listings-page .listing-card-item__img-wrap {
    max-height: 7.65rem;
    margin-bottom: 0.28rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listings-page .listing-card-item__img {
    height: 7.65rem;
    max-height: 7.65rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listings-page .hub-payments-card-item__title {
    font-size: 0.82rem;
    line-height: 1.28;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listings-page .hub-payments-card-item__amount {
    font-size: 0.86rem;
}

body.has-dashboard-shell.browser-mobile-shell .panel-feature-cards-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
}

/* ── Panel (kapsül): örnek arayuz — hero gizli, finans+hizli yan yana (genis ekranda), quick 5 kolon ── */
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-hero-modern {
    display: none !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-home-kpi-strip {
    margin-top: 0.55rem;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.62rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-home-kpi-strip,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-scope-kpi-grid,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-marketplace-section,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-notices-section,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-surveys-section {
    width: calc(100% - 1.7rem) !important;
    max-width: calc(100% - 1.7rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-home-kpi-strip .panel-finance-card,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-home-kpi-strip .panel-kasa-quick-card {
    margin-top: 0;
}

@media (min-width: 769px) {
    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-kasa-quick-actions-wrap {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        column-gap: 0.28rem;
        row-gap: 0.82rem;
        margin-top: 1rem;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-marketplace-hub {
        width: min(430px, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-marketplace-hub__grid {
        gap: 0.38rem;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-marketplace-hub__swiper.panel-hub-swiper .swiper-wrapper {
        gap: 0.38rem;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-marketplace-hub__swiper.panel-hub-swiper .swiper-slide {
        flex-basis: calc((100% - 0.38rem) / 2);
        width: calc((100% - 0.38rem) / 2);
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-marketplace-hub__swiper.panel-hub-swiper.swiper-initialized .swiper-wrapper {
        gap: 0;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-marketplace-hub .panel-hub-card {
        border-radius: 0.76rem;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-marketplace-hub .panel-hub-card__footer {
        padding: 0.34rem 0.42rem 0.42rem;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-marketplace-hub .panel-hub-card__title {
        font-size: 0.66rem;
        line-height: 1.22;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-marketplace-hub .panel-hub-card__meta {
        margin-top: 0.18rem;
        font-size: 0.62rem;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-marketplace-hub .panel-hub-card__listing-badge {
        padding-top: 0.34rem;
        padding-bottom: 0.5rem;
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 768px) {
    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-kasa-quick-actions-wrap {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-kasa-quick-actions-wrap .panel-kasa-quick-action__surface {
    width: clamp(2.7rem, 9vw, 3.18rem);
    min-height: 2.62rem;
    padding: 0.32rem 0.38rem;
    border-radius: 14px;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-kasa-quick-actions-wrap .panel-kasa-quick-action__badge i {
    font-size: 0.82rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-kasa-quick-actions-wrap .panel-kasa-quick-action__text {
    font-size: 0.55rem;
    letter-spacing: 0.045em;
}

@media (min-width: 769px) {
    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-home-kpi-strip--has-finance {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 0.62rem;
        align-items: stretch;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--panel-home .panel-home-kpi-strip--has-finance .dashboard-card {
        margin-top: 0;
        width: 100%;
    }
}

body.has-dashboard-shell.browser-mobile-shell .panel-overview-card__resident-balance-amount {
    font-size: 1.28rem;
    letter-spacing: 0.02em;
}

body.has-dashboard-shell.browser-mobile-shell .panel-overview-card__resident-unit {
    font-size: 0.84rem;
}

@media (max-width: 600px) {
    .profile-card-modern {
        max-width: 100%;
        border-radius: 1rem;
        padding: 1.1rem 1rem 1.1rem;
    }

    .profile-card-modern__head {
        margin-bottom: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .profile-page-content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        gap: 0.65rem;
    }

    .profile-shortcuts-grid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        gap: 0.5rem;
    }

    .profile-shortcuts-card {
        padding: 0.8rem 0.7rem;
    }

    .profile-card-modern__role-badge {
        font-size: 0.57rem;
        padding: 0.11rem 0.38rem;
        margin: 0 0 0.72rem;
    }

    .profile-card-modern__name {
        font-size: 0.92rem;
        margin: 0;
    }

    .profile-card-modern__email {
        font-size: 0.545rem;
        letter-spacing: 0.05em;
        margin-top: -0.48rem;
    }

}

.topbar-greet-inline .user-avatar,
.topbar-avatar-inline .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.66rem;
    border: 0;
    background: linear-gradient(145deg, #1fb4ef 0%, #03a9f4 55%, #0280c0 100%);
    box-shadow: 0 2px 8px rgba(3, 169, 244, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Üst navbar kullanıcı dropdown avatar — soft primary gradient */
.topbar-user-btn > .user-avatar {
    background: linear-gradient(145deg, #1fb4ef 0%, #03a9f4 55%, #0280c0 100%);
    box-shadow: 0 2px 8px rgba(3, 169, 244, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.topbar-user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-right: 0.9rem;
    min-width: 0;
    flex-shrink: 0;
}

/* Desktop: tema | bildirim | kullanıcı */
.topbar-user-dropdown .desktop-theme-toggle {
    order: 1;
}

.topbar-user-dropdown .topbar-notification-btn {
    order: 1;
}

.topbar-user-dropdown .topbar-logout-btn {
    order: 2;
}

.topbar-notification-btn {
    position: relative;
}

.topbar-notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(145deg, #fb7185 0%, #e11d48 100%);
    color: #ffffff;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
    letter-spacing: -0.01em;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.42);
    border: none;
}

body.theme-light .topbar-notification-badge,
html.theme-light-preload .topbar-notification-badge {
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.38);
}

.topbar-notification-drawer {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 9250;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    pointer-events: none;
    visibility: hidden;
}

.topbar-notification-drawer.is-open,
.topbar-notification-drawer.is-closing {
    visibility: visible;
}

.topbar-notification-drawer.is-open {
    pointer-events: auto;
}

.topbar-notification-drawer.is-closing {
    pointer-events: none;
}

.topbar-notification-drawer__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: rgba(5, 10, 20, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-notification-drawer.is-open .topbar-notification-drawer__backdrop,
.topbar-notification-drawer.is-closing .topbar-notification-drawer__backdrop {
    opacity: 1;
}

.topbar-notification-drawer.is-closing .topbar-notification-drawer__backdrop {
    opacity: 0;
}

.topbar-notification-drawer__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    height: 100%;
    min-height: 100%;
    background: linear-gradient(180deg, #0f1728 0%, #0a1220 100%);
    border-left: 1px solid rgba(3, 169, 244, 0.16);
    box-shadow: -18px 0 48px rgba(1, 8, 20, 0.48);
    transform: translateX(104%);
    transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.topbar-notification-drawer.is-open .topbar-notification-drawer__panel {
    transform: translateX(0);
}

.topbar-notification-drawer__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 1rem 1rem 0.55rem;
}

.topbar-notification-drawer__toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem 0.72rem;
    border-bottom: 1px solid rgba(3, 169, 244, 0.14);
}

.topbar-notification-drawer__title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.topbar-notification-drawer__title-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 169, 244, 0.16);
    color: #38bdf8;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.topbar-notification-drawer__title-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: #eef6ff;
    letter-spacing: 0.01em;
}

.topbar-notification-drawer__head-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.topbar-notification-drawer__read-all {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border: 0;
    border-radius: 999px;
    padding: 0.38rem 0.82rem;
    font-size: 0.72rem;
    font-weight: 650;
    color: #7dd3fc;
    background: rgba(3, 169, 244, 0.14);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.topbar-notification-drawer__read-all i {
    font-size: 0.78rem;
}

.topbar-notification-drawer__delete-all {
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    border: 0;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.topbar-notification-drawer__delete-all:hover {
    background: rgba(239, 68, 68, 0.28);
    color: #fecaca;
}

.topbar-notification-drawer__delete-all:focus-visible {
    outline: 2px solid #f87171;
    outline-offset: 2px;
}

.topbar-notification-drawer__read-all:hover {
    background: rgba(3, 169, 244, 0.24);
    color: #e0f2fe;
}

.topbar-notification-drawer__read-all:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.topbar-notification-drawer__close {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.topbar-notification-drawer__close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
}

.topbar-notification-drawer__close:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.topbar-notification-drawer__search-wrap {
    flex-shrink: 0;
    padding: 0.72rem 1rem 0.65rem;
}

.topbar-notification-drawer__search-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.75rem;
    border-radius: 0.72rem;
    background: rgba(2, 16, 32, 0.88);
    color: #64748b;
}

.topbar-notification-drawer__search-label:focus-within {
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.12);
}

.topbar-notification-drawer__search {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    font-size: 0.8rem;
    outline: none;
}

.topbar-notification-drawer__search::placeholder {
    color: #64748b;
}

.topbar-notification-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.35rem 1rem 1rem;
    -webkit-overflow-scrolling: touch;
}

body.topbar-notification-open {
    overflow: hidden;
}

.topbar-notification-dropdown__count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #e11d48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.topbar-notification-dropdown__empty,
.topbar-notification-dropdown__hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.46;
    color: #9fb0c8;
}

.topbar-notification-btn--has-notes:focus-visible {
    outline-offset: 2px;
}

body.theme-light .topbar-notification-drawer__panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-left-color: rgba(3, 169, 244, 0.18);
    box-shadow: -18px 0 40px rgba(24, 60, 112, 0.14);
}

body.theme-light .topbar-notification-drawer__head {
    border-bottom-color: rgba(3, 169, 244, 0.12);
}

body.theme-light .topbar-notification-drawer__toolbar {
    border-bottom-color: rgba(3, 169, 244, 0.12);
}

body.theme-light .topbar-notification-drawer__delete-all {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

body.theme-light .topbar-notification-drawer__delete-all:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

body.theme-light .topbar-notification-drawer__title-text {
    color: #152235;
}

body.theme-light .topbar-notification-drawer__search-label {
    background: #f1f5f9;
    color: #64748b;
}

body.theme-light .topbar-notification-drawer__search {
    color: #152235;
}

body.theme-light .topbar-notification-dropdown__empty,
body.theme-light .topbar-notification-dropdown__hint {
    color: #5f738d;
}

.topbar-notification-badge[hidden] {
    display: none !important;
}

.topbar-notification-dropdown__count[hidden] {
    display: none !important;
}

.topbar-notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.topbar-notification-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.55rem 1.65rem 0.55rem 0.62rem;
    border-radius: 0.62rem;
    border: 1px solid rgba(3, 169, 244, 0.22);
    background: rgba(3, 169, 244, 0.08);
}

.topbar-notification-item.is-unread {
    border-color: rgba(3, 169, 244, 0.42);
    background: rgba(3, 169, 244, 0.13);
}

.topbar-notification-item__avatar {
    flex: 0 0 auto;
    width: 2.38rem;
    height: 2.38rem;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(3, 169, 244, 0.28);
    background: rgba(3, 169, 244, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.topbar-notification-item__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topbar-notification-item__avatar-fallback {
    font-size: 0.72rem;
    font-weight: 700;
    color: #eaf4ff;
    letter-spacing: 0.02em;
    line-height: 1;
}

.topbar-notification-item__avatar-kind {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.88rem;
    border-radius: inherit;
}

.topbar-notification-item__text {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}

.topbar-notification-item__person {
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
    margin-bottom: 0.06rem;
}

.topbar-notification-item__name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #eaf4ff;
    line-height: 1.25;
}

.topbar-notification-item__email {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(182, 212, 240, 0.88);
    line-height: 1.3;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-notification-item__email:hover {
    color: #ffffff;
    text-decoration: underline;
}

.topbar-notification-item__email:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 0.2rem;
}

.topbar-notification-item__email--muted {
    color: rgba(148, 176, 210, 0.55);
    text-decoration: none;
    pointer-events: none;
}

.topbar-notification-item__title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #eaf4ff;
    line-height: 1.35;
}

.topbar-notification-item__body {
    display: block;
    margin-top: 0.04rem;
    font-size: 0.74rem;
    color: #b6c4da;
    line-height: 1.45;
}

.topbar-notification-item__time {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.66rem;
    color: #7f93ad;
}

.topbar-notification-item__status-dot {
    flex: 0 0 auto;
    align-self: center;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

.topbar-notification-item:not(.is-unread) .topbar-notification-item__status-dot {
    display: none;
}

body.theme-light .topbar-notification-item__status-dot {
    background: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

body.theme-light .topbar-notification-item {
    background: rgba(3, 169, 244, 0.07);
    border-color: rgba(3, 169, 244, 0.2);
}

body.theme-light .topbar-notification-item.is-unread {
    background: rgba(3, 169, 244, 0.11);
    border-color: rgba(3, 169, 244, 0.32);
}

body.theme-light .topbar-notification-item__avatar {
    border-color: rgba(3, 169, 244, 0.22);
    background: rgba(3, 169, 244, 0.1);
}

body.theme-light .topbar-notification-item__avatar-fallback {
    color: #0c4a6e;
}

body.theme-light .topbar-notification-item__name,
body.theme-light .topbar-notification-item__title {
    color: #152235;
}

body.theme-light .topbar-notification-item__email {
    color: #5f738d;
}

body.theme-light .topbar-notification-item__email:hover {
    color: var(--primary);
}

body.theme-light .topbar-notification-item__email--muted {
    color: #94a3b8;
}

body.theme-light .topbar-notification-item__body {
    color: #5f738d;
}

body.theme-light .topbar-notification-item__time {
    color: #94a3b8;
}

html.theme-light-preload .topbar-notification-item {
    background: rgba(3, 169, 244, 0.07);
    border-color: rgba(3, 169, 244, 0.2);
}

html.theme-light-preload .topbar-notification-item.is-unread {
    background: rgba(3, 169, 244, 0.11);
    border-color: rgba(3, 169, 244, 0.32);
}

html.theme-light-preload .topbar-notification-item__avatar {
    border-color: rgba(3, 169, 244, 0.22);
    background: rgba(3, 169, 244, 0.1);
}

html.theme-light-preload .topbar-notification-item__avatar-fallback {
    color: #0c4a6e;
}

html.theme-light-preload .topbar-notification-item__name,
html.theme-light-preload .topbar-notification-item__title {
    color: #152235;
}

html.theme-light-preload .topbar-notification-item__email {
    color: #5f738d;
}

html.theme-light-preload .topbar-notification-item__body {
    color: #5f738d;
}

html.theme-light-preload .topbar-notification-item__time {
    color: #94a3b8;
}

.header-icon-btn {
    border: 0;
    background: rgba(3, 169, 244, 0.18);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-icon-btn:hover {
    background: rgba(3, 169, 244, 0.28);
    transform: translateY(-1px);
}

.theme-toggle-btn i {
    transition: color 0.2s ease;
}

body.theme-light .theme-toggle-btn .fa-sun {
    color: #facc15;
}

.theme-toggle-btn:hover .fa-sun {
    color: #facc15;
}

.theme-toggle-btn:hover .fa-moon {
    color: var(--primary);
}

.topbar-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.8rem;
    border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border));
    background: color-mix(in srgb, var(--surface) 86%, #1a2338 14%);
    color: #eef6ff;
    height: 38px;
    padding: 0 0.74rem 0 0.42rem;
    font-size: 0.79rem;
    cursor: pointer;
    min-width: 0;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.topbar-user-btn:hover {
    border-color: color-mix(in srgb, var(--primary) 46%, var(--border));
    background: color-mix(in srgb, var(--surface) 80%, #1d2a44 20%);
}

.topbar-user-dropdown.is-open .topbar-user-btn {
    border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.18);
}

.topbar-user-dropdown:hover .topbar-user-btn {
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.14), 0 6px 16px rgba(3, 169, 244, 0.18);
}

.user-avatar {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--primary-gradient);
    color: #dff5ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.60rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 0;
}

/* Yüklü profil fotoğrafı — topbar avatarı */
.user-avatar__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}
.topbar-user-menu-avatar__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}

.status-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    border: 2.5px solid #111a2e;
}

.desktop-user-name {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 0.8rem;
    color: #f2f8ff;
    opacity: 0.82;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.topbar-user-dropdown:hover .desktop-user-name {
    opacity: 1;
}

.topbar-logout-btn {
    color: var(--primary);
    text-decoration: none;
}

.topbar-logout-btn:hover {
    color: var(--primary);
}

.user-chevron {
    transition: transform 0.22s ease;
    color: #9fd4ed;
    font-size: 0.72rem;
}

.topbar-user-dropdown.is-open .user-chevron {
    transform: rotate(180deg);
}

.topbar-user-menu {
    position: absolute;
    right: 0.15rem;
    top: calc(100% + 0.45rem);
    width: 290px;
    min-width: 290px;
    background: rgba(13, 23, 41, 0.98);
    border: 0;
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 20px 44px rgba(1, 10, 20, 0.52), 0 6px 18px rgba(1, 10, 20, 0.35);
    z-index: 40;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: grid;
    gap: 0;
    overflow: hidden;
    isolation: isolate;
}

.topbar-user-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(3, 169, 244, 0.08), rgba(3, 169, 244, 0.3));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.topbar-user-menu-head {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(3, 169, 244, 0.18);
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.16), rgba(3, 169, 244, 0.05));
    padding: 0.72rem 0.72rem 0.62rem;
}

.topbar-user-menu-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48apx;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.topbar-user-menu-head-info {
    min-width: 0;
    flex: 1;
}

.topbar-user-menu-name {
    font-size: 0.79rem;
    font-weight: 700;
    color: #f3f9ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-user-menu-email {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    color: #9fb9d3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-user-menu-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.35rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--primary-border);
    background: var(--primary-soft);
    color: #cfeeff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    width: fit-content;
}

.topbar-user-menu-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.topbar-user-dropdown.is-open .topbar-user-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

body.theme-light .topbar-user-menu {
    background: #ffffff;
    border: 0;
    box-shadow: 0 16px 30px rgba(21, 34, 53, 0.16);
}

body.theme-light .topbar-user-menu::before {
    background: linear-gradient(180deg, rgba(3, 169, 244, 0.06), rgba(3, 169, 244, 0.22));
}

body.theme-light .topbar-user-menu-head {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.14), rgba(3, 169, 244, 0.05));
    border-bottom-color: rgba(3, 169, 244, 0.16);
}

body.theme-light .topbar-user-menu-avatar {
    color: #ffffff;
}

body.theme-light .topbar-user-menu-name {
    color: #152235;
}

body.theme-light .topbar-user-menu-email {
    color: #5f738d;
}

body.theme-light .topbar-user-menu-badge {
    color: #0b5f84;
}

body.theme-light .user-menu-link {
    background: #f3f8fd;
    color: #152235;
}

body.theme-light .user-menu-link:hover {
    background: rgba(3, 169, 244, 0.12);
}

body.theme-light .user-menu-logout {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.16), rgba(248, 113, 113, 0.08));
    color: #152235;
}

body.theme-light .user-menu-logout:hover {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.24), rgba(248, 113, 113, 0.14));
}

.admin-mobile-dropdown {
    display: none;
}

.user-menu-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.12), rgba(3, 169, 244, 0.04));
    color: #ffffff;
    border-radius: 0 0 0.95rem 0.95rem;
    padding: 0.52rem 0.68rem;
    font-size: 0.79rem;
    font-weight: 600;
    transition: background 0.2s ease;
    min-height: 38px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.user-menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: #121b2d;
    color: #ffffff;
    border-radius: 0;
    padding: 0.52rem 0.68rem;
    font-size: 0.79rem;
    font-weight: 600;
    transition: background 0.2s ease, border-radius 0.2s ease;
    min-height: 36px;
    margin-left: 0.32rem;
    margin-right: 0.32rem;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.user-menu-link i {
    width: 1.45rem;
    min-width: 1.45rem;
    height: 1.45rem;
    text-align: center;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.42rem;
    background: rgba(255, 255, 255, 0.05);
}

.user-menu-link:hover {
    background: rgba(3, 169, 244, 0.22);
    border-radius: 0.58rem;
}

.topbar-user-menu .user-menu-link + .user-menu-link {
    position: relative;
}

.topbar-user-menu .user-menu-link + .user-menu-link::before {
    content: "";
    position: absolute;
    top: -0.2rem;
    left: 0.68rem;
    right: 0.68rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(3, 169, 244, 0.24), transparent);
}

.user-menu-divider {
    height: 1px;
    background: rgba(3, 169, 244, 0.16);
    margin: 0.2rem 0 0.15rem;
}

.topbar-user-menu-bottom {
    margin-top: 0.2rem;
    border-top: 1px solid rgba(3, 169, 244, 0.16);
    display: block;
    padding: 0;
}

.user-menu-logout span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.user-menu-theme {
    display: none;
    align-items: center;
    gap: 0.55rem;
    border: none;
    background: #223048;
    color: #ffffff;
    border-radius: 0;
    padding: 0.52rem 0.68rem;
    font-size: 0.79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-menu-theme:hover {
    background: rgba(3, 169, 244, 0.22);
}

.user-menu-logout i {
    color: #f87171;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    min-width: 1.45rem;
    height: 1.45rem;
    border-radius: 0.42rem;
    background: rgba(248, 113, 113, 0.14);
}

body.theme-light .user-menu-link i {
    background: rgba(3, 169, 244, 0.12);
}

.user-menu-logout:hover {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.24), rgba(248, 113, 113, 0.12));
}

body:not(.theme-light) .user-menu-logout {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.1), rgba(3, 169, 244, 0.03));
}

.admin-mobile-dropdown__head {
    display: flex;
    align-items: flex-start;
    padding: 0.62rem 0.68rem 0.58rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(3, 169, 244, 0.16);
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.14), rgba(3, 169, 244, 0.05));
}

.admin-mobile-dropdown__user {
    min-width: 0;
    flex: 1;
}

.admin-user-dropdown__avatar {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--primary-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.admin-mobile-dropdown__name {
    font-size: 0.83rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-mobile-dropdown__email {
    margin-top: 0.16rem;
    font-size: 0.68rem;
    color: #9fb9d3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-mobile-dropdown__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.32rem;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
    border: 1px solid var(--primary-border);
    background: var(--primary-soft);
    color: #cfeeff;
    font-size: 0.62rem;
    font-weight: 700;
    width: fit-content;
}

.admin-mobile-dropdown__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.admin-mobile-menu-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.28rem;
}

.admin-mobile-menu-item {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    border: 0;
    border-radius: 0.58rem;
    background: #223048;
    color: #fff;
    padding: 0.52rem 0.68rem;
    font-size: 0.79rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 0;
    height: 36px;
    box-sizing: border-box;
    overflow: hidden;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-mobile-menu-item > span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-mobile-menu-item i {
    width: 14px;
    min-width: 14px;
    text-align: center;
    flex-shrink: 0;
    color: var(--primary);
}

.admin-mobile-menu-theme {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) 110px;
    column-gap: 0.55rem;
    align-items: center;
}

.admin-theme-toggle__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: inherit;
    font-weight: inherit;
}

.admin-theme-toggle__control {
    display: grid;
    grid-template-columns: 34px 38px 34px;
    column-gap: 0.4rem;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    padding-inline: 0.12rem;
    justify-self: end;
}

.admin-theme-toggle__mode {
    font-size: 0.64rem;
    color: #9fb0c8;
    font-weight: 600;
    width: 34px;
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.admin-theme-toggle__mode--light {
    color: var(--primary);
    opacity: 1;
}

body.theme-light .admin-theme-toggle__mode--light {
    color: #9fb0c8;
    opacity: 0.72;
}

body.theme-light .admin-theme-toggle__mode--dark {
    color: var(--primary);
    opacity: 1;
}

body:not(.theme-light) .admin-theme-toggle__mode--dark {
    opacity: 0.72;
}

.admin-theme-toggle__track {
    width: 38px;
    height: 18px;
    border-radius: 999px;
    background: rgba(159, 176, 200, 0.28);
    position: relative;
    justify-self: center;
}

.admin-theme-toggle__knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.26);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.admin-theme-toggle__knob-icon {
    position: absolute;
    font-size: 0.52rem;
    line-height: 1;
}

.admin-theme-toggle__knob-icon--light {
    opacity: 1;
}

.admin-theme-toggle__knob-icon--dark {
    opacity: 0;
}

body.theme-light .admin-theme-toggle__knob {
    transform: translateX(0);
    color: #facc15;
}

body:not(.theme-light) .admin-theme-toggle__knob {
    transform: translateX(20px);
    color: var(--primary);
}

body.theme-light .admin-theme-toggle__knob-icon--light {
    opacity: 1;
}

body.theme-light .admin-theme-toggle__knob-icon--dark {
    opacity: 0;
}

body:not(.theme-light) .admin-theme-toggle__knob-icon--light {
    opacity: 0;
}

body:not(.theme-light) .admin-theme-toggle__knob-icon--dark {
    opacity: 1;
}

.admin-mobile-menu-divider {
    height: 1px;
    background: rgba(3, 169, 244, 0.18);
    margin: 0.2rem 0 0.15rem;
}

.admin-mobile-menu-item:hover {
    background: rgba(3, 169, 244, 0.18);
}

.admin-mobile-menu-item:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.55);
    outline-offset: 1px;
}

.admin-mobile-menu-item--logout i {
    color: #f87171;
}

.admin-mobile-menu-item--logout:hover {
    background: rgba(248, 113, 113, 0.26);
}

.admin-mobile-menu-item--logout {
    border-radius: 0.58rem;
}

body.theme-light .admin-mobile-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(3, 169, 244, 0.16);
    box-shadow: 0 12px 20px rgba(21, 34, 53, 0.14);
}

body.theme-light .admin-mobile-dropdown__head {
    border-bottom-color: rgba(3, 169, 244, 0.16);
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.14), rgba(3, 169, 244, 0.05));
}

body.theme-light .admin-mobile-dropdown__name {
    color: #152235;
}

body.theme-light .admin-mobile-dropdown__email {
    color: #5f738d;
}

body.theme-light .admin-mobile-dropdown__badge {
    color: #0b5f84;
}

body.theme-light .admin-mobile-menu-item {
    background: #f3f8fd;
    color: #152235;
}

body.theme-light .admin-mobile-menu-item:hover {
    background: rgba(3, 169, 244, 0.12);
}

body.theme-light .admin-mobile-menu-divider {
    background: rgba(3, 169, 244, 0.16);
}

body.theme-light .admin-mobile-menu-item--logout {
    background: rgba(248, 113, 113, 0.1);
}

body.theme-light .admin-mobile-menu-item--logout:hover {
    background: rgba(248, 113, 113, 0.16);
}

.dashboard-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1rem;
}

.dashboard-content--units-page {
    align-content: start;
}

/* Daire ödemeler: banner topbar'a yapışık — padding-top sıfır */
.dashboard-shell--unit-payments-page .dashboard-content.dashboard-content--units-page {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

/* banner hariç geri kalan kartlara yatay padding */
.dashboard-shell--unit-payments-page .dashboard-content.dashboard-content--units-page > *:not(.units-period-banner) {
    margin-left: 1rem;
    margin-right: 1rem;
}

@media (max-width: 820px) {
    .dashboard-shell--unit-payments-page .dashboard-content.dashboard-content--units-page {
        padding-top: 0;
    }

    .dashboard-content.dashboard-content--units-page {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        padding-bottom: 1rem;
        gap: 0.62rem;
        align-content: start;
    }

    .dashboard-content--units-page > *:not(.units-period-banner--page-slot):not(.due-receipt-action-sheet):not(.unit-card-sheet):not(.support-detail-page):not(.req-detail-page) {
        margin-left: 0.85rem;
        margin-right: 0.85rem;
    }

    /* ── Panel ana sayfası: overview kartı navbara yapışık ── */
    .dashboard-content.dashboard-content--panel-page {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        row-gap: 0.62rem;
        align-content: start;
        isolation: isolate;
    }

    .dashboard-content--panel-page > *:not(.panel-overview-card--banner-slot) {
        margin-left: 0;
        margin-right: 0;
    }

    /* Mobilde panel + requests türevi sayfalarda kartlara profil benzeri yatay boşluk ver */
    .dashboard-shell--panel-home .dashboard-content--panel-page > *:not(.panel-overview-card--banner-slot) {
        margin-left: 0.85rem;
        margin-right: 0.85rem;
    }

    .dashboard-shell--requests-page .dashboard-content--units-page > *:not(.units-period-banner--page-slot):not(.req-cards):not(.support-detail-page):not(.req-detail-page) {
        margin-left: 0.85rem;
        margin-right: 0.85rem;
    }

    .dashboard-shell--requests-page .dashboard-content--req-detail-v2 > .support-detail-page {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .dashboard-shell--requests-page .dashboard-content--units-page > .req-cards {
        margin-left: 0;
        margin-right: 0;
    }

    .dashboard-shell--categories-page .dashboard-content--units-page > *:not(.units-period-banner--page-slot):not(.due-receipt-action-sheet):not(.unit-card-sheet) {
        margin-left: 0.85rem;
        margin-right: 0.85rem;
    }

    .panel-overview-card--banner-slot {
        grid-column: 1 / -1;
        position: sticky;
        top: 0;
        z-index: 56;
        margin-top: 0 !important;
        margin-bottom: 0.45rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        border-radius: 0 0 0.88rem 0.88rem;
        border-left: none;
        border-right: none;
        border-top: none;
        background: #043f59;
        box-shadow: none;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .dashboard-content--panel-page .panel-overview-card--banner-slot + * {
        margin-top: 0;
    }
}

@media (min-width: 821px) {
    .dashboard-content.dashboard-content--units-page {
        padding: 1rem;
    }

    /* Tarayici mobil kabuk: tam geniş pencerede bile #/firmalar vb. sayfalarda üst padding sıfır kalmalı (banner navbar'a yapışık). */
    body.has-dashboard-shell.browser-mobile-shell .dashboard-content.dashboard-content--units-page,
    body.has-dashboard-shell.browser-mobile-shell .dashboard-content.dashboard-content--panel-page {
        padding: 0;
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    }
}

.dashboard-hero.units-page-hero-desktop {
    display: none;
}

.units-period-banner--embedded {
    display: none;
}

@media (min-width: 768px) {
    .dashboard-hero.units-page-hero-desktop {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
    }

    .units-period-banner--page-slot {
        display: none !important;
    }

    .units-period-banner--embedded {
        display: block !important;
    }

    /* Daireler: masaustunde de mobil banner (filtre + hizli islemler + arama) */
    .dashboard-shell--units-page .units-period-banner--page-slot {
        display: flex !important;
        flex-direction: column;
    }

    .dashboard-shell--units-page .dashboard-hero.units-page-hero-desktop {
        display: none !important;
    }
}

.dashboard-hero {
    grid-column: 1 / -1;
    background: rgba(17, 26, 46, 0.88);
    border: 0;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
}

.dashboard-hero h1 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
}

.dashboard-hero p {
    margin: 0.28rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.panel-hero-modern {
    padding: 0.95rem 1rem;
    background: linear-gradient(155deg, rgba(16, 30, 52, 0.95), rgba(10, 21, 38, 0.95));
    border: 1px solid rgba(3, 169, 244, 0.22);
    box-shadow: 0 12px 26px rgba(2, 10, 24, 0.28);
    border-radius: 0.78rem;
    position: relative;
}

.panel-hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.panel-hero-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.52rem;
    border-radius: 0.62rem;
    border: 1px solid var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
}

.panel-hero-welcome {
    margin-top: 0.34rem;
    font-size: 0.86rem;
    color: #dbe7f5;
    font-weight: 600;
}

.panel-hero-role {
    margin: 0.44rem 0 0;
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    color: #bfe7fb;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.22rem 0.56rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(3, 169, 244, 0.32);
    background: rgba(3, 169, 244, 0.12);
}

.panel-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.46rem;
    flex-wrap: wrap;
}

.panel-hero-mode {
    margin-top: 0.46rem;
    display: flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--muted);
    font-size: 0.78rem;
    width: 100%;
}

.panel-hero-contact-list {
    margin-top: 0.52rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.46rem;
}

.panel-hero-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.24rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.1);
    color: #c7d9eb;
    font-size: 0.74rem;
    font-weight: 500;
}

.panel-hero-contact-item i {
    color: var(--primary);
    font-size: 0.72rem;
}

.panel-overview-card {
    margin-top: 0.55rem;
    padding: 0.82rem 0.9rem;
    border: 1px solid rgba(3, 169, 244, 0.2);
    border-radius: 0.88rem;
    background: #043f59;
    isolation: isolate;
}

.panel-overview-card__apt-row {
    margin-top: 0 !important;
    margin-bottom: 0.55rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: space-between;
    align-items: center;
}

.panel-overview-card__apt-row--has-toggle {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.42rem 0.55rem;
}

.panel-overview-card__apt-row-main {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.42rem;
    flex: 1 1 auto;
    min-width: 0;
}

.panel-overview-card__apt-title-line {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    flex: 1 1 auto;
    min-width: 0;
}

.panel-overview-card__apt-title-icon {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.panel-overview-card__apt-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(196, 218, 238, 0.9);
}

.panel-overview-card__apt-name-text {
    font-weight: 600;
    color: rgba(216, 233, 248, 0.95);
}

.panel-overview-card__apt-title-sep {
    color: rgba(196, 218, 238, 0.42);
    font-weight: 400;
}

.panel-overview-card__apt-block-text {
    font-weight: 500;
    color: rgba(196, 218, 238, 0.82);
}

.panel-overview-card__apt-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.12rem;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    box-shadow: none;
    color: var(--primary, #03a9f4);
    cursor: pointer;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.panel-overview-card__apt-toggle:hover {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--primary-hover, #29b6f6);
}

.panel-overview-card__apt-toggle:hover .panel-overview-card__apt-toggle-icon {
    color: var(--primary-hover, #29b6f6);
}

.panel-overview-card__apt-toggle:active {
    opacity: 0.85;
}

.panel-overview-card__apt-toggle-icon {
    display: block;
    font-size: 0.84rem;
    line-height: 1;
    font-weight: 900;
    font-family: "Font Awesome 6 Free", sans-serif;
    font-style: normal;
    color: var(--primary, #03a9f4);
    transition: transform 0.24s ease, color 0.18s ease;
}

.panel-overview-card:not(.is-overview-apt-collapsed) .panel-overview-card__apt-toggle-icon {
    transform: rotate(180deg);
}

.panel-overview-card.is-overview-apt-collapsed .panel-overview-card__apt-row {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.panel-overview-card[data-panel-overview-initial-collapse="1"] .panel-overview-card__apt-collapse,
.panel-overview-card[data-panel-overview-initial-collapse="1"] .panel-overview-card__apt-collapse-inner {
    transition: none !important;
}

.panel-overview-card[data-panel-overview-initial-collapse="1"] .panel-overview-card__apt-toggle-icon {
    transition: none !important;
}

.panel-overview-card__apt-collapse {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.panel-overview-card.is-overview-apt-collapsed .panel-overview-card__apt-collapse {
    grid-template-rows: 0fr;
    pointer-events: none;
}

.panel-overview-card__apt-collapse-inner {
    min-height: 0;
    overflow: hidden;
    transition: transform 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}

.panel-overview-card.is-overview-apt-collapsed .panel-overview-card__apt-collapse-inner {
    transform: translateY(-0.35rem);
}

@media (prefers-reduced-motion: reduce) {
    .panel-overview-card__apt-collapse,
    .panel-overview-card__apt-collapse-inner {
        transition-duration: 0.01ms;
        transition-delay: 0ms !important;
    }

    .panel-overview-card.is-overview-apt-collapsed .panel-overview-card__apt-collapse-inner {
        transform: none;
    }
}

.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;
}

body.theme-light .panel-overview-card__apt-toggle,
html.theme-light-preload .panel-overview-card__apt-toggle {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--primary, #03a9f4);
}

body.theme-light .panel-overview-card__apt-toggle-icon,
html.theme-light-preload .panel-overview-card__apt-toggle-icon {
    color: var(--primary, #03a9f4);
}

body.theme-light .panel-overview-card__apt-toggle:hover,
html.theme-light-preload .panel-overview-card__apt-toggle:hover {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--primary-hover, #29b6f6);
}

body.theme-light .panel-overview-card__apt-toggle:hover .panel-overview-card__apt-toggle-icon,
html.theme-light-preload .panel-overview-card__apt-toggle:hover .panel-overview-card__apt-toggle-icon {
    color: var(--primary-hover, #29b6f6);
}

.panel-overview-card__head h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    font-size: 0.82rem;
    color: rgba(216, 233, 248, 0.9);
}

.panel-overview-card__grid {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
}

.panel-overview-card__resident {
    margin-top: 0.18rem;
    margin-bottom: 0.18rem;
    padding: 0.52rem 0.58rem;
    border-radius: 0.66rem;
    background: rgba(255, 255, 255, 0.06);
}

.panel-overview-card__resident-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.48rem;
    padding-top: 0.12rem;
    padding-bottom: 0.12rem;
}

.panel-overview-card__resident-divider {
    margin-top: 0.38rem;
    margin-bottom: 0.42rem;
    border-top: 1px dashed rgba(191, 212, 235, 0.32);
}

.panel-overview-card__resident-unit {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.72rem;
    color: rgba(225, 237, 249, 0.96);
    font-weight: 600;
}

.panel-overview-card__resident-unit i {
    color: #7dd3fc;
    font-size: 0.72rem;
}

.panel-overview-card__resident-meta {
    margin-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.56rem;
    align-items: center;
}

.panel-overview-card__resident-balance-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.panel-overview-card__resident-balance-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: rgba(191, 212, 235, 0.92);
}

.panel-overview-card__resident-balance-amount {
    font-size: 1rem;
    font-weight: 800;
    color: #ef6a7e;
    line-height: 1.1;
}

.panel-overview-card__resident-status-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.panel-overview-card__resident-status-title {
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(191, 212, 235, 0.9);
}

.panel-overview-card__resident-status {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #e5e7eb;
}

.panel-overview-card__resident-status i {
    font-size: 0.5rem;
    color: #ef6a7e;
}

.panel-overview-card__resident-status.is-debtor {
    background: rgba(248, 113, 113, 0.16);
    color: #e5e7eb;
}

.panel-overview-card__resident-status.is-clear {
    background: rgba(74, 222, 128, 0.16);
    color: #e5e7eb;
}

.panel-overview-card__resident-status.is-debtor i {
    color: #ef6a7e;
}

.panel-overview-card__resident-status.is-clear i {
    color: #4ade80;
}

.panel-overview-card__resident-debt-wrap {
    margin-top: 0.44rem;
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}

.panel-overview-card__resident-debt-amount {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fca5a5;
    letter-spacing: 0.01em;
}

.panel-overview-card__resident-debt-note {
    margin-top: 0.34rem;
    font-size: 0.66rem;
    line-height: 1.28;
    color: rgba(254, 202, 202, 0.92);
}

.panel-overview-card__item {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    text-decoration: none;
    padding: 0.62rem 0.66rem;
    border-radius: 0.68rem;
    background: rgba(255, 255, 255, 0.07);
    color: #e8f3ff;
    transition: background 0.18s ease;
}

.panel-overview-card__item:hover {
    background: rgba(255, 255, 255, 0.13);
}

.panel-overview-card__label {
    font-size: 0.72rem;
    color: rgba(169, 196, 220, 0.85);
}

.panel-overview-card__value {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Kasa Durumu */
.panel-overview-card__kasa {
    margin-top: 0.72rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-overview-card__kasa-title {
    margin: 0 0 0.46rem;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(216, 233, 248, 0.85);
}

.panel-overview-card__kasa-title i {
    color: var(--primary);
    font-size: 0.68rem;
}

.panel-overview-card__kasa-grid {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.panel-overview-card__kasa-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.36rem 0.52rem;
    border-radius: 0.58rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-overview-card__kasa-label {
    font-size: 0.67rem;
    color: rgba(169, 196, 220, 0.8);
}

.panel-overview-card__kasa-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: #d4efff;
    letter-spacing: 0.01em;
}

.panel-overview-card__kasa-val--neg {
    color: #fca5a5;
}


/* ── Unit Payments Header Kartı ── */
.unit-payments-header-card {
    margin-top: 0;
}

.unit-payments-header-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.unit-payments-header-card__info {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.unit-payments-header-card__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.62rem;
    border: 1px solid var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.unit-payments-header-card__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.unit-payments-header-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.unit-payments-del-form {
    display: contents;
}

.unit-payments-header-card__people {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
}

.unit-payments-person-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.62rem;
    flex-wrap: wrap;
}

.unit-payments-person-row__meta {
    min-width: 0;
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.unit-payments-person-row__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.unit-payments-person-row__badge i {
    font-size: 0.62rem;
    color: var(--primary);
}

.unit-payments-person-row__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.unit-payments-person-row__phone {
    font-size: 0.68rem;
    color: var(--muted);
}

.unit-payments-person-row__actions {
    flex-shrink: 0;
    display: inline-flex;
    gap: 0.38rem;
}

.unit-payments-quick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-height: 2rem;
    padding: 0.28rem 0.52rem;
    border-radius: 0.62rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.unit-payments-quick i {
    font-size: 0.72rem;
}

.unit-payments-quick--wa i {
    color: #25d366;
}

.unit-payments-quick:hover:not(.is-disabled),
.unit-payments-quick:focus-visible:not(.is-disabled) {
    border-color: var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary);
}

.unit-payments-quick:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.unit-payments-quick.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

body.theme-light .unit-payments-quick,
html.theme-light-preload .unit-payments-quick {
    background: #f4f8fc;
    border-color: #d5e3f0;
    color: #1a3250;
}

body.theme-light .unit-payments-quick--wa i,
html.theme-light-preload .unit-payments-quick--wa i {
    color: #128c7e;
}

/* ── Requests/Announcements add-card body animasyonu ── */
.requests-add-card__body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.34s ease, opacity 0.22s ease;
}

.apartments-add-card.is-open .requests-add-card__body {
    max-height: 1200px;
    opacity: 1;
    overflow: visible;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* ── Ödeme Geçmişi — kart listesi ── */
.upay-history-heading {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.upay-history-section {
    grid-column: 1 / -1;
}

.dashboard-content--statement-page {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0.82rem;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.dashboard-content--statement-page > .statement-balance-card {
    margin: 0 0 0 0 !important;
    align-self: stretch;
}

.dashboard-shell--statement-page .dashboard-content--statement-page > .statement-balance-card,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page .dashboard-content--statement-page > .statement-balance-card {
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.dashboard-shell--statement-page .dashboard-content--statement-page,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page .dashboard-content--statement-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.statement-balance-card {
    position: sticky;
    top: 0;
    z-index: 56;
    width: 100%;
    padding: 0.92rem 1rem 0.95rem;
    border: 0;
    border-radius: 0 0 1rem 1rem !important;
    color: #f8fbff;
    box-shadow: 0 6px 18px rgba(1, 10, 22, 0.18);
}

.statement-balance-card--debt {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 54%, #ef4444 100%);
}

.statement-balance-card--advance {
    background: linear-gradient(135deg, #064e3b 0%, #059669 56%, #22c55e 100%);
}

.statement-balance-card--clear {
    background: linear-gradient(135deg, #334155 0%, #64748b 100%);
}

.statement-balance-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.statement-balance-card__main {
    min-width: 0;
}

.statement-balance-card__eyebrow,
.statement-balance-card__unit {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 600;
}

.statement-balance-card__title {
    margin: 0 0 0.42rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.statement-balance-card__unit {
    margin-top: 0.2rem;
}

.statement-balance-card__status {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.32rem;
    padding: 0.28rem 0.52rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
}

.statement-balance-card__status-wrap {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    text-align: center;
}

.statement-balance-card__status-label {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: 100%;
}

.statement-balance-card__amount {
    display: flex;
    align-items: baseline;
    gap: 0.22rem;
    font-size: clamp(1.62rem, 5.6vw, 2.32rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1;
}

.statement-balance-card__amount i {
    font-size: 0.56em;
}

.statement-balance-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.statement-balance-card__meta span {
    display: inline-flex;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.64rem;
    font-weight: 700;
}

.statement-ledger-card {
    margin: 0 0.85rem 0.85rem;
    padding: 0.72rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.54);
    box-shadow: 0 8px 22px rgba(2, 8, 23, 0.16);
}

.statement-ledger-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.15rem 0.15rem 0.62rem;
}

.statement-ledger-card__head h2 {
    margin: 0;
    color: #eef7ff;
    font-size: 0.84rem;
    font-weight: 800;
}

.statement-ledger-card__head p {
    margin: 0.16rem 0 0;
    color: rgba(191, 212, 235, 0.72);
    font-size: 0.66rem;
}

.statement-ledger-card__head > span {
    flex-shrink: 0;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.12);
    color: #9bdfff;
    font-size: 0.62rem;
    font-weight: 700;
}

.statement-ledger-list {
    overflow: hidden;
    border-radius: 0.82rem;
    background: rgba(255, 255, 255, 0.03);
}

.statement-ledger-row {
    display: block;
    padding: 0.72rem 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.statement-ledger-row:first-child {
    border-top: 0;
}

.statement-ledger-row__icon {
    display: inline-flex;
    flex: 0 0 1.86rem;
    width: 1.86rem;
    height: 1.86rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.62rem;
    background: rgba(148, 163, 184, 0.14);
}

.statement-ledger-row--debt .statement-ledger-row__icon {
    background: rgba(248, 113, 113, 0.14);
    color: #f87171;
}

.statement-ledger-row--paid .statement-ledger-row__icon {
    background: rgba(74, 222, 128, 0.14);
    color: #4ade80;
}

.statement-ledger-row__body {
    min-width: 0;
    width: 100%;
}

.statement-ledger-row__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.statement-ledger-row__title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.statement-ledger-row__main h3 {
    margin: 0;
    color: #eef7ff;
    font-size: 0.76rem;
    font-weight: 780;
}

.statement-ledger-row__main p {
    margin: 0.24rem 0 0;
    color: rgba(191, 212, 235, 0.66);
    font-size: 0.64rem;
    font-weight: 600;
}

.statement-ledger-row__amount {
    flex-shrink: 0;
    min-width: 5.7rem;
    text-align: right;
    font-size: 0.74rem;
    font-weight: 850;
    white-space: nowrap;
}

.statement-ledger-row--debt .statement-ledger-row__amount {
    color: #f87171;
}

.statement-ledger-row--paid .statement-ledger-row__amount {
    color: #4ade80;
}

.statement-ledger-row__status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.44rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.6rem;
    font-weight: 700;
}

.statement-ledger-row--debt .statement-ledger-row__status {
    background: rgba(248, 113, 113, 0.14);
    color: #f87171;
}

.statement-ledger-row--paid .statement-ledger-row__status {
    background: rgba(74, 222, 128, 0.14);
    color: #4ade80;
}

.statement-ledger-row__note {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.34rem;
    margin: 0.35rem 0 0;
    color: rgba(191, 212, 235, 0.58);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.45;
}

.statement-ledger-row__note i {
    flex: 0 0 auto;
    margin-top: 0.08rem;
    color: rgba(3, 169, 244, 0.72);
    font-size: 0.7rem;
}

.statement-ledger-row[hidden] {
    display: none !important;
}

.statement-ledger-pager {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.72rem;
    padding: 0.5rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.035);
}

.statement-ledger-pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-height: 2rem;
    padding: 0.36rem 0.66rem;
    border: 0;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.12);
    color: #9bdfff;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease, opacity 0.16s ease;
}

.statement-ledger-pager__btn:hover:not(:disabled) {
    background: rgba(3, 169, 244, 0.2);
    color: #d7f3ff;
}

.statement-ledger-pager__btn:active:not(:disabled) {
    transform: scale(0.98);
}

.statement-ledger-pager__btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.statement-ledger-pager__btn:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.statement-ledger-pager__meta {
    justify-self: center;
    color: rgba(191, 212, 235, 0.72);
    font-size: 0.66rem;
    font-weight: 760;
}

body.theme-light .statement-balance-card,
html.theme-light-preload .statement-balance-card {
    color: #17283d;
    box-shadow: 0 8px 20px rgba(21, 34, 53, 0.12);
}

body.theme-light .statement-balance-card--debt,
html.theme-light-preload .statement-balance-card--debt {
    background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 58%, #fecaca 100%);
    color: #991b1b;
}

body.theme-light .statement-balance-card--advance,
html.theme-light-preload .statement-balance-card--advance {
    background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 58%, #bbf7d0 100%);
    color: #166534;
}

body.theme-light .statement-balance-card--clear,
html.theme-light-preload .statement-balance-card--clear {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
}

body.theme-light .statement-balance-card__eyebrow,
html.theme-light-preload .statement-balance-card__eyebrow,
body.theme-light .statement-balance-card__unit,
html.theme-light-preload .statement-balance-card__unit {
    color: currentColor;
    opacity: 0.74;
}

body.theme-light .statement-balance-card__status,
html.theme-light-preload .statement-balance-card__status,
body.theme-light .statement-balance-card__meta span,
html.theme-light-preload .statement-balance-card__meta span {
    background: rgba(255, 255, 255, 0.72);
    color: currentColor;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

body.theme-light .statement-balance-card__title,
html.theme-light-preload .statement-balance-card__title,
body.theme-light .statement-balance-card__status-label,
html.theme-light-preload .statement-balance-card__status-label {
    color: currentColor;
    opacity: 0.7;
}

body.theme-light .statement-ledger-card,
html.theme-light-preload .statement-ledger-card {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(21, 34, 53, 0.08);
}

body.theme-light .statement-ledger-card__head > span,
html.theme-light-preload .statement-ledger-card__head > span {
    background: rgba(3, 169, 244, 0.12);
    color: #0369a1;
    box-shadow: inset 0 0 0 1px rgba(3, 169, 244, 0.14);
}

body.theme-light .statement-ledger-card__head h2,
html.theme-light-preload .statement-ledger-card__head h2,
body.theme-light .statement-ledger-row__main h3,
html.theme-light-preload .statement-ledger-row__main h3 {
    color: #17283d;
}

body.theme-light .statement-ledger-card__head p,
html.theme-light-preload .statement-ledger-card__head p,
body.theme-light .statement-ledger-row__main p,
html.theme-light-preload .statement-ledger-row__main p {
    color: #64748b;
}

body.theme-light .statement-ledger-list,
html.theme-light-preload .statement-ledger-list {
    background: #f8fafc;
}

body.theme-light .statement-ledger-row,
html.theme-light-preload .statement-ledger-row {
    border-top-color: #e2e8f0;
}

body.theme-light .statement-ledger-row--debt .statement-ledger-row__amount,
html.theme-light-preload .statement-ledger-row--debt .statement-ledger-row__amount {
    color: #dc2626;
}

body.theme-light .statement-ledger-row--paid .statement-ledger-row__amount,
html.theme-light-preload .statement-ledger-row--paid .statement-ledger-row__amount {
    color: #16a34a;
}

body.theme-light .statement-ledger-row__status,
html.theme-light-preload .statement-ledger-row__status {
    background: rgba(226, 232, 240, 0.82);
    color: #475569;
}

body.theme-light .statement-ledger-row--debt .statement-ledger-row__status,
html.theme-light-preload .statement-ledger-row--debt .statement-ledger-row__status {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

body.theme-light .statement-ledger-row--paid .statement-ledger-row__status,
html.theme-light-preload .statement-ledger-row--paid .statement-ledger-row__status {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

body.theme-light .statement-ledger-row__note,
html.theme-light-preload .statement-ledger-row__note {
    color: #7a8fa6;
}

body.theme-light .statement-ledger-row__note i,
html.theme-light-preload .statement-ledger-row__note i {
    color: #028ecc;
}

body.theme-light .statement-ledger-pager,
html.theme-light-preload .statement-ledger-pager {
    background: #f8fafc;
}

body.theme-light .statement-ledger-pager__btn,
html.theme-light-preload .statement-ledger-pager__btn {
    background: rgba(3, 169, 244, 0.1);
    color: #0369a1;
}

body.theme-light .statement-ledger-pager__btn:hover:not(:disabled),
html.theme-light-preload .statement-ledger-pager__btn:hover:not(:disabled) {
    background: rgba(3, 169, 244, 0.18);
    color: #0284c7;
}

body.theme-light .statement-ledger-pager__meta,
html.theme-light-preload .statement-ledger-pager__meta {
    color: #64748b;
}

.upay-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.statement-ledger-card .upay-card-list--ledger {
    overflow: hidden;
    gap: 0;
    border-radius: 0.82rem;
    background: rgba(255, 255, 255, 0.03);
}

.statement-ledger-card .upay-card-list--ledger > .upay-card,
.statement-ledger-card .upay-card-list--ledger > .upay-bundle {
    margin: 0;
}

.statement-ledger-card .upay-card-list--ledger > .upay-card + .upay-card,
.statement-ledger-card .upay-card-list--ledger > .upay-card + .upay-bundle,
.statement-ledger-card .upay-card-list--ledger > .upay-bundle + .upay-card,
.statement-ledger-card .upay-card-list--ledger > .upay-bundle + .upay-bundle {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.statement-ledger-card .upay-card-list--ledger .upay-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.statement-ledger-card .upay-card-list--ledger .upay-bundle__body--stack {
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
}

body.theme-light .statement-ledger-card .upay-card-list--ledger,
html.theme-light-preload .statement-ledger-card .upay-card-list--ledger {
    background: #f8fafc;
}

body.theme-light .statement-ledger-card .upay-card-list--ledger > .upay-card + .upay-card,
html.theme-light-preload .statement-ledger-card .upay-card-list--ledger > .upay-card + .upay-card,
body.theme-light .statement-ledger-card .upay-card-list--ledger > .upay-card + .upay-bundle,
html.theme-light-preload .statement-ledger-card .upay-card-list--ledger > .upay-card + .upay-bundle,
body.theme-light .statement-ledger-card .upay-card-list--ledger > .upay-bundle + .upay-card,
html.theme-light-preload .statement-ledger-card .upay-card-list--ledger > .upay-bundle + .upay-card,
body.theme-light .statement-ledger-card .upay-card-list--ledger > .upay-bundle + .upay-bundle,
html.theme-light-preload .statement-ledger-card .upay-card-list--ledger > .upay-bundle + .upay-bundle {
    border-top-color: #e2e8f0;
}

.upay-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    padding: 0.75rem 0.9rem 0.65rem;
    transition: background 0.16s ease;
    cursor: pointer;
}

.upay-card:active {
    background: rgba(255, 255, 255, 0.07);
}

body.theme-light .upay-card,
html.theme-light-preload .upay-card {
    background: #f8fafc;
    border-color: #e2eaf3;
}

body.theme-light .upay-card:hover,
html.theme-light-preload .upay-card:hover {
    background: #f1f6fb;
}

/* top row */
.upay-bundle {
    margin-bottom: 0.65rem;
}

.upay-bundle__summary {
    margin-bottom: 0;
}

.upay-bundle__summary[role='button'] {
    cursor: pointer;
    user-select: none;
}

.upay-bundle__summary[role='button']:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.upay-bundle__summary-top {
    align-items: flex-start;
}

.upay-bundle__summary-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.upay-bundle__summary-trailing {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
    min-width: 6.75rem;
}

.upay-bundle__hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.35rem 0 0 0;
    padding: 0 0.15rem;
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--muted);
}

.upay-bundle__hint span:last-child {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.24rem;
    color: rgba(148, 163, 184, 0.82);
    font-weight: 700;
}

.upay-bundle__hint span:last-child i {
    color: rgba(148, 163, 184, 0.62);
    font-size: 0.58rem;
}

.upay-bundle__body {
    margin-top: 0.45rem;
    padding-left: 0.15rem;
}

.upay-bundle__body > .upay-card--in-bundle + .upay-card--in-bundle {
    margin-top: 0.45rem;
}

.upay-bundle__body--stack {
    margin-top: 0.35rem;
    padding: 0.35rem 0.45rem 0.45rem;
    border-radius: 0 0 12px 12px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-top: 0;
    background: rgba(255, 255, 255, 0.02);
}

body.theme-light .upay-bundle__body--stack,
html.theme-light-preload .upay-bundle__body--stack {
    background: rgba(248, 250, 252, 0.92);
    border-color: rgba(148, 163, 184, 0.38);
}

.upay-bundle__status-text {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(226, 232, 240, 0.82);
}

.upay-bundle__status-text--paid {
    color: rgba(134, 239, 172, 0.95);
}

.upay-bundle__status-text--mixed {
    color: rgba(253, 224, 71, 0.92);
}

body.theme-light .upay-bundle__status-text,
html.theme-light-preload .upay-bundle__status-text {
    color: #64748b;
}

body.theme-light .upay-bundle__status-text--paid,
html.theme-light-preload .upay-bundle__status-text--paid {
    color: #15803d;
}

body.theme-light .upay-bundle__status-text--mixed,
html.theme-light-preload .upay-bundle__status-text--mixed {
    color: #b45309;
}

.upay-bundle-line {
    padding: 0.42rem 0.2rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.28);
    cursor: pointer;
    transition: background 0.14s ease;
}

.upay-bundle-line:first-child {
    border-top: 0;
    padding-top: 0.28rem;
}

.upay-bundle-line:hover {
    background: rgba(255, 255, 255, 0.03);
}

.upay-bundle-line:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 8px;
}

body.theme-light .upay-bundle-line:hover,
html.theme-light-preload .upay-bundle-line:hover {
    background: rgba(3, 169, 244, 0.04);
}

.upay-bundle-line__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.upay-bundle-line__row-trailing {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
    min-width: 6.75rem;
}

.upay-bundle-line__left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.upay-bundle-line__date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
}

.upay-bundle-line__suffix {
    font-size: 0.62rem;
    color: var(--muted);
    line-height: 1.25;
}

.upay-bundle-line__right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.12rem;
}

.upay-bundle-line__amount {
    display: inline-block;
    min-width: 6.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    text-align: right;
    white-space: nowrap;
}

.upay-bundle-line--paid .upay-bundle-line__amount {
    color: #86efac;
}

.upay-bundle-line--unpaid .upay-bundle-line__amount {
    color: #fca5a5;
}

body.theme-light .upay-bundle-line--paid .upay-bundle-line__amount,
html.theme-light-preload .upay-bundle-line--paid .upay-bundle-line__amount {
    color: #16a34a;
}

body.theme-light .upay-bundle-line--unpaid .upay-bundle-line__amount,
html.theme-light-preload .upay-bundle-line--unpaid .upay-bundle-line__amount {
    color: #dc2626;
}

.upay-bundle-line__status {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.upay-bundle-line__actions {
    margin-top: 0.28rem;
    display: flex;
    justify-content: flex-end;
}

.upay-bundle-line__receipt {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.42rem;
    border-radius: 8px;
    border: 1px solid rgba(3, 169, 244, 0.28);
    background: transparent;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.upay-bundle-line__receipt:hover {
    background: rgba(3, 169, 244, 0.08);
    border-color: rgba(3, 169, 244, 0.45);
}

.upay-bundle-line__receipt:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.theme-light .upay-bundle-line__receipt,
html.theme-light-preload .upay-bundle-line__receipt {
    border-color: rgba(3, 169, 244, 0.35);
    color: #0284c7;
}

.upay-card--in-bundle {
    box-shadow: none;
}

/* Daire ödemeleri: ay şeridi kaydırma okları — yumuşak, rozet görünümü yok */
.dashboard-shell--unit-payments-page .units-period-banner--page-slot .units-period-banner__edge-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-shell--unit-payments-page .units-period-banner--page-slot .units-period-banner__edge-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.42);
}

.dashboard-shell--unit-payments-page .units-period-banner--page-slot .units-period-banner__edge-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

body.theme-light .dashboard-shell--unit-payments-page .units-period-banner--page-slot .units-period-banner__edge-btn,
html.theme-light-preload .dashboard-shell--unit-payments-page .units-period-banner--page-slot .units-period-banner__edge-btn {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
}

.upay-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.upay-card__meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.upay-card__cat-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.upay-card__cat-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.4rem;
    font-size: 0.72rem;
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
}

.upay-card--aidat .upay-card__cat-icon {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.upay-card--aidat.upay-card--unpaid .upay-card__cat-icon {
    background: rgba(248, 113, 113, 0.16);
    color: #f87171;
}

.upay-card--category .upay-card__cat-icon {
    background: rgba(3, 169, 244, 0.15);
    color: #7dd3fc;
}

body.theme-light .upay-card__cat-icon,
html.theme-light-preload .upay-card__cat-icon {
    background: rgba(3, 169, 244, 0.1);
}

body.theme-light .upay-card--aidat .upay-card__cat-icon,
html.theme-light-preload .upay-card--aidat .upay-card__cat-icon {
    background: rgba(22, 163, 74, 0.11);
    color: #16a34a;
}

body.theme-light .upay-card--aidat.upay-card--unpaid .upay-card__cat-icon,
html.theme-light-preload .upay-card--aidat.upay-card--unpaid .upay-card__cat-icon {
    background: rgba(220, 38, 38, 0.11);
    color: #dc2626;
}

body.theme-light .upay-card--category .upay-card__cat-icon,
html.theme-light-preload .upay-card--category .upay-card__cat-icon {
    background: rgba(3, 169, 244, 0.11);
    color: #0284c7;
}

.upay-card__cat {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.theme-light .upay-card__cat,
html.theme-light-preload .upay-card__cat {
    color: #1e3148;
}

.upay-card__type-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.16rem;
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #7dd3fc;
    background: rgba(3, 169, 244, 0.13);
}

.upay-card--aidat .upay-card__type-badge {
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
}

.upay-card--category .upay-card__type-badge {
    color: #7dd3fc;
    background: rgba(3, 169, 244, 0.13);
}

body.theme-light .upay-card--aidat .upay-card__type-badge,
html.theme-light-preload .upay-card--aidat .upay-card__type-badge {
    color: #15803d;
    background: rgba(22, 163, 74, 0.1);
}

body.theme-light .upay-card--category .upay-card__type-badge,
html.theme-light-preload .upay-card--category .upay-card__type-badge {
    color: #0284c7;
    background: rgba(3, 169, 244, 0.1);
}

.upay-card__status-badge {
    flex-shrink: 0;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 20px;
}

.upay-card__status-badge--paid {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.upay-card__status-badge--unpaid {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

body.theme-light .upay-card__status-badge--paid,
html.theme-light-preload .upay-card__status-badge--paid {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

body.theme-light .upay-card__status-badge--unpaid,
html.theme-light-preload .upay-card__status-badge--unpaid {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* amount */
.upay-card__amount {
    flex-shrink: 0;
    display: inline-block;
    min-width: 6.75rem;
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    text-align: right;
    white-space: nowrap;
}

.upay-card__amount--paid {
    color: #4ade80;
}

.upay-card__amount--unpaid {
    color: #f87171;
}

body.theme-light .upay-card__amount--paid,
html.theme-light-preload .upay-card__amount--paid {
    color: #16a34a;
}

body.theme-light .upay-card__amount--unpaid,
html.theme-light-preload .upay-card__amount--unpaid {
    color: #dc2626;
}

/* divider */
.upay-card__divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.1);
    margin: 0.55rem 0 0.5rem;
}

body.theme-light .upay-card__divider,
html.theme-light-preload .upay-card__divider {
    background: #e2eaf3;
}

/* bottom row */
.upay-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.upay-card__date-line {
    font-size: 0.71rem;
    color: var(--muted);
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.upay-card__date-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    flex: 0 0 7px;
}

.upay-card__date-dot.is-paid {
    background: #16a34a;
}

.upay-card__date-dot.is-unpaid {
    background: #dc2626;
}

body.theme-light .upay-card__date-line,
html.theme-light-preload .upay-card__date-line {
    color: #7a92aa;
}

.upay-card__receipt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 28px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: color 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    border: 0;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.upay-card__receipt-label {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

.upay-card__receipt-btn:hover {
    color: var(--primary-hover);
}

.upay-card__receipt-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.theme-light .upay-card__receipt-btn,
html.theme-light-preload .upay-card__receipt-btn {
    background: transparent;
}

/* ── Yeni Ödeme Ekle formu (kart içi, modal-siz) ── */
.upay-add-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.upay-add-form .profile-card-modern__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8ca3ba;
}

.upay-add-form .input-with-icon .auth-input,
.upay-add-form .input-with-icon .dues-quick-period-indicator {
    padding-left: 2.4rem;
}

.upay-add-form .input-with-icon .dues-quick-period-indicator {
    display: flex;
    align-items: center;
}

.upay-add-form .input-with-icon .input-icon {
    color: #7aa8c8;
}

.upay-add-form__grid.apartment-edit-modal__grid {
    background: transparent;
    padding: 0.6rem 0 0;
}

body.theme-light .upay-add-form__grid.apartment-edit-modal__grid,
html.theme-light-preload .upay-add-form__grid.apartment-edit-modal__grid {
    background: transparent;
}

.upay-add-form__footer {
    padding: 0.75rem 0 0;
    display: flex;
    justify-content: stretch;
}

.upay-add-form__footer .apartment-edit-modal__btn--primary {
    flex: 1;
    justify-content: center;
}

/* ── Finansal Özet Kartı ── */
.panel-finance-card {
    margin-top: 0.55rem;
}

.panel-finance-card__title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(216, 233, 248, 0.9);
    letter-spacing: 0.02em;
}

body.theme-light .panel-finance-card__title,
html.theme-light-preload .panel-finance-card__title {
    color: #1a3250;
}

.panel-finance-card__grid {
    margin-top: 0.52rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
}

.panel-finance-card__item {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    padding: 0.62rem 0.66rem;
    border-radius: 0.68rem;
    border: none;
    background: rgba(255, 255, 255, 0.07);
    color: #e8f3ff;
}

body.theme-light .panel-finance-card__item,
html.theme-light-preload .panel-finance-card__item {
    background: rgba(3, 169, 244, 0.07);
    color: #152235;
}

.panel-finance-card__item--link {
    text-decoration: none;
    transition: background 0.18s ease;
}

.panel-finance-card__item--link:hover {
    background: rgba(255, 255, 255, 0.13);
}

body.theme-light .panel-finance-card__item--link:hover,
html.theme-light-preload .panel-finance-card__item--link:hover {
    background: rgba(3, 169, 244, 0.14);
}

/* ── Güncel Kasa item — yeşil ── */
.panel-finance-card__item--kasa {
    background: rgba(22, 196, 122, 0.1);
}

.panel-finance-card__item--kasa:hover {
    background: rgba(22, 196, 122, 0.18) !important;
}

body.theme-light .panel-finance-card__item--kasa,
html.theme-light-preload .panel-finance-card__item--kasa {
    background: rgba(22, 196, 122, 0.08);
}

.panel-finance-card__item--expense {
    background: rgba(239, 68, 68, 0.12);
}

body.theme-light .panel-finance-card__item--expense,
html.theme-light-preload .panel-finance-card__item--expense {
    background: rgba(239, 68, 68, 0.1);
}

body.theme-light .panel-finance-card__item--kasa:hover,
html.theme-light-preload .panel-finance-card__item--kasa:hover {
    background: rgba(22, 196, 122, 0.15) !important;
}

.panel-finance-card__label--kasa {
    color: rgba(134, 239, 172, 0.85);
}

body.theme-light .panel-finance-card__label--kasa,
html.theme-light-preload .panel-finance-card__label--kasa {
    color: #059669;
}

.panel-finance-card__amount--kasa {
    color: #4ade80;
}

body.theme-light .panel-finance-card__amount--kasa,
html.theme-light-preload .panel-finance-card__amount--kasa {
    color: #16a34a;
}

.panel-finance-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    color: rgba(169, 196, 220, 0.85);
}

body.theme-light .panel-finance-card__label,
html.theme-light-preload .panel-finance-card__label {
    color: #5a7a96;
}

.panel-finance-card__amount {
    font-size: 0.92rem;
    font-weight: 700;
    color: #d4efff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

body.theme-light .panel-finance-card__amount,
html.theme-light-preload .panel-finance-card__amount {
    color: #152235;
}

.panel-finance-card__amount--neg {
    color: #fca5a5;
}

body.theme-light .panel-finance-card__amount--neg,
html.theme-light-preload .panel-finance-card__amount--neg {
    color: #dc2626;
}

.panel-finance-card__amount--expense {
    color: rgba(169, 196, 220, 0.8);
}

body.theme-light .panel-finance-card__amount--expense,
html.theme-light-preload .panel-finance-card__amount--expense {
    color: #4a6a88;
}

.panel-finance-card__amount--expense-red {
    color: #fca5a5;
}

body.theme-light .panel-finance-card__amount--expense-red,
html.theme-light-preload .panel-finance-card__amount--expense-red {
    color: #dc2626;
}

/* ── Panel: Duyurular (dış kart yok; satırlar panel-notice-item) ── */
.panel-notices-section {
    margin-top: 0.5rem;
}

.panel-notices-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.panel-notices-section__head .panel-mini-title,
.panel-surveys-section__head .panel-mini-title,
.panel-marketplace-section__head .panel-mini-title {
    gap: 0.38rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    text-transform: none;
    color: var(--muted);
}

.panel-notices-section__head .panel-mini-title__icon,
.panel-surveys-section__head .panel-mini-title__icon,
.panel-marketplace-section__head .panel-mini-title__icon {
    color: var(--primary);
}

.panel-notices-section__head .panel-mini-title__icon i,
.panel-surveys-section__head .panel-mini-title__icon i,
.panel-marketplace-section__head .panel-mini-title__icon i {
    font-size: 0.82rem;
    color: var(--primary);
}

body.theme-light .panel-notices-section__head .panel-mini-title,
body.theme-light .panel-surveys-section__head .panel-mini-title,
body.theme-light .panel-marketplace-section__head .panel-mini-title,
html.theme-light-preload .panel-notices-section__head .panel-mini-title,
html.theme-light-preload .panel-surveys-section__head .panel-mini-title,
html.theme-light-preload .panel-marketplace-section__head .panel-mini-title {
    color: #5a7a96;
}

body.theme-light .panel-notices-section__head .panel-mini-title__icon,
body.theme-light .panel-surveys-section__head .panel-mini-title__icon,
body.theme-light .panel-marketplace-section__head .panel-mini-title__icon,
body.theme-light .panel-notices-section__head .panel-mini-title__icon i,
body.theme-light .panel-surveys-section__head .panel-mini-title__icon i,
body.theme-light .panel-marketplace-section__head .panel-mini-title__icon i,
html.theme-light-preload .panel-notices-section__head .panel-mini-title__icon,
html.theme-light-preload .panel-surveys-section__head .panel-mini-title__icon,
html.theme-light-preload .panel-marketplace-section__head .panel-mini-title__icon,
html.theme-light-preload .panel-notices-section__head .panel-mini-title__icon i,
html.theme-light-preload .panel-surveys-section__head .panel-mini-title__icon i,
html.theme-light-preload .panel-marketplace-section__head .panel-mini-title__icon i {
    color: var(--primary);
}

/* Hızlı İşlemler — dış çerçeveyi kaldır, yüzen minimal tepsi + yumuşak gölge */
.panel-kasa-quick-card--no-border {
    border: 0 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 20px 50px rgba(2, 8, 23, 0.38),
        0 8px 22px rgba(2, 8, 23, 0.22) !important;
}

body.theme-light .panel-kasa-quick-card--no-border,
html.theme-light-preload .panel-kasa-quick-card--no-border {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 22px 48px rgba(15, 34, 60, 0.12),
        0 8px 20px rgba(15, 34, 60, 0.07) !important;
}

/* ── Genel Özet — Duyurular (eski override, artık kullanılmıyor) ── */
.panel-overview-card__notices {
    margin-top: 0.72rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-overview-card__notices-head {
    margin-bottom: 0.5rem;
}

.panel-overview-card__notices-title {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(169, 196, 220, 0.85);
}

.panel-overview-card__notices-title i {
    font-size: 0.66rem;
    color: var(--primary);
}

.panel-notice-list {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

/* Panel ana sayfa — anket ozeti (Swiper yok) */
.panel-survey-panel-card {
    padding: 0.72rem 0.78rem 0.82rem;
    border-radius: 0.88rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(14, 24, 44, 0.88);
}

.panel-survey-panel-card__title {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    color: #eaf3ff;
    line-height: 1.3;
}

.panel-survey-panel-card__meta {
    margin: 0.35rem 0 0;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(180, 205, 232, 0.72);
}

.panel-survey-panel-card__vote {
    margin-top: 0.55rem;
}

body.theme-light .panel-survey-panel-card,
html.theme-light-preload .panel-survey-panel-card {
    background: #ffffff;
    border-color: #e2edf6;
}

body.theme-light .panel-survey-panel-card__title,
html.theme-light-preload .panel-survey-panel-card__title {
    color: #12243b;
}

body.theme-light .panel-survey-panel-card__meta,
html.theme-light-preload .panel-survey-panel-card__meta {
    color: #5f738d;
}

/* ── Duyuru Kartı (Dedicated Page) ── */
.ann-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0 0rem 0.85rem;
    grid-column: 1 / -1;
}

/* Duyurular sayfası kart yapısı (head/body/date) */
.ann-list .panel-notice-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0.92rem;
    padding: 0.78rem 0.82rem 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(160deg, rgba(10, 18, 34, 0.92), rgba(8, 14, 28, 0.95));
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.2);
}

.ann-list .panel-notice-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.56rem;
    bottom: 0.56rem;
    width: 3px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.28), 0 0 10px rgba(3, 169, 244, 0.2);
}

.ann-list .panel-notice-item__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    min-width: 0;
}

.ann-list .panel-notice-item__head .panel-notice-item__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    color: #eaf4ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ann-list .panel-notice-item__body {
    display: block;
    margin: 0 0 0.52rem;
    font-size: 0.74rem;
    line-height: 1.46;
    color: rgba(214, 228, 244, 0.9);
    white-space: normal;
    overflow-wrap: anywhere;
}

.ann-list .panel-notice-item__date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    font-size: 0.64rem;
    color: rgba(148, 174, 202, 0.88);
}

.ann-list .panel-notice-item__watermark {
    position: absolute;
    right: 0.55rem;
    bottom: 0.18rem;
    font-size: 2.1rem;
    color: rgba(148, 163, 184, 0.16);
    transform: none;
    transform-origin: center center;
    pointer-events: none;
    z-index: 0;
}

.ann-list .panel-notice-item__head,
.ann-list .panel-notice-item__body,
.ann-list .panel-notice-item__date {
    position: relative;
    z-index: 1;
}

.ann-list .panel-notice-item--urgent::before { background: #f05050; box-shadow: 0 0 0 1px rgba(240, 80, 80, 0.28), 0 0 10px rgba(240, 80, 80, 0.2); }
.ann-list .panel-notice-item--done::before   { background: #16c47a; box-shadow: 0 0 0 1px rgba(22, 196, 122, 0.28), 0 0 10px rgba(22, 196, 122, 0.2); }

body.theme-light .ann-list .panel-notice-item,
html.theme-light-preload .ann-list .panel-notice-item {
    background: #ffffff;
    border-color: #dce9f5;
    box-shadow: 0 8px 20px rgba(15, 34, 60, 0.08);
}

body.theme-light .ann-list .panel-notice-item__head .panel-notice-item__title,
html.theme-light-preload .ann-list .panel-notice-item__head .panel-notice-item__title {
    color: #0f2840;
}

body.theme-light .ann-list .panel-notice-item__body,
html.theme-light-preload .ann-list .panel-notice-item__body {
    color: #4f6881;
}

body.theme-light .ann-list .panel-notice-item__date,
html.theme-light-preload .ann-list .panel-notice-item__date {
    color: #7f9ab6;
}

body.theme-light .ann-list .panel-notice-item__watermark,
html.theme-light-preload .ann-list .panel-notice-item__watermark {
    color: rgba(148, 163, 184, 0.22);
}

/* Kart tıklama hissi: daireler, kategoriler, firmalar, ödemeler */
.unit-pay-card:active,
.categories-card-item:active,
.firm-card:active,
.hub-payments-card-item:active,
.payments-feed-card:active {
    transform: scale(0.985);
}

@media (min-width: 821px) {
    .ann-list { padding-left: 0; padding-right: 0; }
}

/* ── Panel notice item — tek satır yatay ── */
.panel-notice-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--card-bg, rgba(14, 24, 44, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.82rem;
    padding: 0.62rem 0.72rem;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    position: relative;
}

a.panel-notice-item {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.panel-notice-item:active { transform: scale(0.98); }
.panel-notice-item:hover  { background: rgba(255, 255, 255, 0.05); border-color: rgba(3, 169, 244, 0.3); }

/* Sol renk çubuğu */
.panel-notice-item__bar {
    width: 3px;
    border-radius: 3px;
    align-self: stretch;
    flex-shrink: 0;
    min-height: 28px;
}

/* Body: başlık + tarih */
.panel-notice-item__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.panel-notice-item__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ddeeff;
    line-height: 1.3;
    margin: 0;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.panel-notice-item__date {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.62rem;
    color: rgba(130, 170, 210, 0.5);
    margin: 0;
}

/* Badge — sağ orta */
.panel-notice-item__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.57rem;
    font-weight: 700;
    padding: 0.18em 0.55em;
    border-radius: 999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex-shrink: 0;
    align-self: center;
}

/* Status renkler — çubuk */
.panel-notice-item--urgent .panel-notice-item__bar { background: #f05050; }
.panel-notice-item--done   .panel-notice-item__bar { background: #16c47a; }
.panel-notice-item--info   .panel-notice-item__bar { background: var(--primary); }

/* Badges per status */
.panel-notice-item--urgent .panel-notice-item__badge { background: rgba(240, 80, 80, 0.12); color: #f05050; }
.panel-notice-item--done   .panel-notice-item__badge { background: rgba(22, 196, 122, 0.12); color: #16c47a; }
.panel-notice-item--info   .panel-notice-item__badge { background: rgba(3, 169, 244, 0.12); color: var(--primary); }

/* ── Light theme ── */
body.theme-light .panel-notice-item,
html.theme-light-preload .panel-notice-item {
    background: #ffffff;
    border-color: #e2edf6;
}

/* Panel: Anket / Pazar yeri özeti — aynı başlık satırı (kart sarmalayıcı yok) */
.panel-surveys-section,
.panel-marketplace-section {
    margin-top: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.panel-notices-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.panel-marketplace-section,
.panel-notices-section,
.panel-surveys-section {
    padding: 0.78rem;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(165deg, rgba(16, 30, 52, 0.88), rgba(12, 22, 40, 0.94));
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.22);
}

.panel-notices-section {
    order: 2;
}

.panel-surveys-section {
    order: 3;
}

.panel-marketplace-section {
    order: 4;
}

.panel-surveys-section__head,
.panel-marketplace-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

/* Pazar / Duyurular: kartsız boş durum metni */
.panel-section-soft-empty {
    margin: 0.2rem 0 0;
    padding: 0.55rem 0.6rem 0.65rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.72);
    line-height: 1.45;
    letter-spacing: 0.01em;
}

body.theme-light .panel-section-soft-empty,
html.theme-light-preload .panel-section-soft-empty {
    color: rgba(100, 116, 139, 0.78);
}

body.theme-light .panel-marketplace-section,
body.theme-light .panel-notices-section,
body.theme-light .panel-surveys-section,
html.theme-light-preload .panel-marketplace-section,
html.theme-light-preload .panel-notices-section,
html.theme-light-preload .panel-surveys-section {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 34, 60, 0.08);
}

/* Anketler başlığı: tıklanamaz yeni anket sayacı — yalnızca dolgulu hap */
.panel-surveys-new-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    padding: 0.2em 0.48em;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: none;
    line-height: 1.2;
    flex-shrink: 0;
}

/* ── Panel: Pazar yeri — manşet (gradient + başlık) + grid / Swiper ── */
.panel-marketplace-hub {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-sizing: border-box;
}

.panel-marketplace-hub__deck {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
    padding-inline: 0;
}

.panel-marketplace-hub__deck--swiper {
    padding-top: 0;
}

.panel-marketplace-hub__grid {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
}

.panel-marketplace-hub__cell {
    min-width: 0;
    width: 100%;
}

.panel-marketplace-hub__swiper.panel-hub-swiper {
    border-radius: 0.88rem;
}

.panel-marketplace-hub__swiper.panel-hub-swiper .swiper-wrapper {
    display: flex;
    gap: 12px;
}

.panel-marketplace-hub__swiper.panel-hub-swiper .swiper-slide {
    flex: 0 0 calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    min-width: 0;
    height: auto;
    box-sizing: border-box;
}

.panel-marketplace-hub__swiper.panel-hub-swiper.swiper-initialized .swiper-wrapper {
    gap: 0;
}

.panel-marketplace-hub__swiper.panel-hub-swiper .panel-hub-card__footer {
    padding: 0.42rem 0.48rem 0.48rem;
}

.panel-marketplace-hub__swiper.panel-hub-swiper .panel-hub-card__title {
    font-size: 0.72rem;
}

.panel-marketplace-hub__swiper.panel-hub-swiper .panel-hub-card__meta {
    font-size: 0.68rem;
}

.panel-marketplace-hub__grid .panel-hub-card__footer {
    padding: 0.42rem 0.48rem 0.48rem;
}

.panel-marketplace-hub__grid .panel-hub-card__title {
    font-size: 0.72rem;
}

.panel-marketplace-hub__grid .panel-hub-card__meta {
    font-size: 0.68rem;
}

/* ── Panel: Pazar / Duyuru / Anket — ortak görsel kart + Swiper ── */
.panel-hub-swiper-wrap {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.panel-hub-swiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 0.88rem;
    overflow: hidden;
    --swiper-pagination-bottom: 0.35rem;
}

.panel-hub-swiper .swiper-wrapper {
    box-sizing: border-box;
}

.panel-hub-swiper .swiper-slide {
    max-width: 100%;
    box-sizing: border-box;
}

.panel-hub-swiper .swiper-pagination {
    position: relative;
    margin-top: 0.42rem;
    padding-bottom: 0.1rem;
}

.panel-hub-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(148, 163, 184, 0.45);
    opacity: 1;
}

.panel-hub-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
}

.panel-hub-card {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.88rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg, rgba(14, 24, 44, 0.92));
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a.panel-hub-card:hover,
button.panel-hub-card:hover {
    border-color: rgba(3, 169, 244, 0.35);
    box-shadow: 0 10px 28px rgba(2, 8, 23, 0.28);
}

a.panel-hub-card:active,
button.panel-hub-card:active {
    transform: scale(0.99);
}

button.panel-hub-card {
    cursor: pointer;
    font: inherit;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
}

a.panel-hub-card:focus-visible,
button.panel-hub-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.42);
}

.panel-hub-card__media {
    position: relative;
    min-height: 9.25rem;
    max-width: 100%;
    overflow: hidden;
    background: transparent;
}

.panel-hub-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(145deg, #0b1220 0%, #152536 52%, #0f1a2d 100%);
    pointer-events: none;
}

.panel-hub-card--marketplace .panel-hub-card__media {
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 0.78rem 0.78rem 0 0;
}

.panel-hub-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.panel-hub-card__media-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.35) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.panel-hub-card__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(2, 8, 23, 0.68) 0%, rgba(2, 8, 23, 0.2) 44%, transparent 100%);
}

/* Pazar — en son eklenen kart: tam yüzey mor kaplama kullanmayın */
.panel-hub-card--latest .panel-hub-card__media::before {
    display: none;
}

.panel-hub-card__img.is-broken {
    display: none;
}

/* Pazar üst manşet: ortak yerlesim (--new mor, --latest sari tam genişlik) */
.panel-hub-card__listing-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.42rem 0.65rem 0.62rem;
    box-sizing: border-box;
    text-align: center;
    font-size: clamp(0.62rem, 3.1vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.15;
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0;
    border-radius: 0;
    backface-visibility: hidden;
}

.panel-hub-card__listing-badge--new {
    color: rgba(255, 255, 255, 0.98);
    background: linear-gradient(
        180deg,
        rgba(91, 33, 182, 0.88) 0%,
        rgba(124, 58, 237, 0.42) 38%,
        rgba(167, 139, 250, 0.16) 68%,
        rgba(167, 139, 250, 0) 100%
    );
    box-shadow: none;
    text-shadow:
        0 1px 2px rgba(2, 8, 23, 0.5),
        0 3px 14px rgba(2, 24, 42, 0.4);
    animation: panelHubCardNewListingHeadline 2.75s ease-in-out infinite;
    will-change: transform, opacity;
}

.panel-hub-card__listing-badge--latest {
    color: rgba(72, 46, 0, 0.96);
    background: linear-gradient(
        180deg,
        rgba(254, 240, 138, 0.96) 0%,
        rgba(250, 204, 21, 0.72) 46%,
        rgba(234, 179, 8, 0.22) 76%,
        rgba(234, 179, 8, 0) 100%
    );
    box-shadow: none;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35),
        0 1px 2px rgba(120, 80, 0, 0.18);
    animation: none;
    transform: none;
    will-change: auto;
}

.panel-hub-card--latest .panel-hub-card__listing-badge--latest {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

@keyframes panelHubCardNewListingHeadline {
    0%,
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes panelHubCardLatestBanner {
    0%,
    100% {
        opacity: 0.94;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .panel-hub-card__listing-badge--new,
    .panel-hub-card__listing-badge--latest {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

body.theme-light .panel-hub-card__listing-badge--new,
html.theme-light-preload .panel-hub-card__listing-badge--new {
    background: linear-gradient(
        180deg,
        rgba(109, 40, 217, 0.85) 0%,
        rgba(147, 51, 234, 0.38) 40%,
        rgba(167, 139, 250, 0.12) 72%,
        rgba(167, 139, 250, 0) 100%
    );
    text-shadow:
        0 1px 2px rgba(2, 8, 23, 0.35),
        0 2px 10px rgba(15, 23, 42, 0.2);
}

body.theme-light .panel-hub-card__listing-badge--latest,
html.theme-light-preload .panel-hub-card__listing-badge--latest {
    color: rgba(55, 35, 0, 0.94);
    background: linear-gradient(
        180deg,
        rgba(254, 249, 195, 0.96) 0%,
        rgba(253, 224, 71, 0.7) 46%,
        rgba(250, 204, 21, 0.2) 76%,
        rgba(250, 204, 21, 0) 100%
    );
    box-shadow: none;
}

.panel-hub-card__marquee {
    position: absolute;
    top: 0.48rem;
    left: 0;
    right: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.panel-hub-card__marquee-track {
    display: flex;
    width: max-content;
    animation: panel-hub-marquee-shift 18s linear infinite;
}

.panel-hub-card__marquee-track span {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

@keyframes panel-hub-marquee-shift {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .panel-hub-card__marquee-track {
        animation: none;
    }
}

.panel-hub-card__watermark {
    position: absolute;
    bottom: 0.42rem;
    right: 0.55rem;
    z-index: 1;
    font-size: 2rem;
    line-height: 1;
    opacity: 0.18;
    color: #ffffff;
    pointer-events: none;
}

.panel-hub-card__placeholder-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: rgba(255, 255, 255, 0.22);
    z-index: 0;
}

.panel-hub-card__media--placeholder {
    min-height: 8.5rem;
}

.panel-hub-card__media--notice.panel-hub-card__media--placeholder {
    background: linear-gradient(155deg, rgba(3, 169, 244, 0.22), #0f1a2d 70%);
}

.panel-hub-card__media--notice {
    background: linear-gradient(150deg, rgba(3, 169, 244, 0.35) 0%, #0f1a2d 55%, #0b1220 100%);
}

.panel-hub-card--notice-urgent .panel-hub-card__media--notice {
    background: linear-gradient(150deg, rgba(240, 80, 80, 0.45) 0%, #1a0f12 58%, #0b1220 100%);
}

.panel-hub-card--notice-done .panel-hub-card__media--notice {
    background: linear-gradient(150deg, rgba(22, 196, 122, 0.38) 0%, #0f1a14 58%, #0b1220 100%);
}

.panel-hub-card__media--survey {
    background: linear-gradient(180deg, #141f33 0%, #101b2e 48%, #0b1220 100%);
}

.panel-hub-card__footer--survey {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.panel-hub-card__vote-btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.42rem;
    padding: 0.58rem 0.85rem;
    border-radius: 0.72rem;
    border: 1px solid rgba(3, 169, 244, 0.45);
    background: var(--primary);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.panel-hub-card__vote-btn:hover {
    background: var(--primary-hover);
    border-color: rgba(3, 169, 244, 0.65);
}

.panel-hub-card__vote-btn:active {
    transform: scale(0.99);
}

body.theme-light .panel-hub-card__vote-btn,
html.theme-light-preload .panel-hub-card__vote-btn {
    box-shadow: 0 4px 14px rgba(3, 169, 244, 0.22);
}

body.theme-light .panel-hub-card__vote-btn:hover,
html.theme-light-preload .panel-hub-card__vote-btn:hover {
    box-shadow: 0 6px 18px rgba(3, 169, 244, 0.28);
}

.panel-hub-card__footer {
    padding: 0.62rem 0.78rem 0.72rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.panel-hub-card__title {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    color: #eaf3ff;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.panel-hub-card__meta {
    margin: 0.28rem 0 0;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(180, 205, 232, 0.72);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.panel-hub-card__cta {
    display: inline-flex;
    margin-top: 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.panel-hub-card__cta--inline {
    display: inline-block;
    margin-top: 0.38rem;
    color: rgba(186, 220, 255, 0.88);
}

body.theme-light .panel-hub-card,
html.theme-light-preload .panel-hub-card {
    background: #ffffff;
    border-color: #e2edf6;
}

body.theme-light .panel-hub-card__title,
html.theme-light-preload .panel-hub-card__title {
    color: #12243b;
}

body.theme-light .panel-hub-card__meta,
html.theme-light-preload .panel-hub-card__meta {
    color: #5f738d;
}

body.theme-light .panel-hub-card__cta--inline,
html.theme-light-preload .panel-hub-card__cta--inline {
    color: #3e5d78;
}

body.theme-light a.panel-hub-card:hover,
body.theme-light button.panel-hub-card:hover,
html.theme-light-preload a.panel-hub-card:hover,
html.theme-light-preload button.panel-hub-card:hover {
    border-color: rgba(3, 169, 244, 0.45);
    box-shadow: 0 12px 32px rgba(15, 52, 90, 0.12);
}

.panel-survey-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.panel-survey-list__item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.panel-survey-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg, rgba(14, 24, 44, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.82rem;
    padding: 0.62rem 0.72rem;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    position: relative;
}

.panel-survey-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(3, 169, 244, 0.3);
}

.panel-survey-item:active {
    transform: scale(0.98);
}

.panel-survey-item:focus-visible {
    outline: none;
    border-color: rgba(3, 169, 244, 0.55);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.35);
}

button.panel-survey-item {
    width: 100%;
    font: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.panel-survey-item__bar {
    width: 3px;
    border-radius: 3px;
    align-self: stretch;
    flex-shrink: 0;
    min-height: 28px;
}

.panel-survey-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.45rem;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.panel-survey-item__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.panel-survey-item__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ddeeff;
    line-height: 1.3;
    margin: 0;
    white-space: normal;
}

.panel-survey-item__date {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.62rem;
    color: rgba(130, 170, 210, 0.5);
}

.panel-survey-item__date i {
    font-size: 0.58rem;
}

.panel-survey-item__cta {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.08rem;
}

.panel-survey-item__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.57rem;
    font-weight: 700;
    padding: 0.18em 0.55em;
    border-radius: 999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex-shrink: 0;
    align-self: center;
}

.panel-survey-item--open .panel-survey-item__bar {
    background: var(--primary);
}

.panel-survey-item--open .panel-survey-item__icon {
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
}

.panel-survey-item--open .panel-survey-item__badge {
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
}

.panel-survey-item--closed .panel-survey-item__bar {
    background: rgba(148, 163, 184, 0.55);
}

.panel-survey-item--closed .panel-survey-item__icon {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.panel-survey-item--closed .panel-survey-item__badge {
    background: rgba(148, 163, 184, 0.14);
    color: #94a3b8;
}

/* Panel: Pazar yeri — anket satırı ile aynı düzen */
.panel-marketplace-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg, rgba(14, 24, 44, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.82rem;
    padding: 0.62rem 0.72rem;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.18s ease, border-color 0.2s ease;
    position: relative;
}

.panel-marketplace-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 158, 11, 0.35);
}

.panel-marketplace-item:active {
    transform: scale(0.98);
}

.panel-marketplace-item:focus-visible {
    outline: none;
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28);
}

.panel-marketplace-item__bar {
    width: 3px;
    border-radius: 3px;
    align-self: stretch;
    flex-shrink: 0;
    min-height: 28px;
    background: #f59e0b;
}

.panel-marketplace-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.45rem;
    font-size: 0.7rem;
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
}

.panel-marketplace-item__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.panel-marketplace-item__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ddeeff;
    line-height: 1.3;
    margin: 0;
}

.panel-marketplace-item__date {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.62rem;
    color: rgba(130, 170, 210, 0.5);
}

.panel-marketplace-item__date i {
    font-size: 0.58rem;
}

.panel-marketplace-item__cta {
    font-size: 0.62rem;
    font-weight: 600;
    color: #f59e0b;
    margin-top: 0.08rem;
}

.panel-marketplace-item__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.57rem;
    font-weight: 700;
    padding: 0.18em 0.55em;
    border-radius: 999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex-shrink: 0;
    align-self: center;
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
}

.panel-marketplace-item--empty .panel-marketplace-item__bar {
    background: rgba(148, 163, 184, 0.55);
}

.panel-marketplace-item--empty .panel-marketplace-item__icon {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.panel-marketplace-item--empty .panel-marketplace-item__cta {
    color: rgba(130, 170, 210, 0.65);
}

.panel-marketplace-item--empty .panel-marketplace-item__badge {
    background: rgba(148, 163, 184, 0.14);
    color: #94a3b8;
}

body.theme-light .panel-survey-item,
html.theme-light-preload .panel-survey-item {
    background: #ffffff;
    border-color: #e2edf6;
}

body.theme-light .panel-survey-item:hover,
html.theme-light-preload .panel-survey-item:hover {
    background: #f4f9fe;
}

body.theme-light .panel-survey-item__title,
html.theme-light-preload .panel-survey-item__title {
    color: #0f2840;
}

body.theme-light .panel-survey-item__date,
html.theme-light-preload .panel-survey-item__date {
    color: #8aa5bf;
}

body.theme-light .panel-survey-item__cta,
html.theme-light-preload .panel-survey-item__cta {
    color: #0288c2;
}

body.theme-light .panel-survey-item--open .panel-survey-item__badge,
html.theme-light-preload .panel-survey-item--open .panel-survey-item__badge {
    background: rgba(3, 169, 244, 0.08);
    color: #0288c2;
}

body.theme-light .panel-survey-item--closed .panel-survey-item__badge,
html.theme-light-preload .panel-survey-item--closed .panel-survey-item__badge {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

body.theme-light .panel-marketplace-item,
html.theme-light-preload .panel-marketplace-item {
    background: #ffffff;
    border-color: #e2edf6;
}

body.theme-light .panel-marketplace-item:hover,
html.theme-light-preload .panel-marketplace-item:hover {
    background: #fffbf5;
    border-color: rgba(217, 119, 6, 0.28);
}

body.theme-light .panel-marketplace-item__title,
html.theme-light-preload .panel-marketplace-item__title {
    color: #0f2840;
}

body.theme-light .panel-marketplace-item__date,
html.theme-light-preload .panel-marketplace-item__date {
    color: #8aa5bf;
}

body.theme-light .panel-marketplace-item__cta,
html.theme-light-preload .panel-marketplace-item__cta {
    color: #d97706;
}

body.theme-light .panel-marketplace-item__badge,
html.theme-light-preload .panel-marketplace-item__badge {
    background: rgba(245, 158, 11, 0.12);
    color: #c2410c;
}

body.theme-light .panel-marketplace-item--empty .panel-marketplace-item__badge,
html.theme-light-preload .panel-marketplace-item--empty .panel-marketplace-item__badge {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

body.theme-light .panel-notice-item:hover,
html.theme-light-preload .panel-notice-item:hover {
    background: #f4f9fe;
}

body.theme-light .panel-notice-item__title,
html.theme-light-preload .panel-notice-item__title {
    color: #0f2840;
}

body.theme-light .panel-notice-item__date,
html.theme-light-preload .panel-notice-item__date {
    color: #8aa5bf;
}

body.theme-light .panel-notice-item--urgent .panel-notice-item__badge,
html.theme-light-preload .panel-notice-item--urgent .panel-notice-item__badge {
    background: rgba(240, 80, 80, 0.08);
    color: #d43030;
}

body.theme-light .panel-notice-item--done .panel-notice-item__badge,
html.theme-light-preload .panel-notice-item--done .panel-notice-item__badge {
    background: rgba(22, 196, 122, 0.1);
    color: #108a55;
}

body.theme-light .panel-notice-item--info .panel-notice-item__badge,
html.theme-light-preload .panel-notice-item--info .panel-notice-item__badge {
    background: rgba(3, 169, 244, 0.08);
    color: #0288c2;
}

.panel-mobile-header {
    display: none;
}

@media (max-width: 820px) {
    body.theme-light .panel-mobile-header .topbar-menu-btn,
    html.theme-light-preload .panel-mobile-header .topbar-menu-btn,
    body.theme-light .units-period-banner--page-slot .topbar-menu-btn,
    html.theme-light-preload .units-period-banner--page-slot .topbar-menu-btn {
        color: #ffffff;
    }

    .dashboard-topbar {
        display: none;
    }

    .dashboard-shell--panel-home .dashboard-topbar {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 60;
    }

    .dashboard-shell--profile-page .dashboard-topbar,
    .dashboard-shell--units-page .dashboard-topbar,
    .dashboard-shell--payments-page .dashboard-topbar,
    .dashboard-shell--users-page .dashboard-topbar,
    .dashboard-shell--unit-payments-page .dashboard-topbar,
    .dashboard-shell--requests-page .dashboard-topbar,
    .dashboard-shell.dashboard-fullbleed:not(.dashboard-shell--panel-home):not(.dashboard-shell--requests-page) .dashboard-topbar {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 60;
    }

    /* Sticky, scroll alanı .dashboard-content (topbar dışında); top: 0 = nav ile bitişik. var(--topbar-h) üstte çift boşluk yaratırdı. */
    .dashboard-shell--profile-page .units-period-banner--page-slot,
    .dashboard-shell--units-page .units-period-banner--page-slot,
    .dashboard-shell--payments-page .units-period-banner--page-slot,
    .dashboard-shell--users-page .units-period-banner--page-slot,
    .dashboard-shell--requests-page .units-period-banner--page-slot,
    .dashboard-shell--announcements-page .units-period-banner--page-slot,
    .dashboard-shell--surveys-page .units-period-banner--page-slot,
    .dashboard-shell--listings-page .units-period-banner--page-slot,
    .dashboard-shell--listing-detail-page .units-period-banner--page-slot,
    .dashboard-shell--firms-page .units-period-banner--page-slot,
    .dashboard-shell--vehicles-page .units-period-banner--page-slot,
    .dashboard-shell--unit-payments-page .units-period-banner--page-slot,
    .dashboard-shell.dashboard-fullbleed:not(.dashboard-shell--panel-home):not(.dashboard-shell--requests-page) .units-period-banner--page-slot {
        position: sticky !important;
        top: 0 !important;
        z-index: 56 !important;
        border-radius: 0 0 0.88rem 0.88rem;
    }

    /* Desktop mobil/tablet kabuğu: sticky alan = .dashboard-content; topbar ile banner arası boş kalmamalı */
    body.has-dashboard-shell.browser-mobile-shell .units-period-banner--page-slot,
    body.has-dashboard-shell.browser-mobile-shell .panel-overview-card--banner-slot {
        top: 0 !important;
    }

    .panel-mobile-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 60;
        margin: 0;
        padding: 0.88rem 0.82rem 0.74rem;
        border-radius: 0 0 0.95rem 0.95rem;
        border: 0;
        /* Sticky header arkasından tablo içeriğinin "görünmesini" engellemek icin arka plan opak yapilir. */
        background: var(--mobile-top-gradient);
        box-shadow: var(--mobile-top-shadow);
    }

    .panel-mobile-header__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .units-mobile-back-title {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        color: #ffffff;
        text-decoration: none;
        font-size: 0.84rem;
        font-weight: 600;
    }

    .units-mobile-back-title i {
        font-size: 0.82rem;
    }

    .panel-mobile-header__actions {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .panel-mobile-header .panel-mobile-topbar-dropdown,
    .units-period-banner--page-slot .panel-mobile-topbar-dropdown {
        order: 2;
        margin-right: 0;
        max-width: none;
        gap: 0.35rem;
    }

    .panel-mobile-header .panel-mobile-topbar-dropdown .topbar-notification-btn,
    .panel-mobile-header .panel-mobile-topbar-dropdown .panel-mobile-topbar-user-btn,
    .units-period-banner--page-slot .panel-mobile-topbar-dropdown .topbar-notification-btn,
    .units-period-banner--page-slot .panel-mobile-topbar-dropdown .panel-mobile-topbar-user-btn {
        order: initial;
    }

    .panel-mobile-header__meta {
        margin-top: 0.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        flex-wrap: wrap;
    }

    .panel-mobile-header .panel-mobile-topbar-user-btn,
    .units-period-banner--page-slot .panel-mobile-topbar-user-btn {
        min-height: 36px;
        min-width: 42px;
        padding-left: 0.42rem;
        padding-right: 0.42rem;
    }

    .panel-mobile-header .topbar-user-btn .user-avatar,
    .units-period-banner--page-slot .topbar-user-btn .user-avatar {
        flex: 0 0 auto;
    }

    .panel-mobile-header .topbar-user-btn .status-dot,
    .units-period-banner--page-slot .topbar-user-btn .status-dot {
        width: 7px;
        height: 7px;
        background: #22c55e;
        border: 2px solid rgba(10, 22, 42, 0.85);
        box-shadow: none;
    }

    body.theme-light .panel-mobile-header .topbar-user-btn .status-dot,
    html.theme-light-preload .panel-mobile-header .topbar-user-btn .status-dot,
    body.theme-light .units-period-banner--page-slot .topbar-user-btn .status-dot,
    html.theme-light-preload .units-period-banner--page-slot .topbar-user-btn .status-dot {
        border-color: rgba(255, 255, 255, 0.85);
    }

    .panel-mobile-header .desktop-user-name,
    .units-period-banner--page-slot .desktop-user-name {
        display: none;
    }

    .panel-mobile-header .user-chevron,
    .units-period-banner--page-slot .user-chevron {
        display: none;
    }

    .panel-mobile-header .desktop-theme-toggle,
    .units-period-banner--page-slot .desktop-theme-toggle {
        display: none !important;
    }

    .panel-mobile-header .topbar-menu-btn,
    .units-period-banner--page-slot .topbar-menu-btn {
        color: #ffffff;
    }

    .panel-mobile-header .topbar-menu-btn,
    .units-period-banner--page-slot .topbar-menu-btn,
    .panel-mobile-header .header-icon-btn,
    .units-period-banner--page-slot .header-icon-btn {
        background: rgba(255, 255, 255, 0.16);
        color: rgba(255, 255, 255, 0.96);
        border: 0;
    }

    .panel-mobile-header .topbar-menu-btn:hover,
    .units-period-banner--page-slot .topbar-menu-btn:hover,
    .panel-mobile-header .header-icon-btn:hover,
    .units-period-banner--page-slot .header-icon-btn:hover {
        background: rgba(255, 255, 255, 0.26);
        border-color: rgba(255, 255, 255, 0.45);
    }

    .panel-mobile-header .topbar-user-btn,
    .units-period-banner--page-slot .topbar-user-btn {
        background: rgba(255, 255, 255, 0.16);
        border-color: transparent;
        color: #ffffff;
        box-shadow: none;
    }

    .panel-mobile-header .topbar-user-dropdown.is-open .topbar-user-btn,
    .units-period-banner--page-slot .topbar-user-dropdown.is-open .topbar-user-btn {
        border-color: transparent;
        box-shadow: none;
    }

    body.theme-light .panel-mobile-header .topbar-menu-btn,
    html.theme-light-preload .panel-mobile-header .topbar-menu-btn,
    body.theme-light .units-period-banner--page-slot .topbar-menu-btn,
    html.theme-light-preload .units-period-banner--page-slot .topbar-menu-btn,
    body.theme-light .panel-mobile-header .header-icon-btn,
    html.theme-light-preload .panel-mobile-header .header-icon-btn,
    body.theme-light .units-period-banner--page-slot .header-icon-btn,
    html.theme-light-preload .units-period-banner--page-slot .header-icon-btn,
    body.theme-light .panel-mobile-header .topbar-user-btn,
    html.theme-light-preload .panel-mobile-header .topbar-user-btn,
    body.theme-light .units-period-banner--page-slot .topbar-user-btn,
    html.theme-light-preload .units-period-banner--page-slot .topbar-user-btn {
        background: rgba(255, 255, 255, 0.2);
        border-color: transparent;
        color: #ffffff;
        box-shadow: none;
    }

    body.theme-light .panel-mobile-header .topbar-menu-btn:hover,
    html.theme-light-preload .panel-mobile-header .topbar-menu-btn:hover,
    body.theme-light .units-period-banner--page-slot .topbar-menu-btn:hover,
    html.theme-light-preload .units-period-banner--page-slot .topbar-menu-btn:hover,
    body.theme-light .panel-mobile-header .header-icon-btn:hover,
    html.theme-light-preload .panel-mobile-header .header-icon-btn:hover,
    body.theme-light .units-period-banner--page-slot .header-icon-btn:hover,
    html.theme-light-preload .units-period-banner--page-slot .header-icon-btn:hover,
    body.theme-light .panel-mobile-header .topbar-user-btn:hover,
    html.theme-light-preload .panel-mobile-header .topbar-user-btn:hover,
    body.theme-light .units-period-banner--page-slot .topbar-user-btn:hover,
    html.theme-light-preload .units-period-banner--page-slot .topbar-user-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: transparent;
        color: #ffffff;
    }

    body.theme-light .panel-mobile-header .topbar-notification-drawer__panel,
    html.theme-light-preload .panel-mobile-header .topbar-notification-drawer__panel,
    body.theme-light .units-period-banner--page-slot .topbar-notification-drawer__panel,
    html.theme-light-preload .units-period-banner--page-slot .topbar-notification-drawer__panel {
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    body.theme-light .panel-mobile-header .topbar-notification-drawer__title-text,
    html.theme-light-preload .panel-mobile-header .topbar-notification-drawer__title-text,
    body.theme-light .units-period-banner--page-slot .topbar-notification-drawer__title-text,
    html.theme-light-preload .units-period-banner--page-slot .topbar-notification-drawer__title-text {
        color: #152235;
    }

    body.theme-light .panel-mobile-header .topbar-notification-dropdown__empty,
    body.theme-light .panel-mobile-header .topbar-notification-dropdown__hint,
    html.theme-light-preload .panel-mobile-header .topbar-notification-dropdown__empty,
    html.theme-light-preload .panel-mobile-header .topbar-notification-dropdown__hint,
    body.theme-light .units-period-banner--page-slot .topbar-notification-dropdown__empty,
    body.theme-light .units-period-banner--page-slot .topbar-notification-dropdown__hint,
    html.theme-light-preload .units-period-banner--page-slot .topbar-notification-dropdown__empty,
    html.theme-light-preload .units-period-banner--page-slot .topbar-notification-dropdown__hint {
        color: #4f647c;
    }

    .panel-mobile-header__mode-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.2rem 0.52rem;
        border-radius: 999px;
        border: 1px solid rgba(232, 245, 255, 0.34);
        background: rgba(231, 244, 255, 0.16);
        color: rgba(241, 248, 255, 0.96);
        font-size: 0.66rem;
        font-weight: 600;
    }

    .panel-mobile-header__date {
        color: rgba(227, 241, 255, 0.92);
        font-size: 0.72rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        opacity: 0.9;
    }

    .panel-mobile-header__welcome {
        margin: 0.42rem 0 0;
        color: rgba(226, 241, 255, 0.88);
        font-size: 0.76rem;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
    }

    .panel-mobile-header__welcome::before,
    .panel-mobile-header__welcome::after {
        content: '';
        width: clamp(26px, 10vw, 44px);
        height: 1px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(235, 247, 255, 0.45), rgba(255, 255, 255, 0));
        opacity: 0.9;
    }

    .panel-mobile-header__hero-icon {
        color: rgba(239, 248, 255, 0.96);
        font-size: 0.82rem;
        line-height: 1;
    }

    .panel-mobile-header__name {
        margin: 0.12rem 0 0;
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        text-align: center;
    }

    .panel-mobile-header__badges {
        margin-top: 0.52rem;
        display: flex;
        justify-content: center;
        gap: 0.42rem;
    }

    .panel-mobile-header__badge {
        display: inline-flex;
        align-items: center;
        gap: 0.28rem;
        padding: 0.2rem 0.5rem;
        border-radius: 8px;
        border: 0;
        background: rgba(231, 244, 255, 0.16);
        color: #f5fbff;
        font-size: 0.68rem;
        font-weight: 600;
    }

    .panel-mobile-header__stats-row {
        margin-top: 0.62rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .panel-mobile-header__stats-row--single {
        grid-template-columns: 1fr;
    }

    /* Swiper slides use flex row; force label above value */
    .panel-mobile-header__stat {
        position: relative;
        border-radius: 0.62rem;
        background: rgba(231, 244, 255, 0.12);
        padding: 0.72rem 0.5rem 0.74rem;
        padding-top: 0.92rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.42rem;
        text-align: center;
        min-height: 76px;
    }

    .panel-mobile-header__stat-link {
        position: absolute;
        top: 0.42rem;
        right: 0.42rem;
        z-index: 1;
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 0.42rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border: 0;
        background: rgba(255, 255, 255, 0.18);
        color: rgba(255, 255, 255, 0.98);
        text-decoration: none;
        transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    }

    .panel-mobile-header__stat-link:hover {
        background: rgba(255, 255, 255, 0.28);
        border-color: rgba(255, 255, 255, 0.55);
    }

    .panel-mobile-header__stat-link:active {
        transform: scale(0.96);
    }

    .panel-mobile-header__stat-link:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }

    .panel-mobile-header__stat-link-icon {
        font-size: 0.62rem;
        line-height: 1;
        opacity: 0.92;
        margin-left: 0.06rem;
    }

    .panel-mobile-header__stat-link[aria-current="page"] {
        opacity: 0.7;
    }

    .panel-mobile-header__stat-body {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
    }

    .panel-mobile-header__stat-icon {
        font-size: 1rem;
        color: rgba(232, 245, 255, 0.95);
        line-height: 1;
        opacity: 0.92;
    }

    .panel-mobile-header__stat-label {
        display: block;
        color: rgba(227, 241, 255, 0.88);
        font-size: 0.62rem;
        line-height: 1.2;
    }

    .panel-mobile-header__stat-value {
        display: block;
        color: #ffffff;
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.15;
    }

    .panel-mobile-header__stat-meta-line {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.28rem;
        font-size: 0.6rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .panel-mobile-header__stat-meta-line--open {
        color: #4ade80;
    }

    .panel-mobile-header__stat-meta-line--pending {
        color: #fb7185;
    }

    .panel-mobile-header__stat-meta-line--closed {
        color: #9ca3af;
    }

    .panel-mobile-header__status-strip {
        margin-top: 10px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding-bottom: 0.04rem;
        text-align: center;
    }

    .panel-mobile-header__status-strip::-webkit-scrollbar {
        display: none;
    }

    .panel-kasa-apartment-row--mobile {
        margin-top: 0.62rem;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    .panel-hero-modern {
        display: none;
    }

    .dashboard-shell--panel-home .panel-overview-card--banner-slot {
        margin-top: 0 !important;
    }
}

body.theme-light .panel-mobile-header,
html.theme-light-preload .panel-mobile-header {
    background: var(--mobile-top-gradient);
    box-shadow: var(--mobile-top-shadow);
}

body.theme-light .panel-mobile-header__mode-badge,
html.theme-light-preload .panel-mobile-header__mode-badge {
    border-color: rgba(231, 244, 255, 0.48);
    background: rgba(231, 244, 255, 0.2);
}

body.theme-light .panel-hero-welcome {
    color: #2f4157;
}

body.theme-light .panel-hero-modern,
html.theme-light-preload .panel-hero-modern {
    background: linear-gradient(160deg, #f7fbff, #eef6fc);
    border-color: #c9deee;
    box-shadow: 0 12px 24px rgba(15, 35, 56, 0.12);
}

body.theme-light .panel-hero-role,
html.theme-light-preload .panel-hero-role {
    color: #0e6a9a;
    border-color: rgba(3, 169, 244, 0.28);
    background: rgba(3, 169, 244, 0.11);
}

body.theme-light .panel-hero-contact-item,
html.theme-light-preload .panel-hero-contact-item {
    border-color: #d2e2ef;
    background: #f5f9fd;
    color: #516b85;
}

.apartments-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.apartments-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.apartment-metric-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    grid-column: 1 / -1;
    padding: 0.85rem 1rem;
}

.apartment-metric-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
}

.apartment-metric-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
}

.apartment-metric-value {
    margin: 0.12rem 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.apartments-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 210px;
    padding: 0.45rem 0.7rem;
    border-radius: 0.8rem;
    border: 1px solid var(--primary-border);
    background: var(--panel);
}

.units-pay-filter-select-wrap {
    position: relative;
    min-width: 178px;
    z-index: 5;
}

.units-pay-filter-select-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    color: #03a9f4;
    flex-shrink: 0;
    opacity: 0.85;
    pointer-events: none;
}

.units-pay-filter-select {
    min-height: 38px;
}

.units-pay-filter-select-wrap .custom-select-trigger {
    min-height: 0;
    height: auto;
    border-radius: 0.75rem;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #e6f0fb;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    padding-left: 2.35rem;
    padding-right: 0.82rem;
    box-shadow: none;
}

.units-pay-filter-select-wrap.is-open .custom-select-trigger {
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.units-pay-filter-select-wrap .custom-select-menu {
    border-radius: 0.8rem;
    background: #0d1729;
    border: 1px solid var(--primary-border);
    box-shadow: 0 14px 32px rgba(1, 10, 20, 0.42);
}

.units-pay-filter-select-wrap .custom-select-option {
    color: #e6f0fb;
}

.units-pay-filter-select-wrap .custom-select-option.has-divider {
    border-top-color: rgba(127, 152, 182, 0.25);
}

.units-pay-filter-select-wrap .custom-select-option:hover {
    background: var(--primary-soft);
}

.units-pay-filter-select-wrap .custom-select-option.is-selected {
    color: var(--primary);
    background: var(--primary-soft);
}

body.theme-light .units-pay-filter-select-wrap .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
    box-shadow: none;
}

html.theme-light-preload .units-pay-filter-select-wrap .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
    box-shadow: none;
}

body.theme-light .units-pay-filter-select-wrap.is-open .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.1);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.14);
}

html.theme-light-preload .units-pay-filter-select-wrap.is-open .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.1);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.14);
}

body.theme-light .units-pay-filter-select-wrap .custom-select-menu {
    background: #ffffff;
    border-color: var(--primary-border);
}

html.theme-light-preload .units-pay-filter-select-wrap .custom-select-menu {
    background: #ffffff;
    border-color: var(--primary-border);
}

body.theme-light .units-pay-filter-select-wrap .custom-select-option {
    color: #152235;
}

html.theme-light-preload .units-pay-filter-select-wrap .custom-select-option {
    color: #152235;
}

body.theme-light .units-pay-filter-select-icon,
html.theme-light-preload .units-pay-filter-select-icon {
    color: #028ecc;
    opacity: 1;
}

body.theme-light .units-pay-filter-select-wrap .custom-select-option.has-divider {
    border-top-color: rgba(76, 97, 120, 0.15);
}

body.theme-light .units-pay-filter-select-wrap .custom-select-option:hover {
    background: var(--primary-soft);
}

body.theme-light .units-pay-filter-select-wrap .custom-select-option.is-selected {
    color: var(--primary);
    background: var(--primary-soft);
}

.apartments-search-icon {
    color: var(--muted);
    font-size: 0.75rem;
}

.apartments-search-input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.82rem;
    outline: none;
}

.units-pay-filter-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.42rem;
    margin: 0.35rem 0 0.82rem;
    grid-column: 1 / -1;
}

@media (min-width: 821px) {
    .units-pay-filter-strip {
        display: none;
    }
}

@media (max-width: 820px) {
    .units-pay-filter-strip {
        justify-content: center;
        row-gap: 0.52rem;
    }
}

.units-pay-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.76rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.units-pay-filter-pill:hover {
    border-color: rgba(3, 169, 244, 0.42);
    color: var(--text);
}

.units-pay-filter-pill:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.55);
    outline-offset: 2px;
}

.units-pay-filter-pill.is-active {
    border-color: var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.12);
}

body.theme-light .units-pay-filter-pill {
    border-color: #d7e6f3;
    background: #fafcfe;
    color: #5f738d;
}

body.theme-light .units-pay-filter-pill:hover {
    border-color: rgba(3, 169, 244, 0.4);
    color: #3e5469;
}

body.theme-light .units-pay-filter-pill.is-active {
    border-color: var(--primary-border);
    background: rgba(3, 169, 244, 0.1);
    color: var(--primary);
}

/* Daireler: masaüstü süzüm pill'leri gece/gündüz aynı (tema birincil rengine bağlı değil) */
.dashboard-content--units-page .units-pay-filter-pill,
body.theme-light .dashboard-content--units-page .units-pay-filter-pill,
html.theme-light-preload .dashboard-content--units-page .units-pay-filter-pill {
    border-color: rgba(148, 163, 184, 0.32);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.dashboard-content--units-page .units-pay-filter-pill:hover,
body.theme-light .dashboard-content--units-page .units-pay-filter-pill:hover,
html.theme-light-preload .dashboard-content--units-page .units-pay-filter-pill:hover {
    border-color: rgba(3, 169, 244, 0.42);
    color: var(--text);
}

.dashboard-content--units-page .units-pay-filter-pill.is-active,
body.theme-light .dashboard-content--units-page .units-pay-filter-pill.is-active,
html.theme-light-preload .dashboard-content--units-page .units-pay-filter-pill.is-active {
    border-color: rgba(3, 169, 244, 0.45);
    background: rgba(3, 169, 244, 0.12);
    color: #028ecc;
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.12);
}

/* Daireler: üst şerit arama + filtre tetikleyicisi gece/gündüz aynı kart görünümü */
.dashboard-content--units-page .apartments-hero-actions .apartments-search-wrap,
body.theme-light .dashboard-content--units-page .apartments-hero-actions .apartments-search-wrap,
html.theme-light-preload .dashboard-content--units-page .apartments-hero-actions .apartments-search-wrap {
    border: 1px solid #d7e6f3;
    background: #f7fafc;
    box-shadow: none;
}

.dashboard-content--units-page .apartments-hero-actions .apartments-search-input,
body.theme-light .dashboard-content--units-page .apartments-hero-actions .apartments-search-input,
html.theme-light-preload .dashboard-content--units-page .apartments-hero-actions .apartments-search-input {
    color: #152235;
}

.dashboard-content--units-page .apartments-hero-actions .apartments-search-wrap .apartments-search-icon,
body.theme-light .dashboard-content--units-page .apartments-hero-actions .apartments-search-wrap .apartments-search-icon,
html.theme-light-preload .dashboard-content--units-page .apartments-hero-actions .apartments-search-wrap .apartments-search-icon {
    color: #5f738d;
}

.dashboard-content--units-page .apartments-hero-actions .apartments-search-wrap:focus-within,
body.theme-light .dashboard-content--units-page .apartments-hero-actions .apartments-search-wrap:focus-within,
html.theme-light-preload .dashboard-content--units-page .apartments-hero-actions .apartments-search-wrap:focus-within {
    border-color: rgba(3, 169, 244, 0.38);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.12);
}

.dashboard-content--units-page .apartments-hero-actions .units-pay-filter-select-wrap .custom-select-trigger {
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #e6f0fb;
    box-shadow: none;
}

body.theme-light .dashboard-content--units-page .apartments-hero-actions .units-pay-filter-select-wrap .custom-select-trigger,
html.theme-light-preload .dashboard-content--units-page .apartments-hero-actions .units-pay-filter-select-wrap .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.06);
    color: #152235;
    box-shadow: none;
}

.dashboard-content--units-page .apartments-hero-actions .units-pay-filter-select-wrap.is-open .custom-select-trigger {
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.theme-light .dashboard-content--units-page .apartments-hero-actions .units-pay-filter-select-wrap.is-open .custom-select-trigger,
html.theme-light-preload .dashboard-content--units-page .apartments-hero-actions .units-pay-filter-select-wrap.is-open .custom-select-trigger {
    border: 0;
    background: rgba(3, 169, 244, 0.1);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.14);
}

.dashboard-content--units-page .apartments-hero-actions .units-pay-filter-select-wrap .custom-select-label-icon,
body.theme-light .dashboard-content--units-page .apartments-hero-actions .units-pay-filter-select-wrap .custom-select-label-icon,
html.theme-light-preload .dashboard-content--units-page .apartments-hero-actions .units-pay-filter-select-wrap .custom-select-label-icon {
    color: #7dd7f8;
}

.units-page-list-wrap,
.units-page-embed-banner-wrap {
    grid-column: 1 / -1;
    min-width: 0;
}

@media (min-width: 821px) {
    .units-page-list-wrap {
        background: rgba(17, 26, 46, 0.88);
        border-radius: 1rem;
        padding: 1rem;
    }

    body.theme-light .units-page-list-wrap {
        background: #ffffff;
        border: 1px solid #d9e8f5;
        box-shadow: 0 10px 28px rgba(15, 52, 90, 0.08);
    }
}

/* Daireler: genis ekranda tablo, mobilde kart. Ayni div .units-list-mobile.unit-pay-cards-root;
   .unit-pay-cards-root tek basina olmasin: sonra gelen display:grid, display:none ezerdi. */
.units-list-desktop {
    display: none;
}

.units-list-mobile.unit-pay-cards-root {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.72rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 821px) {
    .units-list-desktop {
        display: block !important;
    }

    .units-list-desktop tbody tr.unit-desktop-sheet-row[data-unit-sheet-open="true"] {
        cursor: pointer;
    }

    .units-list-desktop tbody tr.unit-desktop-sheet-row[data-unit-sheet-open="true"]:hover {
        background: rgba(3, 169, 244, 0.07);
    }

    body.theme-light .units-list-desktop tbody tr.unit-desktop-sheet-row[data-unit-sheet-open="true"]:hover,
    html.theme-light-preload .units-list-desktop tbody tr.unit-desktop-sheet-row[data-unit-sheet-open="true"]:hover {
        background: rgba(3, 169, 244, 0.09);
    }

    .units-list-mobile.unit-pay-cards-root {
        display: none !important;
    }
}

@media (min-width: 620px) and (max-width: 820px) {
    .units-list-mobile.unit-pay-cards-root {
        grid-template-columns: repeat(auto-fill, minmax(304px, 1fr));
        gap: 0.82rem;
    }

    .units-list-mobile.unit-pay-cards-root.unit-pay-cards-root--modern {
        gap: 0.78rem;
    }
}

.unit-pay-card {
    --card-radius: 0.92rem;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 124px;
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(2, 19, 45, 0.14);
}

body.theme-light .unit-pay-card {
    background: #ffffff;
    border-color: #d9e8f5;
    box-shadow: 0 10px 28px rgba(15, 52, 90, 0.08);
}

/* Daireler mobil liste — modern kutular (accent cubuk + satir yapisi) */
.units-list-mobile.unit-pay-cards-root.unit-pay-cards-root--modern {
    gap: 0.76rem;
}

.unit-pay-card.unit-pay-card--modern {
    --card-radius: 14px;
    --accent-inset-x: calc(var(--card-radius, 14px) * 0.5);
    position: relative;
    min-height: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    box-sizing: border-box;
    border-radius: var(--card-radius);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 24px rgba(2, 19, 45, 0.2);
    padding: 0;
}

.unit-pay-card__mail-action {
    position: static;
    z-index: 4;
    display: inline-flex;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-left: auto;
    transform: none;
    border: 0;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.unit-pay-card__mail-action:hover {
    transform: scale(1.04);
    background: rgba(3, 169, 244, 0.2);
    color: var(--primary-hover);
}

.unit-pay-card__mail-action:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.theme-light .unit-pay-card__mail-action,
html.theme-light-preload .unit-pay-card__mail-action {
    background: rgba(3, 169, 244, 0.1);
    color: #0284c7;
    box-shadow: none;
}

body.theme-light .unit-pay-card.unit-pay-card--modern {
    background: linear-gradient(180deg, #ffffff 0%, #fafcfe 98%);
    border-color: rgba(215, 230, 245, 0.92);
    box-shadow: 0 10px 28px rgba(15, 52, 90, 0.085);
}

.unit-pay-card--modern .unit-pay-card__accent {
    flex: 0 0 6px;
    width: 6px;
    align-self: center;
    margin-top: calc(var(--card-radius, 14px) * 0.58);
    margin-bottom: calc(var(--card-radius, 14px) * 0.58);
    margin-left: -10px;
    margin-right: 0;
    padding: 0;
    min-height: 7rem;
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.unit-pay-card--modern[data-pay-stripe='paid'] .unit-pay-card__accent {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 48%, #16a34a 100%);
}

.unit-pay-card--modern[data-pay-stripe='advance'] .unit-pay-card__accent {
    background: linear-gradient(180deg, #38bdf8 0%, #03a9f4 48%, #0284c7 100%);
}

.unit-pay-card--modern[data-pay-stripe='pending'] .unit-pay-card__accent {
    background: linear-gradient(180deg, #f97373 0%, #dc2626 96%);
}

.unit-pay-card--modern[data-pay-stripe='overdue'] .unit-pay-card__accent {
    background: linear-gradient(180deg, #facc15 0%, #eab308 96%);
}

.unit-pay-card--modern[data-pay-stripe='none'] .unit-pay-card__accent {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

.unit-pay-card__body.unit-pay-card__body--modern {
    flex: 1;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.unit-pay-card__modern-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    position: relative;
    min-height: 0;
}

.unit-pay-card__title-belt {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
    min-width: 0;
}

.unit-pay-card__modern-head .unit-pay-card__title {
    margin: 0;
    width: 100%;
    min-width: 0;
}

.unit-pay-card__title-cluster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.35rem;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.unit-pay-card__title-cluster--solo {
    grid-template-columns: minmax(0, 1fr);
}

.unit-pay-card--modern .unit-pay-card__title-cluster .unit-pay-card__title-badge {
    width: 100%;
    min-width: 0;
    min-height: 2.05rem;
    justify-content: center;
    box-sizing: border-box;
}

.unit-pay-card__title-role-badge.user-role-badge {
    width: 100%;
    min-width: 0;
    min-height: 2.05rem;
    justify-content: center;
    box-sizing: border-box;
    align-self: stretch;
    padding: 0.3rem 0.54rem;
    font-size: 0.72rem;
    line-height: 1.15;
}

.unit-pay-card__title-role-badge.user-role-badge span {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: center;
}

.unit-pay-card__dues-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 2.05rem;
    padding: 0.28rem 0.48rem;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.42);
    background: rgba(148, 163, 184, 0.07);
}

.unit-pay-card__dues-strip--ok {
    border-color: rgba(34, 197, 94, 0.38);
    background: rgba(34, 197, 94, 0.07);
}

.unit-pay-card__dues-strip--advance {
    border-color: rgba(3, 169, 244, 0.4);
    background: rgba(3, 169, 244, 0.08);
}

.unit-pay-card__dues-strip--pending {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.07);
}

.unit-pay-card__dues-strip--overdue {
    border-color: rgba(250, 204, 21, 0.45);
    background: rgba(250, 204, 21, 0.08);
}

.unit-pay-card__dues-strip--none {
    border-color: rgba(148, 163, 184, 0.38);
    background: rgba(148, 163, 184, 0.07);
}

body.theme-light .unit-pay-card__dues-strip {
    border-color: rgba(100, 116, 139, 0.38);
    background: rgba(148, 163, 184, 0.08);
}

body.theme-light .unit-pay-card__dues-strip--ok {
    border-color: rgba(22, 163, 74, 0.32);
    background: rgba(34, 197, 94, 0.08);
}

body.theme-light .unit-pay-card__dues-strip--advance {
    border-color: rgba(3, 169, 244, 0.32);
    background: rgba(3, 169, 244, 0.08);
}

body.theme-light .unit-pay-card__dues-strip--pending {
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(239, 68, 68, 0.07);
}

body.theme-light .unit-pay-card__dues-strip--overdue {
    border-color: rgba(217, 119, 6, 0.35);
    background: rgba(250, 204, 21, 0.1);
}

body.theme-light .unit-pay-card__dues-strip--none {
    border-color: rgba(100, 116, 139, 0.32);
    background: rgba(148, 163, 184, 0.09);
}

.unit-pay-card--modern .unit-pay-card__title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    min-width: 0;
    padding: 0.22rem 0.55rem 0.22rem 0.42rem;
    border-radius: 6px;
    border: 0;
    background: rgba(3, 169, 244, 0.14);
    box-sizing: border-box;
}

.unit-pay-card--modern .unit-pay-card__title-badge-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.06rem;
    height: 1.06rem;
    border-radius: 0.4rem;
    font-size: 0.62rem;
    line-height: 1;
    color: var(--primary);
    background: rgba(3, 169, 244, 0.14);
}

.unit-pay-card--modern .unit-pay-card__title .unit-pay-card__title-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.theme-light .unit-pay-card--modern .unit-pay-card__title-badge {
    border: 0;
    background: rgba(3, 169, 244, 0.14);
}

body.theme-light .unit-pay-card--modern .unit-pay-card__title-badge-ic {
    background: rgba(3, 169, 244, 0.11);
    color: #028ecc;
}

body.theme-light .unit-pay-card--modern .unit-pay-card__title .unit-pay-card__title-label {
    color: #152235;
}

.unit-pay-card__modern-resident {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.62rem;
    text-align: left;
}

/* Ödeme tipi: ad / telefon satırının sağ ortası (duyuru anons filigranı ölçeği) */
.unit-pay-card__pay-kind-icon {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 2.1rem;
    color: rgba(148, 163, 184, 0.38);
    pointer-events: none;
    user-select: none;
}

.unit-pay-card--modern[data-pay-stripe='paid'] .unit-pay-card__pay-kind-icon {
    color: rgba(3, 169, 244, 0.35);
}

body.theme-light .unit-pay-card__pay-kind-icon {
    color: rgba(148, 163, 184, 0.42);
}

body.theme-light .unit-pay-card--modern[data-pay-stripe='paid'] .unit-pay-card__pay-kind-icon {
    color: rgba(3, 169, 244, 0.4);
}

.unit-pay-card--modern .unit-pay-card__avatar {
    flex: 0 0 auto;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    transition:
        background 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.unit-pay-card--modern .unit-pay-card__avatar.unit-pay-card__avatar--img {
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(3, 169, 244, 0.24);
}

.unit-pay-card--modern .unit-pay-card__avatar.unit-pay-card__avatar--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.unit-pay-card--modern[data-pay-stripe='paid'] .unit-pay-card__avatar {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}

.unit-pay-card--modern[data-pay-stripe='advance'] .unit-pay-card__avatar {
    background: rgba(3, 169, 244, 0.16);
    border-color: rgba(3, 169, 244, 0.36);
    color: #bae6fd;
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.14);
}

.unit-pay-card--modern[data-pay-stripe='pending'] .unit-pay-card__avatar {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.42);
    color: #fecaca;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.14);
}

.unit-pay-card--modern[data-pay-stripe='overdue'] .unit-pay-card__avatar {
    background: rgba(250, 204, 21, 0.18);
    border-color: rgba(250, 204, 21, 0.4);
    color: #fde68a;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.14);
}

.unit-pay-card--modern[data-pay-stripe='none'] .unit-pay-card__avatar {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.14);
}

body.theme-light .unit-pay-card--modern[data-pay-stripe='paid'] .unit-pay-card__avatar {
    background: rgba(22, 163, 74, 0.11);
    border-color: rgba(22, 163, 74, 0.28);
    color: #15803d;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.1);
}

body.theme-light .unit-pay-card--modern[data-pay-stripe='advance'] .unit-pay-card__avatar {
    background: rgba(3, 169, 244, 0.1);
    border-color: rgba(3, 169, 244, 0.28);
    color: #0369a1;
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.1);
}

body.theme-light .unit-pay-card--modern[data-pay-stripe='pending'] .unit-pay-card__avatar {
    background: rgba(239, 68, 68, 0.11);
    border-color: rgba(220, 38, 38, 0.28);
    color: #b91c1c;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.1);
}

body.theme-light .unit-pay-card--modern[data-pay-stripe='overdue'] .unit-pay-card__avatar {
    background: rgba(250, 204, 21, 0.16);
    border-color: rgba(234, 179, 8, 0.34);
    color: #a16207;
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.12);
}

body.theme-light .unit-pay-card--modern[data-pay-stripe='none'] .unit-pay-card__avatar {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(100, 116, 139, 0.26);
    color: #64748b;
    box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.1);
}

.unit-pay-card__resident-core {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
    align-items: flex-start;
}

.unit-pay-card__name-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.16rem;
}

.unit-pay-card__person-name {
    font-size: 0.79rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.74);
    letter-spacing: 0.01em;
}

body.theme-light .unit-pay-card__person-name {
    color: #60768d;
}

.unit-pay-card__phone {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    font-size: 0.71rem;
    color: rgba(226, 232, 240, 0.75);
}

body.theme-light .unit-pay-card__phone {
    color: rgba(21, 34, 53, 0.48);
}

.unit-pay-card__phone .fa-solid {
    color: rgba(3, 169, 244, 0.78);
}

.unit-pay-card__phone--muted {
    font-style: italic;
    opacity: 0.76;
}

.unit-pay-card__dues-strip .unit-pay-card__pill {
    position: static;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
    min-height: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* Strip = state chrome; pill = label only (no red/yellow/green pill fills here). */
.unit-pay-card__dues-strip .unit-pay-card__pill.unit-pay-card__pill--pending {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #fecaca;
}

.unit-pay-card__dues-strip .unit-pay-card__pill.unit-pay-card__pill--overdue {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #fef3c7;
}

.unit-pay-card__dues-strip .unit-pay-card__pill.unit-pay-card__pill--ok {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #ecfdf5;
}

.unit-pay-card__dues-strip .unit-pay-card__pill.unit-pay-card__pill--none {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: rgba(226, 232, 240, 0.9);
}

body.theme-light .unit-pay-card__dues-strip .unit-pay-card__pill.unit-pay-card__pill--pending {
    color: #991b1b;
}

body.theme-light .unit-pay-card__dues-strip .unit-pay-card__pill.unit-pay-card__pill--overdue {
    color: #92400e;
}

body.theme-light .unit-pay-card__dues-strip .unit-pay-card__pill.unit-pay-card__pill--ok {
    color: #166534;
    justify-content: flex-start;
}

body.theme-light .unit-pay-card__dues-strip .unit-pay-card__pill.unit-pay-card__pill--none {
    color: #64748b;
}

.unit-pay-card__dues-strip .unit-pay-card__pill-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unit-pay-card__modern-amount {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0.22rem 0.42rem;
    border-radius: 8px;
    border: 0;
    background: rgba(148, 163, 184, 0.08);
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.15;
    box-sizing: border-box;
    min-height: 2.05rem;
}

.unit-pay-card__dues-strip .unit-pay-card__modern-amount {
    flex: 0 0 auto;
    width: auto;
    max-width: 48%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    justify-content: flex-end;
    text-align: right;
}

.unit-pay-card__modern-amount-num {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unit-pay-card__modern-curr {
    font-size: 0.62rem;
    font-weight: 600;
    margin-left: 0.02rem;
    opacity: 0.82;
    flex-shrink: 0;
}

body.theme-light .unit-pay-card__modern-amount {
    background: rgba(148, 163, 184, 0.09);
    border: 0;
    color: #475569;
}

body.theme-light .unit-pay-card__dues-strip .unit-pay-card__modern-amount {
    background: transparent;
    color: #334155;
}

.unit-pay-card__meta-note {
    margin: 0;
    padding: 0.58rem 0 0;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.84);
    letter-spacing: 0.025em;
    display: flex;
    align-items: baseline;
    gap: 0.42rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.unit-pay-card__meta-row {
    margin: 0;
    padding: 0.58rem 0 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.unit-pay-card__meta-row::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.34);
}

.unit-pay-card__meta-row .unit-pay-card__meta-note {
    padding: 0;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
}

.unit-pay-card__meta-row .unit-pay-card__meta-note::after {
    display: none;
}

.unit-pay-card__meta-note::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.34);
}

.unit-pay-card__meta-note::before {
    content: '';
    flex-shrink: 0;
    width: 0.38rem;
    height: 0.38rem;
    margin-top: 0.28em;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.92);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.unit-pay-card--modern[data-pay-stripe='paid'] .unit-pay-card__meta-note::before {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.unit-pay-card--modern[data-pay-stripe='pending'] .unit-pay-card__meta-note::before {
    background: linear-gradient(180deg, #f97373 0%, #dc2626 96%);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.4);
}

.unit-pay-card--modern[data-pay-stripe='overdue'] .unit-pay-card__meta-note::before {
    background: linear-gradient(180deg, #facc15 0%, #eab308 96%);
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.38);
}

.unit-pay-card--modern[data-pay-stripe='none'] .unit-pay-card__meta-note {
    color: rgba(203, 213, 225, 0.95);
    margin-top: auto;
    padding-top: 0.58rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.unit-pay-card--modern[data-pay-stripe='none'] .unit-pay-card__meta-note::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.34);
}

.unit-pay-card--modern[data-pay-stripe='none'] .unit-pay-card__meta-note::before {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.35);
}

body.theme-light .unit-pay-card--modern[data-pay-stripe='paid'] .unit-pay-card__meta-note,
body.theme-light .unit-pay-card--modern[data-pay-stripe='pending'] .unit-pay-card__meta-note,
body.theme-light .unit-pay-card--modern[data-pay-stripe='overdue'] .unit-pay-card__meta-note,
body.theme-light .unit-pay-card--modern[data-pay-stripe='none'] .unit-pay-card__meta-note {
    color: #64748b;
}

body.theme-light .unit-pay-card--modern[data-pay-stripe='none'] .unit-pay-card__meta-note::after {
    border-top-color: rgba(148, 163, 184, 0.5);
}

body.theme-light .unit-pay-card__meta-row::before {
    border-top-color: rgba(148, 163, 184, 0.5);
}

body.theme-light .unit-pay-card__meta-note::before {
    box-shadow: 0 0 0 1px rgba(15, 52, 90, 0.12);
}

body.theme-light .unit-pay-card__meta-note {
    color: #64748b;
}

.unit-pay-card__makbuz-link-wrap {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    margin-left: auto;
}

.unit-pay-card__makbuz-link {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.71rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition:
        opacity 0.14s ease,
        color 0.14s ease;
}

.unit-pay-card__makbuz-link:hover {
    text-decoration: none;
    opacity: 0.86;
}

.unit-pay-card__makbuz-link:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.55);
    outline-offset: 2px;
}

.unit-pay-card__modern-center {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.unit-pay-card__modern-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* accent ile icerik arasi: fazla boslugu onlemek icin sapma clamp(min>max idi) yerine makul ara mesafe */
    gap: clamp(0.28rem, 1.4vw, 0.42rem);
    padding: clamp(0.72rem, 2.8vw, 0.88rem) 0.88rem clamp(0.72rem, 2.8vw, 0.88rem) var(--accent-inset-x);
}

@media (max-width: 820px) {
    .unit-pay-card.unit-pay-card--modern {
        min-height: 7.65rem;
    }

    .unit-pay-card__modern-main {
        padding-top: clamp(0.82rem, 3vw, 1rem);
        padding-bottom: clamp(0.82rem, 3vw, 1rem);
        /* Mobilde kart icinde sol daha tok, sag biraz daha nefes alir */
        padding-right: 0.95rem;
        padding-left: calc(var(--accent-inset-x) + 0.06rem);
        gap: 0.35rem;
    }
}

form.unit-pay-del-form-rail {
    flex: 1 1 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.unit-pay-card--modern .unit-pay-card__rail {
    align-self: stretch;
    flex: 0 0 3.15rem;
    min-height: auto;
}

@media (max-width: 380px) {
    .unit-pay-card--modern .unit-pay-card__rail {
        flex-basis: 2.92rem;
    }
}

.unit-pay-card__side-index {
    flex: 0 0 auto;
    align-self: center;
    padding: 0.35rem 0 0.35rem 0.62rem;
}

.unit-pay-card__idx-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-width: 2.65rem;
    padding: 0.36rem 0.62rem;
    border-radius: 8px;
    border: 1px solid rgba(3, 169, 244, 0.28);
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
}

.unit-pay-card__idx-icon {
    display: block;
    font-size: 0.62rem;
    line-height: 1;
    opacity: 0.92;
}

.unit-pay-card__idx-num {
    font-size: 0.76rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    line-height: 1;
}

body.theme-light .unit-pay-card__idx-badge {
    background: rgba(3, 169, 244, 0.1);
    border-color: rgba(3, 169, 244, 0.24);
    color: #0d7bb3;
}

.unit-pay-card__body {
    flex: 1;
    min-width: 0;
    padding: 0.68rem 0.52rem 0.52rem 0.52rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.unit-pay-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.unit-pay-card__title {
    margin: 0;
    max-width: 100%;
    min-width: 0;
    line-height: 1.25;
}

.unit-pay-card__title-label {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
    display: block;
    min-width: 0;
    word-break: break-word;
}

body.theme-light .unit-pay-card__title-label {
    color: #152235;
}

.unit-pay-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.26rem;
    padding: 0.22rem 0.42rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Daire karti gece/gunduz uyumu */
.unit-pay-card--modern .unit-pay-card__person-name,
.unit-pay-card--modern .unit-pay-card__phone,
.unit-pay-card--modern .unit-pay-card__meta-note {
    color: rgba(226, 232, 240, 0.9);
}

.unit-pay-card--modern .unit-pay-card__phone--muted {
    color: rgba(203, 213, 225, 0.8);
}

body.theme-light .unit-pay-card--modern .unit-pay-card__person-name {
    color: #152235;
}

body.theme-light .unit-pay-card--modern .unit-pay-card__phone {
    color: rgba(21, 34, 53, 0.56);
}

body.theme-light .unit-pay-card--modern .unit-pay-card__phone--muted {
    color: #64748b;
}

body.theme-light .unit-pay-card--modern .unit-pay-card__rail-seg--pay {
    background: #039be5;
}

body.theme-light .unit-pay-card--modern .unit-pay-card__rail-seg--pay:hover {
    background: #0288d1;
}

body.theme-light .unit-pay-card--modern .unit-pay-card__rail-seg--edit {
    background: #0288d1;
}

body.theme-light .unit-pay-card--modern .unit-pay-card__rail-seg--edit:hover {
    background: #0277bd;
}

body.theme-light .unit-pay-card--modern .unit-pay-card__rail-seg--del {
    background: #d32f2f;
}

body.theme-light .unit-pay-card--modern .unit-pay-card__rail-seg--del:hover {
    background: #c62828;
}

.unit-pay-card__people {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.unit-pay-card__chip {
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.72rem;
}

.unit-pay-card__chip--vacant {
    gap: 0.35rem;
    width: auto !important;
    height: auto !important;
    padding: 0.28rem 0.55rem 0.3rem;
    background: rgba(148, 163, 184, 0.09);
    border-color: rgba(148, 163, 184, 0.35);
    color: var(--muted);
    font-size: 0.66rem;
}

body.theme-light .unit-pay-card__chip--vacant {
    background: rgba(15, 34, 53, 0.04);
    border-color: rgba(15, 34, 53, 0.1);
}

.unit-pay-card__chip--vacant i {
    opacity: 0.82;
    font-size: 0.74rem;
}

.unit-pay-card__chip-role {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.unit-pay-card__chip--filled {
    gap: 0.35rem;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    padding: 0.26rem 0.45rem;
    min-height: 2.15rem;
}

.unit-pay-card__chip-stack {
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
    align-items: flex-start;
    min-width: 0;
}

.unit-pay-card__chip-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unit-pay-card__chip-kind {
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.unit-pay-card__chip-kind--owner {
    text-transform: none;
    letter-spacing: 0.02em;
}

body.theme-light .unit-pay-card__chip-kind {
    color: rgba(21, 34, 53, 0.52);
}

.unit-pay-card__chip--muted {
    opacity: 0.52;
}

.unit-pay-card__dues-badge {
    margin-top: auto;
}

.unit-pay-card__dues-badge-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    padding: 0.3rem 0.52rem;
    border-radius: 8px;
    border: 1px solid rgba(3, 169, 244, 0.22);
    background: rgba(3, 169, 244, 0.08);
}

.unit-pay-card__dues-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.unit-pay-card__dues-badge-top > .fa-solid {
    font-size: 0.76rem;
    color: var(--primary);
    opacity: 0.92;
}

.unit-pay-card__dues-badge-amount {
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.015em;
    color: var(--text);
}

.unit-pay-card__dues-badge-curr {
    font-weight: 700;
    opacity: 0.88;
}

.unit-pay-card__dues-badge-caption {
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--muted) 94%, transparent);
}

body.theme-light .unit-pay-card__dues-badge-inner {
    background: rgba(3, 169, 244, 0.07);
    border-color: rgba(3, 169, 244, 0.2);
}

.unit-pay-card__rail {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    flex: 0 0 3.2rem;
    min-width: 3.05rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    border-top-right-radius: calc(var(--card-radius) - 1px);
    border-bottom-right-radius: calc(var(--card-radius) - 1px);
}

body.theme-light .unit-pay-card__rail {
    border-left-color: rgba(3, 169, 244, 0.18);
}

.unit-pay-card__rail-seg {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0.26rem 0.2rem;
    border: 0;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, filter 0.16s ease, transform 0.12s ease;
}

.unit-pay-card__rail-seg + .unit-pay-card__rail-seg {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body:not(.theme-light) .unit-pay-card__rail-seg + .unit-pay-card__rail-seg {
    border-top-color: rgba(255, 255, 255, 0.16);
}

body.theme-light .unit-pay-card__rail-seg + .unit-pay-card__rail-seg {
    border-top-color: rgba(255, 255, 255, 0.35);
}

.unit-pay-card__rail-seg--pay {
    background: var(--primary);
    border-top-right-radius: calc(var(--card-radius) - 1px);
}

.unit-pay-card__rail-seg--pay:hover {
    background: var(--primary-hover);
    filter: saturate(1.06);
}

.unit-pay-card__rail-seg--pay:active {
    filter: brightness(0.96);
}

.unit-pay-card__rail-seg--pay:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

.unit-pay-card__rail-seg--edit {
    background: #0288d1;
}

body:not(.theme-light) .unit-pay-card--modern .unit-pay-card__rail-seg--pay {
    background: var(--primary);
}

body:not(.theme-light) .unit-pay-card--modern .unit-pay-card__rail-seg--pay:hover {
    background: var(--primary-hover);
}

body:not(.theme-light) .unit-pay-card--modern .unit-pay-card__rail-seg--edit {
    background: #027fc2;
}

body:not(.theme-light) .unit-pay-card--modern .unit-pay-card__rail-seg--edit:hover {
    background: #026ba3;
}

.unit-pay-card__rail-seg--edit:hover {
    background: #0277bd;
    filter: saturate(1.04);
}

.unit-pay-card__rail-seg--edit:active {
    filter: brightness(0.96);
}

.unit-pay-card__rail-seg--edit:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

.unit-pay-card__rail-seg--del {
    padding: 0;
    background: #b71c1c;
    border-bottom-right-radius: calc(var(--card-radius) - 1px);
}

.unit-pay-card__rail-seg--del:hover {
    background: #c62828;
    filter: saturate(1.05);
}

.unit-pay-card__rail-seg--del:active {
    filter: brightness(0.96);
}

.unit-pay-card__rail-delbtn {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0.26rem 0.2rem;
    border: 0;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    transition: inherit;
}

.unit-pay-card__rail-delbtn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

.unit-pay-card__rail-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.72rem;
}

.apartments-hero-add-btn,
.sites-hero-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 36px;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 0.95rem;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.apartments-hero-add-btn i,
.sites-hero-add-btn i,
.apartments-hero-add-btn span,
.sites-hero-add-btn span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.apartments-hero-add-btn:hover,
.sites-hero-add-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(3, 169, 244, 0.28);
}

body.theme-light .apartments-hero-add-btn,
body.theme-light .sites-hero-add-btn {
    background: var(--primary);
    color: #f7fcff;
}

.apartments-add-card {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: -0.35rem;
    transition: max-height 0.34s ease, opacity 0.22s ease, margin-top 0.22s ease, padding 0.22s ease;
}

.apartments-add-card.is-open {
    max-height: 1200px;
    opacity: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-top: 0;
    overflow: visible;
}

.apartments-add-card .custom-select-wrap {
    position: relative;
}

.apartments-add-card .custom-select-wrap.is-open {
    z-index: 45;
}

.units-optional-wrap {
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.units-optional-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.68rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.units-optional-toggle:hover {
    background: rgba(3, 169, 244, 0.08);
}

.units-optional-caret {
    transition: transform 0.2s ease;
    color: var(--muted);
}

.units-optional-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 0.8rem;
    transition: max-height 0.24s ease, opacity 0.2s ease, padding 0.2s ease;
}

.units-optional-wrap.is-open .units-optional-content {
    max-height: 420px;
    opacity: 1;
    padding: 0 0.8rem 0.72rem;
}

.units-optional-wrap.is-open .units-optional-caret {
    transform: rotate(180deg);
}

.units-optional-note {
    margin: 0.2rem 0 0.9rem;
    color: var(--muted);
    font-size: 0.74rem;
}

@media (max-width: 680px) {
    .units-optional-note {
        text-align: center;
        margin-bottom: 1.05rem;
    }
}

body.theme-light .apartments-add-card .auth-input {
    border-color: #c9deef;
    background: #ffffff;
    color: #152235;
    box-shadow: 0 4px 14px rgba(15, 34, 60, 0.06);
}

body.theme-light .apartments-add-card .auth-input-with-toggle {
    background: #ffffff;
    color: #152235;
}

body.theme-light .apartments-add-card .auth-input::placeholder {
    color: #9aaec4;
}

body.theme-light .apartments-add-card .auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.14);
}

body.theme-light .apartments-add-card .input-icon {
    color: #4c6178;
}

body.theme-light .apartments-add-card .auth-select {
    border-color: #c9deef;
    background: #ffffff;
    color: #152235;
}

body.theme-light .apartments-add-card .auth-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.14);
}

body.theme-light .units-optional-wrap {
    background: rgba(3, 169, 244, 0.04);
    border-color: #d7e6f3;
}

body.theme-light .units-optional-toggle:hover {
    background: rgba(3, 169, 244, 0.07);
}

body.theme-light .apartment-settings-card .auth-input,
html.theme-light-preload .apartment-settings-card .auth-input {
    border-color: #c9deef;
    background: #ffffff;
    color: #152235;
    box-shadow: none;
}

body.theme-light .apartment-settings-card .auth-input::placeholder,
html.theme-light-preload .apartment-settings-card .auth-input::placeholder {
    color: #9aaec4;
}

body.theme-light .apartment-settings-card .auth-input:focus,
html.theme-light-preload .apartment-settings-card .auth-input:focus {
    border-color: var(--primary);
    box-shadow: none;
}

body.theme-light .apartment-settings-card .input-icon,
html.theme-light-preload .apartment-settings-card .input-icon {
    color: #4c6178;
}

body.theme-light .apartment-settings-card .auth-input:disabled,
html.theme-light-preload .apartment-settings-card .auth-input:disabled {
    background: #f3f7fb;
    color: #5f738d;
    border-color: #d6e3f0;
    box-shadow: none;
}

.apartments-search-empty {
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.sites-name-main {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    color: #d2e3f3;
}

.sites-city-cell,
.sites-district-cell {
    color: #abc2d8;
    font-size: 0.78rem;
    font-weight: 600;
}

.expense-title-cell,
.expense-amount-cell,
.expense-date-cell {
    color: #afc5db;
    font-size: 0.79rem;
    font-weight: 600;
}

.user-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    border-radius: 6px;
    padding: 0.2rem 0.58rem;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.user-role-badge i {
    font-size: 0.58rem;
    opacity: 0.94;
}

.user-role-badge.role-1 {
    background: rgba(3, 169, 244, 0.15);
    color: #8bd9ff;
    border-color: rgba(3, 169, 244, 0.28);
}

.site-list-row.is-primary-manager-row {
    background: rgba(3, 169, 244, 0.08);
}

.user-role-badge.role-2 {
    background: rgba(249, 115, 22, 0.16);
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.28);
}

.user-role-badge.role-3 {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.28);
}

.user-role-badge.role-4 {
    background: rgba(168, 85, 247, 0.14);
    color: #ddd6fe;
    border-color: rgba(168, 85, 247, 0.32);
}

.user-role-badge.role-5 {
    background: rgba(251, 146, 60, 0.15);
    color: #fed7aa;
    border-color: rgba(251, 146, 60, 0.32);
}

.user-role-badge.role-6 {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.28);
}

.sites-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    flex-wrap: nowrap;
}

.sites-actions--menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.32rem;
    min-width: 7.5rem;
    max-width: 11rem;
}

.sites-actions__form {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
}

.users-col-actions {
    vertical-align: middle;
    width: 1%;
    white-space: nowrap;
}

.firms-service-cell {
    vertical-align: top;
    word-break: break-word;
    max-width: 26rem;
}

.firms-col-name-plain.sites-name-main {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.35;
}

.firms-contact-cell {
    vertical-align: middle;
    min-width: 0;
    max-width: 22rem;
}

.firms-contact-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.42rem 0.65rem;
    min-width: 0;
}

.firms-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.24rem 0.52rem;
    border-radius: 999px;
    border: 1px solid rgba(3, 169, 244, 0.28);
    background: rgba(3, 169, 244, 0.1);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.28;
    color: var(--text);
    text-decoration: none;
    word-break: break-word;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.firms-contact-badge:hover {
    background: rgba(3, 169, 244, 0.16);
    border-color: rgba(3, 169, 244, 0.45);
}

.firms-contact-badge:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.firms-contact-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.42rem;
    height: 1.42rem;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.14);
    border: 1px solid rgba(3, 169, 244, 0.32);
    font-size: 0.7rem;
    color: var(--primary);
}

.firms-contact-badge--mail .firms-contact-badge-icon i {
    font-size: 0.72rem;
}

.firms-contact-badge--phone.firms-contact-badge .fa-whatsapp {
    font-size: 0.76rem;
    color: #25d366;
}

body.theme-light .firms-contact-badge {
    background: rgba(3, 169, 244, 0.08);
    border-color: rgba(3, 169, 244, 0.24);
    color: #152235;
}

body.theme-light .firms-contact-badge:hover {
    background: rgba(3, 169, 244, 0.14);
    border-color: rgba(3, 169, 244, 0.38);
}

body.theme-light .firms-contact-badge-icon {
    background: rgba(3, 169, 244, 0.1);
}

.firms-list-row th,
.firms-list-row td {
    vertical-align: top;
}

.firms-list-row td.firms-col-name,
.firms-list-row td.firms-contact-cell {
    vertical-align: middle;
}

@media (max-width: 680px) {
    .firms-service-cell {
        max-width: none;
        font-size: 0.8rem;
    }

    .firms-contact-cell {
        display: none;
    }

    thead .firms-col-contact {
        display: none;
    }
}

.site-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 1.85rem;
    width: 1.95rem;
    min-width: 1.95rem;
    padding: 0;
    border-radius: 0.55rem;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.site-action-btn--menu {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 2.05rem;
    padding: 0.38rem 0.55rem;
    border-radius: 0.5rem;
    box-sizing: border-box;
    text-align: left;
}

.site-action-btn--menu:hover {
    transform: none;
}

.sites-actions--menu .btn-phone {
    display: inline-flex;
}

.site-action-btn__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.site-action-btn i {
    font-size: 0.76rem;
}

.site-action-badge {
    background: var(--primary-soft);
    border: 0;
    color: var(--primary-hover);
    font-weight: 700;
    font-size: 0.72rem;
    line-height: 1;
    cursor: default;
    user-select: none;
}

.site-action-badge:hover {
    transform: none;
    background: var(--primary-soft);
}

.payments-page-shell,
.payments-page-shell .dashboard-main,
.payments-page-shell .dashboard-content {
    overflow-x: clip;
}

.payments-page-shell .dashboard-card {
    min-width: 0;
}

.payments-page-shell .overflow-x-auto {
    max-width: 100%;
}

.site-action-btn:hover {
    transform: translateY(-1px);
}

.btn-edit {
    background: #ffffff;
    color: #152235;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-edit:hover {
    background: #f8fbff;
    border-color: #c3d8ea;
}

.btn-delete {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.34);
}

.btn-delete:hover {
    background: #dc2626;
}

.btn-phone {
    display: none;
    background: rgba(34, 197, 94, 0.62);
    color: #ffffff;
    border: 1px solid rgba(34, 197, 94, 0.76);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.34);
}

.btn-phone:hover {
    background: rgba(34, 197, 94, 0.74);
}

.apartment-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.apartment-status-badge.is-active {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

body.theme-light .sites-name-main {
    color: #4b5563;
}

body.theme-light .sites-city-cell,
body.theme-light .sites-district-cell {
    color: #5f738d;
}

body.theme-light .expense-title-cell,
body.theme-light .expense-amount-cell,
body.theme-light .expense-date-cell,
html.theme-light-preload .expense-title-cell,
html.theme-light-preload .expense-amount-cell,
html.theme-light-preload .expense-date-cell {
    color: #627892;
}

body.theme-light .user-role-badge.role-1 {
    background: rgba(3, 169, 244, 0.12);
    color: #0f6ea2;
    border-color: rgba(3, 169, 244, 0.24);
}

body.theme-light .site-list-row.is-primary-manager-row {
    background: rgba(3, 169, 244, 0.09);
}

body.theme-light .user-role-badge.role-2 {
    background: rgba(249, 115, 22, 0.14);
    color: #b45309;
    border-color: rgba(249, 115, 22, 0.26);
}

body.theme-light .user-role-badge.role-3 {
    background: rgba(16, 185, 129, 0.13);
    color: #0f766e;
    border-color: rgba(16, 185, 129, 0.24);
}

body.theme-light .user-role-badge.role-4 {
    background: rgba(168, 85, 247, 0.1);
    color: #7c3aed;
    border-color: rgba(168, 85, 247, 0.26);
}

body.theme-light .user-role-badge.role-5 {
    background: rgba(251, 146, 60, 0.11);
    color: #c2410c;
    border-color: rgba(251, 146, 60, 0.26);
}

body.theme-light .user-role-badge.role-6 {
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.28);
}

body.theme-light .btn-phone {
    background: rgba(34, 197, 94, 0.66);
    color: #ffffff;
    border-color: rgba(34, 197, 94, 0.82);
}

body.theme-light .btn-phone:hover {
    background: rgba(34, 197, 94, 0.8);
}

.site-action-btn.btn-phone.is-open {
    background: rgba(22, 163, 74, 0.78);
    border-color: rgba(22, 163, 74, 0.9);
}

.user-phone-menu {
    position: fixed;
    z-index: 95;
    width: 138px;
    transform: translateY(-100%);
    border-radius: 12px;
    padding: 0.36rem;
    background: #111d31;
    border: 1px solid rgba(3, 169, 244, 0.28);
    box-shadow: 0 16px 32px rgba(2, 10, 24, 0.42);
}

.user-phone-menu__item {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    width: 100%;
    border-radius: 8px;
    padding: 0.42rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #dbeaf7;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.user-phone-menu__item:hover {
    background: rgba(3, 169, 244, 0.18);
}

.user-phone-menu__item.is-whatsapp {
    color: #86efac;
}

body.theme-light .user-phone-menu {
    background: #ffffff;
    border-color: rgba(3, 169, 244, 0.24);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

body.theme-light .user-phone-menu__item {
    color: #1f3347;
}

body.theme-light .user-phone-menu__item:hover {
    background: rgba(3, 169, 244, 0.12);
}

body.theme-light .apartment-status-badge.is-active {
    color: #166534;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.25);
}

.dashboard-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.1rem 0.8rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-empty-state-soft {
    min-height: 220px;
    gap: 0.38rem;
    background: transparent;
    border: 0;
    padding: 1.55rem 1rem;
}

.dashboard-empty-icon {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.9rem;
}

.dashboard-empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.dashboard-empty-state__hint,
.dashboard-empty-state-soft > p + p {
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    color: var(--muted) !important;
    opacity: 0.72;
    max-width: 260px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.45;
}

body.theme-light .dashboard-empty-state-soft p {
    color: rgba(15, 23, 42, 0.74);
}

body.theme-light .dashboard-empty-state-soft .dashboard-empty-state__hint,
body.theme-light .dashboard-empty-state-soft > p + p {
    color: rgba(15, 23, 42, 0.5) !important;
}

body.theme-light .dashboard-empty-state-soft .dashboard-empty-icon {
    background: rgba(3, 169, 244, 0.08);
    border-color: rgba(3, 169, 244, 0.2);
}

.dashboard-card {
    background: rgba(17, 26, 46, 0.88);
    border: 0;
    border-radius: 1rem;
    padding: 1rem;
}

/* Ana sayfa ozet karti: .dashboard-card sonradan gelen yari saydam rengi ezmesin (gece kaydirma sizmasi) */
.dashboard-card.panel-overview-card {
    background: #043f59;
    border: 1px solid rgba(3, 169, 244, 0.2);
    border-radius: 0.88rem;
    isolation: isolate;
}

/* Kapali "ekle" formu: .dashboard-card padding sonradan eziyordu; kapandiginda yer kaplamasin */
.dashboard-card.apartments-add-card:not(.is-open) {
    padding: 0;
    margin-top: -0.35rem;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
}

body.theme-light .dashboard-card.apartments-add-card:not(.is-open) {
    background: transparent;
}

.apartment-settings-card {
    grid-column: 1 / -1;
}

.units-period-banner {
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #03a9f4 0%, #039be5 100%);
    color: #f0f9ff;
    padding: 0.75rem 0.55rem 0.85rem;
    box-shadow: 0 10px 28px rgba(3, 169, 244, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.units-period-banner__toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
    overflow: visible;
}

.units-period-banner__edge-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.units-period-banner__edge-btn:hover:not(:disabled) {
    background: transparent;
    border-color: transparent;
}

.units-period-banner__edge-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.units-period-banner__edge-btn:focus-visible {
    outline: 0;
    outline-offset: 2px;
}

.units-period-banner__edge-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.units-period-banner__year-strip {
    position: relative;
    flex-shrink: 0;
    z-index: 10;
    overflow: visible;
}

.units-period-banner__year-strip.is-open {
    z-index: 55;
}

.units-period-banner__year-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.2rem 0.42rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.units-period-banner__year-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.55);
}

.units-period-banner__year-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Sticky sayfa banneri: yil secici her genislikte cercevesiz (masaustu dahil) */
.units-period-banner--page-slot .units-period-banner__year-toggle {
    border: 0 !important;
}

.units-period-banner--page-slot .units-period-banner__year-toggle:hover {
    border: 0 !important;
}

body.theme-light .units-period-banner--page-slot .units-period-banner__year-toggle,
html.theme-light-preload .units-period-banner--page-slot .units-period-banner__year-toggle,
body.theme-light .units-period-banner--page-slot .units-period-banner__year-toggle:hover,
html.theme-light-preload .units-period-banner--page-slot .units-period-banner__year-toggle:hover {
    border: 0 !important;
}

.units-period-banner__year-caret {
    font-size: 0.62rem;
    opacity: 0.88;
    transition: transform 0.2s ease;
}

.units-period-banner__year-strip.is-open .units-period-banner__year-caret {
    transform: rotate(-180deg);
}

.units-period-banner__year-label {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    min-width: 2.5rem;
    text-align: center;
}

.units-period-banner__year-menu {
    position: absolute;
    left: 0;
    right: auto;
    top: calc(100% + 6px);
    bottom: auto;
    z-index: 2;
    min-width: 5.75rem;
    max-height: min(11.5rem, 42vh);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0.38rem;
    margin: 0;
    border-radius: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 20, 40, 0.98);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
    scrollbar-width: thin;
    scrollbar-color: rgba(3, 169, 244, 0.48) rgba(12, 24, 44, 0.92);
}

.units-period-banner__year-menu::-webkit-scrollbar {
    width: 8px;
}

.units-period-banner__year-menu::-webkit-scrollbar-track {
    background: rgba(12, 24, 44, 0.92);
    border-radius: 999px;
}

.units-period-banner__year-menu::-webkit-scrollbar-thumb {
    background: rgba(3, 169, 244, 0.48);
    border-radius: 999px;
}

.units-period-banner__year-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(3, 169, 244, 0.65);
}

.units-period-banner__year-option {
    display: block;
    width: 100%;
    padding: 0.4rem 0.62rem;
    border-radius: 0.52rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    color: rgba(240, 249, 255, 0.92);
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}

.units-period-banner__year-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.units-period-banner__year-option:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 1px;
}

.units-period-banner__year-option.is-active {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

body.theme-light .units-period-banner__year-menu,
html.theme-light-preload .units-period-banner__year-menu {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
    scrollbar-color: rgba(3, 169, 244, 0.42) #e9f2fb;
}

body.theme-light .units-period-banner__year-option,
html.theme-light-preload .units-period-banner__year-option {
    color: #1e293b;
}

body.theme-light .units-period-banner__year-option:hover,
html.theme-light-preload .units-period-banner__year-option:hover {
    background: rgba(3, 169, 244, 0.1);
}

body.theme-light .units-period-banner__year-option.is-active,
html.theme-light-preload .units-period-banner__year-option.is-active {
    background: #03a9f4;
    border-color: transparent;
    color: #ffffff;
}

body.theme-light .units-period-banner__year-option.is-active:hover,
html.theme-light-preload .units-period-banner__year-option.is-active:hover {
    background: #29b6f6;
    color: #ffffff;
}

body.theme-light .units-period-banner__year-menu::-webkit-scrollbar-track,
html.theme-light-preload .units-period-banner__year-menu::-webkit-scrollbar-track {
    background: #e9f2fb;
}

body.theme-light .units-period-banner__year-menu::-webkit-scrollbar-thumb,
html.theme-light-preload .units-period-banner__year-menu::-webkit-scrollbar-thumb {
    background: rgba(3, 169, 244, 0.42);
}

body.theme-light .units-period-banner__year-menu::-webkit-scrollbar-thumb:hover,
html.theme-light-preload .units-period-banner__year-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(3, 169, 244, 0.58);
}

.units-period-month-shell {
    min-width: 0;
    position: relative;
}

.units-period-month-mask {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.units-period-month-mask::-webkit-scrollbar {
    display: none;
}

.units-period-month-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.32rem;
    padding: 0.15rem 0.4rem;
    min-height: 2.35rem;
}

.units-period-month-chip {
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 0.38rem 0.58rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.units-period-month-chip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.units-period-month-chip:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.units-period-month-chip.is-active {
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.units-period-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.units-period-banner__summary-toggle {
    display: none;
}

.units-period-summary__item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.units-period-summary__k {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.68);
}

.units-period-summary__v {
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.units-period-summary__v--pos {
    color: #c8f7dc;
}

.units-period-summary__v--neg {
    color: #ffd4d4;
}

.units-period-summary__v--neutral {
    color: #fff;
}

.units-period-banner__title-block {
    margin-bottom: 0.62rem;
}

.units-period-banner__title-main {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.2;
}

@supports not (font-weight: 650) {
    .units-period-banner__title-main {
        font-weight: 600;
    }
}

.units-period-banner__title-count {
    margin: 0.22rem 0 0;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.25;
}

.units-period-banner__title-count-num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}

.units-period-banner__title-meta {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.28rem 0 0;
    font-size: 0.76rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.35;
    max-width: 100%;
}

.units-period-banner__title-meta-icon {
    flex: 0 0 auto;
    margin-top: 0.06rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.88);
    opacity: 0.9;
}

.units-period-banner__title-meta-text {
    flex: 1 1 auto;
    min-width: 0;
}

.units-period-banner__extras {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding-top: 0.72rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.units-period-banner .units-period-banner__search-wrap {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(2, 28, 52, 0.58);
    box-shadow: none;
}

.units-period-banner .units-period-banner__search-wrap--with-add {
    padding: 0.42rem 0.42rem 0.42rem 0.55rem;
}

.units-period-banner .units-period-banner__search-input {
    flex: 1 1 auto;
    min-width: 0;
    color: rgba(240, 249, 255, 0.98);
}

.units-period-banner .units-period-banner__search-add-btn {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 1.9rem;
    padding: 0.22rem 0.52rem;
    border: 0;
    border-radius: 0.62rem;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.12s ease;
}

.units-period-banner .units-period-banner__search-add-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.units-period-banner .units-period-banner__search-add-btn:active {
    transform: scale(0.98);
}

.units-period-banner .units-period-banner__search-add-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.units-period-banner .units-period-banner__search-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.dues-quick-period-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    border: 1px dashed color-mix(in srgb, var(--primary) 42%, #f9e92b5e);
    background: linear-gradient(135deg, #f9e92b5e 0%, color-mix(in srgb, #f9e92b5e 68%, var(--surface)) 100%);
    color: color-mix(in srgb, var(--primary) 88%, #1f2937);
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 12px;
    position: relative;
    box-shadow: none;
}

.dues-quick-period-indicator--muted {
    cursor: default;
    opacity: 0.82;
    font-weight: 600;
}

.dues-quick-period-indicator::before,
.dues-quick-period-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
    transform: translateY(-50%);
}

.dues-quick-period-indicator::before {
    left: -6px;
}

.dues-quick-period-indicator::after {
    right: -6px;
}

.units-period-banner .units-period-banner__search-wrap .apartments-search-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.78);
}

.units-period-banner .units-period-banner__search-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(2, 28, 52, 0.58);
    box-shadow: none;
}

body.theme-light .units-period-banner .units-period-banner__search-wrap,
html.theme-light-preload .units-period-banner .units-period-banner__search-wrap {
    background: rgb(31, 171, 237);
    border: 0;
    box-shadow: none;
}

body.theme-light .units-period-banner .units-period-banner__search-wrap:focus-within,
html.theme-light-preload .units-period-banner .units-period-banner__search-wrap:focus-within {
    background: rgb(31, 171, 237);
    border: 0;
    box-shadow: none;
}

.sites-hero-add-btn.sites-hero-add-btn--units-banner {
    width: 100%;
    justify-content: center;
    border-radius: 0.85rem;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.sites-hero-add-btn.sites-hero-add-btn--units-banner:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: transparent;
}

.sites-hero-add-btn.sites-hero-add-btn--units-banner:active {
    transform: scale(0.99);
}

.sites-hero-add-btn.sites-hero-add-btn--units-banner:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body.theme-light .units-period-banner {
    background: linear-gradient(135deg, #03a9f4 0%, #039be5 100%);
    box-shadow: 0 10px 26px rgba(3, 169, 244, 0.2);
}

@media (max-width: 820px) {
    .units-period-banner--page-slot .units-period-banner__search-wrap--with-add {
        padding: 0.38rem 0.38rem 0.38rem 0.5rem;
        gap: 0.3rem;
    }

    .units-period-banner--page-slot .units-period-banner__search-add-btn {
        min-height: 1.84rem;
        padding: 0.2rem 0.46rem;
        font-size: 0.62rem;
    }

    .units-period-banner--page-slot .units-period-banner__summary-toggle {
        border: 1px solid rgba(255, 255, 255, 0.12);
        margin-top: 0.58rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.34rem;
        width: 100%;
        border-radius: 0.78rem;
        background: rgba(8, 20, 40, 0.18);
        color: #fff;
        padding: 0.35rem 0.58rem;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        transition: background 0.16s ease, border-color 0.16s ease, transform 0.1s ease;
    }

    .units-period-banner--page-slot .units-period-banner__summary-toggle:hover {
        background: rgba(8, 20, 40, 0.26);
        border-color: rgba(255, 255, 255, 0.32);
    }

    .units-period-banner--page-slot .units-period-banner__summary-toggle:active {
        transform: scale(0.99);
    }

    .units-period-banner--page-slot .units-period-banner__summary-toggle:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

    body.theme-light .units-period-banner--page-slot .units-period-banner__summary-toggle,
    html.theme-light-preload .units-period-banner--page-slot .units-period-banner__summary-toggle {
        border: 1px solid rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
    }

    body.theme-light .units-period-banner--page-slot .units-period-banner__summary-toggle:hover,
    html.theme-light-preload .units-period-banner--page-slot .units-period-banner__summary-toggle:hover {
        background: rgba(255, 255, 255, 0.28);
        border-color: rgba(255, 255, 255, 0.36);
    }

    .units-period-banner--page-slot .units-period-banner__summary-toggle-caret {
        transition: transform 0.18s ease;
    }

    .units-period-banner--page-slot.is-summary-collapsed .units-period-banner__summary-toggle-caret {
        transform: rotate(180deg);
    }

    .units-period-banner--page-slot .units-period-summary {
        max-height: 200px;
        opacity: 1;
        overflow: hidden;
        transition: max-height 0.2s ease, opacity 0.16s ease, margin-top 0.16s ease, padding-top 0.16s ease;
    }

    .units-period-banner--page-slot.is-summary-collapsed .units-period-summary {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        padding-top: 0;
        border-top-width: 0;
    }

    /* Gece: panel / --surface ile uyumlu yapiskan banner (acik tema asagida) */
    .units-period-banner--page-slot {
        position: sticky;
        top: 0;
        z-index: 56;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0.45rem;
        border-radius: 0 0 0.88rem 0.88rem;
        padding: 0.88rem 0.82rem 0.85rem;
        /* overflow:hidden clips the pay-filter custom select menu below the trigger */
        overflow: visible;
        border: 1px solid rgba(3, 169, 244, 0.24);
        box-shadow: 0 14px 38px rgba(1, 10, 22, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        background-color: #0d1526;
        background: linear-gradient(165deg, #152536 0%, #111a2e 44%, #0b1220 100%);
        color: rgba(229, 237, 247, 0.94);
        isolation: isolate;
    }

    body:not(.theme-light) .units-period-banner--page-slot .units-period-banner__search-wrap {
        background: rgba(3, 169, 244, 0.09);
        border-color: rgba(3, 169, 244, 0.3);
    }

    body:not(.theme-light) .units-period-banner--page-slot .units-period-banner__search-heading,
    body:not(.theme-light) .units-period-banner--page-slot .units-period-banner__search-heading-text {
        color: rgba(229, 237, 247, 0.92);
    }

    body:not(.theme-light) .units-period-banner--page-slot .units-period-banner__search-heading i {
        color: rgba(125, 215, 248, 0.95);
    }

    body:not(.theme-light) .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-trigger {
        background: rgba(255, 255, 255, 0.09);
        color: rgba(245, 250, 255, 0.96);
    }

    .units-period-banner--page-slot .units-pay-filter-select-wrap.is-open {
        z-index: 95;
    }

    .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-menu {
        z-index: 96;
    }

    .units-period-banner--page-slot .units-period-banner__year-toggle {
        border: 0 !important;
        background: rgba(255, 255, 255, 0.18);
        color: inherit;
    }

    .units-period-banner--page-slot .units-period-banner__year-toggle:hover {
        border: 0 !important;
        background: rgba(255, 255, 255, 0.28);
    }

    .units-period-banner--page-slot .units-period-banner__edge-btn {
        color: rgba(255, 255, 255, 0.88);
    }

    .units-period-banner--page-slot .units-period-month-chip {
        color: rgba(255, 255, 255, 0.72);
        border-color: transparent;
    }

    .units-period-banner--page-slot .units-period-month-chip:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .units-period-banner--page-slot .units-period-month-chip.is-active,
    .units-period-banner--page-slot .units-period-month-chip.is-active:hover {
        color: #0f172a;
    }

    .units-period-banner--page-slot .units-period-banner__toolbar {
        position: relative;
        z-index: 1;
    }

    /* Yil listesi acikken ay swiper / alt satirlarla ic ice binmesin: toolbar altinda rezerv alan */
    .units-period-banner--page-slot .units-period-month-shell {
        z-index: 0;
    }

    .units-period-banner--page-slot .units-period-banner__year-menu {
        z-index: 90;
    }

    body.theme-light .units-period-banner--page-slot,
    html.theme-light-preload .units-period-banner--page-slot {
        background-color: #0277bd;
        background: linear-gradient(135deg, #03a9f4 0%, #039be5 100%);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 10px 28px rgba(3, 169, 244, 0.22);
        color: #f0f9ff;
        isolation: isolate;
    }

    body.theme-light .units-period-banner--page-slot .units-period-banner__year-toggle,
    html.theme-light-preload .units-period-banner--page-slot .units-period-banner__year-toggle {
        border: 0 !important;
    }

    body.theme-light .units-period-banner--page-slot .units-period-banner__year-toggle:hover,
    html.theme-light-preload .units-period-banner--page-slot .units-period-banner__year-toggle:hover {
        border: 0 !important;
    }

    .units-period-banner--page-slot .units-period-banner__search-wrap {
        border: 1px solid rgba(255, 255, 255, 0.22);
    }

    body.theme-light .units-period-banner--page-slot .units-period-banner__search-wrap,
    html.theme-light-preload .units-period-banner--page-slot .units-period-banner__search-wrap {
        background: rgb(31, 171, 237);
        border: 0;
    }

    .units-period-banner__mobile-tools-row .units-pay-filter-select-wrap .custom-select-trigger {
        width: 100%;
        max-width: none;
    }

    body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-trigger,
    html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-trigger {
        border: 0;
        background: rgba(255, 255, 255, 0.22);
        color: #f0f9ff;
        box-shadow: none;
    }

    body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap.is-open .custom-select-trigger,
    html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap.is-open .custom-select-trigger {
        border: 0;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
    }

    body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label,
    body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-caret,
    body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label-icon,
    html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label,
    html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-caret,
    html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-label-icon {
        color: #f0f9ff;
    }

    body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-menu,
    html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-menu {
        background: #ffffff;
        border-color: rgba(3, 169, 244, 0.3);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
    }

    body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-option,
    html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .custom-select-option {
        color: #152235;
    }

    body.theme-light .units-period-banner--page-slot .units-pay-filter-select-wrap .units-pay-filter-select-icon,
    html.theme-light-preload .units-period-banner--page-slot .units-pay-filter-select-wrap .units-pay-filter-select-icon {
        color: #ffffff;
        opacity: 0.95;
    }

    /*
     * Sticky banner z-index katmanında; alt satır negatif margin (örn. kapalı apartments-add-card)
     * veya gölge ile üst üste binince kartlar banner "arkasında" kalıyor.
     */
    .dashboard-content--units-page .units-period-banner--page-slot + * {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .units-period-summary {
        grid-template-columns: 1fr;
    }

    .units-period-banner__toolbar {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
    }
}

.units-list {
    display: grid;
    gap: 0.6rem;
}

.unit-list-item {
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
}

.unit-list-head {
    margin-bottom: 0.45rem;
}

.unit-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 600;
}

.unit-person-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.unit-person-label {
    color: var(--muted);
    font-size: 0.76rem;
}

.unit-person-name {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
}

.unit-phone-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.14);
    border: 1px solid rgba(3, 169, 244, 0.28);
    color: #bfe9ff;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
}

.unit-subscriptions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.unit-subscription-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #dbe7f5;
    font-size: 0.72rem;
    line-height: 1.2;
}

.log-action-text {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 500;
}

.activity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    border-radius: 999px;
    padding: 0.2rem 0.58rem;
    border: 1px solid transparent;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.activity-badge i {
    font-size: 0.58rem;
    opacity: 0.95;
}

.activity-badge--login {
    background: rgba(16, 185, 129, 0.17);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.32);
}

.activity-badge--logout {
    background: rgba(239, 68, 68, 0.85);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.92);
}

body.theme-light .log-action-text,
html.theme-light-preload .log-action-text {
    color: #61758e;
}

body.theme-light .activity-badge--login,
html.theme-light-preload .activity-badge--login {
    background: rgba(16, 185, 129, 0.14);
    color: #0f766e;
    border-color: rgba(16, 185, 129, 0.26);
}

body.theme-light .activity-badge--logout,
html.theme-light-preload .activity-badge--logout {
    background: rgba(220, 38, 38, 0.88);
    color: #ffffff;
    border-color: rgba(220, 38, 38, 0.94);
}

.receipt-modal-dialog {
    width: min(680px, 100%);
}

.receipt-modal-dialog:has(.due-receipt-shell) {
    width: min(440px, 100%);
}

.receipt-modal-body.receipt-modal-body--due {
    position: relative;
    padding: 0.5rem 0.72rem 0.75rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.due-receipt-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.3rem 0 0.72rem;
    padding: 0.62rem 0.68rem;
    border: 1px solid rgba(3, 169, 244, 0.18);
    border-radius: 0.82rem;
    background: rgba(3, 169, 244, 0.08);
}

.due-receipt-context > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.due-receipt-context__eyebrow,
.due-receipt-context span[data-due-receipt-context-meta] {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
}

.due-receipt-context strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.due-receipt-context__amount {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
}

body.theme-light .due-receipt-context,
html.theme-light-preload .due-receipt-context {
    border-color: rgba(3, 169, 244, 0.16);
    background: rgba(3, 169, 244, 0.07);
}

body.theme-light .due-receipt-context strong,
html.theme-light-preload .due-receipt-context strong {
    color: #17283d;
}

.upay-sheet-context {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    margin: 0 0 0.62rem;
    padding: 0.56rem 0.62rem;
    border-radius: 0.72rem;
    background: rgba(3, 169, 244, 0.08);
    border: 0;
}

.upay-sheet-context__top,
.upay-sheet-context__bottom,
.upay-sheet-context__category-wrap {
    display: flex;
    align-items: center;
}

.upay-sheet-context__top,
.upay-sheet-context__bottom {
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
}

.upay-sheet-context__category-wrap {
    min-width: 0;
    gap: 0.36rem;
}

.upay-sheet-context__category-wrap i {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 0.72rem;
}

.upay-sheet-context__category {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upay-sheet-context__date,
.upay-sheet-context__bottom > span:first-child {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.upay-sheet-context__divider {
    width: 100%;
    height: 1px;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 4px,
        rgba(148, 163, 184, 0.34) 4px,
        rgba(148, 163, 184, 0.34) 10px,
        transparent 10px,
        transparent 15px
    );
}

.upay-sheet-context__amount {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 850;
    white-space: nowrap;
}

body.theme-light .upay-sheet-context,
html.theme-light-preload .upay-sheet-context {
    background: rgba(3, 169, 244, 0.07);
}

body.theme-light .upay-sheet-context__category,
html.theme-light-preload .upay-sheet-context__category {
    color: #334155;
}

body.theme-light .upay-sheet-context__divider,
html.theme-light-preload .upay-sheet-context__divider {
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 4px,
        rgba(100, 116, 139, 0.26) 4px,
        rgba(100, 116, 139, 0.26) 10px,
        transparent 10px,
        transparent 15px
    );
}

.due-receipt-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 34, 60, 0.08);
}

.due-receipt-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0288c4 100%);
    padding: 1.15rem 1.15rem 1.05rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.due-receipt-header-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.due-receipt-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.2rem;
    border-radius: 0.62rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.45);
    line-height: 0;
}

.due-receipt-logo {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
    object-fit: contain;
    border-radius: 0.45rem;
    filter: var(--receipt-logo-brand-filter);
}

.due-receipt-header-text {
    min-width: 0;
}

.due-receipt-brand-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #ffffff;
}

/* Paper route forces theme-light on body; keep header copy readable on blue strip */
body[data-receipt-paper='true'] .due-receipt-header .due-receipt-brand-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.due-receipt-brand-sub {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
}

body[data-receipt-paper='true'] .due-receipt-header .due-receipt-brand-sub {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.due-receipt-header-badge {
    flex-shrink: 0;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #ffffff;
}

body[data-receipt-paper='true'] .due-receipt-header .due-receipt-header-badge {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.due-receipt-body {
    padding: 1.1rem 1.15rem 1.15rem;
}

.due-receipt-status-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.due-receipt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
    flex-shrink: 0;
}

.due-receipt-status-dot--success {
    background: #059669;
}

.due-receipt-status-dot--warn {
    background: #d97706;
}

.due-receipt-status-dot--danger {
    background: #dc2626;
}

.due-receipt-status-text {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.due-receipt-status-row--success .due-receipt-status-text {
    color: #047857;
}

.due-receipt-status-row--warn .due-receipt-status-text {
    color: #b45309;
}

.due-receipt-status-row--danger .due-receipt-status-text {
    color: #b91c1c;
}

.due-receipt-status-date {
    margin-left: auto;
    font-size: 0.72rem;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.due-receipt-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f9fafb;
}

.due-receipt-info-row:last-of-type {
    border-bottom: none;
}

.due-receipt-info-label {
    font-size: 0.75rem;
    color: #6b7280;
    flex-shrink: 0;
}

.due-receipt-info-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
    text-align: right;
}

.due-receipt-info-value.due-receipt-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
}

.due-receipt-amount-block {
    margin-top: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    padding: 1rem 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.due-receipt-amount-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.due-receipt-amount-sub {
    font-size: 0.68rem;
    color: #9ca3af;
    margin-top: 0.22rem;
}

.due-receipt-amount-number-wrap {
    text-align: right;
}

.due-receipt-amount-number {
    font-size: 1.38rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.due-receipt-amount-num-muted {
    font-size: 0.88rem;
    opacity: 0.55;
}

.due-receipt-amount-unit {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: #9ca3af;
}

.due-receipt-notes {
    margin-top: 0.95rem;
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.72rem 0.82rem;
    font-size: 0.74rem;
    color: #6b7280;
    line-height: 1.65;
}

.due-receipt-notes--minimal {
    margin: 0.65rem auto 0;
    padding: 0.28rem 0.4rem;
    max-width: 22rem;
    background: transparent;
    border-radius: 0;
    font-size: 0.62rem;
    font-weight: 400;
    color: #9ca3af;
    line-height: 1.3;
    text-align: center;
}

.receipt-modal-body .due-receipt-notes--minimal {
    margin-top: 0.72rem;
    margin-bottom: 0;
}

.due-receipt-notes p {
    margin: 0;
}

/* Aidat makbuzu — alt aksiyon sayfasi (PDF / WhatsApp) */
.due-receipt-action-sheet {
    position: fixed;
    inset: 0;
    z-index: 9200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

.due-receipt-action-sheet:not(.hidden) {
    pointer-events: auto;
}

.due-receipt-action-sheet.hidden {
    display: none;
}

.due-receipt-action-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    border: 0;
    cursor: pointer;
}

body.has-dashboard-shell.browser-mobile-shell .due-receipt-action-sheet__backdrop {
    background: rgba(5, 10, 20, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.due-receipt-action-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.55rem 0.65rem 1.1rem;
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 32%);
    border-radius: 1.1rem 1.1rem 0 0;
    border: 1px solid rgba(3, 169, 244, 0.18);
    border-bottom: 0;
    box-shadow: 0 -12px 40px rgba(15, 34, 60, 0.14);
    animation: due-receipt-sheet-in 0.28s ease-out;
}

/* Önizleme + PNG: üst şerit kartın en üstünde tam genişlik dikdörtgen; üst köşe yuvarlatma yok */
.due-receipt-action-sheet__panel > .receipt-img-card {
    margin: 0 auto 0.75rem;
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 2px 14px rgba(15, 34, 60, 0.1);
    box-sizing: border-box;
}

.due-receipt-action-sheet__panel > .receipt-img-card .receipt-img-card__top-band {
    border-radius: 0;
}

@media (max-width: 640px) {
    .due-receipt-action-sheet__panel {
        max-width: 100%;
        border-radius: 1rem 1rem 0 0;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }
}

.payments-empty-card {
    border: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.88);
}

@keyframes due-receipt-sheet-in {
    from {
        transform: translateY(110%);
        opacity: 0.6;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .due-receipt-action-sheet__panel {
        animation: none;
    }
}

.due-receipt-action-sheet__handle {
    width: 2.25rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    margin: 0.2rem auto 0.65rem;
}

.due-receipt-action-sheet__title {
    margin: 0.15rem 0 0.55rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    letter-spacing: 0.01em;
}

.due-receipt-action-sheet__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0.1rem 0.25rem;
}

.due-receipt-action-sheet__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    width: 100%;
    min-height: 3.35rem;
    padding: 0.4rem 0.28rem;
    border-radius: 0.72rem;
    font-size: 0.62rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1.15;
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.due-receipt-action-sheet__btn > i {
    font-size: 1rem;
    line-height: 1;
}

.due-receipt-action-sheet__btn > span {
    display: block;
    max-width: 100%;
    padding: 0 0.1rem;
    word-break: break-word;
}

@media (max-width: 360px) {
    .due-receipt-action-sheet__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .due-receipt-action-sheet__btn--primary {
        grid-column: 1 / -1;
    }
}

.due-receipt-action-sheet__btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.due-receipt-action-sheet__btn--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.due-receipt-action-sheet__btn--primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.due-receipt-action-sheet__btn--primary:active {
    transform: scale(0.99);
}

.due-receipt-action-sheet__btn--outline {
    background: #ffffff;
    border-color: rgba(3, 169, 244, 0.28);
    color: #0f172a;
}

.due-receipt-action-sheet__btn--outline:hover {
    background: var(--primary-soft);
    border-color: var(--primary-border);
    color: #0d3253;
}

/* ghost buton — makbuz sayfasını aç */
.due-receipt-action-sheet__btn--ghost {
    background: transparent;
    border-color: rgba(15, 23, 42, 0.12);
    color: #64748b;
}

.due-receipt-action-sheet__btn--ghost:hover {
    background: rgba(3, 169, 244, 0.06);
    border-color: rgba(3, 169, 244, 0.28);
    color: var(--primary);
}

/* ── Dikey makbuz kartı — sheet önizleme + html2canvas PNG hedefi ──────── */
.receipt-img-card {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 24px rgba(3, 169, 244, 0.14);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
}

.receipt-img-card__top-band {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 9px;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #0288d1 0%, #03a9f4 60%, #5ac8fa 100%);
    border-radius: 0;
}

.receipt-img-card__watermark-layer {
    position: absolute;
    inset: 9px 0 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.receipt-img-card__header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px;
    border-bottom: 1px solid #f0f4f8;
    background: #ffffff;
}

.receipt-img-card__brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #03a9f4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.receipt-img-card__brand-icon img,
.receipt-img-card__logo-canvas {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto;
}

.receipt-img-card__brand-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.receipt-img-card__brand-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    word-break: break-word;
}

.receipt-img-card__brand-sub {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 400;
}

.receipt-img-card__type-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #03a9f4;
    background: rgba(3, 169, 244, 0.1);
    border: none;
    border-radius: 6px;
    padding: 5px 8px 4px;
    line-height: 1.05;
}

.receipt-img-card__meta-row {
    position: relative;
    z-index: 1;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 18px;
    gap: 8px;
}

.receipt-img-card__meta-label {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 500;
}

.receipt-img-card__meta-val {
    font-size: 9px;
    font-weight: 600;
    color: #475569;
    font-variant-numeric: tabular-nums;
}

.receipt-img-card__divider {
    position: relative;
    z-index: 1;
    height: 1px;
    margin: 5px 18px;
    border: none;
    background: #e2e8f0;
}

.receipt-img-card__divider--dashed {
    height: 0;
    margin: 5px 18px;
    background: transparent;
    border-top: 1.5px dashed #e2e8f0;
}

.receipt-img-card__row {
    position: relative;
    z-index: 1;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 18px;
    gap: 8px;
}

.receipt-img-card__row-label {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 500;
}

.receipt-img-card__row-val {
    font-size: 10.5px;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

.receipt-img-card__row-val--status {
    color: #0d9488;
}

.receipt-img-card__amount-block {
    position: relative;
    z-index: 1;
    padding: 7px 18px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3, 169, 244, 0.05);
}

.receipt-img-card__amount-label {
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.receipt-img-card__amount {
    font-size: 22px;
    font-weight: 800;
    color: #03a9f4;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.receipt-img-card__footer {
    position: relative;
    z-index: 1;
    padding: 6px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #ffffff;
}

.receipt-img-card__footer-note {
    font-size: 8px;
    color: #94a3b8;
    line-height: 1.4;
}

.receipt-img-card__footer-ref {
    font-size: 8px;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.receipt-img-card__watermark {
    position: relative;
    max-width: 92%;
    text-align: center;
    font-size: 50px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(3, 169, 244, 0.13);
    transform: rotate(-14deg);
    user-select: none;
    white-space: nowrap;
    line-height: 1;
}

/* ── Mini makbuz önizleme kartı ────────────────────────────────────────── */
.due-receipt-mini-card {
    margin: 0.2rem 0 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(3, 169, 244, 0.22);
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    overflow: hidden;
}

.due-receipt-mini-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem 0.5rem;
    background: linear-gradient(90deg, #03a9f4 0%, #0288d1 100%);
}

.due-receipt-mini-card__brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.due-receipt-mini-card__logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    filter: brightness(0) invert(1);
}

.due-receipt-mini-card__brand-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.due-receipt-mini-card__badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.18);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.due-receipt-mini-card__body {
    padding: 0.6rem 0.85rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.due-receipt-mini-card__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.due-receipt-mini-card__label {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 500;
    flex-shrink: 0;
}

.due-receipt-mini-card__val {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.due-receipt-mini-card__amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem 0.62rem;
    margin-top: 0.45rem;
    border-top: 1px dashed rgba(3, 169, 244, 0.2);
}

.due-receipt-mini-card__amount-label {
    font-size: 0.66rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.due-receipt-mini-card__amount {
    font-size: 1.05rem;
    font-weight: 700;
    color: #03a9f4;
    font-feature-settings: "tnum";
}

.due-receipt-action-sheet__btn--whatsapp {
    background: #25d366;
    border-color: #20bd5a;
    color: #ffffff;
}

.due-receipt-action-sheet__btn--whatsapp:hover {
    background: #1ebe57;
    border-color: #1aa64d;
}

.due-receipt-action-sheet__dismiss {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.45rem;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.5rem;
}

.due-receipt-action-sheet__dismiss:hover {
    color: #0f172a;
    background: rgba(148, 163, 184, 0.12);
}

.due-receipt-action-sheet__dismiss:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Default (dark) receipt sheet palette */
.due-receipt-action-sheet__title {
    color: var(--text);
}

.due-receipt-action-sheet__btn--outline {
    background: rgba(3, 169, 244, 0.08);
    color: var(--text);
}

.due-receipt-action-sheet__btn--ghost {
    border-color: rgba(148, 163, 184, 0.24);
    color: var(--muted);
}

.receipt-img-card,
.receipt-img-card__header,
.receipt-img-card__meta-row,
.receipt-img-card__row,
.receipt-img-card__footer {
    background: #0f172a;
}

.receipt-img-card__header {
    border-bottom-color: rgba(148, 163, 184, 0.24);
}

.receipt-img-card__brand-name,
.receipt-img-card__row-val {
    color: #e5edf7;
}

.receipt-img-card__meta-label,
.receipt-img-card__row-label,
.receipt-img-card__amount-label,
.receipt-img-card__footer-note {
    color: #9fb0c8;
}

.receipt-img-card__meta-val {
    color: #c8d5e8;
}

.receipt-img-card__divider {
    background: rgba(148, 163, 184, 0.22);
}

.receipt-img-card__divider--dashed {
    border-top-color: rgba(148, 163, 184, 0.3);
}

.receipt-img-card__amount-block {
    background: rgba(3, 169, 244, 0.14);
}

.receipt-img-card__footer-ref {
    color: #7f93ae;
}

.due-receipt-action-sheet__dismiss {
    color: var(--muted);
}

.due-receipt-action-sheet__dismiss:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.16);
}

/* Restore light palette in day mode */
body.theme-light .due-receipt-action-sheet__title,
html.theme-light-preload .due-receipt-action-sheet__title {
    color: #0f172a;
}

body.theme-light .due-receipt-action-sheet__btn--outline,
html.theme-light-preload .due-receipt-action-sheet__btn--outline {
    background: #ffffff;
    color: #0f172a;
}

body.theme-light .due-receipt-action-sheet__btn--ghost,
html.theme-light-preload .due-receipt-action-sheet__btn--ghost {
    border-color: rgba(15, 23, 42, 0.12);
    color: #64748b;
}

body.theme-light .receipt-img-card,
body.theme-light .receipt-img-card__header,
body.theme-light .receipt-img-card__meta-row,
body.theme-light .receipt-img-card__row,
body.theme-light .receipt-img-card__footer,
html.theme-light-preload .receipt-img-card,
html.theme-light-preload .receipt-img-card__header,
html.theme-light-preload .receipt-img-card__meta-row,
html.theme-light-preload .receipt-img-card__row,
html.theme-light-preload .receipt-img-card__footer {
    background: #ffffff;
}

body.theme-light .receipt-img-card__header,
html.theme-light-preload .receipt-img-card__header {
    border-bottom-color: #f0f4f8;
}

body.theme-light .receipt-img-card__brand-name,
body.theme-light .receipt-img-card__row-val,
html.theme-light-preload .receipt-img-card__brand-name,
html.theme-light-preload .receipt-img-card__row-val {
    color: #0f172a;
}

body.theme-light .receipt-img-card__meta-label,
body.theme-light .receipt-img-card__row-label,
body.theme-light .receipt-img-card__amount-label,
body.theme-light .receipt-img-card__footer-note,
html.theme-light-preload .receipt-img-card__meta-label,
html.theme-light-preload .receipt-img-card__row-label,
html.theme-light-preload .receipt-img-card__amount-label,
html.theme-light-preload .receipt-img-card__footer-note {
    color: #94a3b8;
}

body.theme-light .receipt-img-card__meta-val,
html.theme-light-preload .receipt-img-card__meta-val {
    color: #475569;
}

body.theme-light .receipt-img-card__divider,
html.theme-light-preload .receipt-img-card__divider {
    background: #e2e8f0;
}

body.theme-light .receipt-img-card__divider--dashed,
html.theme-light-preload .receipt-img-card__divider--dashed {
    border-top-color: #e2e8f0;
}

body.theme-light .receipt-img-card__amount-block,
html.theme-light-preload .receipt-img-card__amount-block {
    background: rgba(3, 169, 244, 0.05);
}

body.theme-light .receipt-img-card__footer-ref,
html.theme-light-preload .receipt-img-card__footer-ref {
    color: #cbd5e1;
}

body.theme-light .due-receipt-action-sheet__dismiss,
html.theme-light-preload .due-receipt-action-sheet__dismiss {
    color: #64748b;
}

body.theme-light .due-receipt-action-sheet__dismiss:hover,
html.theme-light-preload .due-receipt-action-sheet__dismiss:hover {
    color: #0f172a;
    background: rgba(148, 163, 184, 0.12);
}

@media (min-width: 480px) {
    .due-receipt-action-sheet {
        align-items: flex-end;
        padding: 0;
    }

    .due-receipt-action-sheet__panel {
        max-width: 100%;
        margin: 0;
        border-radius: 1rem 1rem 0 0;
        border-bottom: 0;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
        padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
        animation: due-receipt-sheet-in 0.28s ease-out;
    }
}

.apartment-edit-modal__footer.due-receipt-modal-footer {
    gap: 0.45rem;
    padding-top: 0.4rem;
    justify-content: stretch;
}

.due-receipt-ft-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.68rem 0.72rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, color 0.15s ease;
}

.due-receipt-ft-btn--ghost {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
}

.due-receipt-ft-btn--ghost:hover {
    background: #f9fafb;
}

.due-receipt-ft-btn--primary {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.due-receipt-ft-btn--primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.due-receipt-ft-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .due-receipt-ft-btn:active {
        transform: none;
    }
}

.due-receipt-ft-btn:active {
    transform: scale(0.99);
}

@media print {
    body[data-receipt-paper='true'] .due-receipt-header,
    body[data-receipt-paper='true'] .due-receipt-header * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body[data-receipt-paper='true'] .due-receipt-brand-title {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff;
    }

    body[data-receipt-paper='true'] .due-receipt-brand-sub {
        color: rgba(255, 255, 255, 0.9) !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
    }

    body[data-receipt-paper='true'] .due-receipt-header-badge {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff;
    }

    .due-receipt-header,
    .due-receipt-amount-block {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body[data-receipt-paper='true'] .due-receipt-amount-number {
        font-size: 1.12rem !important;
    }

    body[data-receipt-paper='true'] .due-receipt-amount-num-muted {
        font-size: 0.72rem !important;
    }

    body[data-receipt-paper='true'] .due-receipt-notes--minimal {
        font-size: 0.56rem !important;
        color: #adb5bd !important;
        margin-top: 0.45rem !important;
    }

    .due-receipt-shell {
        box-shadow: none;
        border: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .due-receipt-modal-footer {
        display: none !important;
    }

    .apartment-edit-modal__header {
        display: none !important;
    }

    .due-receipt-standalone-actions {
        display: none !important;
    }
}

.due-receipt-paper-wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 2rem 1rem 2.5rem;
}

.receipt-share-card--due-paper {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.receipt-modal-body--standalone {
    background: transparent;
    border: 0;
    padding: 0;
}

.due-receipt-standalone-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: 1rem;
}

.due-receipt-standalone-actions .due-receipt-ft-btn {
    text-decoration: none;
}

.due-receipt-status-row--neutral .due-receipt-status-text {
    color: #4b5563;
}

.receipt-modal-body {
    position: relative;
    padding: 1rem 1.1rem 1.05rem;
    background: linear-gradient(170deg, rgba(8, 24, 44, 0.97), rgba(7, 18, 34, 0.97));
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0.85rem;
    padding-left: 2.35rem;
}

.receipt-file-strip {
    position: absolute;
    left: 0.64rem;
    top: 0.78rem;
    bottom: 0.78rem;
    width: 0.9rem;
    border-right: 1px dashed rgba(148, 163, 184, 0.46);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0.06rem 0;
}

.receipt-file-hole {
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    background: rgba(3, 10, 22, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.receipt-brand-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding-bottom: 0.3rem;
    margin-bottom: 0.06rem;
}

.receipt-brand-left {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
}

.receipt-brand-copy {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    line-height: 1.02;
}

.receipt-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.18rem;
    border-radius: 0.52rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.98);
    line-height: 0;
}

.receipt-brand-logo {
    width: 2.45rem;
    height: 2.45rem;
    display: block;
    border-radius: 0.42rem;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    object-fit: contain;
    filter: var(--receipt-logo-brand-filter);
    opacity: 0.96;
}

.receipt-brand-title {
    margin: 0;
    color: #dff3ff;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 0.92rem;
    line-height: 1.08;
}

.receipt-brand-sub {
    margin: 0;
    color: #9bb5cb;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.05;
}

.receipt-brand-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
    padding: 0.16rem 0.56rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #9fc2dd;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.receipt-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.46rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.24);
}

.receipt-line:last-of-type {
    border-bottom: 0;
}

.receipt-line span {
    color: #9cb3ca;
    font-size: 0.75rem;
}

.receipt-line strong {
    color: #e9f4ff;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
}

.receipt-notes {
    margin-top: 0.8rem;
}

.receipt-notes span {
    display: inline-flex;
    align-items: center;
    font-size: 0.73rem;
    color: #9cb3ca;
    margin-bottom: 0.28rem;
}

.receipt-notes p {
    margin: 0;
    color: #d8e8f7;
    font-size: 0.75rem;
    line-height: 1.45;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.08);
    border-radius: 0.62rem;
    padding: 0.56rem 0.62rem;
}

.receipt-tear-line {
    position: relative;
    margin-top: 0.72rem;
    margin-bottom: 0.72rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.48);
    border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
    padding: 0.4rem 0;
    text-align: center;
}

.receipt-tear-text {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    color: #8fb2ce;
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(9, 26, 48, 0.86);
    padding: 0 0.48rem;
}

.receipt-tear-notch {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0f1a2d;
    transform: translateY(-50%);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.receipt-tear-notch--left {
    left: -5px;
}

.receipt-tear-notch--right {
    right: -5px;
}

.receipt-footnote {
    margin: 0.68rem 0 0;
    color: #8ca8bf;
    font-size: 0.66rem;
    text-align: center;
}

body.theme-light .receipt-modal-body,
html.theme-light-preload .receipt-modal-body {
    background: linear-gradient(170deg, #ffffff, #f3f8fc);
    border-top-color: #d4e3ef;
    border-bottom-color: #d4e3ef;
}

body.theme-light .receipt-file-strip,
html.theme-light-preload .receipt-file-strip {
    border-right-color: #c8dbea;
}

body.theme-light .receipt-file-hole,
html.theme-light-preload .receipt-file-hole {
    background: #ffffff;
    border-color: #d3e3ef;
}

body.theme-light .receipt-line,
html.theme-light-preload .receipt-line {
    border-bottom-color: #d7e5f0;
}

body.theme-light .receipt-line span,
html.theme-light-preload .receipt-line span {
    color: #5e738c;
}

body.theme-light .receipt-line strong,
html.theme-light-preload .receipt-line strong {
    color: #122840;
}

body.theme-light .receipt-brand-title,
html.theme-light-preload .receipt-brand-title {
    color: #114067;
}

body.theme-light .receipt-brand-sub,
html.theme-light-preload .receipt-brand-sub {
    color: #7e99b3;
}

body.theme-light .receipt-brand-logo-wrap,
html.theme-light-preload .receipt-brand-logo-wrap {
    border-color: rgba(148, 163, 184, 0.35);
    background: #ffffff;
}

body.theme-light .receipt-brand-logo,
html.theme-light-preload .receipt-brand-logo {
    filter: var(--receipt-logo-brand-filter);
    opacity: 0.96;
}

body[data-receipt-paper='true'] .receipt-brand-logo,
html.theme-light-preload body[data-receipt-paper='true'] .receipt-brand-logo {
    filter: var(--receipt-logo-brand-filter);
    opacity: 0.96;
}

body.theme-light .receipt-brand-date,
html.theme-light-preload .receipt-brand-date {
    color: #68849e;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.28);
}

.receipt-modal-body.is-exporting {
    background: #ffffff;
    border-color: #cde3f3;
    box-shadow: none !important;
}

.receipt-modal-body.is-exporting .receipt-brand-title {
    color: #114067;
}

.receipt-modal-body.is-exporting .receipt-brand-sub,
.receipt-modal-body.is-exporting .receipt-line span,
.receipt-modal-body.is-exporting .receipt-notes span {
    color: #5b7691;
}

.receipt-modal-body.is-exporting .receipt-line strong,
.receipt-modal-body.is-exporting .receipt-notes p {
    color: #1d334e;
}

.receipt-modal-body.is-exporting .receipt-brand-logo {
    filter: var(--receipt-logo-brand-filter);
    opacity: 0.96;
}

body.theme-light .receipt-notes span,
html.theme-light-preload .receipt-notes span {
    color: #5e738c;
}

body.theme-light .receipt-notes p,
html.theme-light-preload .receipt-notes p {
    color: #324b66;
    border-color: #d4e3ef;
    background: #f7fbff;
}

body.theme-light .receipt-tear-line,
html.theme-light-preload .receipt-tear-line {
    border-top-color: #c8dbea;
    border-bottom-color: #dbe8f2;
}

body.theme-light .receipt-tear-text,
html.theme-light-preload .receipt-tear-text {
    color: #5a7892;
    background: #f5f9fd;
}

body.theme-light .receipt-tear-notch,
html.theme-light-preload .receipt-tear-notch {
    background: #f6fbff;
    border-color: #d2e2ef;
}

body.theme-light .receipt-footnote,
html.theme-light-preload .receipt-footnote {
    color: #6d849c;
}

@media (max-width: 680px) {
    .apartments-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .apartments-hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .apartments-search-wrap,
    .units-pay-filter-select-wrap,
    .apartments-hero-add-btn,
    .sites-hero-add-btn {
        width: 100%;
    }

    .units-pay-filter-select-wrap {
        display: none;
    }

    .units-period-banner__mobile-tools-row .units-pay-filter-select-wrap--mobile {
        display: block !important;
        width: 100%;
        min-width: 0;
    }

    .sites-actions:not(.sites-actions--menu) {
        flex-wrap: nowrap;
        gap: 0.34rem;
    }

    .sites-actions--menu {
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .users-col-no,
    .users-col-phone,
    .users-col-mail {
        display: none;
    }

    .users-col-role,
    .users-col-status {
        display: none;
    }

    .logs-col-no,
    .logs-col-action {
        display: none;
    }

    .receipt-modal-body:not(.receipt-modal-body--due) {
        padding: 0.88rem 0.88rem 0.94rem;
        padding-left: 2.18rem;
    }

    .receipt-modal-body.receipt-modal-body--due {
        padding: 0.45rem 0.55rem 0.72rem !important;
    }

    .due-receipt-info-row {
        flex-wrap: wrap;
    }

    .receipt-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .receipt-line strong {
        text-align: left;
    }

    .expenses-col-no,
    .expenses-col-title,
    .expenses-col-date {
        display: none;
    }

    .btn-phone {
        display: inline-flex;
    }

    .apartment-edit-modal__grid {
        grid-template-columns: 1fr;
    }

    .apartment-edit-modal__field--half {
        grid-column: 1 / -1;
    }

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

    .panel-hero-modern {
        padding: 0.9rem 0.85rem;
        border-radius: 0.68rem;
    }

    .panel-hero-date {
        position: absolute;
        top: 0.62rem;
        right: 0.62rem;
        margin: 0;
        font-size: 0.66rem;
        padding: 0.16rem 0.46rem;
    }

    .panel-hero-head h1 {
        padding-right: 7.2rem;
    }

    .panel-hero-meta {
        margin-top: 0.08rem;
    }

    .panel-hero-contact-list {
        width: 100%;
        flex-direction: column;
        gap: 0.34rem;
    }

    .panel-hero-contact-item {
        width: 100%;
        justify-content: flex-start;
        border-radius: 0.7rem;
    }

}

@media (max-width: 1100px) {
    .apartments-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .apartments-hero-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .apartments-search-wrap {
        width: 100%;
        min-width: 0;
    }

    .units-pay-filter-select-wrap {
        width: 100%;
        min-width: 0;
    }

    .sites-hero-add-btn,
    .apartments-hero-add-btn {
        width: 100%;
    }
}

.dashboard-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.dashboard-card p {
    margin: 0.35rem 0;
    color: #d0e1f2;
    font-size: 0.88rem;
}

.panel-scope-kpi-grid {
    padding: 0.88rem 1rem 1rem;
    box-sizing: border-box;
}

.panel-scope-kpi-grid__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

@media (min-width: 640px) {
    .panel-scope-kpi-grid__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .panel-scope-kpi-grid__inner {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.panel-scope-kpi-tile {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 4.25rem;
    padding: 0.72rem 0.78rem;
    border-radius: 0.88rem;
    border: 1px solid var(--primary-border, rgba(3, 169, 244, 0.22));
    background: var(--primary-soft, rgba(3, 169, 244, 0.08));
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.panel-scope-kpi-tile:hover {
    transform: translateY(-2px);
    border-color: var(--primary, #03a9f4);
}

.panel-scope-kpi-tile:active {
    transform: translateY(0);
}

.panel-scope-kpi-tile__label {
    font-size: 0.72rem;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(226, 238, 248, 0.72);
    text-transform: uppercase;
}

body.theme-light .panel-scope-kpi-tile__label,
html.theme-light-preload .panel-scope-kpi-tile__label {
    color: rgba(15, 35, 55, 0.58);
}

.panel-scope-kpi-tile__value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--primary, #03a9f4);
    font-variant-numeric: tabular-nums;
}

body.theme-light .panel-scope-kpi-tile,
html.theme-light-preload .panel-scope-kpi-tile {
    background: rgba(3, 169, 244, 0.06);
    border-color: rgba(3, 169, 244, 0.2);
}

.panel-stat-card {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.panel-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.panel-stat-card:active {
    transform: translateY(-1px);
    transition-duration: 0.14s;
}

body.theme-light .panel-stat-card:hover {
    box-shadow: none;
}

.panel-stat-card--kasa:not(.panel-stat-card--kasa-modern).panel-stat-card:hover {
    box-shadow: 0 8px 22px rgba(2, 19, 45, 0.18);
}

.panel-stat-card.panel-stat-card--kasa-modern:hover {
    box-shadow: 0 14px 34px rgba(1, 8, 22, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-light .panel-stat-card--kasa:not(.panel-stat-card--kasa-modern).panel-stat-card:hover {
    box-shadow: 0 10px 24px rgba(24, 60, 112, 0.1);
}

body.theme-light .panel-stat-card.panel-stat-card--kasa-modern:hover,
html.theme-light-preload .panel-stat-card.panel-stat-card--kasa-modern:hover {
    box-shadow: 0 14px 36px rgba(24, 60, 112, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

@media (prefers-reduced-motion: reduce) {
    .panel-stat-card {
        transition: box-shadow 0.18s ease;
    }

    .panel-stat-card:hover,
    .panel-stat-card:active {
        transform: none;
    }
}


.panel-stat-head {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    margin-bottom: 0.3rem;
}

.panel-stat-edit-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    border: 1px solid var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 0.28rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.panel-stat-edit-btn:hover {
    border-color: rgba(3, 169, 244, 0.45);
    background: rgba(3, 169, 244, 0.18);
    color: var(--primary-hover);
    transform: translateY(-1px);
}

.panel-stat-edit-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.theme-light .panel-stat-edit-btn {
    background: rgba(3, 169, 244, 0.12);
    border-color: rgba(3, 169, 244, 0.24);
    color: #028ecc;
}

.panel-stat-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.62rem;
    border: 1px solid var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.panel-stat-icon--green {
    border-color: transparent;
    background: transparent;
    color: #4ade80;
}

body.theme-light .panel-stat-icon--green,
html.theme-light-preload .panel-stat-icon--green {
    border-color: transparent;
    background: transparent;
    color: #16a34a;
}

.panel-stat-card--kasa {
    position: relative;
    border-color: rgba(3, 169, 244, 0.28);
    background: linear-gradient(145deg, rgba(3, 169, 244, 0.12), rgba(3, 169, 244, 0.04));
    box-shadow: 0 8px 22px rgba(2, 19, 45, 0.18);
}

.panel-stat-card--kasa-modern {
    overflow: hidden;
    border-radius: 1rem;
    background: radial-gradient(
            ellipse 118% 90% at 16% -12%,
            rgba(56, 189, 248, 0.18),
            rgba(3, 169, 244, 0.09) 45%,
            rgba(11, 20, 35, 0.55)
        ),
        linear-gradient(165deg, rgba(15, 32, 56, 0.62), rgba(8, 16, 32, 0.78));
    box-shadow: 0 10px 28px rgba(1, 8, 22, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 0;
    min-height: auto;
}

/* ── Yeşil (kasa) varyant ── */
.panel-stat-card--green {
    border-color: rgba(22, 196, 122, 0.22);
    background: radial-gradient(
            ellipse 118% 90% at 16% -12%,
            rgba(22, 196, 122, 0.18),
            rgba(5, 150, 105, 0.09) 45%,
            rgba(8, 18, 28, 0.55)
        ),
        linear-gradient(165deg, rgba(10, 30, 22, 0.72), rgba(8, 16, 28, 0.82));
    box-shadow: 0 10px 28px rgba(0, 12, 8, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-light .panel-stat-card--green,
html.theme-light-preload .panel-stat-card--green {
    border-color: rgba(22, 196, 122, 0.28);
    background: radial-gradient(
            ellipse 120% 90% at 10% -10%,
            rgba(22, 196, 122, 0.12),
            rgba(5, 150, 105, 0.05) 45%,
            rgba(250, 255, 252, 0)
        ),
        linear-gradient(165deg, #f0fdf8, #f8fffc);
    box-shadow: 0 8px 24px rgba(0, 60, 30, 0.08), inset 0 1px 0 #fff;
}

.panel-stat-card--green:hover {
    box-shadow: 0 14px 34px rgba(0, 12, 8, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.theme-light .panel-stat-card--green:hover,
html.theme-light-preload .panel-stat-card--green:hover {
    box-shadow: 0 12px 30px rgba(0, 60, 30, 0.13), inset 0 1px 0 #fff !important;
}

.panel-stat-card__kasa-accent {
    height: 3px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), rgba(3, 169, 244, 0.75), rgba(56, 189, 248, 0.12));
}

.panel-stat-card__kasa-accent--green {
    background: linear-gradient(90deg, rgba(22, 196, 122, 0.1), rgba(22, 196, 122, 0.82), rgba(5, 150, 105, 0.15));
}

.panel-stat-card__kasa-body {
    padding: 0.76rem 0.94rem 0.88rem;
    border: 0;
}

.panel-stat-card--kasa-modern .panel-stat-head {
    margin-bottom: 0.2rem;
}

.panel-stat-value--kasa {
    font-variant-numeric: tabular-nums;
    font-size: 1.42rem;
    letter-spacing: 0.02em;
}

body.theme-light .panel-stat-card--kasa-modern,
html.theme-light-preload .panel-stat-card--kasa-modern {
    border-color: rgba(3, 169, 244, 0.2);
    background: radial-gradient(
            ellipse 110% 90% at 18% -8%,
            rgba(206, 240, 255, 1),
            rgba(243, 252, 255, 1) 50%,
            rgba(237, 246, 255, 1)
        );
    box-shadow: 0 12px 32px rgba(24, 60, 112, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.panel-kasa-apartment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.52rem;
    margin-top: 0.18rem;
}

.panel-kasa-apartment-name {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.panel-kasa-block-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border-radius: 8px;
    padding: 0.18rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    white-space: nowrap;
}

.panel-kasa-soft-divider {
    height: 1px;
    margin: 0.5rem 0 0.56rem;
    background: linear-gradient(90deg, rgba(3, 169, 244, 0), rgba(3, 169, 244, 0.34), rgba(3, 169, 244, 0));
}

.panel-kasa-quick-card {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 0.6rem 0.6rem;
    border-radius: 0.88rem;
    border: 1px solid rgba(3, 169, 244, 0.14);
    background: rgba(12, 20, 36, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 28px rgba(2, 8, 23, 0.2);
}

.panel-kasa-quick-actions-wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0.42rem;
    row-gap: 0.92rem;
    margin-top: 1.2rem;
}

.panel-kasa-quick-card .panel-kasa-soft-divider--in-card {
    margin: 0.55rem 0 0;
}

button.panel-kasa-quick-action {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0.35rem 0.42rem;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}

.panel-kasa-quick-action {
    min-height: 66px;
    border-radius: 0.68rem;
    border: none;
    background: rgba(3, 169, 244, 0.09);
    color: #d8f1ff;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.panel-kasa-quick-action i {
    font-size: 0.9rem;
    color: var(--primary);
}

.panel-kasa-quick-action:hover {
    background: rgba(3, 169, 244, 0.18);
    transform: translateY(-1px);
    color: #f2fbff;
}

.panel-kasa-quick-action:active {
    transform: translateY(0);
}

.panel-kasa-quick-action:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.panel-kasa-quick-action__text {
    margin-top: 0.18rem;
    display: block;
    width: 100%;
    line-height: 1.15;
    font-size: 0.63rem;
    font-weight: 500;
    text-align: center;
    color: #eaf4ff !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body.theme-light .panel-kasa-quick-action__text,
html.theme-light-preload .panel-kasa-quick-action__text {
    color: #13324f !important;
}

.categories-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.62rem;
}

.categories-card-item {
    border: 1px solid rgba(3, 169, 244, 0.2);
    border-radius: 0.88rem;
    background: linear-gradient(165deg, rgba(16, 30, 52, 0.85), rgba(12, 22, 40, 0.9));
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    padding: 0.55rem;
    position: relative;
}

.categories-card-item__main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 0.62rem 0.72rem;
    border-radius: 0.72rem;
    box-sizing: border-box;
    background: rgba(5, 10, 20, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.22s ease;
    will-change: transform;
    touch-action: pan-y;
}

.categories-card-item__link {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    border-radius: 0;
}

.categories-card-item__link:hover .categories-card-item__name {
    color: #fff;
}

.categories-card-item__link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.categories-card-item__body-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.categories-card-item__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    gap: 0.35rem;
}

.categories-card-item__title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.categories-card-item__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.58rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 0;
    background: rgba(3, 169, 244, 0.12);
    font-size: 0.88rem;
}

.categories-card-item__body--edit {
    flex: 1 1 auto;
    min-height: 0;
}

.categories-card-item__name-input {
    width: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(3, 169, 244, 0.38);
    background: rgba(15, 25, 35, 0.42);
    color: #f8fafc;
    padding: 0.38rem 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.32;
    box-sizing: border-box;
}

.categories-card-item__name-input:focus {
    outline: none;
    border-color: rgba(3, 169, 244, 0.65);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.2);
}

.categories-card-item__name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #eaf6ff;
    line-height: 1.32;
    letter-spacing: 0.01em;
    word-break: break-word;
}

.categories-card-item__toolbar {
    flex-shrink: 0;
    align-self: center;
    transition: opacity 0.2s ease;
}

.categories-card-item .sites-actions {
    flex-wrap: nowrap;
    gap: 0.38rem;
}

.hub-payments-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

.hub-payments-card-item {
    border: 1px solid rgba(3, 169, 244, 0.2);
    border-radius: 0.88rem;
    background: linear-gradient(165deg, rgba(16, 30, 52, 0.85), rgba(12, 22, 40, 0.9));
    padding: 0.72rem 0.72rem 0.72rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    position: relative;
    overflow: hidden;
}

.hub-payments-card-item__accent {
    position: absolute;
    left: 0;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3), 0 0 12px rgba(34, 197, 94, 0.24);
}

.hub-payments-card-item__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.hub-payments-card-item__category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.58rem;
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
    font-size: 0.82rem;
    flex: 0 0 auto;
}

.hub-payments-card-item__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #eaf6ff;
    min-width: 0;
    word-break: break-word;
    flex: 1 1 auto;
}

.hub-payments-card-item__date {
    font-size: 0.72rem;
    color: #8aa1b6;
    font-weight: 500;
    flex: 0 0 auto;
}

.hub-payments-card-item__amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0.18rem 0 0.22rem;
    padding: 0.1rem 0;
}

.hub-payments-card-item__status {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.77rem;
    font-weight: 600;
    color: #16a34a;
    border: 0;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.12);
    padding: 0.2rem 0.5rem;
}

.hub-payments-card-item__amount {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #16a34a;
    margin-left: auto;
    text-align: right;
}

.hub-payments-card-item__note {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
    word-break: break-word;
}

.hub-payments-card-item__note-icon,
.hub-payments-card-item__note-text {
    color: #8aa1b6;
}

.hub-payments-card-item__meta-note-right {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: #8aa1b6;
    line-height: 1.35;
    min-width: 0;
    max-width: 56%;
    text-align: right;
}

.hub-payments-card-item__meta-note-right::before {
    content: '';
    width: 1px;
    height: 0.72rem;
    background: rgba(148, 163, 184, 0.42);
    margin-right: 0.14rem;
    flex-shrink: 0;
}

.hub-payments-card-item__meta-note-right .hub-payments-card-item__note-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-payments-card-item .unit-pay-card__meta-note::before {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.hub-expense-add-title {
    margin: 0;
    padding-left: 0.62rem;
    border-left: 3px solid var(--primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.hub-expense-add-subtitle {
    margin: 0.35rem 0 0.75rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

body.theme-light .categories-card-item,
html.theme-light-preload .categories-card-item {
    background: linear-gradient(170deg, #ffffff, #f3f9ff);
    border-color: rgba(3, 169, 244, 0.2);
}

body.theme-light .categories-card-item__main,
html.theme-light-preload .categories-card-item__main {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(3, 169, 244, 0.16);
}

body.theme-light .categories-card-item__name,
html.theme-light-preload .categories-card-item__name {
    color: #16324c;
}

body.theme-light .categories-card-item__name-input,
html.theme-light-preload .categories-card-item__name-input {
    background: #fff;
    color: #16324c;
    border-color: rgba(3, 169, 244, 0.35);
}

body.theme-light .categories-card-item__link:hover .categories-card-item__name,
html.theme-light-preload .categories-card-item__link:hover .categories-card-item__name {
    color: #0f172a;
}

body.theme-light .hub-payments-card-item,
html.theme-light-preload .hub-payments-card-item {
    background: #ffffff;
    border-color: #d9e6f2;
}

body.theme-light .hub-payments-card-item__accent,
html.theme-light-preload .hub-payments-card-item__accent {
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), 0 0 8px rgba(34, 197, 94, 0.18);
}

body.theme-light .payments-feed-card--due .hub-payments-card-item__accent,
html.theme-light-preload .payments-feed-card--due .hub-payments-card-item__accent {
    background: linear-gradient(180deg, #bbf7d0 0%, #22c55e 100%);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.28), 0 0 12px rgba(34, 197, 94, 0.16);
}

body.theme-light .payments-feed-card--due .hub-payments-card-item__category-icon,
html.theme-light-preload .payments-feed-card--due .hub-payments-card-item__category-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

body.theme-light .payments-feed-card--expense .hub-payments-card-item__accent,
html.theme-light-preload .payments-feed-card--expense .hub-payments-card-item__accent {
    background: linear-gradient(180deg, #bae6fd 0%, #03a9f4 55%, #0284c7 100%);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.28), 0 0 12px rgba(3, 169, 244, 0.14);
}

body.theme-light .payments-feed-card--expense .hub-payments-card-item__category-icon,
html.theme-light-preload .payments-feed-card--expense .hub-payments-card-item__category-icon {
    background: rgba(3, 169, 244, 0.12);
    color: #0284c7;
}

body.theme-light .dashboard-shell--payments-page .payments-feed-card .user-role-badge,
html.theme-light-preload .dashboard-shell--payments-page .payments-feed-card .user-role-badge {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.28);
}

body.theme-light .hub-payments-card-item__title,
html.theme-light-preload .hub-payments-card-item__title {
    color: #13293d;
}

body.theme-light .hub-expense-add-title,
html.theme-light-preload .hub-expense-add-title {
    color: #16324c;
}

.panel-stat-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.72rem;
    font-size: 1.28rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(3, 169, 244, 0.22);
    box-shadow: 0 1px 10px rgba(3, 169, 244, 0.12);
}

body.theme-light .panel-stat-card--kasa:not(.panel-stat-card--kasa-modern),
html.theme-light-preload .panel-stat-card--kasa:not(.panel-stat-card--kasa-modern) {
    background: linear-gradient(145deg, rgba(243, 252, 255, 1), rgba(237, 248, 255, 1));
    border-color: rgba(3, 169, 244, 0.22);
    box-shadow: 0 10px 24px rgba(24, 60, 112, 0.1);
}

body.theme-light .panel-overview-card,
html.theme-light-preload .panel-overview-card {
    background: #043f59;
    border-color: rgba(3, 169, 244, 0.28);
}

/* Kart koyu kaldığı için içindeki tüm metinler light modda da açık renk kalmalı */
body.theme-light .panel-overview-card .panel-overview-card__apt-row,
html.theme-light-preload .panel-overview-card .panel-overview-card__apt-row {
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

body.theme-light .panel-overview-card .panel-overview-card__apt-title-text,
html.theme-light-preload .panel-overview-card .panel-overview-card__apt-title-text {
    color: rgba(196, 218, 238, 0.88);
}

body.theme-light .panel-overview-card .panel-overview-card__apt-name-text,
html.theme-light-preload .panel-overview-card .panel-overview-card__apt-name-text {
    color: rgba(230, 244, 255, 0.96);
}

body.theme-light .panel-overview-card .panel-overview-card__apt-title-sep,
html.theme-light-preload .panel-overview-card .panel-overview-card__apt-title-sep {
    color: rgba(196, 218, 238, 0.38);
}

body.theme-light .panel-overview-card .panel-overview-card__apt-title-icon,
html.theme-light-preload .panel-overview-card .panel-overview-card__apt-title-icon {
    color: #56718a;
}

body.theme-light .panel-overview-card .panel-overview-card__apt-block-text,
html.theme-light-preload .panel-overview-card .panel-overview-card__apt-block-text {
    color: rgba(196, 218, 238, 0.78);
}

body.theme-light .panel-overview-card .panel-overview-card__head h2,
html.theme-light-preload .panel-overview-card .panel-overview-card__head h2 {
    color: rgba(216, 233, 248, 0.9);
}

body.theme-light .panel-overview-card .panel-overview-card__item,
html.theme-light-preload .panel-overview-card .panel-overview-card__item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8f3ff;
}

body.theme-light .panel-overview-card .panel-overview-card__item:hover,
html.theme-light-preload .panel-overview-card .panel-overview-card__item:hover {
    background: rgba(255, 255, 255, 0.14);
}

body.theme-light .panel-overview-card .panel-overview-card__resident,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

body.theme-light .panel-overview-card .panel-overview-card__resident-unit,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-unit {
    color: #e8f3ff;
}

body.theme-light .panel-overview-card .panel-overview-card__resident-unit i,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-unit i {
    color: #7dd3fc;
}

body.theme-light .panel-overview-card .panel-overview-card__resident-balance,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-balance {
    color: rgba(191, 212, 235, 0.95);
}

body.theme-light .panel-overview-card .panel-overview-card__resident-balance i,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-balance i {
    color: #38bdf8;
}

body.theme-light .panel-overview-card .panel-overview-card__resident-divider,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-divider {
    border-top-color: rgba(148, 163, 184, 0.36);
}

body.theme-light .panel-overview-card .panel-overview-card__resident-balance-title,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-balance-title {
    color: rgba(196, 218, 238, 0.88);
}

body.theme-light .panel-overview-card .panel-overview-card__resident-balance-amount,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-balance-amount {
    color: #ef6a7e;
}

body.theme-light .panel-overview-card .panel-overview-card__resident-status-title,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-status-title {
    color: rgba(196, 218, 238, 0.88);
}

body.theme-light .panel-overview-card .panel-overview-card__resident-status.is-debtor,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-status.is-debtor {
    background: rgba(248, 113, 113, 0.16);
    color: #e5e7eb;
}

body.theme-light .panel-overview-card .panel-overview-card__resident-status.is-clear,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-status.is-clear {
    background: rgba(74, 222, 128, 0.16);
    color: #e5e7eb;
}

body.theme-light .panel-overview-card .panel-overview-card__resident-debt-amount,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-debt-amount {
    color: #b91c1c;
}

body.theme-light .panel-overview-card .panel-overview-card__resident-debt-note,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident-debt-note {
    color: rgba(196, 218, 238, 0.88);
}

body.theme-light .panel-overview-card .panel-overview-card__resident .user-role-badge,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident .user-role-badge {
    background: rgba(255, 255, 255, 0.84);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.18);
}

body.theme-light .panel-overview-card .panel-overview-card__resident .user-role-badge i,
html.theme-light-preload .panel-overview-card .panel-overview-card__resident .user-role-badge i {
    color: #0284c7;
}

body.theme-light .panel-overview-card .panel-overview-card__label,
html.theme-light-preload .panel-overview-card .panel-overview-card__label {
    color: rgba(169, 196, 220, 0.82);
}

body.theme-light .panel-overview-card .panel-overview-card__value,
html.theme-light-preload .panel-overview-card .panel-overview-card__value {
    color: #e8f3ff;
}

body.theme-light .panel-overview-card .panel-overview-card__kasa-title,
html.theme-light-preload .panel-overview-card .panel-overview-card__kasa-title {
    color: rgba(216, 233, 248, 0.85);
}

body.theme-light .panel-overview-card .panel-overview-card__kasa-item,
html.theme-light-preload .panel-overview-card .panel-overview-card__kasa-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-light .panel-overview-card .panel-overview-card__kasa-label,
html.theme-light-preload .panel-overview-card .panel-overview-card__kasa-label {
    color: rgba(169, 196, 220, 0.80);
}

body.theme-light .panel-overview-card .panel-overview-card__kasa-val,
html.theme-light-preload .panel-overview-card .panel-overview-card__kasa-val {
    color: #d4efff;
}

body.theme-light .panel-kasa-apartment-name,
html.theme-light-preload .panel-kasa-apartment-name {
    color: #56718a;
}

body.theme-light .panel-kasa-soft-divider,
html.theme-light-preload .panel-kasa-soft-divider {
    background: linear-gradient(90deg, rgba(3, 169, 244, 0), rgba(3, 169, 244, 0.3), rgba(3, 169, 244, 0));
}

body.theme-light .panel-kasa-quick-card,
html.theme-light-preload .panel-kasa-quick-card {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(3, 169, 244, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 12px 32px rgba(15, 34, 60, 0.08);
}

body.theme-light .panel-kasa-quick-action,
html.theme-light-preload .panel-kasa-quick-action {
    border: none;
    background: rgba(3, 169, 244, 0.08);
    color: #114067;
}

body.theme-light .panel-kasa-quick-action:hover,
html.theme-light-preload .panel-kasa-quick-action:hover {
    background: rgba(3, 169, 244, 0.15);
    color: #0d3253;
}

/* ── Quick Action renk varyantları ── */

/* Kategoriler — birincil mavi */
.panel-kasa-quick-action--blue {
    background: rgba(3, 169, 244, 0.1) !important;
    color: #c8eeff;
}
.panel-kasa-quick-action--blue i {
    color: #03a9f4 !important;
}
.panel-kasa-quick-action--blue:hover {
    background: rgba(3, 169, 244, 0.2) !important;
    color: #e0f5ff;
}

/* Anketler — yeşil */
.panel-kasa-quick-action--green {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #c8f5e6;
}
.panel-kasa-quick-action--green i {
    color: #10b981 !important;
}
.panel-kasa-quick-action--green:hover {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #e0faf2;
}

/* Kategoriler — lime */
.panel-kasa-quick-action--lime {
    background: rgba(132, 204, 22, 0.11) !important;
    color: #ecfccb;
}
.panel-kasa-quick-action--lime i {
    color: #a3e635 !important;
}
.panel-kasa-quick-action--lime:hover {
    background: rgba(132, 204, 22, 0.22) !important;
    color: #f7fee7;
}

/* Duyurular — turuncu */
.panel-kasa-quick-action--orange {
    background: rgba(249, 115, 22, 0.1) !important;
    color: #fddfc8;
}
.panel-kasa-quick-action--orange i {
    color: #f97316 !important;
}
.panel-kasa-quick-action--orange:hover {
    background: rgba(249, 115, 22, 0.2) !important;
    color: #fee8d4;
}

/* Ayarlar — mor */
.panel-kasa-quick-action--purple {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #e2d4ff;
}
.panel-kasa-quick-action--purple i {
    color: #8b5cf6 !important;
}
.panel-kasa-quick-action--purple:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #efe8ff;
}

/* Light theme overrides */
body.theme-light .panel-kasa-quick-action--blue,
html.theme-light-preload .panel-kasa-quick-action--blue {
    background: rgba(3, 169, 244, 0.1) !important;
    color: #0a3d5c;
}
body.theme-light .panel-kasa-quick-action--blue i,
html.theme-light-preload .panel-kasa-quick-action--blue i {
    color: #028acc !important;
}
body.theme-light .panel-kasa-quick-action--blue:hover,
html.theme-light-preload .panel-kasa-quick-action--blue:hover {
    background: rgba(3, 169, 244, 0.18) !important;
    color: #072f47;
}

body.theme-light .panel-kasa-quick-action--green,
html.theme-light-preload .panel-kasa-quick-action--green {
    background: rgba(16, 185, 129, 0.09) !important;
    color: #0b4a32;
}
body.theme-light .panel-kasa-quick-action--green i,
html.theme-light-preload .panel-kasa-quick-action--green i {
    color: #059669 !important;
}
body.theme-light .panel-kasa-quick-action--green:hover,
html.theme-light-preload .panel-kasa-quick-action--green:hover {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #083826;
}

body.theme-light .panel-kasa-quick-action--lime,
html.theme-light-preload .panel-kasa-quick-action--lime {
    background: rgba(132, 204, 22, 0.1) !important;
    color: #365314;
}
body.theme-light .panel-kasa-quick-action--lime i,
html.theme-light-preload .panel-kasa-quick-action--lime i {
    color: #65a30d !important;
}
body.theme-light .panel-kasa-quick-action--lime:hover,
html.theme-light-preload .panel-kasa-quick-action--lime:hover {
    background: rgba(132, 204, 22, 0.18) !important;
    color: #1a2e05;
}

body.theme-light .panel-kasa-quick-action--orange,
html.theme-light-preload .panel-kasa-quick-action--orange {
    background: rgba(249, 115, 22, 0.09) !important;
    color: #7a2800;
}
body.theme-light .panel-kasa-quick-action--orange i,
html.theme-light-preload .panel-kasa-quick-action--orange i {
    color: #ea580c !important;
}
body.theme-light .panel-kasa-quick-action--orange:hover,
html.theme-light-preload .panel-kasa-quick-action--orange:hover {
    background: rgba(249, 115, 22, 0.18) !important;
    color: #5c1f00;
}

body.theme-light .panel-kasa-quick-action--purple,
html.theme-light-preload .panel-kasa-quick-action--purple {
    background: rgba(139, 92, 246, 0.09) !important;
    color: #3b1a72;
}
body.theme-light .panel-kasa-quick-action--purple i,
html.theme-light-preload .panel-kasa-quick-action--purple i {
    color: #7c3aed !important;
}
body.theme-light .panel-kasa-quick-action--purple:hover,
html.theme-light-preload .panel-kasa-quick-action--purple:hover {
    background: rgba(139, 92, 246, 0.18) !important;
    color: #2a1154;
}

/* ── Kargo — gerçek teal (birincil mavi ile karışmasın) ── */
.panel-kasa-quick-action--teal {
    background: rgba(45, 212, 171, 0.11) !important;
    color: #ccfbf5;
}
.panel-kasa-quick-action--teal i {
    color: #2dd4bf !important;
}
.panel-kasa-quick-action--teal:hover {
    background: rgba(45, 212, 171, 0.22) !important;
    color: #e6fffa;
}
body.theme-light .panel-kasa-quick-action--teal,
html.theme-light-preload .panel-kasa-quick-action--teal {
    background: rgba(13, 148, 136, 0.1) !important;
    color: #0f3d36;
}
body.theme-light .panel-kasa-quick-action--teal i,
html.theme-light-preload .panel-kasa-quick-action--teal i {
    color: #0d9488 !important;
}
body.theme-light .panel-kasa-quick-action--teal:hover,
html.theme-light-preload .panel-kasa-quick-action--teal:hover {
    background: rgba(13, 148, 136, 0.18) !important;
    color: #0b2e29;
}

/* ── Indigo (Araçlar) ── */
.panel-kasa-quick-action--indigo {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #d0d1ff;
}
.panel-kasa-quick-action--indigo i { color: #818cf8 !important; }
.panel-kasa-quick-action--indigo:hover { background: rgba(99, 102, 241, 0.2) !important; color: #e8e9ff; }
body.theme-light .panel-kasa-quick-action--indigo,
html.theme-light-preload .panel-kasa-quick-action--indigo {
    background: rgba(99, 102, 241, 0.09) !important;
    color: #2d2e7a;
}
body.theme-light .panel-kasa-quick-action--indigo i,
html.theme-light-preload .panel-kasa-quick-action--indigo i { color: #4f46e5 !important; }
body.theme-light .panel-kasa-quick-action--indigo:hover,
html.theme-light-preload .panel-kasa-quick-action--indigo:hover {
    background: rgba(99, 102, 241, 0.18) !important;
    color: #1a1b5e;
}

/* ── Slate (Firmalar) ── */
.panel-kasa-quick-action--slate {
    background: rgba(100, 116, 139, 0.12) !important;
    color: #ccd8e8;
}
.panel-kasa-quick-action--slate i { color: #94a3b8 !important; }
.panel-kasa-quick-action--slate:hover { background: rgba(100, 116, 139, 0.22) !important; color: #e2eaf4; }
body.theme-light .panel-kasa-quick-action--slate,
html.theme-light-preload .panel-kasa-quick-action--slate {
    background: rgba(100, 116, 139, 0.1) !important;
    color: #334155;
}
body.theme-light .panel-kasa-quick-action--slate i,
html.theme-light-preload .panel-kasa-quick-action--slate i { color: #475569 !important; }
body.theme-light .panel-kasa-quick-action--slate:hover,
html.theme-light-preload .panel-kasa-quick-action--slate:hover {
    background: rgba(100, 116, 139, 0.18) !important;
    color: #1e293b;
}

/* ── Daireler — gökyüzü / cyan ── */
.panel-kasa-quick-action--sky {
    background: rgba(34, 211, 238, 0.09) !important;
    color: #cffafe;
}
.panel-kasa-quick-action--sky i {
    color: #22d3ee !important;
}
.panel-kasa-quick-action--sky:hover {
    background: rgba(34, 211, 238, 0.18) !important;
    color: #e0fafe;
}
body.theme-light .panel-kasa-quick-action--sky,
html.theme-light-preload .panel-kasa-quick-action--sky {
    background: rgba(34, 211, 238, 0.1) !important;
    color: #0e4f5c;
}
body.theme-light .panel-kasa-quick-action--sky i,
html.theme-light-preload .panel-kasa-quick-action--sky i {
    color: #0891b2 !important;
}
body.theme-light .panel-kasa-quick-action--sky:hover,
html.theme-light-preload .panel-kasa-quick-action--sky:hover {
    background: rgba(34, 211, 238, 0.18) !important;
    color: #0a3d47;
}

/* ── Araçlar — amber ── */
.panel-kasa-quick-action--amber {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #fff7dc;
}
.panel-kasa-quick-action--amber i {
    color: #f59e0b !important;
}
.panel-kasa-quick-action--amber:hover {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fffbeb;
}
body.theme-light .panel-kasa-quick-action--amber,
html.theme-light-preload .panel-kasa-quick-action--amber {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #78350f;
}
body.theme-light .panel-kasa-quick-action--amber i,
html.theme-light-preload .panel-kasa-quick-action--amber i {
    color: #d97706 !important;
}
body.theme-light .panel-kasa-quick-action--amber:hover,
html.theme-light-preload .panel-kasa-quick-action--amber:hover {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #5c2d0a;
}

/* ── Topluluk kuralları — tek mor ton (politika / hukuk okuması) ── */
.panel-kasa-quick-action--rules {
    background: rgba(124, 58, 237, 0.11) !important;
    color: #ede9fe;
}
.panel-kasa-quick-action--rules i {
    color: #a78bfa !important;
}
.panel-kasa-quick-action--rules:hover {
    background: rgba(124, 58, 237, 0.21) !important;
    color: #f5f3ff;
}
body.theme-light .panel-kasa-quick-action--rules,
html.theme-light-preload .panel-kasa-quick-action--rules {
    background: rgba(124, 58, 237, 0.1) !important;
    color: #4c1d95;
}
body.theme-light .panel-kasa-quick-action--rules i,
html.theme-light-preload .panel-kasa-quick-action--rules i {
    color: #7c3aed !important;
}
body.theme-light .panel-kasa-quick-action--rules:hover,
html.theme-light-preload .panel-kasa-quick-action--rules:hover {
    background: rgba(124, 58, 237, 0.18) !important;
    color: #3b0764;
}

/* ── Ziyaretçi — rose (mor ailesinden ayrışır) ── */
.panel-kasa-quick-action--rose {
    background: rgba(244, 63, 94, 0.09) !important;
    color: #ffe4e9;
}
.panel-kasa-quick-action--rose i {
    color: #fb7185 !important;
}
.panel-kasa-quick-action--rose:hover {
    background: rgba(244, 63, 94, 0.19) !important;
    color: #fff0f2;
}
body.theme-light .panel-kasa-quick-action--rose,
html.theme-light-preload .panel-kasa-quick-action--rose {
    background: rgba(244, 63, 94, 0.09) !important;
    color: #9f1239;
}
body.theme-light .panel-kasa-quick-action--rose i,
html.theme-light-preload .panel-kasa-quick-action--rose i {
    color: #e11d48 !important;
}
body.theme-light .panel-kasa-quick-action--rose:hover,
html.theme-light-preload .panel-kasa-quick-action--rose:hover {
    background: rgba(244, 63, 94, 0.17) !important;
    color: #831843;
}

/* ── Araç Kartları ── */
.vehicle-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0rem 0.85rem;
    grid-column: 1 / -1;
}
@media (min-width: 821px) { .vehicle-cards { padding-left: 0; padding-right: 0; } }

.vehicle-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg, rgba(14, 24, 44, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.9rem;
    padding: 0.75rem 0.85rem;
    transition: border-color 0.16s;
}

.vehicle-card__left { flex-shrink: 0; }

.vehicle-card__type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.6rem;
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    font-size: 0.85rem;
}

.vehicle-card__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.vehicle-card__plate {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ddeeff;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.vehicle-card__brand {
    font-size: 0.72rem;
    color: var(--muted, #6a86a0);
}

.vehicle-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.vehicle-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.62rem;
    color: var(--muted, #6a86a0);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.4rem;
    padding: 0.15em 0.45em;
}
.vehicle-card__chip i { font-size: 0.58rem; }

.vehicle-card__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.vehicle-card__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}
.vehicle-card__action-btn--edit:hover { background: rgba(3, 169, 244, 0.15); color: var(--primary); }
.vehicle-card__action-btn--delete:hover { background: rgba(240, 80, 80, 0.15); color: #f05050; }

.vehicle-card__action-btn--pill-text {
    width: auto;
    min-height: auto;
    height: auto;
    padding: 0.42rem 0.62rem;
    border-radius: 0.55rem;
}

body.theme-light .vehicle-card,
html.theme-light-preload .vehicle-card {
    background: #ffffff;
    border-color: #e2edf6;
}
body.theme-light .vehicle-card__plate,
html.theme-light-preload .vehicle-card__plate { color: #0f2840; }
body.theme-light .vehicle-card__brand,
body.theme-light .vehicle-card__meta,
html.theme-light-preload .vehicle-card__brand,
html.theme-light-preload .vehicle-card__meta { color: #6a86a0; }
body.theme-light .vehicle-card__chip,
html.theme-light-preload .vehicle-card__chip {
    background: rgba(3, 169, 244, 0.05);
    border-color: #daeaf6;
    color: #5a7a96;
}
body.theme-light .vehicle-card__type-icon,
html.theme-light-preload .vehicle-card__type-icon {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
}
body.theme-light .vehicle-card__action-btn,
html.theme-light-preload .vehicle-card__action-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #6a86a0;
}

/* ── Firma Kartları ── */
.firms-kind-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0 0 0.65rem;
    grid-column: 1 / -1;
}

.firms-kind-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 90%, var(--primary) 10%);
    border: 1px solid color-mix(in srgb, var(--border) 82%, var(--primary) 18%);
}

.firms-kind-pill {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.firms-kind-pill:hover {
    color: var(--text);
}

.firms-kind-pill.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(3, 169, 244, 0.22);
}

.firm-card__role-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 600;
}

.firm-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0rem 0.85rem;
    grid-column: 1 / -1;
}

.dashboard-shell--users-page .users-list-mobile.firm-cards {
    gap: 0.75rem;
}
@media (min-width: 821px) { .firm-cards { padding-left: 0; padding-right: 0; } }

.firm-cards--entity {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.dashboard-shell--visitor-log-page .firm-cards--entity.firm-cards {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 821px) {
    .firm-cards--entity {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Duyuru kartı filigranı ile aynı his: sağ alt soft ikon (kargo / ziyaretçi / firma) */
.entity-card__watermark {
    position: absolute;
    right: 0.55rem;
    bottom: 0.18rem;
    font-size: 2.1rem;
    line-height: 1;
    color: rgba(148, 163, 184, 0.16);
    transform: none;
    transform-origin: center center;
    pointer-events: none;
    z-index: 0;
}

/* Ziyaretçi kartı: filigran ikon düz (çapraz rotasyon yok) */
.firm-card.visitor-firm-card .entity-card__watermark {
    transform: none;
    transform-origin: center center;
}

.firm-card > *:not(.entity-card__watermark) {
    position: relative;
    z-index: 1;
}

body.theme-light .entity-card__watermark,
html.theme-light-preload .entity-card__watermark {
    color: rgba(148, 163, 184, 0.22);
}

.firm-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    background: var(--card-bg, rgba(14, 24, 44, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.9rem;
    padding: 0.8rem 0.85rem;
    transition: border-color 0.16s;
}

.firm-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #5ac8fa 0%, #03a9f4 100%);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.28), 0 0 12px rgba(3, 169, 244, 0.24);
}

.firm-card__left { flex-shrink: 0; padding-top: 0.05rem; }

.firm-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.6rem;
    background: rgba(100, 116, 139, 0.12);
    color: #94a3b8;
    font-size: 0.85rem;
}

.firm-card__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.firm-card__name {
    font-size: 0.87rem;
    font-weight: 700;
    color: #ddeeff;
    margin: 0;
}

.firm-card__service {
    font-size: 0.72rem;
    color: var(--muted, #6a86a0);
    margin: 0;
}

.firm-card__divider {
    height: 0;
    margin: 0.4rem 0 0;
    flex-shrink: 0;
}

.firm-card__divider--dashed {
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

/* Firmalar: kargo kartındaki gibi tam satır ayraç + iletişim alt satırda, yatay iç boşluklu */
.dashboard-shell--firms-page .firm-cards > .firm-card {
    flex-wrap: wrap;
    align-items: stretch;
}

.dashboard-shell--firms-page .firm-card__top-cluster {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    flex: 1 1 100%;
    min-height: 5.05rem;
    box-sizing: border-box;
}

.dashboard-shell--firms-page .firm-card__top-cluster .firm-card__left {
    padding-top: 0;
    align-self: center;
}

.dashboard-shell--firms-page .firm-card__top-cluster .firm-card__body {
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
}

.dashboard-shell--firms-page .firm-card__top-cluster .firm-card__actions {
    align-self: center;
    padding-top: 0;
}

.dashboard-shell--firms-page .firm-cards > .firm-card > .firm-card__divider--firm-stack {
    flex: 1 0 100%;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.42rem !important;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    margin-bottom: 0 !important;
    align-self: stretch;
}

.dashboard-shell--firms-page .firm-cards > .firm-card > .firm-card__contact--firm-stack {
    flex: 1 0 100%;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.38rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    justify-content: center;
    column-gap: 0.85rem;
}

body.theme-light .dashboard-shell--firms-page .firm-cards > .firm-card > .firm-card__divider--firm-stack,
html.theme-light-preload .dashboard-shell--firms-page .firm-cards > .firm-card > .firm-card__divider--firm-stack {
    border-top-color: rgba(100, 116, 139, 0.38);
}

.firm-card__contact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    column-gap: 0.75rem;
    margin-top: 0.38rem;
}

.firm-card__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    text-decoration: none;
    transition: color 0.15s;
}
.firm-card__contact-link i { font-size: 0.62rem; }
.firm-card__contact-link--phone { color: var(--primary); }
.firm-card__contact-link--mail  { color: #94a3b8; }
.firm-card__contact-link:hover { opacity: 0.8; }

.firm-card__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding-top: 0.05rem;
}

.firm-card__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}
.firm-card__action-btn--wa:hover  { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.firm-card__action-btn--phone:hover { background: rgba(3, 169, 244, 0.15); color: var(--primary); }
.firm-card__action-btn--password:hover { background: rgba(3, 169, 244, 0.15); color: var(--primary); }
.firm-card__action-btn--password:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.firm-card__action-btn--edit:hover { background: rgba(3, 169, 244, 0.15); color: var(--primary); }
.firm-card__action-btn--delete:hover { background: rgba(240, 80, 80, 0.15); color: #f05050; }
.firm-card__action-btn--password:disabled,
.firm-card__action-btn--password.firm-card__action-btn--disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

body.theme-light .firm-card,
html.theme-light-preload .firm-card {
    background: #ffffff;
    border-color: #e2edf6;
}
body.theme-light .firm-card__name,
html.theme-light-preload .firm-card__name { color: #0f2840; }
body.theme-light .firm-card__service,
html.theme-light-preload .firm-card__service { color: #6a86a0; }
body.theme-light .firm-card__divider--dashed,
html.theme-light-preload .firm-card__divider--dashed {
    border-top-color: rgba(100, 116, 139, 0.35);
}
body.theme-light .firm-card__action-btn,
html.theme-light-preload .firm-card__action-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #6a86a0;
}
body.theme-light .firm-card__icon,
html.theme-light-preload .firm-card__icon {
    background: rgba(100, 116, 139, 0.09);
    color: #475569;
}

.user-firm-card .firm-card__icon:not(.user-firm-card__avatar-host) {
    background: rgba(3, 169, 244, 0.14);
    color: var(--primary);
}

.user-firm-card {
    position: relative;
    overflow: hidden;
}

.firm-card.cargo-firm-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.firm-card.cargo-firm-card > .visitor-firm-card__header-strip--cluster {
    margin-bottom: 0.35rem;
}

.firm-card.visitor-firm-card {
    align-items: center;
}

.cargo-firm-card__row-primary {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

/* Kullanicilar mobil kart: üst sıra — kimlik + aksiyonlar dikey ortalı; ayraç altında iletişim ortalı */
.firm-card.user-firm-card--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    row-gap: 0.62rem;
    padding-top: 1.12rem;
    padding-bottom: 1.12rem;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    min-height: 5.35rem;
}

.user-firm-card__primary-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
    min-height: 5.05rem;
}

.firm-card.user-firm-card--stacked .user-firm-card__body-main.firm-card__body {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
}

.cargo-firm-card .firm-card__left,
.visitor-firm-card .firm-card__left {
    padding-top: 0;
    align-self: center;
    display: flex;
    align-items: center;
}

.user-firm-card--stacked .firm-card__actions.user-firm-card__actions {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
    align-self: center;
    padding-top: 0;
    gap: 0.4rem;
}

.cargo-firm-card .firm-card__actions,
.visitor-firm-card .firm-card__actions {
    padding-top: 0;
    align-self: center;
}

.user-firm-card__divider-foot {
    align-self: stretch;
    width: auto;
    max-width: none;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    margin-top: 0.12rem !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

.user-firm-card__contact-block {
    width: 100%;
    text-align: center;
}

.user-firm-card__contact-inline--footer {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin-top: 0;
}

.user-firm-card__contact-inline--footer .user-firm-card__contact-inline-part {
    justify-content: center;
}

/* İlanlarım — kategori kart içinde baslığın üstünde; statü sağda dikey ortalı */
.dashboard-shell--listings-page .firm-cards.firm-cards--entity.listings-my-published-list {
    padding-left: 0;
    padding-right: 0;
}

.listings-my-published-list {
    gap: 0.78rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.listings-my-published-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.listing-my-category-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin: 0;
    padding: 0;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(148, 163, 184, 0.78);
    line-height: 1.2;
}

.listing-my-category-heading i {
    font-size: 0.62rem;
    color: rgba(3, 169, 244, 0.75);
    opacity: 0.95;
}

body.theme-light .listing-my-category-heading,
html.theme-light-preload .listing-my-category-heading {
    color: rgba(71, 85, 105, 0.92);
}

.listings-my-published-list .listing-my-firm-card {
    padding: 0;
    overflow: visible;
    align-items: stretch;
}

.listing-my-firm-card__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    width: 100%;
    padding: 0.8rem 0.85rem;
    padding-left: calc(0.85rem + 3px);
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: inherit;
}

.listing-my-firm-card__status {
    position: relative;
    top: auto;
    right: auto;
    z-index: 2;
    flex-shrink: 0;
    align-self: center;
    margin-left: 0.45rem;
    max-width: min(42%, 7.5rem);
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    border: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.listing-my-firm-card__status--pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
}

.listing-my-firm-card__status--published {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.listing-my-firm-card__status--cancelled {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}

body.theme-light .listing-my-firm-card__status--pending,
html.theme-light-preload .listing-my-firm-card__status--pending {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}

body.theme-light .listing-my-firm-card__status--published,
html.theme-light-preload .listing-my-firm-card__status--published {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

body.theme-light .listing-my-firm-card__status--cancelled,
html.theme-light-preload .listing-my-firm-card__status--cancelled {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.listing-my-firm-card__thumb {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
}

.listing-my-firm-card__thumb-img {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.listing-my-firm-card__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(100, 116, 139, 0.12);
    color: #94a3b8;
    font-size: 1rem;
}

.listing-my-firm-card__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.22rem;
}

.listing-my-firm-card__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.28;
    color: #ddeeff;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

body.theme-light .listing-my-firm-card__title,
html.theme-light-preload .listing-my-firm-card__title {
    color: #0f172a;
}

.user-firm-card__avatar-host.firm-card__icon {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.user-firm-card__avatar-host .user-firm-card__avatar-wrap {
    width: 2.58rem;
    height: 2.58rem;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.22);
}

.user-firm-card__head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.62rem;
    min-width: 0;
}

.user-firm-card__avatar-slot {
    flex-shrink: 0;
}

.user-firm-card__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.22rem;
    min-width: 0;
    flex: 1 1 auto;
}

.user-firm-card__fullname {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ddeeff;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.user-firm-card .user-firm-card__role-badge {
    margin: 0;
    max-width: 100%;
}

.user-firm-card .user-firm-card__role-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-firm-card__meta-stack,
.entity-card__meta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}

.user-firm-card__name-line {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ddeeff;
    line-height: 1.22;
}

.user-firm-card__name-line--surname {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(200, 220, 245, 0.88);
}


.entity-card__divider-soft {
    margin-top: 0.45rem !important;
}

.user-firm-card__contact-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    row-gap: 0.28rem;
    margin-top: 0.42rem;
    font-size: 0.69rem;
    line-height: 1.35;
}

.user-firm-card .firm-card__body > .user-firm-card__contact-inline {
    margin-top: 0.32rem;
}

.user-firm-card__contact-inline--plain .user-firm-card__contact-inline-part {
    color: var(--muted, #94a3b8);
}

.user-firm-card__contact-inline-sep {
    color: rgba(148, 163, 184, 0.55);
    font-weight: 600;
    user-select: none;
}

.user-firm-card__inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    text-decoration: none;
    transition: opacity 0.15s;
    word-break: break-word;
}

.user-firm-card__inline-link:hover {
    opacity: 0.85;
}

.user-firm-card__inline-link--phone {
    color: var(--primary);
}

.user-firm-card__inline-link--mail {
    color: #94a3b8;
}

.user-firm-card__inline-placeholder {
    color: rgba(148, 163, 184, 0.55);
}

.user-firm-card__contact-inline-part--truncate {
    min-width: 0;
    flex: 1 1 6rem;
}

.user-firm-card__plate-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--muted, #94a3b8);
    min-width: 0;
}

.user-firm-card__plate-inline i {
    font-size: 0.62rem;
    flex-shrink: 0;
}

.entity-card__inline-ic {
    margin-right: 0.28rem;
    opacity: 0.85;
}

.entity-card__line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.entity-card__line--accent {
    font-size: 0.74rem;
    color: rgba(200, 220, 245, 0.9);
}

.entity-card__line--accent i {
    color: var(--primary);
    font-size: 0.72rem;
}

.cargo-firm-card__icon-badge {
    width: 2.58rem;
    height: 2.58rem;
    border-radius: 999px;
    font-size: 0.86rem;
    background: rgba(3, 169, 244, 0.07) !important;
    color: rgba(3, 169, 244, 0.78) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cargo-firm-card__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.62rem;
}

.cargo-firm-card__main-column {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.cargo-firm-card__user-line.entity-card__line {
    gap: 0.42rem;
}

.cargo-firm-card__user-icon-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
}

.cargo-firm-card__user-line .cargo-firm-card__user-ic {
    font-size: 0.75rem;
    color: var(--primary);
    line-height: 1;
}

.cargo-firm-card__package-line {
    display: flex;
    margin: 0.06rem 0 0 !important;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.42rem;
}

.cargo-firm-card__package-icon-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
}

.cargo-firm-card__package-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.cargo-firm-card__package-ic {
    font-size: 0.75rem;
    color: var(--primary);
    line-height: 1;
}

.cargo-firm-card__status-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding-left: 0.1rem;
}

.cargo-firm-card__divider-full.entity-card__divider-soft {
    margin-top: 0.32rem !important;
    margin-bottom: 0 !important;
    width: 100%;
    align-self: stretch;
}

.cargo-firm-card__foot-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    min-width: 0;
    margin-top: 0.62rem;
}

.cargo-firm-card__date-part {
    margin: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cargo-firm-card__carrier-part {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.38rem;
    flex: 0 1 auto;
    max-width: 58%;
    min-width: 0;
    line-height: 1.25;
}

.cargo-firm-card__carrier-ic {
    flex-shrink: 0;
    font-size: 0.62rem;
    line-height: 1;
    color: rgba(148, 163, 184, 0.42);
    opacity: 0.95;
}

.cargo-firm-card__carrier-label {
    min-width: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(200, 214, 232, 0.82);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.theme-light .cargo-firm-card__carrier-ic,
html.theme-light-preload .cargo-firm-card__carrier-ic {
    color: rgba(100, 116, 139, 0.38);
}

body.theme-light .cargo-firm-card__carrier-label,
html.theme-light-preload .cargo-firm-card__carrier-label {
    color: #64748b;
}

.cargo-firm-card[data-cargo-card='true'] {
    cursor: pointer;
}

.cargo-firm-card[data-cargo-card='true']:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cargo-firm-card__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.585rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.38em 0.55em;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.15;
}

.cargo-firm-card__pill--waiting {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cargo-firm-card__pill--delivered {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cargo-firm-card__pill--returned {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5f5;
    border: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-light .cargo-firm-card__pill--waiting,
html.theme-light-preload .cargo-firm-card__pill--waiting {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

body.theme-light .cargo-firm-card__pill--delivered,
html.theme-light-preload .cargo-firm-card__pill--delivered {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

body.theme-light .cargo-firm-card__pill--returned,
html.theme-light-preload .cargo-firm-card__pill--returned {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.unit-card-sheet__panel--cargo-status .unit-card-sheet__title--cargo-status {
    text-align: center;
    width: 100%;
}

.unit-card-sheet__panel--cargo-status .unit-card-sheet__quick-list {
    margin-top: 0.75rem;
}

.cargo-status-sheet-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
}

.cargo-status-sheet-form .unit-card-sheet__btn {
    width: 100%;
}

/* Kargo — masaustu: kart ~%25 daha kompakt; icerik ~%10 daha genis (yan padding) */
@media (min-width: 821px) {
    .dashboard-shell--cargo-page .dashboard-content.dashboard-content--units-page {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .dashboard-shell--cargo-page .firm-cards--entity.firm-cards {
        padding-left: 0;
        padding-right: 0;
    }

    .dashboard-shell--cargo-page .firm-cards--entity {
        gap: 0.42rem;
    }

    .dashboard-shell--cargo-page .firm-card.cargo-firm-card {
        padding: 0.56rem 0.92rem;
        gap: 0;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__row-primary {
        gap: 0.58rem;
    }

    .dashboard-shell--cargo-page .firm-card.cargo-firm-card::before {
        top: 0.4rem;
        bottom: 0.4rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card .entity-card__meta-stack {
        gap: 0.08rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__main-column {
        gap: 0.05rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__body {
        gap: 0.48rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__icon-badge {
        width: 2.08rem;
        height: 2.08rem;
        font-size: 0.72rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card .firm-card__name {
        font-size: 0.8rem;
        line-height: 1.16;
    }

    .dashboard-shell--cargo-page .cargo-firm-card .firm-card__service {
        font-size: 0.66rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card .entity-card__line--accent {
        font-size: 0.66rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__package-line {
        margin-top: 0.03rem !important;
        gap: 0.3rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__package-ic {
        font-size: 0.64rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__package-icon-wrap {
        width: 1.05rem;
        height: 1.05rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__pill {
        font-size: 0.52rem;
        padding: 0.3em 0.44em;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__divider-full.entity-card__divider-soft {
        margin-top: 0.2rem !important;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__foot-row {
        margin-top: 0.48rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__carrier-ic {
        font-size: 0.56rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__carrier-label {
        font-size: 0.62rem;
        max-width: 100%;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__carrier-part {
        max-width: 56%;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__user-icon-wrap {
        width: 1.05rem;
        height: 1.05rem;
    }

    .dashboard-shell--cargo-page .cargo-firm-card__user-line .cargo-firm-card__user-ic {
        font-size: 0.64rem;
    }
}

.visitor-firm-card__icon-badge {
    width: 2.58rem;
    height: 2.58rem;
    border-radius: 999px;
    font-size: 0.92rem;
    background: rgba(99, 102, 241, 0.14) !important;
    color: #818cf8 !important;
}

.visitor-view-pills {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    width: min(340px, calc(100% - 1.7rem));
    margin: 0.78rem auto 0.72rem;
    padding: 4px;
    border: 1px solid rgba(3, 169, 244, 0.28);
    border-radius: 999px;
    background: rgba(17, 26, 46, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.visitor-view-pills__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: var(--primary-gradient, linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%));
    box-shadow: 0 4px 14px rgba(3, 169, 244, 0.4);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.visitor-view-pills[data-tab='history'] .visitor-view-pills__thumb {
    transform: translateX(100%);
}

.visitor-view-pills__btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 2rem;
    padding: 0.46rem 0.62rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #7fa4c0;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.12s ease;
}

.visitor-view-pills__btn > i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9rem;
    height: 0.9rem;
    font-size: 0.72rem;
    line-height: 1;
}

.page-view-pills {
    width: min(360px, calc(100% - 1.7rem));
}

.visitor-view-pills__btn span {
    flex: 0 0 auto;
    display: inline-flex;
    min-width: 1.28rem;
    min-height: 1.18rem;
    align-items: center;
    justify-content: center;
    padding: 0.08rem 0.34rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: inherit;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
}

.visitor-view-pills__btn.is-active {
    color: #ffffff;
}

.visitor-view-pills__btn:hover {
    color: #d7f3ff;
}

.visitor-view-pills__btn:active {
    transform: scale(0.99);
}

.visitor-view-pills__btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.theme-light .visitor-view-pills,
html.theme-light-preload .visitor-view-pills {
    border-color: rgba(3, 169, 244, 0.3);
    background: #f0f7fd;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(3, 169, 244, 0.1);
}

body.theme-light .visitor-view-pills__btn,
html.theme-light-preload .visitor-view-pills__btn {
    color: #5a7d9a;
}

body.theme-light .visitor-view-pills__btn.is-active,
html.theme-light-preload .visitor-view-pills__btn.is-active {
    color: #ffffff;
}

.visitor-history-anchor {
    display: block;
    height: 0;
}

.firm-card.visitor-firm-card--flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0.42rem;
    padding-top: 0.8rem;
}

.firm-card.visitor-firm-card--flow > .visitor-firm-card__row-main {
    margin-top: 0.5rem;
}

/* Ust serit: daire karti title-cluster / rozet hizasi */
.visitor-firm-card__header-strip {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    padding: 0 0.05rem;
    box-sizing: border-box;
}

.visitor-firm-card__header-strip--cluster {
    justify-content: flex-start;
}

.visitor-firm-card__header-strip:empty {
    display: none;
}

.visitor-firm-card__badge-cluster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.35rem;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.firm-card.visitor-firm-card .visitor-firm-card__badge-cluster .visitor-firm-card__apt-badge,
.firm-card.cargo-firm-card .visitor-firm-card__badge-cluster .visitor-firm-card__apt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-width: 0;
    min-height: 2.05rem;
    padding: 0.22rem 0.55rem 0.22rem 0.42rem;
    border-radius: 6px;
    border: 0;
    box-sizing: border-box;
    background: rgba(3, 169, 244, 0.14);
}

.firm-card.visitor-firm-card .visitor-firm-card__apt-badge-ic,
.firm-card.cargo-firm-card .visitor-firm-card__apt-badge-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.06rem;
    height: 1.06rem;
    border-radius: 0.4rem;
    font-size: 0.62rem;
    line-height: 1;
    color: var(--primary, #03a9f4);
    background: rgba(3, 169, 244, 0.14);
}

.firm-card.visitor-firm-card .visitor-firm-card__apt-badge-label,
.firm-card.cargo-firm-card .visitor-firm-card__apt-badge-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: rgba(226, 236, 252, 0.96);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.firm-card.visitor-firm-card .visitor-firm-card__badge-cluster .visitor-firm-card__daire-role-badge.unit-pay-card__title-role-badge,
.firm-card.cargo-firm-card .visitor-firm-card__badge-cluster .visitor-firm-card__daire-role-badge.unit-pay-card__title-role-badge {
    width: 100%;
    min-width: 0;
    min-height: 2.05rem;
    justify-content: center;
    box-sizing: border-box;
    align-self: stretch;
    padding: 0.3rem 0.54rem;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: normal;
}

.firm-card.visitor-firm-card .visitor-firm-card__badge-cluster .visitor-firm-card__daire-role-badge.unit-pay-card__title-role-badge span,
.firm-card.cargo-firm-card .visitor-firm-card__badge-cluster .visitor-firm-card__daire-role-badge.unit-pay-card__title-role-badge span {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: center;
}

body.theme-light .firm-card.visitor-firm-card .visitor-firm-card__badge-cluster .visitor-firm-card__apt-badge,
html.theme-light-preload .firm-card.visitor-firm-card .visitor-firm-card__badge-cluster .visitor-firm-card__apt-badge,
body.theme-light .firm-card.cargo-firm-card .visitor-firm-card__badge-cluster .visitor-firm-card__apt-badge,
html.theme-light-preload .firm-card.cargo-firm-card .visitor-firm-card__badge-cluster .visitor-firm-card__apt-badge {
    border: 0;
    background: rgba(3, 169, 244, 0.14);
}

body.theme-light .firm-card.visitor-firm-card .visitor-firm-card__apt-badge-ic,
html.theme-light-preload .firm-card.visitor-firm-card .visitor-firm-card__apt-badge-ic,
body.theme-light .firm-card.cargo-firm-card .visitor-firm-card__apt-badge-ic,
html.theme-light-preload .firm-card.cargo-firm-card .visitor-firm-card__apt-badge-ic {
    background: rgba(3, 169, 244, 0.11);
    color: #028ecc;
}

body.theme-light .firm-card.visitor-firm-card .visitor-firm-card__apt-badge-label,
html.theme-light-preload .firm-card.visitor-firm-card .visitor-firm-card__apt-badge-label,
body.theme-light .firm-card.cargo-firm-card .visitor-firm-card__apt-badge-label,
html.theme-light-preload .firm-card.cargo-firm-card .visitor-firm-card__apt-badge-label {
    color: #152235;
}

/* Eski tek-pill daire rozeti (geri uyumluluk) */
.visitor-firm-card__unit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    max-width: 100%;
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: rgba(226, 236, 252, 0.95);
    background: rgba(3, 169, 244, 0.16);
    border: 1px solid rgba(3, 169, 244, 0.35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.visitor-firm-card__unit-badge i {
    font-size: 0.58rem;
    opacity: 0.92;
    color: var(--primary, #03a9f4);
    flex-shrink: 0;
}

.visitor-firm-card__unit-badge span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.theme-light .visitor-firm-card__unit-badge,
html.theme-light-preload .visitor-firm-card__unit-badge {
    color: #0f2840;
    background: rgba(3, 169, 244, 0.1);
    border-color: rgba(3, 169, 244, 0.32);
}

body.theme-light .visitor-firm-card__unit-badge i,
html.theme-light-preload .visitor-firm-card__unit-badge i {
    color: var(--primary, #03a9f4);
}

.visitor-firm-card__row-main {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.72rem;
    width: 100%;
}

.visitor-firm-card__row-main .firm-card__left,
.visitor-firm-card__row-main .visitor-firm-card__main-text {
    align-self: center;
}

.visitor-firm-card__row-main .firm-card__actions {
    padding-top: 0;
    margin-left: auto;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.visitor-firm-card__main-text {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    padding-right: 0;
}

.visitor-firm-card__phone-plate-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
    gap: 0.22rem;
    font-size: 0.72rem;
    margin: 0.08rem 0 0;
}

.visitor-firm-card__divider-below-actions {
    align-self: stretch;
    margin: 0.32rem 0.5rem 0 !important;
    width: auto;
}

.visitor-firm-card__foot {
    width: 100%;
    box-sizing: border-box;
    padding: 0 0.1rem 0.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.visitor-firm-card__daire-line {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 650;
    color: rgba(186, 205, 228, 0.88);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

body.theme-light .visitor-firm-card__daire-line,
html.theme-light-preload .visitor-firm-card__daire-line {
    color: #475569;
}

.visitor-firm-card__time-line--with-label {
    margin: 0;
    font-size: 0.72rem !important;
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.22rem 0.35rem;
    color: rgba(200, 218, 240, 0.9) !important;
}

.visitor-firm-card__time-line-head {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    flex-wrap: nowrap;
}

.visitor-firm-card__time-sep {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.28rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    color: rgba(148, 163, 184, 0.45);
    user-select: none;
}

.visitor-firm-card__time-line-ic {
    flex: 0 0 auto;
    font-size: 0.72rem;
    line-height: 1;
    color: rgba(148, 163, 184, 0.88);
}

.visitor-firm-card__soft-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.16em 0.45em;
    border-radius: 999px;
    line-height: 1.2;
}

.visitor-firm-card__soft-label i {
    font-size: 0.58rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.95;
}

.visitor-firm-card__soft-label--in {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.visitor-firm-card__soft-label--in i {
    color: rgba(220, 252, 231, 0.95);
}

.visitor-firm-card__soft-label--out {
    background: rgba(248, 113, 113, 0.14);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.visitor-firm-card__soft-label--out i {
    color: rgba(254, 226, 226, 0.95);
}

.visitor-firm-card__soft-label-sep {
    font-weight: 700;
    color: rgba(148, 163, 184, 0.55);
}

.visitor-firm-card__time-value {
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    color: rgba(148, 163, 184, 0.82);
}

body.theme-light .visitor-firm-card__time-line--with-label,
html.theme-light-preload .visitor-firm-card__time-line--with-label {
    color: #334155 !important;
}

body.theme-light .visitor-firm-card__time-line-ic,
html.theme-light-preload .visitor-firm-card__time-line-ic {
    color: rgba(71, 85, 105, 0.75);
}

body.theme-light .visitor-firm-card__soft-label--in,
html.theme-light-preload .visitor-firm-card__soft-label--in {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.35);
}

body.theme-light .visitor-firm-card__soft-label--out,
html.theme-light-preload .visitor-firm-card__soft-label--out {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.28);
}

body.theme-light .visitor-firm-card__soft-label--in i,
html.theme-light-preload .visitor-firm-card__soft-label--in i {
    color: #166534;
}

body.theme-light .visitor-firm-card__soft-label--out i,
html.theme-light-preload .visitor-firm-card__soft-label--out i {
    color: #991b1b;
}

body.theme-light .visitor-firm-card__time-sep,
html.theme-light-preload .visitor-firm-card__time-sep {
    color: rgba(100, 116, 139, 0.42);
}

body.theme-light .visitor-firm-card__time-value,
html.theme-light-preload .visitor-firm-card__time-value {
    color: #94a3b8;
}

.visitor-firm-card__note-line {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.34rem;
    margin-top: 0.12rem !important;
    line-height: 1.42;
    color: rgba(190, 207, 226, 0.86) !important;
}

.visitor-firm-card__note-line i {
    flex: 0 0 auto;
    margin-top: 0.08rem;
    color: rgba(3, 169, 244, 0.78);
    font-size: 0.68rem;
}

.visitor-firm-card__note-line span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.visitor-firm-card__entry-line {
    margin: 0;
    font-size: 0.72rem !important;
    color: var(--muted, #6a86a0) !important;
}

.visitor-firm-card__entry-line i {
    margin-right: 0.35rem;
    opacity: 0.88;
}

.visitor-firm-card__times {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}

.visitor-firm-card__exit-time-line i {
    color: rgba(148, 163, 184, 0.88);
}

body.theme-light .visitor-firm-card__exit-time-line i,
html.theme-light-preload .visitor-firm-card__exit-time-line i {
    color: #64748b;
}

body.theme-light .visitor-firm-card__note-line,
html.theme-light-preload .visitor-firm-card__note-line {
    color: #64748b !important;
}

body.theme-light .visitor-firm-card__note-line i,
html.theme-light-preload .visitor-firm-card__note-line i {
    color: #028ecc;
}

.firm-card.visitor-firm-card--exited {
    opacity: 0.98;
    scroll-margin-top: 0.85rem;
}

.firm-card.visitor-firm-card--exited:target {
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.45);
    border-radius: 0.9rem;
    transition: box-shadow 0.2s ease;
}

/* Ziyaret geçmişi: kompakt ekstre + sayfa basina 5 */
.visitor-history-ekstre {
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(14, 24, 44, 0.35);
    overflow: hidden;
}

body.theme-light .visitor-history-ekstre,
html.theme-light-preload .visitor-history-ekstre {
    background: #ffffff;
    border-color: #e2edf6;
}

.visitor-history-ekstre__toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.theme-light .visitor-history-ekstre__toolbar,
html.theme-light-preload .visitor-history-ekstre__toolbar {
    border-bottom-color: #e2e8f0;
}

.visitor-history-ekstre__summary {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(200, 214, 232, 0.9);
}

body.theme-light .visitor-history-ekstre__summary,
html.theme-light-preload .visitor-history-ekstre__summary {
    color: #475569;
}

.visitor-history-ekstre__pager {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.visitor-history-ekstre__page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.32rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary);
    background: rgba(3, 169, 244, 0.08);
    transition: background 0.15s ease, color 0.15s ease;
}

.visitor-history-ekstre__page-btn:hover {
    background: rgba(3, 169, 244, 0.16);
}

.visitor-history-ekstre__page-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.visitor-history-ekstre__page-btn--disabled {
    opacity: 0.45;
    pointer-events: none;
    color: rgba(148, 163, 184, 0.85);
    background: rgba(100, 116, 139, 0.08);
}

.visitor-history-summary-bar {
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(14, 24, 44, 0.28);
    border-bottom-width: 1px;
}

body.theme-light .visitor-history-summary-bar,
html.theme-light-preload .visitor-history-summary-bar {
    background: #ffffff;
    border-color: #e2edf6;
}

/* Ziyaret geçmişi / kargo: üçlü sayfalama — Geri | numaralar | İleri */
.list-pagination-tri {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.72rem;
    margin-top: 0.65rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(14, 24, 44, 0.28);
}

body.theme-light .list-pagination-tri,
html.theme-light-preload .list-pagination-tri {
    background: #ffffff;
    border-color: #e2edf6;
}

.list-pagination-tri__side {
    flex-shrink: 0;
}

.list-pagination-tri__side--start {
    justify-self: start;
}

.list-pagination-tri__side--end {
    justify-self: end;
}

.list-pagination-tri__pages {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.list-pagination-tri__pages::-webkit-scrollbar {
    height: 0;
    width: 0;
}

.list-pagination-tri__ellipsis {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.82);
    padding: 0 0.08rem;
    user-select: none;
}

body.theme-light .list-pagination-tri__ellipsis,
html.theme-light-preload .list-pagination-tri__ellipsis {
    color: #94a3b8;
}

.list-pagination-tri__nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.38rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    color: var(--primary);
    background: rgba(3, 169, 244, 0.08);
    transition: background 0.15s ease, color 0.15s ease;
    border: 0;
    cursor: pointer;
}

.list-pagination-tri__nav-btn:hover {
    background: rgba(3, 169, 244, 0.16);
}

.list-pagination-tri__nav-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.list-pagination-tri__nav-btn--disabled {
    opacity: 0.42;
    pointer-events: none;
    color: rgba(148, 163, 184, 0.88);
    background: rgba(100, 116, 139, 0.09);
}

body.theme-light .list-pagination-tri__nav-btn--disabled,
html.theme-light-preload .list-pagination-tri__nav-btn--disabled {
    color: #94a3b8;
}

.list-pagination-tri__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.82rem;
    height: 1.82rem;
    padding: 0 0.28rem;
    border-radius: 0.42rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    color: var(--muted, #64748b);
    background: rgba(100, 116, 139, 0.1);
    transition: background 0.15s ease, color 0.15s ease;
}

.list-pagination-tri__page:hover {
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
}

.list-pagination-tri__page:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.list-pagination-tri__page--current {
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-hover));
    box-shadow: 0 1px 8px rgba(3, 169, 244, 0.28);
    pointer-events: none;
}

.visitor-history-ekstre__head {
    display: none;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.35fr) auto;
    gap: 0.65rem;
    padding: 0.38rem 0.75rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

@media (min-width: 700px) {
    .visitor-history-ekstre__head--desktop {
        display: grid;
    }
}

body.theme-light .visitor-history-ekstre__head,
html.theme-light-preload .visitor-history-ekstre__head {
    color: #64748b;
    border-bottom-color: #e2e8f0;
}

.visitor-history-ekstre__list {
    display: flex;
    flex-direction: column;
}

.visitor-history-ekstre__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 0.65rem;
    padding: 0.72rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    scroll-margin-top: 0.85rem;
}

@media (min-width: 700px) {
    .visitor-history-ekstre__row {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.35fr) auto;
        align-items: center;
        gap: 0.65rem;
    }
}

.visitor-history-ekstre__row:last-child {
    border-bottom: 0;
}

.visitor-history-ekstre__row:target {
    outline: 2px solid rgba(3, 169, 244, 0.5);
    outline-offset: -2px;
    background: rgba(3, 169, 244, 0.07);
}

body.theme-light .visitor-history-ekstre__row:target,
html.theme-light-preload .visitor-history-ekstre__row:target {
    background: rgba(3, 169, 244, 0.08);
}

.visitor-history-ekstre__cell--who,
.visitor-history-ekstre__cell--contact,
.visitor-history-ekstre__cell--times {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.visitor-history-ekstre__name {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ddeeff;
}

body.theme-light .visitor-history-ekstre__name,
html.theme-light-preload .visitor-history-ekstre__name {
    color: #0f172a;
}

.visitor-history-ekstre__sub {
    font-size: 0.69rem;
    color: rgba(200, 214, 232, 0.88);
}

.visitor-history-ekstre__sub i {
    margin-right: 0.28rem;
    color: var(--primary);
    font-size: 0.66rem;
}

body.theme-light .visitor-history-ekstre__sub,
html.theme-light-preload .visitor-history-ekstre__sub {
    color: #475569;
}

.visitor-history-ekstre__note {
    font-size: 0.62rem;
    line-height: 1.3;
    color: rgba(148, 163, 184, 0.92);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.visitor-history-ekstre__tel {
    font-size: 0.72rem;
    color: var(--primary);
    text-decoration: none;
}

.visitor-history-ekstre__tel:hover {
    text-decoration: underline;
}

.visitor-history-ekstre__muted {
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.62);
}

.visitor-history-ekstre__plate {
    font-size: 0.68rem;
    color: rgba(200, 214, 232, 0.85);
}

body.theme-light .visitor-history-ekstre__plate,
html.theme-light-preload .visitor-history-ekstre__plate {
    color: #64748b;
}

.visitor-history-ekstre__plate i {
    margin-right: 0.28rem;
    font-size: 0.64rem;
    opacity: 0.9;
}

.visitor-history-ekstre__time {
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--muted, #6a86a0);
}

.visitor-history-ekstre__time i {
    margin-right: 0.32rem;
    opacity: 0.85;
}

.visitor-history-ekstre__cell--status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

@media (min-width: 700px) {
    .visitor-history-ekstre__cell--status {
        justify-content: flex-end;
    }
}

.visitor-history-ekstre__badge {
    font-size: 0.54rem !important;
    padding: 0.38em 0.5em !important;
}

.visitor-firm-card__actions--status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.visitor-firm-card__exit-done-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.42em 0.58em;
    border-radius: 999px;
    border: 0;
    line-height: 1.15;
    white-space: nowrap;
    background: rgba(100, 116, 139, 0.18);
    color: rgba(214, 220, 232, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-light .visitor-firm-card__exit-done-badge,
html.theme-light-preload .visitor-firm-card__exit-done-badge {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

body.theme-light .visitor-firm-card__phone-plate-row .user-firm-card__inline-placeholder,
html.theme-light-preload .visitor-firm-card__phone-plate-row .user-firm-card__inline-placeholder {
    color: #64748b;
}

.visitor-firm-card__pp-part--plate .user-firm-card__plate-inline i {
    color: rgba(148, 163, 184, 0.95);
}

body.theme-light .visitor-firm-card__pp-part--plate .user-firm-card__plate-inline i,
html.theme-light-preload .visitor-firm-card__pp-part--plate .user-firm-card__plate-inline i {
    color: #64748b;
}

.firm-card__action-btn--exit {
    width: auto;
    min-width: auto;
    height: auto;
    padding: 0.44rem 0.62rem;
    border-radius: 0.55rem;
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary);
}

.firm-card__action-btn--exit:hover {
    background: rgba(3, 169, 244, 0.2);
}

body.theme-light .user-firm-card__name-line,
html.theme-light-preload .user-firm-card__name-line {
    color: #0f2840;
}

body.theme-light .user-firm-card__fullname,
html.theme-light-preload .user-firm-card__fullname {
    color: #0f2840;
}

body.theme-light .user-firm-card__name-line--surname,
html.theme-light-preload .user-firm-card__name-line--surname {
    color: #486287;
}

body.theme-light .entity-card__line--accent,
html.theme-light-preload .entity-card__line--accent {
    color: #3d5d7d;
}

body.theme-light .user-firm-card__contact-inline-sep,
html.theme-light-preload .user-firm-card__contact-inline-sep {
    color: rgba(100, 116, 139, 0.55);
}

body.theme-light .user-firm-card__inline-placeholder,
html.theme-light-preload .user-firm-card__inline-placeholder {
    color: rgba(100, 116, 139, 0.45);
}

body.theme-light .firm-card__action-btn--exit,
html.theme-light-preload .firm-card__action-btn--exit {
    background: rgba(3, 169, 244, 0.1);
    color: #0891d4;
}

body.theme-light .cargo-firm-card__icon-badge,
body.theme-light .visitor-firm-card__icon-badge,
html.theme-light-preload .cargo-firm-card__icon-badge,
html.theme-light-preload .visitor-firm-card__icon-badge {
    background: rgba(3, 169, 244, 0.1) !important;
}

body.theme-light .visitor-firm-card__icon-badge,
html.theme-light-preload .visitor-firm-card__icon-badge {
    background: rgba(79, 70, 229, 0.1) !important;
    color: #4f46e5 !important;
}

body.theme-light .cargo-firm-card .cargo-firm-card__icon-badge,
html.theme-light-preload .cargo-firm-card .cargo-firm-card__icon-badge {
    background: rgba(3, 169, 244, 0.08) !important;
    color: rgba(2, 132, 199, 0.78) !important;
}

.user-firm-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #5ac8fa 0%, #03a9f4 100%);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.28), 0 0 12px rgba(3, 169, 244, 0.24);
}

body.theme-light .user-firm-card::before,
html.theme-light-preload .user-firm-card::before {
    background: linear-gradient(180deg, #5ac8fa 0%, #03a9f4 100%);
}

body.theme-light .firm-card::before,
html.theme-light-preload .firm-card::before {
    background: linear-gradient(180deg, #5ac8fa 0%, #03a9f4 100%);
}

.user-firm-card__avatar-wrap {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
}

.user-firm-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-firm-card__roleline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.user-firm-card__roleline i {
    font-size: 0.72rem;
}

.user-firm-card__roleline--1 { color: #7dd3fc; }
.user-firm-card__roleline--2 { color: #4ade80; }
.user-firm-card__roleline--3 { color: #38bdf8; }
.user-firm-card__roleline--4 { color: #f59e0b; }
.user-firm-card__roleline--5 { color: #a78bfa; }

body.theme-light .user-firm-card__roleline--1 { color: #0284c7; }
body.theme-light .user-firm-card__roleline--2 { color: #16a34a; }
body.theme-light .user-firm-card__roleline--3 { color: #0284c7; }
body.theme-light .user-firm-card__roleline--4 { color: #d97706; }
body.theme-light .user-firm-card__roleline--5 { color: #7c3aed; }

body.theme-light .panel-stat-emoji {
    background: #ffffff;
    border-color: rgba(3, 169, 244, 0.24);
    box-shadow: 0 2px 10px rgba(3, 169, 244, 0.12);
}

.panel-stat-value--negative {
    color: #fda4af;
}

body.theme-light .panel-stat-value--negative {
    color: #dc2626;
}

.panel-stat-value {
    margin: 0.15rem 0 0;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
}

.panel-stat-sub {
    margin: 0.3rem 0 0;
    font-size: 0.76rem;
    color: var(--muted);
}


body.theme-light .panel-stat-value {
    color: #152235;
}

body.theme-light .panel-stat-sub {
    color: #5f738d;
}

.dashboard-shell.sidebar-collapsed {
    grid-template-columns: 76px 1fr;
}

.dashboard-shell.sidebar-collapsed .sidebar-brand-text,
.dashboard-shell.sidebar-collapsed .nav-label,
.dashboard-shell.sidebar-collapsed .sidebar-section-title,
.dashboard-shell.sidebar-collapsed .sidebar-divider {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
    transition-delay: 0s;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar {
    width: 76px;
    min-width: 76px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.dashboard-shell.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
}

.dashboard-shell:not(.sidebar-collapsed) .sidebar-brand-text,
.dashboard-shell:not(.sidebar-collapsed) .nav-label,
.dashboard-shell:not(.sidebar-collapsed) .sidebar-section-title,
.dashboard-shell:not(.sidebar-collapsed) .sidebar-divider {
    transition-delay: 0.14s;
}

.toast-center-host {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

@media (max-width: 1023.98px) {
    .toast-center-host {
        left: 50%;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        width: min(92vw, 420px);
        align-items: center;
    }

    body.browser-mobile-shell .toast-center-host,
    body.has-dashboard-shell.browser-mobile-shell .toast-center-host {
        bottom: calc(var(--apy-toast-above-nav, 4.35rem) + env(safe-area-inset-bottom, 0px));
    }

    .toast-center-host .toast-box {
        width: 100%;
        animation: toast-slide-up-mobile 0.3s ease both;
    }
}

@media (min-width: 1024px) {
    .toast-center-host {
        top: calc(4.75rem + env(safe-area-inset-top, 0px));
        right: 1rem;
        left: auto;
        bottom: auto;
        transform: none;
        width: min(380px, 42vw);
        align-items: flex-end;
    }

    .toast-center-host .toast-box {
        width: 100%;
        animation: toast-slide-in-from-right 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

.toast-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.85rem;
    border-radius: 0.8rem;
    border: 0;
    box-shadow: 0 10px 24px rgba(1, 10, 20, 0.38);
    backdrop-filter: blur(6px);
    pointer-events: auto;
}

.toast-error {
    background: rgba(220, 38, 38, 0.11);
    color: #ffe1e1;
}

.toast-success {
    background: rgba(34, 197, 94, 0.11);
    color: #dcfce7;
}

.toast-info {
    background: rgba(3, 169, 244, 0.12);
    color: #dff5ff;
}

.toast-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #fff7e6;
}

body.theme-light .toast-box {
    box-shadow: 0 10px 22px rgba(15, 34, 60, 0.14);
}

body.theme-light .toast-error {
    background: rgba(248, 113, 113, 0.16);
    color: #7f1d1d;
}

body.theme-light .toast-success {
    background: rgba(34, 197, 94, 0.16);
    color: #14532d;
}

body.theme-light .toast-info {
    background: rgba(3, 169, 244, 0.16);
    color: #0c4a6e;
}

body.theme-light .toast-warning {
    background: rgba(245, 158, 11, 0.18);
    color: #78350f;
}

.toast-main {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

.toast-icon {
    margin-top: 0.12rem;
    opacity: 0.95;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.toast-text {
    font-size: 0.84rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: min(42vh, 280px);
    overflow-y: auto;
}

.toast-close {
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.9;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    flex-shrink: 0;
}

@keyframes toast-slide-up-mobile {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-slide-in-from-right {
    from {
        opacity: 0;
        transform: translateX(22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.swal-popup {
    border-radius: 16px !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 24px 60px rgba(2, 10, 24, 0.35) !important;
}

.swal-title {
    color: var(--text) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
}

.swal-text {
    color: var(--muted) !important;
    font-size: 0.92rem !important;
}

.swal-btn {
    border: 0;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1rem;
    min-width: 110px;
    transition: all 0.18s ease;
}

.swal-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.swal-btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.swal-btn-danger:hover {
    background: #dc2626;
}

.swal-btn-cancel {
    background: rgba(148, 163, 184, 0.16);
    color: var(--text);
    border: 1px solid var(--border);
}

.swal-btn-cancel:hover {
    border-color: var(--primary-border);
}

.swal-btn-confirm {
    background: #22c55e;
    color: #ffffff;
}

.swal-btn-confirm:hover {
    background: #16a34a;
}

.swal2-actions {
    gap: 0.55rem !important;
}

.apy-swal-lord-popup .swal2-html-container.apy-swal-lord-html-container {
    margin-top: 0.25rem;
    padding: 0 0.75rem 0.25rem;
    text-align: center;
}

.apy-swal-lord-popup .apy-swal-lord-wrap lord-icon {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.site-footer .container {
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.footer-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    letter-spacing: 0.01em;
}

.footer-copy,
.footer-rights {
    color: #8fa2bb;
}

.footer-divider {
    color: #7084a0;
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover {
    color: var(--primary-hover);
}

.hero,
.auth,
.not-found {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.cards {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
}

.auth-form {
    display: grid;
    gap: 0.75rem;
    max-width: 420px;
}

input,
button,
.btn {
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 0.65rem 0.75rem;
    font: inherit;
}

button,
.btn {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.alert {
    padding: 0.75rem;
    border: 1px solid var(--primary-border);
    background: var(--primary-soft);
    border-radius: 8px;
    color: var(--primary);
    margin-bottom: 1rem;
}

@media (max-width: 680px) {
    .container {
        width: 100%;
        margin: 0;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .dashboard-shell.dashboard-fullbleed {
        width: calc(100% + 1.8rem);
        max-width: none;
        margin-left: -0.9rem;
        margin-right: -0.9rem;
    }

    .categories-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .hub-payments-cards {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .login-center-wrap {
        min-height: calc(100vh - 150px);
        padding: 1rem 0;
    }

    .login-center-wrap-with-outside-logo {
        gap: 0.5rem;
    }

    .login-card {
        width: 100%;
        border-radius: 1rem;
        padding: 1rem 0.95rem;
    }

    .login-card::before {
        left: 0.6rem;
        top: 0.8rem;
        bottom: 0.8rem;
    }

    .login-logo {
        width: 64px;
        height: 64px;
    }

    .login-title {
        font-size: 1.35rem;
    }

    .auth-input {
        min-height: 44px;
        font-size: 0.95rem;
    }

    .password-toggle-btn {
        min-width: 32px;
        min-height: 32px;
    }

    .email-suggest {
        max-height: min(11.875rem, 40vh);
    }

    .site-footer p {
        font-size: 0.74rem;
    }

    .footer-note {
        gap: 0.28rem;
    }

    body.has-dashboard-shell .site-footer {
        display: none;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 235px;
        z-index: 80;
        border-right: 1px solid rgba(3, 169, 244, 0.18);
        border-bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.36s ease;
        padding-top: 4.4rem;
        padding-bottom: 0.9rem;
    }

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

    .dashboard-main {
        order: 1;
    }

    .dashboard-topbar {
        position: sticky;
        top: 0;
        z-index: 60;
    }

    .topbar-menu-btn {
        display: none;
    }

    .topbar-greet-inline,
    .topbar-avatar-inline {
        display: inline-flex;
    }

    .topbar-user-dropdown {
        margin-right: 0.35rem;
        min-width: 0;
        max-width: calc(100vw - 1.8rem);
    }

    .dashboard-topnav {
        display: none;
    }

    /* Tema seçimi kullanıcı menüsünde; mobilde gereksiz tekrar gösterme */
    .dashboard-topbar .topbar-user-dropdown .desktop-theme-toggle {
        display: none !important;
    }

    /* Mobil: bildirim */
    .topbar-user-dropdown .topbar-notification-btn {
        order: 1;
    }

    .topbar-user-dropdown .topbar-user-btn {
        display: none;
    }

    .user-menu-theme {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .user-menu-theme .admin-theme-toggle__label {
        flex: 0 0 auto;
        min-width: auto;
        margin-right: auto;
    }

    .user-menu-theme .admin-theme-toggle__control {
        transform: translateX(-6px);
    }

    .dashboard-topbar {
        padding: 0.66rem 0.9rem 0.66rem 0.6rem;
        justify-content: space-between;
    }

    .topbar-user-btn {
        display: none;
    }

    .desktop-user-name,
    .user-chevron {
        display: none;
    }

    .topbar-user-btn .user-avatar {
        flex: 0 0 auto;
    }

    .desktop-user-menu {
        display: grid;
    }

    .admin-mobile-dropdown {
        position: absolute;
        right: 0.4rem;
        left: auto;
        top: calc(100% + 0.45rem);
        width: min(290px, calc(100vw - 1.2rem));
        max-width: calc(100vw - 1.2rem);
        display: block;
        background: rgba(13, 23, 41, 0.98);
        border: 1px solid rgba(3, 169, 244, 0.18);
        border-radius: 1rem;
        padding: 0;
        box-shadow: 0 20px 44px rgba(1, 10, 20, 0.52), 0 6px 18px rgba(1, 10, 20, 0.35);
        z-index: 45;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: min(65vh, 420px);
        overscroll-behavior: contain;
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
        transform-origin: top right;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .dashboard-content.dashboard-content--panel-page {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    }

    .dashboard-content.dashboard-content--panel-page .panel-overview-card--banner-slot {
        border-radius: 0 0 0.88rem 0.88rem;
        border-left: none;
        border-right: none;
        border-top: none;
    }
}

/* ── İlanlar: Toplam İlan stat kartı ── */
.listings-stat-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.listings-stat-card__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    background: rgba(3, 169, 244, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--primary);
    flex-shrink: 0;
}

.listings-stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.listings-stat-card__label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
    margin: 0;
    line-height: 1.1;
}

.listings-stat-card__value {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

body.theme-light .listings-stat-card,
html.theme-light-preload .listings-stat-card {
    border-color: rgba(21, 34, 53, 0.07);
}

body.theme-light .listings-stat-card__value,
html.theme-light-preload .listings-stat-card__value {
    color: #152235;
}

/* ── İlanlar: Kategori filtre — ayrı ayrı buton stili ── */
.listings-filter-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 0 0.75rem 0;
    margin-bottom: 0.25rem;
    min-height: 2.4rem;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
}
.listings-filter-scroll::-webkit-scrollbar {
    display: none;
}

.listings-filter-pill {
    flex-shrink: 0;
    border: 1.5px solid rgba(3, 169, 244, 0.22);
    background: rgba(17, 26, 46, 0.55);
    color: #7fa4c0;
    border-radius: 8px;
    padding: 0.44rem 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.18s, background 0.22s, border-color 0.22s, box-shadow 0.22s;
    white-space: nowrap;
    line-height: 1.35;
}

@media (max-width: 600px) {
    .listings-filter-scroll {
        padding-bottom: 0.9rem;
    }

    .listings-filter-pill {
        min-height: 2rem;
    }
}
.listings-filter-pill:hover {
    border-color: rgba(3, 169, 244, 0.5);
    color: #c8e6f8;
    background: rgba(3, 169, 244, 0.1);
}
.listings-filter-pill.is-active {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(3, 169, 244, 0.38);
}

.listings-filter-empty {
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
    padding: 1rem 0;
    opacity: 0.7;
}

/* Light theme */
body.theme-light .listings-filter-scroll,
html.theme-light-preload .listings-filter-scroll {
    background: transparent;
    border: none;
    box-shadow: none;
}
body.theme-light .listings-filter-pill,
html.theme-light-preload .listings-filter-pill {
    background: #f4f9fd;
    border-color: rgba(3, 169, 244, 0.28);
    color: #4a7090;
}
body.theme-light .listings-filter-pill:hover,
html.theme-light-preload .listings-filter-pill:hover {
    border-color: rgba(3, 169, 244, 0.55);
    background: rgba(3, 169, 244, 0.08);
    color: #1a4a6e;
}
body.theme-light .listings-filter-pill.is-active,
html.theme-light-preload .listings-filter-pill.is-active {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(3, 169, 244, 0.32);
}

/* İlanlar kartı: başlık + tarih — geniş ekranda tek satır; dar / mobilde tarih başlığın altında */
.dashboard-shell--listings-page .listing-card-item .listing-card-item__title-stack {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.42rem;
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-shell--listings-page .listing-card-item .listing-card-item__title-stack .hub-payments-card-item__title {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-shell--listings-page .listing-card-item .listing-card-item__title-stack .hub-payments-card-item__date {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .dashboard-shell--listings-page .payments-feed-cards[data-listings-grid='true'] .listing-card-item .hub-payments-card-item__head {
        align-items: flex-start;
    }

    .dashboard-shell--listings-page .payments-feed-cards[data-listings-grid='true'] .listing-card-item .listing-card-item__title-stack {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.12rem;
    }

    .dashboard-shell--listings-page .payments-feed-cards[data-listings-grid='true'] .listing-card-item .listing-card-item__title-stack .hub-payments-card-item__date {
        align-self: flex-start;
        white-space: normal;
        font-size: 0.62rem;
        font-weight: 400;
        line-height: 1.25;
        letter-spacing: 0.01em;
        color: rgba(138, 161, 182, 0.92);
    }
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listings-page .listing-card-item .hub-payments-card-item__head {
    align-items: flex-start;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listings-page .listing-card-item .listing-card-item__title-stack {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.12rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listings-page .listing-card-item .listing-card-item__title-stack .hub-payments-card-item__date {
    align-self: flex-start;
    white-space: normal;
    font-size: 0.62rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: rgba(138, 161, 182, 0.92);
}

body.theme-light .dashboard-shell--listings-page .listing-card-item .listing-card-item__title-stack .hub-payments-card-item__date,
html.theme-light-preload .dashboard-shell--listings-page .listing-card-item .listing-card-item__title-stack .hub-payments-card-item__date {
    color: rgba(100, 116, 139, 0.88);
}

@media (max-width: 640px) {
    body.theme-light .dashboard-shell--listings-page .payments-feed-cards[data-listings-grid='true'] .listing-card-item .listing-card-item__title-stack .hub-payments-card-item__date,
    html.theme-light-preload .dashboard-shell--listings-page .payments-feed-cards[data-listings-grid='true'] .listing-card-item .listing-card-item__title-stack .hub-payments-card-item__date {
        color: rgba(100, 116, 139, 0.82);
    }
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listings-page .listing-card-item .listing-card-item__title-stack .hub-payments-card-item__date,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listings-page .listing-card-item .listing-card-item__title-stack .hub-payments-card-item__date {
    color: rgba(100, 116, 139, 0.82);
}

/* Listing card hide animation */
.listing-card-item.is-filtered-out {
    display: none;
}

/* İlanlar (/ilanlar): ödemeler sayfasında 1024px altı tek sutun kalır; burada iki sutun */
@media (max-width: 1024px) {
    .dashboard-shell--listings-page .payments-feed-cards[data-listings-grid='true']:not(.payments-feed-cards--listings-single) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(0.45rem, 2.2vw, 0.65rem);
        align-items: stretch;
    }
}

/* Tek ilan: tam genişlik yerine dar, ortalanmış minimal kart (yalnizca ilanlar sayfasi) */
.dashboard-shell--listings-page .payments-feed-cards--listings-single {
    grid-template-columns: minmax(0, min(22rem, 100%));
    justify-content: center;
    justify-items: stretch;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .listing-card-item.hub-payments-card-item {
    padding: 0.52rem 0.58rem 0.52rem 0.68rem;
    gap: 0.32rem;
    border-radius: 0.72rem;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .listing-card-item__img-wrap {
    max-height: 8.25rem;
    margin-bottom: 0.28rem;
    border-radius: 0.55rem;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .listing-card-item__img {
    height: 8.25rem;
    max-height: 8.25rem;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .hub-payments-card-item__head {
    gap: 0.42rem;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .hub-payments-card-item__category-icon {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.74rem;
    border-radius: 0.48rem;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .hub-payments-card-item__title {
    font-size: 0.84rem;
    line-height: 1.3;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .hub-payments-card-item__date {
    font-size: 0.66rem;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .hub-payments-card-item__amount-row {
    margin-top: 0.08rem;
    margin-bottom: 0.12rem;
    gap: 0.45rem;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .hub-payments-card-item__amount {
    font-size: 0.86rem;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .hub-payments-card-item__note {
    font-size: 0.72rem;
    line-height: 1.38;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .unit-pay-card__meta-note {
    font-size: 0.68rem;
    margin: 0;
}

.dashboard-shell--listings-page .payments-feed-cards--listings-single .hub-payments-card-item__accent {
    top: 0.48rem;
    bottom: 0.48rem;
}

/* ── İlanlar: Form başlık ── */
.listings-form-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text);
    margin: 0 0 0.1rem;
    text-transform: uppercase;
}

.listing-form-optional {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--muted);
    opacity: 0.75;
    margin-left: 0.25rem;
    text-transform: none;
    letter-spacing: 0;
}

/* ── İlan görsel yükleme alanı ── */
.listing-image-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 1.5px dashed rgba(3, 169, 244, 0.3);
    border-radius: 0.75rem;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(3, 169, 244, 0.03);
    text-align: center;
}
.listing-image-upload-label:hover {
    border-color: rgba(3, 169, 244, 0.6);
    background: rgba(3, 169, 244, 0.07);
}
.listing-image-upload-label__icon {
    font-size: 1.4rem;
    color: rgba(3, 169, 244, 0.55);
    line-height: 1;
}
.listing-image-upload-label__text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.8;
}
.listing-image-upload-label__hint {
    font-size: 0.6rem;
    color: var(--muted);
    opacity: 0.65;
}
.listing-image-upload-label__name {
    font-size: 0.65rem;
    color: rgba(3, 169, 244, 0.9);
    font-weight: 600;
    word-break: break-all;
}
.listing-image-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* İlan: çoklu görsel önizleme */
.listing-images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}
.listing-images-preview__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    width: 5.75rem;
}
.listing-images-preview__thumb-wrap {
    position: relative;
    border-radius: 0.55rem;
    overflow: hidden;
    border: 1.5px solid rgba(3, 169, 244, 0.2);
    background: rgba(3, 169, 244, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.listing-images-preview__item.is-primary .listing-images-preview__thumb-wrap {
    border-color: var(--primary, #03a9f4);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.25);
}
.listing-images-preview__thumb {
    width: 100%;
    height: 5.5rem;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}
.listing-images-preview__primary-badge {
    position: absolute;
    bottom: 0.2rem;
    left: 0.2rem;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.92);
    color: #fff;
    line-height: 1.2;
}
.listing-images-preview__actions {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}
.listing-images-preview__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(3, 169, 244, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(3, 169, 244, 0.85);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.listing-images-preview__icon-btn:hover {
    background: rgba(3, 169, 244, 0.12);
    border-color: rgba(3, 169, 244, 0.55);
    color: var(--primary, #03a9f4);
}
.listing-images-preview__icon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.45);
}
.listing-images-preview__icon-btn:focus:not(:focus-visible) {
    box-shadow: none;
}
.listing-images-preview__icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.45);
}
.listing-images-preview__icon-btn:active {
    transform: scale(0.96);
}
.listing-images-preview__icon-btn--danger {
    border-color: rgba(220, 38, 38, 0.35);
    color: rgba(220, 38, 38, 0.85);
}
.listing-images-preview__icon-btn--danger:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.5);
    color: #dc2626;
}

.listing-card-item__gallery-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 6;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    line-height: 1.2;
    pointer-events: none;
}
body.theme-light .listing-card-item__gallery-badge,
html.theme-light-preload .listing-card-item__gallery-badge {
    background: rgba(30, 41, 59, 0.78);
}

/* Light theme overrides for upload */
body.theme-light .listing-image-upload-label,
html.theme-light-preload .listing-image-upload-label {
    border-color: rgba(3, 169, 244, 0.22);
    background: rgba(3, 169, 244, 0.04);
}
body.theme-light .listing-image-upload-label:hover,
html.theme-light-preload .listing-image-upload-label:hover {
    border-color: rgba(3, 169, 244, 0.5);
    background: rgba(3, 169, 244, 0.09);
}
body.theme-light .listings-form-title,
html.theme-light-preload .listings-form-title {
    color: #152235;
}

/* ── İlan kart görseli ── */
.listing-card-item {
    position: relative;
}

.listing-card-item .hub-payments-card-item__amount-row {
    justify-content: center;
    gap: 0;
    margin: 0.04rem 0 0.1rem;
    padding: 0;
}

.listing-card-item .hub-payments-card-item__amount {
    margin: 0 auto;
    color: rgba(134, 239, 172, 0.88);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-align: center;
}

.listing-card-item--latest .hub-payments-card-item__accent {
    background: linear-gradient(180deg, #fef08a 0%, #facc15 52%, #eab308 100%);
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.36), 0 0 12px rgba(234, 179, 8, 0.2);
}

.listing-card-item--latest .hub-payments-card-item__category-icon {
    background: rgba(250, 204, 21, 0.16);
    color: #facc15;
}

body.theme-light .listing-card-item--latest .hub-payments-card-item__accent,
html.theme-light-preload .listing-card-item--latest .hub-payments-card-item__accent {
    background: linear-gradient(180deg, #fef9c3 0%, #fde047 50%, #eab308 100%);
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.26), 0 0 10px rgba(234, 179, 8, 0.14);
}

body.theme-light .listing-card-item .hub-payments-card-item__amount,
html.theme-light-preload .listing-card-item .hub-payments-card-item__amount {
    color: rgba(21, 128, 61, 0.86);
}

.listings-hash-anchor {
    display: block;
    height: 0;
    scroll-margin-top: calc(var(--topbar-h, 4rem) + 0.75rem);
    overflow: visible;
}

.listing-publish-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.55rem;
    z-index: 3;
    font-size: 0.605rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    pointer-events: none;
}

.listing-publish-badge--live {
    background: rgba(34, 197, 94, 0.2);
    color: rgba(209, 250, 229, 0.98);
    border: 1px solid rgba(74, 222, 128, 0.45);
}

body.theme-light .listing-publish-badge--live,
html.theme-light-preload .listing-publish-badge--live {
    background: rgba(74, 222, 128, 0.16);
    color: #065f46;
    border-color: rgba(74, 222, 128, 0.35);
}

/* Pazar: onay bekleyen ilan satırı (firm-card türevi) */
.listing-firm-card--link {
    text-decoration: none;
    color: inherit;
    align-items: center;
    cursor: pointer;
}

.listing-firm-card--link:hover {
    border-color: rgba(3, 169, 244, 0.28);
}

.listing-firm-card__badge {
    position: absolute;
    top: 0.45rem;
    right: 0.55rem;
    z-index: 2;
    font-size: 0.585rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.16rem 0.42rem;
    border-radius: 999px;
    pointer-events: none;
    max-width: 58%;
    text-align: right;
}

.listing-firm-card--status-pending .listing-firm-card__badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.listing-firm-card--status-live .listing-firm-card__badge {
    background: rgba(74, 222, 128, 0.2);
    color: rgba(209, 250, 229, 0.98);
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.listing-firm-card--status-rejected .listing-firm-card__badge {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.42);
}

body.theme-light .listing-firm-card--status-pending .listing-firm-card__badge,
html.theme-light-preload .listing-firm-card--status-pending .listing-firm-card__badge {
    background: rgba(251, 191, 36, 0.2);
    color: #92400e;
}

body.theme-light .listing-firm-card--status-live .listing-firm-card__badge,
html.theme-light-preload .listing-firm-card--status-live .listing-firm-card__badge {
    background: rgba(187, 247, 208, 0.55);
    color: #14532d;
}

body.theme-light .listing-firm-card--status-rejected .listing-firm-card__badge,
html.theme-light-preload .listing-firm-card--status-rejected .listing-firm-card__badge {
    background: rgba(254, 202, 202, 0.35);
    color: #991b1b;
}

.listing-firm-card__cover {
    flex-shrink: 0;
    width: 3.65rem;
    height: 3.65rem;
    border-radius: 0.65rem;
    overflow: hidden;
    background: rgba(3, 169, 244, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(3, 169, 244, 0.16);
}

.listing-firm-card--compact .listing-firm-card__cover {
    width: 3.2rem;
    height: 3.2rem;
}

.listing-firm-card__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-firm-card__cover-fallback {
    color: rgba(3, 169, 244, 0.55);
    font-size: 1.15rem;
}

.listing-firm-card__title {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: inherit;
    line-height: 1.25;
    margin: 0;
    padding-right: 38%;
}

.listing-firm-card__title--link {
    color: inherit;
    text-decoration: none;
}

.listing-firm-card__title--link:hover {
    color: var(--primary);
}

.listing-firm-card__cat {
    display: block;
    margin: 0.12rem 0 0;
    font-size: 0.72rem;
    color: var(--muted, rgba(173, 199, 220, 0.78));
}

.listing-firm-card__moderation-meta {
    margin: 0.08rem 0 0;
    font-size: 0.7rem;
    color: var(--muted, rgba(173, 199, 220, 0.78));
}

.listing-firm-card__price {
    flex-shrink: 0;
    margin-left: 0.42rem;
    text-align: right;
}

.listing-firm-card__price-tl {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.01em;
}

.listing-firm-card--moderation {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.62rem;
    cursor: default;
}

.listing-firm-card--moderation .listing-firm-card__mod-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.08rem;
    padding-top: 0.62rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.28);
}

.listing-firm-card__mod-btn {
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 0.52rem;
    padding: 0.34rem 0.76rem;
    border: none;
    cursor: pointer;
    transition: background 0.16s ease, opacity 0.16s ease;
}

.listing-firm-card__mod-btn--primary {
    background: var(--primary);
    color: #fff;
}

.listing-firm-card__mod-btn--primary:hover {
    background: var(--primary-hover, #0288d1);
}

.listing-firm-card__mod-btn--ghost {
    background: rgba(148, 163, 184, 0.12);
    color: #e8f1f8;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

body.theme-light .listing-firm-card__mod-btn--ghost,
html.theme-light-preload .listing-firm-card__mod-btn--ghost {
    background: rgba(15, 23, 42, 0.04);
    color: #1f3a53;
}

.listing-firm-card__mod-btn--danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.32);
}

body.theme-light .listing-firm-card__mod-btn--danger,
html.theme-light-preload .listing-firm-card__mod-btn--danger {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.1);
}

.panel-marketplace-own-pending {
    margin: 0.55rem 0 0;
    padding-bottom: 0.2rem;
}

.panel-marketplace-own-pending__heading {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.78;
    margin: 0 0 0.45rem;
    color: var(--muted);
}

.panel-marketplace-own-pending__list.gap-3 {
    gap: 0.45rem !important;
}

@media (max-width: 480px) {
    .listing-firm-card--moderation {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .listing-firm-card--moderation .listing-firm-card__cover {
        align-self: start;
    }

    .listing-firm-card--moderation .listing-firm-card__price {
        grid-column: 1 / -1;
        justify-self: flex-end;
        margin-left: 0;
        margin-top: 0.1rem;
    }
}
.listing-card-item__img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.6rem;
    margin-bottom: 0.34rem;
    max-height: 150px;
    background: rgba(3, 169, 244, 0.05);
}
.listing-card-item__img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 0.6rem;
}

/* İlan listesi: “Son eklenen” — mor köşe yok; panel pazar manşeti ile uyumlu altın üst şerit + yumuşak aşağı geçiş */
.listing-card-item__img-wrap--latest::before {
    display: none;
}

.listing-card-item__img-wrap--empty {
    min-height: 150px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
    background: linear-gradient(
        165deg,
        rgba(254, 249, 195, 0.35) 0%,
        rgba(253, 230, 138, 0.14) 48%,
        rgba(3, 169, 244, 0.05) 100%
    );
}

body.theme-light .listing-card-item__img-wrap--empty,
html.theme-light-preload .listing-card-item__img-wrap--empty {
    background: linear-gradient(
        165deg,
        rgba(254, 249, 195, 0.55) 0%,
        rgba(253, 230, 138, 0.2) 50%,
        rgba(224, 247, 255, 0.45) 100%
    );
}

.listing-card-item__latest-chip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    z-index: 5;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0.42rem 0.65rem 0.62rem;
    box-sizing: border-box;
    border-radius: 0;
    font-size: clamp(0.6rem, 2.9vw, 0.72rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.15;
    color: rgba(62, 40, 0, 0.96);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    border: 0;
    background: linear-gradient(
        180deg,
        #fef08a 0%,
        #facc15 48%,
        rgba(234, 179, 8, 0.22) 78%,
        rgba(234, 179, 8, 0) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 1px 8px rgba(120, 80, 0, 0.16);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35),
        0 1px 2px rgba(120, 80, 0, 0.14);
}

body.theme-light .listing-card-item__latest-chip,
html.theme-light-preload .listing-card-item__latest-chip {
    color: rgba(55, 35, 0, 0.94);
    background: linear-gradient(
        180deg,
        #fef9c3 0%,
        #fde047 42%,
        rgba(250, 204, 21, 0.2) 75%,
        rgba(250, 204, 21, 0) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 1px 6px rgba(146, 100, 0, 0.12);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4),
        0 1px 2px rgba(120, 80, 0, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .listing-card-item__latest-chip {
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
    }
}

a.listing-card-item.hub-payments-card-item {
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
a.listing-card-item.hub-payments-card-item:hover {
    border-color: rgba(3, 169, 244, 0.42);
}
a.listing-card-item.hub-payments-card-item:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.5);
    outline-offset: 2px;
}

body.theme-light a.listing-card-item.hub-payments-card-item:hover,
html.theme-light-preload a.listing-card-item.hub-payments-card-item:hover {
    border-color: rgba(3, 169, 244, 0.48);
}

/* ── İlan formu: 5 görsel kutusu + alt sayfa ── */
.listing-images-input-native {
    position: absolute;
    width: 0.01px;
    height: 0.01px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* İlan oluştur: 5 kutu — Swiper ile ayni anda 3 slayt, digerleri kaydir */
.listing-img-slots-swiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 0.15rem;
    box-sizing: border-box;
    overflow: hidden;
}

.listing-img-slots-swiper--compact .listing-img-slot {
    min-height: 2.35rem;
    border-radius: 0.55rem;
}

.listing-img-slots-swiper--compact .listing-img-slot--cover {
    min-height: 2.65rem;
}

.listing-img-slots-swiper--compact .listing-img-slot__placeholder {
    font-size: 1.02rem;
}

.listing-img-slots-swiper--compact .listing-img-slot__remove {
    top: 0.22rem;
    right: 0.22rem;
    width: 1.42rem;
    height: 1.42rem;
    min-width: 1.42rem;
    min-height: 1.42rem;
    font-size: 0.65rem;
}

.listing-img-slots-swiper--compact .listing-img-slot__cover-badge {
    font-size: 0.52rem;
    padding: 0.08rem 0.32rem;
}

.listing-detail-edit-dialog .listing-img-slots-swiper.listing-img-slots-swiper--compact {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
}

.listing-img-slots-swiper .swiper-wrapper {
    align-items: stretch;
}

.listing-img-slots-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.listing-img-slide {
    display: flex;
    min-width: 0;
}

.listing-img-slide .listing-img-slot {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.listing-img-slot {
    position: relative;
    aspect-ratio: 1;
    min-height: 3.25rem;
    border-radius: 0.65rem;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.35);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.listing-img-slot--cover {
    min-height: 3.85rem;
    border: 2px solid rgba(3, 169, 244, 0.55);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.12), 0 6px 18px rgba(3, 169, 244, 0.12);
    background: rgba(3, 169, 244, 0.08);
}

.listing-img-slot.has-file {
    border-style: solid;
    border-color: rgba(3, 169, 244, 0.28);
}

.listing-img-slot__surface {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: rgba(226, 232, 240, 0.75);
    transition: color 0.15s ease, background 0.15s ease;
}

.listing-img-slot__surface:hover {
    color: var(--primary, #03a9f4);
    background: rgba(3, 169, 244, 0.06);
}

.listing-img-slot__surface:focus-visible {
    outline: 2px solid var(--primary, #03a9f4);
    outline-offset: 2px;
}

.listing-img-slot__placeholder {
    font-size: 1.35rem;
    opacity: 0.88;
}

.listing-img-slot__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-img-slot__remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 4;
    width: 1.85rem;
    height: 1.85rem;
    min-width: 1.85rem;
    min-height: 1.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.88);
    color: #fecaca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 0.72rem;
    line-height: 1;
    box-shadow:
        0 0 0 1px rgba(2, 8, 23, 0.35),
        0 2px 8px rgba(2, 8, 23, 0.45);
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}

.listing-img-slot__remove:hover {
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 0 1px rgba(127, 29, 29, 0.35),
        0 3px 10px rgba(185, 28, 28, 0.45);
}

.listing-img-slot__remove:active {
    transform: scale(0.94);
}

.listing-img-slot__remove:focus-visible {
    outline: 2px solid var(--primary, #03a9f4);
    outline-offset: 2px;
}

.listing-img-slot__remove:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.listing-img-slot__cover-badge {
    position: absolute;
    bottom: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.92);
    color: #fff;
    pointer-events: none;
    box-shadow: 0 1px 6px rgba(2, 8, 22, 0.25);
}

body.theme-light .listing-img-slot,
html.theme-light-preload .listing-img-slot {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(148, 163, 184, 0.55);
}

body.theme-light .listing-img-slot--cover,
html.theme-light-preload .listing-img-slot--cover {
    background: rgba(3, 169, 244, 0.08);
    border-color: rgba(3, 169, 244, 0.45);
}

body.theme-light .listing-img-slot__surface,
html.theme-light-preload .listing-img-slot__surface {
    color: #64748b;
}

body.theme-light .listing-img-slot__remove,
html.theme-light-preload .listing-img-slot__remove {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.06),
        0 2px 8px rgba(15, 23, 42, 0.12);
}

body.theme-light .listing-img-slot__remove:hover,
html.theme-light-preload .listing-img-slot__remove:hover {
    background: #dc2626;
    color: #fff;
    border-color: rgba(185, 28, 28, 0.55);
    box-shadow:
        0 0 0 1px rgba(127, 29, 29, 0.2),
        0 3px 10px rgba(220, 38, 38, 0.35);
}

.listing-img-sheet {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.listing-img-sheet.hidden {
    display: none;
}

.listing-img-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 22, 0.55);
    backdrop-filter: blur(4px);
}

.listing-img-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-radius: 1rem 1rem 0 0;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-bottom: 0;
    box-shadow: 0 -12px 40px rgba(2, 8, 22, 0.45);
    animation: listing-img-sheet-in 0.28s ease-out;
}

@keyframes listing-img-sheet-in {
    from {
        transform: translateY(100%);
        opacity: 0.6;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.listing-img-sheet__handle {
    width: 2.5rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    margin: 0 auto 0.65rem;
}

.listing-img-sheet__title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    text-align: center;
}

.listing-img-sheet__preview-wrap {
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    margin-bottom: 0.85rem;
    max-height: 42vh;
    background: rgba(2, 8, 22, 0.35);
}

.listing-img-sheet__preview-img {
    width: 100%;
    height: auto;
    max-height: 42vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.listing-img-sheet__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.listing-img-sheet__btn {
    width: 100%;
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.listing-img-sheet__btn:focus-visible {
    outline: 2px solid var(--primary, #03a9f4);
    outline-offset: 2px;
}

.listing-img-sheet__btn--danger {
    background: rgba(220, 38, 38, 0.22);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.45);
}

.listing-img-sheet__btn--danger:hover {
    background: rgba(220, 38, 38, 0.38);
}

.listing-img-sheet__btn--ghost {
    background: transparent;
    color: rgba(226, 232, 240, 0.85);
    border-color: rgba(148, 163, 184, 0.35);
}

.listing-img-sheet__btn--ghost:hover {
    background: rgba(148, 163, 184, 0.1);
}

body.theme-light .listing-img-sheet__panel,
html.theme-light-preload .listing-img-sheet__panel {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.theme-light .listing-img-sheet__title,
html.theme-light-preload .listing-img-sheet__title {
    color: #0f172a;
}

body.theme-light .listing-img-sheet__btn--ghost,
html.theme-light-preload .listing-img-sheet__btn--ghost {
    color: #334155;
    border-color: #cbd5e1;
}

/* ── İlan detay sayfası ── */
.dashboard-shell--listing-detail-page .listing-detail-mgr-actions {
    margin: 0.35rem 0.85rem 0.55rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.28);
}

body.theme-light .dashboard-shell--listing-detail-page .listing-detail-mgr-actions,
html.theme-light-preload .dashboard-shell--listing-detail-page .listing-detail-mgr-actions {
    background: rgba(248, 250, 252, 0.95);
}

.listing-detail-mgr-actions__row--triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
}

.listing-detail-mgr-actions__form {
    margin: 0;
    display: block;
    min-width: 0;
}

.listing-detail-mgr-actions__form--full {
    width: 100%;
}

.listing-detail-mgr-actions__btn {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.45rem 0.5rem;
    border: none;
    border-radius: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.listing-detail-mgr-actions__btn--block {
    display: block;
    text-align: center;
}

.listing-detail-mgr-actions__btn--approve {
    background: var(--primary, #03a9f4);
    color: #fff;
}

.listing-detail-mgr-actions__btn--approve:hover {
    background: var(--primary-hover, #0288d1);
    color: #fff;
}

.listing-detail-mgr-actions__btn--reject {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(226, 236, 252, 0.92);
}

.listing-detail-mgr-actions__btn--reject:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.theme-light .listing-detail-mgr-actions__btn--reject,
html.theme-light-preload .listing-detail-mgr-actions__btn--reject {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
}

body.theme-light .listing-detail-mgr-actions__btn--reject:hover,
html.theme-light-preload .listing-detail-mgr-actions__btn--reject:hover {
    background: rgba(15, 23, 42, 0.09);
}

.listing-detail-mgr-actions__btn--unpublish {
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
}

.listing-detail-mgr-actions__btn--unpublish:hover {
    background: rgba(248, 113, 113, 0.28);
    color: #fff;
}

body.theme-light .listing-detail-mgr-actions__btn--unpublish,
html.theme-light-preload .listing-detail-mgr-actions__btn--unpublish {
    background: rgba(254, 226, 226, 0.95);
    color: #991b1b;
}

body.theme-light .listing-detail-mgr-actions__btn--unpublish:hover,
html.theme-light-preload .listing-detail-mgr-actions__btn--unpublish:hover {
    background: rgba(254, 202, 202, 0.98);
}

.dashboard-shell--listing-detail-page .listing-detail-card {
    overflow: hidden;
}

/* İlan detay: mobil kabukta units-page padding-top sifir; kart topbar'a yapismasin */
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--listing-detail-page .dashboard-main .dashboard-content.dashboard-content--units-page {
    padding-top: 0.7rem !important;
}

.listing-detail-gallery__hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 52vh;
    background: rgba(3, 169, 244, 0.06);
    border-radius: 0.75rem 0.75rem 0 0;
    overflow: hidden;
}

.listing-detail-gallery__hero-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
}

.listing-detail-gallery__hero-open:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.55);
    outline-offset: 2px;
}

.listing-detail-gallery__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.listing-detail-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem 0.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    justify-content: center;
    align-items: center;
}
.listing-detail-gallery__thumb {
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 0.45rem;
    overflow: hidden;
    width: 3.25rem;
    height: 3.25rem;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.35);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.listing-detail-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.listing-detail-gallery__thumb.is-active {
    border-color: var(--primary, #03a9f4);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.25);
}
.listing-detail-gallery__thumb:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.55);
    outline-offset: 2px;
}

/* İlan detay: büyük görsel lightbox (küçültülmüş sahne, üst ipucu, alt film şeridi) */
.listing-detail-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    box-sizing: border-box;
}

.listing-detail-lightbox.hidden {
    display: none !important;
}

.listing-detail-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 18, 0.78);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    cursor: pointer;
}

body.theme-light .listing-detail-lightbox__backdrop,
html.theme-light-preload .listing-detail-lightbox__backdrop {
    background: rgba(15, 34, 52, 0.72);
}

.listing-detail-lightbox__layout {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: min(100%, 640px);
    max-width: min(94vw, 640px);
    max-height: calc(100vh - 1.1rem);
    min-height: 0;
    box-sizing: border-box;
}

.listing-detail-lightbox__hint-bar {
    position: absolute;
    top: 0.52rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
}

.listing-detail-lightbox__hint {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    padding: 0.16rem 0.45rem 0.18rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    color: rgba(241, 245, 249, 0.85);
    background: rgba(10, 18, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.listing-detail-lightbox__hint > i {
    flex-shrink: 0;
    font-size: 0.72rem;
    opacity: 0.92;
    color: var(--primary, #03a9f4);
}

.listing-detail-lightbox__hint > span {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.theme-light .listing-detail-lightbox__hint,
html.theme-light-preload .listing-detail-lightbox__hint {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(3, 169, 244, 0.22);
    box-shadow: 0 2px 10px rgba(21, 34, 53, 0.1);
}

body.theme-light .listing-detail-lightbox__hint > i,
html.theme-light-preload .listing-detail-lightbox__hint > i {
    color: var(--primary, #03a9f4);
}

.listing-detail-lightbox__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-height: min(72vh, calc(100vh - 9.5rem));
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    cursor: default;
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, 0.22);
}

.listing-detail-lightbox__img {
    display: block;
    max-width: min(94%, 580px);
    max-height: min(68vh, calc(100vh - 11rem));
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.55rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    transition: transform 0.22s ease;
    transform-origin: center center;
    cursor: zoom-in;
}

.listing-detail-lightbox__img.is-zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
    transform: scale(1.75);
}

.listing-detail-lightbox__filmstrip {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.38rem;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 0.2rem 0.15rem 0.05rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.listing-detail-lightbox__film-thumb {
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.4rem;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
}

.listing-detail-lightbox__film-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-detail-lightbox__film-thumb:hover {
    border-color: rgba(3, 169, 244, 0.45);
    transform: translateY(-1px);
}

.listing-detail-lightbox__film-thumb:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.65);
    outline-offset: 2px;
}

.listing-detail-lightbox__film-thumb.is-active {
    border-color: var(--primary, #03a9f4);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.35);
}

body.theme-light .listing-detail-lightbox__film-thumb,
html.theme-light-preload .listing-detail-lightbox__film-thumb {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.75);
}

.listing-detail-lightbox__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 6;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(10, 18, 32, 0.52);
    backdrop-filter: blur(6px);
    color: rgba(241, 245, 249, 0.75);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.listing-detail-lightbox__close:hover {
    background: rgba(3, 169, 244, 0.25);
    color: #fff;
    border-color: rgba(3, 169, 244, 0.45);
}

.listing-detail-lightbox__close:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.65);
    outline-offset: 2px;
}

.listing-detail-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(10, 18, 32, 0.52);
    backdrop-filter: blur(6px);
    color: rgba(248, 250, 252, 0.8);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.listing-detail-lightbox__nav:hover {
    background: rgba(3, 169, 244, 0.3);
    color: #fff;
    border-color: rgba(3, 169, 244, 0.45);
}

.listing-detail-lightbox__nav:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.65);
    outline-offset: 2px;
}

.listing-detail-lightbox__nav--prev {
    left: 0.5rem;
}

.listing-detail-lightbox__nav--next {
    right: 0.5rem;
}

.listing-detail-lightbox__nav.is-hidden {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

body.listing-detail-lightbox-open {
    overflow: hidden;
    touch-action: none;
}

.listing-detail-body {
    padding: 0.85rem 0.95rem 0.35rem;
}

.dashboard-shell--listing-detail-page .listing-detail-gallery ~ .listing-detail-body {
    margin-top: 0.55rem;
}

.listing-detail-meta {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}
.listing-detail-meta__cat {
    font-weight: 700;
    color: var(--primary, #03a9f4);
}
.listing-detail-meta__dot {
    opacity: 0.45;
}
.listing-detail-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}
.listing-detail-price {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(252, 165, 165, 0.96);
    letter-spacing: 0.01em;
}
.listing-detail-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-main, #dcecff);
}
.listing-detail-seller {
    padding: 0.75rem 0.95rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(3, 169, 244, 0.04);
}
.listing-detail-seller__heading {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.listing-detail-seller__empty,
.listing-detail-seller__hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}
.listing-detail-seller__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.listing-detail-seller__avatar {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(3, 169, 244, 0.25);
}
.listing-detail-seller__avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    background: rgba(3, 169, 244, 0.15);
    color: var(--primary, #03a9f4);
}
.listing-detail-seller__info {
    min-width: 0;
    flex: 1;
}
.listing-detail-seller__name {
    margin: 0 0 0.12rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}
.listing-detail-seller__role {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    color: var(--muted);
}
.listing-detail-seller__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.listing-detail-seller__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.65rem;
    border-radius: 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--primary, #03a9f4);
    color: #fff;
    border: 1px solid transparent;
    transition: background 0.15s, transform 0.12s;
}
.listing-detail-seller__btn:hover {
    background: var(--primary-hover, #0288d1);
    color: #fff;
}
.listing-detail-seller__btn:active {
    transform: scale(0.98);
}
.listing-detail-seller__btn:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.55);
    outline-offset: 2px;
}
.listing-detail-seller__btn--secondary {
    background: transparent;
    color: var(--primary, #03a9f4);
    border-color: rgba(3, 169, 244, 0.45);
}
.listing-detail-seller__btn--secondary:hover {
    background: rgba(3, 169, 244, 0.1);
    color: var(--primary-hover, #0288d1);
}

.listing-detail-owner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0 0.15rem;
}

.listing-detail-owner-actions__btn,
.listing-detail-owner-actions__form .listing-detail-owner-actions__btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 2.55rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.listing-detail-owner-actions__btn--edit {
    background: var(--primary, #03a9f4);
    color: #fff;
}

.listing-detail-owner-actions__btn--edit:hover {
    background: var(--primary-hover, #0288d1);
}

.listing-detail-owner-actions__btn--danger {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.listing-detail-owner-actions__btn--danger:hover {
    background: rgba(248, 113, 113, 0.2);
}

.listing-detail-owner-actions__form {
    margin: 0;
    display: block;
}

.listing-detail-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary, #03a9f4);
}

.listing-detail-title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.listing-detail-title-cluster {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.listing-detail-title-cluster__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.05rem;
    height: 2.05rem;
    margin-top: 0;
    border-radius: 0.55rem;
    font-size: 0.88rem;
    color: var(--primary, #03a9f4);
    background: rgba(3, 169, 244, 0.12);
}

.listing-detail-title-cluster .listing-detail-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.05rem;
}

.listing-detail-desc-block {
    margin-top: 0.95rem;
    margin-bottom: 1rem;
}

.listing-detail-desc-block--fieldset .listing-detail-desc-block__fieldset {
    position: relative;
    margin: 0;
    padding: 0.75rem 0.78rem 0.72rem;
    border-radius: 0.75rem;
    border: 0;
    background: rgba(3, 169, 244, 0.08);
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(3, 169, 244, 0.1);
}

.listing-detail-desc-block__label {
    position: static;
    transform: none;
    margin: 0 0 0.52rem;
    z-index: 1;
    line-height: 1.2;
    pointer-events: auto;
}

.listing-detail-desc-block__label-inner {
    display: inline-block;
    padding: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(186, 205, 228, 0.95);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.listing-detail-desc-block__body {
    margin: 0;
    padding: 0;
    border-radius: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-main, #dcecff);
    background: transparent;
    border: 0;
}

.listing-detail-desc-block--fieldset .listing-detail-desc-block__body {
    padding-top: 0;
}

body.theme-light .listing-detail-desc-block__label-inner,
html.theme-light-preload .listing-detail-desc-block__label-inner {
    color: #64748b;
    background: transparent;
    box-shadow: none;
}

body.theme-light .listing-detail-desc-block--fieldset .listing-detail-desc-block__fieldset,
html.theme-light-preload .listing-detail-desc-block--fieldset .listing-detail-desc-block__fieldset {
    color: #1e293b;
    background: rgba(3, 169, 244, 0.06);
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(3, 169, 244, 0.14);
}

body.theme-light .listing-detail-desc-block__body,
html.theme-light-preload .listing-detail-desc-block__body {
    color: #1e293b;
    background: transparent;
    border: 0;
}

.listing-detail-title-row .listing-detail-title-cluster .listing-detail-title {
    font-size: 1.02rem;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.3;
}

.listing-detail-title-row .listing-detail-price {
    margin: 0;
    flex-shrink: 0;
    font-size: 0.95rem;
    white-space: nowrap;
    line-height: 1.3;
    align-self: center;
    font-weight: 700;
    color: rgba(252, 165, 165, 0.96);
}

.listing-detail-meta-card {
    margin: 0.85rem 0.85rem 0.95rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.listing-detail-meta-card__frame {
    position: relative;
    margin: 0;
    padding: 0.78rem 0.85rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.35);
    box-sizing: border-box;
}

.listing-detail-meta-card--fieldset .listing-detail-meta-card__title {
    position: absolute;
    left: 0.55rem;
    top: 0;
    transform: translateY(-50%);
    margin: 0;
    z-index: 1;
    line-height: 1;
    pointer-events: none;
    font-size: 0;
    letter-spacing: 0;
    text-transform: none;
    color: transparent;
}

.listing-detail-meta-card__title-inner {
    display: inline-block;
    padding: 0.14rem 0.42rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(186, 205, 228, 0.88);
    background: rgba(15, 23, 42, 0.35);
    border-radius: 0.35rem;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.listing-detail-meta-card__title {
    margin: 0 0 0.55rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.listing-detail-meta-rows {
    margin: 0;
}

.listing-detail-meta-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem 0.85rem;
    align-items: center;
    font-size: 0.78rem;
}

.listing-detail-meta-row dt {
    margin: 0;
    font-weight: 700;
    color: rgba(186, 205, 228, 0.82);
}

.listing-detail-meta-row dd {
    margin: 0;
    font-weight: 600;
    color: var(--text-main, #e8f1ff);
    min-width: 0;
    text-align: right;
    justify-self: end;
}

.listing-detail-meta-divider {
    height: 0;
    margin: 0.45rem 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.38);
}

.listing-detail-meta-muted {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.listing-detail-meta-footnote {
    margin: 0.55rem 0 0;
}

.listing-detail-seller-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.42rem;
    margin-top: 0.62rem;
    padding: 0.45rem 0.35rem 0.1rem;
    width: 100%;
    box-sizing: border-box;
}

.listing-detail-seller-stack__avatar {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(3, 169, 244, 0.28);
    flex-shrink: 0;
}

.listing-detail-seller-stack__avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    background: rgba(3, 169, 244, 0.15);
    color: var(--primary, #03a9f4);
}

.listing-detail-seller-stack__name {
    margin: 0;
    max-width: 100%;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main, #e8f1ff);
    overflow-wrap: anywhere;
}

.listing-detail-seller-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.listing-detail-seller-inline__avatar {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(3, 169, 244, 0.28);
}

.listing-detail-seller-inline__avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(3, 169, 244, 0.15);
    color: var(--primary, #03a9f4);
}

.listing-detail-seller-inline__name {
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

.listing-detail-call-wrap {
    margin-top: 0.75rem;
}

.listing-detail-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--primary, #03a9f4);
    color: #fff;
    border: none;
    transition: background 0.15s ease, transform 0.12s ease;
}

.listing-detail-call-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    min-width: 0;
    text-align: left;
}

.listing-detail-call-btn__main {
    font-weight: 700;
    line-height: 1.2;
}

.listing-detail-call-btn__sub {
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.92;
}

.listing-detail-call-btn:hover {
    background: var(--primary-hover, #0288d1);
    color: #fff;
}

.listing-detail-call-btn--secondary {
    background: rgba(3, 169, 244, 0.1);
    color: var(--primary, #03a9f4);
    border: none;
}

.listing-detail-call-btn--secondary:hover {
    background: rgba(3, 169, 244, 0.1);
}

.listing-detail-edit-image-root {
    margin: 0;
    padding: 0.75rem 1.1rem 0.65rem;
    background: #0f1a2d;
    box-sizing: border-box;
}

.listing-detail-edit-image-root .profile-card-modern__label {
    margin-bottom: 0.15rem;
    color: #b8cce3;
    font-size: 0.72rem;
    font-weight: 600;
}

body.theme-light .listing-detail-edit-dialog .listing-detail-edit-image-root,
html.theme-light-preload .listing-detail-edit-dialog .listing-detail-edit-image-root {
    background: #ffffff;
}

body.theme-light .listing-detail-edit-dialog .listing-detail-edit-image-root .profile-card-modern__label,
html.theme-light-preload .listing-detail-edit-dialog .listing-detail-edit-image-root .profile-card-modern__label {
    color: #627a92;
}

.listing-detail-edit-dialog .listing-detail-edit-image-root + .apartment-edit-modal__grid {
    padding-top: 0.55rem;
}

.listing-detail-edit-dialog .listing-img-slots-swiper--compact .listing-img-slot {
    max-height: 4.35rem;
}

.listing-detail-edit-dialog .listing-img-slots-swiper--compact .listing-img-slot--cover {
    max-height: 4.65rem;
}

.listing-detail-edit-native-file {
    position: absolute;
    width: 0.01px;
    height: 0.01px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.listing-detail-edit-dialog .apartment-edit-modal__grid .custom-select-wrap {
    width: 100%;
}

.listing-detail-edit-dialog .auth-input:not(.custom-select-native) {
    width: 100%;
}

.listing-detail-edit-cover {
    margin: 0 0 0.85rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 8, 22, 0.35);
    max-height: 12rem;
}

.listing-detail-edit-cover__img {
    width: 100%;
    height: auto;
    max-height: 12rem;
    object-fit: cover;
    display: block;
}

.listing-detail-edit-cover__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6rem;
    font-size: 1.75rem;
    color: rgba(148, 163, 184, 0.45);
}

.listing-detail-edit-title-price {
    display: grid;
    grid-template-columns: 1fr minmax(6.5rem, 32%);
    gap: 0.55rem 0.65rem;
    width: 100%;
}

.listing-detail-edit-title-price__title,
.listing-detail-edit-title-price__price {
    min-width: 0;
}

@media (max-width: 520px) {
    .listing-detail-edit-title-price {
        grid-template-columns: 1fr;
    }
}

.listing-detail-edit-dialog .apartment-edit-modal__field--listing-title-price {
    grid-column: 1 / -1;
}

body.theme-light .listing-detail-desc,
html.theme-light-preload .listing-detail-desc {
    color: #1e3a4a;
}
body.theme-light .listing-detail-seller,
html.theme-light-preload .listing-detail-seller {
    background: rgba(3, 169, 244, 0.06);
}

body.theme-light .listing-detail-meta-card__frame,
html.theme-light-preload .listing-detail-meta-card__frame {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.theme-light .listing-detail-meta-card__title-inner,
html.theme-light-preload .listing-detail-meta-card__title-inner {
    color: #64748b;
    background: #f8fafc;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.22);
}

body.theme-light .listing-detail-price,
html.theme-light-preload .listing-detail-price,
body.theme-light .listing-detail-title-row .listing-detail-price,
html.theme-light-preload .listing-detail-title-row .listing-detail-price {
    color: rgba(220, 38, 38, 0.78);
}

body.theme-light .listing-detail-title-row,
html.theme-light-preload .listing-detail-title-row {
    border-bottom-color: rgba(148, 163, 184, 0.28);
}

body.theme-light .listing-detail-meta-row dt,
html.theme-light-preload .listing-detail-meta-row dt {
    color: #64748b;
}

body.theme-light .listing-detail-meta-row dd,
html.theme-light-preload .listing-detail-meta-row dd {
    color: #0f172a;
}

body.theme-light .listing-detail-seller-stack__name,
html.theme-light-preload .listing-detail-seller-stack__name {
    color: #0f172a;
}

body.theme-light .listing-detail-meta-divider,
html.theme-light-preload .listing-detail-meta-divider {
    border-top-color: rgba(100, 116, 139, 0.35);
}

body.theme-light .listing-detail-owner-actions__btn--danger,
html.theme-light-preload .listing-detail-owner-actions__btn--danger {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

body.theme-light .listing-detail-owner-actions__btn--danger:hover,
html.theme-light-preload .listing-detail-owner-actions__btn--danger:hover {
    background: rgba(239, 68, 68, 0.14);
}

/* ── Talepler: Yeni Talep toggle kartı ── */
.requests-add-card {
    padding: 0.8rem 0.9rem;
}

.requests-add-card__body[hidden] { display: none; }

.requests-add-card__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    gap: 0.5rem;
    -webkit-appearance: none;
    appearance: none;
}

.requests-add-card__toggle span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.requests-add-card__toggle--static {
    cursor: default;
    pointer-events: none;
    justify-content: flex-start;
}

.requests-add-card__caret {
    font-size: 0.72rem;
    transition: transform 0.22s ease;
    color: var(--muted);
}

.apartments-add-card.is-open .requests-add-card__caret {
    transform: rotate(180deg);
}

body.theme-light .requests-add-card__toggle,
html.theme-light-preload .requests-add-card__toggle {
    color: #0278b5;
}

body.theme-light .requests-add-card__caret,
html.theme-light-preload .requests-add-card__caret {
    color: #7a9ab8;
}

/* ── Talep Kartları ── */
.req-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.85rem 0.85rem;
    grid-column: 1 / -1;
}

.req-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg, rgba(14, 24, 44, 0.88));
    border: none;
    border-radius: 0.9rem;
    padding: 0.75rem 0.75rem 0.75rem 0.85rem;
    cursor: pointer;
    transition: border-color .16s, background .16s, transform .12s;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    color: inherit;
}

.req-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    border-radius: 0.9rem 0 0 0.9rem;
    background: linear-gradient(180deg, #9ca3af 0%, #6b7280 48%, #4b5563 100%);
}

.req-card[data-req-stripe='pending']::before {
    background: linear-gradient(180deg, #fb7185 0%, #ef4444 48%, #b91c1c 100%);
}

.req-card[data-req-stripe='open']::before,
.req-card[data-req-stripe='progress']::before {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 48%, #15803d 100%);
}

.req-card[data-req-stripe='closed']::before {
    background: linear-gradient(180deg, #9ca3af 0%, #6b7280 48%, #4b5563 100%);
}

/* Talepler sayfasi: banner alani daha koyu + üst boşluk düzeltme */
.dashboard-shell--requests-page .units-period-banner--page-slot {
    background: #043f59 !important;
    border-color: rgba(3, 169, 244, 0.16) !important;
    box-shadow: 0 8px 20px rgba(2, 12, 24, 0.42) !important;
    margin-top: 0 !important;
    padding-top: 0.62rem !important;
}

.dashboard-shell--requests-page .panel-mobile-header__stats-row {
    margin-top: 0;
}

.dashboard-shell--requests-page .panel-mobile-header__stat {
    background: rgba(2, 28, 45, 0.55);
    border: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    min-height: 92px;
    padding-top: 0.72rem;
}

.dashboard-shell--requests-page .panel-mobile-header__stat-link {
    display: none;
}

/* Talepler listesi: arama + "Yeni Talep" — yalnizca bu sayfa; #043f59 banner ile ayni palet */
.dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__extras {
    border-top-color: rgba(3, 169, 244, 0.22);
}

.dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-wrap {
    background: rgba(2, 22, 38, 0.78);
    border: 1px solid rgba(3, 169, 244, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-wrap:focus-within {
    border-color: rgba(3, 169, 244, 0.48);
    background: rgba(2, 28, 48, 0.88);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.12);
}

.dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-wrap .apartments-search-icon {
    color: rgba(3, 169, 244, 0.88);
}

.dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-input {
    color: #eaf7ff;
}

.dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-input::placeholder {
    color: rgba(234, 247, 255, 0.42);
}

.dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-add-btn {
    background: rgba(3, 169, 244, 0.22);
    border: none;
    color: #eaf7ff;
}

.dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-add-btn:hover {
    background: rgba(3, 169, 244, 0.34);
    border: none;
    color: #ffffff;
}

.dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-add-btn:focus-visible {
    outline: 2px solid rgba(3, 169, 244, 0.75);
    outline-offset: 2px;
}

body.theme-light .dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-wrap,
html.theme-light-preload .dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-wrap {
    background: rgba(2, 52, 74, 0.4);
    border: none;
}

body.theme-light .dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-wrap:focus-within,
html.theme-light-preload .dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-wrap:focus-within {
    background: rgba(2, 58, 82, 0.48);
    border: none;
}

body.theme-light .dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-add-btn,
html.theme-light-preload .dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-add-btn {
    background: rgba(3, 169, 244, 0.3);
    border: none;
    color: #f6fdff;
}

body.theme-light .dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-add-btn:hover,
html.theme-light-preload .dashboard-shell--requests-page .units-period-banner--page-slot .units-period-banner__search-add-btn:hover {
    background: rgba(3, 169, 244, 0.42);
    border: none;
}

.dashboard-shell--requests-page .dashboard-content--units-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.dashboard-shell--categories-page .dashboard-content--units-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.requests-status-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0.72rem 0.85rem 0;
}

.requests-status-card {
    border: 1px solid rgba(3, 169, 244, 0.16);
    background: rgba(14, 24, 44, 0.88);
    border-radius: 0.86rem;
    padding: 0.62rem 0.68rem;
}

.requests-status-card__title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: #9cb2c8;
    font-weight: 600;
}

.requests-status-card__value {
    margin: 0.28rem 0 0;
    font-size: 1rem;
    font-weight: 800;
    color: #eaf7ff;
}

.requests-status-card__hint {
    margin: 0.18rem 0 0;
    font-size: 0.68rem;
    color: #8da3ba;
}

.requests-status-card__rows {
    margin-top: 0.28rem;
    display: grid;
    gap: 0.24rem;
}

.requests-status-card__row {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    font-size: 0.69rem;
    font-weight: 700;
}

.requests-status-card__row--open { color: #4ade80; }
.requests-status-card__row--pending { color: #fb7185; }
.requests-status-card__row--closed { color: #9ca3af; }

.req-card:hover,
.req-card:focus-visible {
    border-color: rgba(3, 169, 244, 0.35);
    background: rgba(3, 169, 244, 0.04);
    outline: none;
}

.req-card:active {
    transform: scale(0.985);
}

/* Sol: öncelik dot */
.req-card__left {
    flex-shrink: 0;
}

.req-card__prio-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    font-size: 0.65rem;
}

.req-card__prio-dot--normal  { background: rgba(100, 160, 220, 0.12); color: #7ab4da; }
.req-card__prio-dot--low     { background: rgba(120, 180, 120, 0.12); color: #7ebd7e; }
.req-card__prio-dot--high    { background: rgba(240, 170, 60, 0.12);  color: #f0aa3c; }
.req-card__prio-dot--urgent  { background: rgba(240, 80, 80, 0.12);   color: #f05050; }

/* Orta: içerik */
.req-card__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.req-card__subject {
    font-size: 0.825rem;
    font-weight: 600;
    color: #ddeeff;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.req-card__desc {
    font-size: 0.72rem;
    color: var(--muted, #6a86a0);
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.req-card__meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.1rem;
}

.req-card__meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: var(--muted, #6a86a0);
}

.req-card__meta-chip i { font-size: 0.6rem; }

/* Sağ: durum + chevron */
.req-card__right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.req-card__stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.2em 0.55em;
    border-radius: 8px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.req-card__stat-badge--normal   { background: rgba(100, 160, 220, 0.14); color: #7ab4da; }
.req-card__stat-badge--low      { background: rgba(120, 180, 120, 0.14); color: #7ebd7e; }
.req-card__stat-badge--high     { background: rgba(240, 170, 60, 0.14);  color: #f0aa3c; }
.req-card__stat-badge--urgent   { background: rgba(240, 80, 80, 0.14);   color: #f05050; }
.req-card__stat-badge--pending  { background: rgba(239, 68, 68, 0.16); color: #fb7185; }
.req-card__stat-badge--open     { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.req-card__stat-badge--progress { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.req-card__stat-badge--closed   { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }

.req-card__arrow {
    flex-shrink: 0;
    font-size: 0.62rem;
    color: var(--muted, #6a86a0);
    opacity: 0.5;
    margin-left: 0.1rem;
    align-self: center;
}

/* ── Request detail v2 (APY destek detay ile hizali) ───────── */
.dashboard-content--req-detail-v2 {
    display: block;
    grid-template-columns: none;
    max-width: 100%;
    width: 100%;
    margin-inline: 0;
}

.dashboard-content--req-detail-v2 > .support-detail-page {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.support-requests-table__code-cell {
    min-width: 0;
    max-width: 100%;
}

.support-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.12rem 0.32rem 0.12rem 0.4rem;
    border-radius: 0.42rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    line-height: 1.2;
    white-space: nowrap;
    background: color-mix(in srgb, var(--surface) 90%, var(--muted) 10%);
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent 12%);
    color: color-mix(in srgb, var(--text) 78%, var(--muted) 22%);
}

.support-code-pill__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.38rem;
    height: 1.38rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.34rem;
    background: transparent;
    color: color-mix(in srgb, var(--muted) 82%, var(--primary) 18%);
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.support-code-pill__copy:hover {
    background: color-mix(in srgb, var(--primary) 12%, var(--surface) 88%);
    color: var(--primary);
}

.support-code-pill__copy:active {
    transform: scale(0.94);
}

.support-code-pill__copy:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.support-code-pill .support-code-hash {
    color: color-mix(in srgb, var(--muted) 92%, var(--text) 8%);
    font-weight: 700;
    opacity: 0.75;
    margin-right: 0.04em;
}

.support-code-pill .support-code-core {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: color-mix(in srgb, var(--text) 72%, var(--muted) 28%);
}

body.theme-light .support-code-pill,
html.theme-light-preload .support-code-pill {
    background: color-mix(in srgb, #f8fafc 92%, #e2e8f0 8%);
    border-color: #e2e8f0;
}

body.theme-light .support-code-pill__copy,
html.theme-light-preload .support-code-pill__copy {
    color: color-mix(in srgb, #64748b 90%, #0284c7 10%);
}

body.theme-light .support-code-pill__copy:hover,
html.theme-light-preload .support-code-pill__copy:hover {
    color: #0284c7;
}

.support-detail-page {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding-bottom: 1.25rem;
}

.support-detail-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    margin: 0;
    border-radius: 0.55rem;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.support-detail-page__back:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.support-detail-page__back:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.support-detail-page__hero .support-detail-page__back {
    margin: 0 0 0.15rem;
    align-self: flex-start;
    padding: 0.4rem 0.78rem;
    background: color-mix(in srgb, var(--surface) 93%, var(--muted) 7%);
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    border-radius: 0.72rem;
}

.support-detail-page__hero .support-detail-page__back:hover {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-soft) 80%, var(--surface) 20%);
    border-color: color-mix(in srgb, var(--primary-border) 42%, var(--border) 58%);
}

.support-detail-page__hero .support-detail-page__back:active {
    transform: translateY(0.5px);
}

.support-detail-page__hero-lead {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    width: 100%;
    min-width: 0;
}

.support-detail-page__hero-lead-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0;
}

.support-detail-page__hero-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.support-detail-page__hero-head-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.14rem;
}

.support-detail-page__status {
    flex-shrink: 0;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 10px 0.78rem;
    border-radius: 10px;
    border: none;
    box-shadow: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.support-detail-page__status > i {
    font-size: 0.68rem;
    opacity: 0.92;
}

.support-detail-page__status-label {
    display: inline-block;
}

.support-detail-page__status--awaiting {
    background: color-mix(in srgb, #f59e0b 18%, var(--surface) 82%);
    color: #d97706;
}

.support-detail-page__status--replied {
    background: color-mix(in srgb, #22c55e 22%, var(--surface) 78%);
    color: #166534;
}

.support-detail-page__status--ended {
    background: color-mix(in srgb, var(--muted) 16%, var(--surface) 84%);
    color: color-mix(in srgb, var(--muted) 88%, var(--text) 12%);
}

.support-detail-page__status:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.support-detail-page__hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.95rem;
    border-radius: 1.15rem;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    background: var(--surface);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
    padding: 1.05rem 1.15rem 1.1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.support-detail-page__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    gap: 0;
}

.support-detail-page__title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    min-width: 0;
    max-width: 100%;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.support-detail-page__hero-head .support-detail-page__title-icon-wrap {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    margin-top: 0.06rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.86rem;
}

.support-detail-page__title-text {
    min-width: 0;
    max-width: 100%;
    text-align: left;
    text-wrap: balance;
    color: #4b5563;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.12;
}

.support-detail-page__code-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-top: 0;
    padding-left: 0;
    flex-wrap: nowrap;
    min-width: 0;
}

.support-detail-page__meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.85rem 1.1rem;
    margin-top: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.support-detail-page__meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.support-detail-page__meta-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.support-detail-page__meta-icon {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--primary);
    opacity: 0.92;
}

.support-detail-page__meta-label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.2;
}

.support-detail-page__meta-value {
    font-size: 0.84rem;
    font-weight: 650;
    color: #4b5563;
    line-height: 1.35;
    word-break: break-word;
}

.support-detail-page__meta-item > .support-detail-page__meta-value {
    padding-left: 1.15rem;
}

.support-detail-page__awaiting-cue {
    margin-top: 1rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 93%, var(--muted) 7%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.support-detail-page__awaiting-cue-icon {
    font-size: 1.4rem;
    color: #f59e0b;
    opacity: 0.95;
}

.support-detail-page__awaiting-cue-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    max-width: 32rem;
}

.support-detail-page__awaiting-cue-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
}

.support-detail-page__awaiting-cue-text {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--muted);
}

.support-detail-page__reply-cue {
    margin-top: 1rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 90%, #22c55e 10%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
}

.support-detail-page__reply-cue-icon {
    font-size: 1.4rem;
    color: #16a34a;
}

.support-detail-page__reply-cue-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    max-width: 32rem;
}

.support-detail-page__reply-cue-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #4b5563;
}

.support-detail-page__reply-cue-text {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--muted);
}

.support-detail-page__closed-cue {
    margin-top: 1rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 88%, var(--primary) 6%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.38rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.support-detail-page__hero .support-detail-page__closed-cue {
    margin-top: 1rem;
    width: 100%;
}

.support-detail-page__closed-cue-icon {
    font-size: 1.65rem;
    color: color-mix(in srgb, var(--muted) 55%, var(--text) 45%);
}

.support-detail-page__closed-cue-title {
    margin: 0.15rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.support-detail-page__closed-cue-text {
    margin: 0;
    max-width: 26rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
}

.support-req-thread-shell {
    border-radius: 1.15rem;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    background: var(--surface);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.support-req-thread-shell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.78rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.support-req-thread-shell__head-start {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.support-req-thread-shell__compose-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    padding: 0.34rem 0.55rem;
    border-radius: 0.65rem;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.support-req-thread-shell__compose-btn:hover {
    background: color-mix(in srgb, var(--primary-soft) 72%, transparent 28%);
    color: var(--primary-hover);
}

.support-req-thread-shell__compose-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.support-req-thread-shell__head-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.support-req-thread-shell__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.support-req-messages {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.85rem 1rem 1.1rem;
}

.support-req-thread-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 0.65rem 1rem 0.85rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
}

.support-req-thread-load-more-wrap--between-panels {
    padding: 0.15rem 0.85rem 0.25rem;
    margin-top: -0.55rem;
    border-top: 0;
}

.support-req-thread-load-more {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.05rem;
    padding: 0.42rem 1.05rem;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    background: color-mix(in srgb, var(--surface) 94%, var(--primary) 6%);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 14px rgba(3, 169, 244, 0.08);
}

.support-req-thread-load-more__count {
    font-size: 0.72rem;
    font-weight: 650;
    opacity: 0.82;
}

.support-req-msg-card--thread-revealing {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.34s ease, transform 0.34s ease;
}

.support-req-msg-card--thread-revealing.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.support-req-messages--origin {
    padding-top: 0;
}

.support-req-msg-card__role--admin-mail {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.14rem 0.52rem;
    gap: 0.32rem;
    max-width: 100%;
}

.support-req-msg-card__role--admin-mail span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(100%, 14rem);
}

.support-req-msg-card__role--admin-mail i {
    font-size: 0.68rem;
    opacity: 0.88;
}

.support-req-msg-system {
    display: flex;
    justify-content: center;
    padding: 0.35rem 0.85rem 0.65rem;
}

.support-req-thread-load-more:hover {
    background: color-mix(in srgb, var(--primary) 14%, var(--surface));
    border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
}

.support-req-thread-load-more:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
    outline-offset: 2px;
}

.support-req-thread-load-more:active {
    transform: scale(0.98);
}

.support-req-msg-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.2rem 0;
}

.support-req-msg-connector__bar {
    display: block;
    width: 2px;
    height: 1rem;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary) 38%, transparent) 0%,
        color-mix(in srgb, var(--border) 75%, transparent) 50%,
        color-mix(in srgb, var(--primary) 28%, transparent) 100%
    );
    opacity: 0.55;
}

.support-req-msg-card {
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--surface) 96%, #ffffff 4%);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.055);
    overflow: visible;
    touch-action: pan-y;
}

.support-req-msg-card--staff {
    background: color-mix(in srgb, var(--surface) 92%, #64748b 5%);
}

.support-req-msg-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: flex-start;
    padding: 0.85rem 1rem 0.65rem;
}

.support-req-msg-card__avatar-wrap {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--surface) 88%, var(--primary) 12%);
}

.support-req-msg-card--staff .support-req-msg-card__avatar-wrap {
    background: color-mix(in srgb, #fecaca 42%, var(--surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, #fca5a5 35%, var(--surface) 65%);
}

.support-req-msg-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.support-req-msg-card__avatar-initials {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary);
}

.support-req-msg-card--staff .support-req-msg-card__avatar-initials {
    color: #b91c1c;
}

.support-req-msg-card__identity {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.support-req-msg-card__name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}

.support-req-msg-card__mail-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    min-height: 1.1rem;
}

.support-req-msg-card__mail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 0.95rem;
    height: 0.95rem;
    line-height: 1;
    font-size: 0.68rem;
    color: color-mix(in srgb, var(--muted) 88%, var(--primary) 12%);
}

.support-req-msg-card__name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.support-req-msg-card__mail {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--muted);
    word-break: break-all;
}

.support-req-msg-card__role--badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.12rem 0.42rem 0.12rem 0.35rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--primary-border) 55%, transparent);
    background: color-mix(in srgb, var(--primary-soft) 88%, transparent);
    font-size: 0.65rem;
    font-weight: 650;
    color: var(--primary);
    line-height: 1.15;
    width: fit-content;
    max-width: 100%;
}

.support-req-msg-card__role--admin {
    font-size: 0.58rem;
    font-weight: 650;
    padding: 0.1rem 0.38rem 0.1rem 0.32rem;
    border: 1px solid color-mix(in srgb, #fca5a5 70%, transparent);
    background: color-mix(in srgb, #fee2e2 85%, transparent);
    color: #b91c1c;
    gap: 0.24rem;
}

.support-req-msg-card__role--admin i {
    font-size: 0.56rem;
}

body.theme-light .support-req-msg-card__role--admin,
html.theme-light-preload .support-req-msg-card__role--admin {
    color: #991b1b;
    border-color: #fca5a5;
    background: #fee2e2;
}

.support-req-msg-card--staff .support-req-msg-card__role--badge {
    color: var(--muted);
    border-color: color-mix(in srgb, var(--border) 80%, transparent);
    background: color-mix(in srgb, var(--surface) 92%, var(--muted) 6%);
}

.support-req-msg-card__when {
    text-align: right;
    flex-shrink: 0;
    padding-top: 0.08rem;
}

.support-req-msg-card__when-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.06rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}

.support-req-msg-card__body {
    margin: 0;
    padding: 0.72rem 1rem 0.95rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
}

.support-req-msg-card__text {
    font-size: 0.84rem;
    color: var(--text);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.support-req-messages__empty {
    margin: 0;
    padding: 1.25rem 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.support-req-msg-system {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0.15rem;
}

.support-req-msg__system-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
}

.support-reply-panel {
    border-radius: 0;
    border: none;
    border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: var(--surface);
    overflow: hidden;
}

.support-reply-panel--standalone {
    border-radius: 1.15rem;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}

.support-reply-panel--standalone .support-reply-panel__toolbar {
    padding-right: 0.15rem;
    padding-bottom: 0.1rem;
}

/* site-action-btn tabani ikon-kutu (1.95rem); metinli toolbar dugmeleri icin genislik/padding */
.support-reply-panel--standalone .support-reply-panel__toolbar .site-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    flex: 0 0 auto;
    white-space: nowrap;
    width: auto;
    min-width: auto;
    min-height: 2.2rem;
    padding: 0.5rem 0.95rem;
    box-sizing: border-box;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.25;
    transform: none;
}

.support-reply-panel--standalone .support-reply-panel__toolbar .site-action-btn:hover {
    transform: none;
}

.support-reply-panel--standalone .support-reply-panel__toolbar .site-action-btn i {
    font-size: 0.82rem;
    flex-shrink: 0;
}

.support-reply-panel--standalone .support-reply-panel__toolbar .support-reply-panel__btn-send {
    border: none;
    box-shadow: none;
    background: var(--primary);
    color: #ffffff;
}

.support-reply-panel--standalone .support-reply-panel__toolbar .support-reply-panel__btn-send:hover {
    border: none;
    box-shadow: none;
    background: var(--primary-hover);
    color: #ffffff;
}

.support-reply-panel__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.78rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.support-reply-panel__head-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.support-reply-panel__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.support-reply-panel__body {
    padding: 1rem 1.05rem 1.05rem;
}

.support-reply-panel__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.42rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.support-reply-panel__textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 6.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    background: color-mix(in srgb, var(--surface) 88%, var(--muted) 4%);
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.45;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.support-reply-panel__textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.support-reply-panel__textarea:hover {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border) 65%);
}

.support-reply-panel__textarea:focus,
.support-reply-panel__textarea:focus-visible {
    outline: none;
    border-color: var(--primary-border);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
    background: var(--surface);
}

.support-reply-panel__toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.support-reply-panel__btn-send {
    min-height: 2.35rem;
    padding: 0.45rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
    font-weight: 650;
    gap: 0.4rem;
}

.support-reply-panel__btn-send:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.support-detail-card {
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    background: var(--surface);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.support-detail-card__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    background: color-mix(in srgb, var(--surface) 92%, var(--primary) 4%);
}

.support-detail-card__head-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.support-detail-card__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.support-detail-card__body {
    padding: 0.95rem 1rem 1.05rem;
}

.support-detail-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--primary);
    text-decoration: none;
    border-radius: 0.5rem;
}

.support-detail-card__link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.support-detail-card__link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.req-site-status-panel--thread {
    margin: 0;
    padding: 0.85rem 1rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, var(--muted) 4%);
}

.req-site-status-panel--thread .req-site-status-panel__title {
    margin: 0 0 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.req-site-status-panel--thread .req-site-status-panel__form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
}

.req-site-status-panel--thread .req-site-status-panel__submit {
    border-radius: 0.65rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
}

.req-site-status-panel--thread .req-site-status-panel__submit:hover {
    background: var(--primary-hover, #0284c7);
}

.req-site-status-panel--thread .req-site-status-panel__submit:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.theme-light .support-detail-page__hero,
html.theme-light-preload .support-detail-page__hero {
    border-color: rgba(226, 232, 240, 0.98);
    box-shadow: 0 4px 28px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

body.theme-light .support-req-thread-shell,
html.theme-light-preload .support-req-thread-shell {
    background: #ffffff;
    border-color: #e2e8f0;
}

.support-req-thread-shell.req-chat-card {
    border-radius: 1.15rem;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
    background: var(--surface);
}

/* ── Request Detail Page ──────────────────────────────────── */
.req-detail-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-sizing: border-box;
}

.req-chat-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--surface) 96%, #ffffff 4%);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

body.theme-light .req-chat-card,
html.theme-light-preload .req-chat-card {
    background: #ffffff;
    border-color: #e1e8f0;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-content.dashboard-content--req-detail:not(.dashboard-content--req-detail-v2),
body.has-dashboard-shell.browser-mobile-shell .dashboard-main > turbo-frame > .dashboard-content.dashboard-content--req-detail:not(.dashboard-content--req-detail-v2) {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    -webkit-overflow-scrolling: auto;
}

/* v2: diger sayfalar gibi dashboard-content uzerinden kaydir; turbo SPA sonrasi scroll kilitlenmesin */
body.has-dashboard-shell.browser-mobile-shell .dashboard-content.dashboard-content--req-detail-v2,
body.has-dashboard-shell.browser-mobile-shell .dashboard-main > turbo-frame > .dashboard-content.dashboard-content--req-detail-v2 {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .req-detail-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-content--req-detail-v2 > .support-detail-page {
    flex: none;
    min-height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding-inline: 0.85rem;
    max-width: 100%;
    margin-inline: 0;
    width: 100%;
    box-sizing: border-box;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .req-detail-page__head {
    flex-shrink: 0;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .req-chat-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .req-messages,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-req-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: 10rem;
    overscroll-behavior: contain;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-content--req-detail-v2 .support-req-thread-shell.req-chat-card {
    flex: none;
    min-height: auto;
    overflow: visible;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-content--req-detail-v2 .support-req-messages {
    flex: none;
    min-height: auto;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-content--req-detail-v2 .req-reply-form.support-reply-panel--standalone {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    margin-top: 0;
    padding: 0;
    border-radius: 1.15rem;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
    background: var(--surface);
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .req-reply-form:not(.support-reply-panel--standalone) {
    flex-shrink: 0;
    margin-top: auto;
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    width: calc(100% + 1.7rem);
    max-width: none;
    align-self: stretch;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.65rem;
    padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px) + 5.35rem);
    box-sizing: border-box;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .req-reply-form__title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-reply-panel__head {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .req-composer,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-reply-panel__body {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-reply-panel--standalone .support-reply-panel__head,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-reply-panel--standalone .support-reply-panel__body {
    padding-left: 1rem;
    padding-right: 1rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-reply-panel--standalone .support-reply-panel__toolbar {
    padding-right: 0.35rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-reply-panel--standalone:last-child {
    scroll-margin-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    margin-bottom: 0.35rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .req-composer__textarea,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-reply-panel__textarea {
    width: 100%;
    box-sizing: border-box;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .req-site-status-panel {
    flex-shrink: 0;
}

.req-detail-page__head {
    padding: 1rem 0rem 0.85rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.req-detail-page__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.38rem;
}

.req-detail-page__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.req-detail-page__title-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.req-detail-page__title-text {
    min-width: 0;
    word-break: break-word;
}

.req-detail-page__title-icon {
    color: var(--primary);
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.02em;
}

.req-detail-page__ticket-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
}

.req-detail-page__ticket-code {
    font-size: 0.74rem;
    font-weight: 600;
    color: #9ca3af;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.02em;
    max-width: 11.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.req-detail-page__ticket-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0.55rem;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.req-detail-page__ticket-copy:hover {
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    color: var(--primary-hover, #0284c7);
}

.req-detail-page__ticket-copy:active {
    transform: scale(0.96);
}

.req-detail-page__ticket-copy:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.req-detail-page__ticket-copy i {
    font-size: 0.82rem;
    line-height: 1;
}

body.theme-light .req-detail-page__ticket-copy,
html.theme-light-preload .req-detail-page__ticket-copy {
    background: rgba(3, 169, 244, 0.08);
    color: #0284c7;
}

body.theme-light .req-detail-page__ticket-copy:hover,
html.theme-light-preload .req-detail-page__ticket-copy:hover {
    background: rgba(3, 169, 244, 0.14);
}

.req-detail-page__subrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.req-detail-page__subrow .req-card__stat-badge {
    margin-left: auto;
}

.req-detail-page__meta-item--priority {
    align-items: flex-start;
}

.req-detail-page__meta-item--priority .req-card__stat-badge {
    margin-top: 0;
}

.req-detail-page__meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.6rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    margin-bottom: 0.65rem;
}

.req-detail-page__meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.req-detail-page__meta-item--full {
    grid-column: 1 / -1;
}

.req-detail-page__meta-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.req-detail-page__meta-val {
    font-size: 0.77rem;
    color: var(--text);
    font-weight: 500;
}

.req-detail-page__status-note {
    margin-top: 0.55rem;
    padding: 0.62rem 0.72rem;
    border-radius: 10px;
    text-align: center;
}

.req-detail-page__status-note--pending {
    background: rgba(245, 158, 11, 0.1);
}

.req-detail-page__status-note--open {
    border: 1px solid rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.1);
}

.req-detail-page__status-note--closed {
    border: 1px solid rgba(107, 114, 128, 0.3);
    background: rgba(107, 114, 128, 0.14);
}

.req-detail-page__status-note-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.req-detail-page__status-note-title i {
    font-size: 0.9rem;
}

.req-detail-page__status-note--pending .req-detail-page__status-note-title {
    color: #f59e0b;
}

.req-detail-page__status-note--open .req-detail-page__status-note-title {
    color: #4ade80;
}

.req-detail-page__status-note--closed .req-detail-page__status-note-title {
    color: #d1d5db;
}

.req-detail-page__status-note-text {
    margin: 0.28rem 0 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--text);
}

/* Manager status-change strip */
.req-detail-page__status-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.req-detail-page__status-label {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
    margin-right: auto;
}

.req-detail-page__status-btn {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.28rem 0.72rem;
    border-radius: 7px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.req-detail-page__status-btn--open    { background: rgba(3,169,244,.12); color: #03a9f4; border-color: rgba(3,169,244,.25); }
.req-detail-page__status-btn--open:hover   { background: rgba(3,169,244,.22); }
.req-detail-page__status-btn--progress { background: rgba(240,170,60,.12); color: #f0aa3c; border-color: rgba(240,170,60,.25); }
.req-detail-page__status-btn--progress:hover { background: rgba(240,170,60,.22); }
.req-detail-page__status-btn--closed  { background: rgba(16,185,129,.12); color: #10b981; border-color: rgba(16,185,129,.25); }
.req-detail-page__status-btn--closed:hover  { background: rgba(16,185,129,.22); }
.req-detail-page__status-btn.is-active { box-shadow: 0 0 0 2px currentColor; }

/* Messages thread — tek kart görünümü + sol zaman çizgisi */
.req-messages {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem 0.75rem;
    isolation: isolate;
    flex: 0 0 auto;
    overflow: visible;
}

.req-messages::before {
    content: '';
    position: absolute;
    left: calc(1rem - 1px);
    top: 0.45rem;
    bottom: 0.65rem;
    width: 3px;
    margin-left: 0;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary) 42%, transparent) 0%,
        color-mix(in srgb, var(--border) 70%, transparent) 42%,
        color-mix(in srgb, var(--primary) 32%, transparent) 100%
    );
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--surface) 60%, transparent);
}

.req-msg {
    display: flex;
    gap: 0.6rem;
    padding: 0.1rem 0;
    position: relative;
    z-index: 1;
}

.req-msg__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--primary) 14%, var(--surface));
    color: var(--primary);
    align-self: flex-start;
    margin-top: 0.35rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--surface) 92%, var(--primary) 8%);
}

.req-msg__avatar--img {
    background: none;
    overflow: hidden;
}

.req-msg__avatar--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.req-msg__bubble {
    flex: 1;
    min-width: 0;
}

.req-msg__card {
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 94%, #ffffff 6%);
    padding: 0.55rem 0.72rem 0.62rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.req-msg__top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.28rem;
}

.req-msg__name {
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--text);
}

.req-msg__role {
    font-size: 0.62rem;
    color: var(--primary);
    font-weight: 600;
}

.req-msg__time {
    font-size: 0.62rem;
    color: var(--muted);
    margin-left: auto;
    flex-shrink: 0;
}

.req-msg__subrow {
    margin: -0.05rem 0 0.38rem;
}

.req-msg__meta-line {
    display: block;
    font-size: 0.62rem;
    line-height: 1.35;
    color: var(--muted);
    word-break: break-word;
}

.req-msg__text {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.req-msg__img {
    display: block;
    max-width: 240px;
    border-radius: 8px;
    margin-top: 0.4rem;
    border: 1px solid var(--border);
}

/* System message (open/close event) */
.req-msg--system {
    display: flex;
    justify-content: center;
    padding: 0.2rem 0;
    position: relative;
    z-index: 1;
}

.req-msg__system-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.67rem;
    color: var(--muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
}

.req-msg__system-chip i {
    font-size: 0.62rem;
}

/* Closed notice */
.req-closed-notice {
    margin: 0.5rem 1rem 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.22);
    font-size: 0.76rem;
    color: #6ee7b7;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.req-closed-notice i {
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Reply composer — sohbet kartinin en altinda, tam genislik */
.req-reply-form {
    position: relative;
    flex-shrink: 0;
    margin-top: 0;
    background: color-mix(in srgb, var(--surface) 94%, var(--muted) 2%);
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
}

.req-reply-form__title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.req-reply-form__title i {
    color: var(--primary);
}

.req-composer {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}

.req-composer__textarea {
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    min-height: 4.25rem;
    max-height: 14rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.86rem;
    font-family: inherit;
    line-height: 1.45;
    transition: background 0.15s ease;
}

.req-composer__textarea:focus {
    outline: none;
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
}

.req-composer__actions {
    display: flex;
    justify-content: stretch;
    width: 100%;
}

.req-composer__send {
    min-height: 2.45rem;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

@media (min-width: 520px) {
    .req-composer__actions {
        justify-content: flex-end;
    }

    .req-composer__send {
        width: auto;
        min-width: 10.5rem;
    }
}

.req-composer__send:hover { background: var(--primary-hover, #0288d1); }
.req-composer__send:active { transform: translateY(1px); }
.req-composer__send:disabled { opacity: .45; cursor: default; }

/* Light mode overrides */
body.theme-light .req-detail-page__meta-grid,
html.theme-light-preload .req-detail-page__meta-grid {
    background: #f5f8fc;
    border-color: #e1e8f0;
}

body.theme-light .req-detail-page__status-note--pending,
html.theme-light-preload .req-detail-page__status-note--pending {
    background: rgba(245, 158, 11, 0.12);
}

body.theme-light .req-detail-page__status-note--open,
html.theme-light-preload .req-detail-page__status-note--open {
    border-color: rgba(22, 163, 74, 0.25);
    background: rgba(34, 197, 94, 0.12);
}

body.theme-light .req-detail-page__status-note--closed,
html.theme-light-preload .req-detail-page__status-note--closed {
    border-color: rgba(100, 116, 139, 0.28);
    background: rgba(148, 163, 184, 0.18);
}

body.theme-light .req-msg__card,
html.theme-light-preload .req-msg__card {
    background: #f8fafc;
    border-color: #e1e8f0;
    box-shadow: 0 2px 8px rgba(21, 34, 53, 0.06);
}

body.theme-light .req-msg__system-chip,
html.theme-light-preload .req-msg__system-chip {
    background: #f0f5fb;
    border-color: #d8e4ef;
}

body.theme-light .req-reply-form:not(.support-reply-panel--standalone),
html.theme-light-preload .req-reply-form:not(.support-reply-panel--standalone) {
    background: #f8fafc;
    border-top-color: #dde6ef;
    box-shadow: none;
}

body.theme-light .support-reply-panel--standalone.req-reply-form,
html.theme-light-preload .support-reply-panel--standalone.req-reply-form {
    background: #ffffff;
    border-color: rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

body.theme-light .req-composer__textarea,
html.theme-light-preload .req-composer__textarea {
    background: rgba(3, 169, 244, 0.06);
    border: 0;
    color: #1a2b3c;
}

body.theme-light .req-composer__textarea:focus,
html.theme-light-preload .req-composer__textarea:focus {
    background: rgba(3, 169, 244, 0.1);
    box-shadow: none;
}

body.theme-light .req-closed-notice,
html.theme-light-preload .req-closed-notice {
    background: rgba(16,185,129,.07);
    color: #059669;
}

/* Light mode */
body.theme-light .req-card,
html.theme-light-preload .req-card {
    background: #ffffff;
    border-color: #e2edf6;
}

body.theme-light .req-card:hover,
html.theme-light-preload .req-card:hover {
    border-color: rgba(3, 169, 244, 0.4);
    background: rgba(3, 169, 244, 0.03);
}

body.theme-light .req-card__subject,
html.theme-light-preload .req-card__subject {
    color: #0f2840;
}

body.theme-light .req-card__desc,
body.theme-light .req-card__meta-chip,
html.theme-light-preload .req-card__desc,
html.theme-light-preload .req-card__meta-chip {
    color: #6a86a0;
}

/* ── Talep Detay Sheet ── */
.req-detail-sheet {
    position: fixed;
    inset: 0;
    z-index: 9150;
    display: flex;
    align-items: flex-end;
}

.req-detail-sheet.hidden {
    display: none;
}

.req-detail-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 22, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.req-detail-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: #0f1c35;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 0.55rem 1.1rem 2rem;
    max-height: 88vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.22, .68, 0, 1.2);
    z-index: 1;
}

.req-detail-sheet__panel.is-open {
    transform: translateY(0);
}

.req-detail-sheet__handle {
    width: 2.5rem;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto 0.9rem;
}

.req-detail-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.req-detail-sheet__badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.req-detail-sheet__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}

.req-detail-sheet__close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.req-detail-sheet__title {
    font-size: 1rem;
    font-weight: 700;
    color: #e8f4ff;
    margin: 0 0 1rem;
    line-height: 1.35;
}

.req-detail-sheet__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.req-detail-sheet__desc-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.4rem;
}

.req-detail-sheet__desc {
    font-size: 0.82rem;
    color: rgba(180, 210, 240, 0.85);
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

.req-detail-sheet__meta-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.req-detail-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.52rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.req-detail-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--muted, #6a86a0);
}

.req-detail-meta-label i { font-size: 0.65rem; color: var(--primary); }

.req-detail-meta-val {
    font-size: 0.78rem;
    font-weight: 600;
    color: #c8e0f4;
}

.req-detail-sheet__img {
    width: 100%;
    border-radius: 0.8rem;
    object-fit: cover;
    max-height: 220px;
    display: block;
}

.req-detail-sheet__dismiss {
    display: block;
    width: 100%;
    margin-top: 1.2rem;
    padding: 0.72rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.req-detail-sheet__dismiss:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Light mode sheet */
body.theme-light .req-detail-sheet__backdrop,
html.theme-light-preload .req-detail-sheet__backdrop {
    background: rgba(10, 25, 50, 0.5);
}

body.theme-light .req-detail-sheet__panel,
html.theme-light-preload .req-detail-sheet__panel {
    background: #f4f8fc;
}

body.theme-light .req-detail-sheet__title,
html.theme-light-preload .req-detail-sheet__title {
    color: #0a1e35;
}

body.theme-light .req-detail-sheet__desc,
html.theme-light-preload .req-detail-sheet__desc {
    color: #3a5a7a;
}

body.theme-light .req-detail-meta-item,
html.theme-light-preload .req-detail-meta-item {
    background: rgba(3, 169, 244, 0.04);
    border-color: #daeaf6;
}

body.theme-light .req-detail-meta-val,
html.theme-light-preload .req-detail-meta-val {
    color: #1a3050;
}

body.theme-light .req-detail-sheet__close,
html.theme-light-preload .req-detail-sheet__close {
    background: rgba(3, 169, 244, 0.08);
    color: #5a7a96;
}

body.theme-light .req-detail-sheet__dismiss,
html.theme-light-preload .req-detail-sheet__dismiss {
    background: rgba(0, 0, 0, 0.05);
    border-color: #dde8f2;
    color: #5a7a96;
}

body.theme-light .req-detail-sheet__handle,
html.theme-light-preload .req-detail-sheet__handle {
    background: rgba(0, 0, 0, 0.12);
}

@media (min-width: 821px) {
    .req-cards {
        padding-left: 0;
        padding-right: 0;
    }

    .req-detail-sheet__panel {
        border-radius: 1.25rem;
        margin-bottom: 2.5rem;
        max-height: 80vh;
    }
}

/* ── Desktop alt-sayfa topbar kullanıcı kontrolleri ── */
.topbar-desktop-user-controls {
    display: none; /* Mobilde gizli */
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 821px) {
    .topbar-desktop-user-controls {
        display: flex;
    }
}

body.theme-light .topbar-desktop-user-controls .topbar-logout-btn,
html.theme-light-preload .topbar-desktop-user-controls .topbar-logout-btn {
    color: var(--primary);
}

/* ── Talepler topbar: "+ Talep Oluştur" pill butonu ── */
.topbar-add-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(3, 169, 244, 0.22);
    -webkit-appearance: none;
    appearance: none;
}

.topbar-add-request-btn:hover {
    background: var(--primary-hover, #0284c7);
    box-shadow: 0 3px 10px rgba(3, 169, 244, 0.32);
}

.topbar-add-request-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.topbar-add-request-btn i {
    font-size: 0.72rem;
}

@media (max-width: 480px) {
    .topbar-add-request-btn span {
        display: none;
    }

    .topbar-add-request-btn {
        padding: 0.42rem 0.65rem;
        border-radius: 50%;
        width: 2.1rem;
        height: 2.1rem;
        justify-content: center;
    }

    .topbar-add-request-btn i {
        font-size: 0.85rem;
    }
}

/* ════════════════════════════════════════════════════════════════
   Anketler sayfası
   ════════════════════════════════════════════════════════════════ */

/* Stat kartı */
.surveys-stat-card {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.surveys-stat-card__inner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.surveys-stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    background: rgba(3,169,244,.12);
    color: var(--primary);
    font-size: 0.78rem;
    flex-shrink: 0;
}
.surveys-stat-card__icon--red {
    background: rgba(239,68,68,.1);
    color: #ef4444;
}
.surveys-stat-card__icon--orange {
    background: rgba(249,115,22,.1);
    color: #f97316;
}
.surveys-stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}
.surveys-stat-card__label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
    margin: 0;
    line-height: 1.1;
}
.surveys-stat-card__val {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin: 0;
}

/* Anket listesi */
.surveys-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Anket kartı */
.survey-card {
    padding: 1rem 1rem 0.85rem;
}
.survey-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.survey-card__title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}
.survey-card__icon {
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
    opacity: 0.75;
}
.survey-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.survey-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.survey-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.01em;
}
.survey-card__badge--active {
    background: rgba(3,169,244,.12);
    color: var(--primary);
}
.survey-card__badge--open {
    background: rgba(34,197,94,.12);
    color: #16a34a;
}
.survey-card__badge--closed {
    background: rgba(148,163,184,.12);
    color: var(--muted);
}
.survey-card__votes {
    font-size: 0.65rem;
    color: var(--muted);
    white-space: nowrap;
}
.survey-card__desc {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 0.6rem;
    line-height: 1.5;
}

/* Seçenekler */
.survey-card__options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.2rem;
}
.survey-option-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.5rem;
    position: relative;
    cursor: pointer;
    padding: 0.52rem 0.72rem 0.55rem;
    border-radius: 0.65rem;
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    transition: border-color .18s, background .18s;
    overflow: hidden;
}
.survey-option-row:not(.survey-option-row--readonly):hover {
    border-color: var(--primary);
    background: rgba(3,169,244,.04);
}
.survey-option-row--chosen {
    border-color: var(--primary);
    background: rgba(3,169,244,.06);
}
.survey-option-row--readonly {
    cursor: default;
}
.survey-option-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Kare checkbox görünümü; oy sonrası yüzde + progress satırda */
.survey-option-checkbox {
    position: relative;
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 0.22rem;
    border: 2px solid rgba(148, 163, 184, 0.55);
    background: transparent;
    transition: border-color .15s, background .15s, box-shadow .15s;
    box-sizing: border-box;
}
.survey-option-row:not(.survey-option-row--vote):has(.survey-option-radio:checked):not(.survey-option-row--readonly) .survey-option-checkbox,
.survey-option-checkbox--chosen,
.survey-option-row--chosen:not(.survey-option-row--vote) .survey-option-checkbox {
    border-color: var(--primary);
    background: rgba(3, 169, 244, 0.12);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.12);
}
.survey-option-row:not(.survey-option-row--vote):has(.survey-option-radio:checked):not(.survey-option-row--readonly) .survey-option-checkbox::after,
.survey-option-checkbox--chosen:not(.survey-option-checkbox--round)::after,
.survey-option-row--chosen:not(.survey-option-row--vote) .survey-option-checkbox:not(.survey-option-checkbox--round)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 0.2rem;
    height: 0.42rem;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    box-sizing: border-box;
}
.survey-option-row--readonly:not(.survey-option-row--chosen) .survey-option-checkbox {
    opacity: 0.55;
    border-color: rgba(148, 163, 184, 0.35);
}
.survey-option-row--readonly:not(.survey-option-row--chosen) .survey-option-checkbox::after {
    display: none;
}
.survey-option-label {
    font-size: 0.8rem;
    color: var(--text-main);
    font-weight: 500;
    flex: 1 1 8rem;
    min-width: 0;
    line-height: 1.3;
    position: relative;
}
.survey-option-pct {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 2.6rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    position: relative;
}
.survey-option-progress {
    flex: 1 1 100%;
    width: 100%;
    margin: 0.08rem 0 0;
    order: 4;
}
.survey-option-progress__track {
    display: block;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.1);
    overflow: hidden;
    border: 1px solid rgba(3, 169, 244, 0.12);
}
.survey-option-progress__fill {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(3, 169, 244, 0.45) 0%, var(--primary) 52%, #5ac8fa 100%);
    transition: width 0.55s ease;
}
.survey-option-progress__fill--chosen {
    background: linear-gradient(90deg, #0288d1 0%, var(--primary) 50%, #4fc3f7 100%);
    box-shadow: 0 0 8px rgba(3, 169, 244, 0.25);
}

/* Oy verme asamasinda: metin solda, yuvarlak secim sagda; progress yok */
.survey-option-row--vote {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
}
.survey-option-row--vote .survey-option-label {
    flex: 1 1 auto;
    min-width: 0;
}
.survey-option-row--vote .survey-option-checkbox--round {
    position: relative;
    flex-shrink: 0;
    width: 1.12rem;
    height: 1.12rem;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.55);
    background: transparent;
    box-sizing: border-box;
}
.survey-option-row--vote .survey-option-checkbox--round::after {
    display: none;
}
.survey-option-row--vote:has(.survey-option-radio:checked) .survey-option-checkbox--round {
    border-color: var(--primary);
    background: rgba(3, 169, 244, 0.12);
    box-shadow: 0 0 0 1px rgba(3, 169, 244, 0.12);
}
.survey-option-row--vote:has(.survey-option-radio:checked) .survey-option-checkbox--round::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    transform: translate(-50%, -50%);
    display: block;
    box-sizing: border-box;
}

/* Yonetici: apartman katilim ozeti (oy sayisi / uygun kullanici) */
.survey-card__participation {
    margin: 0.35rem 0 0.15rem;
    padding: 0.45rem 0.55rem 0.5rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(3, 169, 244, 0.14);
    background: rgba(3, 169, 244, 0.06);
}
.survey-card__participation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.survey-card__participation-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.survey-card__participation-meta {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}
.survey-card__participation-track {
    display: block;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.1);
    overflow: hidden;
    border: 1px solid rgba(3, 169, 244, 0.14);
}
.survey-card__participation-fill {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(3, 169, 244, 0.45) 0%, var(--primary) 55%, #5ac8fa 100%);
    transition: width 0.45s ease;
}

/* Yönetici oy listesi */
.survey-voters-wrap {
    margin-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.55rem;
}
.survey-voters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.5rem;
}
.survey-voters-toggle:hover {
    color: var(--primary);
}
.survey-voters-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.survey-voters-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: rgba(3, 169, 244, 0.15);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0 0.3rem;
}
.survey-voters-caret {
    font-size: 0.6rem;
    transition: transform .2s ease;
    flex-shrink: 0;
}
.survey-voters-list {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.survey-voter-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.survey-voter-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.survey-voter-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.survey-voter-option {
    font-size: 0.68rem;
    color: var(--primary);
    background: rgba(3, 169, 244, 0.1);
    border-radius: 999px;
    padding: 0.15em 0.5em;
    white-space: nowrap;
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.survey-voter-date {
    font-size: 0.62rem;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.survey-voters-empty {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.5rem;
    opacity: 0.6;
}

body.theme-light .survey-voters-wrap,
html.theme-light-preload .survey-voters-wrap {
    border-top-color: rgba(0, 0, 0, 0.07);
}
body.theme-light .survey-voter-row,
html.theme-light-preload .survey-voter-row {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}
body.theme-light .survey-voter-name,
html.theme-light-preload .survey-voter-name {
    color: #1a2e42;
}

/* Yönetici durdur butonu */
.survey-card__stop-form {
    display: inline-flex;
    margin: 0;
}
.survey-card__stop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(240, 80, 80, 0.3);
    background: rgba(240, 80, 80, 0.08);
    color: #f05050;
    font-size: 0.6rem;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}
.survey-card__stop-btn:hover {
    background: rgba(240, 80, 80, 0.18);
    border-color: rgba(240, 80, 80, 0.55);
}

/* Açıklama textarea soft */
.surveys-desc-textarea {
    resize: none;
    color: var(--text-secondary, #8aa5bf);
    font-size: 0.78rem;
}
.surveys-desc-textarea::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

/* Zorunlu ve opsiyonel hint */
.surveys-required-hint {
    color: #f05050;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.1em;
}
.surveys-optional-hint {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--muted);
    opacity: 0.8;
}

/* Oy gönderildi / kapalı hint */
.survey-voted-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #16a34a;
    margin: 0.5rem 0 0;
    padding: 0.4rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(34,197,94,.07);
}
.survey-voted-hint--closed {
    color: var(--muted);
    background: rgba(148,163,184,.08);
}

/* Oylama butonu shake animasyonu */
.surveys-vote-btn--shake {
    animation: surveyShake .4s ease;
}
@keyframes surveyShake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-4px); }
    40%      { transform: translateX(4px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(3px); }
}

/* Seçenek ekleme alanı */
.surveys-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.surveys-option-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    /* (yukarıda .survey-option-row ile çakışmaması için form-context override) */
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.surveys-option-row .auth-input {
    flex: 1;
}
.surveys-option-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.5rem;
    border: none;
    background: rgba(239,68,68,.1);
    color: #ef4444;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .18s;
    font-size: 0.75rem;
}
.surveys-option-remove:hover {
    background: rgba(239,68,68,.2);
}
.surveys-add-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(3,169,244,.07);
    border: 1.5px dashed rgba(3,169,244,.35);
    border-radius: 0.65rem;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: background .18s, border-color .18s;
    margin-top: 0.1rem;
}
.surveys-add-option-btn:hover {
    background: rgba(3,169,244,.13);
    border-color: var(--primary);
}
.surveys-optional-hint {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--muted);
    margin-left: 0.2rem;
}

/* Light theme overrides */
body.theme-light .survey-option-row,
html.theme-light-preload .survey-option-row {
    background: #fff;
    border-color: #e2e8f0;
}
body.theme-light .survey-option-row--chosen,
html.theme-light-preload .survey-option-row--chosen {
    border-color: var(--primary);
    background: rgba(3,169,244,.06);
}
body.theme-light .survey-option-progress__track,
html.theme-light-preload .survey-option-progress__track {
    background: rgba(3, 169, 244, 0.08);
    border-color: rgba(3, 169, 244, 0.16);
}
body.theme-light .survey-card__participation,
html.theme-light-preload .survey-card__participation {
    background: rgba(3, 169, 244, 0.06);
    border-color: #bae6fd;
}
body.theme-light .survey-card__badge--open,
html.theme-light-preload .survey-card__badge--open {
    color: #15803d;
}
body.theme-light .surveys-stat-card,
html.theme-light-preload .surveys-stat-card {
    border-color: rgba(21, 34, 53, 0.07);
}

body.theme-light .surveys-stat-card__val,
html.theme-light-preload .surveys-stat-card__val {
    color: #0f172a;
}

/* ── Upload toast bildirimi ── */
.hw-upload-toast {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.hw-upload-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.hw-upload-toast--success {
    background: linear-gradient(135deg, #1ab97c 0%, #0ea368 100%);
    color: #fff;
}
.hw-upload-toast--error {
    background: linear-gradient(135deg, #ef5350 0%, #d32f2f 100%);
    color: #fff;
}
.hw-upload-toast i {
    font-size: 0.85rem;
}
@media (min-width: 821px) {
    .hw-upload-toast {
        bottom: 24px;
        right: 24px;
        left: auto;
        transform: translateY(12px);
    }
    .hw-upload-toast--visible {
        transform: translateY(0);
    }
}

/* ── Talep / Request görsel yükleme alanı ── */
.request-image-upload-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    border: 1.5px dashed rgba(3, 169, 244, 0.3);
    border-radius: 10px;
    cursor: pointer;
    background: rgba(3, 169, 244, 0.04);
    transition: border-color 0.18s, background 0.18s;
    min-height: 44px;
}
.request-image-upload-label:hover {
    border-color: rgba(3, 169, 244, 0.6);
    background: rgba(3, 169, 244, 0.08);
}
.request-image-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.request-image-placeholder {
    font-size: 0.72rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.request-image-filename {
    font-size: 0.72rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}
.request-image-preview-wrap {
    position: relative;
    margin-top: 0.4rem;
    display: inline-flex;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
}
.request-image-preview {
    display: block;
    max-width: 100%;
    max-height: 160px;
    border-radius: 10px;
    object-fit: cover;
}
.request-image-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.18s;
}
.request-image-remove-btn:hover {
    background: rgba(239, 68, 68, 0.85);
}
/* Light theme overrides */
body.theme-light .request-image-upload-label,
html.theme-light-preload .request-image-upload-label {
    border-color: rgba(3, 169, 244, 0.35);
    background: rgba(3, 169, 244, 0.03);
}
body.theme-light .request-image-upload-label:hover,
html.theme-light-preload .request-image-upload-label:hover {
    border-color: rgba(3, 169, 244, 0.65);
    background: rgba(3, 169, 244, 0.07);
}
body.theme-light .request-image-filename,
html.theme-light-preload .request-image-filename {
    color: #152235;
}

/* ============================================================
   Error Reporter Widget
   ============================================================ */

/* ── Error Reporter Widget ─────────────────────────────────────────── */
.error-reporter-widget {
    position: fixed;
    bottom: 90px;
    right: 1.25rem;
    z-index: 40;
    user-select: none;
}

body.modal-open .error-reporter-widget,
body.listing-detail-lightbox-open .error-reporter-widget {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.has-dashboard-shell.browser-mobile-shell .error-reporter-widget {
    right: max(1.1rem, calc((100vw - min(430px, 92vw)) / 2 + 1.1rem));
    bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
}

.error-reporter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: #e11d48;
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: grab;
    box-shadow: 0 2px 10px rgba(225,29,72,.28);
    transition: background .15s, box-shadow .15s, transform .1s;
    flex-shrink: 0;
}
.error-reporter-widget.is-dragging .error-reporter-btn { cursor: grabbing; }
.error-reporter-btn:hover  { background: #be123c; box-shadow: 0 4px 14px rgba(190,18,60,.34); }
.error-reporter-btn:active { transform: scale(.96); }
.error-reporter-btn:focus-visible { outline: 2px solid #fda4af; outline-offset: 3px; }
.error-reporter-btn i { font-size: .74rem; flex-shrink: 0; pointer-events: none; }

/* Label — tooltip olarak sağ/sol tarafta, widget boyutunu değiştirmez */
.error-reporter-btn__label {
    position: absolute;
    /* varsayılan: sola çıkar (widget sağ yarıda) */
    right: calc(100% + 8px);
    left: auto;
    top: 50%;
    transform: translateY(-50%) scale(0.88);
    white-space: nowrap;
    background: rgba(20, 6, 12, 0.92);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.26em 0.7em;
    border-radius: 6px;
    border: 1px solid rgba(255, 80, 80, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 1;
}
/* widget sol yarıdayken label sağa çıkar */
.error-reporter-widget.er-label-right .error-reporter-btn__label {
    right: auto;
    left: calc(100% + 8px);
}
.error-reporter-widget.is-collapsed .error-reporter-btn__label {
    opacity: 0;
    transform: translateY(-50%) scale(0.88);
}
/* hover veya focus-within'de göster */
.error-reporter-widget:not(.is-collapsed):hover .error-reporter-btn__label,
.error-reporter-widget:focus-within .error-reporter-btn__label {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
/* modal açıkken ve kapatıldıktan 3sn boyunca göster */
.error-reporter-widget.show-label .error-reporter-btn__label {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Böcek ikonu — show-label süresinde hafif yukarı-aşağı salınım */
@keyframes er-bug-float {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(-3px); }
    70%       { transform: translateY(1px); }
}
.error-reporter-widget.show-label .error-reporter-btn i {
    animation: er-bug-float 0.9s ease-in-out infinite;
}

/* ── Backdrop ─────────────────────────────────────────────────────── */
/* ── Modal — apartment-edit-modal patterni ile aynı yapı ─────────── */
.error-reporter-modal {
    position: fixed;
    inset: 0;
    z-index: 9600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.error-reporter-modal[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.error-reporter-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.46);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.error-reporter-modal__card {
    position: relative;
    width: 100%;
    max-width: 370px;
    background: #ffffff;
    border: 1px solid #e5ecf3;
    border-radius: 1.25rem;
    box-shadow: 0 24px 52px rgba(2, 8, 23, 0.28);
    padding: 1.1rem 1.1rem .9rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    animation: er-scale-in .22s cubic-bezier(.22,.68,0,1.2);
}

.error-reporter-modal__head {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.error-reporter-modal__icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: .5rem;
    background: #fff1f2;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    flex-shrink: 0;
}
.error-reporter-modal__title {
    font-size: .875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}
.error-reporter-modal__close {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: .5rem;
    background: #f0f4f8;
    border: none;
    color: #64748b;
    font-size: .78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, color .12s;
    flex-shrink: 0;
}
.error-reporter-modal__close:hover { background: #fee2e2; color: #e11d48; }
.error-reporter-modal__close:focus-visible { outline: 2px solid #e11d48; outline-offset: 2px; }

.error-reporter-modal__desc {
    font-size: .775rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.error-reporter-modal__form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.error-reporter-modal__textarea {
    width: 100%;
    min-height: 82px;
    resize: none;
    border: 1.5px solid #d1dce8;
    border-radius: .75rem;
    padding: .55rem .7rem;
    font-size: .8125rem;
    color: #0f172a;
    background: #f8fafc;
    line-height: 1.5;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
}
.error-reporter-modal__textarea:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225,29,72,.10);
}
.error-reporter-modal__textarea::placeholder { color: #94a3b8; }

.error-reporter-modal__char {
    font-size: .7rem;
    color: #94a3b8;
    text-align: right;
    margin: -.25rem 0 0;
}
.error-reporter-modal__check-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .775rem;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}
.error-reporter-modal__checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.02rem;
    height: 1.02rem;
    border-radius: .32rem;
    border: 1px solid rgba(225, 29, 72, 0.45);
    background: rgba(225, 29, 72, 0.08);
    flex-shrink: 0;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}

.error-reporter-modal__checkbox::after {
    content: '';
    width: .36rem;
    height: .2rem;
    border: 2px solid #fff;
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg) scale(0.1);
    transform-origin: center;
    opacity: 0;
    transition: transform .16s ease, opacity .16s ease;
}

.error-reporter-modal__checkbox:checked {
    background: #e11d48;
    border-color: #be123c;
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.22);
}

.error-reporter-modal__checkbox:checked::after {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

.error-reporter-modal__checkbox:focus-visible {
    outline: 2px solid #fda4af;
    outline-offset: 2px;
}

.error-reporter-modal__checkbox:active {
    transform: scale(0.94);
}
.error-reporter-modal__actions { display: flex; justify-content: flex-end; }
.error-reporter-modal__submit {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem 1rem;
    background: #e11d48;
    color: #fff;
    border: none;
    border-radius: .7rem;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    box-shadow: 0 2px 8px rgba(225,29,72,.25);
    font-family: inherit;
}
.error-reporter-modal__submit:hover   { opacity: .88; }
.error-reporter-modal__submit:active  { transform: scale(.95); }
.error-reporter-modal__submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.error-reporter-modal__submit:focus-visible { outline: 2px solid #fda4af; outline-offset: 2px; }

.error-reporter-modal__feedback {
    font-size: .775rem;
    padding: .42rem .65rem;
    border-radius: .55rem;
    text-align: center;
    margin: 0;
}
.error-reporter-modal__feedback[hidden] { display: none; }
.error-reporter-modal__feedback.is-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.error-reporter-modal__feedback.is-error   { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

/* Dark theme — only when uygulama kabugu koyu (body.theme-light yok).
 * NOT: applyTheme() html.theme-light-preload kaldirdiginda eski secici
 * html:not(.theme-light-preload) body:not([data-force-light-theme]) yanlislikla
 * acik temada da eslesiyordu; bu yuzden modal koyu gorunuyordu. */
html:not(.theme-light-preload) body:not(.theme-light) .error-reporter-modal__card {
    background: var(--card-bg);
    border-color: var(--card-border);
}
html:not(.theme-light-preload) body:not(.theme-light) .error-reporter-modal__title { color: var(--text); }
html:not(.theme-light-preload) body:not(.theme-light) .error-reporter-modal__desc { color: var(--muted); }
html:not(.theme-light-preload) body:not(.theme-light) .error-reporter-modal__close { background: var(--surface); color: var(--muted); }
html:not(.theme-light-preload) body:not(.theme-light) .error-reporter-modal__textarea {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text);
}
html:not(.theme-light-preload) body:not(.theme-light) .error-reporter-modal__char,
html:not(.theme-light-preload) body:not(.theme-light) .error-reporter-modal__check-label { color: var(--muted); }

html:not(.theme-light-preload) body:not(.theme-light) .error-reporter-modal__checkbox {
    border-color: rgba(251, 113, 133, 0.5);
    background: rgba(225, 29, 72, 0.12);
}

html:not(.theme-light-preload) body:not(.theme-light) .error-reporter-modal__checkbox:checked {
    background: #e11d48;
    border-color: #fb7185;
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.28);
}

/* Animations */
@keyframes er-scale-in {
    from { opacity: 0; transform: scale(.93) translateY(6px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Panel hızlı işlemler: dolgu kart (.surface) + alttan/yan tint gölge; metin dolgu disinda */
.panel-kasa-quick-actions-wrap .panel-kasa-quick-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action {
    width: 100%;
    max-width: 100%;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
    gap: 10px;
    border-radius: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    transition: color 0.16s ease;
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action:hover,
.panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action:active {
    transform: none !important;
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action:focus-visible {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Dolgu kart: hafif iki katman (0 1px 2px + 0 4px 10px -3px); varyant rengi color-mix ile */
.panel-kasa-quick-actions-wrap .panel-kasa-quick-action__surface {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65%;
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
    min-height: 3.05rem;
    padding: 0.38rem 0.45rem;
    border-radius: 15px;
    border: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.1),
        0 4px 10px -3px rgba(15, 23, 42, 0.14);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action:hover .panel-kasa-quick-action__surface,
.panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action:focus-visible .panel-kasa-quick-action__surface {
    transform: translateY(-1px);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.12),
        0 5px 12px -3px rgba(15, 23, 42, 0.16);
}

@supports (background: color-mix(in srgb, #fff, #000)) {
    .panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action:hover .panel-kasa-quick-action__surface,
    .panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action:focus-visible .panel-kasa-quick-action__surface {
        box-shadow:
            0 1px 2px color-mix(in srgb, var(--panel-qa-shadow-tint-hover, var(--panel-qa-shadow-tint, rgba(15, 23, 42, 0.12))) 42%, transparent),
            0 5px 12px -3px color-mix(in srgb, var(--panel-qa-shadow-tint-hover, var(--panel-qa-shadow-tint, rgba(15, 23, 42, 0.12))) 56%, transparent);
    }
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action__badge i {
    font-size: 0.86rem;
    line-height: 1;
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action__text {
    max-width: 100%;
    margin-top: 0;
    padding: 0 0.06rem;
    font-size: clamp(0.48rem, 2.4vw, 0.54rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
    .panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action:hover .panel-kasa-quick-action__surface {
        transform: none;
    }
}

/* Varyant: dolgu + tint shadow-sm */
.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--sky .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: transparent;
    --panel-qa-shadow-tint-hover: transparent;
    background: rgba(34, 211, 238, 0.11);
    border-color: rgba(34, 211, 238, 0.24);
    box-shadow: none !important;
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--sky:hover .panel-kasa-quick-action__surface {
    background: rgba(34, 211, 238, 0.18);
    box-shadow: none !important;
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--sky:focus-visible .panel-kasa-quick-action__surface {
    box-shadow: none !important;
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--blue .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(3, 169, 244, 0.26);
    --panel-qa-shadow-tint-hover: rgba(3, 169, 244, 0.34);
    background: rgba(3, 169, 244, 0.12);
    border-color: rgba(3, 169, 244, 0.26);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--blue:hover .panel-kasa-quick-action__surface {
    background: rgba(3, 169, 244, 0.2);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--amber .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(245, 158, 11, 0.26);
    --panel-qa-shadow-tint-hover: rgba(245, 158, 11, 0.34);
    background: rgba(245, 158, 11, 0.11);
    border-color: rgba(245, 158, 11, 0.26);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--amber:hover .panel-kasa-quick-action__surface {
    background: rgba(245, 158, 11, 0.2);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--green .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(16, 185, 129, 0.26);
    --panel-qa-shadow-tint-hover: rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.11);
    border-color: rgba(16, 185, 129, 0.26);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--green:hover .panel-kasa-quick-action__surface {
    background: rgba(16, 185, 129, 0.2);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--lime .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(132, 204, 22, 0.26);
    --panel-qa-shadow-tint-hover: rgba(132, 204, 22, 0.34);
    background: rgba(132, 204, 22, 0.12);
    border-color: rgba(132, 204, 22, 0.26);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--lime:hover .panel-kasa-quick-action__surface {
    background: rgba(132, 204, 22, 0.22);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--rules .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(124, 58, 237, 0.28);
    --panel-qa-shadow-tint-hover: rgba(124, 58, 237, 0.36);
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.28);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--rules:hover .panel-kasa-quick-action__surface {
    background: rgba(124, 58, 237, 0.21);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--teal .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(45, 212, 171, 0.26);
    --panel-qa-shadow-tint-hover: rgba(45, 212, 171, 0.34);
    background: rgba(45, 212, 171, 0.11);
    border-color: rgba(45, 212, 171, 0.24);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--teal:hover .panel-kasa-quick-action__surface {
    background: rgba(45, 212, 171, 0.22);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--rose .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(244, 63, 94, 0.24);
    --panel-qa-shadow-tint-hover: rgba(244, 63, 94, 0.32);
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.24);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--rose:hover .panel-kasa-quick-action__surface {
    background: rgba(244, 63, 94, 0.19);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--slate .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(100, 116, 139, 0.24);
    --panel-qa-shadow-tint-hover: rgba(100, 116, 139, 0.32);
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.24);
}

.panel-kasa-quick-actions-wrap .panel-kasa-quick-action--slate:hover .panel-kasa-quick-action__surface {
    background: rgba(100, 116, 139, 0.22);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action,
html.theme-light-preload .panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action,
body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action:hover,
html.theme-light-preload .panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action:hover {
    background: transparent !important;
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action__text,
html.theme-light-preload .panel-kasa-quick-actions-wrap .panel-kasa-quick-item .panel-kasa-quick-action__text {
    opacity: 0.82;
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--sky .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(34, 211, 238, 0.16);
    --panel-qa-shadow-tint-hover: rgba(34, 211, 238, 0.22);
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(8, 145, 178, 0.22);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--sky:hover .panel-kasa-quick-action__surface {
    background: rgba(34, 211, 238, 0.2);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--blue .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(3, 169, 244, 0.18);
    --panel-qa-shadow-tint-hover: rgba(3, 169, 244, 0.24);
    background: rgba(3, 169, 244, 0.12);
    border-color: rgba(2, 132, 199, 0.22);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--blue:hover .panel-kasa-quick-action__surface {
    background: rgba(3, 169, 244, 0.2);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--amber .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(245, 158, 11, 0.17);
    --panel-qa-shadow-tint-hover: rgba(245, 158, 11, 0.23);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(217, 119, 6, 0.2);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--amber:hover .panel-kasa-quick-action__surface {
    background: rgba(245, 158, 11, 0.18);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--green .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(16, 185, 129, 0.16);
    --panel-qa-shadow-tint-hover: rgba(16, 185, 129, 0.22);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(5, 150, 105, 0.2);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--green:hover .panel-kasa-quick-action__surface {
    background: rgba(16, 185, 129, 0.18);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--lime .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(132, 204, 22, 0.16);
    --panel-qa-shadow-tint-hover: rgba(132, 204, 22, 0.22);
    background: rgba(132, 204, 22, 0.1);
    border-color: rgba(101, 163, 13, 0.2);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--lime:hover .panel-kasa-quick-action__surface {
    background: rgba(132, 204, 22, 0.18);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--rules .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(124, 58, 237, 0.17);
    --panel-qa-shadow-tint-hover: rgba(124, 58, 237, 0.24);
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--rules:hover .panel-kasa-quick-action__surface {
    background: rgba(124, 58, 237, 0.18);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--teal .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(13, 148, 136, 0.16);
    --panel-qa-shadow-tint-hover: rgba(13, 148, 136, 0.22);
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(15, 118, 110, 0.2);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--teal:hover .panel-kasa-quick-action__surface {
    background: rgba(13, 148, 136, 0.18);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--rose .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(244, 63, 94, 0.15);
    --panel-qa-shadow-tint-hover: rgba(244, 63, 94, 0.21);
    background: rgba(244, 63, 94, 0.09);
    border-color: rgba(225, 29, 72, 0.18);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--rose:hover .panel-kasa-quick-action__surface {
    background: rgba(244, 63, 94, 0.16);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--slate .panel-kasa-quick-action__surface {
    --panel-qa-shadow-tint: rgba(100, 116, 139, 0.14);
    --panel-qa-shadow-tint-hover: rgba(100, 116, 139, 0.2);
    background: rgba(100, 116, 139, 0.09);
    border-color: rgba(71, 85, 105, 0.18);
}

body.theme-light .panel-kasa-quick-actions-wrap .panel-kasa-quick-action--slate:hover .panel-kasa-quick-action__surface {
    background: rgba(100, 116, 139, 0.16);
}

/* Topluluk kuralları */
.dashboard-shell--community-rules-page .community-rules-page {
    --cr-card-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.dashboard-shell--community-rules-page .community-rules-list {
    padding-bottom: 0.25rem;
}

.dashboard-shell--community-rules-page .community-rules-card {
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    box-shadow: var(--cr-card-shadow);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.dashboard-shell--community-rules-page .community-rules-card__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-shell--community-rules-page .community-rules-card__index {
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-hover));
    box-shadow: 0 2px 8px rgba(3, 169, 244, 0.28);
}

.dashboard-shell--community-rules-page .community-rules-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-shell--community-rules-page .community-rules-card__title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--foreground, #0f172a);
}

.dashboard-shell--community-rules-page .community-rules-card__desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--muted, #64748b);
}

/* Global mobile safe-area: prevent content under bottom nav */
@media (max-width: 820px) {
    .dashboard-content,
    .dashboard-content.dashboard-content--units-page,
    .dashboard-content.dashboard-content--panel-page {
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Settings page: Mail & SMS modals — prevent horizontal overflow on narrow viewports */
.settings-mail-modal .apartment-edit-modal__dialog {
    width: min(760px, calc(100vw - 1.25rem));
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.settings-mail-modal .settings-mail-form,
.settings-mail-modal .apartment-edit-modal__grid {
    overflow-x: hidden;
    min-width: 0;
}

.settings-mail-modal .apartment-edit-modal__title-wrap {
    min-width: 0;
}

.settings-mail-modal .apartment-edit-modal__subtitle {
    white-space: normal;
}

.settings-mail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.85rem 1rem 0;
    overflow-x: auto;
    min-width: 0;
}

@media (max-width: 560px) {
    .settings-mail-modal .settings-test-mail-field {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .settings-mail-modal .settings-test-mail-input {
        padding-right: 0.85rem;
    }

    .settings-mail-modal .settings-test-mail-btn {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
    }

    .settings-mail-modal .settings-test-mail-btn:active {
        transform: scale(0.98);
    }

    .settings-mail-modal .sms-provider-grid {
        grid-template-columns: 1fr;
    }

    .settings-mail-modal .apartment-edit-modal__footer--mail-smtp {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Patch: talep detay sayfası — hero üst boşluk, kart genişliği, isim rengi,
   üst yönetim badge, ilan kart shadow / aksan çubuğu kaldır, listing scroll
   ───────────────────────────────────────────────────────────────────────────── */

/* Task 4: hero kart ile navbar arasında üst boşluk */
.dashboard-content--req-detail-v2 {
    padding-top: 1rem;
}

/* Task 5: desktop modda talep detay — geniş kabuk + tam genişlik kartlar */
@media (min-width: 900px) {
    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page[data-req-detail-v2="true"] {
        width: clamp(540px, 78vw, 960px);
        max-width: min(960px, 94vw);
    }

    .dashboard-shell--requests-page .dashboard-content--req-detail-v2 {
        max-width: none;
        width: 100%;
        margin-inline: 0;
        padding-inline: 1.15rem;
        box-sizing: border-box;
    }

    .dashboard-shell--requests-page .dashboard-content--req-detail-v2 > .support-detail-page {
        width: 100%;
        max-width: none;
        margin-inline: 0;
        padding-inline: 0;
        box-sizing: border-box;
    }

    .dashboard-shell--requests-page .support-detail-page__hero,
    .dashboard-shell--requests-page .support-req-thread-shell.req-chat-card,
    .dashboard-shell--requests-page .support-reply-panel--standalone,
    .dashboard-shell--requests-page .support-detail-page > .support-detail-card {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page[data-req-detail-v2="true"] .dashboard-content--req-detail-v2 > .support-detail-page,
    body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page[data-req-detail-v2="true"] .support-detail-page {
        padding-inline: 0;
    }
}

/* Task 6: ilan detay sayfasında desktop scroll sağlan — overflow:hidden kaldır */
.dashboard-shell--listing-detail-page .listing-detail-card {
    overflow: visible;
}

/* Task 7: İlanlar listesi — kart shadow/border ekle, dikey aksan çubuk gizle */
.dashboard-shell--listings-page .listing-card-item {
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
    border-radius: 0.85rem;
}
body.theme-light .dashboard-shell--listings-page .listing-card-item,
html.theme-light-preload .dashboard-shell--listings-page .listing-card-item {
    border-color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.dashboard-shell--listings-page .listing-card-item .hub-payments-card-item__accent {
    display: none;
}

/* ── Overlay containment: modals dashboard-main içinde kalsın ───────── */
.dashboard-main {
    position: relative;
}

.dashboard-main > .unit-card-sheet,
.dashboard-main > [data-aidat-ledger-sheet="true"],
.dashboard-main > .listing-detail-lightbox,
.dashboard-main > .due-receipt-action-sheet {
    position: fixed;
    inset: 0;
    z-index: 9200;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-main > .unit-card-sheet,
body.has-dashboard-shell.browser-mobile-shell .dashboard-main > [data-aidat-ledger-sheet="true"],
body.has-dashboard-shell.browser-mobile-shell .dashboard-main > .listing-detail-lightbox,
body.has-dashboard-shell.browser-mobile-shell .dashboard-main > .due-receipt-action-sheet {
    position: fixed;
    inset: 0;
}

body > .unit-card-sheet,
body > [data-unit-card-sheet="true"] {
    position: fixed;
    inset: 0;
    z-index: 9200;
}

/* Hata bildir butonu — panel overlay'lerinin altında kalır (modal-open ile gizlenir) */

/* Ödeme popup tutar renkleri */
.upay-sheet-context__amount--debt {
    color: #ef4444 !important;
}

.upay-sheet-context__amount--credit {
    color: #22c55e !important;
}

/* İlan lightbox — kullanıcı düzeni */
.listing-detail-lightbox__hint-bar {
    top: -13.48rem;
}

.listing-detail-lightbox__img {
    max-width: min(70%, 580px);
    max-height: min(68vh, calc(100vh - 11rem));
}

.listing-detail-lightbox__close {
    top: 1.65rem;
    right: 1.65rem;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(10, 18, 32, 0.52);
    backdrop-filter: blur(6px);
    color: rgba(241, 245, 249, 0.75);
    font-size: 0.82rem;
}

.dashboard-main > .listing-detail-lightbox {
    z-index: 9300;
}

/* Talep detay — hero üst boşluk, meta grid, scroll */
@media (min-width: 900px) {
    .support-detail-page__meta-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.85rem 1.25rem;
    }

    .support-detail-page__meta-item {
        white-space: nowrap;
    }
}

@media (min-width: 900px) {
    .dashboard-shell--requests-page .dashboard-content--req-detail-v2 {
        display: block;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .dashboard-shell--requests-page .support-detail-page {
        flex: none;
        min-height: auto;
        overflow: visible;
        padding-top: 0.85rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .dashboard-shell--requests-page .support-req-messages {
        flex: none;
        min-height: auto;
        max-height: none;
        overflow: visible;
        overscroll-behavior: auto;
    }
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-detail-page {
    padding-top: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    padding-inline: 0.85rem;
    overflow-x: clip;
}

/* Mobil talep detay v2: tek scroll alani (.dashboard-content), saga-sola 0.85rem padding */
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-content--req-detail-v2 > .support-detail-page {
    margin-left: 0;
    margin-right: 0;
    padding-inline: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-detail-page > .support-detail-page__hero,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-detail-page > .support-req-thread-shell,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-detail-page > .support-req-thread-load-more-wrap,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-detail-page > .support-reply-panel--standalone,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-detail-page > .support-detail-card {
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-req-thread-shell.req-chat-card {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .support-req-thread-load-more-wrap {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .dashboard-shell--requests-page .support-req-thread-shell.req-chat-card {
        flex: none;
        min-height: auto;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .dashboard-shell--requests-page .support-req-thread-shell__head,
    .dashboard-shell--requests-page .support-reply-panel,
    .dashboard-shell--requests-page .req-site-status-panel--thread {
        flex-shrink: 0;
    }
}

.topbar-notification-item.is-filter-hidden {
    display: none !important;
}

@media (max-width: 1024px), (max-height: 900px) {
    body.has-dashboard-shell.browser-mobile-shell .topbar-notification-drawer__panel,
    body.has-dashboard-shell .topbar-notification-drawer__panel {
        width: 100%;
        max-width: 100%;
        border-left: 0;
    }
}

@media (max-width: 768px) {
    .topbar-notification-drawer__panel {
        width: 100%;
        max-width: 100%;
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .topbar-notification-drawer__panel,
    .topbar-notification-drawer__backdrop {
        transition: none !important;
    }
}

.swal2-container {
    z-index: 9600 !important;
}

.req-card__stat-badge .fa-reply {
    transform: scaleX(-1);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar {
    background: linear-gradient(135deg, #03a9f4 0%, #039be5 100%);
    border-bottom: 0;
    box-shadow: none;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .units-period-banner--page-slot,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .units-period-banner--page-slot {
    margin-top: 0;
    border-radius: 0 0 0.88rem 0.88rem;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar .topbar-greet-label,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar .topbar-greet-label,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar .topbar-greet-label,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar .topbar-greet-label,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar .topbar-greet-label,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar .topbar-greet-label,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar .topbar-greet-label,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar .topbar-greet-label,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar .topbar-greet-label,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar .topbar-greet-name,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar .topbar-greet-name,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar .topbar-greet-name,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar .topbar-greet-name,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar .topbar-greet-name,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar .topbar-greet-name,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar .topbar-greet-name,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar .topbar-greet-name,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar .topbar-greet-name {
    color: rgba(240, 249, 255, 0.96);
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar .topbar-back-title__icon {
    background: rgba(255, 255, 255, 0.18);
    color: #f0f9ff;
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar .topbar-back-title {
    color: rgba(240, 249, 255, 0.96);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--requests-page .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar .topbar-back-title__icon {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--firms-page .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--profile-page .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--visitor-log-page .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--cargo-page .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--vehicles-page .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--categories-page .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--community-rules-page .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--surveys-page .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--users-page .dashboard-topbar .header-icon-btn {
    background: rgba(255, 255, 255, 0.16);
    color: #f0f9ff;
}

/* Ekstre: topbar, alttaki bakiye karti ile ayni gradient */
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar {
    background: linear-gradient(135deg, #064e3b 0%, #059669 56%, #22c55e 100%);
    box-shadow: none;
    border-bottom: 0;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 54%, #ef4444 100%);
    box-shadow: none;
    border-bottom: 0;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar {
    background: linear-gradient(135deg, #334155 0%, #64748b 100%);
    box-shadow: none;
    border-bottom: 0;
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-back-title,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-menu-btn {
    color: rgba(240, 249, 255, 0.96);
}

body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-menu-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-back-title__icon,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .header-icon-btn,
body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-menu-btn {
    background: rgba(255, 255, 255, 0.16);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar {
    background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 58%, #bbf7d0 100%);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar {
    background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 58%, #fecaca 100%);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .header-icon-btn,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-menu-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .header-icon-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-menu-btn {
    color: #166534;
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .header-icon-btn,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-menu-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .header-icon-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="advance"] .dashboard-topbar .topbar-menu-btn {
    background: rgba(22, 101, 52, 0.12);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .header-icon-btn,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-menu-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .header-icon-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-menu-btn {
    color: #991b1b;
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .header-icon-btn,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-menu-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .header-icon-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="debt"] .dashboard-topbar .topbar-menu-btn {
    background: rgba(153, 27, 27, 0.12);
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-back-title,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .header-icon-btn,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-menu-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-back-title,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .header-icon-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-menu-btn {
    color: #334155;
}

body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-back-title__icon,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .header-icon-btn,
body.theme-light.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-menu-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-back-title__icon,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .header-icon-btn,
html.theme-light-preload body.has-dashboard-shell.browser-mobile-shell .dashboard-shell--statement-page[data-statement-balance-tone="clear"] .dashboard-topbar .topbar-menu-btn {
    background: rgba(51, 65, 85, 0.1);
}

.profile-apartment-late-fee-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--primary-soft) 52%, var(--surface) 48%);
}

.profile-apartment-late-fee-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.profile-apartment-late-fee-card__head > div {
    display: grid;
    gap: 0.18rem;
}

.profile-apartment-late-fee-card__head strong {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
}

.profile-apartment-late-fee-card__head strong i {
    color: var(--primary);
}

.profile-apartment-late-fee-card__head span {
    color: var(--muted);
    font-size: 0.7rem;
}

.profile-apartment-late-fee-card .settings-cron-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.profile-apartment-late-fee-card .settings-cron-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-apartment-late-fee-card .settings-cron-toggle__ui {
    position: relative;
    display: block;
    width: 2.65rem;
    height: 1.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 30%, var(--surface) 70%);
    transition: background 180ms ease;
}

.profile-apartment-late-fee-card .settings-cron-toggle__ui::after {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    transition: transform 180ms ease;
}

.profile-apartment-late-fee-card .settings-cron-toggle input:checked + .settings-cron-toggle__ui {
    background: var(--primary);
}

.profile-apartment-late-fee-card .settings-cron-toggle input:checked + .settings-cron-toggle__ui::after {
    transform: translateX(1.15rem);
}

