/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Albert Sans', sans-serif;
    background-color: white;
    color: black;
    overflow-x: hidden;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.8s ease-in-out;
}

.loading-screen.hidden {
    transform: scale(0);
    opacity: 0;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
    padding: 2rem;
}

.loading-text {
    text-align: center;
}

.loading-message {
    font-size: 2rem;
    font-weight: 700;
    color: black;
    font-family: 'Sharp Sans', sans-serif;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.loading-dots {
    display: inline-block;
}

.dot {
    display: inline-block;
    animation: dotPulse 1.5s ease-in-out infinite;
    font-size: 2rem;
    color: #5B21B6;
    font-weight: bold;
    font-family: 'Sharp Sans', sans-serif;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 20%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Main Content */
.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
    z-index: 100;
}

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

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: black;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 2rem;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.mobile-sidebar-nav .nav-link {
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
}

.mobile-sidebar-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.mobile-sidebar-social .social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: black;
    font-weight: 500;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: black;
    text-decoration: none;
    font-family: 'Sharp Sans', sans-serif;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #5B21B6;
    background-color: rgba(91, 33, 182, 0.1);
}

.nav-link.active {
    color: #5B21B6;
    background-color: rgba(91, 33, 182, 0.1);
}

.logo-icon {
    width: 50px;
    height: 50px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: black;
    letter-spacing: -0.02em;
    font-family: 'Sharp Sans', sans-serif;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: black;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #5B21B6;
    background-color: rgba(91, 33, 182, 0.1);
    transform: translateY(-2px);
}

/* Main Hero Section */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.coin-logo {
    margin-bottom: 3rem;
}

.main-logo-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    animation: gentleFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(91, 33, 182, 0.3));
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateY(10deg);
    }
}

.hero-text {
    margin-bottom: 3rem;
    max-width: 800px;
}

.main-headline {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: black;
    letter-spacing: -0.02em;
    font-family: 'Sharp Sans', sans-serif;
    margin-bottom: 1rem;
}

.sub-text {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.4;
    color: #666;
    font-family: 'Albert Sans', sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Sharp Sans', sans-serif;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 180px;
}

.cta-button.primary {
    background: linear-gradient(135deg, #5B21B6, #4C1D95);
    color: white;
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(91, 33, 182, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: black;
    border: 2px solid black;
}

.cta-button.secondary:hover {
    background: black;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 2rem;
        justify-content: center;
        position: relative;
    }
    
    .logo-section {
        order: 1;
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .social-links {
        display: none;
    }
    
    /* Hide Enter App button on mobile */
    .header .header-actions,
    .header .enter-app-btn {
        display: none !important;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .main-headline {
        font-size: 2.5rem;
    }
    
    .sub-text {
        font-size: 1.1rem;
    }
    
    .main-logo-image {
        width: 250px;
        height: 250px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
        justify-content: space-between;
    }
    
    .main {
        padding: 2rem 1rem;
    }
    
    .main-headline {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .sub-text {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .main-logo-image {
        width: 200px;
        height: 200px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
    
    .main-nav {
        gap: 0.8rem;
    }
    
    .loading-message {
        font-size: 1.5rem;
    }
    
    .loading-content {
        padding: 1rem;
    }
    
    .dot {
        font-size: 1.5rem;
    }
}

/* New Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: black;
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Sharp Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* How to Earn Section */
.how-to-earn-section {
    padding: 6rem 0;
    background-color: #fafafa;
}

.earn-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.earn-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.earn-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.earn-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.earn-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: black;
    margin-bottom: 1rem;
    font-family: 'Sharp Sans', sans-serif;
}

.earn-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    font-family: 'Albert Sans', sans-serif;
}

.earn-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.detail-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #5B21B6;
}

.detail-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: black;
    margin-bottom: 1rem;
    font-family: 'Sharp Sans', sans-serif;
}

.detail-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    font-family: 'Albert Sans', sans-serif;
}

/* DAO Section */
.dao-section {
    padding: 6rem 0;
    background-color: white;
}

.core-team {
    margin-top: 2rem;
}

.team-title {
    font-size: 2rem;
    font-weight: 600;
    color: black;
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Sharp Sans', sans-serif;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: #fafafa;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: black;
    margin-bottom: 0.5rem;
    font-family: 'Sharp Sans', sans-serif;
}

.member-role {
    font-size: 1.1rem;
    font-weight: 500;
    color: #5B21B6;
    margin-bottom: 1rem;
    font-family: 'Sharp Sans', sans-serif;
}

.member-bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-family: 'Albert Sans', sans-serif;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link-small {
    padding: 0.5rem 1rem;
    background: #5B21B6;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Sharp Sans', sans-serif;
    transition: all 0.3s ease;
}

.social-link-small:hover {
    background: #4C1D95;
    transform: translateY(-2px);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .earn-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .how-to-earn-section,
    .dao-section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
    
    .earn-item {
        padding: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .team-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .how-to-earn-section,
    .dao-section {
        padding: 3rem 0;
    }
    
    .earn-item,
    .detail-card,
    .team-member {
        padding: 1rem;
    }
    
    .earn-icon {
        font-size: 2.5rem;
    }
    
    .member-avatar {
        width: 80px;
        height: 80px;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.launch-app-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Sharp Sans', sans-serif;
    background: linear-gradient(135deg, #5B21B6, #4C1D95);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.launch-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(91, 33, 182, 0.4);
}

.login-btn, .signup-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Sharp Sans', sans-serif;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.login-btn {
    background: transparent;
    color: black;
    border: 2px solid black;
}

.login-btn:hover {
    background: black;
    color: white;
}

.signup-btn {
    background: linear-gradient(135deg, #5B21B6, #4C1D95);
    color: white;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(91, 33, 182, 0.4);
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal.hidden {
    display: none;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.auth-close-btn:hover {
    background: #f0f0f0;
    color: black;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: black;
    margin-bottom: 0.5rem;
    font-family: 'Sharp Sans', sans-serif;
}

.auth-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.auth-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-provider {
    width: 100%;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: black;
    justify-content: center;
}

.auth-provider:hover {
    border-color: #5B21B6;
    background: #faf5ff;
}

.google-auth svg {
    margin-right: 0.25rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    color: #666;
    font-size: 0.875rem;
}

.wallet-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wallet-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: black;
    justify-content: center;
}

.wallet-button:hover {
    border-color: #5B21B6;
    background: #faf5ff;
}

.wallet-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* App Container */
.app-container {
    min-height: 100vh;
    background: #fafafa;
}

.app-header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.app-tabs {
    display: flex;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.app-tab {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Sharp Sans', sans-serif;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.app-tab.active {
    background: #f3e8ff;
    color: #5B21B6;
}

.app-tab:hover:not(.active) {
    background: #f9fafb;
    color: #333;
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: black;
}

.header-btn:hover {
    background: #f0f0f0;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

/* Metrics Bar */
.metrics-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.metric-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: black;
    margin-bottom: 0.25rem;
    font-family: 'Sharp Sans', sans-serif;
}

.metric-value-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.metric-change {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    font-family: 'Sharp Sans', sans-serif;
}

.metric-change.green {
    color: #10b981;
}

.metric-value.green {
    color: #10b981;
}

.metric-subtext {
    font-size: 0.75rem;
    color: #999;
}

.metric-subtext.green {
    color: #10b981;
    font-weight: 600;
}

/* App Content */
.app-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.chart-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.chart-container {
    height: 450px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.chart-container .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Sharp Sans', sans-serif;
    flex-shrink: 0;
}

.chart-container canvas {
    flex: 1;
    max-height: calc(100% - 3rem);
}



/* Stake Section */
.stake-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.stake-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.stake-content {
    flex: 1;
}

.stake-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Sharp Sans', sans-serif;
    background: #f9fafb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.stake-tab.active {
    background: linear-gradient(135deg, #5B21B6, #4C1D95);
    color: white;
}

.stake-tab.inactive {
    cursor: not-allowed;
    opacity: 0.5;
}

.stake-tab:not(.active):not(.inactive):hover {
    background: #f3f4f6;
}

.stake-header {
    margin-bottom: 1.5rem;
}

.stake-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: 'Sharp Sans', sans-serif;
}

.stake-subtitle {
    font-size: 0.875rem;
    color: #666;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #666;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.stake-input {
    width: 100%;
    padding: 0.875rem 4rem 0.875rem 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.stake-input:focus {
    outline: none;
    border-color: #5B21B6;
    background: white;
}

.max-btn {
    position: absolute;
    right: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #5B21B6;
    background: #f3e8ff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.max-btn:hover {
    background: #e9d5ff;
}

.input-footer {
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.balance-text {
    font-size: 0.75rem;
    color: #999;
}

.preview-box {
    background: #fafafa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.preview-row:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.preview-value {
    font-weight: 600;
    color: black;
    font-family: 'Sharp Sans', sans-serif;
}

.preview-value.green {
    color: #10b981;
}

.stake-action-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Sharp Sans', sans-serif;
    background: linear-gradient(135deg, #5B21B6, #4C1D95);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stake-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.4);
}

/* Conversion Bars */
.conversion-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.conversion-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.conversion-bar:hover {
    border-color: #5B21B6;
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.1);
}

.conversion-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.conversion-icon.golden {
    filter: sepia(100%) hue-rotate(25deg) saturate(200%) brightness(1.2);
}

.conversion-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversion-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.conversion-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    font-family: 'Sharp Sans', sans-serif;
}

.conversion-amount-input {
    font-size: 1.25rem;
    font-weight: 700;
    color: black;
    font-family: 'Sharp Sans', sans-serif;
    border: none;
    background: transparent;
    width: 100%;
    text-align: right;
    padding: 0;
    outline: none;
}

.conversion-amount-input[readonly] {
    cursor: default;
}

.conversion-amount-input:focus {
    outline: none;
}

.conversion-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: #5B21B6;
    font-weight: bold;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.stake-form {
    display: flex;
    flex-direction: column;
}

.stake-form.hidden {
    display: none;
}

.dashboard-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.dashboard-placeholder p {
    font-size: 1.125rem;
    color: #999;
}

/* Responsive Design for App */
@media (max-width: 1024px) {
    .app-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 1rem;
    }
    
    .app-tabs {
        position: static;
        transform: none;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .metrics-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-container {
        height: 350px;
    }

    .stake-section {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 0.5rem;
    }
    
    .login-btn, .signup-btn, .launch-app-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        min-width: auto;
    }
    
    .metrics-bar {
        grid-template-columns: 1fr;
    }
    
    .app-tabs {
        display: none;
    }

    .chart-section {
        padding: 1rem;
    }

    .chart-container {
        height: 300px;
    }

    .stake-section {
        padding: 1rem;
        height: auto;
        min-height: 350px;
    }

    .stake-tabs {
        flex-wrap: wrap;
    }

    .stake-tab {
        min-width: calc(33.333% - 0.33rem);
    }

    .conversion-bars {
        padding: 1rem;
    }

    .conversion-icon {
        width: 32px;
        height: 32px;
    }

    .conversion-amount-input {
        font-size: 1.25rem;
    }
}

/* Get USDK Page */
.get-usdk-main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.get-usdk-container {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.get-usdk-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'Sharp Sans', sans-serif;
}

.amount-section {
    margin-bottom: 3rem;
}

.amount-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input {
    width: 100%;
    padding: 1.5rem 6rem 1.5rem 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.amount-input:focus {
    outline: none;
    border-color: #5B21B6;
    background: white;
}

.currency-display {
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #666;
}

.options-section {
    margin-top: 3rem;
}

.options-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Sharp Sans', sans-serif;
}

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

.option-card {
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #5B21B6;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(91, 33, 182, 0.15);
}

.option-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.option-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Sharp Sans', sans-serif;
}

.option-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.option-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #5B21B6;
    background: transparent;
    color: #5B21B6;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Sharp Sans', sans-serif;
}

.option-btn.primary {
    background: linear-gradient(135deg, #5B21B6, #4C1D95);
    color: white;
    border: none;
}

.option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 33, 182, 0.3);
}

/* Swap Modal */
.swap-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-modal.hidden {
    display: none;
}

.swap-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.swap-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.swap-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swap-close-btn:hover {
    background: #f0f0f0;
    color: black;
}

.swap-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Sharp Sans', sans-serif;
}

.swap-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.swap-input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #666;
}

.swap-select-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.swap-select {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.swap-amount-input {
    width: 100%;
    padding: 0.875rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.swap-divider {
    position: relative;
    text-align: center;
    margin: 0.5rem 0;
}

.swap-flip-btn {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swap-flip-btn:hover {
    background: #f3e8ff;
    border-color: #5B21B6;
}

.swap-preview {
    background: #fafafa;
    border-radius: 8px;
    padding: 1rem;
}

.swap-preview-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.swap-action-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #5B21B6, #4C1D95);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Sharp Sans', sans-serif;
}

.swap-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.4);
}

/* App Nav */
.app-nav {
    display: flex;
    gap: 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.app-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

/* Dashboards Page */
.dashboards-main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.chart-card canvas {
    height: 300px !important;
    width: 100% !important;
}

.chart-container-venue {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-card #venueChart {
    max-width: 100%;
    max-height: 100%;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Sharp Sans', sans-serif;
}

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

.info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.info-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Sharp Sans', sans-serif;
}

.attestations-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.attestation-link {
    padding: 0.5rem;
    text-align: center;
    background: #f9fafb;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.attestation-link:hover {
    background: #f3e8ff;
    color: #5B21B6;
}

.reserves-table {
    overflow-x: auto;
}

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

.reserves-table th {
    text-align: left;
    padding: 0.75rem;
    background: #f9fafb;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #e5e7eb;
}

.reserves-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.check-cell {
    text-align: center;
    font-size: 1.25rem;
    color: #10b981;
}

/* Responsive */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .get-usdk-container,
    .dashboards-main {
        padding: 1rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .get-usdk-title {
        font-size: 2rem;
    }
    
    .amount-input {
        font-size: 1.5rem;
        padding: 1.25rem 5rem 1.25rem 1.25rem;
    }
    
    .currency-display {
        font-size: 1.25rem;
    }
    
    .attestations-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.page-container {
    min-height: 100vh;
    background: #fafafa;
}

/* Footer Styles */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social-link {
    color: #666;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    color: #5B21B6;
}

/* Enter App Button */
.enter-app-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Sharp Sans', sans-serif;
    background: linear-gradient(135deg, #5B21B6, #4C1D95);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enter-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(91, 33, 182, 0.4);
}

/* Code Input */
.code-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #5B21B6;
}

/* Wallet Balance Button */
.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.wallet-balance-btn {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-balance-btn:hover {
    background: #f3f4f6;
    border-color: #5B21B6;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.balance-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.balance-icon.golden {
    filter: sepia(100%) hue-rotate(25deg) saturate(200%) brightness(1.2);
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.balance-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.balance-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: black;
}

/* Wallet Widget */
.wallet-widget {
    position: fixed;
    top: 80px;
    right: 2rem;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 300px;
}

.wallet-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.wallet-widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Sharp Sans', sans-serif;
}

.wallet-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.wallet-address {
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.875rem;
    word-break: break-all;
    margin-bottom: 1rem;
}

.wallet-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wallet-action-btn {
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-action-btn:hover {
    background: #f3e8ff;
    border-color: #5B21B6;
}

.hidden {
    display: none !important;
}

/* Get USDK Page - Updated Options List */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    border-color: #5B21B6;
    background: #faf5ff;
}

.option-radio {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #5B21B6;
}

.option-radio:checked + .option-content {
    color: #5B21B6;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.option-name {
    font-size: 1rem;
    font-weight: 500;
    color: black;
    transition: color 0.3s ease;
}

.continue-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #5B21B6, #4C1D95);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Sharp Sans', sans-serif;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.4);
}

.get-usdk-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Sharp Sans', sans-serif;
}

.amount-label {
    font-size: 1rem;
}

.amount-input {
    font-size: 1.5rem;
    padding: 1.25rem 5rem 1.25rem 1.25rem;
}

.currency-display {
    font-size: 1.25rem;
}

.options-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Sharp Sans', sans-serif;
}

/* Desktop Metrics - Hide on Mobile */
.desktop-metrics {
    display: grid;
}

@media (max-width: 768px) {
    .desktop-metrics {
        display: none !important;
    }
    
    .app-header .mobile-menu-btn {
        display: flex;
    }
    
    .app-header .app-tabs {
        display: none !important;
    }
}

/* Mobile Footer - Show only on mobile */
.mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #5B21B6, #4C1D95);
    z-index: 100;
    flex-direction: row;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .mobile-footer {
        display: flex;
    }
    
    .app-container,
    .page-container {
        padding-bottom: 70px;
    }
    
    .tab-content {
        padding-bottom: 80px;
    }
    
    #earn-tab {
        display: flex;
        flex-direction: column;
    }
    
    .dashboards-main,
    .get-usdk-main {
        padding-bottom: 80px;
    }
    
    .metrics-summary-card {
        display: block !important;
        order: 2;
    }
    
    /* Hide logo, wallet, and top nav on mobile for app screens */
    .app-header .app-logo-section,
    .app-header .app-header-actions,
    .app-header .app-nav {
        display: none;
    }
    
    /* Show hamburger on mobile */
    .app-header .mobile-menu-btn {
        display: flex;
    }
    
    /* Dashboard charts - 1 by 1 scrolling on mobile */
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-card {
        min-height: 400px;
        width: 100%;
    }
    
    .chart-card canvas {
        height: 350px !important;
    }
    
    .chart-container-venue {
        height: 350px;
    }
    
    .metrics-bar {
        grid-template-columns: 1fr;
    }
    
    /* Reduce x-axis label size on mobile for dashboards */
    .dashboards-main .chart-card canvas {
        font-size: 10px !important;
    }
    
    /* Earn page - mobile view only */
    #earn-tab {
        display: flex;
        flex-direction: column;
    }
    
    /* Chart section first on mobile ONLY */
    #earn-tab .app-content {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }
    
    #earn-tab .app-content .chart-section {
        order: 1;
        width: 100%;
    }
    
    #earn-tab .app-content .chart-container {
        height: 300px;
        padding: 1rem;
    }
    
    #earn-tab .app-content .chart-container canvas {
        height: 250px !important;
    }
    
    #earn-tab .metrics-summary-card {
        order: 2;
        margin-top: 1rem;
    }
    
    #earn-tab .app-content .stake-section {
        display: none;
    }
    
    /* Hide desktop metrics on mobile */
    .metrics-bar.desktop-metrics {
        display: none !important;
    }
    
    /* Metrics 2x2 layout on mobile */
    .metrics-summary-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .summary-item {
        border-bottom: none;
        border-right: 1px solid #e5e7eb;
        padding-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-item:nth-child(even) {
        border-right: none;
    }
    
    .summary-item:last-child,
    .summary-item:nth-last-child(2) {
        border-bottom: none;
    }
    
    /* Mobile stake bar */
    .mobile-stake-bar {
        display: flex;
        position: fixed;
        bottom: 70px;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        z-index: 90;
    }
    
    .mobile-stake-bar-btn {
        flex: 1;
        padding: 0.875rem 1rem;
        background: #f9fafb;
        color: #666;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.95rem;
        font-weight: 600;
        font-family: 'Sharp Sans', sans-serif;
    }
    
    .mobile-stake-bar-btn.active {
        background: linear-gradient(135deg, #5B21B6, #4C1D95);
        color: white;
        box-shadow: 0 2px 8px rgba(91, 33, 182, 0.3);
    }
    
    .mobile-stake-bar-btn:hover:not(.active) {
        background: #f3f4f6;
    }
}

/* Stake Popup Modal */
.stake-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.stake-popup-modal.hidden {
    display: none;
}

.stake-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    pointer-events: all;
}

.stake-popup-content {
    position: relative;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stake-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.stake-popup-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Sharp Sans', sans-serif;
}

.stake-popup-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stake-popup-close:hover {
    background: #f0f0f0;
    color: black;
}

.stake-popup-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-action-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.footer-action-btn:last-child {
    border-right: none;
}

.footer-action-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.footer-action-btn span {
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Sharp Sans', sans-serif;
    color: white;
}

.footer-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-action-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-action-btn.active svg,
.footer-action-btn.active span {
    color: #FFD700;
}

/* Metrics Summary Card - Mobile Only */
.metrics-summary-card {
    display: none;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin: 1rem 0;
}

.metrics-summary-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Sharp Sans', sans-serif;
    margin-bottom: 1rem;
}

.metrics-summary-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.summary-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: black;
    font-family: 'Sharp Sans', sans-serif;
}

.summary-value-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
}

.summary-change.green {
    color: #10b981;
}

.summary-subtext {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.summary-subtext.green {
    color: #10b981;
    font-weight: 600;
}

/* Mobile Sidebar Updates */
.mobile-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: #f0f0f0;
    border-radius: 50%;
    color: black;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    color: black;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Sharp Sans', sans-serif;
    border-radius: 8px;
    text-decoration: none;
}

.mobile-nav-item:hover {
    background: #f9fafb;
}

.mobile-nav-item.active {
    background: #f3e8ff;
    color: #5B21B6;
}

.nav-arrow {
    font-size: 1.5rem;
    color: #666;
}
