:root {
    /* Palette colors */
    --color-red: #e74c3c;
    --color-orange: #f39c12;
    --color-teal: #1abc9c;
    --color-blue: #3498db;
    --color-green: #27ae60;

    /* Palette RGB colors */
    --rgb-color-red: 231, 76, 60;
    --rgb-color-orange: 243, 156, 18;
    --rgb-color-teal: 26, 188, 156;
    --rgb-color-blue: 52, 152, 219;
    --rgb-color-green: 39, 174, 96;

    /* Dark theme base colors */
    --color-bg: #141414;
    --color-text-primary: #909497;
    --color-text-heading: #f1f1f1;
    --color-text-secondary: #626567;
    --color-block-bg: #1e1e1e;
    --color-border: rgba(255, 255, 255, .07);
    --color-uptime-bar-empty-bg: #424949;
    --color-tooltip-bg: #1e1e1e;

    /* Button: Secondary */
    --color-btn-secondary-bg: transparent;
    --color-btn-secondary-hover-bg: #232323;
    --color-btn-secondary-active-bg: #1e1e1e;
    --color-btn-secondary-border: rgba(255, 255, 255, .13);

    /* Sizing */
    --size-container-width: 864px;
    --size-logo-width: 130px;
    --size-logo-height: 130px;
    --size-uptime-bar-height: 24px;

    /* Spacing */
    --spacing-4: .25rem;
    --spacing-8: .5rem;
    --spacing-12: .75rem;
    --spacing-16: 1rem;
    --spacing-20: 1.25rem;
    --spacing-24: 1.5rem;
    --spacing-32: 2rem;

    /* Border radius */
    --border-radius-200: .35rem;
    --border-radius-400: .475rem;
    --border-radius-500: 1.4rem;

    /* Typography */
    --font-size-50: 0.75rem;
    --font-size-100: .875rem;
    --font-size-300: 1.125rem;
    --font-size-350: 1.25rem;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-line-height-200: var(--spacing-24);

    /* Shadow */
    --shadow-filter: rgba(0, 0, 0, .05) 0px 1px 6px 0px;
}






* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

html:not(.light) body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
}

html.light body {
    color: #566573;
}


/* Fundal cu imagine */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.adelin.org/public/wp/status-wp/abstract-gradient-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(50px);
    transform: scale(1.1);
    z-index: -2;
    transition: filter 0.5s ease, background-image 0.4s ease;
}

html::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    transition: background 0.4s ease;
}

.container {
    max-width: var(--size-container-width);
    margin: 0 auto;
    padding: var(--spacing-32) var(--spacing-20) 0;
    background: transparent;
}










/* =====================================================
   HEADER - orizontal ca la DeepSeek
   ===================================================== */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0 20px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}


.brand-logo {
    width: 70px;
    height: 70px;
    transition: transform 0.3s ease;
}

.brand-name {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f1f1f1;
    letter-spacing: -0.3px;
}

/* Buton Subscribe */
.subscribe-header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: #f1f1f1;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.subscribe-header-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.subscribe-header-btn i {
    font-size: 1rem;
    margin-top: 1px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 0 16px 0;
        margin-bottom: 20px;
    }
    
    .brand-logo {
        width: 34px;
        height: 34px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .subscribe-header-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .subscribe-header-btn span {
        display: none;
    }
    
    .subscribe-header-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-logo {
        width: 30px;
        height: 30px;
    }
}









.overall-status {
    margin-bottom: var(--spacing-16);
    box-shadow: none;
    border-radius: 40px;
    padding: 1.35rem;
    color: var(--color-text-heading);
    font-weight: 600;
    font-size: var(--font-size-350);
    line-height: var(--font-line-height-200);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(128, 128, 128, 0.15);
    backdrop-filter: blur(10px);
}

.overall-status > div {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.8rem;
    font-weight: 600;
}

.overall-status i {
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overall-status.ok {
    border: 1px solid rgba(39, 174, 95, 0.137);
    background-color: rgba(39, 174, 95, 0.205);
}

.overall-status.ok i {
    color: #27ae60;
}

.overall-status.warning {
    border: 1px solid rgba(243, 157, 18, 0.5);
    background-color: rgba(243, 156, 18, 0.15);
}

.overall-status.warning i {
    color: #f39c12;
}

.overall-status.danger {
    border: 1px solid rgba(231, 76, 60, 0.3);
    background-color: rgba(231, 77, 60, 0.15);
}

.overall-status.danger i {
    color: #e74c3c;
}

.description {
    margin-top: var(--spacing-32);
    box-shadow: var(--shadow-filter);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-20);
}

.description p {
    margin: 0;
}

/* Service Group Container - Enhanced Liquid Glass Effect */
.service-group {
    margin-bottom: var(--spacing-32);
    margin-left: -140px;
    margin-right: -140px;
    border: 1px solid rgba(255, 255, 255, 0.033);
    border-radius: 3.7rem;
    background: rgba(35, 35, 40, 0.397);
    backdrop-filter: blur(16px) saturate(140%);
    padding: var(--spacing-24);
    box-shadow: 
        0 8px 25px -8px rgba(0, 0, 0, 0.3),
        0 4px 12px -4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
    margin-top: 40px !important;
}

@media (max-width: 768px) {
    .service-group {
        margin-left: -10px;
        margin-right: -10px;
    }
}

/* Stiluri pentru header-ul grupului */
.group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    width: 100%;
    padding: 0 5px;
}

.group-name {
    color: var(--color-text-heading);
    font-weight: 700;
    font-size: 2.7rem;
    margin: 0;
    text-align: left;
    font-family: 'Sora', sans-serif;
}

.group-uptime {
    font-size: 1.5rem;
    color: #27ae60;
    font-weight: 600;
    text-align: right;
}

.service-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-16);
}

@media (min-width: 532px) {
    .service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Service Item */
.service-item {
    margin-bottom: var(--spacing-16) !important;
    border: 1px solid rgba(255, 255, 255, 0.027);
    border-radius: 40px;
    background: rgba(45, 45, 50, 0.329);
    padding: var(--spacing-24) !important;
    box-shadow: 
        0 8px 25px -8px rgba(0, 0, 0, 0.3),
        0 4px 12px -4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    z-index: 1;
}


.service-item:hover {
    background: rgba(55, 55, 62, 0.45);
    box-shadow: 
        0 12px 35px -8px rgba(0, 0, 0, 0.5),
        0 6px 18px -4px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}


/* Service Header Simplificat */
.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.service-name {
    font-size: 1.45rem;
    font-weight: 600;
    color: #f1f1f1;
    letter-spacing: -0.2px;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.1);
}

.status-up {
    color: #27ae60;
}

.status-down {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.3);
}

.service-status i {
    font-size: 1.2rem;
}

/* Uptime Bars */
/* .uptime-container {
    margin-top: 8px;
} */

/* === TOOLTIP-URI IMBUNATATITE SERVER STATUS === */
.beat {
    position: relative !important;
    overflow: visible !important;
    z-index: 1;
}

.beat-tooltip {
    position: absolute !important;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(25, 25, 30, 1) 0%, rgba(35, 35, 40, 1) 50%, rgba(20, 20, 25, 1) 100%) !important;
    backdrop-filter: blur(566px) !important;
    -webkit-backdrop-filter: blur(455px) !important;
    color: #f1f1f1;
    padding: 8px 16px;
    border-radius: 27px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    pointer-events: none;
    text-align: center;
    min-width: 180px;
}

.beat.down .beat-tooltip {
    background: linear-gradient(135deg, rgba(60, 25, 25, 1) 0%, rgba(80, 30, 30, 1) 50%, rgba(45, 20, 20, 1) 100%) !important;
}

.beat.down .beat-tooltip::before {
    border-top-color: rgb(50, 25, 25) !important;
}

/* Săgeată tooltip */
.beat-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: rgba(49, 49, 56, 0.98);
}

/* Show tooltip on hover */
.beat:hover .beat-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.tooltip-additional {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-top: 4px;
    font-weight: 400;
}

.tooltip-date {
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.tooltip-time {
    color: #a0a0a0;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap !important;
}

/* Status indicators in tooltip */
.tooltip-status {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}

.tooltip-status.up {
    background: #27ae60;
}

.tooltip-status.down {
    background: #e74c3c;
}

.tooltip-status.pending {
    background: #f39c12;
}

.uptime-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.77rem;
    color: #a0a0a0;
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.time-left,
.time-right {
    color: #909497;
    font-weight: 600;
}

/* Linie de separare deasupra uptime-ului */
.quick-info-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}









.quick-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    flex-wrap: wrap;
}

.quick-info-value {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    text-align: center;
    transition: color 0.3s ease;
}

.quick-info-value.uptime {
    font-size: 1.1rem;
}

.quick-info-value.duration {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Separator • */
.quick-info-separator {
    color: #626567;
    font-size: 1rem;
    font-weight: 700;
    user-select: none;
}

/* Verde închis - excelent (100%) */
.quick-info-value.uptime.uptime-good {
    color: #27ae60;
    text-shadow: 0 0 12px rgba(39, 174, 96, 0.25);
}

/* Verde deschis - foarte bun (99-99.9%) */
.quick-info-value.uptime.uptime-ok {
    color: #2ecc71;
    text-shadow: 0 0 12px rgba(46, 204, 113, 0.2);
}

/* Galben - acceptabil (95-99%) */
.quick-info-value.uptime.uptime-warn {
    color: #f39c12;
    text-shadow: 0 0 12px rgba(243, 156, 18, 0.25);
}

/* Roșu - problemă (<95%) */
.quick-info-value.uptime.uptime-bad {
    color: #e74c3c;
    text-shadow: 0 0 12px rgba(231, 76, 60, 0.3);
}

/* Verde închis - stabil de mult (≥7 zile) */
.quick-info-value.duration.duration-good {
    color: #27ae60;
}

/* Verde deschis - stabil (1-7 zile) */
.quick-info-value.duration.duration-ok {
    color: #2ecc71;
}

/* Galben - mediu (1h-1 zi) */
.quick-info-value.duration.duration-warn {
    color: #f39c12;
}

/* Roșu - recent revenit (<1h) */
.quick-info-value.duration.duration-bad {
    color: #e74c3c;
}

@media (max-width: 768px) {
    .quick-info-value.uptime {
        font-size: 1rem;
    }
    
    .quick-info-value.duration {
        font-size: 0.85rem;
    }
    
    .quick-info-separator {
        font-size: 0.9rem;
    }
}














/* Mai mult spațiu între elemente */
.service-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 532px) {
    .service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Responsive pentru mobile */
@media (max-width: 768px) {
    .service-item {
        padding: 22px !important;
        border-radius: 30px;
    }
    
    .quick-info-value.uptime {
        font-size: 1rem;
    }
}

footer {
    margin: var(--spacing-32) 0;
    color: var(--color-text-secondary);
    text-align: center;
}

.refresh-info {
    opacity: 1;
    margin-bottom: 0;
}

.loading {
    text-align: center;
    padding: var(--spacing-32);
    color: var(--color-text-secondary);
}

.error {
    text-align: center;
    padding: var(--spacing-32);
    color: var(--color-red);
}

/* Statistici Generale */
.stats-container {
    margin: 24px 0;
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(65, 65, 70, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 40px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(65, 65, 70, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 22px;
    background: rgba(39, 174, 96, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #27ae60;
    font-size: 2rem;
}

.stat-item:nth-child(2) .stat-icon {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.stat-item:nth-child(3) .stat-icon {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.stat-item:nth-child(4) .stat-icon {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #f1f1f1;
}

.stat-label {
    font-size: 0.9rem;
    color: #909497;
    font-weight: 500;
}

/* FOOTER STYLES - MODERN & ELEGANT */
.footer {
    text-align: center;
    margin-top: 10px;
    color: #909497b0;
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.footer p {
    margin: 10px 0;
    color: #909497;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.footer p:first-child {
    font-size: 15px;
    font-weight: 600;
    color: #909497;
}

.footer p:nth-child(2) {
    font-style: italic;
    color: #909497;
}

.api-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.api-links a {
    color: #909497;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 30px;
    border: 1.5px solid transparent;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    font-size: 13px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.api-links a:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.api-links a:not(:last-child)::after {
    display: none;
}

@media (max-width: 768px) {
    .api-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .api-links a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* RESPONSIVE FIXES FOR MOBILE */
@media (max-width: 768px) {
    .service-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 12px !important;
    }
    
    .service-name {
        font-size: 1.3rem !important;
        text-align: left !important;
        flex: 1 !important;
        margin-bottom: 0 !important;
    }
    
    .service-status {
        font-size: 0.7rem !important;
        padding: 5px 2px !important;
        min-width: 34px !important;
    }
    
    .overall-status > div {
        font-size: 1.6rem !important;
        gap: 12px !important;
    }
    
    .overall-status i {
        font-size: 1.5em !important;
    }
    
    .quick-info {
        margin-top: 12px !important;
    }
    
    .quick-info-label {
        font-size: 0.8rem !important;
    }
    
    .quick-info-value {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    .uptime-time {
        font-size: 0.85rem !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .stat-item {
        padding: 16px !important;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem !important;
    }
    
    .title-flex h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
        margin-top: 5px !important;
    }
    
    .description {
        padding: var(--spacing-16) !important;
        font-size: 0.9rem !important;
    }
    
    .service-group {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: var(--spacing-20) !important;
        margin-top: 30px !important;
        border-radius: 40px;
    }

    .service-list {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-12) !important;
    }
    
    .service-item {
        padding: var(--spacing-20) !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .service-header {
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .service-name {
        font-size: 1.2rem !important;
    }
    
    .service-status {
        font-size: 0.8rem !important;
        padding: 5px 10px !important;
    }
    
    .overall-status > div {
        font-size: 1.2rem !important;
        gap: 10px !important;
    }
    
    .quick-info-value {
        font-size: 0.85rem !important;
    }
    
    .uptime-time {
        font-size: 0.8rem !important;
    }
    
    .hp-bar-big {
        height: 33px !important;
    }
    
    .hp-bar-big .beat {
        min-height: 22px !important;
    }
    
    .footer {
        margin-top: 30px !important;
    }
    
    .footer p {
        font-size: 13px !important;
    }
    
    .api-links {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .api-links a {
        width: 100% !important;
        max-width: 180px !important;
        padding: 8px 16px !important;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .service-name {
        font-size: 0.95rem !important;
    }
    
    .service-status {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }
    
    .overall-status > div {
        font-size: 1rem !important;
    }
    
    .quick-info {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .quick-info-item {
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
}

/* Stiluri pentru Health în quick-info */
.quick-info-value.health.excellent {
    color: #27ae60;
    font-weight: 600;
}

.quick-info-value.health.good {
    color: #2ecc71;
    font-weight: 600;
}

.quick-info-value.health.degraded {
    color: #f39c12;
    font-weight: 600;
}

.quick-info-value.health.poor {
    color: #e74c3c;
    font-weight: 600;
}

.quick-info-value.health.unknown {
    color: #909497;
    font-weight: 600;
}

/* Loading styles */
#services-container {
    position: relative;
    min-height: 200px;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(40, 40, 45, 0.4) 0%, rgba(35, 35, 40, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 34px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: #f1f1f1;
    font-size: 1.2rem;
    font-weight: 500;
    gap: 25px;
    text-align: center;
    margin: 20px 0;
    opacity: 1;
    transition: opacity 0.15s ease-in-out;
}

.loading.fade-out {
    opacity: 0;
}

.loader {
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #ffffff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* CROSSFADE CU ZOOM FOARTE SUBTIL */
.stat-value, .stat-label {
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-value.fade-update {
    opacity: 0;
    transform: scale(1);
}

.stat-value.fade-update.active {
    opacity: 1;
    transform: scale(1);
}

/* CROSSFADE PENTRU OVERALL STATUS */
.overall-status > div {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overall-status > div.fade-update {
    opacity: 0;
    transform: scale(1);
}

.overall-status > div.fade-update.active {
    opacity: 1;
    transform: scale(1);
}

/* === INCIDENT STATUS STYLES === */
.incident-status {
    margin-bottom: var(--spacing-20);
    border-radius: 40px;
    padding: 16px 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.incident-status:last-child {
    margin-bottom: var(--spacing-20);
}

.incident-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.incident-icon {
    font-size: 1.9rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.incident-text {
    flex: 1;
}

.incident-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f1f1f1;
    margin-bottom: 8px;
    font-family: 'Sora', sans-serif;
    line-height: 1.3;
}

.incident-message {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: #d0d0d0;
    white-space: normal;
}

.incident-message {
    white-space: normal;
    line-height: 1.6;
}

.incident-message .line-break {
    display: block;
    height: 5px;
}

.incident-footer {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #a0a0a0;
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

/* Butoane pentru servicii afectate (reutilizate) */
.affected-services-list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.affected-label {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-right: 5px;
}

.affected-service-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f1f1;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.affected-service-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Culori posibile pentru container */
.incident-status.green {
    background-color: rgba(39, 174, 95, 0.205);
    border: 1px solid rgba(39, 174, 95, 0.137);
}

.incident-status.red {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.incident-status.orange {
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.incident-status.blue {
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.incident-status.purple {
    background: rgba(155, 89, 182, 0.12);
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.incident-status.yellow {
    background: rgba(241, 196, 15, 0.12);
    border: 1px solid rgba(241, 196, 15, 0.2);
}

.incident-status.gray {
    background: rgba(128, 128, 128, 0.12);
    border: 1px solid rgba(128, 128, 128, 0.2);
}

/* Responsive pentru mobil */
@media (max-width: 768px) {
    .incident-status {
        padding: 12px 20px;
        margin-bottom: var(--spacing-16);
    }
    
    .incident-icon {
        font-size: 1.4rem;
    }
    
    .incident-title {
        font-size: 1.1rem;
    }
    
    .incident-message {
        font-size: 0.9rem;
    }
    
    .affected-service-btn {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}



/* === PING TOOLTIP STYLES === */
.tooltip-ping {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

.tooltip-ping.fast {
    color: #27ae60 !important;
    text-shadow: 0 0 8px rgba(39, 174, 96, 0.3);
}

.tooltip-ping.normal {
    color: #f39c12 !important;
    text-shadow: 0 0 8px rgba(243, 156, 18, 0.3);
}

.tooltip-ping.slow {
    color: #e65a4a !important;
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.3);
}

.tooltip-ping:not(.fast):not(.normal):not(.slow) {
    color: #909497 !important;
}

/* === RESPONSIVE GROUP NAME AND UPTIME === */
@media (max-width: 768px) {
    .group-title {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        margin-bottom: 18px !important;
        padding: 0 2px !important;
    }
    
    .group-name {
        font-size: 1.8rem !important;
        text-align: left !important;
        width: 100% !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        order: 1 !important;
    }
    
    .group-uptime {
        font-size: 1.1rem !important;
        text-align: left !important;
        width: 100% !important;
        margin: 0 !important;
        order: 2 !important;
        color: #27ae60 !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 480px) {
    .group-name {
        font-size: 1.9rem !important;
    }
    
    .group-uptime {
        font-size: 1rem !important;
    }
}

@media (max-width: 360px) {
    .group-name {
        font-size: 1.3rem !important;
    }
    
    .group-uptime {
        font-size: 0.85rem !important;
    }
}

/* === UPTIME BARS CU TOOLTIP-URI COMBINATE === */
.uptime-bars {
    margin: 16px 0 12px 0;
    position: relative;
}

.hp-bar-big {
    display: flex !important;
    gap: 3px !important;              /* ← mai lat */
    align-items: stretch !important;
    width: 100% !important;
    height: 36px !important;          /* ← mai înalt */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 4px;                     /* ← padding mai mare */
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.hp-bar-big .beat {
    flex: 1 !important;
    border-radius: 7px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 24px !important;
    position: relative;
    overflow: visible !important;
    cursor: pointer;
}

.hp-bar-big .beat.down {
    background: #f13f2b !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 8px rgba(192, 57, 43, 0.25);
    border: 1px solid rgba(192, 57, 43, 0.5);
}

.hp-bar-big .beat.up.fast {
    background: #27ae60 !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 2px 8px rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.4);
}

.hp-bar-big .beat.up.normal {
    background: #f39c12 !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 8px rgba(243, 156, 18, 0.18);
    border: 1px solid rgba(243, 156, 18, 0.35);
}

.hp-bar-big .beat.up.slow {
    background: #ff7b00 !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 2px 8px rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.hp-bar-big .beat.up {
    background: #27ae60 !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 8px rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.hp-bar-big .beat.empty {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-bar-big .beat:first-of-type {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.hp-bar-big .beat:last-of-type {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.hp-bar-big .beat:hover {
    transform: scaleY(1.15) translateY(-1px) !important;
    z-index: 2;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.hp-bar-big .beat.down:hover {
    box-shadow: 
        0 4px 12px rgba(231, 76, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.hp-bar-big .beat.up.fast:hover {
    box-shadow: 
        0 4px 12px rgba(39, 174, 96, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.hp-bar-big .beat.up.normal:hover {
    box-shadow: 
        0 4px 12px rgba(243, 156, 18, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.hp-bar-big .beat.up.slow:hover {
    box-shadow: 
        0 4px 12px rgba(230, 126, 34, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.hp-bar-big .beat.up:hover {
    box-shadow: 
        0 4px 12px rgba(39, 174, 96, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.service-item:hover {
    z-index: 2147483647 !important;
}

/* === STATUS HEADER STYLES === */
.status-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-20);
    margin-bottom: var(--spacing-16);
}

.status-icon {
    font-size: 2.5rem;
    color: #27ae60;
    flex-shrink: 0;
    margin-top: 4px;
}

.status-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
}

.status-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-heading);
    line-height: 1.2;
    margin: 0;
}

.status-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin: 0;
}

.status-details {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid #f39c12;
}

.status-details.danger {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.status-details.ok {
    border-left-color: #27ae60;
    background: rgba(39, 174, 96, 0.08);
}

.problematic-services {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-problem {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-problem:last-child {
    border-bottom: none;
}

.problem-icon {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.problem-details {
    flex: 1;
}

.problem-service-name {
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 4px;
}

.problem-error {
    font-size: 0.95rem;
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 6px;
}

.problem-description {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.overall-status.ok .status-icon { color: #27ae60; }
.overall-status.warning .status-icon { color: #f39c12; }
.overall-status.danger .status-icon { color: #e74c3c; }

@media (max-width: 768px) {
    .status-header {
        gap: var(--spacing-16);
    }
    .status-icon { 
        font-size: 2rem;
    }
    .status-title { font-size: 1.5rem; }
    .status-subtitle { font-size: 1rem; }
}

/* === OFFLINE BACKGROUND === */
.service-item.offline-bg {
    background: rgba(231, 76, 60, 0.08) !important;
    border-color: rgba(231, 76, 60, 0.15) !important;
}

.service-item.offline-bg:hover {
    background: rgba(231, 76, 60, 0.12) !important;
    border-color: rgba(231, 76, 60, 0.2) !important;
}
.storage-btn {
    width: 70px;
    height: 70px;
    background: rgba(65, 65, 70, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 2rem;
    opacity: 1;
    transform: translateY(0) scale(1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    align-self: flex-end;
}

@keyframes floatInStorage {
    0% {
        transform: translateY(-20px) scale(0.9);
        opacity: 0;
    }
    50% {
        transform: translateY(3px) scale(1.02);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes floatInHelp {
    0% {
        transform: translateY(-20px) scale(0.9);
        opacity: 0;
    }
    60% {
        transform: translateY(3px) scale(1.02);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.storage-btn:hover, .help-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.storage-btn:hover {
    background: rgba(75, 75, 80, 0.45);
}

.help-btn:hover {
    background: rgba(50, 120, 220, 0.45);
}

.storage-btn::after {
    content: 'Status Servers';
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%) translateX(20px);
    background: rgba(0, 0, 0, 0.219);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.help-btn::after {
    content: 'Ai nevoie de ajutor?';
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%) translateX(20px);
    background: rgba(0, 0, 0, 0.205);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.storage-btn::after, .help-btn::after {
    transition: opacity 0.2s, transform 0.25s ease-out !important;
}

.storage-btn::after {
    transform: translateY(-50%) translateX(15px);
}

.help-btn::after {
    transform: translateY(-50%) translateX(15px);
}

.storage-btn:hover::after, .help-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
@media (min-width: 768px) and (max-width: 1024px) {
    .storage-btn, .help-btn {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .storage-btn::after, .help-btn::after {
        font-size: 0.8rem;
        padding: 7px 12px;
    }
}

/* === LOADER SVG STYLES === */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-container {
    width: 50px;
    height: 50px;
    position: relative;
    animation: rotate 1s linear infinite;
}

.loader-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.loader-arc {
    fill: none;
    stroke: #ffffff;
    stroke-width: 7px;
    stroke-linecap: round;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: animateArc 2s ease-in-out infinite alternate;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes animateArc {
    0% {
        stroke-dashoffset: 55;
    }
    100% {
        stroke-dashoffset: 165;
    }
}

/* === CROSSFADE ANIMATIONS === */
.fade-update {
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

.fade-update.active {
    opacity: 1 !important;
}

.overall-status > div,
.stat-value,
.stat-label {
    transition: opacity 0.3s ease !important;
}

#overall-status-text,
#total-servers,
#avg-response-time,
#reliability-score {
    display: inline-block;
    position: relative;
}

/* === SERVICES CONTENT ANIMATION === */
.services-content {
    opacity: 0;
    animation: gentleAppear 0.2s ease-out forwards;
}

@keyframes gentleAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.services-content.animated {
    animation: none;
    opacity: 1;
}


@media (max-width: 480px) {
    .service-name {
        font-size: 1.2rem !important;
    }
    
    .service-link-icon-mobile {
        width: 22px;
        height: 22px;
        font-size: 1.0rem;
    }
    
    .service-status {
        font-size: 0.7rem !important;
        padding: 5px 2px !important;
        min-width: 34px !important;
    }
    
    .service-item {
        padding: 16px !important;
    }
    
    .collapse-hp-bar-big {
        height: 29px !important;
    }
}

@media (min-width: 769px) {
    .service-collapse-content {
        display: none !important;
    }
    
    .collapse-indicator {
        display: none !important;
    }
    
    .service-link-icon-mobile {
        display: none !important;
    }
}

/* === STATUS WARNING BG === */
.service-item.status-warning-bg,
.service-item.status-slow-bg,
.service-item.offline-bg {
    background: rgba(243, 157, 18, 0.096) !important;
}

/* === FONT OVERRIDES === */
.service-name {
    font-family: 'Sora', sans-serif;
    font-weight: 600 !important;
}

#overall-status-text {
    font-family: 'Sora', sans-serif;
}

.stat-value {
    font-family: 'Sora', sans-serif;
}

.group-uptime {
    font-family: 'Sora', sans-serif;
}

.quick-info-value {
    font-family: 'Sora', sans-serif;
}

/* === HOVER LINKS CSS === */
.service-name.has-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    padding-right: 5px;
    border-radius: 4px;
}

.service-name.has-link:hover {
    color: #1abc9c !important;
    transform: translateX(3px);
}

.service-name.has-link::after {
    content: "\f35d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    opacity: 0.9;
    font-size: 0.75em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-1px);
    color: #909497;
    margin-left: 5px;
    line-height: 1;
}

.service-name.has-link:hover::after {
    opacity: 1;
    transform: translateY(-1px) translateX(2px);
    color: #1abc9c;
}

















/* === VIEW TOGGLE — RAPID + SMOOTH + 20px RADIUS === */
.view-toggle {
    position: relative;
    display: inline-flex;
    gap: 0;
    margin-bottom: -2px;
    margin-top: -8px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: fit-content;
    overflow: hidden;
}

.view-toggle-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.28) 0%, rgba(39, 174, 96, 0.16) 100%);
    border: 1px solid rgba(39, 174, 96, 0.25);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%), 0 2px 8px rgba(39, 174, 96, 0.2);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    z-index: 0;
    transform: translateX(0);
}

.view-toggle-slider.right {
    transform: translateX(100%);
}

.view-toggle-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 16px;
    border: none;
    background: transparent;
    color: #909497;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 16px;
    cursor: pointer;
    transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    z-index: 1;
    min-width: 84px;
}

.view-toggle-btn:hover:not(.active) {
    color: #c0c0c0;
}

.view-toggle-btn.active {
    color: #27ae60;
}

.view-toggle-btn i {
    font-size: 0.85rem;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* MOBIL */
@media (max-width: 768px) {
    .view-toggle {
        width: 100%;
        justify-content: center;
        border-radius: 20px;
        margin-top: -4px;
        margin-bottom: -4px;
    }

    .view-toggle-slider {
        border-radius: 16px;
    }

    .view-toggle-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.85rem;
        padding: 9px 10px;
        min-width: auto;
        border-radius: 16px;
    }
}









/* === BARE MOBILE === */
.collapse-uptime-bars {
    margin: 16px 0 12px 0;
    position: relative;
}

.collapse-hp-bar-big {
    display: flex !important;
    gap: 3px !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.collapse-hp-bar-big .beat {
    flex: 1 !important;
    border-radius: 6px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 26px !important;
    transition: all 0.25s ease;
    position: relative;
}

.collapse-hp-bar-big .beat.up {
    background: #27ae60 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.collapse-hp-bar-big .beat.up.normal {
    background: #f39c12 !important;
    border: 1px solid rgba(243, 156, 18, 0.35);
}

.collapse-hp-bar-big .beat.up.slow {
    background: #ff7b00 !important;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.collapse-hp-bar-big .beat.down {
    background: #f13f2b !important;
    border: 1px solid rgba(192, 57, 43, 0.5);
}

.collapse-hp-bar-big .beat:first-of-type {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.collapse-hp-bar-big .beat:last-of-type {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}







/* === TOOLTIP ZILE GRUPATE === */
.tooltip-days {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.tooltip-day-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.75rem;
    color: #b0b0b0;
    font-weight: 500;
}

.tooltip-day-row span:last-child {
    color: #f1f1f1;
    font-weight: 600;
}



.hp-bar-big.empty-state {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px;
    padding: 0 !important;
}

















/* =====================================================
   SKELETON LOADING - COMPLET
   ===================================================== */

/* Animație pulse pentru toate elementele skeleton */
@keyframes skeletonPulse {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Baza skeleton - gradient animat */
.skeleton-line,
.skeleton-box {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* =====================================================
   SKELETON STATISTICI
   ===================================================== */

.skeleton-stat {
    pointer-events: none;
}

.skeleton-stat .skeleton-box {
    width: 60px;
    height: 60px;
    border-radius: 22px;
    flex-shrink: 0;
}

.skeleton-stat .stat-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.skeleton-line.skeleton-value {
    width: 60px;
    height: 22px;
    border-radius: 6px;
}

.skeleton-line.skeleton-label {
    width: 100px;
    height: 12px;
    border-radius: 4px;
}

/* =====================================================
   SKELETON SERVICII - LAYOUT IDENTIC CU REALUL
   ===================================================== */

.skeleton-services {
    display: flex;
    flex-direction: column;
    gap: 40px;
    opacity: 1 !important;
}

/* Grup skeleton - identic cu .service-group */
.skeleton-group {
    pointer-events: none;
    margin-left: -140px;
    margin-right: -140px;
    border: 1px solid rgba(255, 255, 255, 0.033);
    border-radius: 3.7rem;
    background: rgba(35, 35, 40, 0.397);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    padding: var(--spacing-24);
    box-shadow: 
        0 8px 25px -8px rgba(0, 0, 0, 0.3),
        0 4px 12px -4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    margin-top: 40px !important;
}

/* Header grup - identic cu .group-title */
.skeleton-group .group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 0 5px;
}

/* Nume grup skeleton */
.skeleton-line.skeleton-group-name {
    display: block;
    width: 260px;
    height: 42px;
    border-radius: 12px;
}

/* Uptime grup skeleton */
.skeleton-line.skeleton-group-uptime {
    display: block;
    width: 180px;
    height: 28px;
    border-radius: 8px;
}

/* Lista servicii - identic cu .service-list */
.skeleton-group .service-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 532px) {
    .skeleton-group .service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Card serviciu skeleton - identic cu .service-item */
.skeleton-service-item {
    pointer-events: none;
    cursor: default !important;
    margin-bottom: var(--spacing-16) !important;
    border: 1px solid rgba(255, 255, 255, 0.027);
    border-radius: 40px;
    background: rgba(45, 45, 50, 0.329);
    padding: var(--spacing-24) !important;
    box-shadow: 
        0 8px 25px -8px rgba(0, 0, 0, 0.3),
        0 4px 12px -4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.skeleton-service-item:hover {
    z-index: 1 !important;
    transform: none !important;
    background: rgba(45, 45, 50, 0.329);
}

/* Header serviciu - identic cu .service-header */
.skeleton-service-item .service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* Nume serviciu skeleton */
.skeleton-line.skeleton-service-name {
    display: block;
    width: 150px;
    height: 26px;
    border-radius: 8px;
}

/* Badge status skeleton (rotund) */
.skeleton-line.skeleton-service-status {
    display: block;
    width: 80px;
    height: 32px;
    border-radius: 20px;
}

/* Toggle 24h / 90z skeleton */
.skeleton-toggle {
    display: flex;
    gap: 0;
    padding: 5px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: fit-content;
    margin-bottom: 12px;
}

.skeleton-line.skeleton-toggle-pill {
    display: block;
    width: 84px;
    height: 28px;
    border-radius: 16px;
}

/* Bare uptime skeleton - identic cu .hp-bar-big */
.skeleton-bars {
    display: flex !important;
    gap: 3px !important;
    width: 100% !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8px;
    margin-bottom: 8px;
}

.skeleton-line.skeleton-bar {
    flex: 1;
    border-radius: 7px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* Rândul cu "Last 100 min" / "Now" */
.skeleton-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 12px;
}

.skeleton-line.skeleton-time-text {
    display: block;
    width: 80px;
    height: 12px;
    border-radius: 4px;
}

/* Uptime jos - identic cu .quick-info */
.skeleton-quick-info {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.skeleton-line.skeleton-quick-info-value {
    display: block;
    width: 130px;
    height: 20px;
    border-radius: 6px;
}

/* =====================================================
   SKELETON - MOBIL (max-width: 768px)
   ===================================================== */

@media (max-width: 768px) {
    .skeleton-stat .skeleton-box {
        width: 48px;
        height: 48px;
        border-radius: 18px;
    }
    
    .skeleton-line.skeleton-value {
        width: 50px;
        height: 20px;
    }
    
    .skeleton-line.skeleton-label {
        width: 80px;
        height: 10px;
    }
    
    .skeleton-group {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: var(--spacing-20) !important;
        margin-top: 30px !important;
        border-radius: 40px;
    }
    
    .skeleton-group .service-list {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .skeleton-service-item {
        padding: 20px !important;
        border-radius: 30px !important;
        margin-bottom: 12px !important;
    }
    
    .skeleton-line.skeleton-group-name {
        width: 180px;
        height: 32px;
    }
    
    .skeleton-line.skeleton-group-uptime {
        width: 130px;
        height: 22px;
    }
    
    .skeleton-line.skeleton-service-name {
        width: 120px;
        height: 22px;
    }
    
    .skeleton-line.skeleton-service-status {
        width: 44px;
        height: 44px;
        border-radius: 50%;
    }
    
    .skeleton-toggle {
        width: 100%;
        justify-content: center;
        margin: 8px 0 12px 0;
    }
    
    .skeleton-line.skeleton-toggle-pill {
        flex: 1;
        width: auto;
        height: 32px;
        border-radius: 16px;
    }
    
    .skeleton-bars {
        height: 33px !important;
        gap: 2px !important;
        padding: 3px !important;
    }
    
    .skeleton-line.skeleton-time-text {
        width: 60px;
        height: 10px;
    }
    
    .skeleton-line.skeleton-quick-info-value {
        width: 100px;
        height: 16px;
    }
}

/* =====================================================
   SKELETON - MOBIL MIC (max-width: 480px)
   ===================================================== */

@media (max-width: 480px) {
    .skeleton-stat .skeleton-box {
        width: 44px;
        height: 44px;
        border-radius: 16px;
    }
    
    .skeleton-line.skeleton-value {
        width: 45px;
        height: 18px;
    }
    
    .skeleton-line.skeleton-label {
        width: 70px;
        height: 10px;
    }
    
    .skeleton-line.skeleton-group-name {
        width: 150px;
        height: 28px;
    }
    
    .skeleton-line.skeleton-group-uptime {
        width: 100px;
        height: 18px;
    }
    
    .skeleton-line.skeleton-service-name {
        width: 100px;
        height: 20px;
    }
    
    .skeleton-line.skeleton-service-status {
        width: 40px;
        height: 40px;
    }
    
    .skeleton-bars {
        height: 29px !important;
    }
    
    .skeleton-line.skeleton-quick-info-value {
        width: 90px;
        height: 14px;
    }
}









/* =====================================================
   BUTON ISTORIC INCIDENTE - SUB STATISTICI
   ===================================================== */

.incidents-btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    padding: 0;
}

.incidents-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    
    padding: 14px 28px;
    background: rgba(39, 174, 96, 0.22);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(39, 174, 96, 0.06);
    border-radius: 40px;
    
    color: #27ae60;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.incidents-btn:hover {
    background: rgba(39, 174, 96, 0.30);
    color: #2ecc71;
}

.incidents-btn i {
    font-size: 0.9rem;
}

/* Mobil */
@media (max-width: 768px) {
    .incidents-btn-wrapper {
        margin: 24px 0 32px 0;
        padding: 0 16px;
    }
    
    .incidents-btn {
        padding: 12px 22px;
        font-size: 0.88rem;
        gap: 8px;
    }
    
    .incidents-btn i {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .incidents-btn-wrapper {
        margin: 20px 0 28px 0;
    }
    
    .incidents-btn {
        padding: 11px 18px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}










/* =====================================================
   BUTON MORE
   ===================================================== */

.service-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-more-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #909497;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.service-more-btn:hover {
    background: rgba(52, 152, 219, 0.2);
}
.service-header-actions .service-more-btn i {
    font-size: 1.2rem;
}

/* =====================================================
   MODAL SERVICIU
   ===================================================== */

.service-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.service-modal {
    background: rgba(30, 30, 35, 0.75);
    backdrop-filter: blur(34px) saturate(140%);
    -webkit-backdrop-filter: blur(34px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(0.97);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-modal-overlay.active .service-modal {
    transform: scale(1) translateY(0);
}

.service-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.service-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.service-modal-title i {
    font-size: 1.5rem;
    color: #3498db;
}

.service-modal-title h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    color: #f1f1f1;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.service-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #909497;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1rem;
    flex-shrink: 0;
}

.service-modal-close:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    color: #e74c3c;
    transform: rotate(90deg);
}

.service-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

/* Scrollbar pentru modal */
.service-modal-body::-webkit-scrollbar {
    width: 8px;
}

.service-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.service-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.service-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Secțiuni în modal */
.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #f1f1f1;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-section-title i {
    font-size: 1rem;
}

/* Grid de statistici în modal */
.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.modal-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.25s ease;
}

.modal-stat:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.modal-stat-label {
    font-size: 0.75rem;
    color: #909497;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-stat-value {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    color: #f1f1f1;
    font-weight: 700;
}

.modal-stat-hint {
    font-size: 0.7rem;
    color: #626567;
    font-weight: 500;
    margin-top: 2px;
}

/* Ultimul incident */
.modal-last-incident {
    background: rgba(243, 156, 18, 0.08);
    border: 1px solid rgba(243, 156, 18, 0.15);
    border-radius: 20px;
    padding: 18px 20px;
}

.modal-last-incident .modal-section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
}

.modal-incident-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-incident-reason {
    font-size: 1rem;
    color: #f1f1f1;
    font-weight: 600;
}

.modal-incident-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #b0b0b0;
}

.modal-incident-meta i {
    color: #909497;
    margin-right: 4px;
}

/* =====================================================
   MOBIL
   ===================================================== */

@media (max-width: 768px) {
    .service-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }
    
    .service-modal {
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
    }
    
    .service-modal-header {
        padding: 18px 20px;
    }
    
    .service-modal-title h2 {
        font-size: 1.2rem;
    }
    
    .service-modal-body {
        padding: 18px 20px;
    }
    
    .modal-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .service-more-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}







/* =====================================================
   MODAL LOADING
   ===================================================== */

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 20px;
    text-align: center;
    color: #909497;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.modal-loading-spinner {
    width: 60px;
    height: 60px;
    animation: modalRotate 1s linear infinite;
}

.modal-loading-spinner svg {
    width: 100%;
    height: 100%;
    display: block;
}

.modal-loader-arc {
    fill: none;
    stroke: #27ae60;
    stroke-width: 7px;
    stroke-linecap: round;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: modalAnimateArc 2s ease-in-out infinite alternate;
}

@keyframes modalRotate {
    100% { transform: rotate(360deg); }
}

@keyframes modalAnimateArc {
    0% { stroke-dashoffset: 55; }
    100% { stroke-dashoffset: 165; }
}











/* =====================================================
   UPTIME CALENDAR - COMPACT
   ===================================================== */

.calendar-container {
    margin: 32px auto;
    padding: 20px 24px;
    max-width: 480px;
    background: rgba(35, 35, 40, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    box-shadow: 
        0 8px 25px -8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.calendar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f1f1;
    margin: 0;
}

.calendar-title i {
    color: #3498db;
    font-size: 1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #f1f1f1;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.calendar-nav-btn:hover:not(:disabled) {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.4);
    color: #3498db;
    transform: scale(1.08);
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-month {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f1f1;
    min-width: 100px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 14px;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-day-name {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #626567;
    padding: 4px 0;              /* ✅ era 8px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    font-weight: 600;
    color: #909497;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    width: 100%;
}

.calendar-day:hover {
    transform: scale(1.08);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Zile colorate */
.calendar-day.excellent {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.35);
    color: #27ae60;
}

.calendar-day.excellent:hover {
    background: rgba(39, 174, 96, 0.25);
    border-color: rgba(39, 174, 96, 0.6);
}

.calendar-day.fair {
    background: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.35);
    color: #f39c12;
}

.calendar-day.fair:hover {
    background: rgba(243, 156, 18, 0.25);
    border-color: rgba(243, 156, 18, 0.6);
}

.calendar-day.poor {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.35);
    color: #e74c3c;
}

.calendar-day.poor:hover {
    background: rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.6);
}

.calendar-day.no-data {
    background: rgba(255, 255, 255, 0.02);
    color: #424949;
    cursor: default;
    opacity: 0.5;
}

.calendar-day.no-data:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.04);
}

.calendar-day.other-month {
    background: transparent;
    border-color: transparent;
    color: #424949;
    cursor: default;
    opacity: 0.3;
}

.calendar-day.other-month:hover {
    transform: none;
}

.calendar-day.today {
    border-width: 2px;
    font-weight: 700;
}

/* Legendă */
.calendar-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #909497;
    font-weight: 500;
}

.calendar-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.calendar-legend-dot.excellent {
    background: #27ae60;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.4);
}

.calendar-legend-dot.fair {
    background: #f39c12;
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.4);
}

.calendar-legend-dot.poor {
    background: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

.calendar-legend-dot.no-data {
    background: rgba(255, 255, 255, 0.1);
}

/* ✅ Tooltip fără emoji */
.calendar-tooltip {
    position: fixed;
    background: rgba(20, 20, 25, 0.98);
    color: #f1f1f1;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 200px;
    max-width: 280px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.calendar-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.calendar-tooltip-date {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f1f1;
    margin-bottom: 6px;
}

.calendar-tooltip-uptime {
    font-size: 0.8rem;
    color: #909497;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-tooltip-uptime strong {
    color: #27ae60;
    font-weight: 700;
    font-size: 0.9rem;
}

.calendar-tooltip-services {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-tooltip-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.75rem;
}

.calendar-tooltip-service-name {
    color: #b0b0b0;
}

.calendar-tooltip-service-value {
    color: #e74c3c;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-container {
        padding: 16px 18px;
        border-radius: 24px;
        margin: 24px 0;
    }
    
    .calendar-header {
        margin-bottom: 14px;
    }
    
    .calendar-title {
        font-size: 1rem;
    }
    
    .calendar-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .calendar-month {
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .calendar-grid {
        gap: 3px;                /* ✅ mai mic pe mobil */
    }
    
    .calendar-day-name {
        font-size: 0.65rem;
        padding: 3px 0;
    }
    
    .calendar-day {
        font-size: 0.7rem;
        border-radius: 6px;
    }
    
    .calendar-legend {
        gap: 10px;
    }
    
    .calendar-legend-item {
        font-size: 0.7rem;
    }
    
    .calendar-legend-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 14px 12px;
        border-radius: 20px;
    }
    
    .calendar-grid {
        gap: 2px;
    }
    
    .calendar-day {
        font-size: 0.65rem;
        border-radius: 5px;
    }
}

















/* =====================================================
   SERVICE GROUP COLLAPSIBLE + GROUP TOGGLE
   ===================================================== */

.service-group.collapsible {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Header grup */
.group-header {
    cursor: default;
    padding: 4px 5px;
    border-radius: 12px;
    margin-bottom: 0;
    transition: background 0.2s ease;
}

.group-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.group-header-top:hover {
    background: rgba(255, 255, 255, 0.02);
}

.group-title-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 16px;
}

/* Toggle 24h/90z pe grup */
.group-view-toggle {
    margin-bottom: 12px;
    display: flex;
    justify-content: flex-start;
}

.group-view-toggle .view-toggle {
    margin: 0;
}

/* Bara agregată */
.group-aggregated-bar {
    margin-bottom: 10px;
}

.group-aggregated-bar .hp-bar-big {
    height: 32px !important;
    gap: 3px !important;
    padding: 4px !important;
}

.group-aggregated-bar .beat {
    border-radius: 6px !important;
    min-height: 24px !important;
}

.group-aggregated-bar .hp-bar-big.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Bottom: count */
.group-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #909497;
    font-weight: 500;
    margin-bottom: 4px;
}

.group-components-count {
    color: #626567;
}

.group-toggle-icon {
    color: #626567;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.service-group.collapsible.expanded .group-toggle-icon {
    transform: rotate(180deg);
    color: #3498db;
}

/* Lista de servicii — ascunsă by default */
.service-group.collapsible .service-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin-top 0.3s ease;
    margin-top: 0;
}

/* Expandat */
.service-group.collapsible.expanded .service-list {
    max-height: 5000px;
    opacity: 1;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .group-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .group-title-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }
    
    .group-aggregated-bar .hp-bar-big {
        height: 26px !important;
        gap: 2px !important;
        padding: 3px !important;
    }
    
    .group-aggregated-bar .beat {
        min-height: 20px !important;
        border-radius: 4px !important;
    }
    
    .group-header-bottom {
        font-size: 0.8rem;
    }
}
















/* Modal overlay */
.subscribe-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.subscribe-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.subscribe-modal {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(34px) saturate(140%);
    -webkit-backdrop-filter: blur(34px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 40px;
    width: 100%;
    max-width: 480px;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.25s ease;
    position: relative;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}








.subscribe-modal-overlay.active .subscribe-modal {
    transform: scale(1);
}

.subscribe-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.subscribe-modal-header h3 {
    margin: 0;
    color: #f1f1f1;
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.subscribe-modal-close {
    position: absolute;  
    top: 12px;         
    right: 12px;            
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #909497;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
    outline: none;
    z-index: 10;
}

.subscribe-modal-close svg {
    width: 22px;
    height: 22px;
    display: block;
    transition: transform 0.2s ease;
}

.subscribe-modal-close:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #f1f1f1;
}

.subscribe-modal-desc {
    color: #909497;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Form */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 30px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.subscribe-input-group:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.subscribe-input-group i {
    color: #909497;
    font-size: 0.9rem;
}

.subscribe-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f1f1f1;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.subscribe-input-group input::placeholder {
    color: #909497;
}

.subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 30px;
    color: #f1f1f1;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.subscribe-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.subscribe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subscribe-message {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.subscribe-message.success {
    display: block;
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #2ecc71;
}

.subscribe-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}









/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Theme toggle button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: #f1f1f1;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    padding: 0;
    outline: none;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.theme-toggle-btn svg {
    transition: opacity 0.2s ease, transform 0.2s ease;
}


/* Ascunde iconița soarelui în DARK mode (default) */
.theme-icon-sun {
    display: none;
}

/* Arată iconița lunii în DARK mode (default) */
.theme-icon-moon {
    display: block;
}

/* În LIGHT mode — invers */
body.light .theme-icon-sun {
    display: block;
}

body.light .theme-icon-moon {
    display: none;
}

/* Light mode */
body.light .theme-icon-sun {
    display: block;
}

body.light .theme-icon-moon {
    display: none;
}

@media (max-width: 768px) {
    .header-actions {
        gap: 8px;
    }
    
    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
}



























/* =====================================================
   LIGHT MODE — COMPLET (html.light)
   ===================================================== */

/* ---------- TRANZIȚII LINE LA SCHIMBAREA TEMEI ---------- */
body,
.site-header,
.brand-name,
.brand-logo,
.subscribe-header-btn,
.theme-toggle-btn,
.overall-status,
.overall-status i,
#overall-status-text,
.description,
.stat-item,
.stat-icon,
.stat-value,
.stat-label,
.service-name,
.service-status,
.view-toggle,
.view-toggle-btn,
.view-toggle-slider,
.uptime-time,
.time-left,
.time-right,
.quick-info-value,
.incident-title,
.incident-message,
.incident-footer,
.affected-service-btn,
.incidents-btn,
footer,
.footer,
.footer p,
.api-links a,
.subscribe-input-group,
.subscribe-input-group input,
.subscribe-btn,
.subscribe-message,
.service-modal,
.service-modal-title h2,
.service-modal-close,
.modal-section-title,
.modal-stat,
.modal-stat-label,
.modal-stat-value,
.modal-stat-hint,
.modal-last-incident,
.modal-incident-reason,
.modal-incident-meta,
.service-more-btn,
.loading,
.skeleton-line,
.skeleton-box,
.skeleton-bar,
.skeleton-group,
.skeleton-service-item,
.skeleton-bars,
.skeleton-toggle,
.calendar-container,
.calendar-title,
.calendar-nav-btn,
.calendar-month,
.calendar-day-name,
.calendar-day,
.calendar-legend-item,
.calendar-tooltip,
.storage-btn,
.help-btn {
    transition: 
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* ---------- Fundal ---------- */
html.light::before {
    background-image: url('https://cdn.adelin.org/public/wp/status-wp/3i89u63i89u63i89-light-v4-b.png') !important;
    /* filter: blur(70px) brightness(1.05) saturate(1.1) !important; */
}

html.light::after {
    background: rgba(255, 255, 255, 0.25) !important;
}

html.light {
    background-color: #f4f5f7;
    color: #566573;
    --color-bg: #f4f5f7;
    --color-text-primary: #566573;
    --color-text-heading: #141414;
    --color-text-secondary: #909497;
    --color-block-bg: #ffffff;
    --color-border: rgba(0, 0, 0, 0.08);
}

/* ---------- Header ---------- */
html.light .site-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light .brand-name {
    color: #141414;
}

html.light .brand-logo {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)) 
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

html.light .subscribe-header-btn {
    background: rgb(255 255 255 / 55%);
    border-color: rgba(0, 0, 0, 0.08);
    color: #141414;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 2px 4px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html.light .subscribe-header-btn:hover {
    background: rgb(255 255 255 / 75%);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.1),
        0 3px 6px rgba(0, 0, 0, 0.06);
}

html.light .theme-toggle-btn {
    background: rgb(255 255 255 / 55%);
    border-color: rgba(0, 0, 0, 0.08);
    color: #141414;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 2px 4px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html.light .theme-toggle-btn:hover {
    background: rgb(255 255 255 / 75%);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.1),
        0 3px 6px rgba(0, 0, 0, 0.06);
}

/* ---------- Overall status ---------- */
html.light .overall-status {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    color: #141414;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

html.light .overall-status > div,
html.light #overall-status-text {
    color: #141414 !important;
}

html.light .overall-status.ok {
    background-color: #d4f5e0;
    border-color: transparent;
    box-shadow: 
        0 8px 24px rgba(39, 174, 96, 0.15),
        0 4px 8px rgba(39, 174, 96, 0.08);
}

html.light .overall-status.ok i { color: #27ae60; }
html.light .overall-status.ok #overall-status-text { color: #1e8449 !important; }

html.light .overall-status.warning {
    background-color: #fef1d8;
    border-color: none;
    box-shadow: 
        0 8px 24px rgba(243, 156, 18, 0.15),
        0 4px 8px rgba(243, 156, 18, 0.08);
}
html.light .overall-status.warning i { color: #e67e22; }
html.light .overall-status.warning #overall-status-text { color: #b9770e !important; }

html.light .overall-status.danger {
    background-color: #fde4e1;
    border-color: #f5b7b1;
    box-shadow: 
        0 8px 24px rgba(231, 76, 60, 0.15),
        0 4px 8px rgba(231, 76, 60, 0.08);
}
html.light .overall-status.danger i { color: #c0392b; }
html.light .overall-status.danger #overall-status-text { color: #c0392b !important; }

/* ---------- Description ---------- */
html.light .description {
    background-color: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.06);
    color: #566573;
    box-shadow: 0 8px 24px rgb(0 0 0 / 15%), 0 4px 8px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html.light .description p { color: #566573; }

/* ---------- Stats ---------- */
html.light .stat-item {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 5px 30px rgb(0 0 0 / 18%), 0 4px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html.light .stat-item:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 6px 14px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

html.light .stat-value,
html.light #total-servers,
html.light #avg-response-time,
html.light #reliability-score {
    color: #141414 !important;
}

html.light .stat-value span { color: #141414 !important; }
html.light .stat-label { color: #626567; }

html.light .stat-icon {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.12);
}
html.light .stat-item:nth-child(2) .stat-icon {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.12);
}
html.light .stat-item:nth-child(3) .stat-icon {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.12);
}

/* ---------- Service groups ---------- */
html.light .service-group {
    background: rgb(255 255 255 / 65%);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 50px 0px rgb(0 0 0 / 24%), 0 8px 20px -4px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

html.light .group-name { color: #141414; }
html.light .group-uptime { color: #27ae60; }

/* ---------- Service items ---------- */
html.light .service-item {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 10px 28px -8px rgba(0, 0, 0, 0.1),
        0 4px 12px -4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html.light .service-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 16px 40px -8px rgba(0, 0, 0, 0.15),
        0 8px 20px -4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

html.light .service-item.offline-bg {
    background: rgba(231, 76, 60, 0.08) !important;
    border-color: rgba(231, 76, 60, 0.15) !important;
    box-shadow: 
        0 10px 28px -8px rgba(231, 76, 60, 0.12),
        0 4px 12px -4px rgba(231, 76, 60, 0.06);
}

html.light .service-item.status-warning-bg, html.light .service-item.status-slow-bg {
    background: rgb(243 156 18 / 22%) !important;
    box-shadow: 0 10px 28px -8px rgb(243 156 18 / 32%), 0 4px 12px -4px rgba(243, 156, 18, 0.06);
}

html.light .service-name { color: #141414; }
html.light .service-name.has-link:hover { color: #1abc9c !important; }

/* ---------- Service status badges ---------- */
html.light .service-status {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.25);
    color: #27ae60;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.1);
}

html.light .service-status.status-up {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.25);
    color: #27ae60;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.1);
}

html.light .service-status.status-down {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.25);
    color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

html.light .service-status.status-warning {
    background: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.25);
    color: #f39c12;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.1);
}

/* ---------- View toggle (24h/90z) ---------- */
html.light .view-toggle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.light .view-toggle-btn { color: #626567; }
html.light .view-toggle-btn:hover:not(.active) { color: #141414; }
html.light .view-toggle-btn.active { color: #27ae60; }

html.light .view-toggle-slider {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.25) 0%, rgba(39, 174, 96, 0.15) 100%);
    border-color: rgba(39, 174, 96, 0.3);
    box-shadow: 
        0 4px 12px rgba(39, 174, 96, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ---------- Uptime bars container ---------- */
html.light .hp-bar-big {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.light .hp-bar-big .beat.empty {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

html.light .uptime-time,
html.light .time-left,
html.light .time-right { color: #626567; }

/* ---------- Quick info ---------- */
html.light .quick-info-value.uptime.uptime-good {
    color: #27ae60;
    text-shadow: 0 0 12px rgba(39, 174, 96, 0.15);
}
html.light .quick-info-value.uptime.uptime-ok { color: #2ecc71; }
html.light .quick-info-value.uptime.uptime-warn { color: #f39c12; }
html.light .quick-info-value.uptime.uptime-bad { color: #e74c3c; }

/* ---------- Tooltips ---------- */
html.light .beat-tooltip {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8fa 50%, #f5f5f8 100%) !important;
    color: #141414 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

html.light .beat-tooltip::before { border-top-color: #f5f5f8 !important; }

html.light .beat.down .beat-tooltip {
    background: linear-gradient(135deg, #fff0ee 0%, #ffe0dc 50%, #ffe5e0 100%) !important;
    color: #c0392b !important;
    box-shadow: 
        0 12px 32px rgba(231, 76, 60, 0.2),
        0 4px 8px rgba(231, 76, 60, 0.1) !important;
}
html.light .beat.down .beat-tooltip::before { border-top-color: #ffe5e0 !important; }

html.light .tooltip-time { color: #626567 !important; }
html.light .tooltip-additional { color: #909497; }
html.light .tooltip-ping.fast { color: #27ae60 !important; }
html.light .tooltip-ping.normal { color: #f39c12 !important; }
html.light .tooltip-ping.slow { color: #e74c3c !important; }
html.light .tooltip-status.up { background: #27ae60; }
html.light .tooltip-status.down { background: #e74c3c; }
html.light .tooltip-status.pending { background: #f39c12; }
html.light .tooltip-days { border-top-color: rgba(0, 0, 0, 0.08); }
html.light .tooltip-day-row { color: #626567; }
html.light .tooltip-day-row span:last-child { color: #141414; }

/* ---------- Incidente ---------- */





/* Container general */
html.light .incident-status {
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ===== RED — incident critic ===== */
html.light .incident-status.red {
    background-color: #fde4e1;
    border-color: #f5b7b1;
    box-shadow: 
        0 8px 24px rgba(231, 76, 60, 0.15),
        0 4px 8px rgba(231, 76, 60, 0.08);
}

html.light .incident-status.red .incident-title {
    color: #c0392b;
}

html.light .incident-status.red .incident-message {
    color: #922b21;
}

html.light .incident-status.red .incident-footer {
    color: #c0392b;
    border-top-color: rgba(231, 76, 60, 0.15);
}

/* ===== ORANGE — avertizare ===== */
html.light .incident-status.orange {
    background-color: #fef1d8;
    border-color: #f8d999;
    box-shadow: 
        0 8px 24px rgba(243, 156, 18, 0.15),
        0 4px 8px rgba(243, 156, 18, 0.08);
}

html.light .incident-status.orange .incident-title {
    color: #b9770e;
}

html.light .incident-status.orange .incident-message {
    color: #9c640c;
}

html.light .incident-status.orange .incident-footer {
    color: #b9770e;
    border-top-color: rgba(243, 156, 18, 0.15);
}

/* ===== YELLOW — atenționare ===== */
html.light .incident-status.yellow {
    background-color: #fef9e7;
    border-color: none;
    box-shadow: 
        0 8px 24px rgba(241, 196, 15, 0.15),
        0 4px 8px rgba(241, 196, 15, 0.08);
}

html.light .incident-status.yellow .incident-title {
    color: #9a7d0a;
}

html.light .incident-status.yellow .incident-message {
    color: #7d6608;
}

html.light .incident-status.yellow .incident-footer {
    color: #9a7d0a;
    border-top-color: rgba(241, 196, 15, 0.15);
}

/* ===== GREEN — rezolvat ===== */
html.light .incident-status.green {
    background-color: #d4f5e0;
    border-color: #a8e6c1;
    box-shadow: 
        0 8px 24px rgba(39, 174, 96, 0.15),
        0 4px 8px rgba(39, 174, 96, 0.08);
}

html.light .incident-status.green .incident-title {
    color: #1e8449;
}

html.light .incident-status.green .incident-message {
    color: #196f3d;
}

html.light .incident-status.green .incident-footer {
    color: #1e8449;
    border-top-color: rgba(39, 174, 96, 0.15);
}

/* ===== BLUE — informare ===== */
html.light .incident-status.blue {
    background-color: #d6eaf8;
    border-color: #aed6f1;
    box-shadow: 
        0 8px 24px rgba(52, 152, 219, 0.15),
        0 4px 8px rgba(52, 152, 219, 0.08);
}

html.light .incident-status.blue .incident-title {
    color: #2471a3;
}

html.light .incident-status.blue .incident-message {
    color: #1a5276;
}

html.light .incident-status.blue .incident-footer {
    color: #2471a3;
    border-top-color: rgba(52, 152, 219, 0.15);
}

/* ===== PURPLE — sistem ===== */
html.light .incident-status.purple {
    background-color: #ebdef0;
    border-color: #d7bde2;
    box-shadow: 
        0 8px 24px rgba(155, 89, 182, 0.15),
        0 4px 8px rgba(155, 89, 182, 0.08);
}

html.light .incident-status.purple .incident-title {
    color: #7d3c98;
}

html.light .incident-status.purple .incident-message {
    color: #633974;
}

html.light .incident-status.purple .incident-footer {
    color: #7d3c98;
    border-top-color: rgba(155, 89, 182, 0.15);
}

/* ===== GRAY — info neutru ===== */
html.light .incident-status.gray {
    background-color: #f4f5f6;
    border-color: #d5d8dc;
    box-shadow: 
        0 8px 24px rgba(128, 128, 128, 0.12),
        0 4px 8px rgba(128, 128, 128, 0.06);
}

html.light .incident-status.gray .incident-title {
    color: #566573;
}

html.light .incident-status.gray .incident-message {
    color: #626567;
}

html.light .incident-status.gray .incident-footer {
    color: #909497;
    border-top-color: rgba(128, 128, 128, 0.15);
}

/* ===== Butoane servicii afectate ===== */
html.light .incident-status .affected-service-btn {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
    color: #141414;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

html.light .incident-status .affected-service-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html.light .incident-status.red .affected-service-btn {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

html.light .incident-status.red .affected-service-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(231, 76, 60, 0.4);
}

html.light .incident-status.orange .affected-service-btn {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(243, 156, 18, 0.2);
    color: #b9770e;
}

html.light .incident-status.green .affected-service-btn {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(39, 174, 96, 0.2);
    color: #1e8449;
}

html.light .incident-status .affected-label {
    color: #566573;
}

html.light .incident-status.red .affected-label {
    color: #922b21;
}

html.light .incident-status.orange .affected-label {
    color: #9c640c;
}

html.light .incident-status.green .affected-label {
    color: #196f3d;
}







html.light .incident-title { color: #141414; }
html.light .incident-message { color: #566573; }
html.light .incident-footer {
    color: #909497;
    border-top-color: rgba(0, 0, 0, 0.06);
}

html.light .affected-label { color: #626567; }
html.light .affected-service-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: #141414;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
html.light .affected-service-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html.light .incidents-btn {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    box-shadow: 
        0 8px 24px rgba(39, 174, 96, 0.15),
        0 4px 8px rgba(39, 174, 96, 0.08);
}
html.light .incidents-btn:hover {
    background: rgba(39, 174, 96, 0.25);
    color: #2ecc71;
    box-shadow: 
        0 12px 32px rgba(39, 174, 96, 0.2),
        0 6px 12px rgba(39, 174, 96, 0.1);
}

/* ---------- Footer ---------- */
html.light footer,
html.light .footer,
html.light .footer p { color: #909497; }

html.light .api-links a {
    color: #626567;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 2px 4px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html.light .api-links a:hover {
    color: #141414;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
}

/* ---------- Subscribe modal ---------- */
html.light .subscribe-modal-overlay { background: rgba(0, 0, 0, 0.2); }

html.light .subscribe-modal {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 32px 90px rgba(0, 0, 0, 0.25),
        0 12px 32px rgba(0, 0, 0, 0.12);
}

html.light .subscribe-modal-header h3 { color: #141414; }
html.light .subscribe-modal-close { color: #626567; }
html.light .subscribe-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #141414;
}
html.light .subscribe-modal-desc { color: #566573; }

html.light .subscribe-input-group {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}
html.light .subscribe-input-group:focus-within {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 
        0 0 0 3px rgba(52, 152, 219, 0.1),
        inset 0 1px 3px rgba(0, 0, 0, 0.03);
}
html.light .subscribe-input-group i { color: #909497; }
html.light .subscribe-input-group input { color: #141414; }
html.light .subscribe-input-group input::placeholder { color: #909497; }

html.light .subscribe-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: #141414;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
html.light .subscribe-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

html.light .subscribe-message.success {
    background: rgba(39, 174, 96, 0.12);
    border-color: rgba(39, 174, 96, 0.25);
    color: #1e8449;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.1);
}
html.light .subscribe-message.error {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.25);
    color: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.1);
}

/* ---------- Service modal (details) ---------- */
html.light .service-modal-overlay { background: rgba(0, 0, 0, 0.3); }

html.light .service-modal {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 32px 90px rgba(0, 0, 0, 0.25),
        0 12px 32px rgba(0, 0, 0, 0.12);
}

html.light .service-modal-title h2 { color: #141414; }
html.light .service-modal-title i { color: #3498db; }

html.light .service-modal-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
    color: #626567;
}
html.light .service-modal-close:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

html.light .modal-section-title {
    color: #141414;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light .modal-stat {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
html.light .modal-stat:hover {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
html.light .modal-stat-label { color: #909497; }
html.light .modal-stat-value { color: #141414; }
html.light .modal-stat-hint { color: #626567; }

html.light .modal-last-incident {
    background: rgba(243, 156, 18, 0.08);
    border-color: rgba(243, 156, 18, 0.15);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.08);
}
html.light .modal-incident-reason { color: #141414; }
html.light .modal-incident-meta { color: #626567; }
html.light .modal-loading { color: #626567; }
html.light .modal-loader-arc { stroke: #27ae60; }

/* ---------- Service more button ---------- */
html.light .service-more-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
    color: #626567;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
html.light .service-more-btn:hover {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.15);
}

/* ---------- Loading / skeleton ---------- */
html.light .loading {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(245, 245, 248, 0.7) 100%);
    border-color: rgba(0, 0, 0, 0.06);
    color: #141414;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

html.light .loader {
    border-color: rgba(0, 0, 0, 0.15);
    border-top-color: #141414;
}
html.light .loader-arc { stroke: #141414; }

html.light .skeleton-line,
html.light .skeleton-box {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.04) 100%
    ) !important;
}

html.light .skeleton-bar {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.04) 100%
    ) !important;
}

html.light .skeleton-group {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.1),
        0 8px 20px -4px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

html.light .skeleton-service-item {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 10px 28px -8px rgba(0, 0, 0, 0.08),
        0 4px 12px -4px rgba(0, 0, 0, 0.04);
}

html.light .skeleton-bars {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

html.light .skeleton-toggle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

/* ---------- Calendar ---------- */
html.light .calendar-container {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.1),
        0 8px 20px -4px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

html.light .calendar-title { color: #141414; }
html.light .calendar-nav-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
    color: #141414;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
html.light .calendar-nav-btn:hover:not(:disabled) {
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
    color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

html.light .calendar-month { color: #141414; }
html.light .calendar-day-name { color: #909497; }
html.light .calendar-day {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    color: #626567;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
html.light .calendar-day.excellent {
    background: rgba(39, 174, 96, 0.12);
    border-color: rgba(39, 174, 96, 0.3);
    color: #1e8449;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.1);
}
html.light .calendar-day.fair {
    background: rgba(243, 156, 18, 0.12);
    border-color: rgba(243, 156, 18, 0.3);
    color: #b9770e;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.1);
}
html.light .calendar-day.poor {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.3);
    color: #c0392b;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}
html.light .calendar-day.no-data {
    background: rgba(0, 0, 0, 0.02);
    color: #b0b0b0;
}
html.light .calendar-day.other-month { color: #d0d0d0; }
html.light .calendar-legend-item { color: #626567; }

html.light .calendar-tooltip {
    background: rgba(255, 255, 255, 0.98);
    color: #141414;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 16px 44px rgba(0, 0, 0, 0.2),
        0 6px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
html.light .calendar-tooltip-date { color: #141414; }
html.light .calendar-tooltip-uptime {
    color: #626567;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
html.light .calendar-tooltip-service-name { color: #626567; }
html.light .calendar-tooltip-service-value { color: #c0392b; }

/* ---------- Floating buttons ---------- */
html.light .storage-btn,
html.light .help-btn {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.08);
    color: #141414;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
html.light .storage-btn:hover,
html.light .help-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.15),
        0 6px 12px rgba(0, 0, 0, 0.08);
}











/* Mobile (max 768px) */
@media (max-width: 768px) {
    .site-header {
        padding: 14px 0 18px 0;
        margin-bottom: 18px;
        gap: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .site-brand {
        gap: 15px;
        flex-shrink: 0;
        min-width: 0;
    }
    
    .brand-logo {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .brand-name {
        font-size: 1.6rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Butoanele rămân pe același rând, aliniate dreapta */
    .header-actions {
        display: flex;
        flex-direction: row;
        gap: 8px;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    /* Buton Subscribe — doar iconiță pe mobil */
    .subscribe-header-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 12px;
        min-width: 42px;
        height: 42px;
        justify-content: center;
        align-items: center;
    }
    
    .subscribe-header-btn span {
        display: none;
    }
    
    .subscribe-header-btn i {
        font-size: 1.15rem;
    }
    
    .theme-toggle-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        flex-shrink: 0;
    }
    
    .theme-toggle-btn svg {
        width: 20px;
        height: 20px;
    }
}















@media (max-width: 768px) {
    .beat-tooltip {
        display: none !important;
    }
    
    .hp-bar-big .beat:hover,
    .hp-bar-big .beat:active {
        transform: none !important;
    }
}






@media (max-width: 768px) {
    .subscribe-modal-overlay {
        padding: 16px;
        align-items: center;
        justify-content: center;
    }
    
    .subscribe-modal {
        max-width: 100%;
        width: 96%;
        padding: 26px 22px;
        border-radius: 36px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        margin: auto;
    }
    
    .subscribe-modal-header {
        margin-bottom: 12px;
        padding-right: 40px;
    }
    
    .subscribe-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .subscribe-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    .subscribe-modal-close svg {
        width: 22px;
        height: 22px;
    }
    
    .subscribe-modal-desc {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    .subscribe-input-group {
        padding: 12px 16px;
        border-radius: 16px;
        gap: 8px;
    }
    
    .subscribe-input-group i {
        font-size: 0.85rem;
    }
    
    .subscribe-input-group input {
        font-size: 0.9rem;
    }
    
    .subscribe-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 16px;
        gap: 6px;
    }
    
    .subscribe-btn i {
        font-size: 0.85rem;
    }
    
    .subscribe-message {
        font-size: 0.85rem;
        padding: 9px 12px;
        border-radius: 10px;
        margin-top: 12px;
    }
}













/* =====================================================
   LANGUAGE SWITCHER
   ===================================================== */

.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    color: #f1f1f1;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn i.fa-globe {
    font-size: 0.95rem;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 110px;
    background: rgba(20, 20, 22, 0.55);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 1000;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #d0d0d0;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    line-height: 1.2;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f1f1;
}

.lang-option.active {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
}

/* =====================================================
   LIGHT MODE
   ===================================================== */

html.light .lang-btn {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
    color: #141414;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html.light .lang-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
}

html.light .lang-dropdown {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html.light .lang-option {
    color: #566573;
}

html.light .lang-option:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #141414;
}

html.light .lang-option.active {
    background: rgba(39, 174, 96, 0.12);
    color: #1e8449;
}
















/* =====================================================
   SUBSCRIBE SUCCESS ANIMATION
   ===================================================== */

.subscribe-modal {
    position: relative;
    overflow: hidden;
}

.subscribe-modal-inner {
    position: relative;
    width: 100%;
}

.subscribe-content {
    opacity: 1;
    transform: scale(1);
    transition: 
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.subscribe-content.fade-out {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

.subscribe-success {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    gap: 10px;
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    transition: 
        opacity 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
        transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.subscribe-success.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}




.success-icon-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.success-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.success-circle {
    fill: #27ae60;
    stroke: none;
    transform-origin: 50% 50%;
    transform: scale(0);
    filter: drop-shadow(0 0 20px rgba(39, 174, 96, 0.5));
}

.subscribe-success.visible .success-circle {
    animation: circlePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

@keyframes circlePop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.success-check {
    fill: none;
    stroke: #ffffff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
}

.subscribe-success.visible .success-check {
    animation: drawCheck 0.3s cubic-bezier(0.65, 0, 0.35, 1) 0.45s forwards;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.success-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f1f1;
    margin: 0 0 10px 0;
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.subscribe-success.visible .success-title {
    animation: successTextIn 0.4s cubic-bezier(0.34, 1.3, 0.64, 1) 0.7s forwards;
}

@keyframes successTextIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #909497;
    margin: 0;
    max-width: 340px;
    line-height: 1.55;
    opacity: 0;
    transform: translateY(8px);
}

.subscribe-success.visible .success-desc {
    animation: successTextIn 0.4s cubic-bezier(0.34, 1.3, 0.64, 1) 0.85s forwards;
}

/* Light mode */
html.light .success-title {
    color: #141414;
}

html.light .success-desc {
    color: #566573;
}

html.light .success-circle {
    filter: drop-shadow(0 0 18px rgba(39, 174, 96, 0.35));
}











/* =====================================================
   UNSUBSCRIBE MODAL
   ===================================================== */

.subscribe-unsubscribe-link {
    display: block;
    width: 100%;
    margin-top: 22px;
    background: transparent;
    border: none;
    color: #909497;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(144, 148, 151, 0.3);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.subscribe-unsubscribe-link:hover {
    color: #e74c3c;
    text-decoration-color: rgba(231, 76, 60, 0.5);
}

.subscribe-btn.unsubscribe-submit {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.subscribe-btn.unsubscribe-submit:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
}

.subscribe-btn.unsubscribe-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.subscribe-success .success-circle.unsubscribe-circle {
    fill: #e74c3c;
    filter: drop-shadow(0 0 16px rgba(231, 76, 60, 0.5));
}

html.light .subscribe-unsubscribe-link {
    color: #626567;
}

html.light .subscribe-unsubscribe-link:hover {
    color: #c0392b;
}

html.light .subscribe-btn.unsubscribe-submit {
    background: rgba(231, 76, 60, 0.08);
    border-color: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

html.light .subscribe-btn.unsubscribe-submit:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.35);
}






/* =====================================================
   TURNSTILE WIDGET
   ===================================================== */

.subscribe-form .cf-turnstile {
    margin: 12px 0;
    display: flex;
    justify-content: center;
    min-height: 65px;
}

.subscribe-form .cf-turnstile iframe {
    border-radius: 8px;
}



/* Stiluri doar pentru telefon (ecrane mici) */
@media (max-width: 768px) {
    .lang-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 12px;
        min-width: 42px;
        height: 42px;
        justify-content: center;
        align-items: center;
    }
}














/* =====================================================
   MOBILE HEADER STACK — ≤ 480px
   Logo mare sus → Text centrat → Butoane centrate jos
   ===================================================== */

@media (max-width: 480px) {
    .site-header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 18px !important;
        margin-bottom: 22px !important;
        margin-top: -30px !important;
    }

    /* Brand-ul devine coloană centrată */
    .site-brand {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1px !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Logo MARE, primul */
    .brand-logo {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto !important;
        order: 1 !important;
    }

    /* Text MARE sub logo, centrat */
    .brand-name {
        font-size: 2.6rem !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
        order: 2 !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        letter-spacing: -0.5px !important;
    }

    /* Butoanele — rând centrat, sub text */
    .header-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* Buton Subscribe — doar iconiță, pătrat rotunjit */
    .subscribe-header-btn {
        padding: 0 !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 14px !important;
        justify-content: center !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    .subscribe-header-btn span {
        display: none !important;
    }

    .subscribe-header-btn i {
        font-size: 1.3rem !important;
    }

    /* Lang switcher */
    .lang-switcher {
        display: inline-flex !important;
        align-items: center !important;
    }

    .lang-btn {
        padding: 0 !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 14px !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 1rem !important;
        flex-shrink: 0 !important;
    }

    /* Theme toggle */
    .theme-toggle-btn {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 14px !important;
        flex-shrink: 0 !important;
    }

    .theme-toggle-btn svg {
        width: 22px !important;
        height: 22px !important;
    }

        /* Iconița glob mai mare pe telefon */
    .lang-btn i.fa-globe {
        font-size: 1.3rem !important;
    }
}











/* =====================================================
   RATE LIMIT MODAL — CLEAN & ELEGANT
   ===================================================== */

.rate-limit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rate-limit-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rate-limit-modal {
    background: rgba(28, 28, 32, 0.96);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 44px 36px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 32px 90px rgba(0, 0, 0, 0.55),
        0 12px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: scale(0.94) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rate-limit-modal-overlay.active .rate-limit-modal {
    transform: scale(1) translateY(0);
}

.rate-limit-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(230, 126, 34, 0.08));
    border: 1px solid rgba(243, 156, 18, 0.25);
    color: #f39c12;
    animation: rateLimitIconPulse 2.4s ease-in-out infinite;
}

.rate-limit-icon-svg {
    width: 44px;
    height: 44px;
    color: #f39c12;
}

@keyframes rateLimitIconPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 0 rgba(243, 156, 18, 0.4),
            0 8px 24px rgba(243, 156, 18, 0.15);
    }
    50% {
        box-shadow: 
            0 0 0 16px rgba(243, 156, 18, 0),
            0 8px 24px rgba(243, 156, 18, 0.25);
    }
}

.rate-limit-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #f1f1f1;
    margin: 0 0 14px 0;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.rate-limit-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #909497;
    line-height: 1.6;
    margin: 0 0 32px 0;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.rate-limit-retry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.95), rgba(46, 204, 113, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 24px rgba(39, 174, 96, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rate-limit-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(39, 174, 96, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.rate-limit-retry-btn:active {
    transform: translateY(0) scale(0.98);
}

.rate-limit-retry-btn i {
    font-size: 0.9rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rate-limit-retry-btn:hover i {
    transform: rotate(180deg);
}

/* Light mode */
html.light .rate-limit-modal-overlay {
    background: rgba(255, 255, 255, 0.4);
}

html.light .rate-limit-modal {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 32px 90px rgba(0, 0, 0, 0.15),
        0 12px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

html.light .rate-limit-icon-wrapper {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.12), rgba(230, 126, 34, 0.06));
    border-color: rgba(243, 156, 18, 0.2);
}

html.light .rate-limit-title {
    color: #141414;
}

html.light .rate-limit-subtitle {
    color: #626567;
}

/* Mobile */
@media (max-width: 480px) {
    .rate-limit-modal {
        padding: 36px 24px 28px;
        border-radius: 28px;
        max-width: 100%;
    }
    
    .rate-limit-icon-wrapper {
        width: 76px;
        height: 76px;
        margin-bottom: 20px;
    }
    
    .rate-limit-icon-svg {
        width: 38px;
        height: 38px;
    }
    
    .rate-limit-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .rate-limit-subtitle {
        font-size: 0.9rem;
        margin-bottom: 26px;
    }
    
    .rate-limit-retry-btn {
        padding: 13px 30px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 240px;
    }
}