/* ==========================================
   TOOLXONE HOME FOREX
========================================== */

.hero-market-card{
    width:100%;
    max-width:780px;
    margin:0 auto 40px;
}

.market-card{
    background:#fff;
    border-radius:24px;
    padding:30px 34px;
    box-shadow:0 22px 55px rgba(0,0,0,.14);
}

.market-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:28px;
    flex-wrap:wrap;
}

.market-title{
    display:flex;
    align-items:center;
    gap:16px;
}

.market-icon{
    font-size:36px;
}

.market-title h3{
    margin:0;
    font-size:26px;
    color:#111827;
}

.market-title p{
    margin:4px 0 0;
    color:#64748b;
    font-size:15px;
}

.live-badge{
    background:#dcfce7;
    color:#059669;
    padding:5px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
}

.market-update{
    color:#64748b;
    font-size:14px;
}

.green-dot{
    display:inline-block;
    width:10px;
    height:10px;
    background:#10b981;
    border-radius:50%;
    margin-left:8px;
}

.market-select-row{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin:24px 0 22px;
}

.market-select-row label{
    font-weight:700;
    color:#334155;
}

.market-select-row select{
    padding:10px 16px;
    border-radius:12px;
    border:1px solid #d1d5db;
    font-weight:800;
    outline:none;
}

/* Rows */

.market-row{
    display:flex;
    align-items:center;
    gap:18px;
    padding:15px 0;
    border-bottom:1px solid #eef2f7;
    transition:.25s ease;
}

.market-row:hover{
    background:#f8fffc;
}

.currency-info{
    flex:1;
    min-width:0;

    display:flex;
    align-items:center;
    gap:14px;
}
.currency-flag-img{
    width:52px;
    height:34px;
    object-fit:cover;
    border-radius:7px;
    flex-shrink:0;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
}

.currency-info strong{
    display:block;
    font-size:17px;
    font-weight:800;
    color:#111827;
    line-height:1.15;
}

.currency-info small{
    display:block;
    margin-top:6px;
    font-size:13px;
    line-height:1.35;
    color:#64748b;
    font-weight:500;
    white-space:nowrap;
}

.currency-rate{
    width:115px;
    text-align:right;
    font-size:19px;
    font-weight:900;
    color:#10b981;
    font-variant-numeric:tabular-nums;
    flex-shrink:0;
}

.currency-change{
    width:95px;
    text-align:center;
    flex-shrink:0;
}

.trend-up,
.trend-down{
    display:inline-block;
    min-width:78px;
    padding:6px 10px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
}

.trend-up{
    background:#dcfce7;
    color:#059669;
}

.trend-down{
    background:#fee2e2;
    color:#dc2626;
}

.sparkline{
    width:100px;
    height:32px;
    overflow:hidden;
    flex-shrink:0;
}

.sparkline svg{
    width:100%;
    height:100%;
    display:block;
}

.spark-up{
    color:#10b981;
}

.spark-down{
    color:#ef4444;
}

.market-bottom{
    margin-top:28px;
    padding-top:18px;
    border-top:1px solid #e5e7eb;
    display:flex;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    color:#64748b;
    font-size:14px;
}

/* Responsive */

@media(max-width:820px){
    .market-card{
        padding:24px 18px;
    }

    .market-row{
        flex-wrap:wrap;
        justify-content:center;
        text-align:center;
    }

    .currency-info,
    .currency-rate,
    .currency-change,
    .sparkline{
        width:100%;
        justify-content:center;
        text-align:center;
    }

    .currency-info{
        justify-content:center;
    }

    .currency-info small{
        white-space:normal;
    }

    .market-top,
    .market-bottom{
        justify-content:center;
        text-align:center;
    }
}

/* Dark Mode */

body.dark-mode .market-card{
    background:#24324b;
}

body.dark-mode .market-title h3,
body.dark-mode .currency-info strong{
    color:#f8fafc;
}

body.dark-mode .market-title p,
body.dark-mode .market-update,
body.dark-mode .currency-info small,
body.dark-mode .market-bottom{
    color:#cbd5e1;
}

body.dark-mode .market-row{
    border-color:rgba(255,255,255,.1);
}