/* OpenAI-Inspired Design System for PAGI */
/* Clean, Modern, Professional Aesthetic */

/* ===== CSS RESET & FOUNDATION ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 400;
    line-height: 1.6;
}

/* ===== TYPOGRAPHY SYSTEM ===== */
.text-xs { font-size: 0.75rem; line-height: 1.4; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.6; }
.text-lg { font-size: 1.125rem; line-height: 1.6; }
.text-xl { font-size: 1.25rem; line-height: 1.5; }
.text-2xl { font-size: 1.5rem; line-height: 1.4; }
.text-3xl { font-size: 1.875rem; line-height: 1.3; }
.text-4xl { font-size: 2.25rem; line-height: 1.2; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }

/* ===== LAYOUT CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3f4f6;
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.125rem;
}

.nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #1a1a1a;
}

.nav-link.active {
    color: #1a1a1a;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
}

.nav-mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.nav-mobile-toggle:hover {
    background: #f3f4f6;
}

.nav-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: none;
    margin-top: 8px;
}

.nav-mobile-menu.active {
    display: block;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
}

.btn-primary:hover {
    background: #333333;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.btn-outline {
    background: transparent;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-outline:hover {
    background: #f9fafb;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 1.125rem;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.hero-title-small {
    font-size: 0.75em; /* 25% smaller than parent font size */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.card-description {
    color: #6b7280;
    line-height: 1.6;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: 24px;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURE CARDS ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: #6b7280;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
}

/* ===== STATS & METRICS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== NEWS & CONTENT CARDS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.news-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.news-card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f9fafb;
}

.news-content {
    padding: 24px;
}

.news-category {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ===== DASHBOARD SPECIFIC ===== */
.dashboard-header {
    background: white;
    border-bottom: 1px solid #f3f4f6;
    padding: 32px 0;
    margin-top: 80px;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.dashboard-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.metric-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 24px;
}

.metric-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.metric-change {
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 500;
}

.metric-change.negative {
    color: #ef4444;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    background: white;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid .metric-card[style*="grid-column: span 2"] {
        grid-column: span 1;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .content-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px !important;
    }
    
    /* Dashboard Mobile Header */
    .dashboard-header {
        padding: 16px 0 !important;
        margin-top: 65px !important;
    }
    
    .dashboard-title {
        font-size: 1.5rem !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }
    
    .dashboard-subtitle {
        font-size: 0.85rem !important;
        color: #6b7280 !important;
    }
    
    /* Dashboard Grid Mobile */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }
    
    /* Metric Cards Ultra Mobile */
    .metric-card {
        padding: 16px !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .metric-label {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
        color: #6b7280 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .metric-value {
        font-size: 1.75rem !important; /* Optimized for small screens */
        line-height: 1.1 !important;
        margin-bottom: 4px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
    }
    
    .metric-change {
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
    }
    
    /* Chart Card Ultra Mobile */
    .metric-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
        padding: 14px !important;
    }
    
    /* Chart Container Ultra Mobile */
    .metric-card canvas {
        height: 80px !important;
        margin: 8px 0 !important;
    }
    
    .metric-card #simplePagiPrice {
        font-size: 1.5rem !important;
    }
    
    .metric-card button,
    .metric-card div[style*="font-size: 11px"] {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
    
    /* Chart Refresh Button Touch Target Fix */
    .metric-card button[onclick*="drawSimpleChart"] {
        min-height: 44px !important;
        padding: 12px 16px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
        touch-action: manipulation;
    }
    
    /* Content Cards Ultra Mobile */
    .content-section {
        padding: 40px 0 !important;
    }
    
    .content-section .grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .card {
        padding: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .card-header {
        margin-bottom: 16px !important;
        gap: 12px !important;
    }
    
    .card-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .card-title {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }
    
    .card-description {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }
    
    /* Form Elements Ultra Mobile */
    .form-group {
        margin-bottom: 20px !important;
    }
    
    .form-label {
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
        font-weight: 600 !important;
    }
    
    .form-input {
        padding: 12px 14px !important;
        font-size: 1rem !important;
        border-radius: 6px !important;
        line-height: 1.4 !important;
    }
    
    /* Buttons Ultra Mobile */
    .btn {
        min-height: 44px !important;
        padding: 12px 18px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        margin: 4px 0 !important;
    }
    
    .btn-sm {
        min-height: 40px !important;
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Navigation Ultra Mobile */
    .navbar {
        padding: 12px 0 !important;
    }
    
    .nav-container {
        padding: 0 12px !important;
    }
    
    .nav-brand {
        font-size: 1rem !important;
        gap: 8px !important;
    }
    
    .nav-brand img {
        width: 30px !important;
        height: 30px !important;
    }
    
    .nav-mobile-toggle {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 10px !important;
    }
    
    .nav-mobile-menu {
        padding: 16px !important;
        border-radius: 6px !important;
    }
    
    .nav-mobile-menu .nav-link {
        padding: 12px 0 !important;
        font-size: 1rem !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }
    
    /* General Mobile Improvements */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 20px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-xl {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    /* Connection Status Card Special Handling */
    .metric-card #connectionCard div[style*="font-size: 12px"] {
        font-size: 11px !important;
        padding: 6px !important;
        margin-top: 6px !important;
        border-radius: 4px !important;
        line-height: 1.3 !important;
    }
    
    /* Flex Elements Mobile */
    .flex {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .gap-2 { gap: 0.25rem !important; }
    .gap-4 { gap: 0.5rem !important; }
    .gap-6 { gap: 0.75rem !important; }
    .gap-8 { gap: 1rem !important; }
    
    /* Ultra Small Screen Tokenomics */
    .economic-section {
        padding: 16px 12px !important;
        margin: 12px 0 !important;
    }
    
    .economic-section h3 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }
    
    .distribution-card {
        padding: 12px !important;
    }
    
    .distribution-card div:first-child {
        font-size: 24px !important;
    }
    
    .distribution-card div:nth-child(2) {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }
    
    .distribution-card div:last-child {
        font-size: 9px !important;
        line-height: 1.3 !important;
    }
    
    .reward-tiers > div {
        padding: 16px !important;
    }
    
    .reward-tiers h4 {
        font-size: 14px !important;
    }
    
    .reward-tiers ul {
        font-size: 11px !important;
    }
    
    /* Very small screens - stack everything */
    .economic-section div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .economic-section div[style*="grid-template-columns: repeat(2, 1fr)"] > div {
        padding: 10px !important;
    }
    
    /* Formula becomes smaller and scrollable on very small screens */
    .economic-section div[style*="font-family: 'JetBrains Mono'"] {
        font-size: 11px !important;
        padding: 8px !important;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Navigation improvements for small screens */
    .nav-container {
        padding: 0 12px;
    }
    
    .nav-brand img {
        width: 32px !important;
        height: 32px !important;
    }
    
    .nav-mobile-toggle {
        padding: 8px !important;
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .nav-mobile-menu {
        padding: 16px !important;
    }
    
    .nav-mobile-menu .nav-link {
        padding: 12px 0 !important;
        font-size: 16px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Better button spacing on small screens */
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

/* ===== SPECIAL EFFECTS ===== */
.gradient-bg {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Smooth Transitions */
.transition-all {
    transition: all 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* ===== FOOTER ===== */
.footer {
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #1a1a1a;
    text-decoration: none;
}

/* ===== ENHANCED MOBILE OPTIMIZATIONS ===== */

/* Dashboard Mobile Optimization - Tablet */
@media (max-width: 1024px) {
    .tokenomics-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .economic-section {
        padding: 32px 20px !important;
        margin: 20px 0 !important;
    }
    
    .distribution-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    /* Dashboard Grid Optimization */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .metric-card {
        padding: 20px !important;
    }
    
    .metric-value {
        font-size: 1.75rem !important; /* Slightly larger for better readability */
    }
}

/* Enhanced Mobile Design for Dashboard and Tokenomics */
@media (max-width: 768px) {
    /* Dashboard Mobile Layout */
    .dashboard-header {
        padding: 20px 0 !important;
        margin-top: 70px !important;
    }
    
    .dashboard-title {
        font-size: 1.75rem !important;
        margin-bottom: 6px !important;
    }
    
    .dashboard-subtitle {
        font-size: 0.9rem !important;
    }
    
    /* Dashboard Grid - Stack all metric cards */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Metric Cards Mobile Optimization */
    .metric-card {
        padding: 18px !important;
        border-radius: 10px !important;
    }
    
    .metric-label {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        margin-bottom: 10px !important;
        color: #6b7280 !important;
    }
    
    .metric-value {
        font-size: 2rem !important; /* Larger for better mobile readability */
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
        font-weight: 700 !important;
    }
    
    .metric-change {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
    }
    
    /* Chart Card Mobile Optimization */
    .metric-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
        padding: 16px !important;
    }
    
    /* Chart Container Mobile */
    .metric-card canvas {
        height: 100px !important;
    }
    
    .metric-card canvas + div {
        margin-top: 8px !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    
    /* Chart Refresh Button Touch Target - 768px */
    .metric-card button[onclick*="drawSimpleChart"] {
        min-height: 44px !important;
        padding: 10px 14px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        touch-action: manipulation;
    }
    
    /* Main Content Cards Mobile */
    .content-section .grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .card {
        padding: 20px !important;
    }
    
    .card-title {
        font-size: 1.125rem !important;
        margin-bottom: 10px !important;
    }
    
    .card-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Form Elements Mobile Optimization */
    .form-input {
        padding: 14px 16px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }
    
    .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
    }
    
    /* Improved touch targets */
    .btn {
        min-height: 44px;
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
    }
    
    .btn-sm {
        min-height: 44px !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .nav-mobile-toggle {
        min-height: 44px;
        min-width: 44px;
        padding: 8px;
    }
    
    /* Tokenomics Mobile Optimization */
    .tokenomics-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .economic-section {
        padding: 24px 16px !important;
        margin: 16px 0 !important;
        border-radius: 12px !important;
    }
    
    .economic-section h3 {
        font-size: 22px !important;
        margin-bottom: 16px !important;
        text-align: center !important;
    }
    
    .distribution-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin: 16px 0 !important;
    }
    
    .distribution-card {
        padding: 16px !important;
        text-align: center !important;
    }
    
    .distribution-card div:first-child {
        font-size: 28px !important;
        margin-bottom: 6px !important;
    }
    
    .distribution-card div:nth-child(2) {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .distribution-card div:last-child {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    /* Reward Tiers Mobile */
    .reward-tiers {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .reward-tiers > div {
        padding: 20px !important;
    }
    
    .reward-tiers h4 {
        font-size: 16px !important;
    }
    
    .reward-tiers ul {
        padding-left: 12px !important;
        font-size: 13px !important;
    }
    
    /* Vesting & Staking Mobile */
    .economic-section div[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Advanced Features Mobile */
    .economic-section div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .economic-section div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] > div {
        padding: 16px !important;
    }
    
    .economic-section div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] h4 {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
    
    /* Dynamic Pricing Formula Mobile */
    .economic-section div[style*="font-family: 'JetBrains Mono'"] {
        font-size: 14px !important;
        padding: 12px !important;
        word-break: break-all;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .economic-section div[style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .economic-section div[style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))"] > div {
        padding: 12px !important;
    }
    
    /* Market Dynamics Mobile */
    .economic-section div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .economic-section div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] > div {
        padding: 12px !important;
    }
    
    .economic-section div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] > div > div:first-child {
        font-size: 20px !important;
        margin-bottom: 4px !important;
    }
    
    .economic-section div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] > div > div:last-child {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
    
    .footer {
        padding: 32px 0;
        margin-top: 60px;
    }
    
    .footer-links {
        gap: 24px;
    }
}