/* =========================================================
   OMİD Bonus App — ümumi dizayn sistemi
   ========================================================= */

:root {
    --primary-red: #E31837;
    --primary-dark: #A71126;
    --bg-color: #f6f7f9;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow-sm: 0 4px 15px rgba(15, 23, 42, .04);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, .08);
    --shadow-red: 0 10px 25px rgba(227, 24, 55, .28);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, "Segoe UI", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
}

body {
    background-color: #e2e8f0;
    display: flex;
    justify-content: center;
    color: var(--text-dark);
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-color);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,.12);
}

/* ---------------------------------------------------------
   Düymələr
   --------------------------------------------------------- */
.btn-primary-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-red);
    transition: transform .15s ease, opacity .15s ease;
    text-decoration: none;
}

    .btn-primary-app:active {
        transform: scale(.97);
    }

    .btn-primary-app:disabled {
        opacity: .45;
        box-shadow: none;
        cursor: not-allowed;
    }

.btn-ghost-app {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

/* =========================================================
   ONBOARDING
   ========================================================= */
.ob-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
}

.ob-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 0 24px;
    height: 60px;
    flex-shrink: 0;
}

.ob-logo {
    height: 26px;
}

.ob-skip {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    text-decoration: none;
}

.ob-track {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .ob-track::-webkit-scrollbar {
        display: none;
    }

.ob-slide {
    min-width: 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 32px 20px 32px;
    text-align: center;
}

.ob-art {
    width: 100%;
    max-width: 300px;
    margin-bottom: 34px;
}

.ob-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -.5px;
}

    .ob-title em {
        font-style: normal;
        color: var(--primary-red);
    }

.ob-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    max-width: 300px;
}

.ob-bottom {
    padding: 0 32px 34px 32px;
    flex-shrink: 0;
}

.ob-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 26px;
}

.ob-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    transition: all .3s ease;
}

    .ob-dot.active {
        width: 26px;
        background: var(--primary-red);
    }

/* =========================================================
   AUTH (nömrə + OTP)
   ========================================================= */
.auth-screen {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    padding: 18px 28px 30px 28px;
    overflow: hidden;
}

    /* Yuxarıda zərif brend ləkəsi */
    .auth-screen::before {
        content: '';
        position: absolute;
        top: -150px;
        right: -110px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, rgba(227,24,55,.16), rgba(227,24,55,0) 70%);
        pointer-events: none;
    }

    .auth-screen > * {
        position: relative;
        z-index: 1;
    }

.auth-nav {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.auth-badge {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-red);
    margin-bottom: 22px;
}

.link-inline {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 14px;
}

    .info-pill i {
        color: var(--primary-red);
        font-size: 13px;
    }

.back-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--bg-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
}

.auth-head {
    margin: 26px 0 30px 0;
}

.auth-logo {
    height: 46px;
    margin-bottom: 26px;
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 10px;
}

.auth-sub {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

    .auth-sub strong {
        color: var(--text-dark);
    }

.auth-body {
    flex: 1;
}

.auth-foot {
    flex-shrink: 0;
}

/* Telefon input */
.phone-field {
    display: flex;
    align-items: center;
    height: 62px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 0 16px;
    background: var(--card-bg);
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .phone-field:focus-within {
        border-color: var(--primary-red);
        box-shadow: 0 0 0 4px rgba(227, 24, 55, .08);
    }

    .phone-field.invalid {
        border-color: var(--primary-red);
    }

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
    margin-right: 12px;
    border-right: 1.5px solid var(--border);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.flag-az {
    width: 26px;
    height: 18px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.phone-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-dark);
    background: transparent;
    width: 100%;
}

    .phone-input::placeholder {
        color: var(--text-light);
        font-weight: 500;
        letter-spacing: 1px;
    }

.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary-red);
    font-weight: 500;
    margin-top: 10px;
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
}

.check-box {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    color: transparent;
    font-size: 11px;
    transition: all .2s ease;
    margin-top: 1px;
}

    .check-box.checked {
        background: var(--primary-red);
        border-color: var(--primary-red);
        color: #fff;
    }

.terms-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-gray);
}

    .terms-text a {
        color: var(--primary-red);
        font-weight: 600;
        text-decoration: none;
    }

/* OTP xanaları */
.otp-row {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.otp-box {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: 62px;
    padding: 0;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--bg-color);
    outline: none;
    transition: all .18s ease;
    -moz-appearance: textfield;
}

    .otp-box::-webkit-outer-spin-button,
    .otp-box::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .otp-box:focus {
        border-color: var(--primary-red);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(227, 24, 55, .10);
        transform: translateY(-2px);
    }

    .otp-box.filled {
        border-color: var(--primary-red);
        background: #fff;
        color: var(--primary-red);
        box-shadow: 0 6px 16px rgba(227, 24, 55, .12);
    }

.otp-row.error .otp-box {
    border-color: var(--primary-red);
    animation: shake .4s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

.resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    background: var(--bg-color);
    border-radius: 14px;
    padding: 14px 16px;
}

    .resend-row i {
        color: var(--text-light);
    }

.resend-timer {
    font-weight: 700;
    color: var(--text-dark);
}

.resend-link {
    border: none;
    background: none;
    color: var(--primary-red);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.demo-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(227, 24, 55, .06);
    border: 1px dashed rgba(227, 24, 55, .35);
    color: var(--primary-dark);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* =========================================================
   APP SHELL (header + bottom nav)
   ========================================================= */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px 15px 20px;
    background-color: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    z-index: 10;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 22px;
}

.user-greeting {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.user-sub {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 2px;
}

.notification-icon {
    position: relative;
    font-size: 22px;
    color: var(--text-dark);
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: var(--primary-red);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--primary-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
}

.notification-icon.active {
    color: var(--primary-red);
}

/* Bildiriş sətri */
.notif-item {
    position: relative;
}

    .notif-item.unread {
        background: rgba(227, 24, 55, .035);
    }

        .notif-item.unread .row-title::after {
            content: '';
            display: inline-block;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--primary-red);
            margin-left: 8px;
            vertical-align: middle;
        }

.push-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(227,24,55,.06), rgba(227,24,55,.02));
    border: 1px solid rgba(227, 24, 55, .18);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.push-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.notif-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

    .notif-toolbar .chip.danger {
        color: var(--primary-red);
        border-color: rgba(227, 24, 55, .3);
    }

.notif-delete {
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 15px;
    padding: 8px;
    cursor: pointer;
    flex-shrink: 0;
    align-self: flex-start;
}

    .notif-delete:active {
        color: var(--primary-red);
    }

.notif-item {
    transition: opacity .2s ease, transform .2s ease;
}

    .notif-item.removing {
        opacity: 0;
        transform: translateX(40px);
    }

.notif-body {
    cursor: pointer;
}

/* ---- Skeleton (Facebook üslubunda soldan sağa parıltı) ---- */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #e9edf2;
    border-radius: 8px;
}

    .skeleton::after {
        content: '';
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,.75) 50%,
            rgba(255,255,255,0) 100%);
        animation: shimmer 1.4s infinite;
    }

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.sk-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex-shrink: 0;
}

.sk-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 2px;
}

.sk-line {
    height: 11px;
}

    .sk-line.w-40 {
        width: 40%;
    }

    .sk-line.w-90 {
        width: 90%;
    }

    .sk-line.w-65 {
        width: 65%;
    }

    .sk-line.w-25 {
        width: 25%;
        height: 9px;
    }

/* Şəkilli skeleton kart (filiallar) */
.sk-photo-card {
    flex-direction: column;
    gap: 12px;
    padding: 0 0 14px 0;
    overflow: hidden;
}

.sk-photo {
    width: 100%;
    height: 132px;
    border-radius: 0;
}

.sk-photo-card .sk-lines {
    padding: 0 16px;
}

.sk-btns {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.sk-btn {
    flex: 1;
    height: 40px;
    border-radius: 12px;
}

/* Ana səhifə üçün böyük kart */
.sk-hero {
    height: 168px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.sk-wrap {
    animation: fadeIn .15s ease;
}

@keyframes fadeIn {
    from {
        opacity: .4;
    }

    to {
        opacity: 1;
    }
}

/* Şəkil yüklənənədək parıltı */
.img-skeleton {
    position: relative;
    overflow: hidden;
    background: #e9edf2;
}

    .img-skeleton::after {
        content: '';
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 100%);
        animation: shimmer 1.4s infinite;
        z-index: 1;
    }

    .img-skeleton img {
        opacity: 0;
    }

/* .branch-photo öz fonunu təyin etdiyi üçün burada spesifikliyi artırırıq */
.branch-photo.img-skeleton {
    background: #e9edf2;
}

.load-spinner {
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    padding: 12px 0 20px 0;
}

.load-more {
    height: 1px;
}

.notif-text {
    font-size: 12.5px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
}

/* ---- Bildirişin tam detalı (siyahıdan toxunanda açılan panel) ---- */
.notif-detail-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
}

.notif-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 8px;
}

.notif-detail-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: left;
}

.notif-detail-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    text-align: left;
    white-space: pre-line;
    margin: 14px 0 20px 0;
}

/* XAF RichText redaktorundan gələn HTML — sənədin öz font/rəng stilini deyil, app-ın stilini istifadə edir. */
.campaign-rich-text {
    white-space: normal;
}

    .campaign-rich-text * {
        max-width: 100%;
        font-family: inherit !important;
        color: inherit !important;
        background: transparent !important;
    }

    .campaign-rich-text p {
        margin: 0 0 10px 0;
    }

    .campaign-rich-text img {
        height: auto;
        border-radius: 8px;
    }

    .campaign-rich-text a {
        color: var(--primary-red);
    }

/* Forma elementləri */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 7px;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    height: 54px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--card-bg);
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .form-input:focus {
        border-color: var(--primary-red);
        box-shadow: 0 0 0 4px rgba(227, 24, 55, .08);
    }

    .form-input:disabled {
        background: var(--bg-color);
        color: var(--text-gray);
    }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 40px;
}

.segmented {
    display: flex;
    gap: 10px;
}

.segment {
    flex: 1;
    height: 48px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--card-bg);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all .18s ease;
}

    .segment.active {
        border-color: var(--primary-red);
        background: rgba(227, 24, 55, .06);
        color: var(--primary-red);
    }

.alert-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(22, 163, 74, .1);
    color: #15803d;
    border-radius: 14px;
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 18px;
}

.form-note {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-top: -4px;
    margin-bottom: 18px;
}

    .form-note i {
        color: var(--text-light);
        margin-top: 2px;
    }

.app-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 110px 20px;
    scrollbar-width: none;
}

    .app-body::-webkit-scrollbar {
        display: none;
    }

.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background-color: var(--card-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.05);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    z-index: 20;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-gray);
    /* Sabit en deyil, minimum en — rus/ingilis dilində söz uzun olanda alt sətrə keçməsin */
    min-width: 60px;
    padding: 0 2px;
    gap: 6px;
}

    .nav-item i {
        font-size: 20px;
    }

    .nav-item span {
        font-size: 10px;
        font-weight: 500;
        white-space: nowrap;     /* iki sətrə bölünüb menyunun hündürlüyünü pozmasın */
    }

    .nav-item.active {
        color: var(--primary-red);
    }

.center-btn-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: -20px;
}

.center-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 16px rgba(227, 24, 55, .3);
    text-decoration: none;
    border: 5px solid var(--bg-color);
}

.center-text {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-red);
    margin-top: 8px;
}

/* =========================================================
   HOME
   ========================================================= */
.red-card {
    background: linear-gradient(135deg, #E31837 0%, #A71126 100%);
    border-radius: 20px;
    padding: 24px;
    color: #fff;
    position: relative;
    box-shadow: var(--shadow-red);
    margin-bottom: 24px;
    overflow: hidden;
}

    .red-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 220px;
        height: 220px;
        background: rgba(255,255,255,.06);
        border-radius: 50%;
    }

    .red-card::after {
        content: '';
        position: absolute;
        bottom: -60%;
        left: -15%;
        width: 200px;
        height: 200px;
        background: rgba(255,255,255,.05);
        border-radius: 50%;
    }

.card-logo {
    height: 26px;
    position: relative;
    z-index: 2;
}

.qr-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 3;
}

.balance-title {
    font-size: 13px;
    opacity: .9;
    margin-top: 30px;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
}

.balance-amount {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 2;
}

    .balance-amount span {
        font-size: 18px;
        font-weight: 600;
    }

.card-number-box {
    position: absolute;
    bottom: 24px;
    right: 24px;
    text-align: right;
    z-index: 2;
}

.card-number-title {
    font-size: 12px;
    opacity: .9;
}

.card-number {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 4px;
}

.red-card {
    cursor: pointer;
    transition: transform .18s ease;
}

    .red-card:active {
        transform: scale(.985);
    }

.card-tap-hint {
    margin-top: 16px;
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    opacity: .85;
    z-index: 2;
}

/* ---- Aşağıdan açılan panel (barkod) ---- */
.sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 60;
}

    .sheet-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

.sheet {
    width: 100%;
    background: var(--card-bg);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 12px 24px 26px 24px;
    text-align: center;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}

.sheet-overlay.show .sheet {
    transform: translateY(0);
}

.sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: var(--border);
    margin: 0 auto 18px auto;
    /* Panel aşağı çəkilərək bağlana bilər (js/sheet.js) */
    cursor: grab;
}

    .sheet-handle:active {
        cursor: grabbing;
    }

.sheet-logo {
    height: 24px;
    margin-bottom: 14px;
}

.sheet-title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 4px;
}

.sheet-sub {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.barcode-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 16px 10px 16px;
    box-shadow: var(--shadow-sm);
}

    .barcode-box canvas {
        display: block;
        width: 100%;
    }

.sheet-code {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-dark);
    margin: 16px 0 6px 0;
}

/* ---- Təsdiq paneli (native confirm() əvəzi) ---- */
.confirm-sheet {
    text-align: center;
}

.confirm-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 24, 55, .1);
    color: var(--primary-red);
    font-size: 20px;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

    .confirm-actions button {
        flex: 1;
        height: 48px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        border: 1.5px solid var(--border);
        background: var(--card-bg);
        color: var(--text-dark);
        transition: transform .15s ease, opacity .15s ease;
    }

    .confirm-actions button:active {
        transform: scale(.97);
        opacity: .85;
    }

    .confirm-actions .confirm-ok {
        border-color: transparent;
        background: var(--primary-red);
        color: #fff;
    }

.notif-detail-sheet {
    max-height: 86vh;
    overflow-y: auto;
}

/* ---- Çekin detalı (tarixçədən açılan panel) ---- */
.receipt-sheet {
    max-height: 86vh;
    overflow-y: auto;
}

.receipt-loading {
    padding: 40px 0;
    color: var(--text-gray);
    font-size: 13px;
}

.receipt-lines {
    text-align: left;
    background: var(--bg-color);
    border-radius: 14px;
    padding: 4px 14px;
    margin-bottom: 14px;
}

.receipt-line {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

    .receipt-line:last-child {
        border-bottom: none;
    }

.receipt-line-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.receipt-line-name {
    flex: 1;
    min-width: 0;
}

.receipt-line-price {
    flex-shrink: 0;
    white-space: nowrap;
}

.receipt-line-sub {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 3px;
}

.receipt-line-discount {
    color: var(--primary-red);
    font-weight: 600;
}

.receipt-totals {
    text-align: left;
    margin-bottom: 18px;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-gray);
    padding: 4px 2px;
}

    .receipt-total-row.discount span:last-child {
        color: var(--primary-red);
    }

    .receipt-total-row.grand {
        font-size: 16px;
        font-weight: 800;
        color: var(--primary-red);
        border-top: 1px solid var(--border);
        margin-top: 6px;
        padding-top: 10px;
    }

.fiscal-box {
    background: var(--bg-color);
    border-radius: 14px;
    padding: 12px 16px;
    margin-top: 16px;
    text-align: left;
}

.fiscal-label {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.fiscal-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-all;
}

.fiscal-copy-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .fiscal-copy-btn.copied {
        color: #16a34a;
        border-color: #16a34a;
    }

.row-item.clickable {
    cursor: pointer;
}

/* Sadə "növbəti səhifəyə keç" xevronundan fərqli olsun deyə — bu ikon panel açır, səhifə dəyişmir */
.row-view-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(227, 24, 55, .08);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.q-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.q-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: var(--primary-red);
    box-shadow: var(--shadow-sm);
    margin-bottom: 8px;
}

.q-text {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.see-all {
    font-size: 13px;
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
}

.campaign-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

    .campaign-scroll::-webkit-scrollbar {
        display: none;
    }

.camp-card {
    border-radius: 16px;
    height: 140px;
    min-width: 240px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    text-decoration: none;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: linear-gradient(160deg, #334155, #0f172a);
    background-size: cover;
    background-position: center;
}

    .camp-card::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,.8) 100%);
        z-index: 1;
    }

.camp-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    z-index: 2;
}

.camp-date {
    color: rgba(255,255,255,.8);
    font-size: 11px;
    z-index: 2;
}

.camp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

.camp-mark {
    position: absolute;
    top: 14px;
    right: 14px;
    height: 14px;
    opacity: .85;
    z-index: 2;
}

.career-banner {
    background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    gap: 12px;
}

.career-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.career-text p {
    font-size: 12px;
    opacity: .8;
    line-height: 1.4;
    max-width: 180px;
}

.career-btn {
    background: var(--primary-red);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* =========================================================
   ÜMUMİ SİYAHI / KART KOMPONENTLƏRİ
   ========================================================= */
.list-card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}

.row-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--bg-color);
}

    .row-item:last-child {
        border-bottom: none;
    }

.row-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(227, 24, 55, .08);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.row-main {
    flex: 1;
    min-width: 0;
}

.row-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-sub {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-end {
    text-align: right;
    flex-shrink: 0;
    max-width: 40%;
}

.row-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.row-bonus {
    font-size: 12px;
    font-weight: 700;
    margin-top: 3px;
    white-space: nowrap;
}

    .row-bonus.plus {
        color: #16a34a;
    }

    .row-bonus.minus {
        color: var(--primary-red);
    }

.row-chevron {
    color: var(--text-light);
    font-size: 13px;
    flex-shrink: 0;
}

/* Bonus səviyyəsi zolağı */
.level-card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 18px;
    margin-bottom: 24px;
}

.level-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.level-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
}

    .level-name i {
        color: #f59e0b;
    }

.level-next {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
}

.level-bar {
    height: 10px;
    border-radius: 5px;
    background: var(--bg-color);
    overflow: hidden;
}

.level-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary-red), #f59e0b);
}

.level-hint {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 10px;
}

    .level-hint strong {
        color: var(--text-dark);
    }

/* Axtarış sahəsi */
.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 0 14px;
    height: 48px;
    margin-bottom: 18px;
}

    .search-field i {
        color: var(--text-light);
    }

    .search-field input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 14px;
        background: transparent;
        color: var(--text-dark);
    }

.badge-soft {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

    .badge-soft.open {
        background: rgba(22, 163, 74, .12);
        color: #16a34a;
    }

    .badge-soft.closed {
        background: rgba(100, 116, 139, .14);
        color: var(--text-gray);
    }

/* ---- Filiallar ---- */
.geo-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.geo-status {
    font-size: 12px;
    color: var(--text-gray);
}

.branch-card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
    overflow: hidden;
}

/* Mağaza fotosu — kartın yuxarısında banner */
.branch-photo {
    position: relative;
    margin: -14px -16px 12px -16px;
    height: 132px;
    background: var(--bg-color);
}

    .branch-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.photo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .15);
}

    .photo-badge.open {
        background: rgba(255, 255, 255, .92);
        color: #15803d;
    }

    .photo-badge.closed {
        background: rgba(255, 255, 255, .92);
        color: var(--text-gray);
    }

.branch-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.branch-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: contain;
    background: var(--bg-color);
    padding: 4px;
    flex-shrink: 0;
}

.branch-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 7px;
}

.branch-distance {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-red);
}

.branch-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.act-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    color: var(--text-dark);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease;
}

    .act-btn:active {
        transform: scale(.97);
    }

    .act-btn.call {
        color: #16a34a;
        border-color: rgba(22, 163, 74, .3);
        background: rgba(22, 163, 74, .06);
    }

    .act-btn.go {
        color: #fff;
        border-color: transparent;
        background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
        box-shadow: 0 6px 14px rgba(227, 24, 55, .22);
    }

/* Naviqasiya seçimi */
.nav-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 6px 0;
}

.nav-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

.nav-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

    .nav-logo.waze {
        background: #33ccff;
    }

    .nav-logo.google {
        background: #4285f4;
    }

    .nav-logo.apple {
        background: #111827;
    }

/* Kampaniya siyahısı (tam səhifə) */
.camp-full {
    display: flex;
    gap: 14px;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 16px;
    margin-bottom: 14px;
    text-decoration: none;
    color: inherit;
}

.camp-thumb {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

    .camp-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.camp-full-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.camp-full-desc {
    font-size: 12.5px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 8px;
}

.camp-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.camp-chip {
    background: var(--primary-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.camp-deadline {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
}

/* Statistika */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 14px 10px;
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

    .stat-value.red {
        color: var(--primary-red);
    }

.stat-label {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* İnterval seçimi */
.chip-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

    .chip-row::-webkit-scrollbar {
        display: none;
    }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .18s ease;
}

    .chip.active {
        border-color: var(--primary-red);
        background: var(--primary-red);
        color: #fff;
        box-shadow: 0 6px 14px rgba(227, 24, 55, .22);
    }

.range-panel {
    display: none;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 16px;
    margin-bottom: 14px;
}

    .range-panel.open {
        display: block;
    }

.range-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.period-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 18px;
    margin-left: 2px;
}

    .period-line i {
        color: var(--primary-red);
    }

/* Sütun sayı çox olanda daha dar sütunlar */
.chart-bars.dense {
    gap: 4px;
}

    .chart-bars.dense .bar-value {
        display: none;
    }

    .chart-bars.dense .bar-label {
        font-size: 9px;
    }

    .chart-bars.dense .bar-fill {
        max-width: 14px;
    }

.chart-card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 18px 16px 12px 16px;
    margin-bottom: 24px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    height: 140px;
    margin-top: 14px;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.bar-value {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-gray);
}

.bar-fill {
    width: 100%;
    max-width: 26px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #fca5b5, #E31837);
    min-height: 6px;
}

    .bar-fill.active {
        background: linear-gradient(180deg, #E31837, #A71126);
    }

.bar-label {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
}

.cat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.cat-info {
    flex: 1;
}

.cat-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.cat-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--bg-color);
    overflow: hidden;
}

.cat-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--primary-red);
}

/* Profil */
.profile-hero {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    border-radius: 20px;
    padding: 22px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-red);
}

.avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

.profile-name {
    font-size: 19px;
    font-weight: 800;
}

.profile-meta {
    font-size: 13px;
    opacity: .9;
    margin-top: 4px;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 8px;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 10px 4px;
}

.btn-outline-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border: 1.5px solid rgba(227, 24, 55, .35);
    border-radius: 16px;
    background: transparent;
    color: var(--primary-red);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.app-version {
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 14px;
}

/* Sadə boş səhifə şablonu */
.placeholder-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

    .placeholder-page i {
        font-size: 44px;
        color: var(--primary-red);
        margin-bottom: 18px;
    }

    .placeholder-page h3 {
        font-size: 18px;
        color: var(--text-dark);
        margin-bottom: 8px;
    }

/* Toast */
.toast-app {
    position: fixed;
    left: 50%;
    bottom: 100px;
    transform: translate(-50%, 20px);
    background: var(--text-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    z-index: 100;
}

    .toast-app.show {
        opacity: 1;
        transform: translate(-50%, 0);
    }

/* =========================================================
   MƏXFİLİK SİYASƏTİ / İSTİFADƏ ŞƏRTLƏRİ
   ========================================================= */
.legal-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-color);
    border-radius: 14px;
    padding: 4px;
    flex-shrink: 0;
    margin-bottom: 14px;
}

.legal-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 11px;
    padding: 9px 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-gray);
    font-family: inherit;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

    .legal-tab.active {
        background: var(--card-bg);
        color: var(--primary-red);
        box-shadow: 0 1px 4px rgba(15, 23, 42, .1);
    }

.legal-body {
    flex: 1;
    min-height: 0;
    overflow-anchor: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    /* Mətnin altdan kəsildiyi bilinsin deyə zərif solma */
    mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent 100%);
}

.legal-h {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 20px 0 8px 0;
}

    .legal-h:first-child {
        margin-top: 0;
    }

.legal-p {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.legal-lead {
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 12.5px;
    letter-spacing: .3px;
}

.legal-list {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
}

    .legal-list li {
        position: relative;
        padding-left: 16px;
        font-size: 13.5px;
        line-height: 1.7;
        color: var(--text-gray);
        margin-bottom: 8px;
    }

        .legal-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 9px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--primary-red);
            opacity: .55;
        }

.legal-contact {
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-top: 22px;
}

.legal-contact-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.legal-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

    .legal-contact-row i {
        color: var(--primary-red);
        font-size: 13px;
        width: 16px;
        text-align: center;
    }

/* ---- Dil seçimi paneli (Profil → Dil) ---- */
.lang-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0 6px 0;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: border-color .2s ease, background .2s ease;
}

    .lang-option.active {
        border-color: var(--primary-red);
        background: rgba(227, 24, 55, .05);
    }

    .lang-option i {
        margin-left: auto;
        color: var(--primary-red);
    }

.lang-code {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-gray);
}

.lang-option.active .lang-code {
    background: var(--primary-red);
    color: #fff;
}

.lang-name {
    text-align: left;
}
