body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

h1, h2 {
     font-family: 'Roboto', sans-serif;
}

/* Header and Navigation */
header {
    background: #004494; /* Blue inspired by Mastercard */
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
}

nav ul {
    padding: 0;
    list-style: none;
    background: #003366;
    text-align: center;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: inline-block;
    transition: background-color 0.3s;
    font-weight: 700;
    font-size: 1rem;
}

nav ul li a:hover, nav ul li a.active {
    background: #ff5f00; /* Orange accent */
}

/* Main content */
main {
    padding: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
    background: #fff;
    min-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.page-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-content h2 {
    color: #003366;
    border-bottom: 3px solid #ff5f00;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.page-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.btn-recharge {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 2rem auto;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background-color: #ff5f00; /* Orange accent from nav */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-recharge:hover {
    background-color: #e65600; /* A slightly darker orange */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-recharge .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.btn-recharge:disabled {
    background-color: #e65600;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-recharge span {
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Security Promises Section */
.security-promises {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    margin: 3rem auto;
    text-align: center;
    max-width: 900px;
}

.promise-item {
    flex-basis: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promise-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.promise-item h3 {
    color: #003366;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.promise-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.card-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.card-logos img {
    max-width: 150px;
    height: auto;
    filter: grayscale(30%);
    transition: filter 0.3s, transform 0.3s;
}

.card-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Guide page specific styles */
.security-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.security-info img {
    max-width: 200px;
    margin-bottom: 1rem;
}

.security-info strong {
    color: #003366;
}

/* Auth Instructions & Warning */
.auth-instructions, .auth-warning {
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 700px;
}

.auth-instructions {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.auth-warning {
    background-color: #fff9e6;
    border: 1px solid #ffcc00;
    border-left: 5px solid #ffcc00;
}

.auth-instructions h3, .auth-warning h4 {
    margin-top: 0;
    color: #003366;
    font-family: 'Roboto', sans-serif;
}

.auth-warning h4 {
    color: #b38f00;
}

.auth-instructions p, .auth-warning p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.auth-warning strong {
    color: #d92d20;
}

/* Recharge Form */
.recharge-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Submission Success Message */
.submission-success {
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    animation: fadeIn 0.5s ease-in-out;
}

.submission-success h3 {
    font-size: 1.5rem;
    color: #2f855a;
    margin-top: 0;
    margin-bottom: 1rem;
}

.submission-success p {
    font-size: 1rem;
    color: #2d3748;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.success-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.success-actions .btn-recharge {
    margin: 0;
}

.success-actions .btn-recharge.secondary {
    background-color: #004494;
}

.success-actions .btn-recharge.secondary:hover {
    background-color: #003366;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #003366;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #004494;
    box-shadow: 0 0 5px rgba(0, 68, 148, 0.3);
}

/* Recharge Result */
.recharge-result {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    animation: fadeIn 0.5s ease-in-out;
}

.recharge-result.success {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
}

.result-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.recharge-result h3 {
    font-size: 1.8rem;
    color: #2f855a;
    margin-bottom: 0.5rem;
}

.balance-display {
    background-color: #fff;
    border: 2px dashed #48bb78;
    padding: 1rem;
    margin: 1.5rem auto;
    border-radius: 8px;
    display: inline-block;
}

.balance-display strong {
    font-size: 2rem;
    color: #2f855a;
}

.sub-message {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Remboursement page */
.refund-info {
    background-color: #eef7ff;
    border-left: 5px solid #004494;
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 2rem;
}

.refund-info p {
    margin: 0;
}

.refund-info a {
    color: #ff5f00;
    font-weight: bold;
    text-decoration: none;
}

.refund-info a:hover {
    text-decoration: underline;
}

.secure-submission-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #333;
    font-size: 0.95rem;
    border: 1px solid #e0e0e0;
}

.secure-submission-info img {
    width: 24px;
    height: 24px;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #333;
    color: #fff;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .security-info {
        flex-direction: row;
        text-align: left;
    }
}