/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-cyan: #00ffff;
    --neon-purple: #8b5cf6;
    --neon-pink: #ff00ff;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff4444;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-emoji {
    font-size: 28px;
    animation: pulse 2s infinite;
}

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

/* Language Switch - FIXED VISIBILITY */
.language-switch {
    display: flex;
    gap: 5px;
    margin-right: 20px;
}

.lang-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary); /* BIANCO invece di grigio */
    font-weight: 600; /* Più bold per visibilità */
}

.lang-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    color: var(--neon-cyan); /* Cyan al hover */
}

.lang-btn.active {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.1); /* Background leggero quando attivo */
    color: var(--neon-cyan); /* Cyan quando attivo */
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-link.premium-trigger {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.emoji-cycle {
    display: inline-block;
    animation: emojiCycle 3s infinite;
    font-size: 1.2em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Input Section */
.wallet-input-container {
    max-width: 600px;
    margin: 0 auto 60px;
}

.input-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.wallet-input {
    flex: 1;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.wallet-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.wallet-input::placeholder {
    color: var(--text-secondary);
}

.wallet-input.success {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.wallet-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.scan-btn {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: none;
    border-radius: 12px;
    padding: 18px 32px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.scan-btn:active {
    transform: translateY(0);
}

.scan-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.scan-loader {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading .scan-text {
    display: none;
}

.loading .scan-loader {
    display: block;
}

.chain-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.chain-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chain-btn:hover,
.chain-btn.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.error-message {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: 8px;
    padding: 15px;
    color: var(--danger);
    text-align: center;
    font-size: 14px;
}

/* Result Section */
.result-container {
    animation: slideUp 0.6s ease-out;
}

.result-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.status-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.status-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.wallet-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--neon-cyan);
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.share-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn.twitter:hover {
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.share-btn.telegram:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
}

.share-btn.download:hover {
    border-color: var(--neon-purple);
    background: rgba(139, 92, 246, 0.1);
    color: var(--neon-purple);
}

.premium-cta {
    text-align: center;
    padding: 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.premium-cta p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.cta-btn {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

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

.payment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.payment-content {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.payment-header h3 {
    font-size: 24px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.premium-features {
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature:last-child {
    border-bottom: none;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.payment-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.payment-btn.active {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-icon {
    font-size: 24px;
}

.payment-name {
    font-weight: 600;
    color: var(--text-primary);
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--neon-cyan);
}

.discount {
    background: var(--success);
    color: black;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.pay-now-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.pay-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.pay-now-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.payment-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.5);
}

.section-content {
    text-align: center;
}

.how-it-works h2 {
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    color: white;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center; /* Centra il testo nel footer per mobile */
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: auto; /* Centra il logo per mobile */
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto; /* Centra i link per mobile */
}

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

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin: auto; /* Centra i social per mobile */
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    color: var(--text-primary); /* Assicurati che le icone social siano visibili */
}

.social-link:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.floating-emojis {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    font-size: 30px;
    opacity: 0.3;
    animation: float 15s infinite linear;
}

.floating-emoji:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-emoji:nth-child(2) { left: 20%; animation-delay: -3s; }
.floating-emoji:nth-child(3) { left: 30%; animation-delay: -6s; }
.floating-emoji:nth-child(4) { left: 40%; animation-delay: -9s; }
.floating-emoji:nth-child(5) { left: 50%; animation-delay: -12s; }
.floating-emoji:nth-child(6) { left: 60%; animation-delay: -15s; }
.floating-emoji:nth-child(7) { left: 70%; animation-delay: -18s; }

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

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes emojiCycle {
    0% { content: '🐳'; }
    14% { content: '🐸'; }
    28% { content: '💀'; }
    42% { content: '🚀'; }
    56% { content: '💎'; }
    70% { content: '🐬'; }
    84% { content: '🦐'; }
    100% { content: '🐳'; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0% { 
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { 
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .language-switch {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .lang-btn {
        padding: 10px 15px;
        font-size: 18px;
        font-weight: 700; /* Ancora più bold su mobile */
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .wallet-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .chain-selector {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .result-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .wallet-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .floating-emoji {
        font-size: 20px;
    }
    
    .payment-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .payment-methods {
        gap: 10px;
    }
    
    .payment-btn {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .status-emoji {
        font-size: 60px;
    }
    
    .status-title {
        font-size: 24px;
    }
    
    .how-it-works h2 {
        font-size: 2rem;
    }

    /* Nuovi stili per la Dashboard Premium */
    .premium-dashboard-section .section-title {
        font-size: 1.8rem;
    }
    .premium-wallet-grid {
        grid-template-columns: 1fr;
    }
    .premium-controls {
        flex-direction: column;
        gap: 15px;
    }
    .wallet-badge {
        padding: 20px;
        min-height: 200px;
    }
    .badge-emoji {
        font-size: 40px;
    }
    .badge-nickname {
        font-size: 1.1rem;
    }
    .badge-balance {
        font-size: 1.3rem;
    }
}

/* Focus styles for accessibility */
.scan-btn:focus,
.chain-btn:focus,
.share-btn:focus,
.pay-now-btn:focus,
.lang-btn:focus {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

.wallet-input:focus {
    outline: none; /* Already handled by border/shadow */
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .wallet-input,
    .chain-btn,
    .result-card,
    .payment-btn {
        border-width: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-emojis {
        display: none;
    }
    
    .grid-overlay {
        animation: none;
    }
}

/* Print styles */
@media print {
    .bg-effects,
    .floating-emojis,
    .payment-modal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Nuovi stili per la Dashboard Premium */
.premium-dashboard-section {
    padding: 60px 0;
    text-align: center;
}

.premium-dashboard-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-controls {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Per responsività */
}

.premium-wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.wallet-badge {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.wallet-badge:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.badge-emoji {
    font-size: 50px;
    margin-bottom: 10px;
}

.badge-nickname {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-purple);
    margin-bottom: 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.badge-balance {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 8px;
}

.badge-change {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.badge-change.positive-change { /* Stile per cambiamento positivo */
    color: var(--success);
}

.badge-change.negative-change { /* Stile per cambiamento negativo */
    color: var(--danger);
}

.badge-chain {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.remove-wallet-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.remove-wallet-btn:hover {
    opacity: 1;
}

.premium-dashboard-section .cta-btn.refresh-btn { /* Stile per Refresh All */
    margin-bottom: 0;
}

/* Messaggio dashboard vuota */
.empty-premium-dashboard {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 30px;
    padding: 20px;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    max-width: 500px; /* Per centrare meglio il messaggio */
    margin-left: auto;
    margin-right: auto;
}

/* Nuovi stili per temi premium (Gold / Neon / Dark) */
.theme-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.theme-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.theme-gold {
    --card-bg: #ffd7001a; /* Gold transparent */
    --border-color: #ffd700;
    --text-primary: #ffd700;
}

.theme-neon {
    --card-bg: #00ffff1a; /* Neon cyan */
    --border-color: #00ffff;
    --text-primary: #00ffff;
}

.theme-dark {
    --card-bg: #111111;
    --border-color: #333333;
    --text-primary: #ffffff;
}

/* Stili per sparkline */
.sparkline-canvas {
    width: 100px;
    height: 30px;
    margin: 0 auto;
    display: block;
}

/* Stili per public profile opt-in */
.public-profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: var(--text-secondary);
}

.public-profile-toggle input {
    cursor: pointer;
}

.public-profile-link {
    margin-top: 10px;
    color: var(--neon-cyan);
    text-decoration: none;
}

.public-profile-link:hover {
    text-decoration: underline;
}

/* Stili per founders overlay */
.founders-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: black;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Stili per next available scan */
.next-scan-timer {
    color: var(--warning);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Stili per borderline message */
.borderline-message {
    color: var(--warning);
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

/* ========================= */
/* EXTRA PREMIUM PAGE STYLES */
/* ========================= */

.premium-page {
    padding: 80px 0;
    text-align: center;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Bottone refresh nella premium.html */
.premium-controls .refresh-btn {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 25px;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s ease;
}
.premium-controls .refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* Animazione badge premium */
.wallet-badge {
    animation: slideUp 0.5s ease-out;
}

/* Stile per badge vuoti */
.empty-premium-dashboard {
    font-style: italic;
    opacity: 0.8;
}

/* Badge differenziati per stato */
.badge-change.positive-change::before {
    content: "⬆ ";
}
.badge-change.negative-change::before {
    content: "⬇ ";
}

/* Hover animato sui badge */
.wallet-badge:hover .badge-emoji {
    transform: scale(1.2) rotate(5deg);
    transition: transform 0.3s ease;
}

/* Sezione CTA premium (già esiste ma la rendo più visibile in premium.html) */
.premium-page #premiumUpgradeCta {
    margin-top: 60px;
    border: 2px dashed var(--neon-purple);
    background: rgba(139, 92, 246, 0.05);
}
