:root {
    --primary: #0a1a2f;
    --secondary: #055ff0;
    --dark: #0b1120;
    --light: #e6e8eb;
    --neutral: #6b7280;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #292b4bb3 100%);
    --glow: 0 0 15px rgba(59, 130, 246, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: var(--dark);
    color: var(--light);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 15px;
    scroll-behavior: smooth;
    position: relative;
}

/* Hero Overlay */
.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent);
    pointer-events: none;
    z-index: -1;
}

/* Cyber Grid Effect */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
    overflow: hidden;
}

.cyber-line {
    position: absolute;
    width: 1px;
    height: 100px;
    background: rgba(59, 130, 246, 0.3);
    transform-origin: center;
}

/* Quantum Particles */
.quantum-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.quantum-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--secondary);
    filter: blur(1px);
    opacity: 0.3;
}

/* Canvases */
#backgroundCanvas, #particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

/* Header */
header {
    background: var(--gradient);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(255, 252, 252, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    position: relative;
    text-decoration: none; /* Aggiunto per rimuovere la sottolineatura */
    color: var(--white); /* Colore del testo */
}

.logo-icon {
    margin-right: 0.4rem;
    font-size: 1.6rem;
    color: var(--white);
    animation: spin 12s linear infinite;
}

.logo-pulse {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--secondary);
    border-radius: 50%;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    filter: blur(10px);
    opacity: 0.5;
}

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

.logo sup {
    font-size: 0.6rem;
    color: var(--secondary);
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: rotate(90deg);
}

.wallet-connector {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.connect-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    opacity: 1;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.btn-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: #4b92ff;
}

.switch-network {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.switch-network:hover {
    background: #f0f0f0;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

.wallet-icon {
    margin-right: 0.3rem;
    font-size: 0.9rem;
    color: var(--white);
}

.connected-wallet {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.wallet-address {
    margin-right: 0.6rem;
    font-family: 'Courier New', monospace;
    color: var(--white);
}

.wallet-balance {
    background: var(--secondary);
    color: var(--white);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Main Container */
.main-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.2rem;
    max-width: 1280px;
    margin: 1.5rem auto;
    padding: 0 1.2rem;
}

/* Sidebar */
.sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 4.5rem;
    height: fit-content;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.sidebar-hologram {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 48%, 
        rgba(59, 130, 246, 0.05) 49%, 
        rgba(59, 130, 246, 0.05) 51%, 
        transparent 52%);
    background-size: 10px 10px;
    opacity: 0.3;
    pointer-events: none;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.4rem;
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--light);
    text-decoration: none;
    padding: 0.7rem 0.9rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--white);
    transform: translateX(4px);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.nav-link.active .nav-underline {
    transform: scaleX(1);
}

.nav-icon {
    margin-right: 0.6rem;
    font-size: 1.1rem;
    color: var(--white);
}

/* Sections */
.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section:hover::before {
    opacity: 1;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-icon {
    margin-right: 0.4rem;
    color: var(--white);
    font-size: 1.4rem;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.3px;
    position: relative;
}

.dashboard-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

.user-tier {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tier-badge {
    padding: 0.3rem 0.9rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tier-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tier-badge:hover::before {
    left: 100%;
}

.tier-none { background: var(--neutral); color: var(--white); }
.tier-provider-1 { background: #6b7280; color: var(--white); }
.tier-provider-2 { background: var(--white); color: var(--primary); }
.tier-provider-ultra { 
    background: var(--secondary); 
    color: var(--white); 
    animation: glow 2s ease-in-out infinite; 
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.7); }
    100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.4); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.6rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transform-style: preserve-3d;
}

.stat-3d-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card:hover .stat-3d-effect {
    opacity: 1;
}

.stat-title {
    font-size: 0.8rem;
    color: var(--light);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0.8;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--white);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.stat-details {
    font-size: 0.75rem;
    color: var(--light);
    opacity: 0.7;
}

.info-icon {
    color: var(--white);
}

.reinvest-info-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.info-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.info-tooltip i {
    color: var(--neutral);
    font-size: 0.8rem;
}

.tooltip-text {
    visibility: hidden;
    width: 160px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.7rem;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

/* Deposit Section */
.dex-requirement {
    background: rgba(107, 114, 128, 0.1);
    border-left: 3px solid var(--neutral);
    padding: 0.6rem;
    margin-bottom: 1rem;
    border-radius: 0 0.6rem 0.6rem 0;
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

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

.dex-alert-icon {
    color: var(--neutral);
    margin-right: 0.4rem;
    font-size: 1.1rem;
}

.dex-alert-text {
    font-size: 0.8rem;
    color: var(--light);
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: #4b92ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-block {
    display: block;
    width: 100%;
    padding: 0.7rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--white);
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.08);
    animation: pulseInput 1s infinite;
}

@keyframes pulseInput {
    0% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3); }
    100% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
}

.input-group {
    display: flex;
    gap: 0.4rem;
}

.network-select {
    width: 140px;
}

.custom-slider-container {
    margin: 1rem 0;
    position: relative;
}

.custom-slider {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2.5px;
    position: relative;
    z-index: 5 !important;
}

.slider-track {
    position: absolute;
    height: 100%;
    background: var(--secondary);
    border-radius: 2.5px;
    width: 0;
}

.slider-thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
    z-index: 2;
}

.custom-slider input[type="range"] {
    appearance: none;
    width: 100%;
    height: 5px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    z-index: 3;
}

.custom-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
    opacity: 0;
}

.custom-slider input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.7);
}

.slider-markers {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.slider-markers .marker {
    position: absolute;
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    top: -2px;
    transform: translateX(-50%);
}

.slider-markers .marker::after {
    content: attr(data-value);
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--light);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--light);
}

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

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.6rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transform-style: preserve-3d;
}

.plan-hologram {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 48%, 
        rgba(59, 130, 246, 0.05) 49%, 
        rgba(59, 130, 246, 0.05) 51%, 
        transparent 52%);
    background-size: 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.plan-card:hover .plan-hologram {
    opacity: 0.3;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.plan-card.active {
    border: 1px solid var(--secondary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.plan-badge {
    background: var(--secondary);
    color: var(--white);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.plan-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.plan-card.active .plan-badge {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.plan-badge::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: orbit 4s linear infinite;
}

@keyframes orbit {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.plan-details span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: var(--light);
    opacity: 0.8;
}

.fee-notice {
    font-size: 0.75rem;
    color: var(--light);
    margin: 0.6rem 0;
    padding: 0.5rem;
    background: rgba(107, 114, 128, 0.1);
    border-left: 3px solid var(--neutral);
    border-radius: 0 0.4rem 0.4rem 0;
    display: flex;
    align-items: center;
}

.fee-notice i {
    margin-right: 0.4rem;
    color: var(--neutral);
}

/* Referral Section */
.referral-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.6rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transform-style: preserve-3d;
}

.referral-description {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--light);
    opacity: 0.8;
}

.referral-code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.05);
    padding: 0.6rem;
    border-radius: 0.4rem;
    margin: 0.6rem 0;
    gap: 0.8rem;
    border: 1px dashed rgba(59, 130, 246, 0.3);
}

.referral-code {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    flex-grow: 1;
}

.copy-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.copy-btn:hover {
    background: #4b92ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.copy-btn i {
    margin-right: 0.3rem;
    color: var(--white);
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
    margin: 1rem 0;
}

.referral-stat {
    text-align: center;
    padding: 0.8rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.referral-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.referral-label {
    font-size: 0.75rem;
    color: var(--light);
    opacity: 0.7;
}

.withdraw-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 1rem;
}

.withdraw-option {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.withdraw-option:hover {
    border-color: var(--secondary);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-3px);
}

.withdraw-option.active {
    border-color: var(--secondary);
    background: rgba(59, 130, 246, 0.1);
}

.option-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--white);
}

.option-description {
    font-size: 0.75rem;
    color: var(--light);
    opacity: 0.7;
}

/* Withdraw Section */
.withdraw-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

.withdraw-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transform-style: preserve-3d;
}

.withdraw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header i {
    font-size: 1.3rem;
    color: var(--white);
    margin-right: 0.6rem;
}

.card-header h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0;
}

.balance-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.6rem;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.balance-row:last-child {
    margin-bottom: 0;
}

.balance-label {
    color: var(--light);
    opacity: 0.8;
}

.balance-value {
    font-weight: 600;
    color: var(--white);
}

.withdraw-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.withdraw-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--light);
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.withdraw-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.withdraw-tab:hover {
    opacity: 1;
}

.withdraw-tab.active {
    opacity: 1;
    color: var(--white);
}

.withdraw-tab.active::after {
    transform: scaleX(1);
}

.withdraw-history-container {
    height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.6rem;
}

.withdraw-history-container::-webkit-scrollbar {
    width: 6px;
}

.withdraw-history-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.withdraw-history-container::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.withdraw-list {
    display: none;
}

.withdraw-list.active {
    display: block;
}

.withdraw-item {
    background: rgba(255, 255, 255, 0.03);
    margin: 0.5rem 0;
    padding: 0.8rem;
    border-radius: 0.4rem;
    border-left: 3px solid var(--secondary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.withdraw-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}

.withdraw-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.withdraw-id {
    font-weight: 500;
    color: var(--light);
}

.withdraw-amount {
    font-weight: 600;
    color: var(--white);
}

.withdraw-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--light);
}

.withdraw-timestamp {
    opacity: 0.7;
}

.withdraw-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.status-completed {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

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

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    width: 90%;
    max-width: 480px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transform-style: preserve-3d;
    margin: auto; /* Centra orizzontalmente e verticalmente */
}
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: auto;
    }
}

.modal.active .modal-content {
    transform: rotateY(0deg);
}

.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--white);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--neutral);
    opacity: 1;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.modal-body {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--light);
    font-size: 0.85rem;
}

.modal-fee-notice {
    background: rgba(107, 114, 128, 0.1);
    border-left: 3px solid var(--neutral);
    padding: 0.5rem;
    border-radius: 0 0.4rem 0.4rem 0;
    margin: 0.6rem 0;
    font-size: 0.75rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 3.8rem;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    padding: 0.8rem;
    border-radius: 0 0 0.8rem 0.8rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav-link {
    display: block;
    padding: 0.7rem;
    color: var(--white);
    text-decoration: none;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--secondary);
    color: var(--white);
}

/* FAQ */
.faq-item {
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.faq-question {
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-question h4 {
    margin: 0;
    font-size: 0.85rem;
    color: var(--white);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 0.7rem;
    display: none;
    background: rgba(255, 255, 255, 0.02);
}

.faq-answer p {
    margin: 0.6rem 0;
    font-size: 0.8rem;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6rem 0;
}

.fee-table th, .fee-table td {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-size: 0.75rem;
    color: var(--light);
}

.fee-table th {
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
    background: var(--gradient);
    padding: 1.2rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-container {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.footer-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--white);
}

.footer-item i {
    margin-right: 0.4rem;
    font-size: 1.1rem;
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .withdraw-container {
        grid-template-columns: 1fr;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    .header-container {
        padding: 0.7rem;
    }

  
    
    .logo {
        display: flex;
        align-items: center;
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: -0.3px;
        position: relative;
        text-decoration: none; /* Aggiunto per rimuovere la sottolineatura */
        color: var(--white); /* Colore del testo */
    }
    .logo-icon {
        font-size: 1.4rem;
    }

    .connect-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }

    .section {
        padding: 0.9rem;
    }
    

    .dashboard-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

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

    .modal-content {
        width: 95%;
        padding: 0.9rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--neutral);
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.dex-image-link {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dex-image-link:hover {
    transform: scale(1.05);
}

.dex-image {
    width: 100%;
    max-width: 600px;
    border-radius: 0.6rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.connection-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 0.5rem;
    transition: background-color 0.3s ease;
}

.connection-status.connected {
    background-color: #34d399;
}

.connection-status.disconnected {
    background-color: #f87171;
}

#depositInput {
    pointer-events: auto;
    user-select: text;
    z-index: 10;
}

.cancel-btn {
    background: transparent;
    color: #f87171;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: color 0.3s ease;
    align-self: flex-end;
}

.cancel-btn:hover {
    color: #ef4444;
}
