
/* Structure de base */
.crypto-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Bannière d'authentification */
.auth-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    padding: 20px;
    margin:auto;
    margin-bottom: 30px;
    max-width:500px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.auth-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.auth-btn i {
    margin: 0 8px;
    font-size: 0.9em;
}

.login-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.login-btn:hover {
    background: transparent;
    color: white;
}

.register-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.register-btn:hover {
    background: white;
    color: var(--primary-color);
}

/* Conteneur d'échange */
.exchange-container {
    background: transparent;
    border-radius: 15px;
    max-width: 670px;
    margin: auto;
    margin-bottom: 30px;
}

.exchange-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.exchange-logo {
    width: 40px;
    height: 40px;
    border-radius: 5%;
    overflow: hidden;
    margin-right: 0px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
}

.exchange-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exchange-title {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Sections d'échange */
.exchange-section {
    margin-bottom: 5px;
    border-radius: 10px;
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.section-header i {
    transition: var(--transition);
}

.section-content {
    background: white;
    padding: 20px;
}

/* Sélecteur de devise */
.currency-selector {
    margin-bottom: 15px;
}

.currency-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.currency-btn:hover {
    background: #e0e0e0;
}

.currency-btn img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.currency-btn i {
    margin-left: auto;
    color: var(--gray-color);
}

/* Champ de montant */
.amount-input {
    position: relative;
    margin-bottom: 15px;
}

.amount-input input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.amount-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(110, 26, 141, 0.1);
    outline: none;
}

.currency-symbol {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--primary-color);
}

/* Flèche d'échange */
.exchange-arrow {
    text-align: center;
    margin: 15px 0;
}

.exchange-arrow i {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(110, 26, 141, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.exchange-arrow i:hover {
    transform: rotate(180deg);
    background: var(--primary-light);
}

/* Adresse de réception */
.address-input {
    position: relative;
}

.address-input input {
    width: 100%;
    padding: 15px 15px 15px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.address-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(110, 26, 141, 0.1);
    outline: none;
}

.address-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.address-validation {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 5px;
    text-align: center;
}

/* Liste d'adresses */
.address-list-header {
    background: rgba(206, 23, 23, 0.15);
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

.address-list-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.address-list {
    background: var(--light-color);
    border-radius: 8px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

/* Bouton d'échange */
.exchange-action {
    margin-top: 25px;
}

.exchange-btn {
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(110, 26, 141, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.exchange-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(110, 26, 141, 0.4);
}

.exchange-btn i {
    margin-left: 10px;
}

/* Contrôle admin */
.admin-control {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.admin-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.admin-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(110, 26, 141, 0.1);
    outline: none;
}

/* Données de marché */
.market-data {
    margin-bottom: 30px;
}

.chart-container {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.btc-prediction {
    width: 100%;
    height: 330px;
    border: none;
    overflow: hidden;
}

.tradingview-widget {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.tradingview-widget h5 {
    color: var(--primary-color);
    margin-top: 0;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.widget-note {
    font-size: 0.8rem;
    color: var(--gray-color);
    text-align: center;
    margin-bottom: 15px;
}

/* Pied de page */
.app-footer {
    text-align: center;
}

.info-banner {
background: linear-gradient(90deg, #24e26a3d 0%, oklab(96.17099999999999% -0.05414 0.0293 / 0.658) 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-banner p {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-btn {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.info-btn:hover {
    background: var(--primary-color);
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

    .c_s strong{
        font-weight: 700;
        margin-top: 8px;
        margin-bottom: 8px;
        color: black;
    }

    .c_s img{
        position: relative;
        margin-top: -10px;
        height: 20px;
    }

.social-links a:nth-child(1) { background: #0088cc; } /* Telegram */
.social-links a:nth-child(2) { background: #1877f2; } /* Facebook */
.social-links a:nth-child(3) { background: #1da1f2; } /* Twitter */
.social-links a:nth-child(4) { background: #25d366; } /* WhatsApp */

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-actions {
        flex-direction: column;
        gap: 10px;
        padding: 0px;
    }
    
    .exchange-header {
        flex-direction: row;
        text-align: center;
    }
    
    .exchange-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .exchange-title {
        font-size: 1.5rem;
    }
    
    .section-header {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
    
    .section-content {
        padding: 10px;
    }
    
    .amount-input input {
        padding: 12px 45px 12px 12px;
        font-size: 1rem;
    }
    
    .exchange-btn {
        padding: 14px;
        font-size: 1rem;
    }
    
    .btc-prediction {
        height: 330px;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .crypto-app {
        padding: 15px;
    }
    
    .exchange-container {
        padding: 0px;
    }
    
    .exchange-title {
        font-size: 1.3rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.crypto-app {
    animation: fadeIn 0.5s ease;
}


.pretty-price-info {
    background: linear-gradient(90deg, #f8f6fc 0%, #ded0ff 100%);
    border-radius: 10px;
    padding: 3px 16px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(110,26,141,0.10);
    font-size: 0.6em;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}
.pretty-price-info .price-value {
    color: #6e1a8d;
    font-weight: 700;
}
.pretty-price-info .price-currency {
    color: #6e1a8d;
    font-weight: 600;
    font-size: 1em;
}
.pretty-price-info .price-arrow {
    color: #6e1a8d;
    font-weight: 600;
    display: flex;
    align-items: center;
}
@media (max-width: 600px) {
    .pretty-price-info {
        font-size: 0.9em;
        gap: 8px;
    }
}
.exchange-arrow-container .pretty-arrow-animated {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(110,26,141,0.18);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: arrowPulse 2s infinite cubic-bezier(.77,0,.18,1);
    transition: box-shadow 0.3s;
}
.exchange-arrow-container .pretty-arrow-animated i {
    font-size: 3.2rem;
    color: #fff;
    animation: arrowRotate 3s linear infinite;
    transition: color 0.3s;
}
.exchange-arrow-container .pretty-arrow-animated:hover {
    box-shadow: 0 12px 32px rgba(110,26,141,0.28);
}
.exchange-arrow-container .pretty-arrow-animated:hover i {
    color: var(--secondary-color, #ffb300);
    animation-play-state: paused;
}
@keyframes arrowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(110,26,141,0.18);}
    50% { box-shadow: 0 0 0 16px rgba(110,26,141,0.08);}
}
@keyframes arrowRotate {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}



        .pretty-exchange-header {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 22px;
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%, var(--secondary-color) 100%);
            padding: 22px 28px;
            border-radius: 15px 15px 0 0;
            box-shadow: 0 8px 32px rgba(110,26,141,0.10);
            animation: fadeInDown 0.7s cubic-bezier(.77,0,.18,1) both;
        }
        /* Animation de background */
        .animated-bg {
            background: linear-gradient(270deg, var(--primary-color), var(--primary-light), var(--secondary-color), var(--primary-color));
            background-size: 600% 600%;
            animation: gradientMove 8s ease-in-out infinite;
        }
        @keyframes gradientMove {
            0% {
            background-position: 0% 50%;
            }
            25% {
            background-position: 50% 100%;
            }
            50% {
            background-position: 100% 50%;
            }
            75% {
            background-position: 50% 0%;
            }
            100% {
            background-position: 0% 50%;
            }
        }
        .pretty-logo {
            flex-shrink: 0;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            overflow: hidden;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 16px rgba(110,26,141,0.12);
            animation: bounceIn 1s both;
        }
        .pretty-logo img {
            width: 90%;
            height: 90%;
            object-fit: cover;
            border-radius: 50%;
            transition: transform 0.4s cubic-bezier(.77,0,.18,1);
        }
        .pretty-logo:hover img {
            transform: scale(1.08) rotate(-8deg);
        }
        .pretty-title {
            margin: 0;
            color: white;
            font-size: 2rem;
            font-weight: 800;
            letter-spacing: 1px;
            text-shadow: 0 2px 8px rgba(110,26,141,0.10);
            animation: fadeInRight 1.2s;
        }
        /* Animation continue */
        .animate-spin {
            animation: spin 2.5s linear infinite;
        }
        @keyframes spin {
            100% { transform: rotate(360deg);}
        }
        @media (max-width: 600px) {
            .pretty-exchange-header {
            flex-direction: row;
            gap: 10px;
            padding: 14px 8px;
            text-align: center;
            }
            .pretty-title {
            font-size: 1.2rem;
            }
            .pretty-logo {
            width: 40px;
            height: 40px;
            }
        }
        @keyframes fadeInDown {
            0% { opacity: 0; transform: translateY(-40px);}
            100% { opacity: 1; transform: translateY(0);}
        }
        @keyframes fadeInRight {
            0% { opacity: 0; transform: translateX(40px);}
            100% { opacity: 1; transform: translateX(0);}
        }
        @keyframes bounceIn {
            0% { transform: scale(0.7);}
            60% { transform: scale(1.15);}
            80% { transform: scale(0.95);}
            100% { transform: scale(1);}
        }
 