.elvia-budget-cards,
.elvia-budget-cards * {
    box-sizing: border-box;
}

.elvia-budget-cards {
    --ebc-dark: #062b2b;
    --ebc-dark-2: #0b3733;
    --ebc-yellow: #ffb229;
    --ebc-green: #4fa35f;
    --ebc-border-dark: rgba(255, 255, 255, .13);
    --ebc-border-light: #e8e8e0;
    --ebc-text-dark: #ffffff;
    --ebc-muted-dark: rgba(255, 255, 255, .72);
    --ebc-muted-light: #66736f;

    width: 100%;
    max-width: 100%;
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.elvia-budget-cards.ebc-layout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Card */
.ebc-card {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 132px;
    padding: 24px 34px 24px 26px;
    border-radius: 24px;
    overflow: hidden;
    direction: ltr;
    isolation: isolate;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        background .25s ease;
}

/* Dark theme */
.ebc-theme-dark .ebc-card {
    color: var(--ebc-text-dark);
    border: 1px solid var(--ebc-border-dark);
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
    background-size: 22px 22px, 22px 22px, auto;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .06),
        0 18px 42px rgba(0, 0, 0, .12);
    backdrop-filter: blur(6px);
}

/* Light theme */
.ebc-theme-light .ebc-card {
    color: var(--ebc-dark);
    border: 1px solid var(--ebc-border-light);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(6, 43, 43, .08);
}

.ebc-card:hover {
    transform: translateY(-4px);
}

.ebc-theme-dark .ebc-card:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 22px 54px rgba(0, 0, 0, .18);
    border-color: rgba(255, 255, 255, .22);
}

.ebc-theme-light .ebc-card:hover {
    box-shadow: 0 22px 54px rgba(6, 43, 43, .12);
    border-color: rgba(6, 43, 43, .12);
}

/* Decorative soft circle */
.ebc-card::before {
    content: "";
    position: absolute;
    right: -58px;
    bottom: -58px;
    width: 165px;
    height: 165px;
    border-radius: 50%;
    background: rgba(255, 178, 41, .055);
    pointer-events: none;
    z-index: 0;
}

/* Icon on LEFT */
.ebc-icon {
    grid-column: 1;
    grid-row: 1;
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.ebc-theme-dark .ebc-icon {
    background: rgba(255, 255, 255, .065);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #ffffff;
}

.ebc-theme-light .ebc-icon {
    background: rgba(255, 178, 41, .12);
    border: 1px solid rgba(255, 178, 41, .22);
    color: var(--ebc-dark);
}

.ebc-icon i,
.ebc-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

.ebc-icon svg * {
    fill: currentColor;
}

/* Text in MIDDLE/RIGHT */
.ebc-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
    direction: rtl;
    text-align: right;
    padding-right: 22px;
    padding-left: 0;
}

.ebc-content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.45;
    color: inherit;
    word-break: normal;
}

.ebc-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    word-break: normal;
}

.ebc-theme-dark .ebc-content p {
    color: var(--ebc-muted-dark);
}

.ebc-theme-light .ebc-content p {
    color: var(--ebc-muted-light);
}

/* Yellow accent on RIGHT */
.ebc-accent {
    position: absolute;
    top: 50%;
    right: 26px;
    width: 3px;
    height: 56px;
    border-radius: 20px;
    background: var(--ebc-yellow);
    transform: translateY(-50%);
    z-index: 3;
}

/* Grid mode */
.elvia-budget-cards.ebc-layout-grid .ebc-card {
    min-height: 180px;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 18px;
    padding: 30px 28px;
    direction: rtl;
}

.elvia-budget-cards.ebc-layout-grid .ebc-icon {
    grid-column: auto;
    justify-self: start;
}

.elvia-budget-cards.ebc-layout-grid .ebc-content {
    grid-column: auto;
    padding-right: 0;
}

.elvia-budget-cards.ebc-layout-grid .ebc-accent {
    top: 28px;
    right: 26px;
    transform: none;
    height: 44px;
}

/* Tablet */
@media (max-width: 1024px) {
    .elvia-budget-cards.ebc-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .elvia-budget-cards {
        gap: 14px;
    }

    .ebc-card {
        grid-template-columns: 58px minmax(0, 1fr);
        min-height: 116px;
        gap: 16px;
        padding: 20px 28px 20px 18px;
        border-radius: 20px;
    }

    .ebc-icon {
        width: 56px;
        height: 56px;
        font-size: 23px;
    }

    .ebc-content {
        padding-right: 16px;
    }

    .ebc-content h3 {
        font-size: 18px;
        line-height: 1.45;
    }

    .ebc-content p {
        font-size: 13px;
        line-height: 1.85;
    }

    .ebc-accent {
        right: 18px;
        height: 42px;
    }

    .ebc-card::before {
        right: -64px;
        bottom: -64px;
        width: 145px;
        height: 145px;
        opacity: .8;
    }

    .elvia-budget-cards.ebc-layout-grid .ebc-card {
        min-height: auto;
        padding: 24px 22px;
    }
}