/* ============================================================
   IOT Srl — style.css
   ============================================================ */

/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #03030a;
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

/* ── Keyframes ── */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%       { transform: translateY(-20px) rotate(1deg); }
    66%       { transform: translateY(10px) rotate(-1deg); }
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; filter: blur(40px); }
    50%       { opacity: 0.8; filter: blur(60px); }
}
@keyframes gridMove {
    0%   { transform: translateX(0) translateY(0); }
    100% { transform: translateX(50px) translateY(50px); }
}
@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position:  1000px 0; }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 0%; }
    50%       { background-position: 100% 100%; }
}
@keyframes letterGlitch {
    0%, 100% { transform: skew(0deg); }
    92%       { transform: skew(0deg); }
    93%       { transform: skew(2deg); }
    94%       { transform: skew(-2deg); }
    95%       { transform: skew(0deg); }
}

/* CSS counters statistiche */
@property --n-uptime   { syntax: '<integer>'; inherits: false; initial-value: 0; }
@property --n-soc      { syntax: '<integer>'; inherits: false; initial-value: 0; }
@property --n-response { syntax: '<integer>'; inherits: false; initial-value: 0; }
@property --n-hours    { syntax: '<integer>'; inherits: false; initial-value: 0; }

@keyframes count-uptime   { to { --n-uptime:   99; } }
@keyframes count-soc      { to { --n-soc:       3; } }
@keyframes count-response { to { --n-response: 60; } }
@keyframes count-hours    { to { --n-hours: 8766; } }

/* ── Utility ── */
.floating      { animation: float  8s ease-in-out infinite; }
.floating-slow { animation: float 12s ease-in-out infinite; }
.floating-fast { animation: float  4s ease-in-out infinite; }
.pulse-glow    { animation: pulseGlow 3s ease-in-out infinite; }

.gradient-text {
    background: linear-gradient(135deg, #4f8cff 0%, #9d7aff 50%, #ff7ab8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* ─────────────────────────────────────────────
   FALLBACK VISIBILITA' — CRITICO
   GSAP usa gsap.set(el, {opacity:0}) prima di
   animare. Questi stili garantiscono che tutti
   gli elementi siano visibili di default finche'
   GSAP non e' pronto a gestirli.
───────────────────────────────────────────── */
.hero-content > *,
.service-card,
.content-block,
.stat-card {
    opacity: 1;
    transform: translateY(0);
}

/* ── Glass card ── */
.glass-card {
    background: rgba(20, 25, 40, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    /* GPU layer separato — previene sfarfallio su hover */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}
.glass-card:hover {
    background: rgba(30, 35, 55, 0.7);
    border-color: rgba(79, 140, 255, 0.3);
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 20px 40px -15px rgba(79, 140, 255, 0.3);
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.7s ease;
    /* Stesso layer GPU della card — elimina il ricalcolo che causa flickering */
    transform: translateZ(0);
    will-change: left;
}
.glass-card:hover::before { left: 100%; }

/* ── Grid BG ── */
.grid-bg {
    background-image:
        linear-gradient(rgba(79, 140, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 140, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

/* ── Noise overlay ── */
.noise-bg { position: relative; }
.noise-bg::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc0IiBudW1PY3RhdmVzPSIzIiAvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNmKSIgb3BhY2l0eT0iMC4wMjUiIC8+PC9zdmc+');
    opacity: 0.1;
    pointer-events: none;
    z-index: 9990;
}

/* ── Glow ── */
.glow       { box-shadow: 0 0 30px rgba(79, 140, 255, 0.3); }
.glow:hover { box-shadow: 0 0 50px rgba(79, 140, 255, 0.5); }

/* ── Border gradient ── */
.border-gradient {
    border: double 1px transparent;
    background-image:
        linear-gradient(#0f121c, #0f121c),
        radial-gradient(circle at 30% 30%, #4f8cff, #9d7aff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
}
.border-gradient::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: radial-gradient(circle at 30% 30%, #4f8cff, #9d7aff);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}
.border-gradient:hover::after { opacity: 0.3; }

/* ── Scroll progress ── */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    width: 0%; height: 3px;
    background: linear-gradient(90deg, #4f8cff, #9d7aff, #ff7ab8);
    z-index: 9999;
    transition: width 0.1s;
}

/* ══════════════════════════════════════════════
   NAVBAR — fisso, opaco, testo scorre dietro
   ══════════════════════════════════════════════ */
#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(3, 3, 10, 0.97);
    border-bottom: 1px solid rgba(79, 140, 255, 0.08);
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(3, 3, 10, 0.99);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 140, 255, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #4f8cff, #9d7aff);
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* ── Statistiche ── */
.stat-box {
    position: relative;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s, transform 0.3s;
}
.stat-box:hover { border-color: rgba(79, 140, 255, 0.4); transform: translateY(-4px); }
.stat-box-wide {
    border-radius: 1rem; padding: 2rem; text-align: center;
    background: linear-gradient(135deg, rgba(79,140,255,0.12), rgba(157,122,255,0.12));
    border: 1px solid rgba(79,140,255,0.25);
}
@media (max-width: 480px) {
    .stat-box { padding: 1rem 0.5rem; }
    #stat-uptime::before, #stat-uptime::after,
    #stat-soc::before, #stat-soc::after,
    #stat-response::before { font-size: 1.4rem !important; }
    #stat-hours::before    { font-size: 2.2rem !important; }
    .stat-label            { font-size: 0.65rem !important; }
}
.stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 3rem; line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #b0b0ff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: block; margin-bottom: 0.5rem;
}
.stat-val-big {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 4.5rem; line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #b0b0ff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: block; margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.72rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; }

#stat-uptime { animation: count-uptime 2.5s cubic-bezier(0.22,1,0.36,1) 0.5s both; counter-reset: c var(--n-uptime); }
#stat-uptime::before { content: counter(c) '.98'; font-family: 'Space Grotesk',sans-serif; font-weight:700; font-size:2.2rem; line-height:1; background: linear-gradient(135deg,#fff 0%,#b0b0ff 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
#stat-uptime::after  { content: '%'; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:2.2rem; background:linear-gradient(135deg,#fff 0%,#b0b0ff 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

#stat-soc { animation: count-soc 2s cubic-bezier(0.22,1,0.36,1) 0.5s both; counter-reset: c var(--n-soc); }
#stat-soc::before { content: counter(c); font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:2.2rem; background:linear-gradient(135deg,#fff 0%,#b0b0ff 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
#stat-soc::after  { content: ' SOC'; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:2.2rem; background:linear-gradient(135deg,#fff 0%,#b0b0ff 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

#stat-response { animation: count-response 2.2s cubic-bezier(0.22,1,0.36,1) 0.5s both; counter-reset: c var(--n-response); }
#stat-response::before { content: '<' counter(c) 'min'; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:2.2rem; background:linear-gradient(135deg,#fff 0%,#b0b0ff 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
#stat-response::after  { content: ''; display: none; }

#stat-hours { animation: count-hours 3s cubic-bezier(0.22,1,0.36,1) 0.5s both; counter-reset: c var(--n-hours); }
#stat-hours::before { content: counter(c); font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:3.5rem; background:linear-gradient(135deg,#fff 0%,#b0b0ff 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

/* ── Stat card shimmer ── */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
    content: '';
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(90deg, transparent, rgba(79,140,255,0.1), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

/* ── Particles ── */
#particles { position:fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:0; }
.particle  { position:absolute; background:rgba(79,140,255,0.3); border-radius:50%; pointer-events:none; }

/* ── Hero title ── */
.hero-title { line-height:1.1; text-shadow:0 0 20px rgba(79,140,255,0.3); }
.hero-title span { display:inline-block; animation:letterGlitch 3s infinite; }

/* ── Footer grid 5 colonne ── */
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1.6fr 1.8fr 2fr; gap:40px; width:100%; align-items:flex-start; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; } }

/* ── Logo ── */
#site-logo { transform-origin:left center; transition:height 0.5s ease, opacity 0.5s ease; }

/* ── Reduced motion & mobile fallback ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
    .floating, .floating-slow, .floating-fast, .pulse-glow { animation:none !important; }
}
@media (max-width: 768px) {
    .content-block, .service-card, .hero-content > * { opacity:1 !important; transform:none !important; }
}

/* ══════════════════════════════════════════════
   COOKIE BANNER GDPR
   ══════════════════════════════════════════════ */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99999;
    background: rgba(6, 6, 18, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(79, 140, 255, 0.2);
    padding: 1.1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
#cookie-banner.cookie-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}
#cookie-banner .cookie-text {
    flex: 1; min-width: 240px;
    font-size: 0.82rem; color: #9ca3af; line-height: 1.55;
}
#cookie-banner .cookie-text a { color: #6b9fff; text-decoration: underline; text-underline-offset: 3px; }
#cookie-banner .cookie-text a:hover { color: #a78bfa; }
#cookie-banner .cookie-actions { display:flex; gap:0.75rem; flex-shrink:0; flex-wrap:wrap; }

#cookie-btn-accept {
    padding: 0.5rem 1.4rem;
    background: linear-gradient(135deg, #4f8cff, #9d7aff);
    color: #fff; font-size: 0.82rem; font-weight: 600;
    border: none; border-radius: 999px; cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
    white-space: nowrap; font-family: 'Inter', sans-serif;
}
#cookie-btn-accept:hover { opacity: 0.85; box-shadow: 0 0 18px rgba(79,140,255,0.5); }

#cookie-btn-reject {
    padding: 0.5rem 1.4rem;
    background: transparent; color: #6b7280;
    font-size: 0.82rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px; cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap; font-family: 'Inter', sans-serif;
}
#cookie-btn-reject:hover { border-color: rgba(255,255,255,0.3); color: #d1d5db; }

@media (max-width: 600px) {
    #cookie-banner { flex-direction:column; align-items:flex-start; gap:1rem; padding:1rem 1.25rem 1.25rem; }
    #cookie-banner .cookie-actions { width:100%; }
    #cookie-btn-accept, #cookie-btn-reject { flex:1; text-align:center; }
}

/* ══════════════════════════════════════════════
   PULSANTE SUPPORTO — navbar
   ══════════════════════════════════════════════ */
.btn-supporto {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border-radius: 999px;
    border: 1px solid #ef4444;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.35);
    letter-spacing: 0.01em;
}
.btn-supporto:hover {
    background: #ef4444;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.55);
    transform: translateY(-1px);
}
.btn-supporto:active { transform: translateY(0); }

/* Versione mobile — full width con icona */
.btn-supporto-mobile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: #dc2626;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border-radius: 0.75rem;
    border: 1px solid #ef4444;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.3);
}
.btn-supporto-mobile:hover {
    background: #ef4444;
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.5);
}

/* ══════════════════════════════════════════════
   FORM CONTATTI — stili base
   ══════════════════════════════════════════════ */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    outline: none;
}
.form-input:focus {
    border-color: rgba(79, 140, 255, 0.5);
    background: rgba(79, 140, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.1);
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
select.form-input option  { background: #0f121c; color: #fff; }

/* Opzione ticket nel select — sfondo rosso testo bianco grassetto */
select.form-input option[value="Ticket di supporto"] {
    background: #dc2626;
    color: #ffffff;
    font-weight: 700;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Alert */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; display: none; align-items: center; gap: 10px; }
.alert.success { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.3);  color: #86efac; }
.alert.error   { background: rgba(239,68,68,0.1);   border: 1px solid rgba(239,68,68,0.3);   color: #fca5a5; }
.alert.show    { display: flex; }

/* Checkbox custom */
.custom-checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.custom-checkbox input[type="checkbox"] { display: none; }
.checkbox-box {
    width: 20px; height: 20px; min-width: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; margin-top: 2px;
}
.custom-checkbox input:checked + .checkbox-box {
    background: linear-gradient(135deg, #4f8cff, #9d7aff);
    border-color: transparent;
}
.checkbox-check { display: none; }
.custom-checkbox input:checked + .checkbox-box .checkbox-check { display: block; }

/* ══════════════════════════════════════════════
   CAMPI TICKET — visibili solo quando attivi
   ══════════════════════════════════════════════ */
.ticket-fields-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity     0.35s ease,
                margin      0.35s ease;
    opacity: 0;
    margin-bottom: 0;
}

.ticket-fields-wrap.visible {
    max-height: 600px;
    opacity: 1;
    margin-bottom: 1.25rem;
}

.ticket-fields-inner {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 14px;
    padding: 1.25rem 1.5rem 0.5rem;
}

.ticket-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #f87171;
    margin-bottom: 1.1rem;
}

/* ══════════════════════════════════════════════
   BADGE "Architettura Multi-SOC"
   Shimmer on hover — identico ai service card
   ══════════════════════════════════════════════ */
.badge-multisoc {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    overflow: hidden;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(20, 25, 40, 0.5);
    border: 1px solid rgba(79, 140, 255, 0.2);
    cursor: default;
    transition: border-color 0.3s ease, background 0.3s ease;
    color: rgba(147, 197, 253, 0.85); /* blue-300 */
}

.badge-multisoc:hover {
    border-color: rgba(79, 140, 255, 0.45);
    background: rgba(30, 35, 55, 0.65);
}

/* Striscia shimmer identica a glass-card::before */
.badge-multisoc::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

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

.badge-multisoc__text {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #93c5fd, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════════════
   CAPTCHA LOGICO — verifica anti-spam
   ══════════════════════════════════════════════ */
.logic-captcha-wrap {
    background: rgba(10, 15, 28, 0.8);
    border: 1px solid rgba(79, 140, 255, 0.15);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    user-select: none;
}
.logic-question { font-size: 0.95rem; color: #e2e8f0; font-weight: 600; margin-bottom: 1rem; }
.logic-options  { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .75rem; }
.logic-option {
    display: flex; align-items: center; gap: .6rem;
    padding: .6rem 1rem;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: .6rem; cursor: pointer;
    font-size: .875rem; color: #94a3b8; transition: all .2s;
}
.logic-option input[type="radio"] { display: none; }
.logic-option:hover    { background: rgba(79,140,255,0.1);  border-color: rgba(79,140,255,0.3); color: #e2e8f0; }
.logic-option.selected { border-color: rgba(79,140,255,0.5); color: #e2e8f0; background: rgba(79,140,255,0.1); }
.logic-option.correct  { border-color: #22c55e; background: rgba(34,197,94,0.1); color: #22c55e; }
.logic-option.wrong    { border-color: #ef4444; background: rgba(239,68,68,0.1); color: #ef4444; }
.logic-status          { font-size: .8rem; min-height: 1.2rem; }
.logic-status.success  { color: #22c55e; }
.logic-status.error    { color: #ef4444; }
