* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --neon-blue: #00f3ff;
    --neon-purple: #b967ff;
    --neon-pink: #ff2df7;
    --neon-green: #00ff88;
    --dark-bg: #0f0f0f;
    --darker-bg: #0a0a0a;
    --card-bg: rgba(30, 30, 30, 0.7);
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 50%, var(--dark-bg) 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0.8rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    padding: 0.4rem;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 1.5rem;
}

.desktop-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Mobile Navigation Dropdown */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateX(5px);
}

.mobile-nav a i {
    width: 20px;
    text-align: center;
}

.wallet-btn {
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 0.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1001;
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 1rem 0 3rem;
    position: relative;
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 8s ease infinite;
    line-height: 1.2;
    padding-top: 1rem;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

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

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
}

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 243, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.skill-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.skill-category {
    color: var(--neon-blue);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.skill-level {
    background: rgba(0, 255, 136, 0.2);
    color: var(--neon-green);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.skill-proof {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.skill-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.verified-badge {
    background: rgba(0, 255, 136, 0.2);
    color: var(--neon-green);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
}

.pending-badge {
    background: rgba(255, 200, 0, 0.2);
    color: #ffc800;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--neon-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.social-links a:hover {
    background: rgba(0, 243, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: var(--text-gray);
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Animations */
.floating {
    animation: floating 6s ease-in-out infinite;
}

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

/* Glow Effects */
.glow {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    margin-top: 2rem;
}

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

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-blue);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid var(--text-gray);
    color: var(--text-gray);
}

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

.btn-submit {
    flex: 1;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    color: white;
    border: none;
}

/* How It Works Section */
.how-it-works {
    margin: 4rem 0;
}

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

.step {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--neon-pink);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.step p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-details h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.user-details p {
    color: var(--text-gray);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* DAO Styles */
.dao-proposals {
    margin-top: 2rem;
}

.proposal-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.proposal-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
}

.proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.proposal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.proposal-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: rgba(0, 243, 255, 0.2);
    color: var(--neon-blue);
}

.status-pending {
    background: rgba(255, 200, 0, 0.2);
    color: #ffc800;
}

.status-closed {
    background: rgba(255, 50, 50, 0.2);
    color: #ff3232;
}

.proposal-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.proposal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.vote-buttons {
    display: flex;
    gap: 0.5rem;
}

.vote-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.vote-yes {
    background: rgba(0, 255, 136, 0.2);
    color: var(--neon-green);
}

.vote-no {
    background: rgba(255, 50, 50, 0.2);
    color: #ff3232;
}

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

/* Profile Styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-blue);
}

.profile-stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Search and Filter */
.search-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.filter-select {
    min-width: 150px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 120px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: rgba(0, 255, 136, 0.9);
    color: white;
}

.notification.warning {
    background: rgba(255, 200, 0, 0.9);
    color: white;
}

.notification.error {
    background: rgba(255, 50, 50, 0.9);
    color: white;
}

.notification.info {
    background: rgba(0, 243, 255, 0.9);
    color: white;
}

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

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

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

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Header fixes */
    header {
        padding: 0.6rem 0;
        height: auto;
        min-height: 70px;
    }
    
    .header-content {
        padding: 0 0.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    /* Hide desktop nav, show mobile toggle */
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .wallet-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Mobile nav styles */
    .mobile-nav {
        display: none;
    }
    
    .mobile-nav.active {
        display: flex;
    }
    
    /* Main content fixes */
    main {
        margin-top: 70px;
        padding-top: 0;
    }
    
    .container {
        padding: 1rem 0.5rem;
    }
    
    /* Hero section fixes */
    .hero {
        padding: 0.5rem 0 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        padding-top: 0.5rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Profile fixes */
    .profile-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-top: 1rem;
        text-align: center;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .profile-info h1 {
        font-size: 1.6rem;
    }
    
    .profile-stats {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .profile-stat-value {
        font-size: 1.3rem;
    }
    
    /* Dashboard fixes */
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .user-details h2 {
        font-size: 1.3rem;
    }
    
    /* Features and cards */
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Search and filter */
    .search-filter {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box,
    .filter-select {
        min-width: 100%;
    }
    
    /* Notification position for mobile */
    .notification {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    /* Profile additional fixes */
    .profile-header {
        padding-top: 0.5rem;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .profile-info h1 {
        font-size: 1.4rem;
    }
    
    .profile-stats {
        gap: 1rem;
    }
    
    .profile-stat-value {
        font-size: 1.2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    /* Ensure content is not covered */
    .profile-header,
    .dashboard-header,
    .hero {
        scroll-margin-top: 80px;
    }
}

/* Additional safety margins and fixes */
section {
    scroll-margin-top: 80px;
}

/* Ensure all interactive elements are accessible */
@media (max-width: 768px) {
    /* Increase touch targets */
    .mobile-nav a,
    .wallet-btn,
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Safe area insets for notched devices */
    .container {
        padding-left: max(0.5rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
    }
    
    /* Modal fixes for mobile */
    .modal {
        padding: 0.5rem;
        align-items: flex-start;
    }
    
    .modal-content {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
}

/* Additional profile picture protection */
.profile-avatar,
.user-avatar {
    position: relative;
    z-index: 1;
}

/* Ensure header doesn't cover critical content */
main > .container {
    position: relative;
    z-index: 1;
}

/* Footer mobile fixes */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1.5rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Body scroll lock when mobile nav is open */
body.no-scroll {
    overflow: hidden;
}
