/* === REVEAL.CSS — design premium pour la page des révélations === */


/* Conteneur principal */

.reveal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}


/* En-tête de page */

.page-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.page-title i {
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Carte de solde */

.balance-card {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 2px solid #e2e8f0;
    border-radius: 2.5rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    box-shadow: 0 25px 30px -15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67, 56, 202, 0.03) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.balance-card:hover {
    transform: translateY(-5px);
    border-color: #4338ca;
    box-shadow: 0 30px 40px -20px rgba(67, 56, 202, 0.3);
}

.balance-icon {
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px -5px rgba(67, 56, 202, 0.5);
}

.balance-content {
    flex: 1;
}

.balance-label {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

.balance-value {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #1e293b, #4338ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-trend {
    background: #f1f5f9;
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #e2e8f0;
}

.balance-trend i {
    color: #10b981;
}


/* Sections */

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #4338ca;
}

.section-description {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
    max-width: 800px;
}


/* Grille des applications */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 1rem;
}

.app-card {
    background: #ffffff;
    border: 2px solid #e9eff6;
    border-radius: 2rem;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    border-color: #4338ca;
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(67, 56, 202, 0.2);
}

.app-card.rewarded {
    background: #f8fafc;
    border-color: #cbd5e1;
    opacity: 0.8;
}

.app-card.rewarded::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 1.2rem;
    object-fit: cover;
    background: #f1f5f9;
}

.app-icon-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.app-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.app-description {
    font-size: 0.9rem;
    color: #64748b;
}

.app-action {
    margin-top: auto;
}

.btn-app {
    background: linear-gradient(135deg, #4338ca, #5f4be3);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-app:hover:not(:disabled) {
    background: linear-gradient(135deg, #3730a3, #4f3bd0);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(67, 56, 202, 0.5);
}

.btn-app:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
}


/* Badge bientôt disponible */

.badge-coming-soon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f59e0b;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}


/* Section achat */

.purchase-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px dashed #e2e8f0;
}

.coming-soon-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.coming-soon-card i {
    font-size: 3rem;
    color: #94a3b8;
}

.coming-soon-content {
    flex: 1;
}

.coming-soon-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.coming-soon-content p {
    color: #64748b;
    margin: 0;
}

.badge {
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #cbd5e1;
}


/* Modale de vérification */

.verification-modal {
    max-width: 500px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eef2f6;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem;
}

.close-button:hover {
    color: #0f172a;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 1rem;
}

.app-icon-placeholder-small {
    width: 50px;
    height: 50px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.app-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.app-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

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

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: #4338ca;
    margin-right: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #4338ca;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.2);
}

.help-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.verification-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verification-result.success {
    background: #e6f7e6;
    border-color: #10b981;
    color: #0a5a0a;
}

.verification-result.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
}


/* Loading state */

.loading-apps {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-size: 1.1rem;
}

.loading-apps i {
    color: #4338ca;
    margin-right: 0.5rem;
}


/* Responsive */

@media (max-width: 768px) {
    .reveal-container {
        padding: 1.5rem;
    }
    .balance-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    .balance-value {
        font-size: 3rem;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .balance-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .balance-value {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
}


/* Modale de téléchargement */

.download-modal {
    max-width: 500px;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.download-option:hover {
    border-color: #4338ca;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(67, 56, 202, 0.3);
}

.download-option i {
    font-size: 2.5rem;
}

.download-option .fa-android {
    color: #3ddc84;
}

.download-option .fa-apple {
    color: #000000;
}

.download-option-text {
    flex: 1;
}

.download-option-text strong {
    display: block;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.download-option-text span {
    font-size: 0.9rem;
    color: #64748b;
}


/* Bouton de téléchargement dans la carte */

.app-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.btn-app-download {
    background: white;
    color: #4338ca;
    border: 2px solid #4338ca;
    border-radius: 40px;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-app-download:hover {
    background: #4338ca;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(67, 56, 202, 0.5);
}

.btn-app {
    flex: 1;
}

.btn-app-rewarded {
    background: #10b981;
    cursor: default;
    width: 100%;
}

@media (max-width: 600px) {
    .app-actions {
        flex-direction: column;
    }
    .download-option {
        padding: 1rem;
    }
    .download-option i {
        font-size: 2rem;
    }
}


/* === STYLES DE MODALE AMÉLIORÉS === */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
    position: relative;
    margin: auto;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #eef2f6;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.modal-header h3 i {
    color: #4338ca;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close-button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.modal-body {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}


/* Styles spécifiques pour les modales */

.verification-modal,
.download-modal {
    max-width: 500px;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 1rem;
}

.app-info .app-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    object-fit: cover;
}

.app-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.app-info p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

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

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: #4338ca;
    margin-right: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #4338ca;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.2);
}

.help-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.verification-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: resultFadeIn 0.3s ease;
}

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

.verification-result.success {
    background: #e6f7e6;
    border: 2px solid #10b981;
    color: #0a5a0a;
}

.verification-result.error {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #b91c1c;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.download-option:hover {
    border-color: #4338ca;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(67, 56, 202, 0.3);
}

.download-option i {
    font-size: 2.5rem;
}

.download-option .fa-android {
    color: #3ddc84;
}

.download-option .fa-apple {
    color: #000000;
}

.download-option-text {
    flex: 1;
}

.download-option-text strong {
    display: block;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.download-option-text span {
    font-size: 0.9rem;
    color: #64748b;
}


/* Empêcher le scroll du body quand une modale est ouverte */

body.modal-open {
    overflow: hidden;
}


/* Responsive pour les modales */

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        border-radius: 1.5rem;
    }
    .modal-header {
        padding: 1.2rem 1.5rem;
    }
    .modal-body {
        padding: 1.5rem;
    }
    .modal-actions {
        flex-direction: column;
    }
    .modal-actions button {
        width: 100%;
    }
    .download-option {
        padding: 1rem;
    }
    .download-option i {
        font-size: 2rem;
    }
}