/* Plan Card */
.plan-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #4169e1;
}

/* Plan Badge */
.plan-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 40px;
    font-size: 11px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-header h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.plan-image-wrapper {
    width: 100%;
    height: 140px;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
}

.plan-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.plan-card:hover .plan-image {
    transform: scale(1.05);
}

/* ROI Badge */
.roi-badge {
    background: rgba(65, 105, 225, 0.1);
    border-radius: 40px;
    padding: 6px 16px;
    display: inline-block;
}

.roi-label {
    font-size: 11px;
    color: #64748b;
    margin-right: 6px;
}

.roi-value {
    font-size: 14px;
    font-weight: 700;
    color: #4169e1;
}

/* Plan Rate */
.plan-rate {
    text-align: center;
    padding: 16px 0;
    border-top: 1px dashed #e2e8f0;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 16px;
}

.rate-value {
    font-size: 36px;
    font-weight: 800;
    color: #4169e1;
    line-height: 1;
}

.rate-desc {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-duration {
    font-size: 11px;
    color: #1e293b;
    margin-top: 6px;
    font-weight: 500;
}

/* Plan Details */
.plan-details {
    margin-bottom: 20px;
    flex: 1;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.detail-item span:first-child {
    font-size: 13px;
    color: #64748b;
}

.detail-item span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.detail-item .highlight {
    color: #10b981;
}

/* Feature Badge */
.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(65, 105, 225, 0.08);
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 11px;
    color: #4169e1;
}

.feature-badge i {
    font-size: 12px;
}

/* Invest Button */
.invest-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4169e1, #2c3e50);
    border: none;
    border-radius: 40px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.invest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.3);
}

.invest-btn i {
    transition: transform 0.2s ease;
}

.invest-btn:hover i {
    transform: translateX(4px);
}

/* Modal */
.modal-content {
    border-radius: 28px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #4169e1, #2c3e50);
    padding: 20px 28px;
    border: none;
}

.modal-title {
    color: white;
    font-weight: 600;
    font-size: 20px;
}

.modal-title .planName {
    color: #ffd966;
    font-weight: 700;
}

.btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 28px;
}

/* Investment Summary */
.invest-summary {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.summary-item.highlight {
    background: rgba(65, 105, 225, 0.08);
    margin: 0 -20px -20px -20px;
    padding: 12px 20px;
    border-radius: 0 0 20px 20px;
}

.summary-item.highlight span:last-child {
    color: #4169e1;
    font-size: 18px;
    font-weight: 700;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-select,
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
}

.form-select:focus,
.form-control:focus {
    outline: none;
    border-color: #4169e1;
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

/* Amount Input Group */
.amount-input-group {
    position: relative;
}

.amount-input-group .form-control {
    padding-right: 70px;
}

.amount-input-group .currency {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 500;
}

/* Compound Input Group */
.compound-input-group {
    position: relative;
}

.compound-input-group .form-control {
    padding-right: 70px;
}

.compound-input-group .unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
}

/* Wallet Options */
.wallet-option[disabled] {
    color: #dc3545;
    text-decoration: line-through;
}

/* Wallet Status Message */
.wallet-status-message .alert {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 12px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.wallet-status-message .alert a {
    color: #4169e1;
    font-weight: 600;
    text-decoration: none;
}

/* Gateway Info */
.gateway-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
    border-left: 3px solid #4169e1;
    color: #1e293b;
}

.gateway-info i {
    color: #4169e1;
    margin-right: 6px;
}

/* Schedule Fields */
.schedule-fields {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #e2e8f0;
    gap: 12px;
}

.btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 40px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4169e1, #2c3e50);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    border: none;
    color: #1e293b;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Responsive */
@media (max-width: 992px) {
    .rate-value {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .plan-card {
        padding: 20px;
    }
    
    .plan-header h4 {
        font-size: 20px;
    }
    
    .rate-value {
        font-size: 28px;
    }
    
    .plan-image-wrapper {
        height: 120px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .invest-summary {
        padding: 16px;
    }
    
    .summary-item.highlight {
        margin: 0 -16px -16px -16px;
        padding: 10px 16px;
    }
}

@media (max-width: 576px) {
    .plan-card {
        padding: 16px;
    }
    
    .rate-value {
        font-size: 24px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}