/*==================================================
    JKWI MARKETS PAGE
    Compact • Premium • Responsive
==================================================*/
/*==================================================
    PAGE BASE
==================================================*/
.markets-container{
    width:92%;
    max-width:1180px;
    margin:0 auto;
}
/*==================================================
    HERO
==================================================*/
.markets-hero{
    position:relative;
    padding:130px 0 55px;
    background:
        linear-gradient(
            135deg,
            #f5fbfe 0%,
            #ffffff 55%,
            #eef8fc 100%
        );
    border-bottom:1px solid #e5ebef;
    overflow:hidden;
}
.markets-hero::before{
    content:"";
    position:absolute;
    width:320px;
    height:320px;
    right:-150px;
    top:-150px;
    border-radius:50%;
    background:rgba(0,159,227,.07);
}
.markets-hero::after{
    content:"";
    position:absolute;
    width:220px;
    height:220px;
    left:-130px;
    bottom:-150px;
    border:1px solid rgba(0,159,227,.10);
    border-radius:50%;
}
.markets-hero-content{
    position:relative;
    z-index:2;
    max-width:680px;
}
.markets-eyebrow{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
    color:#009FE3;
    font-size:9px;
    font-weight:800;
    letter-spacing:1.8px;
}
.markets-eyebrow::before{
    content:"";
    width:25px;
    height:2px;
    background:#009FE3;
}
.markets-hero h1{
    margin:0 0 13px;
    color:#111820;
    font-size:clamp(38px,6vw,62px);
    line-height:.98;
    font-weight:800;
    letter-spacing:-2px;
}
.markets-hero p{
    max-width:620px;
    margin:0 0 18px;
    color:#68747e;
    font-size:14px;
    line-height:1.7;
}
.markets-live-status{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 11px;
    border:1px solid #dceaf1;
    border-radius:5px;
    background:#fff;
    color:#68747e;
    font-size:8px;
    font-weight:700;
}
.live-dot{
    width:6px;
    height:6px;
    border-radius:50%;
    background:#168a58;
    box-shadow:0 0 0 4px rgba(22,138,88,.08);
    animation:marketLive 1.7s ease-in-out infinite;
}
@keyframes marketLive{
    0%,100%{
        opacity:.45;
        transform:scale(.8);
    }
    50%{
        opacity:1;
        transform:scale(1.15);
    }
}
/*==================================================
    OVERVIEW
==================================================*/
.markets-overview{
    padding:45px 0 35px;
    background:#fff;
}
.markets-section-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:20px;
}
.markets-section-heading > div:first-child > span{
    display:block;
    margin-bottom:5px;
    color:#009FE3;
    font-size:8px;
    font-weight:900;
    letter-spacing:1.5px;
}
.markets-section-heading h2{
    margin:0;
    color:#151c23;
    font-size:25px;
    line-height:1.1;
    font-weight:800;
    letter-spacing:-.6px;
}
.market-updated{
    padding:7px 10px;
    border:1px solid #e2e8ec;
    border-radius:5px;
    background:#fff;
    color:#8a949c;
    font-size:8px;
    font-weight:700;
    white-space:nowrap;
}
/*==================================================
    MARKET TABS
==================================================*/
.market-tabs{
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom:14px;
    overflow-x:auto;
    scrollbar-width:none;
}
.market-tabs::-webkit-scrollbar{
    display:none;
}
.market-tab{
    flex-shrink:0;
    height:31px;
    padding:0 13px;
    border:1px solid #dfe6eb;
    border-radius:5px;
    outline:none;
    background:#fff;
    color:#6d7881;
    font-family:inherit;
    font-size:8px;
    font-weight:800;
    cursor:pointer;
    transition:.2s ease;
}
.market-tab:hover{
    border-color:#009FE3;
    color:#009FE3;
}
.market-tab.active{
    border-color:#009FE3;
    background:#009FE3;
    color:#fff;
}
.market-tab:active{
    transform:scale(.96);
}
/*==================================================
    MARKET TABLE
==================================================*/
.market-table-wrapper{
    width:100%;
    overflow-x:auto;
    border:1px solid #e2e8ec;
    border-radius:8px;
    background:#fff;
    box-shadow:0 10px 35px rgba(0,0,0,.035);
}
.market-table{
    width:100%;
    min-width:720px;
    border-collapse:collapse;
}
.market-table thead{
    background:#f7fafc;
}
.market-table th{
    padding:12px 15px;
    border-bottom:1px solid #e5eaee;
    color:#8a949c;
    font-size:7px;
    font-weight:900;
    letter-spacing:1px;
    text-align:left;
    text-transform:uppercase;
}
.market-table td{
    padding:13px 15px;
    border-bottom:1px solid #edf0f2;
    color:#66727c;
    font-size:9px;
    vertical-align:middle;
}
.market-table tbody tr{
    transition:.2s ease;
}
.market-table tbody tr:hover{
    background:#f8fcfe;
}
.market-table tbody tr:last-child td{
    border-bottom:none;
}
/*==================================================
    TABLE CONTENT
==================================================*/
.market-instrument{
    color:#151b21;
    font-size:10px;
    font-weight:800;
}
.market-symbol{
    color:#89939c;
    font-size:8px;
    font-weight:700;
}
.market-category{
    display:inline-flex;
    align-items:center;
    padding:4px 7px;
    border-radius:4px;
    background:#f1f7fa;
    color:#697680;
    font-size:7px;
    font-weight:800;
}
.market-price{
    color:#151b21;
    font-size:10px;
    font-weight:800;
}
.market-change{
    font-size:8px;
    font-weight:900;
}
.market-change.positive{
    color:#168a58;
}
.market-change.negative{
    color:#d94a4a;
}
/*==================================================
    TREND
==================================================*/
.market-trend{
    position:relative;
    width:65px;
    height:20px;
    overflow:hidden;
}
.market-trend::before{
    content:"";
    position:absolute;
    left:-20px;
    top:10px;
    width:100px;
    height:1.5px;
    background:#009FE3;
    transform:rotate(-8deg);
    animation:trendMove 2s linear infinite;
}
.market-trend.down::before{
    transform:rotate(8deg);
    background:#d94a4a;
}
@keyframes trendMove{
    0%{
        opacity:.2;
        transform:translateX(-25px) rotate(-8deg);
    }
    50%{
        opacity:1;
    }
    100%{
        opacity:.2;
        transform:translateX(25px) rotate(-8deg);
    }
}
/*==================================================
    MARKET SNAPSHOT
==================================================*/
.market-snapshot{
    padding:40px 0;
    background:#f7fafc;
    border-top:1px solid #e8edf0;
    border-bottom:1px solid #e8edf0;
}
.snapshot-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
}
.snapshot-card{
    position:relative;
    min-height:115px;
    padding:15px;
    border:1px solid #e1e7eb;
    border-radius:7px;
    background:#fff;
    overflow:hidden;
    transition:.25s ease;
}
.snapshot-card:hover{
    transform:translateY(-3px);
    border-color:#c8e8f5;
    box-shadow:0 12px 28px rgba(0,0,0,.05);
}
.snapshot-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:14px;
}
.snapshot-top > span:first-child{
    color:#7c8790;
    font-size:7px;
    font-weight:900;
    letter-spacing:1px;
}
.snapshot-positive,
.snapshot-negative{
    font-size:7px;
    font-weight:900;
}
.snapshot-positive{
    color:#168a58;
}
.snapshot-negative{
    color:#d94a4a;
}
.snapshot-card strong{
    display:block;
    color:#151b21;
    font-size:20px;
    line-height:1;
    font-weight:800;
}
.snapshot-line{
    position:absolute;
    left:15px;
    right:15px;
    bottom:14px;
    height:12px;
    overflow:hidden;
}
.snapshot-line::before{
    content:"";
    position:absolute;
    left:-30%;
    top:7px;
    width:160%;
    height:1px;
    background:#009FE3;
    transform:rotate(-4deg);
    animation:snapshotMove 2.4s linear infinite;
}
@keyframes snapshotMove{
    from{
        transform:translateX(-15%) rotate(-4deg);
    }
    to{
        transform:translateX(15%) rotate(-4deg);
    }
}
/*==================================================
    CATEGORY SECTIONS
==================================================*/
.market-category-section{
    padding:45px 0;
    background:#fff;
}
.market-category-section.light-section{
    background:#f8fafb;
    border-top:1px solid #edf0f2;
    border-bottom:1px solid #edf0f2;
}
.category-heading{
    margin-bottom:19px;
}
.category-heading span{
    display:block;
    margin-bottom:5px;
    color:#009FE3;
    font-size:8px;
    font-weight:900;
    letter-spacing:1.5px;
}
.category-heading h2{
    margin:0;
    color:#171e25;
    font-size:25px;
    line-height:1;
    font-weight:800;
    letter-spacing:-.6px;
}
/*==================================================
    CATEGORY CARDS
==================================================*/
.category-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
}
.market-category-card{
    position:relative;
    min-height:140px;
    padding:17px;
    border:1px solid #e1e7eb;
    border-radius:7px;
    background:#fff;
    overflow:hidden;
    transition:.25s ease;
}
.market-category-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:2px;
    height:100%;
    background:#009FE3;
    transform:scaleY(.15);
    transition:.3s ease;
}
.market-category-card:hover{
    transform:translateY(-3px);
    border-color:#c8e8f5;
    box-shadow:0 12px 30px rgba(0,159,227,.07);
}
.market-category-card:hover::before{
    transform:scaleY(1);
}
.market-category-card > span{
    display:block;
    margin-bottom:10px;
    color:#8b959e;
    font-size:7px;
    font-weight:900;
    letter-spacing:1px;
}
.market-category-card h3{
    margin:0 0 13px;
    color:#20272e;
    font-size:13px;
    font-weight:800;
}
.market-category-card strong{
    display:block;
    margin-bottom:5px;
    color:#141a20;
    font-size:21px;
    line-height:1;
    font-weight:800;
}
.market-category-card small{
    font-size:8px;
    font-weight:900;
}
.positive{
    color:#168a58;
}
.negative{
    color:#d94a4a;
}
/*==================================================
    DISCLAIMER
==================================================*/
.market-disclaimer{
    padding:28px 0 35px;
    background:#fff;
}
.disclaimer-box{
    padding:15px 17px;
    border-left:2px solid #009FE3;
    background:#f7fafc;
}
.disclaimer-box strong{
    display:block;
    margin-bottom:5px;
    color:#303940;
    font-size:9px;
    font-weight:900;
}
.disclaimer-box p{
    max-width:900px;
    margin:0;
    color:#89939b;
    font-size:8px;
    line-height:1.7;
}
/*==================================================
    TABLET
==================================================*/
@media(max-width:900px){
    .snapshot-grid{
        grid-template-columns:repeat(2,1fr);
    }
    .category-grid{
        grid-template-columns:repeat(2,1fr);
    }
}
/*==================================================
    MOBILE
==================================================*/
@media(max-width:600px){
    .markets-container{
        width:94%;
    }
    .markets-hero{
        padding:105px 0 42px;
    }
    .markets-eyebrow{
        font-size:7px;
        letter-spacing:1.3px;
    }
    .markets-hero h1{
        font-size:38px;
        letter-spacing:-1.3px;
    }
    .markets-hero p{
        font-size:12px;
        line-height:1.65;
    }
    .markets-live-status{
        font-size:7px;
    }
    /* OVERVIEW */
    .markets-overview{
        padding:35px 0 27px;
    }
    .markets-section-heading{
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
        margin-bottom:16px;
    }
    .markets-section-heading h2{
        font-size:21px;
    }
    .market-updated{
        font-size:7px;
    }
    /* TABS */
    .market-tabs{
        gap:5px;
        margin-bottom:11px;
    }
    .market-tab{
        height:28px;
        padding:0 10px;
        font-size:7px;
    }
    /* TABLE */
    .market-table-wrapper{
        border-radius:6px;
    }
    .market-table{
        min-width:680px;
    }
    .market-table th{
        padding:10px 11px;
    }
    .market-table td{
        padding:11px;
    }
    /* SNAPSHOT */
    .market-snapshot{
        padding:32px 0;
    }
    .snapshot-grid{
        grid-template-columns:repeat(2,1fr);
        gap:7px;
    }
    .snapshot-card{
        min-height:105px;
        padding:12px;
    }
    .snapshot-card strong{
        font-size:17px;
    }
    .snapshot-line{
        left:12px;
        right:12px;
        bottom:11px;
    }
    /* CATEGORY */
    .market-category-section{
        padding:35px 0;
    }
    .category-heading{
        margin-bottom:15px;
    }
    .category-heading h2{
        font-size:21px;
    }
    .category-grid{
        grid-template-columns:repeat(2,1fr);
        gap:7px;
    }
    .market-category-card{
        min-height:125px;
        padding:13px;
    }
    .market-category-card h3{
        margin-bottom:10px;
        font-size:11px;
    }
    .market-category-card strong{
        font-size:17px;
    }
}
/*==================================================
    SMALL PHONES
==================================================*/
@media(max-width:380px){
    .snapshot-grid{
        grid-template-columns:1fr;
    }
    .category-grid{
        grid-template-columns:1fr;
    }
    .markets-hero h1{
        font-size:33px;
    }
}
/*==================================================
    REDUCED MOTION
==================================================*/
@media(prefers-reduced-motion:reduce){
    .live-dot,
    .market-trend::before,
    .snapshot-line::before{
        animation:none !important;
    }
}