/* Add Credits / Buy Credits page — loaded only on add-credits */

/* Buy Credits page */

.add-credits-page {
    background: #f5f5f5;
}

.add-credits-page .add-credits-hero .container {
    justify-content: stretch;
}

.add-credits-page .add-credits-hero {
    padding: 6.5rem 0 1.75rem;
}

/* Laptop (English / LTR): more top padding under fixed nav */
@media (min-width: 1024px) {
    html:not([dir="rtl"]) .add-credits-page .add-credits-hero {
        padding: 9rem 0 2rem;
    }
}

.add-credits-page .add-credits-hero .check-status-hero-content.add-credits-hero-content {
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: start;
}

.add-credits-page .add-credits-hero-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: start;
}

.add-credits-page .add-credits-hero h1 {
    margin-bottom: 0.25rem;
    line-height: 1.2;
    font-size: clamp(1.55rem, 4vw, 2.4rem);
}

.add-credits-page .add-credits-hero .hero-subtitle {
    margin-top: 0;
    margin-bottom: 0 !important;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Beat global html[dir=rtl] .hero-subtitle { text-align: center !important } */

.add-credits-page .add-credits-hero h1,
.add-credits-page .add-credits-hero .hero-subtitle,
.add-credits-page .add-credits-hero-text,
html[dir="rtl"] .add-credits-page .add-credits-hero h1,
html[dir="rtl"] .add-credits-page .add-credits-hero .hero-subtitle,
html[dir="rtl"] .add-credits-page .add-credits-hero-text {
    text-align: start !important;
}

.add-credits-content {
    padding: 2rem 0 3.5rem;
}

.add-credits-container {
    max-width: 640px;
    margin: 0 auto;
}

@media (min-width: 900px) {
.add-credits-container {
        max-width: 1080px;
    }
}

.add-credits-balance {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.1rem;
    padding: 0.65rem 1.15rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
.add-credits-page .add-credits-hero {
        padding: 5.75rem 0 1.35rem;
    }

.add-credits-page .add-credits-hero .check-status-hero-content.add-credits-hero-content {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

.add-credits-page .add-credits-balance {
        padding: 0.55rem 0.9rem;
        align-self: center;
    }

.add-credits-page .add-credits-hero .hero-subtitle {
        font-size: 0.85rem;
    }
}

.add-credits-balance[hidden] {
    display: none !important;
}

.add-credits-balance strong {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.add-credits-skeleton {
    pointer-events: none;
}

.add-credits-skeleton__card {
    height: 92px;
    border-radius: 8px;
    background: #e8eaed;
    position: relative;
    overflow: hidden;
}

.add-credits-skeleton__cta {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    background: #e8eaed;
    position: relative;
    overflow: hidden;
    margin-top: 0.25rem;
}

.add-credits-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #14181b;
    margin: 0 0 0.85rem;
}

.add-credits-packages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
.add-credits-packages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem 1rem;
        margin-bottom: 1.5rem;
    }
}

.add-credits-packages.is-entering .add-credits-card {
    animation: add-credits-card-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--ac-stagger, 0ms);
}

.add-credits-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: start;
    padding: 0.95rem 1rem;
    border-radius: 8px;
    border: 2px solid #e0e3e7;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transform: translateZ(0);
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 900px) {
.add-credits-card {
        min-height: 118px;
        padding: 1.2rem 1.25rem;
        border-radius: 14px;
        gap: 1rem;
        box-shadow: none;
    }

.add-credits-card:hover {
        transform: translateY(-2px);
        box-shadow: none;
    }

.add-credits-card.is-selected {
        transform: translateY(-1px);
        box-shadow: none;
    }

.add-credits-card__icon {
        width: 2.6rem;
        height: 2.6rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: #f1f5f9;
        font-size: 1.2rem;
    }

.add-credits-card.is-selected .add-credits-card__icon {
        background: rgba(29, 78, 216, 0.12);
    }

.add-credits-card__title {
        font-size: 1.05rem;
    }

.add-credits-card__price {
        font-size: 1.4rem;
        font-weight: 700;
        color: #0f172a;
    }

.add-credits-card__price-was {
        display: inline-block;
        margin-inline-end: 0.4rem;
        font-size: 0.92em;
        font-weight: 600;
        color: #94a3b8;
        text-decoration: line-through;
    }

.add-credits-card__price-now {
        display: inline-block;
        color: #0f172a;
    }

.add-credits-card__hint {
        font-size: 0.82rem;
    }

.add-credits-card__check {
        font-size: 1.5rem;
    }

.add-credits-section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

.add-credits-cta {
        width: 100%;
        max-width: none;
        margin-inline: 0;
        display: flex;
        height: 54px;
        border-radius: 12px;
    }

.add-credits-skeleton__card {
        height: 118px;
        border-radius: 14px;
    }

.add-credits-skeleton__cta {
        max-width: none;
        margin-inline: 0;
        border-radius: 12px;
    }
}

.add-credits-card:hover {
    border-color: #93c5fd;
}

.add-credits-card:active {
    transform: scale(0.985);
}

@media (min-width: 900px) {
.add-credits-card:active {
        transform: translateY(0) scale(0.99);
    }
}

.add-credits-card.is-selected {
    border-color: #1d4ed8;
    background: #eef0ff;
    box-shadow: none;
}

.add-credits-card.is-selecting {
    animation: add-credits-select-pop 0.4s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.add-credits-card__icon {
    color: #64748b;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: color 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.add-credits-card.is-selected .add-credits-card__icon {
    color: #1d4ed8;
}

.add-credits-card.is-selecting .add-credits-card__icon {
    transform: scale(1.12);
}

.add-credits-card__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.add-credits-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.add-credits-card__title {
    font-weight: 800;
    color: #1d4ed8;
    font-size: 0.98rem;
}

.add-credits-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
}

.add-credits-card__badge.is-popular {
    background: #f57220;
}

.add-credits-card__badge.is-best {
    background: #d09b3f;
}

.add-credits-card__price {
    font-size: 1.25rem;
    font-weight: 500;
    color: #334155;
}

.add-credits-card__price-was {
    display: inline-block;
    margin-inline-end: 0.4rem;
    font-size: 0.92em;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

.add-credits-card__price-now {
    display: inline-block;
    color: #0f172a;
    font-weight: 600;
}

.add-credits-card__hint {
    font-size: 0.78rem;
    font-weight: 300;
    color: #57636c;
}

.add-credits-card__check {
    color: #94a3b8;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: color 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.add-credits-card.is-selected .add-credits-card__check {
    color: #1d4ed8;
}

.add-credits-card.is-selecting .add-credits-card__check {
    animation: add-credits-check-pop 0.4s cubic-bezier(0.2, 0.85, 0.25, 1);
}

@keyframes add-credits-card-in {
    from {
        opacity: 0;
        transform: translateY(0.55rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes add-credits-select-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes add-credits-check-pop {
    0% { transform: scale(0.7); opacity: 0.55; }
    55% { transform: scale(1.22); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes add-credits-cta-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.015); }
    100% { transform: scale(1); }
}

.add-credits-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 8px;
    background: #04a24c;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, filter 0.15s ease;
}

.add-credits-cta:hover:not(:disabled) {
    filter: brightness(1.05);
}

.add-credits-cta:disabled {
    background: rgba(4, 162, 76, 0.45);
    color: #011007;
    cursor: not-allowed;
}

.add-credits-cta.is-loading {
    opacity: 0.75;
    cursor: wait;
}

.add-credits-cta.is-pulse {
    animation: add-credits-cta-pulse 0.4s cubic-bezier(0.2, 0.85, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
.add-credits-packages.is-entering .add-credits-card,
    .add-credits-card.is-selecting,
    .add-credits-card.is-selecting .add-credits-card__check,
    .add-credits-cta.is-pulse {
        animation: none;
    }

.add-credits-card,
    .add-credits-card__icon,
    .add-credits-card__check {
        transition: none;
    }
}

.add-credits-secure {
    text-align: center;
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.add-credits-error {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #fff1f2;
    color: #be123c;
    font-size: 0.88rem;
    font-weight: 600;
}

.add-credits-state {
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.add-credits-state__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 1.25rem;
}

.add-credits-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 2px solid #dc2626;
    background: #fff;
    margin-bottom: 1rem;
}

.add-credits-banner[hidden] {
    display: none !important;
}

.add-credits-banner i {
    color: #dc2626;
    font-size: 1.25rem;
}

.add-credits-banner strong {
    display: block;
    color: #dc2626;
    font-size: 0.9rem;
}

.add-credits-banner p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #57636c;
}

.add-credits-banner__btn {
    margin-inline-start: auto;
    border: 0;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 560px) {
.add-credits-banner {
        flex-wrap: wrap;
    }

.add-credits-banner__btn {
        width: 100%;
        margin-inline-start: 0;
    }
}
