/* Investment Page Styles */

.invest-container {
    min-height: calc(100vh - 80px);
    padding-top: 40px;
    padding-bottom: 40px;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Plan Cards */
.plan-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    pointer-events: auto;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.5rem 2rem;
    font-weight: 700;
    font-size: 0.85rem;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.plan-header {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-header.bronze {
    background: linear-gradient(135deg, #CD7F32, #B87333);
}

.plan-header.silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
}

.plan-header.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.plan-header.premium {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.plan-header h3 {
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.plan-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: white;
    backdrop-filter: blur(10px);
}

.plan-body {
    padding: 2.5rem 2rem;
    background: var(--card-bg);
}

.plan-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #B8B8B8;
    vertical-align: top;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
}

.plan-price .period {
    font-size: 1rem;
    color: #B8B8B8;
    font-weight: 500;
}

.plan-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    color: #FFFFFF;
}

.feature-item i {
    color: #00B894;
    font-size: 1.2rem;
}

.feature-item strong {
    color: var(--primary-color);
}

.btn-plan {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    pointer-events: auto !important;
    z-index: 10;
    position: relative;
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-plan:active {
    transform: translateY(0);
}

.btn-plan:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.btn-plan[style*="display: inline-block"],
.btn-plan[style*="display:block"] {
    display: inline-block !important;
}

/* Ensure calculator invest button is always visible and enabled */
#calculatorInvestBtn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

#calculatorInvestBtn:disabled {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Calculator Card */
.calculator-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.calculator-card h4 {
    font-weight: 700;
    color: #FFFFFF;
}

.calculator-results {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.result-item span {
    color: #B8B8B8;
    font-weight: 500;
}

.result-item strong {
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-body .form-control,
.modal-body .form-select {
    border-radius: 10px;
    border: 2px solid #E9ECEF;
    padding: 0.8rem 1rem;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: 10px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
    
    .plan-price .amount {
        font-size: 2.5rem;
    }
}

