/* =============================================
   REZA KARIMY - ULTRA MODERN DASHBOARD V8
   ============================================= */

/* ===== GRUNNLEGGENDE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-1: #00d4ff;
    --accent-2: #7b2ffc;
    --accent-3: #ff6fd8;
    --accent-4: #ffd700;
    --font-display: 'Orbitron', 'Courier New', monospace;
    --font-body: 'Rajdhani', 'Arial', sans-serif;
    --transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: #0a0a12;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* =============================================
   BAKGRUNN - KLART OG LYSERE
   ============================================= */
.background-image {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0 !important;
    transition: filter 0.3s ease;
    display: block; /* Default: synlig */
}

#vanta-bg {
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1 !important;
    opacity: 0.3 !important;
    pointer-events: none !important;
    transition: filter 0.3s ease;
    display: block; /* Default: synlig */
}


#vanta-bg canvas,
.vanta-canvas,
.vanta-bg canvas {
    position: fixed !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* =============================================
   MAIN CONTAINER
   ============================================= */
.main-container {
    position: relative;
    z-index: 10 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    padding: 30px;
    min-height: 100vh;
}

/* =============================================
   KLOKKE
   ============================================= */
#clock-container {
    text-align: center;
    width: 100%;
    padding: 10px 0 20px 0;
    position: relative;
    z-index: 20 !important;
}

#clock-wrapper {
    display: inline-block;
    margin: 0 auto;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 22px 40px 18px 40px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 80px rgba(0, 212, 255, 0.05);
    position: relative;
    overflow: visible;
    z-index: 20 !important;
    transition: all var(--transition);
}

#clock-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(0, 212, 255, 0.4),
        rgba(123, 47, 252, 0.4),
        rgba(255, 111, 216, 0.4),
        transparent
    );
    border-radius: 29px;
    z-index: -1;
    animation: borderSpin 10s linear infinite;
    opacity: 0.8;
}

#clock-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 18, 0.8);
    border-radius: 28px;
    z-index: -1;
}

@keyframes borderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CLOCK BRAND ===== */
.clock-brand {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: 8px;
}

.brand-status {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.5rem;
    letter-spacing: 4px;
    font-weight: 700;
    animation: statusPulse 3s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===== FLIP CLOCK ===== */
.flip-clock-wrapper {
    margin: 0 !important;
}

.flip-clock-wrapper ul {
    margin: 4px !important;
    width: 55px !important;
    height: 80px !important;
    font-size: 70px !important;
    line-height: 75px !important;
    border-radius: 12px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.flip-clock-wrapper ul li a div div.inn {
    font-size: 60px !important;
    background: linear-gradient(180deg, #1a1a2e, #0f0f1f) !important;
    color: #ffffff !important;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.08) !important;
    font-weight: 300 !important;
}

.flip-clock-divider {
    height: 80px !important;
    width: 16px !important;
}

.flip-clock-dot {
    width: 7px !important;
    height: 7px !important;
    background: var(--accent-1) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2) !important;
    left: 4px !important;
}

.flip-clock-dot.top { top: 24px !important; }
.flip-clock-dot.bottom { bottom: 24px !important; }

/* ===== AM/PM ===== */
.flip-clock-meridium {
    transform: scale(0.7) !important;
    transform-origin: left center !important;
}

.flip-clock-meridium a {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 300 !important;
    letter-spacing: 1px !important;
}

/* ===== CLOCK DATE ===== */
#clock-date-display {
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-display);
    font-size: clamp(0.5rem, 0.7vw, 0.8rem);
    margin-top: 12px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

/* ===== CLOCK STATUS ===== */
.clock-status {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
    flex-wrap: wrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-1);
    display: inline-block;
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(0.6); }
}

.status-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 4px;
}

.status-format {
    color: var(--accent-1);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.45rem;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    background: rgba(0, 212, 255, 0.06);
    transition: all var(--transition);
    min-width: 55px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-text-fill-color: initial;
}

.status-format:hover {
    transform: scale(1.05);
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.25);
}

/* =============================================
   KNAPPER
   ============================================= */
.button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 800px;
    padding: 15px 0 10px 0;
    position: relative;
    z-index: 100 !important;
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 10px;
    text-align: center;
    word-break: break-word;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 100 !important;
    pointer-events: auto !important;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.box:hover::before {
    opacity: 1;
}

.box::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 19px;
    padding: 1px;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--box-color, var(--accent-1)),
        transparent,
        var(--box-color, var(--accent-2)),
        transparent
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.box:hover::after {
    opacity: 0.8;
    animation: borderSpin 4s linear infinite;
}

.box:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px var(--box-glow, rgba(0, 212, 255, 0.06));
    color: #ffffff;
    z-index: 200 !important;
}

.box:active {
    transform: scale(0.95) translateY(-2px);
}

.box-icon {
    font-size: 28px;
    margin-bottom: 6px;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.box:hover .box-icon {
    transform: scale(1.1) rotate(-3deg);
}

.box-label {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.box:hover .box-label {
    letter-spacing: 3px;
}

.box-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 0.8rem;
    color: var(--box-color, rgba(255, 255, 255, 0.1));
    z-index: 2;
}

.box:hover .box-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ===== BOX COLOR VARIANTS ===== */
.box.accounting { 
    --box-color: #4facfe;
    --box-glow: rgba(79, 172, 254, 0.15);
    border-bottom: 2px solid rgba(79, 172, 254, 0.2);
}
.box.accounting:hover { background: rgba(79, 172, 254, 0.1); }

.box.photos { 
    --box-color: #2ecc71;
    --box-glow: rgba(46, 204, 113, 0.15);
    border-bottom: 2px solid rgba(46, 204, 113, 0.2);
}
.box.photos:hover { background: rgba(46, 204, 113, 0.1); }

.box.home { 
    --box-color: #9b59b6;
    --box-glow: rgba(155, 89, 182, 0.15);
    border-bottom: 2px solid rgba(155, 89, 182, 0.2);
}
.box.home:hover { background: rgba(155, 89, 182, 0.1); }

.box.calendar { 
    --box-color: #f1c40f;
    --box-glow: rgba(241, 196, 15, 0.15);
    border-bottom: 2px solid rgba(241, 196, 15, 0.2);
}
.box.calendar:hover { background: rgba(241, 196, 15, 0.1); }

.box.cctv { 
    --box-color: #e74c3c;
    --box-glow: rgba(231, 76, 60, 0.15);
    border-bottom: 2px solid rgba(231, 76, 60, 0.2);
}
.box.cctv:hover { background: rgba(231, 76, 60, 0.1); }

.box.album { 
    --box-color: #f39c12;
    --box-glow: rgba(243, 156, 18, 0.15);
    border-bottom: 2px solid rgba(243, 156, 18, 0.2);
}
.box.album:hover { background: rgba(243, 156, 18, 0.1); }

/* =============================================
   FOOTER
   ============================================= */
#footer-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    font-family: var(--font-body);
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    text-align: center;
    pointer-events: none;
    user-select: none;
    background: rgba(10, 10, 18, 0.5);
    backdrop-filter: blur(10px);
    padding: 6px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== MENY TOGGLE SMÅ KNAPPER ===== */
.menu-toggle-small {
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.menu-toggle-small:hover {
    transform: scale(1.05);
}

.menu-toggle-small:active {
    transform: scale(0.95);
}

/* =============================================
   SIDE-MENY
   ============================================= */
.menu-toggle {
    position: fixed;
    bottom: 85px;
    right: 30px;
    z-index: 1000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.menu-toggle:hover {
    transform: scale(1.08) rotate(90deg);
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.15);
    color: #fff;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -440px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    z-index: 2000;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -30px 0 100px rgba(0, 0, 0, 0.5);
    transition: right 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-menu.open {
    right: 0;
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 18px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.side-menu-title {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.menu-close {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001 !important;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: rotate(90deg);
}

.side-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px 28px 28px;
}

.side-menu-content::-webkit-scrollbar {
    width: 3px;
}
.side-menu-content::-webkit-scrollbar-track {
    background: transparent;
}
.side-menu-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 3px;
}

.menu-group {
    margin-bottom: 24px;
}

.menu-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
    z-index: 2001 !important;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
}

.menu-item i {
    font-size: 1rem;
    width: 24px;
    text-align: center;
    color: var(--accent-1);
    opacity: 0.6;
}

.menu-item:hover i {
    opacity: 1;
}

.menu-shortcut {
    margin-left: auto;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 10px;
    border-radius: 4px;
    font-family: monospace;
}

/* ===== MENY INPUTS ===== */
.side-menu input[type="color"] {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    z-index: 2001 !important;
}

.side-menu select {
    width: 100%;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    z-index: 2001 !important;
}

.side-menu select:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.side-menu select option {
    background: #0a0a12;
    color: #fff;
}

.brightness-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brightness-row input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    z-index: 2001 !important;
}

.brightness-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.brightness-row input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#brightnessSliderBg::-webkit-slider-thumb {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    box-shadow: 0 0 20px rgba(247, 151, 30, 0.15);
}

#brightnessSliderVanta::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* ===== VANTA KONTROLLER ===== */
.vanta-control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}

.vanta-control-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vanta-control-row label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vanta-control-row input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    z-index: 2001 !important;
}

.vanta-control-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    background: var(--accent-1);
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    transition: all var(--transition);
}

.vanta-control-row input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.vanta-control-row .vanta-value {
    font-family: var(--font-display);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.2);
    min-width: 32px;
    text-align: right;
}

.brightness-value {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    z-index: 2001 !important;
}

.side-menu-footer {
    padding: 18px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    flex-shrink: 0;
}

.side-menu-footer .signature {
    color: rgba(255, 255, 255, 0.06);
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 3px;
}

/* ===== OVERLAY - SVÆRT LETT MØRKNING UTEN BLUR ===== */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1999;
    background: rgba(0, 0, 0, 0.1);
    /* Kun 10% mørk, INGEN blur */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.menu-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* =============================================
   BANNERE
   ============================================= */
#offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.95), rgba(192, 57, 43, 0.95));
    backdrop-filter: blur(10px);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#offline-indicator.show {
    transform: translateY(0);
}

#install-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#install-container.show {
    display: flex;
    transform: translateY(0);
}

#install-container .install-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 800px;
    width: 100%;
}

#install-container .install-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.3px;
}

#install-container .install-text strong {
    color: #fff;
    font-weight: 600;
}

#install-btn {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    padding: 8px 30px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.15);
    transition: all var(--transition);
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999 !important;
}

#install-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 40px rgba(0, 212, 255, 0.25);
}

#install-dismiss {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 6px 18px;
    border-radius: 20px;
    font-family: var(--font-body);
    transition: all var(--transition);
    z-index: 9999 !important;
}

#install-dismiss:hover {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* =============================================
   RESPONSIV
   ============================================= */
@media (max-width: 768px) {
    .button-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .box { height: 80px; padding: 10px 6px; border-radius: 14px; }
    .box-icon { font-size: 22px; }
    .box-label { font-size: 0.65rem; }
    .box-arrow { display: none; }
    
    #clock-wrapper { padding: 18px 24px 16px 24px; border-radius: 24px; }
    .flip-clock-wrapper ul { width: 42px !important; height: 62px !important; font-size: 52px !important; line-height: 56px !important; margin: 3px !important; }
    .flip-clock-wrapper ul li a div div.inn { font-size: 44px !important; }
    .flip-clock-divider { height: 62px !important; width: 14px !important; }
    .flip-clock-dot { width: 6px !important; height: 6px !important; }
    .flip-clock-dot.top { top: 18px !important; }
    .flip-clock-dot.bottom { bottom: 18px !important; }
    .flip-clock-meridium { transform: scale(0.6) !important; }
    
    .menu-toggle { width: 46px; height: 46px; font-size: 1rem; bottom: 75px; right: 20px; }
    .side-menu { width: 85%; max-width: 85%; right: -85%; }
    .side-menu.open { right: 0; }
}

@media (max-width: 550px) {
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .box { height: 75px; border-radius: 12px; }
    .box-icon { font-size: 24px; }
    .box-label { font-size: 0.7rem; }
    
    #clock-wrapper { padding: 14px 16px 12px 16px; border-radius: 20px; }
    .flip-clock-wrapper ul { width: 34px !important; height: 50px !important; font-size: 40px !important; line-height: 44px !important; margin: 2px !important; border-radius: 8px !important; }
    .flip-clock-wrapper ul li a div div.inn { font-size: 34px !important; }
    .flip-clock-divider { height: 50px !important; width: 10px !important; }
    .flip-clock-dot { width: 5px !important; height: 5px !important; }
    .flip-clock-dot.top { top: 14px !important; }
    .flip-clock-dot.bottom { bottom: 14px !important; }
    .flip-clock-meridium { transform: scale(0.5) !important; }
    
    .clock-brand { font-size: 0.4rem; letter-spacing: 3px; gap: 6px; }
    .brand-text { letter-spacing: 4px; }
    
    .menu-toggle { width: 42px; height: 42px; font-size: 0.9rem; bottom: 65px; right: 16px; }
}

@media (display-mode: standalone) {
    #install-container { display: none !important; }
}

/* =============================================
   KLOKKE - FLIPCLOCK OVERRIDES
   ============================================= */
#clock-container .clock { display: inline-block !important; }
#clock-container #box,
#clock-container #content { display: block !important; width: 100% !important; }