:root {
    --primary: #00ff88;
    --primary-dark: #00cc6e;
    --secondary: #00d4ff;
    --dark: #0a0b10;
    --dark-lighter: #161a23;
    --text: #ffffff;
    --text-muted: #a0aec0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.1;
    animation: move 20s infinite alternate;
}

.blob-1 { background: var(--primary); top: -100px; left: -100px; }
.blob-2 { background: var(--secondary); bottom: -100px; right: -100px; animation-delay: -5s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.2); }
}

/* Container */
.minimal-container {
    width: 100%;
    max-width: 450px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-align: center;
}

.logo span { color: var(--primary); }

/* Payment Card */
.payment-card {
    width: 100%;
    background: var(--dark-lighter);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

@media (max-width: 480px) {
    .payment-card {
        padding: 1.5rem;
    }
}

.card-header { text-align: center; margin-bottom: 0.5rem; }
.card-header h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.card-header p { color: var(--text-muted); font-size: 0.9rem; }

/* Form Styles */
.form-group {
    margin-bottom: 0;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    padding-left: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1.25rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    padding: 1.1rem 1.1rem 1.1rem 3.5rem;
    border-radius: 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.02);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
}

/* Custom Dropdown */
.country-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.dropdown-trigger {
    width: 100%;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    padding: 1.1rem 1.5rem;
    border-radius: 16px;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.dropdown-trigger:hover {
    border-color: var(--glass-border);
    background: var(--glass);
}

.dropdown-trigger.active {
    border-color: var(--primary);
}

.dropdown-trigger .selected-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-trigger .selected-value.placeholder {
    color: var(--text-muted);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--dark-lighter);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--glass-border);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--glass);
    color: var(--primary);
}

.dropdown-item.selected {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
}

/* Form Styles */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.required {
    color: #ff4444;
    margin-left: 2px;
}

.form-group input {
    width: 100%;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    padding: 1.1rem;
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
}

.form-group input:focus { outline: none; border-color: var(--primary); }

/* Price Display */
.user-info-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-info-form.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(-10px);
}

.phone-input-wrapper {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.phone-prefix {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0 10px 0 15px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.phone-prefix option {
    background: #0a0b10;
    color: white;
}

.phone-input-wrapper input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 1.25rem !important;
}

.user-info-form .form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.user-info-form .form-group input:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.user-info-form .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--glass);
    border-radius: 12px;
    margin: 0;
}

.price-display .label { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.price-display .amount { font-size: 1.4rem; font-weight: 700; color: var(--primary); }

/* Button */
.pay-btn {
    width: 100%;
    margin-top: 0;
    padding: 1.25rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Protection from copying */
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: var(--text-muted);
}

.pay-btn i {
    margin-right: 8px;
}

/* Footer */
.payment-footer { margin-top: 1.5rem; text-align: center; }
.paystack-badge { height: 24px; margin-bottom: 0.5rem; opacity: 0.8; }
.payment-footer p { font-size: 0.7rem; color: var(--text-muted); }

/* Overlay & Status */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.hidden { opacity: 0; pointer-events: none; }

.status-content {
    background: var(--dark-lighter);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 95%;
    border: 1px solid var(--glass-border);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.important-notice {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    padding: 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    color: #ff4444;
    font-size: 0.85rem;
    font-weight: 600;
}

.important-notice strong {
    color: #ff4444;
    margin-right: 4px;
}

#status-icon { font-size: 3.5rem; margin-bottom: 1rem; }
#status-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
#status-message { font-size: 0.9rem; color: var(--text-muted); }

.close-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: var(--glass-border);
    border: none;
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

/* Receipt Template (Hidden on screen) */
.receipt-container {
    display: none;
    background: white;
    color: #1a202c;
    padding: 60px 40px;
    width: 100%;
    max-width: 700px;
    font-family: 'Inter', sans-serif;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.receipt-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: auto;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ff88;
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.r-header-logo {
    height: 60px;
    width: auto;
}

.receipt-status {
    font-weight: 700;
    color: #718096;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.receipt-body {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f7fafc;
}

.receipt-row.total {
    border-top: 2px solid #edf2f7;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 20px;
}

.r-label { color: #718096; font-weight: 500; }
.r-value { color: #1a202c; font-weight: 700; }

.receipt-row.total .r-label { font-size: 1.1rem; color: #1a202c; }
.receipt-row.total .r-value { font-size: 1.5rem; color: #00cc6e; }

.receipt-footer {
    text-align: center;
    color: #a0aec0;
    font-size: 0.85rem;
    position: relative;
}

.paid-stamp {
    position: absolute;
    top: -60px;
    right: 20px;
    border: 4px solid #00cc6e;
    color: #00cc6e;
    padding: 10px 20px;
    font-size: 2rem;
    font-weight: 900;
    transform: rotate(-15deg);
    opacity: 0.2;
    border-radius: 10px;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .receipt-container, .receipt-container * {
        visibility: visible;
    }
    .receipt-container {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        border: none;
        padding: 0;
    }
    #status-overlay, .pay-btn, .close-btn, .background-blobs {
        display: none !important;
    }
}

.receipt-preview-display {
    background: white;
    color: #1a202c;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: left;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    max-height: 400px;
    overflow-y: auto;
    position: relative;
    border: 1px solid #e2e8f0;
}

.receipt-preview-display .r-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00ff88;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.receipt-preview-display .r-logo {
    height: 25px;
}

.receipt-preview-display .r-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    padding: 4px 0;
}

.receipt-preview-display .r-total {
    border-top: 1px solid #edf2f7;
    margin-top: 8px;
    padding-top: 8px;
    font-weight: 700;
    color: #00cc6e;
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.processing {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Ghana MoMo Payment Custom Styles */
.momo-content {
    padding: 1.25rem !important;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.momo-header h3 {
    font-size: 1.15rem;
}

.momo-details-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem;
    margin: 0.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.momo-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.momo-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.momo-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.momo-value {
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
}

.momo-value.highlight {
    color: #ffcc00;
    font-size: 1.1rem;
}

.copy-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: scale(1.05);
}

.momo-instruction {
    background: rgba(0, 212, 255, 0.07);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: #00d4ff;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.upload-section {
    text-align: left;
    margin: 0.25rem 0;
}

.upload-section label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
}

.upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-dropzone:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.02);
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}

.upload-plus-icon {
    font-size: 1.25rem;
    color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.upload-dropzone:hover .upload-plus-icon {
    transform: scale(1.1);
}

.screenshot-preview {
    max-height: 90px;
    max-width: 100%;
    border-radius: 8px;
    object-fit: contain;
    z-index: 1;
}

.cancel-btn {
    width: 100%;
    margin-top: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    padding: 0.8rem !important;
    font-size: 0.9rem !important;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.momo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.momo-actions .pay-btn {
    padding: 0.9rem !important;
    font-size: 1rem !important;
}
