:root {
    /* Color Palette */
    --primary-dark: #1A1A1A;
    --secondary-dark: #2A2A2A;
    --bitcoin-gold: #F2A900;
    --electric-blue: #00C6FF;
    --neon-glow: 0 0 15px rgba(242, 169, 0, 0.5);
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #888888;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Breakpoints */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;

    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ========================================
   BASE STYLES & ACCESSIBILITY
   ======================================== */

/* Box sizing reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--bitcoin-gold);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--bitcoin-gold);
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: var(--spacing-sm);
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Skip link styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--bitcoin-gold);
    color: var(--primary-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    z-index: var(--z-tooltip);
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Base HTML styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

.no-js html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-dark);
    overflow-x: hidden;
}

/* Account for sticky header in scroll behavior */
html {
    scroll-padding-top: 70px; /* Header height + small buffer */
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bitcoin-gold: #FFD700;
        --electric-blue: #00FFFF;
    }
}

/* Section Headers */
h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bitcoin-gold);
    text-align: center;
    margin: 0 0 3rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 0 20px rgba(242, 169, 0, 0.5);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--bitcoin-gold), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--bitcoin-gold);
}

h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--electric-blue);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
}

/* Remove bullet point from general h3 */

/* Node-specific header styles */
.node-card h3 {
    font-size: 1.4rem;
    margin: 0 0 1.2rem 0;
    color: var(--bitcoin-gold);
    text-shadow: 0 0 15px rgba(242, 169, 0, 0.5);
    position: relative;
}

.node-card h3::before {
    width: 6px;
    height: 6px;
    background: var(--bitcoin-gold);
    box-shadow: 0 0 8px var(--bitcoin-gold);
    left: -15px;
}

.action-card h3 {
    font-size: 1.4rem;
    margin: 0 0 1.2rem 0;
    color: var(--electric-blue);
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
}

.action-card h3::before {
    width: 6px;
    height: 6px;
    background: var(--electric-blue);
    box-shadow: 0 0 8px var(--electric-blue);
    left: -15px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-dark);
    color: #fff;
    line-height: 1.6;
    font-size: 1rem;
    touch-action: manipulation;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.sticky-nav {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--bitcoin-gold);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: relative;
}

.nav-brand {
    flex-shrink: 0;
}

.brand-text {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--bitcoin-gold);
    text-decoration: none !important;
    letter-spacing: 1px;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure the brand link has no decoration in all states */
.nav-brand a,
.nav-brand a:hover,
.nav-brand a:focus,
.nav-brand a:active,
.nav-brand a:visited {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.7rem; /* Further reduced by ~25% from original */
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--bitcoin-gold);
    background: rgba(242, 169, 0, 0.1);
    transform: translateY(-1px);
}

.nav-links a:first-child {
    font-size: 1rem; /* Further reduced by ~20% from original */
    font-weight: 700;
    color: var(--bitcoin-gold);
}

/* ========================================
   HERO SECTION STYLES
   ======================================== */

.hero-title {
    display: none; /* Hide the site title box */
}

.hero-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--electric-blue);
    margin: 0 0 var(--spacing-lg) 0;
    letter-spacing: 1px;
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.9),
        -1px -1px 0px rgba(0, 0, 0, 0.9),
        1px -1px 0px rgba(0, 0, 0, 0.9),
        -1px 1px 0px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 198, 255, 0.4);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 198, 255, 0.3);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.lead {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--electric-blue);
    margin-top: 0.5rem;
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.9),
        -1px -1px 0px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 198, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow:
        inset 0 0 10px rgba(0, 198, 255, 0.1),
        0 0 8px rgba(0, 198, 255, 0.2);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.bitcoin-footer {
    background: var(--secondary-dark);
    border-top: 1px solid var(--bitcoin-gold);
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-2xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.footer-content p {
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--bitcoin-gold);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 30px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--bitcoin-gold);
    border-radius: 6px;
    cursor: pointer;
    padding: 6px;
    margin-left: 1rem; /* Space between brand and menu button */
    z-index: 10001; /* Higher than menu */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Show mobile menu toggle on smaller screens */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background: rgba(242, 169, 0, 0.1);
    border-color: var(--electric-blue);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--bitcoin-gold);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet and Mobile */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 50px;
        justify-content: space-between; /* Ensure proper spacing */
    }

    /* HIDE DESKTOP NAVIGATION ON MOBILE */
    .nav-links {
        display: none !important;
    }

    /* SHOW DESKTOP NAVIGATION ON LARGER SCREENS */
    @media (min-width: 769px) {
        .nav-links {
            display: flex !important;
        }
    }

    /* SHOW MOBILE MENU TOGGLE AND RIGHT-ALIGN IT */
    .mobile-menu-toggle {
        display: flex !important;
        position: absolute !important;
        right: 1rem !important; /* Right-align the menu button */
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10001 !important; /* Higher than nav z-index */
        background: rgba(0, 0, 0, 0.9) !important;
        border: 2px solid var(--bitcoin-gold) !important;
        border-radius: 6px !important;
        padding: 0.5rem !important;
        cursor: pointer !important;
        pointer-events: auto !important; /* Ensure pointer events work */
        transition: all 0.3s ease !important;
    }

    .mobile-menu-toggle:hover {
        background: rgba(0, 0, 0, 0.95) !important;
        border-color: var(--electric-blue) !important;
        transform: translateY(-50%) scale(1.05) !important;
    }

    .mobile-menu-toggle:active {
        transform: translateY(-50%) scale(0.95) !important;
    }

    /* MOBILE MENU IS NOW DYNAMICALLY CREATED - No static CSS needed */

    /* Body scroll lock when mobile menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }

    /* Debug: Make sure menu is visible when active - consolidated with main rule above */

    .nav-links.active a {
        color: var(--bitcoin-gold) !important;
        text-decoration: none !important;
        padding: 1rem !important;
        display: block !important;
        border-bottom: 1px solid rgba(242, 169, 0, 0.2) !important;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
        margin: 0;
        font-size: 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(242, 169, 0, 0.2);
    }

    .nav-links a:hover {
        background: rgba(242, 169, 0, 0.1);
        transform: none;
    }

    .nav-links a:first-child {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(242, 169, 0, 0.3);
        padding-bottom: 1rem;
    }

    /* Remove duplicate mobile-menu-toggle rule */



    .node-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .stat {
        text-align: center;
        padding: 0.75rem 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        border: 1px solid rgba(242, 169, 0, 0.2);
    }

    .stat-label {
        display: block;
        font-size: 0.8rem;
        color: rgba(255,255,255,0.7);
        margin-bottom: 0.25rem;
    }

    .stat-value {
        font-size: 1rem;
    }
}

/* Bitcoin Metrics Styles */
.metrics-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 1rem auto;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(242, 169, 0, 0.2);
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
}

.metric-value {
    font-weight: 600;
    color: var(--bitcoin-gold);
    text-shadow: 0 0 10px rgba(242, 169, 0, 0.3);
}

/* Tightened section spacing */
section {
    padding: 2rem 1rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-dark {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin: 1rem auto;
    max-width: 1200px;
    padding: 2rem;
    border: 1px solid rgba(242, 169, 0, 0.1);
}

@media (max-width: 768px) {
    section {
        padding: 1rem 0.5rem 2rem;
    }

    .section-dark {
        padding: 1.5rem;
        margin: 0.5rem auto;
    }

    /* Deep Resources mobile styling */
    #deep-resources .resources-list {
        max-width: 100%;
        gap: 0.75rem;
    }

    #deep-resources .resource-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }

    #deep-resources .resource-item a {
        font-size: 0.9rem;
    }

    #deep-resources .resource-item span {
        font-size: 0.7rem;
        opacity: 0.8;
    }

    .resource-category {
        margin: 1rem 0 0.25rem 0;
    }

    .resource-category h4 {
        font-size: 0.9rem;
    }

    /* Clean up mobile styles for removed elements */
    .secondary-grid,
    .coming-soon,
    .coming-soon-overlay,
    .coming-soon-badge {
        display: none;
    }
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, 
        rgba(26, 26, 26, 0.95) 0%,
        rgba(26, 26, 26, 0.85) 100%),
        url('bitcoin-pattern.png');
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    max-width: 100%;
    padding: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(242, 169, 0, 0.3);
}

.bitcoin-aura {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%,
        var(--bitcoin-gold) 0%,
        transparent 70%);
    opacity: 0.1;
    animation: pulse-aura 8s infinite;
}

@keyframes pulse-aura {
    0% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.15; }
    100% { transform: scale(1); opacity: 0.1; }
}

.profile-img-container {
    position: relative;
    margin-bottom: 2rem;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.profile-img:hover {
    filter: grayscale(0%);
}

.btc-quote {
    order: 3;
    margin-top: 1.5rem;
    margin: 0.5rem 0 0.2rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(242, 169, 0, 0.4);
    border-radius: 8px;
    font-style: italic;
    min-height: auto;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.cta-btn {
    background: linear-gradient(45deg, 
        var(--bitcoin-gold) 0%,
        var(--electric-blue) 100%);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-family: 'Orbitron', sans-serif;
    transition: transform 0.3s ease;
}

.x-cta {
    background: linear-gradient(45deg,
        #000000 0%,
        #434343 100%);
}

.x-logo {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
}

/* Nostr Button */
.nostr-btn {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.nostr-btn:hover,
.nostr-btn:focus {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* Orange Pill App Buttons */
.opa-btn,
.opa-join-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931a);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.opa-btn:hover,
.opa-btn:focus,
.opa-join-btn:hover,
.opa-join-btn:focus {
    background: linear-gradient(135deg, #e55a2b, #e8850f);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

/* Follow Buttons Layout */
.follow-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: center;
}

.follow-buttons .cta-btn {
    min-width: 140px;
    flex: 1;
    max-width: 180px;
}

.follow-buttons-secondary {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-sm);
}

/* Follow Section Styles */
.follow-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.follow-grid .follow-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.follow-grid .follow-buttons-secondary {
    display: flex;
    justify-content: center;
    width: 100%;
}

.opa-btn-wide {
    min-width: 320px;
    max-width: 400px;
    flex: none;
    background: linear-gradient(135deg, #ff6b35, #f7931a);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
}

.opa-btn-wide:hover,
.opa-btn-wide:focus {
    background: linear-gradient(135deg, #e55a2b, #e8850f);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-img-container {
        width: 200px;
        height: 200px;
    }
}

/* Bitcoin Price Widget Animation */
.btc-price-widget {
    animation: price-glow 2s infinite alternate;
}

@keyframes price-glow {
    from { text-shadow: 0 0 5px var(--bitcoin-gold); }
    to { text-shadow: 0 0 15px var(--bitcoin-gold); }
}

/* X Feed Styling */
.x-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.x-tweet {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.x-tweet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--bitcoin-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.x-tweet:hover::before {
    opacity: 1;
}

.tweet-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.tweet-like:hover, .tweet-retweet:hover {
    color: var(--bitcoin-gold);
    cursor: pointer;
}

/* Resource Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(242, 169, 0, 0.1);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(242, 169, 0, 0.15);
}

/* Resources Styles */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 600px;
    margin: 1rem auto;
}

/* Deep Resources specific styling */
#deep-resources .resources-list {
    max-width: 800px;
    gap: 0.5rem;
}

/* Resource Category Headers */
.resource-category {
    margin: 1.5rem 0 0.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(242, 169, 0, 0.2);
}

.resource-category h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bitcoin-gold);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#deep-resources .resource-item {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(242, 169, 0, 0.15);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

#deep-resources .resource-item:hover {
    background: rgba(242, 169, 0, 0.08);
    border-color: rgba(242, 169, 0, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(242, 169, 0, 0.15);
}

#deep-resources .resource-item a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bitcoin-gold);
}

#deep-resources .resource-item span {
    font-size: 0.75rem;
    color: #ccc;
    opacity: 0.9;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(242, 169, 0, 0.2);
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: rgba(242, 169, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 169, 0, 0.2);
}

.resource-item a {
    color: var(--bitcoin-gold);
    text-decoration: none;
    font-weight: 500;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.resource-item a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--bitcoin-gold);
}

.resource-item span {
    color: #ccc;
    font-size: 0.8rem;
    font-family: 'Roboto', sans-serif;
}

/* Old resource-link styles removed */

/* Loading States */
.loading {
    text-align: center;
    font-size: 1.2rem;
    color: var(--bitcoin-gold);
    padding: 2rem;
    animation: pulse 1.5s infinite;
}

.error {
    color: #ff4444;
    text-align: center;
    padding: 2rem;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* Confetti Canvas Positioning */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

/* Simple Footer */
.bitcoin-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(242, 169, 0, 0.2);
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bitcoin Metrics Dashboard */
#btc-dashboard {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(242, 169, 0, 0.1);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 169, 0, 0.1);
}

.metric-value {
    font-size: 1rem; /* Further reduced for better mobile alignment */
    font-weight: 700;
    color: var(--bitcoin-gold);
    margin: 0.3rem 0;
    text-align: right; /* Ensure right alignment for all values */
    flex: 1; /* Allow proper flex alignment */
    line-height: 1.2; /* Tighter line height for better alignment */
}

.metric-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Mobile optimization for BTC metrics */
@media (max-width: 768px) {
    .metric-value {
        font-size: 0.9rem; /* Smaller on tablet for better alignment */
        margin: 0.2rem 0;
        line-height: 1.1;
    }

    .metric {
        padding: 0.3rem 0.6rem; /* More compact padding */
        font-size: 0.8rem; /* Smaller labels */
    }
}

@media (max-width: 480px) {
    .metric-value {
        font-size: 0.85rem; /* Much smaller on small screens */
        margin: 0.15rem 0;
        line-height: 1.1;
    }

    .metric {
        padding: 0.25rem 0.5rem; /* Very compact padding */
        font-size: 0.75rem; /* Smaller labels */
    }
}

.sub-heading {
    font-size: 1.5rem;
    display: block;
    margin-top: 1rem;
    color: rgba(242, 169, 0, 0.8);
    text-shadow: 0 2px 10px rgba(242, 169, 0, 0.3);
}

/* Nostr Section */
.nostr-box {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    border: 1px solid var(--bitcoin-gold);
}

.zap-container {
    margin: 0.5rem 0;
}

.zap-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(242, 169, 0, 0.3);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.zap-input-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.zap-input-section input[type="number"] {
    width: 120px;
    padding: 0.5rem;
    border: 2px solid rgba(242, 169, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.zap-input-section input[type="number"]:focus {
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.zap-input-section input[type="number"]::-webkit-outer-spin-button,
.zap-input-section input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.zap-input-section input[type="number"]:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.zap-action-row {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.zap-input-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.zap-amount-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--bitcoin-gold);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.zap-input-section input[type="number"] {
    min-width: 80px;
    max-width: 120px;
}

.zap-input-section .zap-btn {
    min-width: 80px;
    white-space: nowrap;
}

.zap-display {
    flex-direction: column;
    align-items: stretch;
}

#zapAmount {
    width: 100%;
    margin: 0;
}

.zap-btn {
    color: #000 !important;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700 0%, #f2a900 100%);
}

.zap-btn::after {
    filter: brightness(0.8);
}

.hero-bio {
    padding: 0.5rem 1rem 0.2rem !important;
    transform: translateY(-10%);
    font-size: 1rem;
}

.lead {
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #f2a900, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(242, 169, 0, 0.3);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    margin: 1rem 0;
    order: -1;
    max-width: 100%;
    margin-top: 0;
}

@media (max-width: 768px) {
    .lead {
        font-size: 0.85rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .zap-input-section {
        gap: 0.4rem;
    }

    .zap-input-section input[type="number"] {
        width: 100px;
        font-size: 0.9rem;
        padding: 0.4rem;
    }
}

/* Updated Hero Section */
.hero-profile-bg {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-profile-bg::before {
    content: '';
    position: fixed;
    top: 60px; /* Half the drop - better positioning */
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    background: url('img/NOVlJYvG_400x400.jpg') center center / 1200px 1200px no-repeat;
    z-index: -1;
    pointer-events: none;
}

.profile-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    margin-top: 480px; /* Move content down 4x more (480px vs 120px) */
}

/* Mobile adjustments for content positioning */
@media (max-width: 768px) {
    .profile-content {
        margin-top: 200px; /* Reasonable spacing on tablet */
        padding: 1.5rem; /* Reduce padding on mobile */
    }

    .hero-profile-bg::before {
        height: 1200px; /* Same as desktop */
        width: 1200px; /* Same as desktop */
        background-size: 1200px 1200px; /* Same as desktop */
        top: 60px; /* Keep same position as desktop */
    }
}

@media (max-width: 480px) {
    .profile-content {
        margin-top: 150px; /* Reasonable spacing on mobile */
        padding: 1rem; /* Reduce padding further */
    }

    .hero-profile-bg::before {
        height: 1000px; /* Smaller for mobile screens */
        width: 1000px; /* Smaller for mobile screens */
        background-size: 1000px 1000px; /* Smaller for mobile screens */
        top: 60px; /* Keep same position as desktop */
    }
}

.social-actions {
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

.scaled-value {
    font-size: 1.8rem;
    color: var(--bitcoin-gold);
}

#zapAmount {
    --low-color: #f2a900;
    --high-color: #ff6b6b;
    background: linear-gradient(
        to right,
        var(--low-color) 0%,
        var(--low-color) 80%,
        var(--high-color) 80%,
        var(--high-color) 100%
    );
}

/* Mobile portrait optimization */
@media (max-aspect-ratio: 3/4) {
    .hero-profile-bg {
        background-size: cover;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }
}

.hero-overlay {
    padding: 0.5rem;
}

.social-actions {
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

/* X Follow Button */
.x-follow-btn {
    background: linear-gradient(45deg, #000 0%, #222 100%);
    border: 1px solid rgba(255,255,255,0.2);
}

.x-follow-btn:hover {
    background: linear-gradient(45deg, #222 0%, #000 100%);
}

/* Nostr Button */
.nostr-btn {
    background: linear-gradient(45deg, #8a3ab9 0%, #4c68d7 100%);
    border: 1px solid rgba(255,255,255,0.2);
}

.nostr-btn:hover {
    background: linear-gradient(45deg, #4c68d7 0%, #8a3ab9 100%);
}

/* Zap Send Button */
.zap-btn {
    background: linear-gradient(45deg, 
        #f2a900 0%,
        #ffd700 100%);
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.x-logo::before {
    content: "𝕏";
    margin-right: 0.5rem;
}

.x-follow-btn span {
    display: none;
}

/* Zap Controls */
.zap-label {
    font-family: 'Orbitron', sans-serif;
    color: var(--bitcoin-gold);
    margin: 0 0.5rem;
}

.zap-icon {
    filter: brightness(1.2);
    margin-right: 0.5rem;
}

/* Quote Box Styling */
#zapMessage {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    min-height: auto;
    padding: 0.3rem 0;
}

/* Removed ::before Zap Amount label - now inline */

.dynamic-message {
    transition: all 0.3s ease;
}

.pulse-error {
    animation: error-pulse 0.5s ease 2;
}

@keyframes error-pulse {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* Remove Duplicate Message Container */
.zap-message {
    display: none !important;
}

.follow-buttons {
    gap: 0.3rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Add this to maintain positioning */
@media (min-aspect-ratio: 16/9) {
    .hero-profile-bg {
        background-size: 1032px 1032px;
        background-position: center 10%;
    }
}

/* Bitcoin Metrics Table */
.metrics-table {
    border: 1px solid var(--bitcoin-gold);
    border-radius: 8px;
    overflow: hidden;
    max-width: 800px;
    margin: 2rem auto;
    background: rgba(0,0,0,0.3);
    box-shadow: var(--neon-glow);
    width: 95%;
    margin: 1rem auto;
    font-size: 0.9rem;
    display: grid;
}

.table-header {
    display: none;
    grid-template-columns: 2fr 1.5fr 1fr;
    padding: 1rem;
    background: rgba(242, 169, 0, 0.1);
    font-family: 'Orbitron', sans-serif;
    border-bottom: 2px solid var(--bitcoin-gold);
}

.table-row {
    grid-template-columns: 1fr;
    padding: 1rem;
    border-bottom: 1px solid rgba(242, 169, 0, 0.2);
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
}

.table-row > div {
    display: none;
}

.table-row::before {
    content: attr(data-metric);
    display: block;
    font-family: 'Orbitron', sans-serif;
    color: var(--bitcoin-gold);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.bitcoin-value {
    color: var(--bitcoin-gold);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 169, 0, 0.3);
}

@media (max-width: 768px) {
    .metrics-table {
        font-size: 0.9rem;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1.5fr 1fr 0.8fr;
        padding: 0.8rem;
    }
}

@media (min-width: 768px) {
    body {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
    }

    .mobile-menu-toggle {
        display: none;
    }
    
    .metrics-table {
        width: 80%;
        font-size: 1rem;
    }
    
    .table-header {
        display: grid;
        grid-template-columns: 2fr 1.5fr 1fr;
    }
    
    .table-row {
        grid-template-columns: 2fr 1.5fr 1fr;
        padding: 1rem;
        border-bottom: 1px solid rgba(242, 169, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .table-row > div {
        display: block;
    }
    
    .table-row::before {
        display: none;
    }
}

/* Touch Optimization */
button, a {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

/* Enhanced Bitcoin Animation */
@keyframes bitcoin-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btc-live {
    animation: bitcoin-pulse 2s infinite;
}

/* Bitcoin Philosophy Section */
.philosophy-content {
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(242, 169, 0, 0.1);
    border-radius: 12px;
    border: 1px solid var(--bitcoin-gold);
}

.philosophy-intro h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--bitcoin-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(242, 169, 0, 0.5);
}

.philosophy-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

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

.philosophy-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(242, 169, 0, 0.2);
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    border-color: var(--bitcoin-gold);
    box-shadow: 0 10px 30px rgba(242, 169, 0, 0.2);
}

.philosophy-card h4 {
    color: var(--bitcoin-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.philosophy-card p {
    line-height: 1.6;
    margin: 0;
}

.philosophy-quote {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(242, 169, 0, 0.1));
    border-radius: 12px;
    border: 1px solid var(--bitcoin-gold);
}

.philosophy-quote blockquote {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    color: #fff;
}

.philosophy-quote cite {
    color: var(--bitcoin-gold);
    font-weight: 500;
    font-size: 1rem;
}

.philosophy-callout {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(242, 169, 0, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--bitcoin-gold);
}

.philosophy-callout p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .philosophy-intro {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .philosophy-intro h3 {
        font-size: 1.5rem;
    }

    .philosophy-card {
        padding: 1.5rem;
    }

    .philosophy-quote {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .philosophy-quote blockquote {
        font-size: 1.1rem;
    }

    /* Mobile follow buttons */
    .follow-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .follow-buttons .cta-btn {
        min-width: 200px;
        max-width: none;
        flex: none;
    }

    .follow-buttons-secondary {
        margin-top: var(--spacing-md);
    }

    .opa-btn-wide {
        min-width: 250px;
        max-width: none;
    }

    .opa-btn-wide {
        background: linear-gradient(135deg, #ff6b35, #f7931a);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
    }

    .opa-btn-wide:hover,
    .opa-btn-wide:focus {
        background: linear-gradient(135deg, #e55a2b, #e8850f);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
        transform: translateY(-2px);
    }

    /* Mobile referrals section */
    .referrals-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-top: var(--spacing-md);
    }

    .referral-card {
        padding: var(--spacing-lg);
    }

    .referral-icon {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .referral-card h3 {
        font-size: var(--font-size-base);
    }

    .referral-card p {
        font-size: 0.8rem;
        margin-bottom: var(--spacing-md);
    }

    .referral-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
        min-height: 40px;
    }

    .bitcoin-well-referral {
        background: linear-gradient(135deg, #1e40af, #1e3a8a);
    }

    .bitcoin-well-referral:hover,
    .bitcoin-well-referral:focus {
        background: linear-gradient(135deg, #1e3a8a, #1e293b);
        box-shadow: 0 4px 20px rgba(30, 64, 175, 0.4);
        transform: translateY(-2px);
    }

    .philosophy-callout {
        padding: 1.5rem;
    }
}

/* Security Enhancements - CSP should be in HTML meta tag */

/* Node Status Banner */
.node-status-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--spacing-md) 0 var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(242, 169, 0, 0.1), rgba(0, 198, 255, 0.1));
    border: 1px solid rgba(242, 169, 0, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.status-badge.claimed {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge.claimed .status-icon {
    font-size: 1.1rem;
}

.status-badge.claimed .status-text {
    color: #22c55e;
    font-weight: 600;
}

.social-proof {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(242, 169, 0, 0.3);
    transform: translateY(-1px);
}

.social-link .social-icon {
    font-size: 1.1rem;
    color: var(--electric-blue);
}

/* Hero Section Mobile Fixes */
@media (max-width: 768px) {
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
    }

    /* Removed conflicting profile-content override */

    .hero-bio {
        width: 100% !important;
        padding: 1rem !important;
    }

    .zap-container {
        width: 100% !important;
    }

    .zap-controls {
        width: 100% !important;
        padding: 1rem !important;
    }

    /* Reduce spacing between quotes and follow section */
    .btc-quote {
        margin-bottom: 0.5rem !important;
    }

    .section-dark {
        padding: 1.5rem 1rem !important;
    }

    .follow-grid {
        gap: 1rem !important;
    }

    /* Zap action row mobile layout */
    .zap-action-row {
        padding: 0 0.5rem;
    }

    .zap-input-section {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .zap-amount-label {
        align-self: flex-start !important;
        font-size: 0.7rem !important;
        margin-bottom: -0.25rem !important;
    }

    .zap-input-section input[type="number"] {
        width: 100% !important;
        min-width: 100px !important;
        max-width: none !important;
    }

    .zap-input-section .zap-btn {
        width: 100% !important;
        min-width: auto !important;
    }

    .zap-label {
        display: none !important; /* Hide "sats" on mobile to save space */
    }

    /* OrangePill button mobile fix */
    .opa-btn-wide {
        min-width: 280px !important;
        max-width: 320px !important;
    }
}

/* Mobile Responsiveness for Node Status Banner */
@media (max-width: 768px) {
    .node-status-banner {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }

    .status-badge.claimed {
        justify-content: center;
        text-align: center;
    }

    .social-proof {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .node-status-banner {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) 0;
    }

    .status-badge.claimed {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .social-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Lightning Node Styles */
.node-dashboard {
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(242, 169, 0, 0.1);
}

.node-info-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.primary-card {
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid var(--bitcoin-gold);
    box-shadow: 0 0 30px rgba(242, 169, 0, 0.3);
}

/* Projects Section Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(242, 169, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    background: rgba(242, 169, 0, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 169, 0, 0.2);
}

.project-card.placeholder {
    opacity: 0.6;
    border-style: dashed;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.project-card h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--bitcoin-gold);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.project-card p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bitcoin-gold);
    color: #000;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover:not(.disabled) {
    background: #fff;
    color: var(--bitcoin-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 169, 0, 0.4);
}

.project-link.disabled {
    background: rgba(242, 169, 0, 0.3);
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.project-status {
    display: inline-block;
    background: var(--electric-blue);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        padding: 1.25rem;
    }

    .project-icon {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .node-info-grid {
        grid-template-columns: 1fr;
    }
}

.node-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--bitcoin-gold);
}

.node-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}

.node-label {
    font-family: 'Orbitron', sans-serif;
    color: var(--bitcoin-gold);
    min-width: 100px;
}

.node-value {
    flex-grow: 1;
    word-break: break-all;
    color: #fff;
}

.node-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(242, 169, 0, 0.1);
    border-radius: 8px;
    min-width: 120px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    color: var(--bitcoin-gold);
    font-size: 1.2rem;
}

/* Status styling removed - no longer needed */

.channel-actions {
    display: grid;
    gap: 1.5rem;
}

.action-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--bitcoin-gold);
}

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

.action-form input {
    padding: 0.8rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--bitcoin-gold);
    color: white;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.node-btn {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border: 1px solid var(--bitcoin-gold);
    transition: all 0.3s ease;
}

.node-btn:hover {
    background: linear-gradient(45deg, var(--bitcoin-gold), #1a1a1a);
}

.liquidity-options {
    display: grid;
    gap: 1rem;
}

.liquidity-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(242, 169, 0, 0.05);
    border-radius: 6px;
}

.tier-size {
    font-family: 'Orbitron', sans-serif;
    color: var(--bitcoin-gold);
}

.tier-fee {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Use system fonts as fallback for Orbitron */
.orbitron-fallback {
    font-family: 'Courier New', monospace;
}

/* Will-change optimizations for animations */
.nav-links a,
.cta-btn,
.mobile-menu-toggle {
    will-change: transform;
}

/* Contain layout for better performance */
.hero-profile-bg,
.sticky-nav {
    contain: layout style paint;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a, a:visited {
        text-decoration: underline;
    }

    .sticky-nav,
    .mobile-menu-toggle,
    .social-actions,
    .zap-container {
        display: none !important;
    }

    .hero-title {
        color: black !important;
        text-shadow: none !important;
    }

    .bitcoin-footer {
        border-top: 2px solid black;
        margin-top: 2rem;
    }
}

/* ========================================
   REFERRALS SECTION STYLES
   ======================================== */

.referrals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.referral-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(242, 169, 0, 0.1);
    border-radius: 12px;
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.referral-card:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 169, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.referral-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.referral-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--bitcoin-gold);
    margin: 0 0 var(--spacing-sm) 0;
    letter-spacing: 1px;
}

.referral-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0 0 var(--spacing-lg) 0;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.referral-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, var(--bitcoin-gold), var(--electric-blue));
    color: white;
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 44px;
    box-shadow: 0 2px 10px rgba(242, 169, 0, 0.2);
}

.referral-btn:hover,
.referral-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(242, 169, 0, 0.4);
    background: linear-gradient(135deg, var(--electric-blue), var(--bitcoin-gold));
}

.button-icon-small {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

/* Specific referral button styles */
.nostr-referral {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.nostr-referral:hover,
.nostr-referral:focus {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.opa-referral {
    background: linear-gradient(135deg, #ff6b35, #f7931a);
}

.opa-referral:hover,
.opa-referral:focus {
    background: linear-gradient(135deg, #e55a2b, #e8850f);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.fold-referral {
    background: linear-gradient(135deg, #10b981, #059669);
}

.fold-referral:hover,
.fold-referral:focus {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.bitcoin-well-referral {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.bitcoin-well-referral:hover,
.bitcoin-well-referral:focus {
    background: linear-gradient(135deg, #1e3a8a, #1e293b);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.4);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Color utilities */
.text-gold { color: var(--bitcoin-gold); }
.text-blue { color: var(--electric-blue); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ========================================
   NOTIFICATIONS & MESSAGES
   ======================================== */

.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: var(--z-tooltip);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.error-content h3 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.error-content p {
    margin: 0 0 var(--spacing-md) 0;
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.error-content button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 4px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
}

.error-content button:hover,
.error-content button:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Zap Controls Styling */
.zap-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    gap: var(--spacing-sm);
}

.zap-amount-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.65);
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 198, 255, 0.3);
}

.zap-display #zapValue {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--electric-blue);
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.9),
        -1px -1px 0px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(0, 198, 255, 0.4);
}

.zap-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.zap-display .cta-btn {
    flex-shrink: 0;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
    min-width: auto;
}

/* Dynamic message styles */
.dynamic-message {
    min-height: 1.5rem;
    margin: var(--spacing-sm) 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.dynamic-message.success {
    color: #28a745;
    opacity: 1;
    transform: translateY(0);
}

.dynamic-message.error {
    color: #dc3545;
    opacity: 1;
    transform: translateY(0);
}

.dynamic-message.quote {
    opacity: 1;
    transform: translateY(0);
    color: var(--text-secondary);
}

/* Quote Content Styling - Enhanced readability */
.quote-content {
    margin: 0;
    padding: 0;
}

.quote-text {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    font-style: italic;
    color: var(--text-primary);
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.8),
        -1px -1px 0px rgba(0, 0, 0, 0.8),
        0 0 4px rgba(0, 0, 0, 0.6);
}

.quote-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.8),
        0 0 3px rgba(0, 0, 0, 0.6);
}

.quote-source {
    font-style: normal;
    color: var(--electric-blue);
    font-weight: 600;
    text-shadow:
        0 0 4px rgba(0, 198, 255, 0.6);
}

/* Metrics error state */
.bitcoin-metrics.metrics-error {
    border: 2px solid #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus trap for modals (future enhancement) */
.focus-trap:focus-within {
    outline: 2px solid var(--bitcoin-gold);
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    .error-notification {
        border: 2px solid white;
        background: black;
    }

    .dynamic-message.success {
        color: lime;
    }

    .dynamic-message.error {
        color: red;
    }
}

/* Reduced motion adjustments */
@media (prefers-reduced-motion: reduce) {
    .error-notification,
    .dynamic-message {
        transition: none;
    }

    .error-content button {
        transition: none;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    .nav-links a,
    .cta-btn,
    .mobile-menu-toggle {
        transition: none !important;
    }
}

/* Optimize font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Optimize scrolling on touch devices */
@media (hover: none) and (pointer: coarse) {
    html {
        scroll-behavior: auto;
    }

    .nav-links a:hover {
        transform: none;
    }
}

/* Optimize for low-end devices */
@media (max-width: 480px) {
    /* Reduce animations on small screens */
    .nav-links a,
    .cta-btn {
        transition-duration: 0.1s;
    }

    /* Simplify backdrop filters */
    .sticky-nav {
        backdrop-filter: blur(5px);
    }
} 