﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --text-light: #fff;
    --text-muted: #aaa;
    --primary-color: #0052FF;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: black;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ===========================
   NAVIGATION — identique à Home
   =========================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 90%;
    border-radius: 20px;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 20px;
}


.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 70px;
    display: block;
    position: relative;
    top: 5px;
}
.sign-in-btn {
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 15px;
    font-size: 13px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.sign-in-btn:hover {
    opacity: 0.8;
}


.sign-in-btn:active {
    opacity: 0.7;
}

       .play-btn {
          color: white;
          background-color: transparent;
          text-decoration: none;
          border: 1px solid white !important;
          border-radius: 20px;
          padding: 10px 22px;
          font-weight: 600;
          cursor: pointer;
          opacity: 1;
          transition: opacity 0.3s ease;
          font-size: 13px;
        }

.play-btn:hover {
    opacity: 0.8;
}

.play-btn:active {
    opacity: 0.7;
}

/* ===========================
   MOBILE MENU — identique à Home
   =========================== */
.mobile-menu-toggle {
    display: none;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 6px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-icon,
.close-icon {
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle .close-icon {
    display: none;
}

.mobile-menu-toggle.active .menu-icon {
    display: none;
}

.mobile-menu-toggle.active .close-icon {
    display: block;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    opacity: 0.7;
    transform: translateX(10px);
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

/* ===========================
   MAIN CONTAINER
   =========================== */
.Acontainer {
    display: flex;
    max-width: 1400px;
    width: 100%;
    gap: 60px;
    padding: 40px 20px;
    align-items: center;
    margin: 0 auto;
    margin-top: 120px;
    min-height: calc(90vh - 160px);
}

.left-section {
    flex: 1;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    position: relative;
    left: 90px;
    top: -50px;
}

.right {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-title {
    font-size: 70px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: left;
}

.subtitle {
    font-size: 18px;
    color: #888888;
    line-height: 1.5;
    margin-bottom: 40px;
    text-align: left;
    max-width: 500px;
}

/* ===========================
   CARD
   =========================== */
.card {
    background-color: transparent;
    border-radius: 24px;
    padding: 64px;
    border: 1px solid #333333;
    width: 690px !important;
    height: 600px !important;
    position: relative;
    left: 46px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

/* ===========================
   TABS
   =========================== */
.tab-container {
    position: relative;
    display: flex;
    background: linear-gradient(135deg,
        rgba(248, 249, 250, 0) 0%,
        rgba(248, 249, 250, 0) 50%,
        rgba(248, 249, 250, 0) 100%);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 24px;
    border: 1px solid rgb(90, 89, 89);
    width: 94%;
    overflow: hidden;
}

.tab-slider {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 6px);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(248, 249, 250, 0.9) 100%);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    opacity: 0;
    transform: scale(0.9);
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
    to { opacity: 1; transform: scale(1); }
}

.tab-slider.sell-active {
    left: calc(50% + 0px);
}

.tab {
    position: relative;
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    z-index: 2;
    user-select: none;
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.tab:active::before {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.active {
    color: #000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.tab:not(.active):hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.02);
}

.tab-icon {
    display: inline-block;
    margin-right: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

.tab.active .tab-icon {
    transform: rotate(360deg) scale(1.1);
}

.tab.active::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow { to { opacity: 0.6; } }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tab.switching {
    animation: pulse 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}



@keyframes success {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.tab-container.success .tab-slider {
    animation: success 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rippleEffect {
    to { transform: scale(2); opacity: 0; }
}

/* ===========================
   INPUTS
   =========================== */
.input-group {
    margin-bottom: 24px;
    position: relative;
    top: -40px;
    width: 350px;
}

.input-container {
    position: relative;
    background-color: transparent;
    border-radius: 12px;
    border: 1px solid #444444;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.3s ease;
}

.input-container:hover {
    border-color: #ffffff;
}

.input-label {
    font-size: 0.875rem;
    color: #e6e6e6;
    margin: 0;
}

.input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-amount {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    outline: none;
    flex: 1;
}

/* ===========================
   CURRENCY DROPDOWN
   =========================== */
.currency-dropdown {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.currency-options {
    display: none;
    position: absolute;
    right: 0;
    background-color: #000000;
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.currency-options.show {
    display: block;
}

.currency-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.currency-option:hover {
    background-color: #333;
}

.currency-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.currency-name {
    flex-grow: 1;
    color: white;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.currency-code {
    color: #888;
    font-size: 12px;
    margin-left: 10px;
    width: 50px;
    text-align: right;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    left: -110px;
}

.currency-selector:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.selected-currency {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-currency {
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background-color: #000000;
    z-index: 1;
}

.search-currency input {
    width: 100%;
    background-color: #000000;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    color: white;
    outline: none;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #888888;
    margin-left: 4px;
}

.crypto-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100px;
    position: relative;
    left: -90px;
}

.crypto-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    left: -12px;
}

.rate-info {
    font-size: 0.875rem;
    color: #888888;
    margin-bottom: 24px;
    position: relative;
    top: -55px;
}

.connect-button {
    width: 94%;
    height: 68px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    top: -45px;
}

.connect-button:hover {
    background-color: #e4e4e4;
}

/* Scrollbar */
.currency-options::-webkit-scrollbar { width: 6px; }
.currency-options::-webkit-scrollbar-track { background: #1a1a1a; }
.currency-options::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }
.currency-options::-webkit-scrollbar-thumb:hover { background: #777; }

/* Highlights */
.highlight {
    background-color: rgba(255, 255, 0, 0.3);
    font-weight: bold;
    color: #fff;
}

.highlight-first {
    background-color: rgba(0, 82, 255, 0.2);
    border-left: 2px solid var(--primary-color);
}

.no-results {
    color: #888;
    padding: 15px;
    text-align: center;
    font-size: 14px;
}

/* ===========================
   FOOTER — identique à Home
   =========================== */
.main-content {
    display: flex;
    padding: 30px;
    gap: 150px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 30px;
}

.xlogo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo-icon {
    width: 90px;
    height: 90px;
 position: relative;
            left: -20px;
            top: 20px;
}

.copyright {
    color: #666;
    font-size: 14px;
    position: relative;
    top: -20px;
}

/* ===========================
   LANGUAGE SELECTOR — identique à Home
   =========================== */
.language-currency-selector {
    position: relative;
    display: inline-block;
}

.selector {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 40px 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    width: 180px;
    height: 50px;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.selector:hover {
    border-color: #555;
    background: rgba(255, 255, 255, 0.05);
}

.selector::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

.selector::after {
    content: '';
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    position: absolute;
    right: 12px;
    transition: transform 0.3s ease;
}

.selector.active::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    display: flex;
    max-height: 300px;
    overflow: hidden;
}

.dropdown-section {
    flex: 1;
    padding: 16px;
}

.dropdown-section:first-child {
    border-right: 1px solid #333;
}

.section-title {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    font-size: 14px;
}

.option-item:hover {
    color: #0052FF;
    transform: translateX(2px);
}

.option-item.selected {
    color: #0052FF;
    font-weight: 600;
}

.option-item::before {
    content: '✓';
    color: #0052FF;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

a {
    text-decoration: none;
    color: #ffffff;
}

/* ===========================
   BARRE DE RECHERCHE — identique à Home
   =========================== */
.os-search-container {
    display: flex;
    position: relative;
    margin-left: 20px;
    z-index: 1005;
}

.os-search-dropdown {
    display: none !important;
}


/* ===========================
   NOTIFICATION BUTTON
   =========================== */
.notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    padding: 6px;
    border-radius: 10px;
    transition: opacity 0.3s ease, background 0.2s ease;
    flex-shrink: 0;
}

.notif-btn:hover {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.08);
}


  

@media (max-width: 767px) {
    .notif-btn { display: none; }
}

/* ===========================
   RESPONSIVE — parfaitement identique à Home
   =========================== */

/* Large desktop (1024px+) */
@media (min-width: 1024px) {
    nav { width: 90%; }
    .main-content { gap: 150px; }
    .Acontainer { gap: 60px; margin-top: 120px; }
    .left-section { left: 90px; }
    .main-title { font-size: 70px; }
    .card { width: 600px; height: 530px; padding: 64px; }
}

/* Tablettes (768px–1023px) — identique à Home */
@media (max-width: 1023px) and (min-width: 768px) {
    nav {
        width: 95%;
        padding: 8px 15px;
    }

    .nav-left { gap: 20px; }

    .nav-links {
        gap: 20px;
        margin-left: 20px;
    }

    .nav-links a { font-size: 13px; }

    .logo img { height: 60px; }

    .os-search-container { margin-left: 10px; }
    .os-search-bar { width: 220px !important; }

    .Acontainer {
        gap: 40px;
        margin-top: 100px;
        padding: 30px 20px;
    }

    .left-section {
        left: 45px;
        padding: 20px;
    }

    .main-title { font-size: 55px; }
    .subtitle { font-size: 17px; }

    .card {
        width: 500px !important;
        height: 480px !important;
        padding: 40px;
        left: 0;
    }

    .tab { padding: 14px 18px; font-size: 14px; }

    /* Footer */
    .main-content { gap: 60px; padding: 25px; }
    .footer-section { min-width: 180px; }

    .Download { padding: 12px 28px; font-size: 15px; }
}

/* Mobiles (<768px) — identique à Home */
@media (max-width: 767px) {
    /* Navigation */
    nav {
        width: 95%;
        padding: 8px 15px;
        height: 70px;
    }

    .nav-left { gap: 15px; }

    /* Masquer les liens de navigation */
    .nav-links { display: none; }

    /* Barre de recherche — dans la navbar comme Home */
    .os-search-container {
        display: flex;
        margin-left: 0;
    }

    .os-search-bar {
        width: 140px !important;
    }

    .logo img { height: 50px; }

    .nav-right { gap: 10px; }

    /* Masquer Sign In sur mobile */
    .sign-in-btn { display: block  !important; }

    .play-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Afficher le bouton hamburger */
    .mobile-menu-toggle { display: block; }

    /* Globe traducteur */
    .translation-dropdown {
        width: 280px !important;
        right: -10px !important;
    }
    .translation-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Main container */
    .Acontainer {
        flex-direction: column;
        gap: 30px;
        margin-top: 90px;
        padding: 20px 15px;
    }

    .left-section {
        left: 0;
        padding: 15px;
        text-align: center;
        max-width: 100%;
        top: 0;
    }

    .main-title {
        font-size: 36px;
        text-align: center;
        margin-bottom: 20px;
    }

    .subtitle {
        text-align: center;
        font-size: 16px;
        max-width: 100%;
    }

    .right { max-width: 100%; }

    .card {
        width: 100% !important;
        max-width: 350px !important;
        height: auto !important;
        padding: 20px;
        left: 0;
        margin: 0 auto;
    }

    .tab-container { width: 100%; }
    .tab { padding: 12px 16px; font-size: 14px; }

    .input-group {
        width: 100%;
        max-width: 300px;
        top: -15px;
    }

    .input-container { padding: 10px 12px; }

    .input-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        overflow: hidden;
    }

    .input-amount {
        font-size: 1.2rem;
        min-width: 0;
        flex: 1;
    }

    .currency-selector {
        position: static !important;
        left: 0 !important;
        width: auto !important;
        min-width: unset !important;
        padding: 4px 6px;
        flex-shrink: 0;
    }

    .crypto-selector {
        position: static !important;
        left: 0 !important;
        width: auto !important;
        min-width: unset !important;
        padding: 4px 6px;
        flex-shrink: 0;
    }

    .crypto-icon {
        position: static !important;
        left: 0 !important;
        width: 22px;
        height: 22px;
    }

    .currency-flag { width: 20px; height: 20px; }
    .currency-name, .currency-code { font-size: 12px; }
    .selected-currency { gap: 4px; }
    .rate-info { top: -40px; }

    .connect-button {
        width: 100%;
        font-size: 16px;
        height: 55px;
        margin-top: 10px;
        top: -30px;
        min-height: 48px;
    }

    /* Footer — identique à Home */
    .header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .xlogo {
        align-items: center;
        text-align: center;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
        left: 0;
    }

    .copyright {
        font-size: 12px;
        top: 0;
    }

    .main-content {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .footer-section { min-width: 100%; }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-section li {
        font-size: 16px;
        margin-bottom: 10px;
    }

    /* Language selector — identique à Home */
    .selector {
        width: 160px;
        height: 45px;
        font-size: 13px;
        padding: 10px 35px 10px 14px;
    }

    .dropdown-content {
        flex-direction: column;
        max-height: 400px;
        overflow-y: auto;
    }

    .dropdown-section:first-child {
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .dropdown-section { padding: 12px; }
    .section-title { font-size: 11px; }
    .option-item { font-size: 13px; padding: 6px 0; }

    /* Currency options */
    .currency-options {
        right: 0;
        left: auto;
        min-width: 250px;
        max-width: 90vw;
    }

    /* Augmenter la zone tactile — identique à Home */
    .connect-button,
    .play-btn {
        min-height: 48px;
    }
}

/* Très petits écrans (<480px) — identique à Home */
@media (max-width: 479px) {
    nav {
        width: 98%;
        padding: 6px 12px;
        top: 15px;
    }

    .logo img { height: 45px; }
    .play-btn { padding: 5px 10px; font-size: 10px; }
    .sign-in-btn { font-size: 10px; padding: 5px 8px; }

    .Acontainer {
        width: 98%;
        padding: 15px 5px;
        margin-top: 80px;
    }

    .main-title { font-size: 28px; }
    .subtitle { font-size: 14px; }

    .card {
        max-width: 320px !important;
        padding: 16px;
    }

    .tab { padding: 10px 14px; font-size: 13px; }

    .input-group {
        max-width: 280px;
        top: -15px;
    }

    .input-container { padding: 8px 10px; }
    .input-amount { font-size: 1.1rem; }

    .currency-selector, .crypto-selector {
        position: static !important;
        left: 0 !important;
        width: auto !important;
        min-width: unset !important;
        padding: 4px 6px;
        flex-shrink: 0;
    }

    .currency-flag, .crypto-icon {
        position: static !important;
        left: 0 !important;
        width: 18px;
        height: 18px;
    }

    .connect-button {
        font-size: 15px;
        height: 50px;
        top: -30px;
    }

    .rate-info { top: -40px; }

    .main-content { padding: 10px; gap: 20px; }
    .footer-section h3 { font-size: 16px; }
    .footer-section li { font-size: 14px; }

    .selector {
        width: 140px;
        height: 40px;
        font-size: 12px;
    }
}

/* Orientation paysage pour mobiles — identique à Home */
@media (max-width: 767px) and (orientation: landscape) {
    .Acontainer { margin-top: 70px; }
    .main-title { font-size: 32px; }
    .mobile-menu {
        justify-content: flex-start;
        padding-top: 80px;
    }
}

/* Haute résolution — identique à Home */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body { -webkit-font-smoothing: subpixel-antialiased; }
}

/* Optimisation hauteur réduite */
@media (max-height: 600px) {
    .Acontainer { padding: 40px 20px; }
}

/* ===========================
   POLICES
   =========================== */
*,
*::before,
*::after {
    font-family: 'DM Sans', 'Inter', sans-serif !important;
}

.material-icons {
    font-family: 'Material Icons' !important;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
}

.fa,
.fas,
.far,
.fab,
[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Brands", sans-serif !important;
}

code,
pre,
.mono,
[class*="mono"],
[class*="address"],
[class*="badge"] {
    font-family: 'Space Mono', monospace !important;
}

/* ===========================
   GLOBE TRADUCTEUR
   =========================== */
.custom-translator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
}

.globe-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.3s;
    color: white;
    flex-shrink: 0;
}

.globe-icon:hover {
    opacity: 0.7;
}



.translation-dropdown::-webkit-scrollbar { width: 6px; }
.translation-dropdown::-webkit-scrollbar-track { background: transparent; }
.translation-dropdown::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

.custom-translator.active .translation-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.translation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.lang-item-btn {
    color: #999;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
}

.lang-item-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: #333;
}

/* ===========================
   BARRE DE RECHERCHE
   =========================== */
.os-search-container {
    display: flex;
    position: relative;
    margin-left: 20px;
    z-index: 1005;
}

.os-search-bar {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 12px;
    padding: 8px 12px;
    width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: text;
}

.os-search-bar svg {
    color: #999;
    margin-right: 10px;
    flex-shrink: 0;
}

.os-search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 15px;
    width: 100%;
    font-family: inherit;
}

.os-search-bar .search-shortcut {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    font-family: sans-serif;
}

.os-search-dropdown {
    display: none !important;
}

/* ===========================
   VERIFY BANNER
   =========================== */
.verify-banner {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #16181d00;
    overflow: hidden;
    padding: 18px 20px 20px 20px;
    border-radius: 6px;
    margin-top: 16px;
}

.verify-banner-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        125deg,
        transparent 0,
        transparent 12px,
        rgba(255, 255, 255, 0.03) 12px,
        rgba(255, 255, 255, 0.03) 13px
    );
    pointer-events: none;
    z-index: 0;
}

.verify-banner-content {
    position: relative;
    z-index: 1;
    left: -20px;
}

.verify-banner-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 13px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.verify-progress-bar {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.verify-dot-active {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
}

.verify-line-active {
    flex: 1;
    height: 1px;
    background: #ffffff;
}

.verify-dot-inactive {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #828897;
    flex-shrink: 0;
}

.verify-line-inactive {
    flex: 1;
    height: 1px;
    background: #4a4e57;
}

.verify-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.verify-step-active {
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
}

.verify-step-inactive {
    font-size: 11px;
    color: #828897;
    font-weight: 400;
}
.verify-btn {
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    border-radius: 20px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* ===========================
   AVAILABLE INFO
   =========================== */
.available-info {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.available-info a {
    color: #007bff;
}

/* ===========================
   FOOTER — support heading margin
   =========================== */
.footer-section h3.support-title {
    margin-top: 30px;
}

/* ===========================
   TABLETTE — recherche
   =========================== */
@media (max-width: 1023px) and (min-width: 768px) {
    .os-search-container { margin-left: 10px; }
    .os-search-bar { width: 220px !important; }
}

/* ===========================
   MOBILE — recherche & traducteur
   =========================== */
@media (max-width: 767px) {
    .os-search-container {
        display: flex;
        margin-left: 0;
    }
    .os-search-bar {
        width: 140px !important;
    }
    .translation-dropdown {
        width: 280px !important;
        right: -10px !important;
    }
    .translation-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* Authenticated buy card shrink */
.right.is-authenticated {
    align-items: flex-start;
}

.card.is-authenticated {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 28px !important;
}

.card.is-authenticated .rate-info {
    margin-bottom: 0 !important;
}

