.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all .25s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.stat-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.user-status-bar {
    background: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    color: #333;
}

.user-status-bar strong {
    font-weight: 600;
}

.user-status-bar .separator {
    color: #999;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

/* GOLD badge */
.badge-gold {
    /*background: #e6f8ec;*/
    /*color: #2e7d32;*/
}

/* === MAIN BALANCE CARD === */
.main-balance-card {
    background: linear-gradient(135deg, #f9fff5, #ffffff);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border: 1px solid rgba(46, 125, 50, 0.08);
}

/* Sol tərəf */
.main-balance-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.main-balance-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.main-balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: #1b5e20;
}

/* Level badge */
.main-balance-level {
    /*background: #e6f8ec;*/
    color: #2e7d32;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Sağ ikonlu hissə */
.main-balance-icon {
    width: 60px;
    height: 60px;
    /*background: #e6f8ec;*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #2e7d32;
}

.sidebar-balance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.sidebar-balance-grid .stat-card {
    min-height: 124px;
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    gap: 16px;
}

.main-balance-card {
    position: relative;
}

.main-balance-info,
.ulevel-offer-info,
.ulevel-offer-right {
    position: relative;
    z-index: 2;
}

.ulevel-offer-card {
    background: linear-gradient(135deg, #0f172a 0%, #1c2942 38%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
    border: 1px solid rgba(255, 255, 255, .10);
}

.ulevel-offer-card::before {
    content: '';
    position: absolute;
    top: -34px;
    right: -34px;
    width: 118px;
    height: 118px;
    background: radial-gradient(circle, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 72%);
    z-index: 1;
}

.ulevel-offer-card::after {
    content: '';
    position: absolute;
    left: -28px;
    bottom: -28px;
    width: 104px;
    height: 104px;
    background: radial-gradient(circle, rgba(16, 185, 129, .18) 0%, rgba(16, 185, 129, 0) 72%);
    z-index: 1;
}

.ulevel-offer-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #d1fae5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    backdrop-filter: blur(6px);
}

.ulevel-offer-amount {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -.6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.ulevel-offer-title {
    font-size: 15px;
    font-weight: 800;
    color: #ecfeff;
    margin-bottom: 0;
}

.ulevel-offer-right {
    margin-left: auto;
    width: min(100%, 560px);
}

.ulevel-offer-countdown {
    width: 100%;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06),
    0 8px 24px rgba(0, 0, 0, .10);
    backdrop-filter: blur(10px);
    transition: .25s ease;
}

.ulevel-offer-countdown.is-ending-soon {
    background: linear-gradient(135deg, rgba(245, 158, 11, .16), rgba(251, 191, 36, .10));
    border-color: rgba(251, 191, 36, .35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 0 1px rgba(251, 191, 36, .10),
    0 12px 28px rgba(245, 158, 11, .16);
}

.ulevel-offer-countdown.is-ending-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, .18), rgba(249, 115, 22, .12));
    border-color: rgba(248, 113, 113, .38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 0 1px rgba(248, 113, 113, .12),
    0 14px 30px rgba(239, 68, 68, .18);
    animation: countdownPulse 1.8s ease-in-out infinite;
}

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

.ulevel-offer-countdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ulevel-offer-countdown-label {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .45px;
    text-transform: uppercase;
    color: #d1fae5;
    line-height: 1;
    margin: 0;
}

.ulevel-offer-countdown-badge {
    display: none;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.ulevel-offer-countdown.is-ending-soon .ulevel-offer-countdown-badge {
    display: inline-flex;
    background: rgba(251, 191, 36, .16);
    color: #fde68a;
    border: 1px solid rgba(253, 224, 71, .24);
}

.ulevel-offer-countdown.is-ending-critical .ulevel-offer-countdown-badge {
    display: inline-flex;
    background: rgba(248, 113, 113, .16);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, .24);
}

.ulevel-offer-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.ulevel-time-box {
    min-height: 58px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    transition: .25s ease;
}

.ulevel-time-box span {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -.3px;
}

.ulevel-time-box small {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
    line-height: 1;
}

.ulevel-offer-countdown.is-ending-soon .ulevel-time-box {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(251, 191, 36, .18);
}

.ulevel-offer-countdown.is-ending-critical .ulevel-time-box {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(248, 113, 113, .18);
}

.ulevel-offer-countdown-date {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
    line-height: 1.25;
}

.ulevel-offer-countdown-ended {
    font-size: 14px;
    font-weight: 800;
    color: #fecaca;
}

@media (max-width: 992px) {
    .sidebar-balance-grid .stat-card {
        flex-direction: column;
        align-items: stretch;
    }

    .ulevel-offer-right {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .sidebar-balance-grid .stat-card {
        min-height: 114px;
        padding: 16px;
        gap: 12px;
    }

    .ulevel-offer-label {
        margin-bottom: 10px;
        font-size: 11px;
        padding: 6px 12px;
    }

    .ulevel-offer-amount {
        font-size: 30px;
        margin-bottom: 6px;
    }

    .ulevel-offer-title {
        font-size: 14px;
    }

    .ulevel-offer-countdown {
        padding: 10px;
        border-radius: 16px;
    }

    .ulevel-offer-countdown-head {
        margin-bottom: 8px;
    }

    .ulevel-offer-countdown-label {
        font-size: 11px;
    }

    .ulevel-offer-countdown-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .ulevel-time-box {
        min-height: 50px;
        padding: 6px 2px;
        border-radius: 12px;
    }

    .ulevel-time-box span {
        font-size: 16px;
    }

    .ulevel-time-box small {
        font-size: 10px;
        margin-top: 4px;
    }

    .ulevel-offer-countdown-date {
        margin-top: 8px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .ulevel-time-box span {
        font-size: 14px;
    }

    .ulevel-time-box small {
        font-size: 9px;
    }
}

/*sticker*/

.sticker-highlight-card {
    background: linear-gradient(135deg, #7c2d12 0%, #c2410c 45%, #fb923c 100%);
    color: #fff;
    box-shadow: 0 16px 38px rgba(194, 65, 12, .22);
    border: 1px solid rgba(255, 255, 255, .12);
}

.sticker-highlight-card::before {
    content: '';
    position: absolute;
    top: -36px;
    right: -36px;
    width: 128px;
    height: 128px;
    background: radial-gradient(circle, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 72%);
    z-index: 1;
}

.sticker-highlight-card::after {
    content: '';
    position: absolute;
    left: -34px;
    bottom: -34px;
    width: 116px;
    height: 116px;
    background: radial-gradient(circle, rgba(255, 237, 213, .22) 0%, rgba(255, 255, 255, 0) 72%);
    z-index: 1;
}

.sticker-highlight-info,
.sticker-highlight-actions {
    position: relative;
    z-index: 2;
}

.sticker-highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #ffedd5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    backdrop-filter: blur(6px);
}

.sticker-highlight-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -.3px;
}

.sticker-highlight-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .92);
    line-height: 1.55;
    margin-bottom: 0;
    max-width: 760px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sticker-highlight-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.sticker-highlight-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
    transition: .25s ease;
    white-space: nowrap;
}

.sticker-highlight-btn:hover {
    background: rgba(255, 255, 255, .24);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 992px) {
    .sticker-highlight-actions {
        margin-left: 0;
        width: 100%;
    }

    .sticker-highlight-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .sticker-highlight-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .sticker-highlight-desc {
        font-size: 13px;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .sticker-highlight-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
}


/* ulevel == 1 olduqda balans və mötərizədəki faizlər bulanıq görünür. */
.blur-bonuses .js-balance-value,
.blur-bonuses .js-percent-values {
    filter: blur(7px);
    -webkit-filter: blur(7px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* ====== Gəlir kilidini açmağa həvəsləndirən KOMPAKT banner ====== */
/* Grid-dən gələn min-height:124px və böyük padding-i ləğv edib
   kartı bir sətirlik kiçik formaya salır. */
.sidebar-balance-grid .stat-card.darella-unlock-card {
    min-height: auto;
    padding: 12px 14px;
    border-radius: 16px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.darella-unlock-card {
    position: relative;
    overflow: hidden;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 45%, #0f766e 100%);
    box-shadow: 0 8px 20px rgba(16, 163, 74, 0.22);
}

.darella-unlock-card::after {
    content: "";
    position: absolute;
    top: -28px;
    right: -28px;
    width: 96px;
    height: 96px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.darella-unlock-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.18);
    position: relative;
    z-index: 2;
}

.darella-unlock-body {
    flex: 1 1 180px;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.darella-unlock-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 2px;
}

.darella-unlock-text {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.95;
    margin: 0;
}

.darella-unlock-text strong {
    font-weight: 800;
}

.darella-unlock-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #15803d;
    font-weight: 800;
    font-size: 12.5px;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 22px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.darella-unlock-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    color: #0f766e;
}


/* Nisyə borc kartı üçün tam təcrid olunmuş və optimallaşdırılmış dizayn */
.credit-summary-card {
    background: linear-gradient(135deg, #fffafd 0%, #fff 100%) !important;
    border: 1px solid #fecaca !important;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
    padding: 20px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all .25s ease !important;

    /* Üst flex təsirlərini sıfırlamaq üçün vacibdir */
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.credit-summary-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

.credit-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #ef4444;
}

.credit-summary-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #991b1b !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.credit-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    background: #fdfffe !important;
    padding: 12px !important;
    border-radius: 10px !important;
    border: 1px solid #fee2e2 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.credit-summary-item {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
}

.credit-summary-label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    margin-bottom: 6px !important;
    white-space: nowrap !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.credit-summary-value {
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.credit-value-total {
    color: #374151 !important;
}

.credit-value-paid {
    color: #10b981 !important;
}

.credit-value-remaining {
    color: #ef4444 !important;
}

.credit-pay-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2) !important;
}

.credit-pay-btn:hover {
    background-color: #dc2626 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3) !important;
}

/* Mobil korreksiya */
@media (max-width: 480px) {
    .credit-summary-grid {
        gap: 8px !important;
        padding: 10px !important;
    }

    .credit-summary-label {
        font-size: 11px !important;
    }

    .credit-summary-value {
        font-size: 12px !important;
    }
}

/* ══════════════════════════════════════════
   NİSYƏ: fərdi sifariş kartları
══════════════════════════════════════════ */

.credit-orders-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 14px;
}

/* ── Kart ── */
.co-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 9px;
    padding: 9px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.co-item.is-urgent {
    background: #fffdf5;
}

.co-item.is-overdue {
    border-color: #fecaca;
    border-left-color: #ef4444;
    background: #fff8f8;
}

/* ── Üst sətir ── */
.co-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.co-id {
    font-size: 11px;
    color: #c0c0c0;
    font-weight: 500;
}

.co-id i {
    font-size: 10px;
    margin-right: 2px;
}

.co-remaining-pill {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: -.1px;
}

/* ── Tarixlər ── */
.co-dates {
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-date-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.co-date-lbl {
    font-size: 10px;
    color: #c0c0c0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.co-date-val {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.co-date-val.is-urgent {
    color: #d97706;
}

.co-date-val.is-overdue {
    color: #dc2626;
}

.co-date-sep {
    font-size: 12px;
    color: #ddd;
    flex-shrink: 0;
    padding: 0 2px;
    padding-top: 12px;
}

/* ── Pill-lər (gün sayı) ── */
.co-pill {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: -.1px;
}

.co-pill--ok {
    background: #d1fae5;
    color: #065f46;
}

.co-pill--urgent {
    background: #fef3c7;
    color: #92400e;
}

.co-pill--overdue {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Progress ── */
.co-progress-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.co-progress-track {
    flex: 1;
    height: 4px;
    background: #f3f4f6;
    border-radius: 99px;
    overflow: hidden;
}

.co-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 99px;
    min-width: 3px;
    transition: width .5s ease;
}

.co-progress-fill.is-urgent {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.co-progress-fill.is-overdue {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.co-pct {
    font-size: 10px;
    font-weight: 700;
    color: #bbb;
    min-width: 26px;
    text-align: right;
    flex-shrink: 0;
}
