* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
            color: #ffffff;
            overflow-x: hidden;
            min-height: 100vh;
        }

        /* Header */
        .header {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            padding: 15px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .logo {
            font-size: 28px;
            font-weight: bold;
            background: linear-gradient(45deg, #00ff88, #00ccff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
        }

        .back-link {
            color: #00ff88;
            text-decoration: none;
            padding: 10px 20px;
            border: 1px solid #00ff88;
            border-radius: 25px;
            transition: all 0.3s ease;
        }

        .back-link:hover {
            background: #00ff88;
            color: #000;
        }

        /* Main Payment Container */
        .payment-container {
            max-width: 1200px;
            margin: 120px auto 50px;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }

        .payment-section {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 40px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .section-title {
            font-size: 2rem;
            margin-bottom: 30px;
            background: linear-gradient(45deg, #ffffff, #00ff88);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-align: center;
        }

        /* Plan Selection */
        .plan-selector {
            margin-bottom: 30px;
        }

        .plan-options {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .plan-option {
            position: relative;
            padding: 20px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.02);
        }

        .plan-option:hover {
            border-color: #00ff88;
            background: rgba(0, 255, 136, 0.05);
        }

        .plan-option.selected {
            border-color: #00ff88;
            background: rgba(0, 255, 136, 0.1);
            box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
        }

        .plan-option input[type="radio"] {
            position: absolute;
            opacity: 0;
        }

        .plan-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .plan-name {
            font-size: 1.3rem;
            font-weight: bold;
            color: #00ff88;
        }

        .plan-price {
            font-size: 1.5rem;
            color: #00ccff;
            font-weight: bold;
        }

        .original-price {
            text-decoration: line-through;
            color: #ff6b6b;
            font-size: 1rem;
            margin-right: 10px;
        }

        .plan-features {
            list-style: none;
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .plan-features li {
            margin-bottom: 5px;
            padding-left: 20px;
            position: relative;
        }

        .plan-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #00ff88;
            font-weight: bold;
        }

        .popular-badge {
            position: absolute;
            top: -10px;
            right: 15px;
            background: linear-gradient(45deg, #ff6b6b, #ff8e53);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
        }

        /* Registration Form */
        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #00ff88;
            font-weight: bold;
            font-size: 0.95rem;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 15px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #00ff88;
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
            background: rgba(255, 255, 255, 0.08);
        }

         .form-group select option {
            background: #1a1a2e;
            color: white;
            padding: 10px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        /* Cryptocurrency Payment Section */
        .crypto-payment {
            margin-top: 30px;
        }

        .crypto-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .crypto-option {
            position: relative;
            padding: 20px 15px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            background: rgba(255, 255, 255, 0.02);
        }

        .crypto-option:hover {
            border-color: #00ff88;
            background: rgba(0, 255, 136, 0.05);
        }

        .crypto-option.selected {
            border-color: #00ff88;
            background: rgba(0, 255, 136, 0.1);
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
        }

        .crypto-option input[type="radio"] {
            position: absolute;
            opacity: 0;
        }

        .crypto-icon {
            font-size: 2rem;
            margin-bottom: 10px;
            display: block;
        }

        .crypto-name {
            font-weight: bold;
            font-size: 0.9rem;
        }

        /* Network Selection */
        .network-selection {
            margin: 25px 0;
            padding: 20px;
            background: rgba(0, 204, 255, 0.05);
            border-radius: 12px;
            border: 1px solid rgba(0, 204, 255, 0.2);
        }

        .network-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .network-option {
            position: relative;
            padding: 15px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.02);
        }

        .network-option:hover {
            border-color: #00ccff;
            background: rgba(0, 204, 255, 0.05);
        }

        .network-option.selected {
            border-color: #00ccff;
            background: rgba(0, 204, 255, 0.1);
            box-shadow: 0 0 15px rgba(0, 204, 255, 0.2);
        }

        .network-option input[type="radio"] {
            position: absolute;
            opacity: 0;
        }

        .network-info {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .network-name {
            font-weight: bold;
            color: #00ccff;
            font-size: 0.95rem;
        }

        .network-fee {
            font-size: 0.8rem;
            opacity: 0.8;
            color: #00ff88;
        }

        .network-warning {
            background: rgba(255, 165, 0, 0.1);
            border: 1px solid rgba(255, 165, 0, 0.3);
            color: #ffa500;
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
            font-size: 0.9rem;
        }

        /* Payment Details */
        .payment-details {
            background: rgba(0, 0, 0, 0.3);
            padding: 25px;
            border-radius: 15px;
            margin: 25px 0;
            border: 1px solid rgba(0, 255, 136, 0.2);
        }

        .payment-info {
            display: none;
            animation: fadeIn 0.5s ease-in-out;
        }

        .payment-info.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .wallet-address {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 8px;
            margin: 15px 0;
            word-break: break-all;
            font-family: monospace;
            font-size: 0.9rem;
            border: 1px dashed rgba(0, 255, 136, 0.3);
        }

        .copy-button {
            background: #00ff88;
            color: #000;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: bold;
            margin-top: 10px;
            transition: all 0.3s ease;
        }

        .copy-button:hover {
            background: #00ccff;
            transform: translateY(-1px);
        }

        .qr-code {
            width: 150px;
            height: 150px;
            background: #fff;
            margin: 20px auto;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #000;
            font-weight: bold;
        }

        /* File Upload */
        .file-upload {
            margin-top: 25px;
        }

        .upload-area {
            border: 2px dashed rgba(0, 255, 136, 0.3);
            border-radius: 15px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.02);
        }

        .upload-area:hover {
            border-color: #00ff88;
            background: rgba(0, 255, 136, 0.05);
        }

        .upload-area.dragover {
            border-color: #00ccff;
            background: rgba(0, 204, 255, 0.1);
        }

        .upload-icon {
            font-size: 3rem;
            margin-bottom: 15px;
            opacity: 0.7;
        }

        .file-input {
            display: none;
        }

        .uploaded-file {
            background: rgba(0, 255, 136, 0.1);
            padding: 15px;
            border-radius: 10px;
            margin-top: 15px;
            border: 1px solid #00ff88;
            display: none;
            align-items: center;
            gap: 15px;
        }

        .file-info {
            flex-grow: 1;
        }

        .file-name {
            font-weight: bold;
            margin-bottom: 5px;
        }

        .file-size {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .remove-file {
            background: #ff4757;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.8rem;
        }

        /* Order Summary */
        .order-summary {
            background: rgba(0, 0, 0, 0.3);
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 30px;
            border: 1px solid rgba(0, 255, 136, 0.2);
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            padding: 10px 0;
        }

        .summary-row.total {
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            margin-top: 20px;
            padding-top: 20px;
            font-weight: bold;
            font-size: 1.2rem;
            color: #00ff88;
        }

        .discount {
            color: #00ff88;
            font-weight: bold;
        }

        /* Submit Button */
        .submit-payment {
            width: 100%;
            background: linear-gradient(45deg, #00ff88, #00ccff);
            color: #000;
            padding: 20px;
            border: none;
            border-radius: 15px;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
            margin-top: 20px;
        }

        .submit-payment:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0, 255, 136, 0.5);
        }

        .submit-payment:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Security Features */
        .security-features {
            margin-top: 30px;
            padding: 20px;
            background: rgba(0, 255, 136, 0.05);
            border-radius: 10px;
            border: 1px solid rgba(0, 255, 136, 0.2);
        }

        .security-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            font-size: 0.9rem;
        }

        .security-icon {
            margin-right: 10px;
            color: #00ff88;
        }

        /* Progress Steps */
        .progress-steps {
            display: flex;
            justify-content: space-between;
            margin-bottom: 40px;
            position: relative;
        }

        .progress-steps::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 2px;
            background: rgba(255, 255, 255, 0.2);
            z-index: 1;
        }

        .progress-steps::after {
            content: '';
            position: absolute;
            top: 20px;
            left: 0;
            width: 66.66%;
            height: 2px;
            background: #00ff88;
            z-index: 2;
            transition: width 0.5s ease;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 3;
        }

        .step-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #00ff88;
            color: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .step-circle.inactive {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }

        .step-label {
            font-size: 0.9rem;
            text-align: center;
        }

        /* Crypto Price Display */
        .crypto-price {
            background: rgba(0, 204, 255, 0.1);
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
            border: 1px solid rgba(0, 204, 255, 0.3);
            text-align: center;
        }

        .price-amount {
            font-size: 1.3rem;
            font-weight: bold;
            color: #00ccff;
        }

        .price-note {
            font-size: 0.8rem;
            opacity: 0.8;
            margin-top: 5px;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .payment-container {
                grid-template-columns: 1fr;
                gap: 30px;
                margin-top: 100px;
            }
            
            .form-row {
                grid-template-columns: 1fr;
            }
            
            .crypto-options {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .progress-steps {
                flex-direction: column;
                gap: 20px;
            }
            
            .progress-steps::before,
            .progress-steps::after {
                display: none;
            }
        }

        /* Animation for form validation */
        .error {
            border-color: #ff4757 !important;
            animation: shake 0.5s ease-in-out;
        }

        @keyframes shake {
            0%, 20%, 40%, 60%, 80% { transform: translateX(-5px); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(5px); }
            100% { transform: translateX(0); }
        }

        .success-message {
            background: rgba(0, 255, 136, 0.1);
            border: 1px solid #00ff88;
            color: #00ff88;
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            text-align: center;
            display: none;
        }

        
       /* Footer */
        .footer {
            background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
            padding: 60px 20px 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }

        .footer-section h3 {
            color: #00ff88;
            margin-bottom: 20px;
            font-size: 1.3rem;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 10px;
        }

        .footer-section ul li a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-section ul li a:hover {
            color: #00ff88;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-link {
            display: inline-block;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            text-align: center;
            line-height: 40px;
            color: #fff;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background: #00ff88;
            color: #000;
            transform: translateY(-3px);
        }

        .footer-bottom {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .back-btn {
            background: linear-gradient(45deg, #00ff88, #00ccff);
            padding: 12px 25px;
            border-radius: 25px;
            text-decoration: none;
            color: #000;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
            border: none;
            cursor: pointer;
        }

        .back-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
        }

        /* Loading animation */
        .loading {
            display: none;
            text-align: center;
            margin: 20px 0;
        }

        .spinner {
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-top: 3px solid #00ff88;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @media (max-width: 360px) {
            .payment-section {
                padding: 15px 10px;
            }
            
            .crypto-options {
                grid-template-columns: 1fr;
            }
            
            .crypto-option {
                padding: 15px;
            }
            
            .plan-header {
                text-align: center;
                align-items: center;
            }
            
            .plan-name {
                font-size: 1rem;
            }
            
            .plan-price {
                font-size: 1rem;
                margin-top: 8px;
            }
            
            .original-price {
                font-size: 0.8rem;
            }
            
            .plan-features {
                font-size: 0.8rem;
                text-align: left;
            }
            
            .wallet-address {
                font-size: 0.7rem;
                word-break: break-word;
                padding: 10px;
            }
            
            .copy-button {
                font-size: 0.7rem;
                padding: 5px 8px;
                margin-top: 8px;
            }
            
            .qr-code {
                width: 100px;
                height: 100px;
                font-size: 0.8rem;
            }
            
            .network-warning {
                font-size: 0.75rem;
                padding: 10px;
            }
            
            .crypto-price {
                padding: 12px;
            }
            
            .price-amount {
                font-size: 1rem;
            }
            
            .price-note {
                font-size: 0.7rem;
            }
            
            .form-group label {
                font-size: 0.9rem;
            }
            
            .security-features {
                padding: 15px;
            }
            
            .security-item {
                font-size: 0.8rem;
                margin-bottom: 8px;
            }
            
            .file-upload h3 {
                font-size: 1.1rem;
            }
            
            .upload-area {
                padding: 25px 10px;
            }
            
            .upload-icon {
                font-size: 1.5rem;
            }
            
            .popular-badge {
                font-size: 0.7rem;
                padding: 3px 10px;
                top: -8px;
                right: 10px;
            }
            
            .network-name {
                font-size: 0.85rem;
            }
            
            .network-fee {
                font-size: 0.7rem;
            }
        }

        /* Landscape orientation optimizations */
        @media (max-height: 600px) and (orientation: landscape) {
            .payment-container {
                margin-top: 80px;
            }
            
            .progress-steps {
                margin-bottom: 20px;
            }
            
            .payment-section {
                padding: 20px;
            }
            
            .section-title {
                font-size: 1.3rem;
                margin-bottom: 20px;
            }
        }

        /* High DPI displays */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .logo,
            .section-title,
            .plan-name,
            .plan-price {
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
            }
        }

        /* Touch optimizations */
        @media (hover: none) and (pointer: coarse) {
            .plan-option,
            .crypto-option,
            .network-option {
                padding: 18px;
            }
            
            .copy-button,
            .submit-payment,
            .back-btn {
                min-height: 44px;
                min-width: 44px;
            }
            
            .upload-area {
                padding: 40px 20px;
            }
        }

        /* Reduced motion support */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            
            .submit-payment:hover,
            .back-btn:hover,
            .copy-button:hover {
                transform: none;
            }
        }

        /* Print styles */
        @media print {
            .header,
            
            .submit-payment,
            .back-btn {
                display: none;
            }
            
            body {
                background: white;
                color: black;
            }
            
            .payment-container {
                margin-top: 0;
                display: block;
            }
            
            .payment-section {
                background: white;
                border: 1px solid #ccc;
                box-shadow: none;
                page-break-inside: avoid;
            }
        }

        /* Enhanced Mobile Responsive Styles */

/* Small tablets and large phones (landscape) */
@media (max-width: 1024px) {
    .payment-container {
        padding: 0 15px;
        gap: 30px;
    }
    
    .payment-section {
        padding: 30px;
    }
    
    .nav {
        padding: 0 15px;
    }
}

/* Tablets (portrait) */
@media (max-width: 768px) {
    .payment-container {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 100px;
        padding: 0 15px;
    }
    
    .payment-section {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .crypto-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .network-options {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        margin-bottom: 30px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .nav {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .back-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Large phones */
@media (max-width: 600px) {
    .header {
        padding: 12px 0;
    }
    
    .payment-container {
        margin-top: 90px;
        padding: 0 12px;
        gap: 20px;
    }
    
    .payment-section {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .plan-option {
        padding: 15px;
    }
    
    .plan-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .plan-name {
        font-size: 1.2rem;
    }
    
    .plan-price {
        font-size: 1.3rem;
    }
    
    .original-price {
        font-size: 0.9rem;
        margin-right: 5px;
    }
    
    .plan-features {
        font-size: 0.85rem;
        margin-top: 10px;
    }
    
    .crypto-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .crypto-option {
        padding: 15px 10px;
    }
    
    .crypto-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .crypto-name {
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .network-selection {
        padding: 15px;
    }
    
    .network-option {
        padding: 12px;
    }
    
    .network-name {
        font-size: 0.9rem;
    }
    
    .network-fee {
        font-size: 0.75rem;
    }
    
    .network-warning {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .payment-details {
        padding: 20px;
        margin: 20px 0;
    }
    
    .wallet-address {
        padding: 12px;
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    .copy-button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
        font-size: 0.9rem;
    }
    
    .crypto-price {
        padding: 12px;
    }
    
    .price-amount {
        font-size: 1.2rem;
    }
    
    .price-note {
        font-size: 0.75rem;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .order-summary {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .summary-row {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .summary-row.total {
        font-size: 1.1rem;
    }
    
    .submit-payment {
        padding: 18px;
        font-size: 1.1rem;
        margin-top: 15px;
    }
    
    .security-features {
        padding: 15px;
        margin-top: 25px;
    }
    
    .security-item {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .progress-steps::before,
    .progress-steps::after {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 15px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        margin-bottom: 0;
    }
    
    .step-label {
        text-align: left;
    }
    
    .popular-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
        top: -8px;
        right: 12px;
    }
    
    .nav {
        padding: 0 12px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .back-link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* Standard phones */
@media (max-width: 480px) {
    .payment-container {
        margin-top: 85px;
        padding: 0 10px;
        gap: 18px;
    }
    
    .payment-section {
        padding: 18px 12px;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }
    
    .plan-option {
        padding: 12px;
        border-radius: 12px;
    }
    
    .plan-name {
        font-size: 1.1rem;
    }
    
    .plan-price {
        font-size: 1.2rem;
    }
    
    .plan-features {
        font-size: 0.8rem;
    }
    
    .crypto-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .crypto-option {
        padding: 12px 8px;
        border-radius: 10px;
    }
    
    .crypto-icon {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .crypto-name {
        font-size: 0.75rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px;
        border-radius: 8px;
    }
    
    .network-selection {
        padding: 12px;
        border-radius: 10px;
    }
    
    .network-option {
        padding: 10px;
        border-radius: 8px;
    }
    
    .payment-details {
        padding: 15px;
        border-radius: 12px;
    }
    
    .wallet-address {
        padding: 10px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .copy-button {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 4px;
    }
    
    .qr-code {
        width: 110px;
        height: 110px;
        border-radius: 8px;
    }
    
    .upload-area {
        padding: 25px 12px;
        border-radius: 12px;
    }
    
    .upload-icon {
        font-size: 2.2rem;
    }
    
    .uploaded-file {
        padding: 12px;
        border-radius: 8px;
    }
    
    .file-name {
        font-size: 0.9rem;
    }
    
    .file-size {
        font-size: 0.8rem;
    }
    
    .order-summary {
        padding: 15px;
        border-radius: 12px;
    }
    
    .submit-payment {
        padding: 16px;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .security-features {
        padding: 12px;
        border-radius: 8px;
    }
    
    .nav {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .back-link {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .payment-container {
        margin-top: 80px;
        padding: 0 8px;
        gap: 15px;
    }
    
    .payment-section {
        padding: 15px 10px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .plan-header {
        gap: 5px;
    }
    
    .plan-name {
        font-size: 1rem;
    }
    
    .plan-price {
        font-size: 1.1rem;
    }
    
    .original-price {
        font-size: 0.8rem;
    }
    
    .plan-features {
        font-size: 0.75rem;
    }
    
    .crypto-options {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .crypto-option {
        padding: 10px 6px;
    }
    
    .crypto-icon {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }
    
    .crypto-name {
        font-size: 0.7rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .network-warning {
        padding: 10px;
        font-size: 0.75rem;
    }
    
    .wallet-address {
        padding: 8px;
        font-size: 0.7rem;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .crypto-price {
        padding: 10px;
    }
    
    .price-amount {
        font-size: 1.1rem;
    }
    
    .price-note {
        font-size: 0.7rem;
    }
    
    .upload-area {
        padding: 20px 10px;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .submit-payment {
        padding: 14px;
        font-size: 0.95rem;
    }
    
    .popular-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        top: -6px;
        right: 8px;
    }
}

/* Very small phones */
@media (max-width: 320px) {
    .header {
        padding: 10px 0;
    }
    
    .payment-container {
        margin-top: 75px;
        padding: 0 6px;
        gap: 12px;
    }
    
    .payment-section {
        padding: 12px 8px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .plan-option {
        padding: 10px;
    }
    
    .plan-name {
        font-size: 0.95rem;
    }
    
    .plan-price {
        font-size: 1rem;
    }
    
    .plan-features {
        font-size: 0.7rem;
    }
    
    .crypto-options {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .crypto-option {
        padding: 8px 5px;
    }
    
    .crypto-icon {
        font-size: 1.2rem;
    }
    
    .crypto-name {
        font-size: 0.65rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px;
    }
    
    .network-selection {
        padding: 10px;
    }
    
    .payment-details {
        padding: 12px;
    }
    
    .wallet-address {
        padding: 6px;
        font-size: 0.65rem;
    }
    
    .copy-button {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .qr-code {
        width: 90px;
        height: 90px;
    }
    
    .upload-area {
        padding: 15px 8px;
    }
    
    .upload-icon {
        font-size: 1.8rem;
    }
    
    .submit-payment {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .security-item {
        font-size: 0.75rem;
    }
    
    .nav {
        padding: 0 6px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .back-link {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .popular-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
        top: -5px;
        right: 6px;
    }
}

/* Landscape orientation for phones */
@media (max-height: 600px) and (orientation: landscape) {
    .payment-container {
        margin-top: 70px;
        gap: 15px;
    }
    
    .payment-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .progress-steps {
        margin-bottom: 15px;
    }
    
    .plan-option {
        padding: 10px;
    }
    
    .crypto-option {
        padding: 10px 8px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .upload-area {
        padding: 20px 15px;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
}

/* High DPI mobile displays */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px), 
       (min-resolution: 192dpi) and (max-width: 768px) {
    .logo,
    .section-title,
    .plan-name,
    .plan-price {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .wallet-address {
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    }
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
    .plan-option,
    .crypto-option,
    .network-option {
        min-height: 44px;
        padding: 15px;
    }
    
    .copy-button,
    .submit-payment,
    .back-link,
    .remove-file {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }
    
    .upload-area {
        padding: 40px 20px;
        min-height: 120px;
    }
    
    .form-group input,
    .form-group select {
        min-height: 44px;
        padding: 12px;
    }
}

/* Reduced motion for mobile */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .submit-payment:hover,
    .back-link:hover,
    .copy-button:hover {
        transform: none;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .form-group input,
    .form-group select {
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    .form-group select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 768px) {
    .form-group input:focus,
    .form-group select:focus {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    .plan-option:focus,
    .crypto-option:focus,
    .network-option:focus {
        outline: 2px solid #00ff88;
        outline-offset: 2px;
    }
    
    .form-group input:focus,
    .form-group select:focus {
        outline: 2px solid #00ff88;
        outline-offset: 1px;
    }
    
    .copy-button:focus,
    .submit-payment:focus,
    .back-link:focus {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }
}

/* Enhanced Mobile Responsive Styles */

/* Small tablets and large phones (landscape) */
@media (max-width: 1024px) {
    .payment-container {
        padding: 0 15px;
        gap: 30px;
    }
    
    .payment-section {
        padding: 30px;
    }
    
    .nav {
        padding: 0 15px;
    }
}

/* Tablets (portrait) */
@media (max-width: 768px) {
    .payment-container {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 100px;
        padding: 0 15px;
    }
    
    .payment-section {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .crypto-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .network-options {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        margin-bottom: 30px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .nav {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .back-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Large phones */
@media (max-width: 600px) {
    .header {
        padding: 12px 0;
    }
    
    .payment-container {
        margin-top: 90px;
        padding: 0 12px;
        gap: 20px;
    }
    
    .payment-section {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .plan-option {
        padding: 15px;
    }
    
    .plan-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .plan-name {
        font-size: 1.2rem;
    }
    
    .plan-price {
        font-size: 1.3rem;
    }
    
    .original-price {
        font-size: 0.9rem;
        margin-right: 5px;
    }
    
    .plan-features {
        font-size: 0.85rem;
        margin-top: 10px;
    }
    
    .crypto-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .crypto-option {
        padding: 15px 10px;
    }
    
    .crypto-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .crypto-name {
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .network-selection {
        padding: 15px;
    }
    
    .network-option {
        padding: 12px;
    }
    
    .network-name {
        font-size: 0.9rem;
    }
    
    .network-fee {
        font-size: 0.75rem;
    }
    
    .network-warning {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .payment-details {
        padding: 20px;
        margin: 20px 0;
    }
    
    .wallet-address {
        padding: 12px;
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    .copy-button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
        font-size: 0.9rem;
    }
    
    .crypto-price {
        padding: 12px;
    }
    
    .price-amount {
        font-size: 1.2rem;
    }
    
    .price-note {
        font-size: 0.75rem;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .order-summary {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .summary-row {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .summary-row.total {
        font-size: 1.1rem;
    }
    
    .submit-payment {
        padding: 18px;
        font-size: 1.1rem;
        margin-top: 15px;
    }
    
    .security-features {
        padding: 15px;
        margin-top: 25px;
    }
    
    .security-item {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .progress-steps::before,
    .progress-steps::after {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 15px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        margin-bottom: 0;
    }
    
    .step-label {
        text-align: left;
    }
    
    .popular-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
        top: -8px;
        right: 12px;
    }
    
    .nav {
        padding: 0 12px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .back-link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* Standard phones */
@media (max-width: 480px) {
    .payment-container {
        margin-top: 85px;
        padding: 0 10px;
        gap: 18px;
    }
    
    .payment-section {
        padding: 18px 12px;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }
    
    .plan-option {
        padding: 12px;
        border-radius: 12px;
    }
    
    .plan-name {
        font-size: 1.1rem;
    }
    
    .plan-price {
        font-size: 1.2rem;
    }
    
    .plan-features {
        font-size: 0.8rem;
    }
    
    .crypto-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .crypto-option {
        padding: 12px 8px;
        border-radius: 10px;
    }
    
    .crypto-icon {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .crypto-name {
        font-size: 0.75rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px;
        border-radius: 8px;
    }
    
    .network-selection {
        padding: 12px;
        border-radius: 10px;
    }
    
    .network-option {
        padding: 10px;
        border-radius: 8px;
    }
    
    .payment-details {
        padding: 15px;
        border-radius: 12px;
    }
    
    .wallet-address {
        padding: 10px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .copy-button {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 4px;
    }
    
    .qr-code {
        width: 110px;
        height: 110px;
        border-radius: 8px;
    }
    
    .upload-area {
        padding: 25px 12px;
        border-radius: 12px;
    }
    
    .upload-icon {
        font-size: 2.2rem;
    }
    
    .uploaded-file {
        padding: 12px;
        border-radius: 8px;
    }
    
    .file-name {
        font-size: 0.9rem;
    }
    
    .file-size {
        font-size: 0.8rem;
    }
    
    .order-summary {
        padding: 15px;
        border-radius: 12px;
    }
    
    .submit-payment {
        padding: 16px;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .security-features {
        padding: 12px;
        border-radius: 8px;
    }
    
    .nav {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .back-link {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .payment-container {
        margin-top: 80px;
        padding: 0 8px;
        gap: 15px;
    }
    
    .payment-section {
        padding: 15px 10px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .plan-header {
        gap: 5px;
    }
    
    .plan-name {
        font-size: 1rem;
    }
    
    .plan-price {
        font-size: 1.1rem;
    }
    
    .original-price {
        font-size: 0.8rem;
    }
    
    .plan-features {
        font-size: 0.75rem;
    }
    
    .crypto-options {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .crypto-option {
        padding: 10px 6px;
    }
    
    .crypto-icon {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }
    
    .crypto-name {
        font-size: 0.7rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .network-warning {
        padding: 10px;
        font-size: 0.75rem;
    }
    
    .wallet-address {
        padding: 8px;
        font-size: 0.7rem;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .crypto-price {
        padding: 10px;
    }
    
    .price-amount {
        font-size: 1.1rem;
    }
    
    .price-note {
        font-size: 0.7rem;
    }
    
    .upload-area {
        padding: 20px 10px;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .submit-payment {
        padding: 14px;
        font-size: 0.95rem;
    }
    
    .popular-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        top: -6px;
        right: 8px;
    }
}

/* Very small phones */
@media (max-width: 320px) {
    .header {
        padding: 10px 0;
    }
    
    .payment-container {
        margin-top: 75px;
        padding: 0 6px;
        gap: 12px;
    }
    
    .payment-section {
        padding: 12px 8px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .plan-option {
        padding: 10px;
    }
    
    .plan-name {
        font-size: 0.95rem;
    }
    
    .plan-price {
        font-size: 1rem;
    }
    
    .plan-features {
        font-size: 0.7rem;
    }
    
    .crypto-options {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .crypto-option {
        padding: 8px 5px;
    }
    
    .crypto-icon {
        font-size: 1.2rem;
    }
    
    .crypto-name {
        font-size: 0.65rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px;
    }
    
    .network-selection {
        padding: 10px;
    }
    
    .payment-details {
        padding: 12px;
    }
    
    .wallet-address {
        padding: 6px;
        font-size: 0.65rem;
    }
    
    .copy-button {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .qr-code {
        width: 90px;
        height: 90px;
    }
    
    .upload-area {
        padding: 15px 8px;
    }
    
    .upload-icon {
        font-size: 1.8rem;
    }
    
    .submit-payment {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .security-item {
        font-size: 0.75rem;
    }
    
    .nav {
        padding: 0 6px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .back-link {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .popular-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
        top: -5px;
        right: 6px;
    }
}

/* Landscape orientation for phones */
@media (max-height: 600px) and (orientation: landscape) {
    .payment-container {
        margin-top: 70px;
        gap: 15px;
    }
    
    .payment-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .progress-steps {
        margin-bottom: 15px;
    }
    
    .plan-option {
        padding: 10px;
    }
    
    .crypto-option {
        padding: 10px 8px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .upload-area {
        padding: 20px 15px;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
}

/* High DPI mobile displays */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px), 
       (min-resolution: 192dpi) and (max-width: 768px) {
    .logo,
    .section-title,
    .plan-name,
    .plan-price {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .wallet-address {
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    }
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
    .plan-option,
    .crypto-option,
    .network-option {
        min-height: 44px;
        padding: 15px;
    }
    
    .copy-button,
    .submit-payment,
    .back-link,
    .remove-file {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }
    
    .upload-area {
        padding: 40px 20px;
        min-height: 120px;
    }
    
    .form-group input,
    .form-group select {
        min-height: 44px;
        padding: 12px;
    }
}

/* Reduced motion for mobile */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .submit-payment:hover,
    .back-link:hover,
    .copy-button:hover {
        transform: none;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .form-group input,
    .form-group select {
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    .form-group select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 768px) {
    .form-group input:focus,
    .form-group select:focus {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    .plan-option:focus,
    .crypto-option:focus,
    .network-option:focus {
        outline: 2px solid #00ff88;
        outline-offset: 2px;
    }
    
    .form-group input:focus,
    .form-group select:focus {
        outline: 2px solid #00ff88;
        outline-offset: 1px;
    }
    
    .copy-button:focus,
    .submit-payment:focus,
    .back-link:focus {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }
}

/* Fix for payment section height and spacing */
.payment-section {
    min-height: auto !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
}

.payment-section > *:last-child {
    margin-bottom: 0 !important;
}

/* Remove excessive bottom padding/margin from form sections */
.form-group:last-child,
.crypto-payment:last-child,
.security-features:last-child,
.file-upload:last-child,
.order-summary:last-child {
    margin-bottom: 0 !important;
}

/* Ensure content fits naturally without empty space */
.payment-container {
    align-items: start;
}

/* Form section specific fixes */
.registration-form {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
}

.registration-form > .form-group:last-child {
    margin-bottom: 0;
}

/* Remove empty space from crypto payment section */
.crypto-payment {
    flex-shrink: 0;
}

.crypto-payment:empty {
    display: none;
}

/* Security features bottom spacing fix */
.security-features {
    margin-bottom: 0;
}

/* Upload section spacing fix */
.file-upload {
    margin-bottom: 0;
}

/* Responsive adjustments for content fitting */
@media (max-width: 768px) {
    .payment-section {
        min-height: unset;
        height: fit-content;
    }
    
    .payment-container {
        align-items: stretch;
    }
    
    /* Ensure both columns have equal spacing */
    .payment-section:first-child,
    .payment-section:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .payment-section {
        margin-bottom: 20px;
    }
    
    .payment-section:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .payment-section {
        margin-bottom: 18px;
    }
    
    .payment-section:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 375px) {
    .payment-section {
        margin-bottom: 15px;
    }
    
    .payment-section:last-child {
        margin-bottom: 0;
    }
}

/* Fix for form elements to prevent excessive spacing */
.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Ensure consistent bottom margins across all form elements */
.plan-selector,
.crypto-payment,
.network-selection,
.payment-details,
.file-upload,
.order-summary,
.security-features {
    margin-bottom: 25px;
}

.plan-selector:last-child,
.crypto-payment:last-child,
.network-selection:last-child,
.payment-details:last-child,
.file-upload:last-child,
.order-summary:last-child,
.security-features:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .plan-selector,
    .crypto-payment,
    .network-selection,
    .payment-details,
    .file-upload,
    .order-summary,
    .security-features {
        margin-bottom: 20px;
    }
    
    .plan-selector:last-child,
    .crypto-payment:last-child,
    .network-selection:last-child,
    .payment-details:last-child,
    .file-upload:last-child,
    .order-summary:last-child,
    .security-features:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .plan-selector,
    .crypto-payment,
    .network-selection,
    .payment-details,
    .file-upload,
    .order-summary,
    .security-features {
        margin-bottom: 18px;
    }
    
    .plan-selector:last-child,
    .crypto-payment:last-child,
    .network-selection:last-child,
    .payment-details:last-child,
    .file-upload:last-child,
    .order-summary:last-child,
    .security-features:last-child {
        margin-bottom: 0;
    }
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.generate-qr-btn {
    background: #00ccff;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.generate-qr-btn:hover {
    background: #00ff88;
    transform: translateY(-1px);
}

.step-circle.active {
    background: #00ff88;
    border-color: #00ff88;
}

.step-circle.inactive {
    background: #2d3748;
    border-color: #4a5568;
}