
        /* ===== BASE & HORMUUD BRANDING ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            /* Hormuud Telecom Brand Colors */
            --hormuud-green: #00A550;
            --hormuud-blue: #0AACD3;
            --hormuud-yellow: #F1D255;
            
            /* Derived colors */
            --green-dark: #008C46;
            --green-light: #E6F7EF;
            --blue-light: #E6F7FC;
            --yellow-light: #FFF9E6;
            
            /* Neutral colors */
            --gray-900: #111827;
            --gray-800: #1F2937;
            --gray-700: #374151;
            --gray-600: #4B5563;
            --gray-500: #6B7280;
            --gray-400: #9CA3AF;
            --gray-300: #D1D5DB;
            --gray-200: #E5E7EB;
            --gray-100: #F3F4F6;
            --gray-50: #F9FAFB;
            --white: #FFFFFF;
            
            /* UI Tokens */
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --radius-2xl: 24px;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
            background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
            color: var(--gray-900);
            line-height: 1.5;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: -10px;
            position: relative;
        }

        /* ===== BACKGROUND DECORATION ===== */
        .bg-decoration {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: -1;
            overflow: hidden;
        }

        .bg-circle {
            position: absolute;
            border-radius: 50%;
            opacity: 0.15;
        }

        .circle-green {
            width: 300px;
            height: 300px;
            top: -150px;
            right: -150px;
            background: radial-gradient(circle, var(--hormuud-green) 0%, transparent 70%);
        }

        .circle-blue {
            width: 200px;
            height: 200px;
            bottom: -100px;
            left: -100px;
            background: radial-gradient(circle, var(--hormuud-blue) 0%, transparent 70%);
        }

        .circle-yellow {
            width: 150px;
            height: 150px;
            top: 50%;
            left: -75px;
            background: radial-gradient(circle, var(--hormuud-yellow) 0%, transparent 70%);
        }

        /* ===== PAYMENT CARD CONTAINER ===== */
        .payment-card {
            width: 100%;
            max-width: 400px;
            background: var(--white);
            border-radius: 28px;
            box-shadow: var(--shadow-xl);
            overflow: hidden;
            margin-top: 20px;
            position: relative;
            border: 1px solid var(--gray-200);
            animation: slideUp 0.6s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===== HEADER ===== */
        .card-header {
            background: linear-gradient(135deg, var(--hormuud-green) 0%, var(--green-dark) 100%);
            color: var(--white);
            padding: 20px 24px 16px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header-pattern {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0.1;
            background-image: 
                radial-gradient(circle at 25% 25%, var(--hormuud-yellow) 2px, transparent 2px),
                radial-gradient(circle at 75% 75%, var(--hormuud-blue) 2px, transparent 2px);
            background-size: 30px 30px;
        }

        .business-info {
            position: relative;
            z-index: 2;
        }

        .nfc-icon {
            width: 60px;
            height: 60px;
            background: var(--white);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            color: var(--hormuud-green);
            font-size: 24px;
            box-shadow: var(--shadow-md);
        }

        .business-name-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 4px;
        }

        .business-name {
            font-size: 1.3rem;
            font-weight: 700;
            letter-spacing: -0.3px;
        }

        .verified-badge {
            color: var(--hormuud-blue);
            font-size: 1rem;
        }

        .merchant-id {
            background: rgba(255, 255, 255, 0.15);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
            display: inline-block;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* ===== MERCHANT INFO SECTION ===== */
        .merchant-info {
            padding: 16px 24px;
            background: var(--gray-50);
            border-bottom: 1px solid var(--gray-200);
        }

        .info-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: -66px;
        }

        .info-label {
            font-size: 0.8rem;
            color: var(--gray-600);
            font-weight: 500;
        }

        .info-value {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--gray-800);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .copy-btn {
            background: none;
            border: none;
            color: var(--hormuud-green);
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .copy-btn:hover {
            background: var(--green-light);
        }

        .full-code {
            background: var(--white);
            border: 1px solid var(--gray-300);
            border-radius: var(--radius-sm);
            padding: 8px 12px;
            font-family: 'Courier New', monospace;
            font-size: 0.85rem;
            color: var(--gray-700);
            margin-top: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            word-break: break-all;
        }

        /* ===== AMOUNT DISPLAY ===== */
        .amount-section {
            padding: 16px 24px;
            border-bottom: 1px solid var(--gray-200);
        }

        .amount-label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--gray-600);
            margin-bottom: 8px;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .amount-display {
            background: var(--gray-50);
            border-radius: var(--radius-lg);
            padding: 16px;
            border: 2px solid var(--gray-200);
            transition: var(--transition);
            position: relative;
            cursor: default;
        }

        .amount-input-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .currency-symbol {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--gray-700);
        }

        #amountDisplay {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--gray-900);
            font-family: 'Inter', sans-serif;
            letter-spacing: -1px;
            cursor: default;
            user-select: none;
            text-align: center;
            min-height: 2.8rem;
        }

        /* ===== NUMERIC KEYPAD - UPDATED TO MATCH MOCKUP ===== */
        .keypad-section {
            padding: 20px 24px;
        }

        .keypad-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }

        .keypad-btn {
            height: 60px;
            background: var(--white);
            border: 2px solid var(--gray-200);
            border-radius: var(--radius-lg);
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--gray-800);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Inter', sans-serif;
            user-select: none;
        }

        .keypad-btn:hover {
            background: var(--gray-50);
            border-color: var(--gray-300);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }

        .keypad-btn:active {
            transform: translateY(0);
        }

        .keypad-btn.number {
            font-weight: 700;
        }

        .keypad-btn.backspace {
            color: red;
            font-size: 1.2rem;
            border-color: var(--gray-300);
        }

        .keypad-btn.pay {
            grid-column: span 4;
            background: linear-gradient(135deg, var(--hormuud-green) 0%, var(--green-dark) 100%);
            color: var(--white);
            border: none;
            font-size: 1.3rem;
            font-weight: 700;
            box-shadow: 0 4px 15px rgba(0, 165, 80, 0.3);
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 8px;
        }

        .keypad-btn.pay:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 165, 80, 0.4);
        }

        .keypad-btn.pay:disabled {
            background: var(--gray-400);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* ===== PAY BUTTON CONTENT ===== */
        .pay-button-content {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 10px;
        }

        .pay-button-text {
            font-size: 1.3rem;
            font-weight: 800;
            letter-spacing: -0.5px;
        }

        .pay-button-amount {
            font-size: 1.3rem;
            font-weight: 800;
            letter-spacing: -0.5px;
        }

        /* ===== STATUS MESSAGES ===== */
        .status-message {
            padding: 12px;
            border-radius: var(--radius-lg);
            margin: 0 24px 16px;
            text-align: center;
            font-weight: 500;
            display: none;
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .status-success {
            background: linear-gradient(135deg, var(--hormuud-green) 0%, #00C853 100%);
            color: var(--white);
            display: block;
        }

        .status-error {
            background: linear-gradient(135deg, #FF5252 0%, #FF1744 100%);
            color: var(--white);
            display: block;
        }

        .status-info {
            background: linear-gradient(135deg, var(--hormuud-blue) 0%, #29B6F6 100%);
            color: var(--white);
            display: block;
        }

        /* ===== FOOTER ===== */
        .card-footer {
            padding: 16px 24px;
            text-align: center;
            background: var(--gray-50);
            border-top: 1px solid var(--gray-200);
        }

        .pay-amount-display {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--hormuud-green);
            margin-bottom: 8px;
        }

        .brand-footer {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        .tab2pay-logo {
            font-weight: 800;
            color: var(--hormuud-green);
            font-size: 1.1rem;
            letter-spacing: -0.3px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .security-note {
            font-size: 0.75rem;
            color: var(--gray-600);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* ===== HOW IT WORKS MODAL ===== */
        .info-button {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            z-index: 10;
            border: none;
        }

        .info-button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px;
            animation: fadeIn 0.3s ease-out;
        }

        .modal-content {
            width: 100%;
            max-width: 400px;
            background: var(--white);
            border-radius: 28px;
            overflow: hidden;
            box-shadow: var(--shadow-xl);
            animation: slideUp 0.4s ease-out;
        }

        .modal-header {
            background: linear-gradient(135deg, var(--hormuud-green) 0%, var(--green-dark) 100%);
            color: var(--white);
            padding: 24px;
            text-align: center;
            position: relative;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.5rem;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .modal-body {
            padding: 24px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .modal-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 16px;
            text-align: center;
        }

        .process-steps {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 24px;
        }

        .step {
            display: flex;
            align-items: flex-start;
            gap: 16px;
        }

        .step-number {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--hormuud-green) 0%, var(--green-dark) 100%);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            font-weight: 700;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(0, 165, 80, 0.3);
        }

        .step-content h4 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 4px;
        }

        .step-content p {
            font-size: 0.9rem;
            color: var(--gray-600);
            line-height: 1.5;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-top: 24px;
        }

        .feature {
            text-align: center;
            padding: 16px;
            background: var(--gray-50);
            border-radius: var(--radius-lg);
        }

        .feature-icon {
            width: 48px;
            height: 48px;
            background: var(--white);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            color: var(--hormuud-green);
            font-size: 1.5rem;
            box-shadow: var(--shadow-sm);
        }

        .feature-name {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--gray-800);
        }

        /* ===== RESPONSIVE ADJUSTMENTS ===== */
        @media (max-width: 480px) {
            .payment-card {
                border-radius: 24px;
                margin-top: 10px;
            }
            
            .card-header {
                padding: 16px 20px 12px;
            }
            
            .amount-section {
                padding: 12px 20px;
            }
            
            .keypad-section {
                padding: 16px 20px;
            }
            
            .keypad-btn {
                height: 55px;
                font-size: 1.3rem;
            }
            
            .keypad-btn.pay {
                height: 65px;
            }
            
            .keypad-grid {
                gap: 10px;
            }
        }

        /* ===== PULSE ANIMATION ===== */
        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 4px 15px rgba(0, 165, 80, 0.3);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 6px 20px rgba(0, 165, 80, 0.4);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 4px 15px rgba(0, 165, 80, 0.3);
            }
        }

        .pulse {
            animation: pulse 1s infinite;
        }
   



.method-selector {
    background: #f1f5f9;
    margin: 10px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.method-tab {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    transition: 0.3s;
}
.method-tab.active {
    background: white;
    color: #10b981; /* Somali Green */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


.method-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 10px;
    overflow-x: auto;
}

.method-item {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    padding: 2px;
    cursor: pointer;
    transition: 0.2s;
}

.method-item img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.method-item.active {
    border-color: #00a859; /* Green from your UI */
    box-shadow: 0 0 10px rgba(0, 168, 89, 0.3);
    transform: scale(1.1);
}



/* Centering and styling the Payment Method Label */
.payment-method-container {
    text-align: center;
    padding: 10px 0;
}

.payment-method-container .label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* Grid for the photo circles */
.method-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 5px;
}

.method-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    padding: 2px;
    cursor: pointer;
    background: white;
}

.method-item.active {
    border-color: #10b981;
    transform: scale(1.1);
}

.method-item img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}


/* Center and style the 'Payment Method' label */
.payment-method-container {
    text-align: center;
    margin-bottom: 10px;
}

.payment-method-container .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
}








/* ===== PAYMENT METHOD SECTION ===== */

.payment-method-container {
    text-align: center;
    padding: 15px 0 5px;
    width: 100%;
}

.payment-method-container .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* The horizontal track - Centered by default */
.method-grid {
    display: flex;
    gap: 16px;
    padding: 10px 20px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    
    /* Perfect Centering Logic */
    justify-content: center; 
    align-items: center;
    width: 100%;
}

.method-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* The circular item */
.method-item {
    position: relative;
    flex: 0 0 55px; /* Important: Prevents squeezing into ovals */
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    padding: 4px;
    cursor: pointer;
    background: var(--white);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-item img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

/* Active State with Somali Green */
.method-item.active {
    border-color: var(--hormuud-green);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 165, 80, 0.2);
}

/* The Tick/Checkmark Badge */
.method-item.active::after {
    content: '✓';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--hormuud-green);
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Optional: Tab styling if you decide to use text tabs later */
.method-selector {
    background: var(--gray-100);
    margin: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    display: flex;
    padding: 4px;
}

.method-tab {
    flex: 1;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.method-tab.active {
    background: white;
    color: var(--hormuud-green);
    box-shadow: var(--shadow-sm);
}