/* ==========================================================================
   RESET & VARIABILI CYBER (Palette Assembler)
   ========================================================================== */
:root {
    --bg-main: #12141c;       /* Antracite scuro profondo */
    --bg-card: #1a1d29;       /* Grigio carta da gioco cyber */
    --text-main: #f1f3f9;     /* Bianco sporco ad alta leggibilità */
    --text-muted: #8b949e;    /* Grigio per i testi secondari */
    --accent-cyan: #00f0ff;   /* Ciano neon */
    --accent-magenta: #ff007f;/* Magenta spinto */
    --accent-yellow: #ffea00; /* Giallo neon Assembler */
    --status-success: #00ff66;/* Verde fluoro per i successi */
    --status-error: #ff3333;  /* Rosso fuoco per gli errori */
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 15px;
}

/* ==========================================================================
   CONTAINER E LAYOUT
   ========================================================================== */
.app-container {
    width: 100%;
    max-width: 480px; /* Perfetto per simulare lo smartphone anche sul Mac */
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-top: 20px;
}

/* Header con tocco di stile Assembler */
.app-header {
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

/* Il richiamo al logo geometrico */
.logo-rombo {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    margin: 0 auto 15px auto;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.app-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--text-main), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.app-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   FORM ED ELEMENTI DI INPUT
   ========================================================================== */
.form-section {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-cyan);
}

/* Input di testo e Textarea */
input[type="text"], textarea {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   ZONA CARICAMENTO FOTO (Stile Mobile Nativo)
   ========================================================================== */
.file-dropzone {
    position: relative;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(0, 240, 255, 0.03);
    border: 2px dashed rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.file-label:hover {
    background-color: rgba(0, 240, 255, 0.07);
    border-color: var(--accent-cyan);
}

.file-label .icon {
    font-size: 2rem;
}

.file-label span:not(.icon) {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Nascondiamo l'input file brutto di default */
input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Anteprima dell'immagine caricata */
.preview-container {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 200px;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   FEEDBACK DI STATO & BOTTONE CYBER
   ========================================================================== */
.status-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.status-info { background-color: rgba(0, 240, 255, 0.1); color: var(--accent-cyan); border: 1px solid rgba(0, 240, 255, 0.2); }
.status-success { background-color: rgba(0, 255, 102, 0.1); color: var(--status-success); border: 1px solid rgba(0, 255, 102, 0.2); }
.status-errore { background-color: rgba(255, 51, 51, 0.1); color: var(--status-error); border: 1px solid rgba(255, 51, 51, 0.2); }

.btn-submit {
    background: linear-gradient(135deg, var(--accent-magenta), #b30059);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
    margin-top: 10px;
}

.btn-submit:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.5);
    transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-submit:disabled {
    background: #2e3244;
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

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

/* ==========================================================================
   RESET & VARIABILI CYBER (Palette Assembler Studio)
   ========================================================================== */
:root {
    --bg-main: #0c0e14;       /* Sfondo scuro ancora più profondo */
    --bg-card: rgba(26, 29, 41, 0.6); /* Trasparenza fumè */
    --text-main: #f1f3f9;     
    --text-muted: #798394;    
    --accent-cyan: #00f0ff;   /* Neon Ciano */
    --accent-magenta: #ff007f;/* Neon Magenta */
    --accent-yellow: #ffea00; 
    --status-success: #00ff66;
    --status-error: #ff3333;  
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Wrapper della Griglia per gestire i lati */
.grid-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Default su mobile: una colonna */
    width: 100%;
    max-width: 1200px;
    gap: 30px;
    align-items: start;
}

/* ==========================================================================
   CONTAINER CENTRALE (Mobile App Shape)
   ========================================================================== */
.app-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-header {
    text-align: center;
}

.logo-rombo {
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    margin: 0 auto 15px auto;
    transform: rotate(45deg);
    box-shadow: 0 0 15px var(--accent-cyan);
}

.app-header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--text-main), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.form-section {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px); /* Effetto vetro sfocato posteriore */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0px; /* Angoli netti Assembler */
    padding: 25px;
    border: 1px solid rgba(0, 240, 255, 0.15); /* Bordo finissimo ciano */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.05);
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
}

input[type="text"], textarea {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0px; /* Angoli netti */
    padding: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

/* Zona di drop file */
.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(0, 240, 255, 0.02);
    border: 1px dashed rgba(0, 240, 255, 0.3);
    padding: 25px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-label:hover {
    border-color: var(--accent-cyan);
    background-color: rgba(0, 240, 255, 0.05);
}

input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.preview-container {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 180px;
    overflow: hidden;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   WIDGET LATERALI (Solo per schermi grandi)
   ========================================================================== */
.sidebar {
    display: none; /* Nascondi di base su mobile */
}

.cyber-widget {
    background-color: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.cyber-widget h3 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-yellow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

/* Indicatori di stato a sinistra */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--status-success);
    border-radius: 50%;
}

.pulse-green {
    box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

.widget-footer {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 5px;
}

/* Box statistiche a destra */
.stat-box {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--accent-cyan);
    padding-left: 10px;
}

.stat-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-main);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ACCORDION LEGALE (Alpine.js)
   ========================================================================== */
.legal-accordion {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
}

.accordion-trigger:hover {
    color: var(--text-main);
}

.accordion-trigger .arrow {
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.accordion-trigger .arrow.rotate {
    transform: rotate(180deg);
}

.accordion-content {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Bottoni e Feedback */
.btn-submit {
    background: linear-gradient(135deg, var(--accent-magenta), #b30059);
    color: white;
    border: none;
    padding: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
}

.btn-submit:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.6);
}

.btn-submit:disabled { background: #222533; color: var(--text-muted); cursor: not-allowed; box-shadow: none;}

.status-message { padding: 10px; font-size: 0.85rem; text-align: center; font-weight: 600; margin-top: 5px; }
.status-info { background: rgba(0, 240, 255, 0.1); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.status-success { background: rgba(0, 255, 102, 0.1); color: var(--status-success); border: 1px solid var(--status-success); }
.status-errore { background: rgba(255, 51, 51, 0.1); color: var(--status-error); border: 1px solid var(--status-error); }

/* ==========================================================================
   MEDIA QUERIES - IL RESPONSIVE INTELLIGENTE
   ========================================================================== */
@media (min-width: 900px) {
    .grid-wrapper {
        grid-template-columns: 260px 1fr 260px; /* 3 colonne perfette */
    }
    .sidebar {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 40px;
    }
}

/* ==========================================================================
   VARIABILI & RESET CYBER
   ========================================================================== */
:root {
    --bg-main: #0a0c10;       
    --bg-card: rgba(22, 26, 38, 0.65); 
    --text-main: #f1f3f9;     
    --text-muted: #737f94;    
    --accent-cyan: #00f0ff;   
    --accent-magenta: #ff007f;
    --accent-yellow: #ffea00; 
    --status-success: #00ff66;
    --status-error: #ff3333;  
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; overflow-x: hidden; }

/* Griglia fissa a 3 colonne bilanciate */
.grid-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1280px; /* Allargato un pelo per far stare tutto da dio */
    gap: 25px;
    align-items: stretch; /* Forza i lati ad allinearsi in altezza */
}

.app-container { width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.app-header { text-align: center; }
.logo-rombo { width: 25px; height: 25px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta)); margin: 0 auto 10px auto; transform: rotate(45deg); box-shadow: 0 0 15px var(--accent-cyan); }
.app-header h1 { font-size: 2.2rem; font-weight: 900; background: linear-gradient(to right, var(--text-main), var(--accent-yellow)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.app-header p { color: var(--text-muted); font-size: 0.85rem; }

.form-section {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 22px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

form { display: flex; flex-direction: column; gap: 14px; }
.input-group { display: flex; flex-direction: column; gap: 5px; }
.input-group label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--accent-cyan); letter-spacing: 0.5px; }
input[type="text"], textarea { background-color: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); padding: 10px; color: var(--text-main); font-size: 0.9rem; }
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--accent-magenta); box-shadow: 0 0 8px rgba(255, 0, 127, 0.2); }

.file-label { display: flex; flex-direction: column; align-items: center; padding: 18px; background: rgba(0, 240, 255, 0.01); border: 1px dashed rgba(0, 240, 255, 0.25); cursor: pointer; }
.preview-container { margin-top: 8px; max-height: 140px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
.preview-container img { width: 100%; object-fit: cover; }

/* ==========================================================================
   SIDEBARS E STRUTTURA WIDGET
   ========================================================================== */
.sidebar { display: none; flex-direction: column; gap: 20px; }
.sidebar-left { justify-content: space-between; } /* Spazia i due widget in altezza */

.cyber-widget {
    background-color: var(--bg-card);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cyber-widget h3 { font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; color: var(--accent-yellow); border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding-bottom: 6px; }

/* Controlli di stato a sinistra */
.status-indicator { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; }
.dot { width: 7px; height: 7px; background-color: var(--status-success); border-radius: 50%; }
.pulse-green { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.5); } 70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(0, 255, 102, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); } }
.widget-footer { font-size: 0.65rem; color: var(--text-muted); text-align: right; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-box { display: flex; flex-direction: column; border-left: 2px solid var(--accent-cyan); padding-left: 8px; }
.stat-val { font-size: 1.2rem; font-weight: 900; }
.stat-lbl { font-size: 0.7rem; color: var(--text-muted); }

/* WIDGET DESTRA (Mappa + Feed) */
.map-widget { flex-grow: 1; min-height: 220px; }
#cyber-map { width: 100%; height: 100%; min-height: 180px; background: #07090d; border: 1px solid rgba(0, 240, 255, 0.1); position: relative; }
.map-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 10px; color: var(--text-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; }

.radar-ping { width: 10px; height: 10px; background-color: var(--accent-cyan); border-radius: 50%; position: relative; }
.radar-ping::after { content: ''; position: absolute; width: 100%; height: 100%; background: inherit; border-radius: inherit; animation: radar 2s infinite ease-out; top: 0; left: 0; }
@keyframes radar { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(4); opacity: 0; } }

/* Feed delle anteprime */
.feed-widget { max-height: 240px; }
.feed-container { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding-right: 4px; }
.feed-item { background: rgba(0,0,0,0.2); padding: 8px; border-left: 3px solid transparent; }
.border-magenta { border-left-color: var(--accent-magenta); }
.border-cyan { border-left-color: var(--accent-cyan); }
.border-yellow { border-left-color: var(--accent-yellow); }
.feed-meta { font-size: 0.65rem; color: var(--text-muted); display: flex; justify-content: space-between; margin-bottom: 3px; }
.badge { font-weight: 700; text-transform: uppercase; font-size: 0.6rem; }
.badge-magenta { color: var(--accent-magenta); }
.badge-cyan { color: var(--accent-cyan); }
.badge-yellow { color: var(--accent-yellow); }
.feed-title { font-size: 0.8rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Scrollbar stile terminale */
.feed-container::-webkit-scrollbar { width: 3px; }
.feed-container::-webkit-scrollbar-track { background: transparent; }
.feed-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

/* Accordion Legale */
.legal-accordion { margin-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 10px; }
.accordion-trigger { width: 100%; background: none; border: none; color: var(--text-muted); font-size: 0.75rem; display: flex; justify-content: space-between; cursor: pointer; }
.accordion-trigger .arrow { font-size: 0.5rem; transition: transform 0.2s; }
.accordion-trigger .arrow.rotate { transform: rotate(180deg); }
.accordion-content { font-size: 0.7rem; color: var(--text-muted); padding-top: 8px; display: flex; flex-direction: column; gap: 5px; }

.btn-submit { background: linear-gradient(135deg, var(--accent-magenta), #b30059); color: white; border: none; padding: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.btn-submit:disabled { background: #1e212d; color: var(--text-muted); cursor: not-allowed; }
.status-message { padding: 8px; font-size: 0.8rem; text-align: center; margin-top: 5px; }
.status-success { background: rgba(0, 255, 102, 0.08); color: var(--status-success); border: 1px solid var(--status-success); }

/* Responsive a 3 colonne bilanciate */
@media (min-width: 960px) {
    .grid-wrapper { grid-template-columns: 250px 1fr 290px; }
    .sidebar { display: flex; }
}

/* ==========================================================================
   WIDGET CRONOTACHIGRAFO DEL CAOS (Opzione 5)
   ========================================================================== */
.chaos-tachometer {
    align-items: center;
    text-align: center;
}

.gauge-wrapper {
    width: 100%;
    max-width: 180px;
    margin: 10px auto 0 auto;
    position: relative;
}

.gauge-body {
    width: 100%;
    height: 0;
    padding-bottom: 50%; /* Crea il semicerchio perfetto */
    position: relative;
    overflow: hidden;
}

/* L'arco colorato sfumato cyber */
.gauge-arc {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 200%;
    border-radius: 50%;
    border: 6px solid transparent;
    border-top-color: var(--accent-cyan);
    border-right-color: var(--accent-yellow);
    border-left-color: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

/* La lancetta del tachimetro */
.gauge-needle {
    position: absolute;
    bottom: 0; left: 50%;
    width: 3px; height: 85%;
    background: linear-gradient(to top, var(--accent-magenta), #ff0000);
    background-color: var(--accent-magenta);
    transform-origin: bottom center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effetto rimbalzo della lancetta! */
    box-shadow: 0 0 8px var(--accent-magenta);
}

/* Il perno centrale */
.gauge-center {
    position: absolute;
    bottom: -6px; left: calc(50% - 6px);
    width: 12px; height: 12px;
    background-color: var(--text-main);
    border: 2px solid var(--bg-main);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Dati sotto il tachimetro */
.gauge-data {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 5px;
}

.gauge-value {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--accent-magenta);
}

.gauge-status {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 1px;
    background: rgba(255, 0, 127, 0.1);
    padding: 3px 8px;
    border: 1px solid rgba(255, 0, 127, 0.2);
}