/* =========================================================
   ASSETPRO MARKETS PAGE
   ========================================================= */

:root {
    --home-bg: #050b16;
    --home-bg-soft: #08111f;
    --home-card: #0b1626;
    --home-card-light: #0e1c2f;

    --blue: #1677ff;
    --blue-light: #4da3ff;
    --blue-bright: #2687ff;

    --text: #f5f8fc;
    --text-soft: #aab8ca;
    --text-muted: #718197;

    --border: rgba(255, 255, 255, 0.08);
    --border-blue: rgba(22, 119, 255, 0.28);

    --container: 1240px;
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--home-bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin: 0 auto;
}

main {
    overflow: hidden;
}


/* =========================================================
   HERO
   ========================================================= */

.markets-hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(37, 99, 235, 0.15),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(14, 165, 233, 0.10),
            transparent 35%
        ),
        var(--market-bg);
    padding: 130px 0 90px;
}

.markets-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.markets-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 100px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.markets-eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--market-green);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
    animation: marketPulse 2s infinite;
}

.markets-hero h1 {
    margin: 25px 0 22px;
    color: var(--market-text);
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -3px;
}

.markets-hero h1 span {
    color: var(--market-blue-light);
}

.markets-hero-content > p {
    max-width: 570px;
    color: var(--market-muted);
    font-size: 17px;
    line-height: 1.8;
}

.market-live-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    color: #9db2cf;
    font-size: 13px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--market-green);
    box-shadow: 0 0 15px rgba(74, 222, 128, .7);
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.markets-hero-visual {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-orbit {
    position: absolute;
    border: 1px solid rgba(59, 130, 246, .14);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-a {
    width: 470px;
    height: 470px;
    animation: orbitSpin 24s linear infinite;
}

.orbit-b {
    width: 360px;
    height: 360px;
    border-color: rgba(34, 211, 238, .10);
    animation: orbitSpinReverse 18s linear infinite;
}

.hero-market-card {
    position: relative;
    z-index: 2;
    width: min(480px, 100%);
    padding: 30px;
    border: 1px solid var(--market-border);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(14, 43, 84, .92),
            rgba(4, 17, 38, .94)
        );
    box-shadow:
        0 35px 90px rgba(0, 0, 0, .4),
        inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(18px);
}

.hero-market-top,
.market-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-asset,
.market-asset-info {
    display: flex;
    align-items: center;
    gap: 13px;
}

.asset-icon,
.market-asset-icon,
.table-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    font-weight: 700;
}

.asset-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
}

.market-asset-icon {
    width: 42px;
    height: 42px;
    font-size: 19px;
}

.bitcoin {
    color: #f7931a;
    background: rgba(247, 147, 26, .13);
}

.ethereum {
    color: #9aa9ff;
    background: rgba(98, 126, 234, .13);
}

.tether {
    color: #4ade80;
    background: rgba(74, 222, 128, .12);
}

.hero-asset strong,
.market-asset-info h3 {
    display: block;
    color: white;
}

.hero-asset span,
.market-asset-info span {
    display: block;
    margin-top: 3px;
    color: #6f88aa;
    font-size: 11px;
    letter-spacing: .7px;
}

.hero-live,
.market-card-status {
    color: var(--market-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.hero-market-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 32px;
}

.hero-market-price span {
    color: #7590b2;
    font-size: 20px;
}

.hero-market-price strong {
    color: white;
    font-size: clamp(38px, 5vw, 56px);
    letter-spacing: -2px;
}

.hero-market-change {
    margin-top: 7px;
    color: var(--market-green);
    font-size: 15px;
    font-weight: 700;
}

.hero-chart {
    height: 170px;
    margin-top: 28px;
}

.hero-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-fill {
    fill: url(#marketChartGradient);
}

.chart-line {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 7px rgba(59,130,246,.45));
}

.hero-market-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.hero-market-footer span {
    color: #6f88aa;
    font-size: 10px;
    letter-spacing: 1px;
}

.hero-market-footer strong {
    color: white;
    font-size: 14px;
}


/* =========================================================
   MARKET OVERVIEW
   ========================================================= */

.market-overview {
    padding: 120px 0;
    background: #06162e;
}

.section-label {
    display: block;
    margin-bottom: 14px;
    color: #60a5fa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.markets-heading {
    margin-bottom: 50px;
}

.markets-heading h2,
.assets-header h2,
.market-info-content h2 {
    margin: 0;
    color: white;
    font-size: clamp(34px, 4vw, 50px);
    letter-spacing: -1.8px;
}

.markets-heading h2 span,
.market-info-content h2 span {
    color: #60a5fa;
}

.markets-heading p {
    max-width: 580px;
    margin-top: 15px;
    color: var(--market-muted);
    line-height: 1.7;
}

.market-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.market-data-card {
    padding: 27px;
    border: 1px solid var(--market-border);
    border-radius: 22px;
    background: var(--market-card);
    transition:
        transform .4s ease,
        border-color .4s ease,
        box-shadow .4s ease;
}

.market-data-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59,130,246,.35);
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
}

.market-card-price {
    margin-top: 30px;
    color: white;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1px;
}

.market-card-change {
    margin-top: 7px;
    color: var(--market-green);
    font-size: 13px;
    font-weight: 700;
}

.market-negative {
    color: var(--market-red) !important;
}

.mini-chart {
    height: 75px;
    margin: 25px 0 20px;
}

.mini-chart svg {
    width: 100%;
    height: 100%;
}

.mini-chart path {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.market-card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,.05);
    color: #607a9d;
    font-size: 11px;
}


/* =========================================================
   ASSET TABLE
   ========================================================= */

.assets-section {
    padding: 120px 0;
    background: #041126;
}

.assets-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}

.asset-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 260px;
    padding: 12px 15px;
    border: 1px solid rgba(100,160,255,.15);
    border-radius: 12px;
    background: rgba(10,32,62,.6);
}

.asset-search span {
    color: #7190b7;
    font-size: 20px;
}

.asset-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    font-size: 13px;
}

.asset-search input::placeholder {
    color: #60799b;
}

.assets-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--market-border);
    border-radius: 20px;
    background: rgba(8,28,56,.65);
}

.assets-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.assets-table th {
    padding: 20px 25px;
    text-align: left;
    color: #607a9d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.assets-table td {
    padding: 22px 25px;
    color: #d9e6f7;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.045);
}

.assets-table tbody tr:last-child td {
    border-bottom: 0;
}

.table-asset {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-icon {
    width: 38px;
    height: 38px;
}

.table-asset strong {
    display: block;
    color: white;
}

.table-asset span {
    display: block;
    margin-top: 3px;
    color: #607a9d;
    font-size: 10px;
}

.change-cell {
    color: var(--market-green) !important;
    font-weight: 700;
}


/* =========================================================
   MARKET INFO
   ========================================================= */

.market-info-section {
    padding: 120px 0;
    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(37,99,235,.12),
            transparent 35%
        ),
        #06162e;
}

.market-info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
}

.market-info-content p {
    max-width: 540px;
    margin: 24px 0 30px;
    color: var(--market-muted);
    line-height: 1.8;
}

.market-info-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(37,99,235,.25);
    transition: .3s ease;
}

.market-info-button:hover {
    transform: translateY(-3px);
    background: #3b82f6;
}

.market-info-visual {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-ring {
    position: absolute;
    border: 1px solid rgba(59,130,246,.15);
    border-radius: 50%;
}

.ring-one {
    width: 380px;
    height: 380px;
}

.ring-two {
    width: 280px;
    height: 280px;
}

.ring-three {
    width: 180px;
    height: 180px;
    border-color: rgba(34,211,238,.2);
}

.market-core {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(96,165,250,.35);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        #103b75,
        #06162e
    );
    box-shadow:
        0 0 60px rgba(37,99,235,.25),
        inset 0 0 25px rgba(59,130,246,.12);
}

.market-core-letter {
    color: white;
    font-size: 42px;
    font-weight: 800;
}

.market-core-status {
    color: #60a5fa;
    font-size: 7px;
    letter-spacing: 1.3px;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes marketPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .45;
        transform: scale(.7);
    }
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitSpinReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .markets-hero-container,
    .market-info-layout {
        grid-template-columns: 1fr;
    }

    .markets-hero {
        padding-top: 110px;
    }

    .markets-hero-content {
        text-align: center;
    }

    .markets-hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .market-live-status {
        justify-content: center;
    }

    .market-cards-grid {
        grid-template-columns: 1fr;
    }

    .market-info-layout {
        gap: 60px;
    }

    .market-info-content {
        text-align: center;
    }

    .market-info-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .market-info-button {
        margin: 0 auto;
    }
}


@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .markets-hero {
        min-height: auto;
        padding: 110px 0 70px;
    }

    .markets-hero h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .markets-hero-visual {
        min-height: 400px;
    }

    .hero-market-card {
        padding: 22px;
    }

    .hero-market-price strong {
        font-size: 40px;
    }

    .orbit-a {
        width: 390px;
        height: 390px;
    }

    .orbit-b {
        width: 300px;
        height: 300px;
    }

    .market-overview,
    .assets-section,
    .market-info-section {
        padding: 85px 0;
    }

    .assets-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .asset-search {
        width: 100%;
    }

    .market-info-visual {
        height: 330px;
    }

    .ring-one {
        width: 300px;
        height: 300px;
    }

    .ring-two {
        width: 220px;
        height: 220px;
    }

    .ring-three {
        width: 140px;
        height: 140px;
    }
}


@media (max-width: 420px) {

    .markets-hero h1 {
        font-size: 40px;
    }

    .hero-market-card {
        border-radius: 20px;
    }

    .hero-market-price strong {
        font-size: 34px;
    }

    .market-data-card {
        padding: 22px;
    }

}