html {
    scroll-behavior: smooth; /* Smooth scrolling pour les liens d'ancrage */
    overflow-x: hidden; /* Empêche le défilement horizontal au niveau de HTML */
    box-sizing: border-box; /* Applique border-box globalement */
}

*,
*::before,
*::after {
    box-sizing: inherit; /* Tous les éléments héritent de box-sizing de html */
}

body {
    font-family: 'Inter', sans-serif;
    color: #e0e0e0; /* Couleur de texte principale */
    overflow-x: hidden; /* Empêche le défilement horizontal sur le body (déjà présent) */
    /* min-width: 320px; */ /* Optionnel: pour éviter des problèmes sur de très petits écrans, mais peut causer du scroll si l'écran est plus petit */
}

.antialiased {
    background-color: #10002b;
}

body.no-scroll {
    overflow: hidden;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c001f; /* Couleur de fond du loader */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

#new-loader-svg {
    width: 150px; /* Adjusted for smaller screens */
    height: auto;
    margin: 10px;
    opacity: 0; /* Initialement invisible */
}
@media (min-width: 768px) { /* md breakpoint */
    #new-loader-svg {
        width: 200px;
    }
}

#grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Derrière tout le contenu */
}

.hero-section {
    min-height: 100vh;
    background-color: #0a011a; /* Couleur de fond spécifique pour la section hero */
    background-image:
        radial-gradient(ellipse at 20% 100%, rgba(76, 29, 149, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(128, 0, 128, 0.4) 0%, transparent 60%);
    background-repeat: no-repeat;
    background-position: bottom left, bottom right;
    padding-top: 6rem; /* Adjusted padding for mobile */
    padding-bottom: 4rem;
}
@media (min-width: 768px) { /* md breakpoint */
    .hero-section {
        padding-top: 8rem; /* Original padding for larger screens */
        padding-bottom: 0;
    }
}


.card {
    background-color: rgba(30, 10, 70, 0.7); /* Fond semi-transparent pour les cartes */
    border: 1px solid rgba(128, 90, 213, 0.5); /* Bordure subtile pour les cartes */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    border-radius: 0.5rem; /* Coins arrondis */
}
.card:hover {
    transform: translateY(-5px) scale(1.02); /* Effet de survol */
    box-shadow: 0 10px 20px rgba(128, 90, 213, 0.3); /* Ombre au survol */
}

.section-title {
    font-size: 2rem; /* Adjusted for mobile */
    font-weight: bold;
    margin-bottom: 1.5rem; /* Adjusted for mobile */
    text-align: center;
    background: -webkit-linear-gradient(45deg, #8a2be2, #ff00ff); /* Dégradé pour le texte */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Rend le texte transparent pour voir le dégradé */
}
@media (min-width: 768px) { /* md breakpoint */
    .section-title {
        font-size: 2.5rem; /* Original size for larger screens */
        margin-bottom: 2rem;
    }
}

.btn-primary {
    background: linear-gradient(45deg, #8a2be2, #ff00ff); /* Dégradé pour les boutons principaux */
    color: white;
    padding: 0.6rem 1.2rem; /* Adjusted padding for mobile */
    border-radius: 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4); /* Ombre pour les boutons */
    font-size: 0.9rem; /* Adjusted font size for mobile */
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.05); /* Effet de survol pour les boutons */
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}
@media (min-width: 768px) { /* md breakpoint */
    .btn-primary {
        padding: 0.75rem 1.5rem; /* Original padding */
        font-size: 1rem; /* Original font size */
    }
}

.platform-card-v2 {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    background-color: #1a053d; /* Fallback */
}
.platform-card-v2:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(128, 90, 213, 0.3), 0 0 15px rgba(255, 0, 255, 0.2);
}
.platform-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.btn-watch-card {
    background-color: white;
    color: #10002b;
}
.btn-watch-card:hover {
    background-color: #e0e0e0;
}
.btn-add-later-card {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-add-later-card:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Styles pour le slider de VIDÉOS Tinder */
.image-slider-card { /* Conteneur global pour le slider Tinder */
    background-color: #1a053d;
}
.tinder-slider-container { /* Conteneur direct des cartes Tinder */
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
}
.tinder-card {
    width: 100%;
    height: 100%;
    border-radius: 0.375rem;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    will-change: transform;
    cursor: grab;
    user-select: none;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
}
.tinder-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.tinder-card.dragging {
    transition: none;
}
.tinder-card.dismissing-right {
    transform: translateX(150%) rotate(20deg) !important;
    opacity: 0 !important;
}
.tinder-card.dismissing-left {
    transform: translateX(-150%) rotate(-20deg) !important;
    opacity: 0 !important;
}


.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pricing-card-content {
    flex-grow: 1;
}
.pricing-card ul li span:first-child { /* Platform name */
    font-size: 0.85rem; /* Slightly smaller for mobile */
}
.pricing-card ul li span:last-child { /* Price */
    font-size: 0.9rem; /* Slightly smaller for mobile */
}
@media (min-width: 768px) {
    .pricing-card ul li span:first-child {
        font-size: 15px; /* Original size */
    }
    .pricing-card ul li span:last-child {
        /* Keep original or adjust as needed */
    }
}


.form-container {
    background-color: rgba(12, 0, 31, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128, 90, 213, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem; /* Adjusted for mobile */
    box-shadow: 0 10px 30px rgba(128, 90, 213, 0.2);
}
@media (min-width: 768px) { /* md breakpoint */
    .form-container {
        padding: 2rem; /* Original padding */
    }
}

.form-input, .form-select {
    background-color: rgba(30, 10, 70, 0.7);
    border: 1px solid rgba(128, 90, 213, 0.6);
    color: #e0e0e0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Ensure full width on mobile */
}
.form-input:focus, .form-select:focus {
    border-color: #ff00ff;
    box-shadow: 0 0 0 3px rgba(255, 0, 255, 0.3);
    outline: none;
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em;
    padding-right: 2.5rem;
}

header {
    background-color: rgba(12, 0, 31, 0.7);
    backdrop-filter: blur(5px);
}

.floating-card {
    position: relative;
    margin: 10px; /* Adjusted margin for mobile */
    background-color: rgba(30, 10, 70, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(128, 90, 213, 0.6);
    border-radius: 0.75rem;
    padding: 1rem; /* Adjusted padding for mobile */
    width: calc(100% - 20px); /* Full width on small screens, considering margin */
    max-width: 280px; /* Keep max-width for larger consistency if desired */
    box-shadow: 0 8px 25px rgba(128, 90, 213, 0.25);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (min-width: 640px) { /* sm breakpoint */
    .floating-card {
        width: 280px; /* Original width */
        margin: 20px;
        padding: 1.5rem;
    }
}
.floating-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(128, 90, 213, 0.35);
}
.floating-card h3 {
    color: #e5c1ff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem; /* Adjusted for mobile */
}
@media (min-width: 768px) { /* md breakpoint */
    .floating-card h3 {
        font-size: 1.25rem; /* Original size */
    }
}
 .floating-card p {
    font-size: 0.85rem; /* Adjusted for mobile */
    color: #c0b4d4;
    margin-bottom: 1rem;
    flex-grow: 1;
}
@media (min-width: 768px) { /* md breakpoint */
    .floating-card p {
        font-size: 0.9rem; /* Original size */
    }
}
.floating-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(128, 90, 213, 0.3);
}
.floating-card .card-footer .icon {
    color: #a78bfa; /* purple-400 equivalent */
    font-size: 1.25rem; /* Adjusted for mobile */
}
@media (min-width: 768px) { /* md breakpoint */
    .floating-card .card-footer .icon {
        font-size: 1.5rem; /* Original size */
    }
}
.floating-card .card-footer .details-link {
    color: #f472b6; /* pink-400 equivalent */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
    font-size: 0.85rem; /* Adjusted */
}
@media (min-width: 768px) {
    .floating-card .card-footer .details-link {
        font-size: inherit; /* Or specific original size if any */
    }
}
.floating-card .card-footer .details-link:hover {
     color: #ff00ff;
}

#mobile-menu {
    background-color: #1c0942;
}

#floating-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Adjusted gap for mobile */
    padding: 10px; /* Adjusted padding for mobile */
    z-index: 1;
}
@media (min-width: 640px) { /* sm breakpoint */
    #floating-cards-container {
        gap: 20px; /* Original gap */
        padding: 20px; /* Original padding */
    }
}

.fab {
    position: fixed;
    bottom: 20px; /* Adjusted for mobile */
    right: 20px;  /* Adjusted for mobile */
    width: 50px;  /* Adjusted for mobile */
    height: 50px; /* Adjusted for mobile */
    background: linear-gradient(45deg, #8a2be2, #ff00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}
.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.7);
}
.fab i {
    font-size: 1.25rem; /* Adjusted for mobile */
    color: white;
}
@media (min-width: 768px) { /* md breakpoint */
    .fab {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
    }
    .fab i {
        font-size: 1.5rem; /* Original size */
    }
}


.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #10002b;
}

.expired-subscriptions-grid {
    display: grid;
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.expired-subscriptions-grid::-webkit-scrollbar {
    width: 8px;
}
.expired-subscriptions-grid::-webkit-scrollbar-track {
    background: rgba(30, 10, 70, 0.7);
    border-radius: 10px;
}
.expired-subscriptions-grid::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.6);
    border-radius: 10px;
}
.expired-subscriptions-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.8);
}

.expired-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    background-color: rgba(30, 10, 70, 0.7);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(128, 90, 213, 0.5);
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.expired-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.expired-card-col p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #c0b4d4;
}

.expired-card-col p strong {
    color: #e5c1ff;
}

.expired-card-col:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
}

.expired-card-col .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem; /* Add padding for overlay */
}
.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.popup-content {
    background-color: #1e0a46;
    padding: 1.5rem; /* Adjusted for mobile */
    border-radius: 0.75rem;
    border: 1px solid rgba(128, 90, 213, 0.7);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    width: 100%; /* Use full width within overlay padding */
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
@media (min-width: 768px) { /* md breakpoint */
    .popup-content {
        padding: 2rem; /* Original padding */
    }
}
.popup-overlay.active .popup-content {
    transform: scale(1);
}
/* Custom CSS for toast notifications */
.toast-enter-active, .toast-leave-active {
    transition: all 0.3s ease-in-out;
}
.toast-enter-from, .toast-leave-to {
    opacity: 0;
    transform: translate(-50%, -20px);
}
.popup-close-btn {
    position: absolute;
    top: 10px; /* Adjusted */
    right: 10px; /* Adjusted */
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.25rem; /* Adjusted */
    cursor: pointer;
}
@media (min-width: 768px) { /* md breakpoint */
     .popup-close-btn {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
    }
}
.popup-close-btn:hover {
    color: #ff00ff;
}

.password-display-container {
    display: inline-flex;
    align-items: center;
}
.password-toggle-icon {
    margin-left: 0.5rem;
    cursor: pointer;
    color: #c0b4d4;
    transition: color 0.2s ease;
}
.password-toggle-icon:hover {
     color: #e0e0e0;
}

.code-display-container {
    display: inline-flex;
    align-items: center;
}
.coe-toggle-icon {
    margin-left: 0.5rem;
    cursor: pointer;
    color: #c0b4d4;
    transition: color 0.2s ease;
}
.code-toggle-icon:hover {
     color: #e0e0e0;
}

.message-container {
    background-color: rgba(12, 0, 31, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128, 90, 213, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem; /* Adjusted for mobile */
    box-shadow: 0 10px 30px rgba(128, 90, 213, 0.2);
    text-align: center;
}
@media (min-width: 768px) { /* md breakpoint */
    .message-container {
        padding: 2.5rem; /* Original padding */
    }
}

.success-icon, .failure-icon, .error-icon {
    font-size: 3rem; /* Adjusted for mobile */
    margin-bottom: 1rem;
}
@media (min-width: 768px) { /* md breakpoint */
    .success-icon, .failure-icon, .error-icon {
        font-size: 4rem; /* Original size */
    }
}
.success-icon { color: #34d399; }
.failure-icon { color: #f87171; }
.error-icon { color: #fbbf24; }

.terms-content {
    background-color: rgba(18, 4, 49, 0.7);
    backdrop-filter: blur(3px);
    border-radius: 0.75rem;
    padding: 1.5rem; /* Adjusted for mobile */
    margin-top: 1.5rem; /* Adjusted */
    margin-bottom: 1.5rem; /* Adjusted */
    box-shadow: 0 8px 25px rgba(128, 90, 213, 0.15);
    border: 1px solid rgba(128, 90, 213, 0.3);
}
@media (min-width: 768px) { /* md breakpoint */
    .terms-content {
        padding: 2rem; /* Original padding */
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}
.terms-content h2 {
    color: #e5c1ff;
    font-size: 1.5rem; /* Adjusted */
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(128, 90, 213, 0.5);
}
@media (min-width: 768px) { /* md breakpoint */
    .terms-content h2 {
        font-size: 1.75rem; /* Original size */
    }
}
.terms-content h3 {
    color: #d1a9ff;
    font-size: 1.1rem; /* Adjusted */
    font-weight: bold;
    margin-top: 1.25rem; /* Adjusted */
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) { /* md breakpoint */
    .terms-content h3 {
        font-size: 1.25rem; /* Original size */
        margin-top: 1.5rem;
    }
}
.terms-content p, .terms-content ul {
    font-size: 0.9rem; /* Adjusted */
    line-height: 1.6;
    color: #c0b4d4;
    margin-bottom: 1rem;
}
@media (min-width: 768px) { /* md breakpoint */
    .terms-content p, .terms-content ul {
        font-size: 0.95rem; /* Original size */
    }
}
.terms-content ul {
    list-style-type: disc;
    padding-left: 1.25rem; /* Adjusted */
}
@media (min-width: 768px) { /* md breakpoint */
    .terms-content ul {
        padding-left: 1.5rem; /* Original size */
    }
}
.terms-content a {
    color: #ff00ff;
    text-decoration: underline;
}
.terms-content a:hover {
    color: #e5c1ff;
}

.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem; /* Base padding for mobile */
    padding-top: 6rem; /* Space for fixed header on mobile */
    padding-bottom: 5rem; /* Space for footer on mobile */
}
@media (min-width: 768px) { /* md breakpoint */
    .content-wrapper {
        padding: 2rem;
        padding-top: 8rem;
        padding-bottom: 6rem;
    }
}

.error-code {
    font-size: 4rem; /* Adjusted for mobile */
    font-weight: bold;
    line-height: 1;
    background: linear-gradient(45deg, #8a2be2, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem; /* Adjusted */
}
/*@media (min-width: 768px) { !* md breakpoint *!*/
/*    .error-code {*/
/*        font-size: 6rem; !* Original size *!*/
/*        margin-bottom: 1rem;*/
/*    }*/
/*}*/

.error-message {
    font-size: 1.2rem; /* Adjusted for mobile */
    color: #e5c1ff;
    margin-bottom: 0.5rem;
}
/*@media (min-width: 768px) { !* md breakpoint *!*/
/*    .error-message {*/
/*        font-size: 1.5rem; !* Original size *!*/
/*    }*/
/*}*/

.error-description {
    font-size: 0.9rem; /* Adjusted for mobile */
    color: #c0b4d4;
    margin-bottom: 1.5rem; /* Adjusted */
    max-width: 90%; /* Ensure it doesn't touch edges */
}
@media (min-width: 768px) { /* md breakpoint */
    .error-description {
        font-size: 1rem; /* Original size */
        margin-bottom: 2rem;
        max-width: 500px;
    }
}

.home-link {
    display: inline-block;
    background: linear-gradient(45deg, #8a2be2, #ff00ff);
    color: white;
    padding: 0.6rem 1.2rem; /* Adjusted */
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    font-size: 0.9rem; /* Adjusted */
}
/*@media (min-width: 768px) { !* md breakpoint *!*/
/*    .home-link {*/
/*        padding: 0.75rem 1.75rem; !* Original padding *!*/
/*        font-size: 1rem; !* Assuming original was around this *!*/
/*    }*/
/*}*/
.home-link:hover {
    transform: translateY(-2px) scale(1.05);
}

.toast {
    background-color: #28a745; /* Default success color */
    transition: opacity 0.5s, transform 0.5s;
    transform: translateX(100%);
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.info {
    background-color: #17a2b8;
}

.toast.error {
    background-color: #dc3545;
}

/* Footer specific adjustments if needed, Tailwind classes in HTML are often sufficient */
footer .text-xs {
    /* Tailwind text-xs is 0.75rem, which is usually fine for mobile */
}
footer .gap-x-8 {
    /* On mobile, you might want a smaller gap or for items to stack.
       Tailwind: gap-x-4 sm:gap-x-8 */
}
