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

/* ===== Wardrobe Action Buttons ===== */
.wardrobe-buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.wardrobe-buttons .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
}

/* ===== Balance Modal Sections ===== */
.billing-modal-close-x {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.billing-modal-close-x:hover {
    color: #fff;
}

.balance-info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.balance-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.balance-info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.balance-info-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.balance-section-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    margin-top: 0;
}

.balance-packages-section {
    margin-bottom: 20px;
}

.balance-history-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

.activity-placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.95rem;
}

/* ===== Activity Stats ===== */
.activity-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
}

.activity-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-stat-row:last-child {
    border-bottom: none;
}

.activity-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.activity-stat-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--accent-gold);
}

/* ===== Activity Plays Section ===== */
.activity-plays-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-section-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-plays-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-play-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm, 6px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Inline Payment Method Selection ===== */
.payment-method-inline {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-method-inline .payment-method-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.payment-methods-inline {
    display: flex;
    gap: 10px;
}

.payment-method-btn-inline {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-btn-inline:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent-gold);
}

/* ===== 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: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    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;
}

/* ===== Payment Method Selection ===== */
.payment-method-selection {
    text-align: center;
}

.payment-method-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 4px;
}

.payment-method-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.payment-method-btn {
    flex: 1;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.payment-method-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.payment-method-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.payment-method-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.payment-method-currency {
    font-size: 0.8rem;
}

.currency-usd { color: #00ff88; }
.currency-eur { color: #00d4ff; }
.currency-rub { color: #ff6b9d; }

.payment-method-back {
    padding: 14px 28px;
    background: var(--accent-gold);
    border: none;
    border-radius: var(--radius-sm);
    color: #000;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method-back:hover {
    filter: brightness(1.1);
}

.payment-method-error {
    padding: 20px;
}

.payment-method-error p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

/* ===== Expandable Package Cards ===== */
.package-card-expandable {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
}

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

.package-card-main {
    padding: 16px;
    cursor: pointer;
}

.package-payment-methods {
    display: flex;
    gap: 10px;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.package-pay-btn {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.package-pay-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
}

/* ===== Mobile Adaptations ===== */
@media (max-width: 480px) {
    .activity-stat-value {
        font-size: 1.1rem;
    }

    .activity-stat-label {
        font-size: 0.85rem;
    }

    .activity-section-title {
        font-size: 0.8rem;
    }

    .activity-play-item {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}
