: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 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-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));
}

.hero-invite {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
}

.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-top: 2rem;
    padding-top: 2rem;
}

.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;
}

.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(2, 1fr);
    gap: 1rem;
    font-size: 0.875rem;
}

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

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

.trade-field label {
    display: block;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

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

.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;
}

.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;
    }
}

