* { margin: 0; padding: 0; box-sizing: border-box; }

/* ============================================
   ANIMATED BACKGROUND GRADIENT
   ============================================ */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(-45deg, #0B1426, #0D1829, #0F1D2F, #0B1426);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;

}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   ULTRA-WIDE SCREEN OPTIMIZATION
   ============================================ */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 2rem 3rem;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 1800px;
        padding: 2rem 4rem;
    }
}

/* ============================================
   HEADER & LOGO SECTION
   ============================================ */
.header {
    text-align: center;
    padding: 2rem 0 1.5rem;
    position: relative;
}

/* Warm amber glow effect behind owl logo */
.header::before {    display: none;}

.header .owl-logo {    display: flex;    justify-content: center;    margin-bottom: 0.5rem;    position: relative;    z-index: 1;    min-height: 80px;}

/* Archimedes owl SVG styling */
.header .owl-logo .archimedes-wrapper {    display: flex;    flex-direction: column;    align-items: center;    width: auto;    height: auto;    margin: 0 auto;}

.header .owl-logo .archimedes-body {
    width: 130px;
    height: 120px;
    cursor: pointer;
}

.header .owl-logo img {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Title with amber text gradient */
.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #F5A623 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.header .subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.header .owl-hint {
    font-size: 0.8rem;
    color: rgba(245, 166, 35, 0.7);
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
    animation: pulse-hint 3s ease-in-out infinite;
}

@keyframes pulse-hint {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

/* ============================================
   CONTROLS CARD - Glassmorphism
   ============================================ */
.controls-card {
    background: rgba(13, 24, 41, 0.7);
    border: 1px solid rgba(245, 166, 35, 0.08);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.controls-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.controls-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.last-sync {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

.last-sync-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* ============================================
   NAVIGATION TABS - Premium Pills
   ============================================ */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.nav-link {
    background: transparent;
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 25px;
    padding: 0.625rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: rgba(245, 166, 35, 0.1);
    border-color: rgba(245, 166, 35, 0.5);
    color: #F5A623;
    transform: translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(135deg, #F5A623 0%, #FFAA00 100%);
    border-color: transparent;
    color: #0B1426;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

/* ============================================
   REFRESH ALL BUTTON - Amber Outlined Style
   ============================================ */
button[onclick*="refreshAllNow"],
.control-group button:first-of-type {
    background: transparent !important;
    border: 1px solid rgba(245, 166, 35, 0.5) !important;
    color: #F5A623 !important;
    position: relative;
    overflow: hidden;
}

button[onclick*="refreshAllNow"]::before,
.control-group button:first-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(255, 170, 0, 0.08) 100%);
    z-index: -1;
}

button[onclick*="refreshAllNow"]:hover,
.control-group button:first-of-type:hover {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.25) 0%, rgba(255, 170, 0, 0.15) 100%) !important;
    border-color: rgba(245, 166, 35, 0.8) !important;
    color: #FFAA00 !important;
}

/* ============================================
   CONTROL GROUPS & BUTTONS
   ============================================ */
.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 14, 26, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-group label {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Premium unified buttons - Amber/Gold theme */
.control-group select,
.control-group button,
button,
.action-btn,
.card-action {
    background: linear-gradient(135deg, #F5A623 0%, #FFAA00 100%);
    border: none;
    color: #0B1426;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.875rem;

    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.control-group button:hover,
button:hover,
.action-btn:hover,
.card-action:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.control-group select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);

}

.refresh-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

.refresh-indicator.loading {
    background: #f59e0b;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   DASHBOARD GRID & CARDS - PREMIUM GLASSMORPHISM
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

@media (min-width: 1920px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 2560px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    .dashboard-card {
        min-height: 340px;
    }
}

/* Card entrance animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card {
    background: rgba(13, 24, 41, 0.7);
    border: 1px solid rgba(245, 166, 35, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.5s ease forwards;
}

/* Staggered animation delays for cards */
.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }
.dashboard-card:nth-child(5) { animation-delay: 0.5s; }
.dashboard-card:nth-child(6) { animation-delay: 0.6s; }
.dashboard-card:nth-child(7) { animation-delay: 0.7s; }
.dashboard-card:nth-child(8) { animation-delay: 0.8s; }

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 166, 35, 0.2);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(245, 166, 35, 0.08);
}

/* Remove colored left borders - completely uniform */
.dashboard-card.status-live,
.dashboard-card.status-dev,
.dashboard-card.status-offline {
    border-left: none !important;
}

.dashboard-card.loading {
    opacity: 0.7;
}

/* Loading Shimmer Effect */
.shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(245, 166, 35, 0.1) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Loading Spinner */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(245, 166, 35, 0.2);
    border-top-color: #F5A623;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* ============================================
   CARD ELEMENTS
   ============================================ */
.card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1rem;
    position: relative;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.2);
    flex-shrink: 0;
}

.card-title {
    flex: 1;
    min-width: 0;
    padding-right: 80px;
}

/* Position status badge to the right */
.card-header .status-badge {
    position: absolute;
    top: 0;
    right: 0;
}

.card-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.2;
    display: block;
    position: relative;
    z-index: 2;
}

.card-title .domain {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
    display: block;
}

.card-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.card-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 50px;
    margin-top: auto;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* ============================================
   STATUS BADGES - PREMIUM & ANIMATED
   ============================================ */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;

    text-transform: uppercase;
}

.status-badge.live {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    animation: pulseGlow 2s infinite;
}

.status-badge.dev {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   STATS & VALUE STYLING
   ============================================ */
.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #F5A623;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value.loading {
    color: #64748b;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.dev-stats-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
}

.dev-stats-badge {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

/* ============================================
   COMING SOON BADGE
   ============================================ */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: rgba(245, 166, 35, 0.1);
    color: rgba(245, 166, 35, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(245, 166, 35, 0.2);
}

/* ============================================
   CARD ACTIONS
   ============================================ */
.card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.card-action {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.875rem;

    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.card-action:hover {
    filter: brightness(1.15);
    transform: scale(1.02);
}

.card-action.dev-action {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.card-action.dev-action:hover {
    background: rgba(251, 146, 60, 0.25);
}
.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
}

/* Ensure text inside card-header is above the link */
.card-header .card-icon,
.card-header .card-title,
.card-header .status-badge {
    position: relative;
    z-index: 2;
}

.quick-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.action-btn {
    background: linear-gradient(135deg, #F5A623 0%, #FFAA00 100%);
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    color: #0B1426;
    font-size: 0.875rem;

    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

/* Sync badge */
.sync-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(10, 14, 26, 0.8);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.dashboard-card:hover .sync-badge {
    opacity: 1;
}

/* ============================================
   SYSTEM STATUS SECTION - PREMIUM
   ============================================ */
.system-status {
    background: rgba(13, 24, 41, 0.7);
    border: 1px solid rgba(245, 166, 35, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.system-status h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #F5A623;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(10, 14, 26, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.status-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 166, 35, 0.1);
    border-radius: 8px;
}

/* Status dots with glow and pulse animation */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    opacity: 0.4;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 0.1; }
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.status-dot.online::after {
    background: #22c55e;
}

.status-dot.warning {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    animation: pulse-warning 1.5s infinite;
}

.status-dot.warning::after {
    background: #f59e0b;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.status-dot.offline::after {
    display: none;
}

.status-text {
    flex: 1;
}

.status-text .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-text .value {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

}

.status-text .value.loading {
    color: #64748b;
}

/* ============================================
   FOOTER - PREMIUM SUBTLE
   ============================================ */
footer {
    text-align: center;
    padding: 3rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 2rem;
    border-top: none;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(245, 166, 35, 0.3) 20%,
        rgba(255, 170, 0, 0.3) 50%,
        rgba(245, 166, 35, 0.3) 80%,
        transparent 100%
    );
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.toast {
    background: rgba(15, 20, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;

    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.toast.success { border-left: 3px solid #22c55e; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.info { border-left: 3px solid #3b82f6; }

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.toast.hiding {
    animation: fadeOut 0.3s ease forwards;
}

/* ============================================
   ERROR BOUNDARY
   ============================================ */
.module-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1rem;
    color: #fca5a5;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.module-error .error-title { font-weight: 600; margin-bottom: 0.25rem; }
.module-error .error-detail { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; }

/* ============================================
   GUARDIAN STATUS
   ============================================ */
.guardian-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(10, 14, 26, 0.6);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.5rem;
}

.guardian-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s ease infinite;
}

/* ============================================
   ADDITIONAL FIXES
   ============================================ */
select {
    background: rgba(10, 14, 26, 0.8);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
}

/* ========================================
   GUARDIAN VIEWPORT
   ======================================== */
.guardian-viewport {
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 1200px;
}
.guardian-viewport h2 {
    color: #ff9800;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.guardian-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.guardian-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}
.guardian-status-badge.healthy {
    background: rgba(0, 200, 83, 0.2);
    color: #00c853;
    border: 1px solid rgba(0, 200, 83, 0.4);
}
.guardian-status-badge.degraded {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
}
.guardian-last-check {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}
.guardian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.guardian-check-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}
.guardian-check-item .check-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.guardian-check-item .check-dot.ok { background: #00c853; }
.guardian-check-item .check-dot.warn { background: #ff9800; }
.guardian-check-item .check-dot.critical { background: #ff1744; }
.guardian-check-item .check-name {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.guardian-check-item .check-detail {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    margin-left: auto;
}
.guardian-summary {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.guardian-summary span {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}
.guardian-loading {
    color: rgba(255,255,255,0.3);
    text-align: center;
    padding: 1rem;
    grid-column: 1 / -1;
}

/* ============================================
   OWLFREDO OS v2.1 - LAYOUT IMPROVEMENTS
   ============================================ */

/* --- Card Grid: Force consistent 3-column on desktop --- */
@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- IN DEV cards: Polished placeholder look --- */
.dashboard-card.status-dev {
    border: 1px solid rgba(251, 146, 60, 0.12);
    opacity: 0.88;
}

.dashboard-card.status-dev:hover {
    opacity: 1;
    border-color: rgba(251, 146, 60, 0.25);
}

.dashboard-card.status-dev .card-stats {
    justify-content: center;
}

.dashboard-card.status-dev .dev-stats-placeholder {
    text-align: center;
    padding: 0.25rem 0;
}

/* --- Better stat value placeholders --- */
.stat-value.placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
}

/* --- Guardian refresh button --- */
.guardian-refresh-btn {
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.3);
    color: #F5A623;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guardian-refresh-btn:hover {
    background: rgba(245, 166, 35, 0.25);
    border-color: rgba(245, 166, 35, 0.5);
}

/* --- Card actions: uniform spacing --- */
.card-actions {
    margin-top: auto;
    padding-top: 0.75rem;
}

/* --- Owl hint animation improvement --- */
.owl-hint {
    cursor: pointer;
    transition: color 0.3s ease;
}

.owl-hint:hover {
    color: rgba(245, 166, 35, 1);
}

/* --- Footer time display --- */
footer p {
    margin-bottom: 0.5rem;
}

#footerTime {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* --- Smooth transitions on all interactive elements --- */
.dashboard-card,
.nav-link,
.action-btn,
.card-action,
.status-item,
button {
    will-change: transform;
}

/* --- Fix card link overlay not blocking button clicks --- */
.card-link {
    pointer-events: none;
}

.dashboard-card:not(:has(.card-actions)) .card-link {
    pointer-events: auto;
}

/* --- Mobile improvements --- */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header .subtitle {
        font-size: 0.9rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .controls-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .last-sync {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 0.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        min-height: auto;
    }
    
    .guardian-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .status-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Tablet layout --- */
@media (min-width: 769px) and (max-width: 1023px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 26, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(245, 166, 35, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 166, 35, 0.5);
}

/* --- Selection styling --- */
::selection {
    background: rgba(245, 166, 35, 0.3);
    color: #ffffff;
}

/* ============================================
   OWLFREDO.COM - PREMIUM CSS ENHANCEMENTS v1
   ============================================ */

/* 1. Smooth Scroll */
html { scroll-behavior: smooth; }

/* Ensure content sits above star-field */
.container { position: relative; z-index: 1; }

/* 2. Animated Star-field Background */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 23% 42%, rgba(255,255,255,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 37% 8%,  rgba(255,255,255,0.16) 0%, transparent 100%),
    radial-gradient(1px 1px at 52% 63%, rgba(255,255,255,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 68% 28%, rgba(255,255,255,0.14) 0%, transparent 100%),
    radial-gradient(1px 1px at 79% 74%, rgba(255,255,255,0.11) 0%, transparent 100%),
    radial-gradient(1px 1px at 91% 19%, rgba(255,255,255,0.17) 0%, transparent 100%),
    radial-gradient(1px 1px at 5%  88%, rgba(255,255,255,0.09) 0%, transparent 100%),
    radial-gradient(1px 1px at 44% 95%, rgba(255,255,255,0.13) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 50%, rgba(255,255,255,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 17% 70%, rgba(255,255,255,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 35%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 30% 55%, rgba(255,255,255,0.07) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 73% 82%, rgba(255,255,255,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 92%, rgba(255,255,255,0.13) 0%, transparent 100%);
  background-size: 600px 600px;
  animation: starDrift 90s linear infinite;
  opacity: 0.5;
}

body::after {
  background-image:
    radial-gradient(1px 1px at 8%  33%, rgba(255,255,255,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 19% 61%, rgba(255,255,255,0.14) 0%, transparent 100%),
    radial-gradient(1px 1px at 41% 22%, rgba(255,255,255,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px at 56% 78%, rgba(255,255,255,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 64% 11%, rgba(255,255,255,0.16) 0%, transparent 100%),
    radial-gradient(1px 1px at 82% 44%, rgba(255,255,255,0.09) 0%, transparent 100%),
    radial-gradient(1px 1px at 97% 67%, rgba(255,255,255,0.13) 0%, transparent 100%),
    radial-gradient(1px 1px at 26% 89%, rgba(255,255,255,0.11) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 47%, rgba(245,166,35,0.08) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 25%, rgba(255,255,255,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 90%, rgba(255,255,255,0.07) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 14% 5%, rgba(245,166,35,0.07) 0%, transparent 100%);
  background-size: 800px 800px;
  animation: starDrift 130s linear infinite reverse;
  opacity: 0.4;
}

@keyframes starDrift {
  from { background-position: 0 0; }
  to   { background-position: 600px 600px; }
}

/* 3. Header Decorative Divider */
.header::after {
  content: '';
  display: block;
  position: relative;
  width: 100%;
  height: 6px;
  margin-top: 1.5rem;
  background:
    radial-gradient(circle at 50%, rgba(245,166,35,0.85) 0%, rgba(245,166,35,0.85) 3px, transparent 3px),
    linear-gradient(to right, transparent 0%, rgba(245,166,35,0.12) 20%, rgba(245,166,35,0.45) 50%, rgba(245,166,35,0.12) 80%, transparent 100%);
  background-size: 100% 100%, 100% 1px;
  background-repeat: no-repeat;
  background-position: center center, center center;
}

/* 4. Enhanced Card Hover Glow */
.dashboard-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: linear-gradient(135deg, rgba(245,166,35,0.06) 0%, transparent 50%, rgba(245,166,35,0.03) 100%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(245,166,35,0.30),
    0 8px 32px rgba(245,166,35,0.10),
    0 2px 8px rgba(0,0,0,0.35);
  border-color: rgba(245,166,35,0.35);
}

.dashboard-card:hover::after { opacity: 1; }

/* 5. Polished Select Dropdown */
select {
  color: #e2e8f0;
  background-color: rgba(11,20,38,0.85);
  border: 1px solid rgba(245,166,35,0.25);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F5A623' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 2.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:hover { border-color: rgba(245,166,35,0.50); }
select:focus { outline: none; border-color: rgba(245,166,35,0.70); box-shadow: 0 0 0 3px rgba(245,166,35,0.12); }
select option { background-color: #0f1e36; color: #e2e8f0; }

/* 6. Stat Value Glow Enhancement */
.stat-value {
  text-shadow: 0 0 20px rgba(245,166,35,0.30), 0 0 40px rgba(245,166,35,0.10);
  transition: text-shadow 0.3s ease;
}

.dashboard-card:hover .stat-value {
  text-shadow: 0 0 25px rgba(245,166,35,0.50), 0 0 50px rgba(245,166,35,0.18);
}

/* 7. Nav Link Underline Micro-interaction (non-active only) */
.nav-link:not(.active) { position: relative; }

.nav-link:not(.active)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 1.5px;
  background: rgba(245,166,35,0.7);
  border-radius: 2px;
  transition: left 0.25s ease, right 0.25s ease;
}

.nav-link:not(.active):hover::after {
  left: 15%;
  right: 15%;
}

/* 8. Focus Visible Accessibility States */
:focus-visible {
  outline: 2px solid rgba(245,166,35,0.75);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(245,166,35,0.12);
}

/* 9. Premium Shimmer / Loading State */
@keyframes shimmerPremium {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(245,166,35,0.08) 50%, transparent 100%) !important;
  background-size: 800px 100%;
  animation: shimmerPremium 2.2s ease-in-out infinite;
}
