:root { 
            --primary: #8dc0d0; 
            --primary-hover: #33ea95;
            --bg: #0f172a; 
            --card-bg: #1e293b; 
            --text: #f8fafc; 
            --text-dim: #94a3b8;
            --accent: #25ee22; 
            --error: #f43f5e;
            --logo-size-desktop: 90px;
            --logo-size-mobile: 44px;
        }

        * { box-sizing: border-box; }

        body { 
            font-family: 'Inter', sans-serif; 
            background: var(--bg); 
            background-image: radial-gradient(circle at 80% 10%, #11aa63 0%, transparent 40%);
            color: var(--text); 
            margin: 0;
            line-height: 1.6;
        }

        /* --- NAVIGATION --- */
        .navbar {
            display: flex;
            justify-content: space-between;          
            align-items: center;
            padding: 0 60px;
            height: 90px;
            background: rgba(11, 14, 20, 0.8);
            backdrop-filter: blur(15px);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid #30363d;
        }

              .central-title {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            font-size: 28px;
            font-weight: 800;
            letter-spacing: 2px;
            color: #fff;
        }

       
        /* Rendi il selettore più compatto per la Navbar */
    

        /* Colora le etichette quando attive */
        #modeLabel { color: #facc15; } /* Giallo se Sandbox */
        input:checked ~ #modeLabelLive { color: #75f755; } /* Viola se Live */

        .central-title span {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        #connectBtn { 
            background: #fff; color: #000; font-weight: 700; border: 1px solid transparent;
            padding: 10px 20px; border-radius: 12px; cursor: pointer; transition: 0.3s;
        }
        #connectBtn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(19, 179, 56, 0.4); }
        /* --- MODE LIVE or SANBOX */
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 20px;
            z-index: 1001;
        }

        .mode-selector {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(15, 23, 42, 0.6);
            padding: 8px 16px;
            border-radius: 12px;
            border: 1px solid #334155;
        }

        .mode-selector span {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.5px;
            transition: 0.3s;
        }

        /* Colori stati */
        #modeLabel { color: #facc15; } /* Sempre visibile o acceso di base */
        #modeLabelLive { color: var(--text-dim); }

        /* Switch Logic */
        .switch {
            position: relative;
            display: inline-block;
            width: 38px;
            height: 20px;
        }

        .switch input { opacity: 0; width: 0; height: 0; }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #475569;
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 14px;
            width: 14px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        /* Quando attivato (LIVE) */
        input:checked + .slider { background-color: var(--primary); }
        input:checked + .slider:before { transform: translateX(18px); }

        /* Cambio colore testi via JS (più affidabile) */
        .live-active #modeLabelLive { color: var(--primary) !important; }
        .live-active #modeLabel { color: var(--text-dim) !important; }
       

        /* --- HERO & GRID --- */
        .hero {
            text-align: center;
            padding: 120px 20px 60px;
            max-width: 1000px;
            margin: 0 auto;
        }
        .hero h1 { font-size: 3.5rem; margin: 0; font-weight: 800; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .hero-stats { display: flex; justify-content: center; gap: 30px; margin-top: 30px; color: var(--accent); font-weight: 600; font-size: 14px; }

        .grid-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px auto; max-width: 1100px; padding: 0 20px; }
        .guide-box { background: var(--card-bg); padding: 25px; border-radius: 20px; border: 1px solid #30363d; }
        .guide-box h4 { margin: 0 0 10px 0; color: var(--primary); }

        /* --- TOOLS --- */
        .tool-container { 
            max-width: 550px; margin: 0 auto 100px; background: var(--card-bg); 
            padding: 35px; border-radius: 28px; border: 1px solid #30363d;
            box-shadow: 0 40px 100px rgba(0,0,0,0.5);
        }

        .tabs { 
            display: flex; 
            gap: 8px; 
            background: #0b0e14; 
            padding: 6px; 
            border-radius: 16px; 
            margin-bottom: 30px;
            justify-content: center; /* Centra le tab orizzontalmente */
            width: fit-content;      /* Il contenitore si stringe attorno ai bottoni */
            margin-left: auto;       /* Insieme a margin-right: auto centra il blocco */
            margin-right: auto;
        }

        .tab-btn { 
            /* Rimosso flex: 1 */
            padding: 10px 20px;      /* Spazio interno fisso */
            border: none; 
            background: transparent; 
            color: var(--text-dim); 
            cursor: pointer; 
            font-weight: 600; 
            border-radius: 12px; 
            text-decoration: none; 
            display: inline-flex; 
            align-items: center; 
            justify-content: center;
            font-size: 13px;
            transition: 0.2s;
        }

        .tab-btn:hover {
            color: var(--text);
        }

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

        .tab-content { display: none; animation: fadeIn 0.4s ease; }
        .tab-content.active { display: block; }

        .input-group { margin-bottom: 18px; }
        .input-group label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; }
        input, select { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid #30363d; background: #0b0e14; color: white; outline: none; }
        input:focus { border-color: var(--primary); }

        .btn-main { width: 100%; padding: 16px; border-radius: 14px; border: none; background: linear-gradient(135deg, var(--primary), #7c3aed); color: white; font-weight: 700; cursor: pointer; transition: 0.2s; margin-top: 10px; }
        .btn-main:hover { filter: brightness(1.1); transform: translateY(-1px); }

        .authority-box { background: #0b0e14; padding: 15px; border-radius: 12px; margin-top: 15px; border: 1px solid #30363d; }
        .check-item { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; color: var(--text-dim); }
        .check-item input { width: auto; }

        /* --- PROGRESS BAR --- */
        .prog-container { display: none; margin-top: 20px; }
        .prog-bg { width: 100%; background: #0b0e14; height: 8px; border-radius: 10px; overflow: hidden; }
        .prog-bar { width: 0%; height: 100%; background: var(--accent); transition: 0.4s; }
        .prog-text { font-size: 12px; text-align: center; margin-top: 8px; color: var(--accent); font-weight: 600; }

        @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* MODAL */
        #successModal {
            display:none; position:fixed; top:0; left:0; width:100%; height:100%; 
            background:rgba(0,0,0,0.9); z-index:3000; justify-content:center; align-items:center; backdrop-filter:blur(10px);
        }
        .modal-content {
            background:var(--card-bg); padding:40px; border-radius:28px; border:2px solid var(--primary); 
            text-align:center; max-width:500px; width:90%; box-shadow: 0 0 60px rgba(115, 247, 85, 0.4);
        }

        #launch-btn {
            display: block;
            width: 100%;
            max-width: 400px; /* Non troppo largo per mantenerlo elegante */
            margin: 25px auto; /* Centra orizzontalmente e dà respiro sopra/sotto */
            padding: 16px 32px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            font-weight: 800;
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 1px;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(10, 184, 42, 0.4); /* Effetto neon */
        }

        #launch-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(34, 211, 238, 0.6);
            filter: brightness(1.1);
        }

        #launch-btn:active {
            transform: translateY(1px);
        }
        /* Container per i messaggi Toast */
        #toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 9999;
        }

        .toast {
            background: var(--card-bg);
            color: white;
            padding: 16px 24px;
            border-radius: 12px;
            border-left: 4px solid var(--primary);
            box-shadow: 0 10px 25px rgba(0,0,0,0.5);
            margin-top: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideIn 0.3s ease-out forwards;
            min-width: 300px;
        }

        .toast.error { border-left-color: var(--error); }
        .toast.success { border-left-color: #39d353; }
        .toast.warning { border-left-color: #fbbf24; }

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

        @keyframes fadeOut {
            to { opacity: 0; transform: translateY(10px); }
        }

        /* Stile Trust & Counter */
    .trust-container {
        max-width: 1000px;
        margin: -30px auto 40px;
        text-align: center;
    }

    .live-counter {
        background: rgba(168, 85, 247, 0.1);
        border: 1px solid rgba(168, 85, 247, 0.3);
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 10px 25px;
        border-radius: 50px;
        margin-bottom: 30px;
    }

    .live-counter #token-counter {
        font-size: 24px;
        font-weight: 800;
        color: var(--primary);
    }

    .live-counter p {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-dim);
    }

    .pulse-dot {
        width: 10px;
        height: 10px;
        background: #39d353;
        border-radius: 50%;
        box-shadow: 0 0 0 0 rgba(57, 211, 83, 0.7);
        animation: pulse-green 2s infinite;
    }

    @keyframes pulse-green {
        0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 211, 83, 0.7); }
        70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(57, 211, 83, 0); }
        100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 211, 83, 0); }
    }

    .trust-badges {
        display: flex;
        justify-content: center;
        gap: 40px;
        flex-wrap: wrap;
    }

    .badge {
        display: flex;
        align-items: center;
        gap: 15px;
    }

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

    .badge-text {
        text-align: left;
    }

    .badge-text strong {
        display: block;
        font-size: 14px;
        color: var(--text);
    }

    .badge-text p {
        margin: 0;
        font-size: 12px;
        color: var(--text-dim);
    }

    /* style.css - Aggiunte universali */

/* Griglia flessibile per Tools e Blog */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Card generica (usata sia per Tools che per Blog) */
.card-ui {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 24px;
    border: 1px solid #30363d;
    transition: 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.card-ui:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- ALLINEAMENTO REVOKE OPTIONS --- */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.opt-card {
    background: #161b22;
    border: 1px solid #30363d;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;       /* Attiva il flexbox */
    align-items: center; /* Allinea verticalmente checkbox e testo */
    gap: 10px;           /* Spazio tra box e scritta */
    font-size: 13px;
    color: var(--text-dim);
    transition: 0.2s;
}

.opt-card:hover {
    border-color: var(--primary);
    background: #1c2128;
}

/* Rendi la checkbox un po' più grande e visibile */
.opt-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary); /* Cambia il colore della spunta in viola/blu */
    margin: 0; /* Rimuove margini strani del browser */
}

.opt-card input:checked + span {
    color: #fff;
}

/* Hero section universale */
.hero-section {
    text-align: center;
    padding: 80px 20px;
}

/* --- FOOTER COMPATTO --- */
/* --- FOOTER ULTRA-COMPATTO --- */
.site-footer {
    background: #0b0e14;
    padding: 30px 0 15px 0; /* Padding ridottissimo */
    border-top: 1px solid #1e293b;
    margin-top: 50px;
    width: 100%;
}

.footer-grid {
    max-width: 900px; /* Ridotto da 1100px per stringere il contenuto */
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* Colonna brand meno larga */
    gap: 20px; /* Spazio tra colonne ridotto al minimo */
}

.footer-column h4 {
    color: #fff;
    font-size: 11px; /* Font molto piccolo per i titoli */
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.footer-brand p {
    font-size: 12px; /* Testo descrizione piccolo */
    line-height: 1.3;
    color: var(--text-dim);
    margin-top: 5px;
    max-width: 200px;
}

.footer-links li { 
    margin-bottom: 4px; /* Link quasi attaccati */
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    transition: 0.2s;
}

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

.footer-copy {
    max-width: 900px;
    margin: 20px auto 0;
    padding-top: 15px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 10px; /* Copyright minuscolo */
    color: #475569;
}

/* Responsive */
@media (max-width: 600px) {
    .footer-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 15px;
    }
    .footer-brand { grid-column: span 2; text-align: center; }
    .footer-brand p { margin: 5px auto; }
}

/* --- Solana Wizard shared header/footer (generated) --- */
.sw-topbar{position:sticky;top:0;z-index:60;background:linear-gradient(90deg,var(--primary),var(--accent));border-bottom:1px solid rgba(255,255,255,0.10);}
.sw-topbar__inner{max-width:1200px;margin:0 auto;padding:10px 20px;display:flex;gap:12px;align-items:center;justify-content:center;font-weight:700;font-size:12px;color:#fff}
.sw-pill{display:inline-flex;align-items:center;justify-content:center;padding:2px 8px;border-radius:999px;background:rgba(0,0,0,0.25);border:1px solid rgba(255,255,255,0.25);letter-spacing:0.6px}
.sw-topbar__link{color:#fff;text-decoration:none;opacity:0.95;border-bottom:1px solid rgba(255,255,255,0.35)}
.sw-topbar__link:hover{opacity:1}

.sw-header{
  position:sticky;
  top:44px;
  z-index:50;
  background:rgba(11,14,20,0.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid #1e293b;
}

/* Professional 3-zone header (Logo | Center Nav | Right Slot) */
.sw-header__inner{
  max-width:1300px;
  margin:0 auto;
  padding: 22px 60px;
  display:grid;
  grid-template-columns: min-content 1fr min-content;
  align-items:center;
  column-gap: 80px;
}

/* Brand */
.sw-brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:#fff;
  padding-right: 10px;
}

.sw-brand img{
  height: clamp(var(--logo-size-mobile), 5vw, var(--logo-size-desktop));
  width: auto;
  border-radius: 16px;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.6));
}

.sw-brand__text{
  font-weight:900;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing:1px;
}

.sw-brand__text strong{color:var(--primary)}

/* Center nav */
.sw-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 36px;
}

.sw-nav a{
  color:rgba(255,255,255,0.88);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  transition:0.2s;
}

.sw-nav a:hover{
  color:#fff;
  transform:translateY(-1px);
}

/* Active/current page link */
.sw-nav a.is-active,
.sw-nav a[aria-current="page"]{
  color:#fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* Keep hover subtle when active */
.sw-nav a.is-active:hover,
.sw-nav a[aria-current="page"]:hover{
  transform:none;
}

/* Right slot (optional CTA) */
.sw-cta{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
}
.sw-cta__btn{width:auto;padding:10px 16px;font-size:12px}

/* Burger button (hidden on desktop) */
.sw-burger{
  display:none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.sw-burger span{
  display:block;
  width:22px;
  height:2px;
  background: rgba(255,255,255,0.9);
  margin:5px 0;
  border-radius:2px;
}

/* Mobile: collapse into burger + dropdown nav (no disappearing header) */
@media (max-width: 900px){
  .sw-header__inner{
    grid-template-columns: 1fr auto;
    column-gap: 16px;
    padding: 16px 18px;
  }

  .sw-brand img{
    height: 52px;
  }

  .sw-burger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  /* Nav becomes dropdown row under header */
  .sw-nav{
    display:none;
    grid-column: 1 / -1;
    justify-content:flex-start;
    gap: 14px;
    padding: 12px 10px 6px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
  }

  .sw-nav.is-open{
    display:flex;
  }

  .sw-nav a{
    font-size:14px;
    padding:10px 12px;
    border-radius:12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
  }
}

.footer-brand{color:#fff;text-decoration:none;font-weight:800;font-size:18px}
.footer-brand__accent{color:var(--primary)}
.footer-desc{font-size:13px;color:var(--text-dim);margin-top:10px;line-height:1.6}

/* Workshop app bar */
.sw-appbar{border-bottom:1px solid #1e293b;background:rgba(255,255,255,0.02)}
.sw-appbar__inner{max-width:1200px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;justify-content:flex-end;gap:14px}
.sw-appbar .mode-selector{display:flex;align-items:center;gap:10px}
.sw-appbar #connectBtn{background:linear-gradient(135deg,var(--primary),var(--accent));border:none;color:#fff;padding:10px 14px;border-radius:12px;font-weight:700;cursor:pointer}
.sw-appbar #connectBtn:hover{opacity:0.95}



/* =========================
   WIZARD FLOATING LOGO (MASTER)
========================= */

.logo-container {
  position: relative;
  width: 220px;
  height: 90px;
  display: flex;
  align-items: center;
}

.floating-logo {
  position: absolute;
  top: -25px;
  left: 0;
  height: 130px;
  width: auto;
  z-index: 2;
  pointer-events: none;

  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.6));
  animation: wizardFloat 4.5s ease-in-out infinite;
}

/* Floating movement */
@keyframes wizardFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}

/* Navbar compensation (disabled — caused layout issues on responsive header) */
.navbar {
  height: auto;
  padding-left: 0;
}

/* Mobile */
@media (max-width: 820px) {
  .logo-img,
  .floating-logo {
    height: var(--logo-size-mobile);
  }
  /* Keep header brand logo controlled by the shared header media rules above */
}

.env-badge {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.env-badge.sandbox {
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid #facc15;
  color: #facc15;
}

.env-badge.live {
  background: rgba(57, 211, 83, 0.15);
  border: 1px solid #39d353;
  color: #39d353;
}

.live-warning {
  background: rgba(244,63,94,0.1);
  border: 1px solid #f43f5e;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #f43f5e;
}

#access-gate-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 14, 20, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.gate-card {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    padding: 40px;
    border-radius: 24px;
    max-width: 500px;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.2);
}

/* DONATION CARD WIZARD STYLE */
.wizard-donation-container {
    background: rgba(168, 85, 247, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin: 40px auto;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.wizard-donation-container:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
    background: rgba(168, 85, 247, 0.06);
}

.don-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.don-icon-circle {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.don-text h4 {
    margin: 0;
    color: white;
    font-size: 15px;
}

.don-text p {
    margin: 4px 0 0 0;
    color: var(--text-dim);
    font-size: 13px;
}

.don-wallet-box {
    display: flex;
    align-items: center;
    background: #0b0e14;
    border: 1px solid #30363d;
    padding: 5px 5px 5px 15px;
    border-radius: 12px;
}

.don-wallet-box code {
    color: var(--accent);
    font-size: 12px;
    font-family: 'Space Mono', monospace;
    margin-right: 15px;
}

.copy-btn-new {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: 0.2s;
}

.copy-btn-new:hover {
    background: var(--primary);
    color: black;
}