#cgu-articles {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-scroll {
    animation: scroll 60s linear infinite;
}

@media (max-width: 640px) {
    .animate-scroll {
        animation: scroll 80s linear infinite;
    }
}

.custom-btn {
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

button .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: rgba(86, 109, 127, 0.5);
    transition: width 2s;
}

.message {
    margin-top: 20px;
    color: #3e4a53;
}

.activation-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 10px;
    font-weight: semibold;
    margin-top: 20px;
    text-align: start;
    width: 100%;
}

.loading-message {
    color: #155724;
    display: none;
}

.reviews-section {
    background-color: none;
    padding: 40px;
    border-radius: 10px;
    color: #eff6f7;
    overflow: hidden;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: black;
}

.reviews-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    animation: scrollReviews 80s linear infinite;
}

.review {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 250px;
    max-width: 300px;
}

.stars {
    color: #0bb37d;
    font-size: 1.5rem;
}

.review-name {
    color: #444d57;
}

.review-text {
    font-size: 1rem;
    line-height: 1.5;
    color: black;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #444d57;
}

.review-date,
.review-time {
    color: #b0b0b0;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 1024px) {
    .reviews-container {
        gap: 15px;
    }

    .review {
        padding: 15px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stars {
        font-size: 1.4rem;
    }

    .review-text {
        font-size: 0.95rem;
    }

    .review-meta {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .reviews-container {
        gap: 10px;
    }

    .review {
        padding: 12px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stars {
        font-size: 1.3rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .review-meta {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 20px;
    }

    .reviews-container {
        gap: 8px;
    }

    .review {
        padding: 10px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .stars {
        font-size: 1.2rem;
    }

    .review-text {
        font-size: 0.85rem;
    }

    .review-meta {
        font-size: 0.7rem;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scroll 80s linear infinite;
}

.animate-scroll::after {
    content: "";
    display: inline-block;
    width: 100%;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.4s ease-in-out;
}


/* Recharge to money css */

.recharge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 640px) {
    .recharge-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .recharge-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
}

.card {
    --brand: #6366f1;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 150px;
    padding: 24px 18px;
    border-radius: 20px;

    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    background:
        radial-gradient(circle at top, color-mix(in srgb, var(--brand) 35%, transparent), transparent 55%);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 1px;
    background: linear-gradient(120deg,
            transparent,
            color-mix(in srgb, var(--brand) 65%, transparent),
            transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.google-play::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(57, 139, 79, 0.28), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(177, 61, 51, 0.24), transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(65, 113, 188, 0.24), transparent 40%);
}

.google-play::after {
    background: linear-gradient(120deg,
            transparent,
            var(--brand),
            var(--brand2),
            var(--brand3),
            transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.logo {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0.92);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.card p {
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    line-height: 1.4;
}

.card:hover {
    transform: translateY(-8px) scale(1.035);
    border-color: color-mix(in srgb, var(--brand) 50%, rgba(255, 255, 255, 0.08));
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.42),
        0 0 30px color-mix(in srgb, var(--brand) 28%, transparent);
}

.card:hover::before,
.card:hover::after {
    opacity: 1;
}

.card:hover .logo img {
    filter: brightness(1.1);
    transform: scale(1.06);
}

@media (max-width: 639px) {
    .card {
        min-height: 136px;
        padding: 20px 14px;
        border-radius: 16px;
    }

    .logo {
        height: 48px;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 13px;
    }
}

.form-control,
.form-select {
    border-radius: 0.5rem;
    background-color: none;
    color: #3c4047;
    padding: 0.5rem;
    font-size: 0.875rem;
    width: 100%;
}

.mb-3 {
    margin-bottom: 20px !important;
}

.input-group-text {
    padding: 0.375rem 0.75rem;
}

.flex-inputs {
    display: flex;
    gap: 10px;
}

.flex-inputs input {
    width: 33%;
}


.loading-spinner {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.remove-recharge-btn {
    margin-top: 10px;
}

.confirmation-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    display: none;
}

#cgu-articles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#cgu-articles section {
    background: #111827;
    border-radius: 1rem;
    border: 1px solid #374151;
    padding: 1.5rem 2rem;
    transition: all 0.2s ease-in-out;
}

#cgu-articles h3 {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

#cgu-articles p,
#cgu-articles li {
    color: #d1d5db;
    line-height: 1.7;
    font-size: 0.95rem;
}

#cgu-articles ul {
    list-style: disc;
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

#cgu-articles table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #374151;
    border-radius: 0.75rem;
    overflow: hidden;
}

#cgu-articles table th {
    background-color: #1f2937;
    font-weight: 600;
    color: #ffffff;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #374151;
}

#cgu-articles table td {
    background-color: #111827;
    color: #d1d5db;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1f2937;
    font-size: 0.9rem;
}

#cgu-articles table tr:last-child td {
    border-bottom: none;
}

#cgu-articles a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 500;
}

#cgu-articles a:hover {
    text-decoration: underline;
    color: #a5b4fc;
}

#cgu-articles code {
    background: #1f2937;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Fira Code', monospace;
    color: #f9fafb;
    font-size: 0.9rem;
}

#cgu-articles li ul {
    margin-top: 0.25rem;
}

#cgu-articles h4 {
    font-weight: 600;
    color: #f3f4f6;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

@media (max-width: 640px) {
    #cgu-articles section {
        padding: 1.25rem;
    }

    #cgu-articles h3 {
        font-size: 1rem;
    }

    #cgu-articles table th,
    #cgu-articles table td {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.4s ease-in-out;
}