:root {
    --bubbleTiming: cubic-bezier(0.4, 0, 0.2, 1);
    --bg-base: #f4f6f9;
    --stripe-1: #00000008;
    --stripe-2: #6b6b6b31;
    --stripe-3: #00000003;
    --stripe-4: #aaaaaa03;
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-accent: #007bff;
    --glass-border: rgba(255, 255, 255, 0.45);
    --input-bg: rgba(255, 255, 255, 0.6);
    --btn-glass-bg: rgba(255, 255, 255, 0.4);
    --btn-glass-border: rgba(255, 255, 255, 0.6);
    --overlay-bg: rgba(255, 255, 255, 0.3);
}

body.dark-theme {
    --bg-base: #1a1c23;
    --stripe-1: rgba(255, 255, 255, 0.02);
    --stripe-2: rgba(255, 255, 255, 0.08);
    --stripe-3: rgba(255, 255, 255, 0.01);
    --stripe-4: rgba(255, 255, 255, 0.01);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-accent: #60a5fa;
    --glass-border: rgba(255, 255, 255, 0.15);
    --input-bg: rgba(0, 0, 0, 0.3);
    --btn-glass-bg: rgba(255, 255, 255, 0.05);
    --btn-glass-border: rgba(255, 255, 255, 0.2);
    --overlay-bg: rgba(0, 0, 0, 0.6);
}
* {
    -webkit-tap-highlight-color: transparent;
     -ms-overflow-style: none;
    scrollbar-width: none;
}

*,
::before,
::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    font-size: 13px;
    background: repeating-linear-gradient(145deg, var(--stripe-1), var(--stripe-2) 1px, var(--stripe-3) 2px, var(--stripe-4) 4px), var(--bg-base);
    background-attachment: fixed;
    transition: background 0.4s ease, color 0.4s ease;
    min-height: 100vh;
    padding-top: 85px;
    padding-bottom: 150px;
}

h1,
h2,
h3,
p {
    margin: 0;
    font-weight: normal;
}

button,
input,
select {
    font-family: inherit;
    font-size: inherit;
    margin: 0;
    outline: none;
    border: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* EFFETTO VETRO */
.glass-fx {
    background: linear-gradient(145deg, #00000005, #d8dfe600) !important;
    backdrop-filter: blur(100px) !important;
    -webkit-backdrop-filter: blur(100px) !important;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    transition: border 0.3s;
}

.glass-input {
    background: var(--input-bg);
    border: 1px solid rgba(0, 123, 255, 0.15);
    border-radius: 8px;
    padding: 4px 8px;
    color: var(--text-main);
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.glass-input:focus {
    background: var(--bg-base);
    border-color: var(--text-accent);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.btn-glass {
    background: var(--btn-glass-bg);
    border: 1px solid var(--btn-glass-border);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-glass:active {
    transform: translateY(1px);
}

.btn-primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* HEADER STEPPER */
.custom-header-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 6px;
    margin: 25px auto 15px auto;
    max-width: 320px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02), 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

body.dark-theme .custom-header-stepper {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.02), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.custom-header-stepper .stepper-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

.custom-header-stepper .stepper-btn:hover {
    background: var(--text-accent);
    color: #fff;
    border-color: var(--text-accent);
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.4);
}

.custom-header-stepper .stepper-btn:active {
    transform: scale(0.9);
}

.custom-header-stepper .stepper-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    user-select: none;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 15px;
}

/* NAV E DOCK */
.top-nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: calc(100% - 30px);
    max-width: 650px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 24px;
}

/* LOGO NAVBAR */
.nav-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

#rtc-display {
    font-size: 15px;
    font-weight: 600;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    padding: 2px 12px;
    border-radius: 12px;
    justify-self: center;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
    color: var(--text-main);
}
.nav-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-accent);
    display: flex;
    align-items: center;
}
.rssi-badge {
    font-size: 10px;
    font-weight: 700;
    color: #28a745;
    margin-left: 0px;
    align-items: center;
    padding: 2px 6px;
    text-align: center;
}

#rtc-display:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bottom-dock-wrapper {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 90%;
    max-width: 450px;
}

.dock-pills-row {
    display: grid;
    width: 100%;
    gap: 8px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: center;
}

.dock-status-pill {
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex: 1;
    color: var(--text-main);
}

#generalStatusDot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 6px currentColor;
    transition: background 0.3s;
}

.dock-valves-pill {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    border-radius: 20px;
    flex: 1.2;
}

#dock-valves-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.v-indicator {
    font-size: 9px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
}

.v-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: background 0.2s;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-self: center;
    outline: none;
    box-shadow: none;
}

.switch-container {
    position: relative;
    width: 55px;
    height: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.toggle-checkbox {
    display: none;
}

.switch-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    cursor: pointer;
}

.switch-toggle {
    position: absolute;
    width: 28px;
    height: 19px;
    top: 2px;
    left: 2px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5px;
    box-sizing: border-box;
}

.switch-led {
    width: 5px;
    height: 5px;
    background: #555;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease-in-out;
}

.toggle-checkbox:checked+.switch-label .switch-toggle {
    left: 23px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.09), inset 0 1px 2px rgba(255, 255, 255, 0.006);
}

.toggle-checkbox:checked+.switch-label .switch-led {
    background: greenyellow;
    box-shadow: 0 0 8px 2px greenyellow, inset 0 1px 2px greenyellow;
}

.dock-main {
    width: 100%;
    padding: 10px;
    border-radius: 16px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dock-main .btn-dock {
    flex: 1;
    font-size: 10px;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: var(--btn-glass-bg);
    border: 1px solid var(--btn-glass-border);
    color: var(--text-main);
    transition: all 0.2s;
}

.dock-main .btn-dock:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}

/* GRIGLIE E BUBBLES */
.manual-grid {
    display: grid;
    width: 100%;
    gap: 8px;
}

.manual-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    min-width: 0;
}

.bubble-label {
    display: inline-block;
    -webkit-tap-highlight-color: transparent;
    animation: float74 4s ease-in-out infinite;
    margin-top: 4px;
}

.bubble,
.bubble:before,
.bubble:after {
    transition-duration: 0.2s;
}

.bubble,
.bubble:after {
    border-radius: 50%;
}

.bubble {
    background-image: radial-gradient(8% 8% at 22% 28%, hsl(0, 0%, 100%) 45%, hsla(0, 0%, 100%, 0) 50%), radial-gradient(8% 8% at 23% 27%, hsl(0, 0%, 100%) 45%, hsla(0, 0%, 100%, 0) 50%), radial-gradient(8% 8% at 24% 26%, hsl(0, 0%, 100%) 45%, hsla(0, 0%, 100%, 0) 50%), radial-gradient(8% 8% at 25% 25%, hsl(0, 0%, 100%) 45%, hsla(0, 0%, 100%, 0) 50%), radial-gradient(8% 8% at 26% 24%, hsl(0, 0%, 100%) 45%, hsla(0, 0%, 100%, 0) 50%), radial-gradient(8% 8% at 27% 23%, hsl(0, 0%, 100%) 45%, hsla(0, 0%, 100%, 0) 50%), radial-gradient(8% 8% at 28% 22%, hsl(0, 0%, 100%) 45%, hsla(0, 0%, 100%, 0) 50%);
    box-shadow: 0 -0.06em 0.1em hsl(0, 90%, 100%) inset, 0 -0.15em 0.4em hsl(0, 90%, 45%) inset, 0 0.05em 0.05em hsl(0, 90%, 45%) inset, 0.05em 0 0.1em hsl(0, 90%, 100%) inset, -0.05em 0 0.1em hsl(0, 90%, 100%) inset, 0 0.1em 0.4em hsl(0, 90%, 60%) inset;
    cursor: pointer;
    position: relative;
    width: 3em;
    height: 3em;
    transform-style: preserve-3d;
    transition-property: box-shadow, transform, width, height;
    transition-timing-function: ease-in-out, ease-in-out, var(--bubbleTiming), var(--bubbleTiming);
    will-change: transform;
    -webkit-appearance: none;
    appearance: none;
    z-index: 0;
}

.bubble:before,
.bubble:after {
    content: "";
    display: block;
    position: absolute;
    transition-timing-function: var(--bubbleTiming);
}

.bubble:before {
    border-radius: 0.75em;
    box-shadow: 0 0 0 0.5em hsl(0, 0%, 100%) inset;
    filter: drop-shadow(0.6em 0.6em 2.5px hsla(0, 0%, 0%, 0.25));
    top: 50%;
    left: 50%;
    width: 1.5em;
    height: 1.5em;
    transform: translate3d(-50%, -50%, -1px);
    z-index: -1;
}

.bubble:after {
    background: radial-gradient(100% 100% at center, hsla(0, 0%, 0%, 0) 35%, hsla(0, 0%, 0%, 0.2) 48%, hsla(0, 0%, 0%, 0) 50%);
    filter: blur(1.8px);
    top: 0.6em;
    left: 0.6em;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, -1px);
    z-index: -2;
}

.bubble:focus,
.bubble:hover {
    transform: scale(1.1);
    outline: none;
}

.bubble:focus:active,
.bubble:hover:active {
    width: 3.2em;
    height: 3em;
}

.bubble:checked {
    box-shadow: 0 -0.06em 0.1em hsl(210, 90%, 100%) inset, 0 -0.15em 0.4em hsl(210, 90%, 45%) inset, 0 0.05em 0.05em hsl(210, 90%, 45%) inset, 0.05em 0 0.1em hsl(210, 90%, 100%) inset, -0.05em 0 0.1em hsl(210, 90%, 100%) inset, 0 0.1em 0.4em hsl(210, 90%, 60%) inset;
}

.bubble:checked:before {
    border-radius: 0.25em;
    width: 0.5em;
}

@keyframes float74 {

    from,
    to {
        transform: translate(0, 3%);
    }

    25% {
        transform: translate(-3%, 0);
    }

    50% {
        transform: translate(0, -3%);
    }

    75% {
        transform: translate(3%, 0);
    }
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
    margin: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    transition: .2s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .2s;
}

input:checked+.slider {
    background-color: var(--text-accent);
}

input:checked+.slider:before {
    transform: translateX(14px);
}

.cycle-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: transparent;
    transition: all 0.3s;
    margin-right: 8px;
}

/* MODALI (Con visibility) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-box {
    width: 100%;
    max-width: 400px;
    padding: 25px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 14px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

#statusMessage {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

#statusMessage.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.msg-error {
    background: rgba(254, 226, 226, 0.95);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.msg-success {
    background: rgba(220, 252, 231, 0.95);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.msg-break {
    background: rgba(220, 252, 231, 0.95);
    color: #d8db1b;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.msg-info {
    background: rgba(248, 249, 250, 0.95);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    text-align: left;
}

th {
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 4px;
    font-weight: 600;
    color: var(--text-muted);
}

td {
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 4px;
    color: var(--text-main);
}

.log-wrap {
    max-height: 50vh;
    overflow-y: auto;
    margin-top: 15px;
    border-radius: 12px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 600;
}

.text-xs {
    font-size: 10px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.intern-end {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.5px;
}

.intern-end p {
    margin: 4px 0;
}

/* SETTINGS & CHARTS */
.range-slider {
    width: 100%;
    accent-color: var(--text-accent);
    margin: 15px 0;
}

.chart-wrapper {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    position: relative;
}

.chart-wrapper-doughnut {
    width: 100%;
    height: 160px;
    display: flex;
    justify-content: center;
}

.test-box {
    margin-top: 15px;
    padding: 15px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/********** LOADER ************/

#irri-loader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
    /* Sfondo SOLIDO, senza trasparenza */
    background: var(--bg-base); 
}

.loader-water-wrapper {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* FLUSSO D'ACQUA (Tubo da in alto a sinistra) */
.loader-water-stream {
    position: absolute; /* DEVE essere absolute, mai relative qui */
    top: -30px;
    left: -10px; 
    width: 350px; /* Più è largo, più l'acqua "spara" lontano prima di cadere */
    height: 110%; 
    
    /* Niente rotate! Animazione che va dall'alto al basso naturale */
    background: repeating-linear-gradient(to bottom, rgba(0, 242, 254, 0.8) 0%, rgba(0, 86, 179, 0.8) 50%, rgba(0, 242, 254, 0.8) 100%);
    background-size: 100% 200%;
    animation: pourWater 2s linear infinite alternate;
    
    z-index: 0; 
    
    filter: blur(5px); 
    -webkit-mask-image: radial-gradient(100% 100% at bottom left, transparent calc(100% - 18px), black calc(100% - 17.5px), black 100%, transparent 100.5%);
    mask-image: radial-gradient(100% 100% at bottom left, transparent calc(100% - 18px), black calc(100% - 17.5px), black 100%, transparent 100.5%);
}

@keyframes pourWater {
    0% { background-position: 0 0; }
    100% { background-position: 0 200%; }
}

.loader-water-bg {
    position: absolute;
    bottom: -50%; left: -20%; width: 150%;
    height: 0%; /* Verrà aggiornato da JS */
    background: linear-gradient(135deg, #00f2fe 0%, #0056b3 100%);
    opacity: 1;
    transition: height 0.1s linear;
    transform-origin: bottom left;
    z-index: 2;
}

.loader-water-bg::before,
.loader-water-bg::after {
    content: '';
    position: absolute;
    left: 0;
    width: 200%;
    background-repeat: repeat-x;
    background-size: 50% 100%;
}

.loader-water-bg::before {
    height: 100px;
    top: -95px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,60 C150,120 450,120 600,60 C750,0 1050,0 1200,60 L1200,120 L0,120 Z" fill="%2300f2fe" opacity="0.9"/></svg>');
    animation: waveFlowRight 1s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
}

.loader-water-bg::after {
    height: 140px;
    top: -135px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,60 C150,0 450,0 600,60 C750,120 1050,120 1200,60 L1200,120 L0,120 Z" fill="%230056b3" opacity="0.7"/></svg>');
    animation: waveFlowLeft 1s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
}

@keyframes waveFlowLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes waveFlowRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.loader-glass-window{
    position: relative; 
    z-index: 10;
    margin-top: 0px;
    background: transparent; 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);         
    width: 100dvw;
    height: 120dvh;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

.loader-glass-box {
    position: relative; 
    z-index: 10;
    background: transparent; 
    border-radius: 40px;
    padding: 50px 70px;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}

.loader-logo-img {
    width: 120px; height: 120px; object-fit: contain;
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.loader-percentage {
    font-family: 'Poppins', monospace;
    font-size: 38px; font-weight: 800;
    color: var(--text-main);
    letter-spacing: 2px;
    display: flex; align-items: baseline; gap: 2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.loader-percentage span { font-size: 18px; color: var(--text-muted); font-weight: 600;}
