@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --nm-cyan: #0f766e;
    --nm-cyan-bright: #14b8a6;
    --nm-cyan-dark: #0a3d39;
    --nm-green: #22c55e;
    --nm-red: #ef4444;
    --nm-bg: #ffffff;
    --nm-surface: #f8fafc;
    --nm-card: #ffffff;
    --nm-card-border: #e2e8f0;
    --nm-text: #0f172a;
    --nm-muted: #64748b;
    --nm-heading: #0f172a;
    --nm-header-bg: rgba(255, 255, 255, 0.94);
    --nm-header-border: rgba(15, 23, 42, 0.08);
    --nm-header-link: rgba(15, 23, 42, 0.76);
    --nm-header-link-hover: #0f172a;
    --nm-control-bg: rgba(15, 23, 42, 0.04);
    --nm-control-border: rgba(15, 23, 42, 0.08);
    --nm-control-color: rgba(15, 23, 42, 0.82);
    --nm-hero-bg: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    --nm-hero-glow-a: rgba(15, 118, 110, 0.1);
    --nm-hero-glow-b: rgba(20, 184, 166, 0.06);
    --nm-hero-title: #0f172a;
    --nm-hero-panel-bg: #ffffff;
    --nm-hero-panel-border: #e2e8f0;
    --nm-band-bg: #f1f5f9;
    --nm-band-card-bg: #ffffff;
    --nm-band-card-border: #e2e8f0;
    --nm-band-text: #0f172a;
    --nm-band-muted: #64748b;
    --nm-footer-bg: #f8fafc;
    --nm-footer-border: rgba(15, 23, 42, 0.08);
    --nm-footer-text: #64748b;
    --nm-footer-heading: #0f172a;
    --nm-table-head-bg: #f8fafc;
    --nm-table-border: #e2e8f0;
    --nm-table-row-border: #eef2f7;
    --nm-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    --nm-section-bg: #ffffff;
    --nm-panel-bg: #f4f6f8;
    --nm-panel-border: #e8edf2;
    --nm-hero-signup-bg: rgba(15, 23, 42, 0.03);
    --nm-hero-signup-border: #e2e8f0;
    --nm-hero-input-color: #0f172a;
    --nm-hero-feature-bg: rgba(15, 23, 42, 0.04);
    --nm-hero-feature-border: rgba(15, 23, 42, 0.06);
    --nm-hero-feature-color: rgba(15, 23, 42, 0.88);
    --nm-market-card-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --nm-market-pair-color: rgba(15, 23, 42, 0.72);
    --nm-market-price-color: #0f172a;
    --nm-market-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --nm-cursor-color: #0f172a;
    --nm-translate-bg: rgba(15, 23, 42, 0.04);
    --nm-translate-border: rgba(15, 23, 42, 0.08);
    --nm-translate-color: #0f172a;
    --nm-step-line: #dbe4ee;
    --nm-btn-secondary-bg: #f1f5f9;
    --nm-btn-secondary-hover: #e2e8f0;
    --nm-card-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    --nm-card-hover-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    --nm-icon-placeholder: #f1f5f9;
    --nm-change-up-bg: #dcfce7;
    --nm-change-up-color: #15803d;
    --nm-change-down-bg: #fee2e2;
    --nm-change-down-color: #b91c1c;
    --nm-cta-glow: rgba(20, 184, 166, 0.12);
    --nm-skeleton: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    --nm-content-bg: #ffffff;
}

[data-theme="dark"] {
    --nm-bg: #0b0f14;
    --nm-surface: #141a22;
    --nm-text: #f8fafc;
    --nm-header-bg: rgba(11, 15, 20, 0.94);
    --nm-header-border: rgba(255, 255, 255, 0.06);
    --nm-header-link: rgba(248, 250, 252, 0.78);
    --nm-header-link-hover: #ffffff;
    --nm-control-bg: rgba(255, 255, 255, 0.04);
    --nm-control-border: rgba(255, 255, 255, 0.08);
    --nm-control-color: rgba(248, 250, 252, 0.82);
    --nm-hero-bg: linear-gradient(180deg, #0b0f14 0%, #0d1218 100%);
    --nm-hero-glow-a: rgba(15, 118, 110, 0.18);
    --nm-hero-glow-b: rgba(20, 184, 166, 0.08);
    --nm-hero-title: #ffffff;
    --nm-hero-signup-bg: rgba(255, 255, 255, 0.03);
    --nm-hero-signup-border: rgba(255, 255, 255, 0.08);
    --nm-hero-input-color: #ffffff;
    --nm-hero-feature-bg: rgba(255, 255, 255, 0.04);
    --nm-hero-feature-border: rgba(255, 255, 255, 0.06);
    --nm-hero-feature-color: rgba(248, 250, 252, 0.88);
    --nm-market-card-bg: linear-gradient(180deg, rgba(23, 29, 38, 0.96) 0%, rgba(17, 22, 29, 0.96) 100%);
    --nm-market-pair-color: rgba(248, 250, 252, 0.72);
    --nm-market-price-color: #ffffff;
    --nm-market-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    --nm-cursor-color: #ffffff;
    --nm-translate-bg: rgba(255, 255, 255, 0.05);
    --nm-translate-border: rgba(255, 255, 255, 0.1);
    --nm-translate-color: #ffffff;
    --nm-band-bg: #0a0f14;
    --nm-band-card-bg: rgba(255, 255, 255, 0.03);
    --nm-band-card-border: rgba(255, 255, 255, 0.06);
    --nm-band-text: #ffffff;
    --nm-band-muted: #94a3b8;
    --nm-footer-bg: #0a0f14;
    --nm-footer-border: rgba(255, 255, 255, 0.05);
    --nm-footer-text: #94a3b8;
    --nm-footer-heading: #ffffff;

    /* Original homepage: content sections stay light in dark mode */
    --nm-content-bg: #ffffff;
    --nm-section-bg: #ffffff;
    --nm-card: #ffffff;
    --nm-card-border: #e2e8f0;
    --nm-heading: #0f172a;
    --nm-muted: #64748b;
    --nm-table-head-bg: #f8fafc;
    --nm-table-border: #e2e8f0;
    --nm-table-row-border: #eef2f7;
    --nm-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    --nm-panel-bg: #f4f6f8;
    --nm-panel-border: #e8edf2;
    --nm-step-line: #dbe4ee;
    --nm-btn-secondary-bg: #f1f5f9;
    --nm-btn-secondary-hover: #e2e8f0;
    --nm-card-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    --nm-card-hover-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    --nm-icon-placeholder: #f1f5f9;
    --nm-change-up-bg: #dcfce7;
    --nm-change-up-color: #15803d;
    --nm-change-down-bg: #fee2e2;
    --nm-change-down-color: #b91c1c;
    --nm-cta-glow: rgba(20, 184, 166, 0.12);
    --nm-skeleton: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
}

body.nm-home {
    background: var(--nm-bg);
    color: var(--nm-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.nm-home .loader,
body.nm-home .header,
body.nm-home .mega-menu,
body.nm-home .mobile-menu,
body.nm-home .bar {
    display: none !important;
}

body.nm-home .main-layout__content {
    padding-top: 0;
    background: var(--nm-content-bg, var(--nm-bg));
}

[data-theme="dark"] body.nm-home {
    background: #0b0f14;
    color: #f8fafc;
}

body.nm-home .main-layout {
    overflow: visible;
}

body.nm-home .main-layout section {
    padding-right: 0 !important;
}

body.nm-home .main-layout header {
    padding-right: 0 !important;
}

body.nm-home .last-widget {
    display: none !important;
}

/* Header */
.nm-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nm-header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--nm-header-border);
}

.nm-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    min-height: 76px;
}

.nm-header__brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    grid-column: 1;
    grid-row: 1;
    color: var(--nm-text);
    text-decoration: none;
    flex-shrink: 0;
}

.nm-header__brand img {
    display: block;
    width: auto;
    height: 42px;
    max-width: 180px;
    object-fit: contain;
}

.nm-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

.nm-header__nav a {
    color: var(--nm-header-link);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nm-header__nav a:hover {
    color: var(--nm-header-link-hover);
}

.nm-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
}

.nm-header__theme {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid var(--nm-control-border);
    border-radius: 10px;
    background: var(--nm-control-bg);
    color: var(--nm-control-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nm-header__theme:hover {
    background: var(--nm-surface);
    border-color: var(--nm-card-border);
}

.nm-header__theme .nm-theme-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nm-header__theme .nm-theme-icon-light {
    opacity: 0;
    transform: scale(0.6) rotate(-30deg);
}

.nm-header__theme .nm-theme-icon-dark {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .nm-header__theme .nm-theme-icon-light {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .nm-header__theme .nm-theme-icon-dark {
    opacity: 0;
    transform: scale(0.6) rotate(30deg);
}

.nm-header__login {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 4px;
    color: var(--nm-header-link);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.nm-header__signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--nm-cyan);
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.nm-header__signup:hover {
    background: #0d6560;
}

.nm-header__actions .pt-translate--header {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.nm-header__actions .pt-translate--header .pt-translate-control {
    width: auto;
}

.nm-header__actions .pt-translate--header .pt-lang-select {
    width: auto;
    min-width: 132px;
    height: 40px;
    padding: 0 34px 0 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 40px;
}

.nm-header__menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--nm-control-border);
    border-radius: 10px;
    background: var(--nm-control-bg);
    color: var(--nm-header-link-hover);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    flex-shrink: 0;
    cursor: pointer;
}

.nm-header__menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.nm-header__mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 18px;
    border-top: 1px solid var(--nm-header-border);
}

.nm-header__mobile a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    color: var(--nm-header-link-hover);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.nm-header__mobile a.nm-header__signup {
    justify-content: center;
    margin: 8px 16px 0;
    min-height: 44px;
}

.nm-header__mobile.is-open {
    display: flex;
}

.nm-header__mobile .pt-translate--mobile {
    margin: 8px 16px 0;
    padding-top: 12px;
    border-top: 1px solid var(--nm-header-border);
}

/* Hero */
.nm-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 72px;
    background:
        radial-gradient(circle at 15% 20%, var(--nm-hero-glow-a), transparent 28%),
        radial-gradient(circle at 85% 10%, var(--nm-hero-glow-b), transparent 24%),
        var(--nm-hero-bg);
}

.nm-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
}

.nm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.22);
    color: var(--nm-cyan-bright);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
}

.nm-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nm-cyan-bright);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
    animation: nm-pulse 1.8s ease-in-out infinite;
}

@keyframes nm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.nm-hero__title {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--nm-hero-title);
    min-height: 2.2em;
}

.nm-hero__title-line {
    display: block;
}

.nm-hero__title-accent {
    color: var(--nm-cyan-bright);
}

.nm-hero__type {
    display: inline;
}

.nm-hero__type-cursor {
    display: inline-block;
    width: 3px;
    height: 0.95em;
    margin-left: 4px;
    background: var(--nm-cursor-color);
    vertical-align: baseline;
    transform: translateY(0.12em);
    opacity: 0;
}

.nm-hero__title-accent .nm-hero__type-cursor {
    background: var(--nm-cyan-bright);
}

.nm-hero__type-cursor.is-active {
    opacity: 1;
    animation: nm-cursor-blink 0.85s step-end infinite;
}

@keyframes nm-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.nm-hero__subtitle {
    margin: 0 0 28px;
    max-width: 560px;
    min-height: 3.4em;
    color: var(--nm-muted);
    font-size: clamp(0.98rem, 2.2vw, 1.05rem);
    line-height: 1.7;
}

.nm-hero__after-type {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.nm-hero.is-hero-ready .nm-hero__after-type {
    opacity: 1;
    transform: translateY(0);
}

.nm-hero__signup {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 520px;
    margin-bottom: 28px;
    background: var(--nm-hero-signup-bg);
    border: 1px solid var(--nm-hero-signup-border);
    border-radius: 14px;
    padding: 6px;
}

.nm-hero__email {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--nm-band-text);
    padding: 14px 16px;
    font-size: 15px;
}

.nm-hero__email::placeholder {
    color: rgba(148, 163, 184, 0.85);
}

.nm-hero__cta {
    border: 0;
    border-radius: 10px;
    background: var(--nm-cyan);
    color: #fff;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.nm-hero__cta:hover {
    background: #0d6560;
}

.nm-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nm-hero__features li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--nm-hero-feature-bg);
    border: 1px solid var(--nm-hero-feature-border);
    color: var(--nm-hero-feature-color);
    font-size: 14px;
    font-weight: 600;
}

.nm-hero__feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nm-hero__feature-icon svg {
    width: 14px;
    height: 14px;
}

.nm-hero__feature-icon--shield {
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
}

.nm-hero__feature-icon--bolt {
    background: rgba(251, 191, 36, 0.14);
    color: #fbbf24;
}

.nm-hero__feature-icon--clock {
    background: rgba(20, 184, 166, 0.14);
    color: #2dd4bf;
}

/* Market cards */
.nm-hero__markets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nm-market-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: var(--nm-market-card-bg);
    border: 1px solid var(--nm-card-border);
    box-shadow: var(--nm-market-shadow);
}

.nm-market-card--loading .nm-market-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--nm-icon-placeholder);
    animation: nm-shimmer 1.4s ease-in-out infinite;
}

@keyframes nm-shimmer {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

.nm-market-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--nm-icon-placeholder);
}

.nm-market-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nm-market-card__pair {
    color: var(--nm-market-pair-color);
    font-size: 13px;
    font-weight: 600;
}

.nm-market-card__price {
    color: var(--nm-market-price-color);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nm-market-card__change {
    align-self: end;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.nm-market-card__change--up {
    background: rgba(34, 197, 94, 0.14);
    color: var(--nm-green);
}

.nm-market-card__change--down {
    background: rgba(239, 68, 68, 0.14);
    color: var(--nm-red);
}

/* Homepage translate overrides */
body.nm-home .pt-translate--header .pt-lang-select,
body.nm-home .pt-translate--mobile .pt-lang-select {
    background: var(--nm-translate-bg);
    border-color: var(--nm-translate-border);
    color: var(--nm-translate-color);
}

@media (max-width: 1100px) {
    .nm-hero__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .nm-hero__markets {
        max-width: 640px;
    }
}

@media (max-width: 900px) {
    .nm-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .nm-header__nav,
    .nm-header__actions {
        display: none;
    }

    .nm-header__menu-btn {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .nm-hero {
        padding-top: 32px;
    }

    .nm-hero__signup {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .nm-hero__cta {
        min-height: 48px;
    }

    .nm-hero__markets-grid {
        grid-template-columns: 1fr;
    }
}

/* Top tokens section */
.nm-top-tokens {
    background: var(--nm-section-bg);
    color: var(--nm-heading);
    padding: 56px 0 0;
    margin: 0;
}

.nm-top-tokens__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.nm-top-tokens__title {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--nm-heading);
}

.nm-top-tokens__subtitle {
    margin: 0;
    color: var(--nm-muted);
    font-size: 1rem;
}

.nm-top-tokens__view-all {
    color: var(--nm-cyan);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    margin-top: 8px;
}

.nm-top-tokens__view-all:hover {
    color: var(--nm-cyan-dark);
}

.nm-top-tokens__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nm-top-tokens__tabs--asset {
    margin-bottom: 12px;
}

.nm-top-tokens__tabs--filter {
    margin-bottom: 22px;
}

.pt-stock-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ffffff;
}

.nm-top-tokens__icon.pt-stock-logo-wrap {
    width: 36px;
    height: 36px;
}

.nm-market-card__icon.pt-stock-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.pt-stock-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    background: #ffffff;
    padding: 3px;
}

.pt-stock-logo-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: var(--stock-logo-bg, #64748b);
    color: var(--stock-logo-color, #ffffff);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nm-market-card__icon.pt-stock-logo-wrap .pt-stock-logo-fallback {
    font-size: 12px;
}

.nm-top-tokens__tab {
    border: 0;
    background: transparent;
    color: var(--nm-muted);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.nm-top-tokens__tab.is-active {
    background: var(--nm-cyan);
    color: #fff;
}

.nm-top-tokens__table-wrap {
    border: 1px solid var(--nm-table-border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--nm-card);
    box-shadow: var(--nm-shadow);
}

.nm-top-tokens__table {
    width: 100%;
    border-collapse: collapse;
}

.nm-top-tokens__table thead {
    background: var(--nm-table-head-bg);
}

.nm-top-tokens__table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nm-muted);
    border-bottom: 1px solid var(--nm-table-border);
}

.nm-top-tokens__table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--nm-table-row-border);
    vertical-align: middle;
}

.nm-top-tokens__table tbody tr:last-child td {
    border-bottom: 0;
}

.nm-top-tokens__rank {
    color: var(--nm-muted);
    font-weight: 700;
    width: 48px;
}

.nm-top-tokens__name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.nm-top-tokens__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--nm-icon-placeholder);
    flex-shrink: 0;
}

.nm-top-tokens__name-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nm-top-tokens__name-text strong {
    color: var(--nm-heading);
    font-size: 15px;
    font-weight: 700;
}

.nm-top-tokens__name-text small {
    color: var(--nm-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.nm-top-tokens__price {
    font-size: 15px;
    font-weight: 800;
    color: var(--nm-heading);
    white-space: nowrap;
}

.nm-top-tokens__table th:nth-child(3),
.nm-top-tokens__table th:nth-child(4),
.nm-top-tokens__table th:nth-child(5) {
    text-align: right;
}

.nm-top-tokens__table td:nth-child(3),
.nm-top-tokens__table td:nth-child(4),
.nm-top-tokens__table td:nth-child(5) {
    text-align: right;
}

.nm-top-tokens__change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-left: auto;
}

.nm-top-tokens__change--up {
    background: var(--nm-change-up-bg);
    color: var(--nm-change-up-color);
}

.nm-top-tokens__change--down {
    background: var(--nm-change-down-bg);
    color: var(--nm-change-down-color);
}

.nm-top-tokens__change--flat {
    background: var(--nm-change-up-bg);
    color: var(--nm-change-up-color);
}

.nm-top-tokens__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--nm-cyan);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
    margin-left: auto;
}

.nm-top-tokens__action:hover {
    background: var(--nm-cyan);
    color: #fff;
}

.nm-top-tokens__empty {
    text-align: center;
    color: var(--nm-muted);
    padding: 28px 20px !important;
}

.nm-skeleton {
    display: inline-block;
    border-radius: 8px;
    background: var(--nm-skeleton);
    background-size: 200% 100%;
    animation: nm-shimmer 1.4s ease-in-out infinite;
}

.nm-skeleton--sm { width: 24px; height: 14px; }
.nm-skeleton--md { width: 80px; height: 16px; }
.nm-skeleton--lg { width: 160px; height: 18px; }
.nm-skeleton--btn { width: 64px; height: 30px; border-radius: 8px; }

@media (max-width: 900px) {
    .nm-top-tokens__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .nm-top-tokens__table-wrap {
        overflow-x: auto;
    }

    .nm-top-tokens__table {
        min-width: 720px;
    }
}

@media (max-width: 640px) {
    .nm-top-tokens {
        padding-top: 40px;
    }
}

/* Why trade section */
.nm-why-trade {
    background: var(--nm-section-bg);
    padding: 56px 0 80px;
    margin: 0;
}

.nm-why-trade__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.nm-why-trade__title {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--nm-heading);
}

.nm-why-trade__subtitle {
    margin: 0;
    color: var(--nm-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.nm-why-trade__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.nm-why-card {
    grid-column: span 3;
    background: var(--nm-card);
    border: 1px solid var(--nm-card-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--nm-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nm-why-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nm-card-hover-shadow);
}

.nm-why-card:nth-child(5) {
    grid-column: 2 / span 3;
}

.nm-why-card:nth-child(6) {
    grid-column: 5 / span 3;
}

.nm-why-card:nth-child(7) {
    grid-column: 8 / span 3;
}

.nm-why-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.nm-why-card__icon svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.nm-why-card__icon--cyan {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
}

.nm-why-card__icon--purple {
    background: rgba(139, 92, 246, 0.14);
    color: #7c3aed;
}

.nm-why-card__icon--orange {
    background: rgba(251, 146, 60, 0.16);
    color: #ea580c;
}

.nm-why-card__icon--green {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

.nm-why-card__icon--blue {
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}

.nm-why-card__icon--pink {
    background: rgba(236, 72, 153, 0.14);
    color: #db2777;
}

.nm-why-card__icon--teal {
    background: rgba(45, 212, 191, 0.16);
    color: #0d9488;
}

.nm-why-card__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--nm-heading);
}

.nm-why-card__text {
    margin: 0;
    color: var(--nm-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

@media (max-width: 1100px) {
    .nm-why-card,
    .nm-why-card:nth-child(5),
    .nm-why-card:nth-child(6),
    .nm-why-card:nth-child(7) {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .nm-why-trade {
        padding: 52px 0 60px;
    }

    .nm-why-card,
    .nm-why-card:nth-child(5),
    .nm-why-card:nth-child(6),
    .nm-why-card:nth-child(7) {
        grid-column: span 12;
    }
}

/* Trusted stats section */
.nm-trusted {
    background: var(--nm-band-bg);
    padding: 72px 0 80px;
}

.nm-trusted__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.nm-trusted__title {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--nm-band-text);
}

.nm-trusted__subtitle {
    margin: 0;
    color: var(--nm-band-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.nm-trusted__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.nm-trusted-card {
    background: var(--nm-band-card-bg);
    border: 1px solid var(--nm-band-card-border);
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--nm-shadow);
}

.nm-trusted-card__value {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--nm-band-text);
}

.nm-trusted-card__accent {
    color: var(--nm-cyan-bright);
}

.nm-trusted-card__label {
    margin: 0;
    color: var(--nm-band-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .nm-trusted__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nm-trusted {
        padding: 52px 0 60px;
    }

    .nm-trusted__grid {
        grid-template-columns: 1fr;
    }
}

/* Get started section */
.nm-get-started {
    background: var(--nm-section-bg);
    padding: 72px 0 80px;
}

.nm-get-started__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.nm-get-started__title {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--nm-heading);
}

.nm-get-started__subtitle {
    margin: 0;
    color: var(--nm-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.nm-get-started__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.nm-get-started__steps::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 16%;
    right: 16%;
    height: 0;
    border-top: 2px dashed var(--nm-step-line);
    z-index: 0;
}

.nm-step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 12px;
}

.nm-step-card__badge {
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    border-radius: 18px;
    background: rgba(20, 184, 166, 0.12);
    color: var(--nm-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.nm-step-card__title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--nm-heading);
}

.nm-step-card__text {
    margin: 0 auto;
    max-width: 280px;
    color: var(--nm-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.nm-safe-panel {
    background: var(--nm-panel-bg);
    border: 1px solid var(--nm-panel-border);
    border-radius: 22px;
    padding: 36px 28px 32px;
}

.nm-safe-panel__title {
    margin: 0 0 28px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--nm-heading);
}

.nm-safe-panel__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.nm-safe-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.nm-safe-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nm-safe-item__icon svg {
    width: 22px;
    height: 22px;
}

.nm-safe-item__icon--green {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

.nm-safe-item__icon--blue {
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}

.nm-safe-item__icon--purple {
    background: rgba(139, 92, 246, 0.14);
    color: #7c3aed;
}

.nm-safe-item__icon--teal {
    background: rgba(45, 212, 191, 0.16);
    color: #0d9488;
}

.nm-safe-item__title {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--nm-heading);
}

.nm-safe-item__text {
    margin: 0;
    color: var(--nm-muted);
    font-size: 0.88rem;
}

@media (max-width: 1000px) {
    .nm-get-started__steps::before {
        display: none;
    }

    .nm-get-started__steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nm-safe-panel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nm-get-started {
        padding: 52px 0 60px;
    }

    .nm-safe-panel {
        padding: 28px 20px 24px;
    }

    .nm-safe-panel__grid {
        grid-template-columns: 1fr;
    }
}

/* Start Trading CTA */
.nm-start-trading {
    background: var(--nm-section-bg);
    padding: 80px 0 88px;
    position: relative;
    overflow: hidden;
}

.nm-start-trading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(900px, 90vw);
    height: 320px;
    background: radial-gradient(ellipse at center, var(--nm-cta-glow) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.nm-start-trading__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.nm-start-trading__title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--nm-heading);
    line-height: 1.15;
}

.nm-start-trading__title span {
    color: var(--nm-cyan-bright);
}

.nm-start-trading__subtitle {
    margin: 0 auto 32px;
    max-width: 560px;
    color: var(--nm-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.nm-start-trading__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.nm-start-trading__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nm-start-trading__btn--primary {
    background: var(--nm-cyan-bright);
    color: #fff;
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.28);
}

.nm-start-trading__btn--primary:hover {
    background: #0d6560;
    transform: translateY(-1px);
    color: #fff;
}

.nm-start-trading__btn--secondary {
    background: var(--nm-btn-secondary-bg);
    color: var(--nm-heading);
}

.nm-start-trading__btn--secondary:hover {
    background: var(--nm-btn-secondary-hover);
    color: var(--nm-heading);
}

.nm-start-trading__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px 36px;
}

.nm-start-trading__features li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--nm-muted);
    font-size: 0.92rem;
    font-weight: 500;
}

.nm-start-trading__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nm-start-trading__icon svg {
    width: 18px;
    height: 18px;
}

.nm-start-trading__icon--green {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

.nm-start-trading__icon--teal {
    background: rgba(20, 184, 166, 0.14);
    color: #0d9488;
}

.nm-start-trading__icon--purple {
    background: rgba(139, 92, 246, 0.14);
    color: #7c3aed;
}

.nm-start-trading__icon--orange {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

/* Modern footer */
.nm-footer {
    background: var(--nm-footer-bg);
    color: var(--nm-footer-text);
    padding: 64px 0 0;
    border-top: 1px solid var(--nm-footer-border);
}

.nm-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
    padding-bottom: 48px;
}

.nm-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--nm-footer-heading);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.nm-footer__brand img {
    width: auto;
    height: 56px;
    max-width: 240px;
    object-fit: contain;
}

.nm-footer__about {
    margin: 0;
    max-width: 280px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--nm-muted);
}

.nm-footer__title {
    margin: 0 0 18px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nm-footer-heading);
}

.nm-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nm-footer__links li + li {
    margin-top: 12px;
}

.nm-footer__links a {
    color: var(--nm-footer-text);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.nm-footer__links a:hover {
    color: var(--nm-cyan-bright);
}

.nm-footer__contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--nm-footer-text);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.nm-footer__contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #cbd5e1;
}

.nm-footer__contact:hover {
    color: var(--nm-cyan-bright);
}

.nm-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px 0 28px;
    border-top: 1px solid var(--nm-footer-border);
}

.nm-footer__bottom p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--nm-muted);
}

.nm-footer__bottom a {
    color: var(--nm-footer-text);
    text-decoration: none;
    font-size: 0.88rem;
}

.nm-footer__bottom a:hover {
    color: var(--nm-cyan-bright);
}

/* Homepage cleanup */
body.nm-home .nm-hide-legacy-footer {
    display: none !important;
}

@media (max-width: 900px) {
    .nm-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nm-footer__brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .nm-start-trading {
        padding: 56px 0 64px;
    }

    .nm-start-trading__features {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        max-width: 280px;
        margin: 0 auto;
    }

    .nm-footer {
        padding-top: 48px;
    }

    .nm-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nm-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Scroll reveal animations */
.nm-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.nm-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nm-reveal--right {
    transform: translateX(32px);
}

.nm-reveal--right.is-visible {
    transform: translateX(0);
}

.nm-reveal--left {
    transform: translateX(-32px);
}

.nm-reveal--left.is-visible {
    transform: translateX(0);
}

/* Homepage responsive refinements */
body.nm-home .container {
    width: 100%;
    max-width: 1140px;
    padding-left: max(16px, 15px);
    padding-right: max(16px, 15px);
}

@media (max-width: 768px) {
    .nm-hero {
        padding: 40px 0 56px;
    }

    .nm-hero__title {
        min-height: auto;
    }

    .nm-hero__subtitle {
        min-height: auto;
        margin-bottom: 24px;
    }

    .nm-hero__features {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .nm-hero__markets {
        max-width: none;
        width: 100%;
    }

    .nm-top-tokens {
        padding-top: 48px;
    }

    .nm-top-tokens__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nm-top-tokens__view-all {
        margin-top: 0;
    }

    .nm-top-tokens__table {
        min-width: 640px;
    }

    .nm-why-trade,
    .nm-trusted,
    .nm-get-started,
    .nm-start-trading {
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .nm-start-trading__actions {
        flex-direction: column;
        width: 100%;
    }

    .nm-start-trading__btn {
        width: 100%;
    }

    .nm-start-trading__features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 16px;
        max-width: none;
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .nm-header__inner {
        min-height: 68px;
    }

    .nm-hero__title {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }

    .nm-hero__signup {
        max-width: none;
    }

    .nm-market-card {
        grid-template-columns: 36px 1fr auto;
        padding: 14px;
    }

    .nm-market-card__price {
        font-size: 16px;
    }

    .nm-top-tokens__tabs {
        width: 100%;
    }

    .nm-top-tokens__tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 12px;
    }

    .nm-start-trading__features {
        grid-template-columns: 1fr;
    }

    .nm-safe-panel {
        padding: 24px 18px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nm-reveal,
    .nm-hero__after-type {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nm-hero__type-cursor {
        display: none;
    }

    .nm-hero__badge-dot {
        animation: none;
    }
}

/* Light mode: full light theme + ensure sections stay visible */
html:not([data-theme="dark"]) body.nm-home {
    background: var(--nm-bg);
    color: var(--nm-text);
}

html:not([data-theme="dark"]) body.nm-home:before {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html:not([data-theme="dark"]) body.nm-home .main-layout__content {
    background: var(--nm-content-bg);
    color: var(--nm-text);
}

html:not([data-theme="dark"]) body.nm-home .nm-reveal {
    opacity: 1;
    transform: none;
}
