/* Roboto font dosyaları (roboto-fontface) */
@font-face {
    font-family: 'Roboto';
    src: url('/lib/roboto/fonts/roboto/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.flatpickr-calendar {
    z-index: 3000;
}
/* modal/tooltip üstünde kalsın */


@font-face {
    font-family: 'Roboto';
    src: url('/lib/roboto/fonts/roboto/Roboto-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/lib/roboto/fonts/roboto/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --app-font: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
}

html, body {
    font-family: var(--app-font);
}


html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

html, body, .auth-body {
    height: 100%;
}

/* Sayfa arka planı */
body {
    background: #f5f6fb;
}

/* Merkez yerleşim */
.login-center {
    min-height: calc(80dvh - 0px);
    display: grid;
    place-items: center;
    padding: 32px 16px;
    position: relative;
}

/* Kart */
.login-card {
    width: 100%;
    max-width: 520px;
    border: none;
    border-radius: 16px;
}

/* Input görselliği */
.input-group-text {
    background: #fff;
}

/* Mobil uyum */
@media (max-width: 576px) {
    .login-card {
        max-width: 94vw;
    }
}

.sahibinden-user-page {
    --sp-border: rgba(15, 23, 42, 0.08);
    --sp-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --sp-muted: #64748b;
}

.sahibinden-user-hero,
.sahibinden-user-panel,
.sahibinden-user-metric-card,
.sahibinden-user-empty-state {
    border: 1px solid var(--sp-border);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
    box-shadow: var(--sp-shadow);
}

.sahibinden-user-hero {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
}

.sahibinden-user-hero-copy {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.sahibinden-user-hero-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #b40101, #dd6b43);
    box-shadow: 0 16px 30px rgba(180, 1, 1, 0.18);
}

.sahibinden-user-eyebrow,
.sahibinden-user-section-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .76rem;
    font-weight: 700;
    color: #b40101;
}

.sahibinden-user-title {
    margin: .35rem 0 .4rem;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #0f172a;
}

.sahibinden-user-subtitle {
    max-width: 52rem;
    color: var(--sp-muted);
}

.sahibinden-user-hero-meta {
    display: grid;
    gap: .6rem;
    justify-items: end;
    text-align: right;
}

.sahibinden-user-metric-card {
    display: grid;
    gap: .35rem;
    padding: 1.2rem 1.1rem;
    height: 100%;
}

.sahibinden-user-metric-card.is-danger {
    border-color: rgba(91, 43, 130, 0.18);
    background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
}

.sahibinden-user-metric-card.is-success {
    border-color: rgba(22, 163, 74, 0.16);
}

.sahibinden-user-metric-label {
    color: var(--sp-muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.sahibinden-user-metric-value {
    color: #111827;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
}

.sahibinden-user-metric-meta {
    color: var(--sp-muted);
    font-size: .88rem;
}

.sahibinden-user-panel {
    overflow: hidden;
}

.sahibinden-user-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem 1rem;
}

.sahibinden-user-table {
    margin-bottom: 0;
}

.sahibinden-user-table thead th {
    color: #475569;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom-width: 1px;
}

.sahibinden-user-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.sahibinden-user-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.92);
}

.sahibinden-user-empty-state {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
}

.sahibinden-user-empty-state.is-success {
    background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
}

.sahibinden-user-empty-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b40101;
    background: rgba(180, 1, 1, 0.08);
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .sahibinden-user-hero,
    .sahibinden-user-panel-head,
    .sahibinden-user-bulk-bar {
        flex-direction: column;
    }

    .sahibinden-user-hero-meta {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .sahibinden-user-hero,
    .sahibinden-user-panel-head,
    .sahibinden-user-bulk-bar,
    .sahibinden-user-empty-state {
        padding-inline: 1rem;
    }

    .sahibinden-user-hero-copy {
        flex-direction: column;
    }

    .sahibinden-user-title {
        font-size: 1.55rem;
    }
}
/* Hover sadece >=lg */
.footer-light a:hover {
    color: #0d6efd; /* Bootstrap primary rengi */
}

.manage-shell {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.manage-sidebar-card,
.manage-content-card {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.92));
    border: 1px solid rgba(180,1,1,.08);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, .08);
}

.manage-sidebar-card {
    padding: 28px 20px 20px;
    position: sticky;
    top: 88px;
}

.manage-profile-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.manage-profile-avatar-wrap {
    display: flex;
    justify-content: center;
}

.manage-profile-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(17, 24, 39, .14);
}

.manage-profile-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #b40101, #dd6b43);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.manage-profile-meta {
    text-align: center;
}

.manage-profile-eyebrow,
.manage-content-eyebrow,
.manage-nav-title {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    font-weight: 700;
}

.manage-profile-eyebrow,
.manage-content-eyebrow {
    color: #b40101;
}

.manage-profile-name {
    margin: 10px 0 6px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #1f2937;
}

.manage-profile-email {
    color: #6b7280;
    font-size: .98rem;
    word-break: break-word;
}

.manage-sidebar-nav {
    border-top: 1px solid rgba(148, 163, 184, .2);
    padding-top: 18px;
}

.manage-nav {
    display: grid;
    gap: 18px;
}

.manage-nav-section {
    display: grid;
    gap: 10px;
}

.manage-nav-title {
    color: #9ca3af;
    padding: 0 8px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0;
}

.manage-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.manage-nav-item {
    margin: 0;
}

.manage-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.manage-nav-link:hover {
    color: #8f1d0a;
    background: rgba(180,1,1,.06);
    transform: translateX(2px);
}

.manage-nav-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f7f7f8;
    color: #4b5563;
    flex: 0 0 38px;
}

.manage-nav-item.active .manage-nav-link {
    color: #8f1d0a;
    background: linear-gradient(135deg, rgba(180,1,1,.14), rgba(221,107,67,.08));
    box-shadow: inset 0 0 0 1px rgba(180,1,1,.16);
}

.manage-nav-item.active .manage-nav-icon {
    background: linear-gradient(135deg, #b40101, #dd6b43);
    color: #fff;
    box-shadow: 0 14px 24px rgba(180,1,1,.18);
}

.manage-content-card {
    padding: 30px 32px 34px;
    min-width: 0;
}

.manage-content-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    padding-bottom: 22px;
    margin-bottom: 28px;
}

.manage-content-title {
    margin: 6px 0 0;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.05;
    font-weight: 800;
    color: #111827;
}

.manage-content-subtitle {
    max-width: 460px;
    margin: 0;
    color: #64748b;
    font-size: 1.02rem;
}

.manage-content-body {
    min-width: 0;
}

.profile-roadmap .card-title {
    color: #111827;
    font-weight: 800;
}

.profile-panel-card {
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08) !important;
}

.account-settings-shell {
    display: grid;
    gap: 24px;
}

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

.account-settings-stat {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, .16);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
    box-shadow: 0 14px 32px rgba(15, 23, 42, .05);
    display: grid;
    gap: 6px;
}

.account-settings-stat-label,
.account-settings-eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 700;
    color: #94a3b8;
}

.account-settings-stat-value {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.account-settings-tabs {
    border: none;
    row-gap: 10px;
    padding-bottom: 4px;
}

.account-settings-tabs .nav-item {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

.account-settings-tabs .nav-link {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(255,255,255,.78);
    border-radius: 22px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}

.account-settings-tabs .nav-link span:last-child {
    display: grid;
    gap: 2px;
    text-align: left;
}

.account-settings-tabs .nav-link strong {
    font-size: .98rem;
    font-weight: 700;
}

.account-settings-tabs .nav-link small {
    font-size: .78rem;
    color: #64748b;
}

.account-settings-tabs .nav-link.active {
    border-color: rgba(180,1,1,.2);
    background: linear-gradient(135deg, rgba(180,1,1,.1), rgba(255,255,255,.98));
    color: #8f1d0a;
}

.account-settings-tab-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #f8fafc;
    color: #475569;
    flex: 0 0 42px;
}

.account-settings-tabs .nav-link.active .account-settings-tab-icon {
    background: linear-gradient(135deg, #b40101, #dd6b43);
    color: #fff;
    box-shadow: 0 12px 22px rgba(180,1,1,.18);
}

.account-settings-panel {
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, .16);
    background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,250,252,.94));
    box-shadow: 0 20px 46px rgba(15, 23, 42, .06);
}

.account-settings-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.account-settings-panel-title {
    margin: 8px 0 8px;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -.02em;
}

.account-settings-panel-text {
    margin: 0;
    max-width: 700px;
    color: #64748b;
    line-height: 1.7;
}

.account-settings-readonly,
.account-settings-field {
    display: grid;
    gap: 8px;
}

.account-settings-readonly .input-group-text,
.account-settings-field .input-group-text {
    border-color: rgba(148, 163, 184, .16);
    background: #f8fafc;
}

.account-settings-readonly .form-control,
.account-settings-field .form-control {
    border-color: rgba(148, 163, 184, .16);
    min-height: 48px;
}

.account-settings-readonly .form-control:disabled {
    background: #fff;
    color: #334155;
}

.account-settings-submit,
.account-settings-secondary {
    border-radius: 16px;
    padding: .82rem 1.1rem;
    font-weight: 700;
}

.account-settings-submit {
    box-shadow: 0 16px 30px rgba(13, 110, 253, .12);
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    padding: .46rem .82rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
}

.profile-status-badge-success {
    color: #166534;
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .22);
}

.profile-status-badge-warm {
    color: #b45309;
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .22);
}

.profile-status-badge-primary {
    color: #8f1d0a;
    background: rgba(180,1,1,.08);
    border-color: rgba(180,1,1,.16);
}

.profile-mini-stat {
    height: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    background: #faf7f6;
    border: 1px solid rgba(180,1,1,.08);
}

.profile-mini-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
}

.profile-mini-label {
    margin-top: 4px;
    color: #6b7280;
    font-size: .88rem;
}

.profile-progress-lg,
.profile-progress-md,
.profile-progress-sm {
    border-radius: 999px;
    overflow: hidden;
    background: #edf1f5;
}

.profile-progress-lg .progress-bar,
.profile-progress-md .progress-bar,
.profile-progress-sm .progress-bar {
    background: linear-gradient(90deg, #b40101, #dd6b43);
}

.profile-inline-alert {
    border: 1px solid rgba(148, 163, 184, .2);
    background: #f8fafc;
    border-radius: 18px;
}

.profile-inline-alert-success {
    background: rgba(34, 197, 94, .08);
    border-color: rgba(34, 197, 94, .18);
}

.profile-divider {
    margin: 18px 0;
    color: rgba(148, 163, 184, .28);
}

.profile-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.profile-note {
    color: #64748b;
    line-height: 1.6;
}

.profile-activity-card {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: linear-gradient(180deg, #fff, #fbfbfc);
}

.profile-activity-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

@media (max-width: 991.98px) {
    .manage-shell {
        grid-template-columns: 1fr;
    }

    .manage-sidebar-card {
        position: static;
        padding: 20px 16px 16px;
    }

    .manage-content-card {
        padding: 24px 20px 24px;
    }

    .manage-content-header {
        flex-direction: column;
        align-items: start;
    }

    .manage-profile-head {
        gap: 12px;
        margin-bottom: 18px;
    }

    .manage-profile-avatar,
    .manage-profile-avatar-fallback {
        width: 82px;
        height: 82px;
    }

    .manage-nav {
        gap: 14px;
    }

    .manage-nav-section {
        gap: 8px;
    }

    .manage-nav-title {
        font-size: .68rem;
        letter-spacing: .12em;
        padding: 0 6px;
    }

    .manage-nav-list {
        gap: 4px;
    }

    .manage-nav-link {
        padding: 9px 10px;
        gap: 10px;
        border-radius: 14px;
        font-size: .95rem;
    }

    .manage-nav-icon {
        width: 32px;
        height: 32px;
        border-radius: 11px;
        flex-basis: 32px;
        font-size: .9rem;
    }

    .account-settings-summary {
        grid-template-columns: 1fr;
    }

    .account-settings-tabs {
        margin-bottom: 18px !important;
    }

    .account-settings-tabs .nav-item {
        width: 100%;
    }

    .account-settings-tabs .nav-link {
        padding: 14px 16px;
    }

    .account-settings-panel {
        padding: 22px 18px;
    }

    .account-settings-panel-head {
        flex-direction: column;
        margin-bottom: 18px;
    }
}

@media (max-width: 575.98px) {
    .manage-sidebar-card,
    .manage-content-card,
    .profile-panel-card,
    .account-settings-panel {
        border-radius: 22px;
    }

    .manage-profile-name {
        font-size: 1.15rem;
    }

    .manage-nav-link {
        padding: 8px 9px;
        gap: 9px;
        border-radius: 12px;
        font-size: .92rem;
    }

    .manage-nav-icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
        flex-basis: 28px;
        font-size: .82rem;
    }

    .manage-nav {
        gap: 10px;
    }

    .manage-nav-section {
        gap: 6px;
    }

    .manage-nav-list {
        gap: 3px;
    }

    .manage-nav-title {
        font-size: .64rem;
        padding: 0 4px;
    }

    .manage-sidebar-nav {
        padding-top: 14px;
    }

    .manage-profile-email {
        font-size: .9rem;
    }

}

.show-password-btn {
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
}

/* OTP kutuları */
.otp-group {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .02em;
    border: 1.5px solid #ced4da;
    border-radius: .5rem;
    outline: none;
    transition: .15s border-color, .15s box-shadow;
}

    .otp-input:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 .25rem rgba(13,110,253,.15);
    }

.otp-gap {
    width: .75rem;
}

/* Recovery input görünümü */
.otp-recovery {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
}
/* NAVBAR USER — temiz sürüm */
.nv-user {
    margin-left: auto;
}

    /* Bootstrap caret ve link stili kapat */
    .nv-user .dropdown-toggle {
        border: 0;
        background: transparent;
        text-decoration: none !important;
    }

        .nv-user .dropdown-toggle::after {
            display: none;
        }

/* Buton görünümü */
.nv-user-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .7rem;
    border-radius: 999px;
    background: rgba(13,110,253,.08) !important;
    color: var(--bs-primary) !important;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}

    .nv-user-btn:hover {
        background: rgba(13,110,253,.12);
        box-shadow: 0 6px 18px rgba(13,110,253,.18);
        text-decoration: none;
    }

    .nv-user-btn:active {
        transform: translateY(1px);
    }

    .nv-user-btn.show,
    .nv-user-btn[aria-expanded="true"] {
        background: rgba(13,110,253,.16);
        box-shadow: 0 8px 20px rgba(13,110,253,.22);
    }

/* Avatar ve metin */
.nv-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: .85rem;
    color: #fff;
    background: var(--bs-primary);
}

.nv-name {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width:576px) {
    .nv-name {
        display: none;
    }
}
/* mobilde sadece avatar + caret */

/* Caret (tek ok) */
.nv-caret {
    opacity: .7;
    margin-left: .15rem;
    transform: translateY(1px);
}

.nv-user-btn[aria-expanded="true"] .nv-caret {
    opacity: 1;
    transform: rotate(180deg) translateY(-1px);
}

/* Menü: konum ve stil */
.nv-user .dropdown-menu {
    margin-top: .5rem;
}

.nv-menu.dropdown-menu {
    --bs-dropdown-min-width: 240px;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.14);
    padding: .5rem;
}

.nv-menu .dropdown-header {
    font-size: .9rem;
    padding: .5rem .75rem .25rem;
    color: var(--bs-secondary-color);
}

.nv-menu .profile-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem .75rem .6rem;
}

    .nv-menu .profile-row .nv-avatar {
        width: 38px;
        height: 38px;
    }

    .nv-menu .profile-row .meta {
        line-height: 1.1;
    }

        .nv-menu .profile-row .meta .u {
            font-weight: 600;
        }

.nv-menu .dropdown-item {
    border-radius: .65rem;
    padding: .55rem .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .nv-menu .dropdown-item:hover {
        background: rgba(13,110,253,.08);
    }

.nv-menu .danger {
    color: var(--bs-danger);
}

.nv-divider {
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: .35rem .5rem;
    border: 0;
}

/* Çıkış/Giriş butonları (oturum yokken) */
.nv-auth a.btn {
    border-radius: 999px;
    padding: .35rem .9rem;
}
/* RED */
.glow-red {
    font-weight: 600;
    background: linear-gradient( 90deg, #ff2a2a, #ff5353, #ff8c8c, #ff5353, #ff2a2a );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glowSlide 3.5s linear infinite;
}

/* GOLD — parlak */
.glow-gold {
    font-weight: 600;
    background: linear-gradient( 90deg, #ffca28, #ffe066, #fff19c, #ffe066, #ffca28 );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glowSlide 3.5s linear infinite;
}

/* GREEN — neon */
.glow-green {
    font-weight: 600;
    background: linear-gradient( 90deg, #21e36b, #56f797, #94ffbe, #56f797, #21e36b );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glowSlide 3.5s linear infinite;
}

.role-badge {
    -webkit-text-fill-color: initial !important;
    background: none !important;
    text-shadow: none !important;
}


.glow-red-shadow {
    text-shadow: 0 0 6px rgba(255,60,60,.4);
}

.glow-gold-shadow {
    text-shadow: 0 0 6px rgba(255,220,120,.45);
}

.glow-green-shadow {
    text-shadow: 0 0 6px rgba(60,255,160,.4);
}


.glow-red,
.glow-gold,
.glow-green {
    animation: glowSlide 6s ease-in-out infinite;
    background-size: 250% 100%;
}


@keyframes glowSlide {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* HOMEPAGE */
/* === HERO alanı === */
.hero-wrap {
    padding: 3rem 0 2rem;
}

/* Görsel yapısı */
.hero-image-wrapper {
    max-width: 520px;
}

.hero-image-frame {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        max-width: 100%;
    }
}

/* Başlık ve açıklama */
.hero-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient( 92deg, #111, #c1121f 30%, /* ana kırmızı */
    #ff4d4d 65%, /* vurgu kırmızısı */
    #111 );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--bs-secondary-color);
    font-size: 1.15rem;
}

/* Yumuşak rozet */
.badge-soft {
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* CTA düğmeleri */
.hero-cta .btn-lg {
    padding: 0.8rem 1.2rem;
}

/* HERO figürü (isteğe bağlı dekoratif alan) */
.hero-figure {
    position: relative;
    border-radius: 1rem;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 25px 60px rgba(13, 110, 253, 0.15), 0 8px 30px rgba(0, 0, 0, 0.08);
    background: radial-gradient(1200px 400px at -10% -20%, rgba(13, 110, 253, 0.12), transparent 40%), radial-gradient(800px 300px at 120% 120%, rgba(184, 107, 255, 0.12), transparent 40%), var(--bs-body-bg);
    overflow: hidden;
}

    .hero-figure img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .hero-figure .glow {
        position: absolute;
        inset: -20%;
        background: radial-gradient(closest-side, rgba(13, 110, 253, 0.1), transparent 70%);
        filter: blur(18px);
        pointer-events: none;
        mix-blend-mode: screen;
    }

.stat-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* === Bölümler === */
.section {
    padding: 2.5rem 0;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

    .section-head .lead {
        margin: 0;
        color: var(--bs-secondary-color);
    }

/* Kart tipi bölümler */
.card-ghost {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ==== FAQ base ==== */
.faq .accordion-item {
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
    overflow: hidden;
    transition: box-shadow .15s, border-color .15s;
}

    .faq .accordion-item + .accordion-item {
        margin-top: .75rem;
    }

.faq .accordion-button {
    padding: .875rem 1rem;
    font-weight: 600;
    color: var(--bs-body-color);
    background: transparent;
}

    .faq .accordion-button .faq-q-text {
        letter-spacing: .1px;
    }

    .faq .accordion-button:not(.collapsed) {
        background: rgba(var(--bs-primary-rgb), .06);
        border-bottom: 1px solid var(--bs-border-color);
    }

    .faq .accordion-button::after {
        transform: rotate(0);
        transition: transform .15s;
    }

    .faq .accordion-button:not(.collapsed)::after {
        transform: rotate(180deg);
    }

.faq .accordion-body {
    padding: 1rem 1.125rem;
    color: var(--bs-secondary-color);
    line-height: 1.7;
}

.faq .accordion-item:hover {
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.04);
}

/* Soru index rozeti */
.faq .faq-index {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    font-weight: 600;
    font-size: .8rem;
    margin-right: .5rem;
    flex: 0 0 28px;
}

/* ==== Responsive ==== */
/* XS–SM: daha büyük dokunma alanı, daha az boşluk, küçük rozet */
@media (max-width: 576px) {
    .faq .accordion-item + .accordion-item {
        margin-top: .5rem;
    }

    .faq .accordion-button {
        padding: .75rem .875rem;
        font-size: .95rem;
    }

    .faq .accordion-body {
        padding: .75rem .875rem;
        font-size: .95rem;
        line-height: 1.65;
    }

    .faq .faq-index {
        width: 24px;
        height: 24px;
        font-size: .75rem;
        margin-right: .5rem;
        flex-basis: 24px;
    }
}

/* MD: varsayılan iyi, ufak iyileştirme */
@media (min-width: 577px) and (max-width: 991.98px) {
    .faq .accordion-button {
        padding: .8rem 1rem;
    }

    .faq .accordion-body {
        padding: .9rem 1.1rem;
    }
}

/* LG+: daha ferah görünüm */
@media (min-width: 992px) {
    .faq .accordion-item + .accordion-item {
        margin-top: 1rem;
    }

    .faq .accordion-button {
        padding: 1rem 1.25rem;
    }

    .faq .accordion-body {
        padding: 1rem 1.25rem;
    }
}

/* Erişilebilirlik: klavye odağı belirgin */
.faq .accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15);
}

/* === KWin home design-system refresh === */
.kw-home-page {
    --kw-home-bg: #fafaf9;
    --kw-home-surface: #ffffff;
    --kw-home-surface-alt: #f5f5f4;
    --kw-home-border: #e7e5e4;
    --kw-home-text: #0c0a09;
    --kw-home-muted: #57534e;
    --kw-home-faint: #a8a29e;
}

.kw-home-page .hero-wrap {
    padding-top: clamp(24px, 4vw, 48px);
    padding-bottom: clamp(20px, 3vw, 36px);
}

.kw-home-page .kw-home-hero-copy {
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid var(--kw-home-border);
    border-radius: 16px;
    background: var(--kw-home-surface);
    box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 48px -32px rgba(28,25,23,.32);
}

.kw-home-page .hero-title {
    max-width: 12ch;
    background: none;
    color: var(--kw-home-text);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.04;
}

.kw-home-page .hero-title::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    margin-top: 18px;
    border-radius: 999px;
    background: var(--bs-primary);
}

.kw-home-page .hero-sub {
    max-width: 58ch;
    color: var(--kw-home-muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.kw-home-page .badge-soft {
    border-color: var(--bs-primary-border-subtle);
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    border-radius: 8px;
    font-size: .83rem;
}

.kw-home-page .hero-cta .btn {
    border-radius: 10px;
    font-weight: 600;
    box-shadow: none;
}

.kw-home-page .btn-primary {
    box-shadow: 0 10px 22px -16px rgba(var(--bs-primary-rgb), .65);
}

.kw-home-page .kw-home-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.kw-home-page .kw-home-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--kw-home-border);
    border-radius: 11px;
    background: var(--kw-home-surface-alt);
    color: var(--kw-home-text);
    font-size: .93rem;
}

.kw-home-page .kw-home-feature-item i {
    width: 22px;
    text-align: center;
    color: var(--bs-primary);
}

.kw-home-page .hero-image-wrapper {
    max-width: 500px;
}

.kw-home-page .hero-image-frame {
    border-color: var(--kw-home-border);
    border-radius: 16px;
    box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 24px 56px -34px rgba(28,25,23,.38);
}

.kw-home-page .hero-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.kw-home-page .section {
    padding: 2rem 0;
}

.kw-home-page .kw-home-section-head {
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--kw-home-border);
}

.kw-home-page .kw-home-section-head i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--bs-primary-border-subtle);
    border-radius: 10px;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary) !important;
}

.kw-home-page .kw-home-section-head h4 {
    color: var(--bs-primary);
    font-size: 1rem;
    font-weight: 700;
}

.kw-home-page .kw-home-section-head .lead {
    color: var(--kw-home-muted);
    font-size: .92rem;
}

.kw-home-page .faq .accordion-item {
    border-color: var(--kw-home-border);
    border-radius: 11px;
    background: var(--kw-home-surface);
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.kw-home-page .faq .accordion-item:hover {
    border-color: var(--bs-primary-border-subtle);
    box-shadow: 0 8px 24px -20px rgba(28,25,23,.42);
}

.kw-home-page .faq .accordion-button {
    color: var(--kw-home-text);
}

.kw-home-page .card-ghost {
    border-color: var(--kw-home-border);
    border-radius: 14px;
    background: var(--kw-home-surface);
    box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 1px 2px rgba(28,25,23,.04);
}

@media (max-width: 991.98px) {
    .kw-home-page .kw-home-hero-copy {
        border-radius: 18px;
    }

    .kw-home-page .hero-title {
        max-width: none;
    }

    .kw-home-page .kw-home-feature-list {
        grid-template-columns: 1fr;
    }
}


/* === Blog Yazıları === */
.post-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.8rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.post-body {
    padding: 1rem;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}

/* blog.css veya site.css */

.searchbar .form-control {
    border-right: 0;
}

.searchbar .btn-outline-secondary {
    border-left: 0;
}

    .searchbar .btn-outline-secondary:focus,
    .searchbar .btn-outline-secondary:hover {
        background: transparent;
    }

.cat-strip {
    z-index: 1010;
}
    /* içerikte sabit kalır */
    .cat-strip .chip {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .375rem .75rem;
        border: 1px solid var(--bs-border-color);
        border-radius: 999px;
        color: var(--bs-body-color);
        text-decoration: none;
        background: var(--bs-body-bg);
        white-space: nowrap;
        transition: .15s ease;
    }

        .cat-strip .chip:hover {
            background: #fafafa;
        }

    .cat-strip .chip-active {
        border-color: var(--bs-primary);
        color: var(--bs-primary);
        background: #fff;
    }

.card .text-secondary {
    color: var(--bs-secondary-color) !important;
}

/* === CARD =============================================================== */
.blog-card-thumb {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    border-radius: .75rem
}

.blog-card {
    transition: transform .15s ease,box-shadow .15s ease
}

    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.08)
    }

    .blog-card .card-body {
        background: var(--bs-body-bg)
    }

    .blog-card .category-link:hover {
        color: var(--bs-primary)
    }

.object-fit-cover {
    object-fit: cover
}

/* === REACTIONS ========================================================== */
.rxbar {
    display: flex;
    gap: .5rem;
    align-items: center
}

.rxbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .375rem .625rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: 999px;
    font-size: .95rem;
    line-height: 1;
    transition: border-color .15s,box-shadow .15s,background .15s,transform .1s
}

    .rxbtn:hover {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 .15rem rgba(var(--bs-primary-rgb),.08)
    }

    .rxbtn.is-active {
        background: var(--bs-primary);
        color: #fff;
        border-color: var(--bs-primary)
    }

    .rxbtn:disabled {
        opacity: .6;
        cursor: not-allowed
    }

.rx-emoji {
    font-size: 1rem;
    transform: translateY(-.5px)
}

.rx-count {
    font-variant-numeric: tabular-nums
}

    .rx-count.bump {
        animation: rx-bump .18s ease
    }

@keyframes rx-bump {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.2)
    }

    100% {
        transform: scale(1)
    }
}

/* === COMMENTS =========================================================== */
/* Form */
.cmt-form .form-control {
    border-radius: .75rem
}

.cmt-replyinfo {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem .625rem;
    border-radius: .75rem;
    border: 1px solid var(--bs-border-color);
    background: #f8fbff;
    margin-bottom: .5rem
}

/* Ağaç */
.cmt-tree {
    position: relative;
    padding-bottom: 1rem;
}

.cmt {
    position: relative;
    padding-top: .25rem
}
/* Sadece çocuk kapsayıcı çizgi; eski ::before çizgisi yok */
.cmt-children {
    border-left: 2px solid var(--bs-border-color);
    margin-left: 12px;
    padding-left: 12px
}

    .cmt-children.is-collapsed {
        display: none
    }

/* Kartlar */
.cmt-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-light);
    color: var(--bs-secondary-color);
    flex: 0 0 auto;
    border: 1px solid var(--bs-border-color)
}

.cmt-head strong {
    font-weight: 600
}

.cmt-body {
    margin-top: .375rem;
    padding: .625rem .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: #fff;
    color: var(--bs-body-color);
    box-shadow: 0 1px 0 rgba(0,0,0,.02)
}

.cmt-toggle, .cmt-reply {
    color: var(--bs-secondary-color)
}

    .cmt-toggle:hover, .cmt-reply:hover {
        color: var(--bs-primary);
        text-decoration: none
    }

/* === PROSE (Markdown) =================================================== */
.prose {
    line-height: 1.75
}

    .prose img {
        max-width: 100%;
        height: auto;
        border-radius: .75rem
    }

    .prose table {
        width: 100%;
        border-collapse: collapse;
        margin: .75rem 0
    }

    .prose th, .prose td {
        border: 1px solid var(--bs-border-color);
        padding: .5rem .625rem
    }

    .prose thead th {
        background: #f7f7f7
    }

    .prose code, .prose pre {
        font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace
    }

    .prose blockquote {
        padding: .5rem .75rem;
        margin: .75rem 0;
        border-left: 3px solid var(--bs-border-color);
        color: var(--bs-secondary-color);
        background: #fafafa;
        border-radius: .25rem
    }

    /* Markdown grid yardımcıları (HTML izinliyse) */
    .prose .grid {
        display: grid;
        gap: 1rem
    }

    .prose .grid-cols-1 {
        grid-template-columns: 1fr
    }

    .prose .grid-cols-2 {
        grid-template-columns: repeat(2,1fr)
    }

    .prose .grid-cols-3 {
        grid-template-columns: repeat(3,1fr)
    }

    .prose .grid-cols-4 {
        grid-template-columns: repeat(4,1fr)
    }

@media (max-width:768px) {
    .prose .grid-cols-4 {
        grid-template-columns: repeat(2,1fr)
    }

    .prose .grid-cols-3 {
        grid-template-columns: repeat(2,1fr)
    }
}

/* === GENEL ============================================================= */
a {
    text-underline-offset: 2px
}

    a:hover {
        text-decoration: underline
    }

/* === DUA ============================================================== */
.dua-summary-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
}

.dua-summary-metric {
    padding: .75rem 1rem;
    border-radius: .75rem;
    background-color: var(--bs-light);
}

.dua-card {
    border-radius: 1.25rem;
}

.dua-history-card {
    border-radius: 1.25rem;
}

.dua-form .form-floating > label {
    font-size: .85rem;
}

.dua-input-money,
.dua-input-percent,
.dua-input-ratio {
    text-align: right;
}
/* İlk üç tile için renkli istatistik görünümü */
.dua-tile {
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    color: #fff;
    box-shadow: 0 .25rem .8rem rgba(15, 23, 42, .20);
}

.dua-tile-label {
    font-size: .78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
    opacity: .9;
}

.dua-tile-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: .25rem;
}

/* Renk temaları */
.dua-tile-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
}

.dua-tile-magenta {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.dua-tile-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}
/* Alt 4 metrik için renksiz kart */
.dua-tile-plain {
    background: #ffffff;
    border-radius: 1rem;
    padding: .9rem 1rem;
    box-shadow: 0 .25rem .8rem rgba(0, 0, 0, .08);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.dua-tile-plain-label {
    font-size: .80rem;
    font-weight: 500;
    color: #6b7280; /* gri */
    margin-bottom: .25rem;
}

.dua-tile-plain-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827; /* koyu gri */
}
.dua-info-modal {
    border-radius: 1.25rem;
}

.dua-info-section h6 {
    font-size: .95rem;
}

.dua-info-section .table {
    margin-bottom: 0;
}

.dua-info-section .table td {
    padding: .35rem .5rem;
    font-size: .85rem;
}
.dua-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dua-tile-subtext {
    font-size: .8rem;
    margin-top: .25rem;
}

/* PROFILE LOYALTY */
.loyalty-summary-card {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, .05);
    background: radial-gradient(circle at top left, rgba(255, 215, 0, .18), transparent 55%), #fff;
}

.loyalty-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, .12);
    color: #f59f00;
}

.loyalty-chip {
    border-radius: 999px;
    padding: .25rem .75rem;
    font-size: .8rem;
}

.pending-holds-popover {
    min-width: 240px;
}

    .pending-holds-popover .pending-item:last-child {
        margin-bottom: 0;
    }

.loyalty-history-card {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, .04);
    overflow: hidden;
}

    .loyalty-history-card .card-header {
        border-bottom: 0;
    }

.loyalty-history-badge {
    border-radius: 999px;
    padding: .25rem .75rem;
    font-size: .8rem;
}

.loyalty-table-wrapper {
    width: 100%;
}

.loyalty-table th,
.loyalty-table td {
    vertical-align: middle;
}

.loyalty-table thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.loyalty-table tbody tr:hover {
    background-color: rgba(0, 0, 0, .015);
}

.loyalty-table .date-cell {
    white-space: nowrap;
    font-size: .8rem;
    color: #6c757d;
}

.loyalty-table .reason-cell {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

.amount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    font-size: .85rem;
    padding: .55rem .7rem;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 600;
}

    .amount-badge i {
        font-size: .7rem;
    }

.loyalty-mobile-item {
    border-radius: 1rem;
    transition: all .15s ease;
}

    .loyalty-mobile-item:hover {
        box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .06);
    }

.loyalty-mobile-reason {
    line-height: 1.45;
    word-break: break-word;
    color: #212529;
}

#loyaltyPagination {
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .loyalty-history-card .card-header {
        padding-bottom: .75rem !important;
    }

    .loyalty-history-badge {
        font-size: .75rem;
    }

    .amount-badge {
        font-size: .8rem;
        padding: .45rem .65rem;
    }

    .loyalty-mobile-item {
        padding: .9rem !important;
    }

    .loyalty-mobile-reason {
        font-size: .9rem;
    }
}
/* Profile Loyalty Ends */
/* Profil R1 Transactions start */
/* Grid / tablo genel görünüm iyileştirmeleri */
.table-nowrap th,
.table-nowrap td {
    white-space: nowrap;
}

.kw-table thead th {
    background-color: #f5f6fb;
    border-bottom: 1px solid #e3e6ef;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    color: #6c757d;
}

.kw-table tbody tr:nth-child(even) {
    background-color: #fcfcff;
}

.kw-table tbody tr:hover {
    background-color: #f1f4ff;
}

.kw-table th,
.kw-table td {
    border-top: 1px solid #edf0f5;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    vertical-align: middle;
}

    .kw-table td.text-end {
        font-variant-numeric: tabular-nums; /* sayılar düzgün kolonlanır */
    }

/* Kart içindeki tablo kutusu ile kart arasına biraz boşluk */
.card .table-responsive {
    margin-bottom: 0;
}
.kw-switch-lg.form-check.form-switch .form-check-input {
    width: 3rem;
    height: 1.6rem;
    cursor: pointer;
}

.kw-switch-lg.form-check.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(76, 111, 255, 0.25);
}

.kw-switch-lg.form-check.form-switch .form-check-input:checked {
    background-color: #4c6fff;
    border-color: #4c6fff;
}
/* Profile r1 transactions end */
.profile-transactions-card {
    border-radius: 28px !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08) !important;
}

.profile-transactions-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
}

.profile-transactions-table tbody td {
    transition: background-color .18s ease;
}

@media (max-width: 767.98px) {
    .profile-transactions-table-wrap {
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .profile-transactions-table thead {
        display: none;
    }

    .profile-transactions-table,
    .profile-transactions-table tbody,
    .profile-transactions-table tr,
    .profile-transactions-table td {
        display: block;
        width: 100%;
    }

    .profile-transactions-table tbody {
        display: grid;
        gap: 12px;
    }

    .profile-transactions-table tbody tr {
        padding: 14px;
        border: 1px solid rgba(148, 163, 184, .18);
        border-radius: 18px;
        background: linear-gradient(180deg, #fff, #fbfbfc);
        box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    }

    .profile-transactions-table tbody td {
        border: 0;
        padding: 0 0 10px;
        text-align: left !important;
        white-space: normal;
    }

    .profile-transactions-table tbody td:last-child {
        padding-bottom: 0;
    }

    .profile-transactions-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #9ca3af;
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .profile-transactions-table tbody td .badge {
        margin-bottom: 0 !important;
    }

    .profile-transactions-table tbody td[data-label="Tür / Portföy"] .d-flex {
        gap: 4px;
        align-items: flex-start !important;
    }
}

/* Okunabilirlik için beyaz soft overlay */
/* sadece Home */
body.home-bg {
    position: relative;
    background: #f6f7fb; /* placeholder */
}

/* Arka plan layer: başlangıçta görünmez */
body.home-bg::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: center top / cover no-repeat;
    opacity: 0;
    transition: opacity .25s ease-out;
    will-change: opacity;
}

/* Beyaz overlay layer */
body.home-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(255,255,255,.85);
    pointer-events: none;
}

/* Görsel yüklendiğinde: arka planı set et + fade-in */
body.home-bg.bg-loaded::after {
    background-image: var(--home-bg-url);
    opacity: 1;
}

@media (max-width: 767.98px) {
    body.home-bg {
        background-image: none !important;
    }

        body.home-bg::before {
            background: transparent !important;
        }
}

/* ============ FOOTER (KW) ============ */
.kw-footer {
    background: #f8f9fa;
    color: #111;
    text-align: center;
}

.kw-footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
}

.kw-footer-logo {
    height: 52px;
    width: auto;
    display: block;
}

.kw-footer-copy {
    font-size: 1rem;
}

.kw-footer-grid {
    max-width: 1100px;
    margin-inline: auto;
}

.kw-footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

.kw-footer-head {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: .7rem;
}

.kw-footer-text {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 48ch;
    margin-inline: auto;
}

.kw-footer-links {
    display: grid;
    justify-items: center;
    gap: .55rem;
}

.kw-footer-link {
    display: inline-block;
    font-size: 1rem;
    padding: .3rem .25rem;
    text-decoration: none;
    color: var(--bs-secondary-color);
}

    .kw-footer-link:hover {
        color: var(--bs-primary);
        text-decoration: underline;
        text-underline-offset: 4px;
    }

.kw-footer-meta {
    display: grid;
    justify-items: center;
    gap: .65rem;
}

.kw-footer-meta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--bs-secondary-color);
    font-size: 1rem;
}

    .kw-footer-meta-link i {
        width: 20px;
        text-align: center;
        color: var(--bs-primary);
    }

    .kw-footer-meta-link:hover {
        color: var(--bs-primary);
    }

.kw-footer-hr {
    opacity: .6;
    border-color: var(--bs-border-color);
}

.kw-footer-bottom {
    font-size: .95rem;
}

.kw-footer-powered {
    font-weight: 800;
    text-decoration: none;
    color: inherit;
}

    .kw-footer-powered:hover {
        color: var(--bs-primary);
        text-decoration: underline;
        text-underline-offset: 4px;
    }

.kw-footer-heart {
    color: var(--bs-danger);
}

/* Mobilde biraz daha sıkı */
@media (max-width: 575.98px) {
    .kw-footer-logo {
        height: 46px;
    }

    .kw-footer-head {
        font-size: 1.02rem;
    }

    .kw-footer-text, .kw-footer-link, .kw-footer-meta-link {
        font-size: .98rem;
    }
}
.top20-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    font-weight: 600;
    letter-spacing: .2px;
    color: #fff;
    background: linear-gradient(135deg,#B40101,#111827);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.10);
}

/* Desktop polish */
.orders-table thead th {
    border-bottom: 0;
}

.orders-table tbody td {
    padding: 16px 16px;
    border-top-color: rgba(0,0,0,.06);
}

.orders-row {
    transition: background-color .12s ease;
}

.orders-row:hover {
    background: rgba(13,110,253,.04);
}

/* Mobile: table -> card rows */
@media (max-width: 768px) {
    .orders-table thead {
        display: none;
    }

    .orders-table, .orders-table tbody, .orders-table tr, .orders-table td {
        display: block;
        width: 100%;
    }

    .orders-table tbody tr {
        background: #fff;
        border-top: 1px solid rgba(0,0,0,.06);
        padding: 10px 12px;
    }

    .orders-table tbody td {
        border: 0;
        padding: 10px 6px;
    }

    .orders-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        color: rgba(0,0,0,.55);
        margin-bottom: 4px;
    }
}

/* Kompakt tablo: daha az padding, daha düşük satır yüksekliği */
.orders-mini thead th {
    border-bottom: 0;
}

.orders-mini tbody td {
    padding: 12px 14px;
    border-top-color: rgba(0,0,0,.06);
}

.orders-mini .orders-row:hover {
    background: rgba(13,110,253,.035);
}

@media (max-width: 768px) {
    .orders-mini thead {
        display: none;
    }

    .orders-mini, .orders-mini tbody, .orders-mini tr, .orders-mini td {
        display: block;
        width: 100%;
    }

    .orders-mini tbody tr {
        border-top: 1px solid rgba(0,0,0,.06);
        padding: 10px 12px;
    }

    .orders-mini tbody td {
        border: 0;
        padding: 10px 6px;
    }

    .orders-mini tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        color: rgba(0,0,0,.55);
        margin-bottom: 4px;
    }

    .orders-mini td.text-end {
        text-align: left !important;
        padding-right: 6px !important;
    }

    .orders-mini td.pe-4 {
        padding-right: 6px !important;
    }

    .orders-mini td.ps-4 {
        padding-left: 6px !important;
    }

    .orders-mini .d-inline-flex.flex-column.align-items-end {
        align-items: flex-start !important;
    }
}

/* ── R1 Hub Tabs (Yetkiler / İşlemler / Ödemeler) ────────────────────── */
.r1-hub-shell { display: grid; gap: 24px; min-width: 0; }
.r1-hub-shell .tab-content,
.r1-hub-shell .tab-pane { min-width: 0; }
.r1-hub-shell .card { max-width: 100%; }
.r1-hub-shell .table-responsive { max-width: 100%; }

.r1-hub-tabs {
    border: none;
    row-gap: 10px;
    padding-bottom: 4px;
}

.r1-hub-tabs .nav-item {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

.r1-hub-tabs .nav-link {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(255,255,255,.78);
    border-radius: 22px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}

.r1-hub-tabs .nav-link span:last-child {
    display: grid;
    gap: 2px;
    text-align: left;
}

.r1-hub-tabs .nav-link strong {
    font-size: .98rem;
    font-weight: 700;
}

.r1-hub-tabs .nav-link small {
    font-size: .78rem;
    color: #64748b;
}

.r1-hub-tabs .nav-link small.r1-hub-tab-amount {
    font-size: .95rem;
    font-weight: 700;
    color: #1e293b;
}

.r1-hub-tabs .nav-link.active small.r1-hub-tab-amount {
    color: #b40101;
}

.r1-hub-tabs .nav-link.active {
    border-color: rgba(180,1,1,.2);
    background: linear-gradient(135deg, rgba(180,1,1,.1), rgba(255,255,255,.98));
    color: #8f1d0a;
}

.r1-hub-tab-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #f8fafc;
    color: #475569;
    flex: 0 0 42px;
}

.r1-hub-tabs .nav-link.active .r1-hub-tab-icon {
    background: linear-gradient(135deg, #b40101, #dd6b43);
    color: #fff;
    box-shadow: 0 12px 22px rgba(180,1,1,.18);
}

/* ============================================================
   kwin UI Standard — Kullanıcı Detay Navigasyonu (rail + alt-sekme kartları)
   Sol dikey "rail" (ana bölümler) + sağda açıklamalı alt-sekme kartları.
   Alt-sekme kartları için mevcut .r1-hub-tabs / .r1-hub-tab-icon yeniden
   kullanılır (bkz. yukarısı). Bu blok yalnızca dikey rail'i ve iki sütunlu
   kabuğu tanımlar. Aktif rail paterni admin sidebar ile aynı: inset kırmızı bar.
   ============================================================ */
/* Özet kart (minimal) yardımcıları */
.ud-summary-card .users-summary-kicker,
.users-summary-kicker {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.ud-summary-avatar {
    width: 56px;
    height: 56px;
}

.ud-summary-avatar-sm {
    width: 44px;
    height: 44px;
    font-size: .95rem;
}

.min-w-0 {
    min-width: 0;
}

/* Zengin KPI/metrik kartı — RESMÎ STANDART (ikon chip + UPPERCASE etiket + değer + trend + alt-metin).
   admin.css'te de tanımlı (admin sayfaları); consultant layout'ta da çalışsın diye standart dosyada.
   Kullanım: <div class="col-6 col-xl-3"><div class="card kw-metric-card h-100"><div class="card-body">
     <div class="kw-metric-label"><span class="kw-metric-icon bg-primary-subtle text-primary"><i class="fa-solid fa-..."></i></span>
       <span class="small text-muted text-uppercase">ETİKET</span></div>
     <div class="kw-metric-value">DEĞER</div> ... </div></div></div> */
.kw-metric-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: var(--bs-box-shadow-sm);
    background-color: #ffffff;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.kw-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.08);
}

.kw-metric-card .card-body {
    padding: 1.1rem 1.1rem 1rem;
}

.kw-metric-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.kw-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.kw-metric-value {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}

.kw-metric-sub {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.ud-shell {
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.ud-rail {
    flex: 0 0 210px;
    width: 210px;
    align-self: stretch;
    padding: .7rem;
    background: var(--bs-tertiary-bg, #f8fafc);
    border-right: 1px solid var(--bs-border-color-translucent, rgba(15, 23, 42, .08));
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ud-rail-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .7rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--bs-secondary-color, #64748b);
    font-size: .85rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ud-rail-btn:hover {
    background: rgba(var(--bs-primary-rgb), .05);
    color: var(--bs-primary);
}

.ud-rail-btn.active {
    background: rgba(var(--bs-primary-rgb), .07);
    color: var(--bs-primary);
    box-shadow: inset 2px 0 0 var(--bs-primary);
}

.ud-rail-btn .ud-rail-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .9rem;
}

.ud-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Alt-sekme kart setinin grupları arası boşluk düzeni */
.ud-content .r1-hub-tabs {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .ud-shell {
        flex-direction: column;
    }

    .ud-rail {
        flex: 1 1 auto;
        width: 100%;
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--bs-border-color-translucent, rgba(15, 23, 42, .08));
    }

    .ud-rail-btn {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .ud-rail-btn.active {
        box-shadow: inset 0 -2px 0 var(--bs-primary);
    }

    .ud-content {
        padding: 1rem;
    }
}
