/* ===================================
   Payment Modal Styles
   Modern Glassmorphism Design
   =================================== */

.payment-modal {
    padding: 0 !important;
    overflow: hidden;
}

.payment-modal-header {
    text-align: center;
    padding: 32px 32px 24px;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 0, 0, 0.05) 0%, transparent 100%);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

/* Plan Selector Grid - 5 tiers */
.plan-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    color: #fff;
    text-align: center;
}

.plan-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.plan-card.active {
    background: rgba(var(--plan-color-rgb, 255, 0, 0), 0.15);
    border-color: var(--plan-color, #FF0000);
    box-shadow: 0 0 20px rgba(var(--plan-color-rgb, 255, 0, 0), 0.3);
}

.plan-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.plan-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.plan-card.active .plan-name {
    color: var(--plan-color, #fff);
}

.plan-price {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.plan-duration {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
}

.plan-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    background: #FF0000;
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 6px;
    text-transform: uppercase;
}

.plan-badge.vip {
    background: linear-gradient(135deg, #FFD700, #FF00FF);
}

/* Responsive plan grid */
@media (max-width: 500px) {
    .plan-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .plan-selector .plan-card:nth-child(4),
    .plan-selector .plan-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 380px) {
    .plan-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plan-selector .plan-card:last-child {
        grid-column: span 2;
    }
}

/* Selected plan features */
.selected-plan-features {
    margin: 16px 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.features-list li svg {
    flex-shrink: 0;
}

/* Duration Selector (kept for compatibility) */
.duration-selector {
    display: flex;
    gap: 8px;
    padding: 0 24px;
    margin-bottom: 20px;
}

.duration-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    color: #fff;
}

.duration-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.duration-btn.active {
    background: rgba(255, 0, 0, 0.1);
    border-color: #FF0000;
}

.duration-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.duration-btn.active .duration-label {
    color: #FF0000;
}

.duration-price {
    font-size: 14px;
    font-weight: 600;
}

.duration-tag {
    position: absolute;
    top: -8px;
    right: -4px;
    background: #00D9FF;
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
}

.duration-tag.save {
    background: #7CFC00;
}

/* Provider Selection */
.provider-section {
    padding: 0 24px;
    margin-bottom: 20px;
}

.section-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    display: block;
}

.provider-selector {
    display: flex;
    gap: 12px;
}

.provider-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    text-align: left;
}

.provider-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.provider-btn.active {
    background: rgba(124, 252, 0, 0.08);
    border-color: #7CFC00;
}

.provider-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.provider-info {
    display: flex;
    flex-direction: column;
}

.provider-name {
    font-size: 14px;
    font-weight: 600;
}

.provider-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* Phone Input */
.phone-input-section {
    padding: 0 24px;
    margin-bottom: 20px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #7CFC00;
    background: rgba(124, 252, 0, 0.05);
}

.country-code {
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.phone-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 12px;
    font-size: 16px;
    color: #fff;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.phone-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.phone-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

/* Price Summary */
.price-summary {
    margin: 0 24px 20px;
    padding: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
}

.total-amount {
    color: #7CFC00;
    font-size: 18px;
}

/* Pay Button */
.pay-button {
    margin: 0 24px 20px;
    width: calc(100% - 48px);
    padding: 16px;
    font-size: 16px;
    justify-content: center;
}

.pay-button .btn-loader {
    justify-content: center;
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.security-badge svg {
    stroke: rgba(255, 255, 255, 0.4);
}

/* Payment Status */
.payment-status {
    padding: 40px 24px;
    text-align: center;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.status-icon.pending {
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
}

.status-icon.pending .spinner-modern {
    border-color: rgba(0, 217, 255, 0.3);
    border-top-color: #00D9FF;
}

.status-icon.success {
    background: rgba(124, 252, 0, 0.1);
    border: 2px solid rgba(124, 252, 0, 0.3);
}

.status-icon.failed {
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid rgba(255, 68, 68, 0.3);
}

.status-icon.timeout {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.status-pending h3,
.status-success h3,
.status-failed h3,
.status-timeout h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.status-pending p,
.status-success p,
.status-failed p,
.status-timeout p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 8px;
}

.status-hint {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.status-timer {
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
    .modal-modern-content.payment-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .duration-selector {
        flex-wrap: wrap;
    }

    .duration-btn {
        flex: 1 1 calc(33.33% - 6px);
        min-width: calc(33.33% - 6px);
    }

    .provider-selector {
        flex-direction: column;
    }
}
