:root {
    --background: 218 30% 8%;
    --foreground: 210 16% 82%;
    
    --card: 218 30% 10%;
    --card-foreground: 210 16% 82%;
    
    --popover: 218 30% 10%;
    --popover-foreground: 210 16% 82%;
    
    --primary: 200 100% 75%;
    --primary-foreground: 218 30% 8%;
    
    --secondary: 190 100% 50%;
    --secondary-foreground: 218 30% 8%;
    
    --muted: 218 30% 12%;
    --muted-foreground: 210 16% 60%;
    
    --accent: 190 100% 50%;
    --accent-foreground: 218 30% 8%;
    
    --destructive: 0 75% 65%;
    --destructive-foreground: 210 16% 82%;
    
    --success: 155 100% 55%;
    --success-foreground: 218 30% 8%;
    
    --border: 218 30% 15%;
    --input: 218 30% 15%;
    --ring: 200 100% 75%;
    
    --radius: 0.5rem;
    
    --gradient-hero: linear-gradient(135deg, hsl(218, 30%, 8%) 0%, hsl(218, 30%, 12%) 100%);
    --gradient-card: linear-gradient(135deg, hsl(218, 30%, 10%) 0%, hsl(218, 30%, 12%) 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
    min-height: 100vh;
}

.font-sora {
    font-family: 'Sora', sans-serif;
}

.font-numbers {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
}

.hero-gradient {
    background: var(--gradient-hero);
}

.card-gradient {
    background: var(--gradient-card);
}


.glow-primary {

    box-shadow: 0 0 20px hsl(var(--primary) / 0.3);
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header {
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.5);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-pill {
    background: hsl(var(--success));
    color: hsl(var(--success-foreground));
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: hsl(var(--success-foreground));
    border-radius: 50%;
}

.main.is-loading .hero,
.main.is-loading .section,
.main.is-loading .trades-section,
.main.is-loading .tech-grid,
.main.is-loading .faq-section,
.main.is-loading .disclaimer {
    opacity: 0.5;
    pointer-events: none;
    filter: blur(0.25px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.data-loader {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0 2rem;
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 0.75rem;
    background: hsl(var(--card) / 0.9);
    box-shadow: 0 8px 24px hsl(var(--background) / 0.4);
}

.data-loader__spinner {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 3px solid hsl(var(--border));
    border-top-color: hsl(var(--accent));
    animation: spin 0.9s linear infinite;
}

.data-loader__status {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.data-loader__hint,
.data-loader__error {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-top: 0.15rem;
}

.data-loader__error {
    color: hsl(var(--destructive));
}

.data-loader--error {
    border-color: hsl(var(--destructive) / 0.5);
}

.data-loader--error .data-loader__spinner {
    border-color: hsl(var(--destructive) / 0.35);
    border-top-color: hsl(var(--destructive));
}

.data-loader--error .data-loader__status {
    color: hsl(var(--destructive));
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Main Content */
.main {
    padding: 2rem 0;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.hero-network {
    position: relative;
    overflow: hidden;
}

.hero-network::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/network-bg.svg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.hero-network > * {
    position: relative;
    z-index: 1;
}

.hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.hero-value {
    font-size: 3rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 1rem;
}

.hero-value.premium {
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.indicator-card {
    margin: 1.75rem auto 0;
    padding: 1.75rem;
    max-width: 360px;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--card));
}

.indicator-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.indicator-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.indicator-subtitle {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.demo-badge {
    background: hsl(var(--accent) / 0.2);
    color: hsl(var(--accent));
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.period-grid {
    margin-top: 1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.tech-card {
    background: hsl(var(--card) / 0.4);
    border: 1px solid hsl(var(--border) / 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: inset 0 0 0 1px hsl(var(--border) / 0.06);
}

.tech-card img {
    max-width: 100%;
    height: 48px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.price-section {
    padding-top: 0;
}

.price-card {
    width: 100%;
    background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--background)) 100%);
    padding: 2rem;
}

.price-plot {
    margin-bottom: 1rem;
}

.price-plot svg {
    width: 100%;
    display: block;
    overflow: visible;
}

.price-plot--with-axis {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-plot__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: stretch;
}

.price-plot__y-axis {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 110px;
    color: hsl(var(--muted-foreground));
}

.price-plot__axis-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.price-plot__axis-values {
    position: relative;
    flex: 1;
    min-height: 140px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
}

.price-plot__chart-track {
    display: flex;
    flex-direction: column;
}

.price-plot__chart-track svg {
    width: 100%;
}

.price-plot__axis-line {
    stroke: hsl(var(--border) / 0.5);
    stroke-width: 1;
    stroke-linecap: round;
}

.price-plot__grid-line {
    stroke: hsl(var(--border) / 0.2);
    stroke-width: 1;
    stroke-dasharray: 2 2;
}

.price-plot__line {
    fill: none;
    stroke: hsl(var(--primary));
    stroke-width: 2.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 15px hsl(var(--primary) / 0.5));
}

.price-plot__area {
    stroke: none;
}

.price-plot__dot {
    fill: hsl(var(--primary));
    stroke: hsl(var(--background));
    stroke-width: 2;
    r: 5;
    filter: drop-shadow(0 0 10px hsl(var(--primary) / 0.7));
}

.price-plot__x-axis {
    position: relative;
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-left: 36px;
    padding-right: 12px;
}

.price-plot__x-axis span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
    bottom: 0;
}

.price-plot__axis-value {
    position: absolute;
    transform: translateY(-50%);
    white-space: nowrap;
    right: 0;
}
.network-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid hsl(var(--border) / 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--card) / 0.6);
    opacity: 0.7;
    pointer-events: none;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: hsl(var(--primary) / 0.2);
}

.card-title {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 2rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.card-value.large {
    font-size: 2.5rem;
}

.card-subtitle {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.trend-up {
    color: hsl(var(--success));
}

.trend-down {
    color: hsl(var(--destructive));
}

/* Trades Section */
.trades-section {
    margin-bottom: 3rem;
}

.trades-subsection {
    margin-bottom: 2rem;
}

.trades-subsection h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.trade-card {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.trade-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    font-size: 0.875rem;
}

@media (min-width: 1024px) {
    .trade-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .trade-grid.historical {
        grid-template-columns: repeat(6, 1fr);
    }
}

.trade-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.15rem;
    flex-wrap: wrap;
}

.trade-field label {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    margin-bottom: 0;
    white-space: nowrap;
}

.trade-field .value {
    font-weight: 500;
    line-height: 1.3;
}

.trade-field .value.blurred {
    filter: blur(0.125rem);
    user-select: none;
}

.trade-field .hidden-label {
    color: hsl(var(--accent));
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.empty-state {
    border: 2px dashed hsl(var(--border) / 0.3);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
}

.btn {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

.btn-center {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-actions {
    width: 100%;
}

.btn-mint {
    background: linear-gradient(135deg, hsl(var(--success)), hsl(var(--secondary)));
    color: hsl(var(--success-foreground));
    font-size: 1.25rem;
    padding: 1rem 2rem;
}

.btn-mint:hover {
    background: linear-gradient(135deg, hsl(var(--success) / 0.9), hsl(var(--secondary) / 0.9));
    transform: none;
}

.btn-redeem {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    box-shadow: none;
}

.btn-redeem:hover {
    background: hsl(var(--muted) / 0.8);
    transform: none;
}

/* Modal/Overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    width: 1000px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.close-btn {
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Table */
.table-container {
    overflow-x: auto;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
    font-size: 0.875rem;
}

.table th {
    background: hsl(var(--muted) / 0.5);
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.table .text-right {
    text-align: right;
}

.table .badge {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* Disclaimer */
.disclaimer {
    background: hsl(var(--muted) / 0.2);
    border: 1px solid hsl(var(--accent) / 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 3rem;
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.disclaimer-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--accent) / 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-title {
    font-weight: 500;
    color: hsl(var(--foreground));
}

.disclaimer-content {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.disclaimer-content p {
    margin-bottom: 0.75rem;
}

.disclaimer-content strong {
    color: hsl(var(--foreground));
}

.disclaimer-content > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Responsive */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-value {
        font-size: 3.75rem;
    }
}
