/* Extracted from pages/membership.php */
:root {
            --primary-color: #1a365d;
            --secondary-color: #2b6cb0;
            --premium-color: #d69e2e;
            --success-color: #38a169;
            --danger-color: #e53e3e;
            --text-color: #2d3748;
            --light-bg: #f8f9fa;
            --border-color: #e2e8f0;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.7;
            color: var(--text-color);
            background-color: var(--light-bg);
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Section */
        .membership-header {
            background: linear-gradient(135deg, var(--primary-color), #0f2547);
            color: white;
            padding: 80px 0;
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
        }
        
        .membership-header::before {
            content: '';
            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 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
            background-size: cover;
        }
        
        .membership-header h1 {
            font-size: 3rem;
            margin-bottom: 15px;
            font-weight: 800;
            position: relative;
            z-index: 1;
        }
        
        .membership-header p {
            font-size: 1.3rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }
        
        .premium-badge {
            background: linear-gradient(135deg, var(--premium-color), #b7791f);
            color: white;
            padding: 10px 25px;
            border-radius: 25px;
            display: inline-block;
            margin-top: 25px;
            font-weight: 600;
            font-size: 1.1rem;
            position: relative;
            z-index: 1;
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        /* Main Content */
        .membership-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
            margin-bottom: 60px;
        }
        
        /* Membership Card */
        .membership-card {
            background: white;
            border-radius: 15px;
            padding: 50px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
            border: 3px solid var(--premium-color);
            position: relative;
            overflow: hidden;
        }
        
        .membership-card::before {
            content: 'PREMIUM';
            position: absolute;
            top: 20px;
            right: -40px;
            background: var(--premium-color);
            color: white;
            padding: 8px 40px;
            transform: rotate(45deg);
            font-weight: 700;
            font-size: 0.9rem;
            letter-spacing: 2px;
        }
        
        .card-title {
            color: var(--primary-color);
            font-size: 2.2rem;
            margin-bottom: 25px;
            text-align: center;
        }
        
        /* Features Grid */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin: 40px 0;
        }
        
        .feature-item {
            background: #f7fafc;
            border-radius: 10px;
            padding: 25px;
            display: flex;
            align-items: flex-start;
            gap: 15px;
            border-left: 4px solid var(--secondary-color);
            transition: all 0.3s ease;
        }
        
        .feature-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .feature-icon {
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            flex-shrink: 0;
        }
        
        .feature-content h3 {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-size: 1.2rem;
        }
        
        /* Pricing Section */
        .pricing-section {
            background: linear-gradient(135deg, #f0f9ff, #e6fffa);
            border-radius: 10px;
            padding: 40px;
            margin: 40px 0;
            text-align: center;
        }
        
        .pricing-title {
            color: var(--primary-color);
            font-size: 1.8rem;
            margin-bottom: 25px;
        }
        
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }
        
        .currency-card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border: 2px solid var(--border-color);
        }
        
        .currency-card.featured {
            border-color: var(--premium-color);
            transform: scale(1.05);
            position: relative;
        }
        
        .currency-card.featured::after {
            content: 'POPULAR';
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--premium-color);
            color: white;
            padding: 4px 15px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        .currency-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--primary-color);
        }
        
        .currency-amount {
            font-size: 2rem;
            font-weight: 800;
            color: var(--premium-color);
            margin-bottom: 10px;
        }
        
        .currency-name {
            color: var(--text-color);
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .duration-note {
            font-size: 0.9rem;
            color: #718096;
            margin-top: 5px;
        }
        
        /* Flexibility Banner */
        .flexibility-banner {
            background: linear-gradient(135deg, #f0fff4, #c6f6d5);
            border-left: 4px solid var(--success-color);
            padding: 25px;
            border-radius: 8px;
            margin: 25px 0;
            text-align: center;
        }
        
        .flexibility-banner h3 {
            color: var(--success-color);
            font-size: 1.4rem;
            margin-bottom: 10px;
        }
        
        /* Member Badge Display */
        .badge-section {
            text-align: center;
            margin: 40px 0;
        }
        
        .badge-display {
            display: inline-block;
            background: linear-gradient(135deg, var(--premium-color), #b7791f);
            color: white;
            padding: 15px 40px;
            border-radius: 30px;
            font-size: 1.3rem;
            font-weight: 700;
            margin: 20px 0;
            box-shadow: 0 10px 20px rgba(214, 158, 46, 0.2);
            border: 3px solid white;
            outline: 2px solid var(--premium-color);
        }
        
        .badge-display i {
            margin-right: 10px;
        }
        
        /* Terms Section */
        .terms-notice {
            background: linear-gradient(135deg, #fff5f5, #fed7d7);
            border-left: 4px solid var(--danger-color);
            padding: 25px;
            border-radius: 8px;
            margin: 30px 0;
            text-align: center;
        }
        
        .terms-notice h3 {
            color: var(--danger-color);
            font-size: 1.4rem;
            margin-bottom: 10px;
        }
        
        /* CTA Button Section */
        .cta-section {
            text-align: center;
            margin: 50px 0;
        }
        
        .cta-button {
            background: linear-gradient(135deg, var(--premium-color), #b7791f);
            color: white;
            border: none;
            padding: 20px 60px;
            border-radius: 10px;
            font-size: 1.3rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .cta-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(214, 158, 46, 0.3);
        }
        
        .cta-button i {
            margin-right: 12px;
        }
        
        /* Features List */
        .features-list {
            background: #f7fafc;
            border-radius: 10px;
            padding: 30px;
            margin-top: 40px;
        }
        
        .features-list h3 {
            color: var(--primary-color);
            margin-bottom: 20px;
            font-size: 1.4rem;
        }
        
        .features-list ul {
            margin-left: 20px;
            color: #4a5568;
        }
        
        .features-list li {
            margin-bottom: 10px;
        }
        
        /* Duration Info */
        .duration-info {
            background: linear-gradient(135deg, #f0f9ff, #e6fffa);
            border-left: 4px solid var(--secondary-color);
            padding: 20px;
            border-radius: 8px;
            margin: 30px 0;
            text-align: center;
        }
        
        .duration-info h3 {
            color: var(--secondary-color);
            margin-bottom: 10px;
            font-size: 1.3rem;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .membership-header {
                padding: 50px 0;
            }
            
            .membership-header h1 {
                font-size: 2.2rem;
            }
            
            .membership-card {
                padding: 30px 20px;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .pricing-grid {
                grid-template-columns: 1fr;
            }
            
            .currency-card.featured {
                transform: none;
            }
            
            .cta-button {
                padding: 15px 40px;
                font-size: 1.1rem;
            }
        }
    
        /* Universal public-page compatibility with shared header/nav/footer */
        main, .main-content {
            width: 100%;
            max-width: 100%;
            overflow-x: clip;
        }

        main *, main *::before, main *::after,
        .main-content *, .main-content *::before, .main-content *::after {
            min-width: 0;
        }

        main img, main video, main iframe,
        .main-content img, .main-content video, .main-content iframe {
            max-width: 100%;
            height: auto;
        }

        main table, .main-content table {
            max-width: 100%;
        }

        @media (max-width: 768px) {
            main .container,
            .main-content .container {
                width: 100%;
                max-width: 100%;
                padding-left: 14px;
                padding-right: 14px;
            }

            main [style*="grid-template-columns"],
            .main-content [style*="grid-template-columns"] {
                grid-template-columns: 1fr !important;
            }

            main [style*="display: flex"],
            .main-content [style*="display: flex"] {
                flex-wrap: wrap;
            }

            .page-header,
            .policy-header,
            .terms-header,
            .membership-header {
                padding-left: 18px !important;
                padding-right: 18px !important;
                overflow-wrap: anywhere;
            }
        }
