
    .modal-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        padding: 16px;
    }

    .modal-overlay.active {
        display: flex;
    }

    .modal-container {
        background: white;
        border-radius: 20px 20px 0 0;
        width: 100%;
        max-width: 500px;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    @media (min-width: 768px) {
        .modal-container {
            border-radius: 20px;
        }
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid #e9ecef;
        flex-shrink: 0;
    }

    .modal-title {
        font-size: 20px;
        font-weight: bold;
        color: #333;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s;
    }

    .close-btn:hover {
        background-color: #f0f0f0;
    }

    .close-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .modal-body {
        padding: 16px;
        overflow-y: auto;
        flex: 1;
    }

    .modal-footer {
        padding: 16px;
        border-top: 1px solid #e9ecef;
        display: flex;
        gap: 12px;
        flex-shrink: 0;
    }

    /* Step Indicator */
    .step-indicator {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
    }

    .step-dot-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .step-dot {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background-color: #dee2e6;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 11px;
    }

    .step-dot.active {
        background-color: #7c3aed;
    }

    .step-label {
        font-size: 9px;
        color: #6c757d;
        margin-top: 4px;
    }

    .step-label.active {
        color: #7c3aed;
    }

    .step-line {
        flex: 1;
        height: 2px;
        background-color: #dee2e6;
    }

    .step-line.active {
        background-color: #7c3aed;
    }

    /* Coins Grid */
    .coins-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }

    .coin-package {
        border: 1px solid #dee2e6;
        border-radius: 12px;
        padding: 12px 8px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        background-color: #f8f9fa;
    }

    .coin-package:hover {
        transform: translateY(-2px);
    }

    .coin-package.selected {
        background-color: #7c3aed;
        border-color: #7c3aed;
        color: white;
    }

    .coin-amount {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 4px;
    }

    .coin-price {
        font-size: 10px;
        color: #6c757d;
    }

    .coin-package.selected .coin-price {
        color: white;
    }

    /* Payment Provider */
    .payment-provider {
        border: 1px solid #dee2e6;
        border-radius: 10px;
        padding: 12px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 12px;
        background-color: #f8f9fa;
    }

    .payment-provider:hover {
        border-color: #7c3aed;
        background-color: #f3f4f6;
    }

    .payment-provider.selected {
        border-color: #7c3aed;
        border-width: 2px;
        background-color: #f3e8ff;
    }

    .provider-icon {
        width: 56px;
        height: 56px;
        object-fit: contain;
    }

    .provider-name {
        flex: 1;
        font-size: 13px;
        font-weight: 500;
        color: #495057;
    }

    .payment-provider.selected .provider-name {
        color: #7c3aed;
        font-weight: 600;
    }

    .check-icon {
        color: #7c3aed;
        font-size: 20px;
        display: none;
    }

    .payment-provider.selected .check-icon {
        display: block;
    }

    /* Info Boxes */
    .info-box {
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .info-box.purple {
        background-color: #f3e8ff;
        color: #6b21a8;
    }

    .info-box.blue {
        background-color: #dbeafe;
        color: #1e40af;
    }

    .info-box.red {
        background-color: #fee2e2;
        color: #991b1b;
        border: 1px solid #fca5a5;
    }

    .info-box.orange {
        background-color: #fed7aa;
        color: #92400e;
        border: 2px solid #fb923c;
    }

    .info-box.green {
        background-color: #d1fae5;
        color: #065f46;
        border: 1px solid #6ee7b7;
    }

    /* Form Elements */
    .form-group {
        margin-bottom: 16px;
    }

    .form-label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #333;
    }

    .form-input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        font-size: 14px;
        transition: border-color 0.2s;
    }

    .form-input:focus {
        outline: none;
        border-color: #7c3aed;
    }

    .form-input.error {
        border-color: #dc3545;
    }

    .form-error {
        color: #dc3545;
        font-size: 12px;
        margin-top: 4px;
    }

    .form-helper {
        color: #6c757d;
        font-size: 12px;
        margin-top: 4px;
    }

    /* Buttons */
    .btn {
        flex: 1;
        padding: 12px;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .btn-secondary {
        background-color: #e9ecef;
        color: #333;
    }

    .btn-secondary:hover:not(:disabled) {
        background-color: #dee2e6;
    }

    .btn-primary {
        background-color: #7c3aed;
        color: white;
    }

    .btn-primary:hover:not(:disabled) {
        background-color: #6d28d9;
    }

    /* Summary */
    .summary-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .summary-value {
        font-weight: bold;
    }

    /* Alternative Payment */
    .payment-detail {
        background: white;
        border-radius: 6px;
        padding: 8px 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .payment-detail-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
    }

    .payment-detail-value {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: bold;
        cursor: pointer;
    }

    .copy-icon {
        color: #6c757d;
        font-size: 14px;
    }

    /* Snackbar */
    .snackbar {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: white;
        padding: 12px 24px;
        border-radius: 8px;
        display: none;
        z-index: 2000;
        max-width: 90%;
    }

    .snackbar.show {
        display: block;
        animation: slideUp 0.3s ease;
    }

    .snackbar.success {
        background-color: #059669;
    }

    .snackbar.error {
        background-color: #dc2626;
    }

    @keyframes slideUp {
        from {
            transform: translateX(-50%) translateY(100px);
            opacity: 0;
        }
        to {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
    }

    /* Buy Button on Main Page */
    .buy-coins-button {
        background-color: #7c3aed;
        color: white;
        padding: 12px 24px;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
    }

    .buy-coins-button:hover {
        background-color: #6d28d9;
        transform: translateY(-2px);
    }

    .whatsapp-link {
        display: inline-block;
        background-color: #10b981;
        color: white;
        padding: 8px 10px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 13px;
        font-weight: bold;
        transition: all 0.2s;
        margin-top: 6px;
    }

    .whatsapp-link:hover {
        background-color: #059669;
        color: white;
    }

    .order-summary-box {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 10px;
        margin-top: 12px;
    }

    .order-summary-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        font-size: 12px;
        font-weight: bold;
    }
