/* Investment Plans Page - Complete Stylesheet */

/* Hero Section Enhancement for Investment Plans Page */
.hero-section {
    background: linear-gradient(135deg, #0a101a 0%, #1a2040 50%, #0a101a 100%);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 153, 0, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 150px 2rem 4rem;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ffffff, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-text p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #bfc6e0;
    margin-bottom: 0;
    line-height: 1.6;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ff9900;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23ff9900;stop-opacity:0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23grad1)"/><circle cx="800" cy="300" r="150" fill="url(%23grad1)"/><circle cx="400" cy="700" r="120" fill="url(%23grad1)"/></svg>');
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}


/* Enhanced Mobile Breakpoints */
@media (max-width: 1200px) {
    .plans {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .plans-section {
        padding: 4rem 1.5rem 3rem;
    }
}

@media (max-width: 968px) {
    .hero-content {
        padding: 120px 1.5rem 3rem;
    }
    
    .plans-section {
        padding: 3rem 1.5rem 2.5rem;
    }
    
    .plans {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
    
    .plan {
        padding: 2rem;
        margin: 0 auto;
        width: 100%;
    }
    
    .plan.gold::after {
        right: 15px;
        top: -15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 45vh;
    }
    
    .hero-content {
        padding: 100px 1rem 2.5rem;
    }
    
    .plans-section {
        padding: 2.5rem 1rem 2rem;
    }
    
    .plans-section h2 {
        margin-bottom: 3rem;
    }
    
    .plan {
        padding: 1.8rem;
        border-radius: 20px;
    }
    
    .affiliate-levels {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .plan-min,
    .plan-max,
    .plan-once,
    .plan-capital {
        padding: 0.8rem 1rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .hero-content {
        padding: 90px 1rem 2rem;
    }
    
    .plans-section {
        padding: 2rem 0.8rem 1.5rem;
    }
    
    .plans-section h2 {
        margin-bottom: 2.5rem;
    }
    
    .plans {
        gap: 1.2rem;
        max-width: 360px;
    }
    
    .plan {
        padding: 1.5rem;
        border-radius: 18px;
    }
    
    .plan.gold::after {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        right: 10px;
        top: -14px;
    }
    
    .affiliate-levels {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .affiliate-levels span {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .plan-min,
    .plan-max,
    .plan-once,
    .plan-capital {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }
    
    .plan-affiliate {
        padding: 1rem;
        margin: 1.5rem 0 1rem;
    }
}

@media (max-width: 360px) {
    .hero-content {
        padding: 80px 0.8rem 1.5rem;
    }
    
    .plans-section {
        padding: 1.5rem 0.5rem 1rem;
    }
    
    .plans-section h2 {
        margin-bottom: 2rem;
    }
    
    .plans {
        max-width: 320px;
        gap: 1rem;
    }
    
    .plan {
        padding: 1.2rem;
    }
    
    .plan h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .plan-rate {
        font-size: 2rem;
    }
    
    .plan-period {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .plan-affiliate {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .affiliate-levels span {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .plan-min::before,
    .plan-max::before,
    .plan-once::before,
    .plan-capital::before {
        font-size: 1.1rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan {
    animation: fadeInUp 0.6s ease-out backwards;
}

.plan:nth-child(1) {
    animation-delay: 0.1s;
}

.plan:nth-child(2) {
    animation-delay: 0.2s;
}

.plan:nth-child(3) {
    animation-delay: 0.3s;
}

/* Subtle floating animation - disabled on mobile for performance */
@media (min-width: 969px) {
    @keyframes float {
        0%, 100% {
            transform: translateY(-8px);
        }
        50% {
            transform: translateY(-13px);
        }
    }
    
    .plan:hover {
        animation: float 3s ease-in-out infinite;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .plan:hover {
        transform: translateY(-5px);
        animation: none;
    }
    
    .plan-min:hover,
    .plan-max:hover,
    .plan-once:hover,
    .plan-capital:hover {
        transform: none;
    }
    
    .affiliate-levels span:hover {
        transform: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .plan {
        animation: none;
    }
    
    .plan:hover {
        animation: none;
    }
    
    .plan.bronze::after,
    .plan.silver::after,
    .plan.gold::before {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .plan {
        border: 2px solid #ff9900;
    }
    
    .plan-min,
    .plan-max,
    .plan-once,
    .plan-capital {
        border: 1px solid rgba(255, 153, 0, 0.5);
    }
}

/* Print styles */
@media print {
    .hero-bg {
        display: none;
    }
    
    .plans-section::before {
        display: none;
    }
    
    .plan {
        page-break-inside: avoid;
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .plan:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.plan:focus-within {
    outline: 3px solid #ff9900;
    outline-offset: 4px;
}

/* Ensure proper z-index stacking */
.navbar {
    z-index: 1000;
}

.mobile-nav {
    z-index: 999;
}

.mobile-overlay {
    z-index: 998;
}

.hero-section {
    z-index: 1;
}

.plans-section {
    z-index: 2;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: #ff9900;
    color: #000;
}

::-moz-selection {
    background: #ff9900;
    color: #000;
}