:root {
            --primary: #2563EB;
            --primary-dark: #1E40AF;
            --primary-light: #DBEAFE;
            --text-primary: #1E293B;
            --text-secondary: #475569;
            --accent: #10B981;
            --accent-dark: #059669;
            --dark: #0F172A;
            --gray-900: #1E293B;
            --gray-700: #334155;
            --gray-500: #64748B;
            --gray-300: #CBD5E1;
            --gray-100: #F1F5F9;
            --white: #FFFFFF;
            --bg-primary: #FFFFFF;
            --bg-secondary: #F8FAFC;
            --border: #E2E8F0;
            --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
            --shadow: 0 4px 6px rgba(15, 23, 42, 0.07);
            --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.1);
            --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.12);
            --font-display: 'Outfit', system-ui, sans-serif;
            --font-body: 'DM Sans', system-ui, sans-serif;
            --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-body);
            color: var(--gray-900);
            background: var(--bg-secondary);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            margin-top: 140px;
        }

        /* ===== Navigation ===== */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 1.25rem 5%; /* slightly larger to fit wider logo */
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            transition: var(--transition-smooth);
            min-height: 120px; /* ensures the navbar has room for the logo */
        }

        .navbar.scrolled {
            padding: 1rem 5%;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: var(--shadow-soft);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
        }

        .logo-icon { display: none; }

        .logo-img {
            width: 230px;
            height: 100px;
            border-radius: 14px;
            display: inline-block;
            object-fit: cover;
            padding: 8px 10px; /* keep rectangular padding */
        }

        /* hide textual logo in navbar */
        .logo-text { display: none; }

        .logo-text {
            font-family: var(--font-display);
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .logo-text span {
            color: var(--primary-color);
            font-weight: 600;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 2.5rem;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 0.95rem;
            transition: var(--transition-smooth);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: var(--transition-smooth);
        }

        .nav-links a:hover {
            color: var(--text-primary);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-cta {
            background: var(--gradient-primary);
            color: white !important;
            padding: 0.75rem 1.75rem;
            border-radius: 50px;
            font-weight: 600;
            box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
            transition: var(--transition-smooth);
        }

        .nav-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 30px rgba(0, 102, 255, 0.5);
        }

        .nav-cta::after {
            display: none !important;
        }

        .logout-btn {
            padding: 0.75rem 1.5rem;
            background: linear-gradient(135deg, #EF4444, #DC2626);
            color: white;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .logout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
        }

        .mobile-menu-btn {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 5px;
        }

        .mobile-menu-btn span {
            width: 25px;
            height: 2px;
            background: var(--text-primary);
            transition: var(--transition-smooth);
        }

        /* ========== PAYMENT WRAPPER ========== */
        .payment-wrapper {
            min-height: 100vh;
            padding: 120px 5% 60px;
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--primary-light) 50%, var(--bg-secondary) 100%);
        }

        .payment-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 420px 1fr;
            gap: 2.5rem;
            align-items: start;
        }

        /* ========== ORDER SUMMARY ========== */
        .order-summary {
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: var(--shadow-lg);
            position: sticky;
            top: 100px;
        }

        .summary-header {
            padding-bottom: 1.5rem;
            border-bottom: 2px solid var(--border);
            margin-bottom: 1.5rem;
        }

        .summary-title {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 0.5rem;
        }

        .summary-subtitle {
            color: var(--gray-500);
            font-size: 0.95rem;
        }

        .order-items {
            margin-bottom: 1.5rem;
        }

        .order-item {
            padding: 1.25rem;
            background: var(--bg-secondary);
            border-radius: 12px;
            margin-bottom: 1rem;
        }

        .item-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 0.75rem;
        }

        .item-name {
            font-weight: 700;
            color: var(--gray-900);
            font-size: 1.05rem;
            line-height: 1.3;
        }

        .item-price {
            font-family: var(--font-display);
            font-weight: 700;
            color: var(--primary);
            font-size: 1.125rem;
        }

        .item-details {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .item-detail {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            color: var(--gray-500);
        }

        .item-detail i {
            color: var(--primary);
            width: 16px;
        }

        .training-mode-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.375rem 0.75rem;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: var(--white);
            border-radius: 50px;
            font-size: 0.8125rem;
            font-weight: 700;
            margin-top: 0.5rem;
        }

        .price-breakdown {
            padding: 1.5rem 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            margin-bottom: 1.5rem;
        }

        .price-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
        }

        .price-row:last-child {
            margin-bottom: 0;
        }

        .price-label {
            color: var(--gray-500);
            font-size: 0.95rem;
        }

        .price-value {
            font-weight: 600;
            color: var(--gray-900);
        }

        .total-row {
            padding-top: 1rem;
            border-top: 1px solid var(--border);
            margin-top: 0.75rem;
        }

        .total-label {
            font-family: var(--font-display);
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--gray-900);
        }

        .total-value {
            font-family: var(--font-display);
            font-size: 1.75rem;
            font-weight: 800;
            color: var(--primary);
        }

        .installment-info {
            background: var(--primary-light);
            border: 1px solid rgba(37, 99, 235, 0.2);
            border-radius: 12px;
            padding: 1rem;
            margin-top: 1rem;
        }

        .installment-info-title {
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .installment-schedule {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .installment-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            background: var(--white);
            border-radius: 8px;
        }

        .installment-label {
            font-weight: 600;
            color: var(--gray-700);
        }

        .installment-details {
            text-align: right;
        }

        .installment-amount {
            font-family: var(--font-display);
            font-weight: 700;
            color: var(--primary);
            display: block;
        }

        .installment-date {
            font-size: 0.875rem;
            color: var(--gray-500);
            margin-top: 0.25rem;
        }

        .security-badge {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 12px;
            margin-top: 1.5rem;
        }

        .security-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--accent);
            color: var(--white);
            border-radius: 10px;
            font-size: 1.125rem;
        }

        .security-text {
            flex: 1;
        }

        .security-text strong {
            display: block;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 0.25rem;
        }

        .security-text span {
            font-size: 0.875rem;
            color: var(--gray-500);
        }

        /* ========== PAYMENT OPTIONS ========== */
        .payment-section {
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 3rem;
            box-shadow: var(--shadow-lg);
        }

        .section-header {
            margin-bottom: 2.5rem;
        }

        .section-title {
            font-family: var(--font-display);
            font-size: 2rem;
            font-weight: 800;
            color: var(--gray-900);
            margin-bottom: 0.75rem;
        }

        .section-description {
            color: var(--gray-500);
            font-size: 1.05rem;
        }

        .payment-methods {
            display: grid;
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }

        .payment-method {
            border: 2px solid var(--border);
            border-radius: 16px;
            padding: 1.75rem;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .payment-method:hover {
            border-color: var(--primary);
            background: var(--primary-light);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .payment-method.selected {
            border-color: var(--primary);
            background: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .method-header {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            margin-bottom: 1rem;
        }

        .method-radio {
            width: 24px;
            height: 24px;
            accent-color: var(--primary);
            cursor: pointer;
        }

        .method-icon {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 1.75rem;
        }

        .method-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 8px;
        }

        .method-info {
            flex: 1;
        }

        .method-name {
            font-family: var(--font-display);
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 0.25rem;
        }

        .method-description {
            font-size: 0.95rem;
            color: var(--gray-500);
        }

        .method-badges {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.75rem;
            flex-wrap: wrap;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.375rem 0.75rem;
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 50px;
            font-size: 0.8125rem;
            font-weight: 600;
        }

        .badge i {
            font-size: 0.75rem;
        }

        .badge.popular {
            background: linear-gradient(135deg, #FFB800, #FF8C00);
            color: var(--white);
            border: none;
        }

        .badge.recommended {
            background: linear-gradient(135deg, var(--accent), var(--accent-dark));
            color: var(--white);
            border: none;
        }

        /* Payment Form */
        .payment-form {
            display: none;
            padding: 1.5rem;
            background: var(--bg-secondary);
            border-radius: 12px;
            margin-top: 1.5rem;
            animation: slideDown 0.3s ease;
        }

        .payment-form.active {
            display: block;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-group {
            margin-bottom: 1.25rem;
        }

        .form-label {
            display: block;
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }

        .form-input {
            width: 100%;
            padding: 0.875rem 1.125rem;
            border: 1.5px solid var(--border);
            border-radius: 12px;
            font-size: 0.95rem;
            font-family: var(--font-body);
            color: var(--gray-900);
            background: var(--white);
            transition: all 0.2s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        .payment-actions {
            display: flex;
            gap: 1rem;
            margin-top: 2.5rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border);
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 1.125rem 2rem;
            border: none;
            border-radius: 12px;
            font-family: var(--font-body);
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: var(--white);
            flex: 1;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn-secondary {
            background: var(--white);
            color: var(--gray-700);
            border: 1.5px solid var(--border);
        }

        .btn-secondary:hover {
            background: var(--bg-secondary);
            border-color: var(--primary);
        }

        /* Payment Logos */
        .payment-logos {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border);
        }

        .logo-item {
            opacity: 0.6;
            transition: opacity 0.2s ease;
            height: 32px;
        }

        .logo-item:hover {
            opacity: 1;
        }

        /* Success Modal */
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(4px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .modal.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: var(--white);
            border-radius: 20px;
            padding: 3rem;
            max-width: 500px;
            width: 100%;
            text-align: center;
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-icon {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, var(--accent), var(--accent-dark));
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            margin: 0 auto 1.5rem;
            box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
        }

        .modal-title {
            font-family: var(--font-display);
            font-size: 2rem;
            font-weight: 800;
            color: var(--gray-900);
            margin-bottom: 1rem;
        }

        .modal-message {
            font-size: 1.125rem;
            color: var(--gray-500);
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .modal-actions {
            display: flex;
            gap: 1rem;
        }

        /* Loader */
        .loader {
            display: none;
            width: 40px;
            height: 40px;
            border: 4px solid var(--primary-light);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .processing {
            text-align: center;
            padding: 2rem;
        }

        .processing .loader {
            display: block;
            margin-bottom: 1.5rem;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .payment-container {
                grid-template-columns: 1fr;
            }

            .order-summary {
                position: relative;
                top: 0;
            }
        }

        @media (max-width: 768px) {
            .payment-wrapper {
                padding: 100px 5% 40px;
            }

            .payment-section {
                padding: 2rem;
            }

            .payment-actions {
                flex-direction: column-reverse;
            }

            .payment-logos {
                flex-wrap: wrap;
                gap: 1rem;
            }
        }

        /* ===== Footer ===== */
        .footer {
            background: linear-gradient(135deg, #0A0E27 0%, #1E293B 100%);
            color: #E2E8F0;
            padding: 4rem 5% 2rem;
            position: relative;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 3rem;
            padding-bottom: 3rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-brand {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
        }

        .footer-logo-icon { display: none; }

        .footer-logo-img {
            width: 120px;
            height: 72px;
            border-radius: 14px;
            display: inline-block;
            object-fit: cover;
            padding: 8px 10px;
        }

        .footer-logo-text {
            font-family: var(--font-display);
            font-size: 1.35rem;
            font-weight: 700;
            color: white;
        }

        .footer-logo-text span {
            color: var(--primary-light);
        }

        .footer-description {
            font-size: 0.9375rem;
            line-height: 1.8;
            color: #94A3B8;
        }

        .footer-social {
            display: flex;
            gap: 0.75rem;
        }

        .footer-social-link {
            width: 45px;
            height: 45px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94A3B8;
            font-size: 1.125rem;
            text-decoration: none;
            transition: var(--transition-smooth);
        }

        .footer-social-link:hover {
            background: var(--gradient-primary);
            color: white;
            border-color: var(--primary-color);
            transform: translateY(-3px);
        }

        .footer-column h4 {
            font-family: var(--font-display);
            font-size: 1.125rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: white;
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .footer-links a {
            color: #94A3B8;
            text-decoration: none;
            font-size: 0.9375rem;
            transition: var(--transition-smooth);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .footer-links a:hover {
            color: var(--primary-light);
            transform: translateX(5px);
        }

        .footer-links a i {
            font-size: 0.75rem;
            opacity: 0;
            transition: var(--transition-smooth);
        }

        .footer-links a:hover i {
            opacity: 1;
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 0 auto;
            padding-top: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .footer-copyright {
            font-size: 0.875rem;
            color: #94A3B8;
        }

        .footer-bottom-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .footer-bottom-links a {
            color: #94A3B8;
            text-decoration: none;
            font-size: 0.875rem;
            transition: var(--transition-smooth);
        }

        .footer-bottom-links a:hover {
            color: var(--primary-light);
        }


        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                flex-direction: column;
                background: rgba(255, 255, 255, 0.98);
                padding: 2rem;
                gap: 1.5rem;
                border-bottom: 1px solid var(--border-color);
                box-shadow: var(--shadow-medium);
            }

            .nav-links.active {
                display: flex;
            }

            .mobile-menu-btn {
                display: flex;
            }

            .hero {
                padding: 100px 5% 60px;
            }

            .hero-title {
                font-size: 2rem;
            }

            .hero-stats {
                flex-direction: column;
                gap: 1.5rem;
                align-items: center;
            }

            .stat-item {
                text-align: center;
            }

            .hero-image-container {
                max-width: 350px;
                margin-bottom: 1rem;
            }

            .floating-cards-wrapper {
                position: relative;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 0.75rem;
                margin-top: 1.5rem;
            }

            .floating-card {
                position: relative;
                top: auto !important;
                left: auto !important;
                right: auto !important;
                bottom: auto !important;
                animation: none;
                flex-shrink: 0;
            }

            .hero-visual {
                flex-direction: column;
            }

            .btn {
                padding: 0.875rem 1.5rem;
                font-size: 0.9rem;
            }
        }


        /* Responsive Contact & Footer */
        @media (max-width: 1024px) {
            .contact-content {
                grid-template-columns: 1fr;
                gap: 3rem;
            }

            .footer-content {
                grid-template-columns: repeat(2, 1fr);
            }

            .footer-brand {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 768px) {
            .contact-section {
                padding: 60px 5%;
            }

            .contact-form-wrapper {
                padding: 2rem;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .footer {
                padding: 3rem 5% 1.5rem;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }

            .footer-bottom-links {
                flex-direction: column;
                gap: 0.75rem;
            }
        }