/**
 * Billing CSS
 * Стили биллинга и пакетов
 */

/* ===== Billing Card ===== */
.billing-card {
    background: none;
    border: none;
    padding: 20px;
    margin-top: 14px;
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.billing-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.billing-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.billing-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.billing-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

/* ===== No Balance Banner ===== */
.no-balance-banner {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.no-balance-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.no-balance-title {
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.no-balance-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.no-balance-packages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== Billing Modal ===== */
.billing-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.billing-modal-content {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 440px;
    width: 90%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
}

.billing-modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-align: center;
}

.billing-packages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.package-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.package-card:hover,
.package-card.selected {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.package-card--disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.package-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.package-name {
    font-weight: 600;
    color: #fff;
}

.package-price {
    font-family: var(--font-display);
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.package-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.package-discount {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.billing-modal-close {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.billing-modal-close:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* ===== Billing History ===== */
.billing-history-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.billing-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.billing-history-item:last-child {
    border-bottom: none;
}

.history-item-info {
    display: flex;
    flex-direction: column;
}

.history-item-name {
    color: #fff;
    font-size: 0.9rem;
}

.history-item-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.history-item-amount {
    color: var(--accent-gold);
    font-weight: 600;
}

.history-item-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.history-item-status--completed {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.history-item-status--pending {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.history-item-status--failed {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.billing-history-empty {
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 40px 0;
}
