/* ============================================
   Recharge Modal - 充值模态框样式
   横向排布的套餐卡片设计
   ============================================ */

.recharge-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.recharge-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.recharge-modal {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.recharge-modal-overlay.active .recharge-modal {
    transform: scale(1) translateY(0);
}

/* Header */
.recharge-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.recharge-modal-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recharge-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-text-muted);
}

.recharge-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text-primary);
}

.recharge-modal-close svg {
    width: 20px;
    height: 20px;
}

/* Body */
.recharge-modal-body {
    padding: var(--spacing-xl);
}

/* Pricing Cards - 横向排布 */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Popular Badge */
.pricing-card.popular {
    border-color: #667eea;
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

/* Gradient Backgrounds */
.plan-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    z-index: 0;
}

.gradient-orange {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-pink {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Plan Content */
.plan-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: var(--spacing-sm);
}

.plan-price {
    margin-bottom: var(--spacing-xs);
}

.price-currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.price-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-text-heading);
    line-height: 1;
}

.price-period {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-left: 4px;
}

.plan-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Features List */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.plan-features li svg {
    width: 16px;
    height: 16px;
    color: #10b981;
    flex-shrink: 0;
}

/* Plan Button */
.plan-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.plan-button:active {
    transform: translateY(0);
}

.plan-button-alt {
    background: white;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    box-shadow: none;
}

.plan-button-alt:hover {
    background: var(--color-accent-glow);
}

/* Responsive - 平板 */
@media (max-width: 1024px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - 手机 */
@media (max-width: 640px) {
    .recharge-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .recharge-modal-header {
        padding: var(--spacing-md);
    }

    .recharge-modal-title {
        font-size: 20px;
    }

    .recharge-modal-body {
        padding: var(--spacing-md);
    }
}

/* 滚动条样式 */
.recharge-modal::-webkit-scrollbar {
    width: 6px;
}

.recharge-modal::-webkit-scrollbar-track {
    background: transparent;
}

.recharge-modal::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.recharge-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}