:root {
    --apple-glass: rgba(28, 28, 30, 0.7);
    --apple-border: rgba(255, 255, 255, 0.15);
    --accent-blue: #007AFF;
    --status-green: #32D74B;
    --status-red: #FF453A;
    --text-main: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #000;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.liquid-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: linear-gradient(125deg, #001220 0%, #000 100%);
}

.orb {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5;
    animation: moveOrb 25s infinite alternate;
}

.orb-1 { width: 500px; height: 500px; background: #1e3a8a; top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: #581c87; bottom: 10%; right: -50px; animation-duration: 30s; }

@keyframes moveOrb {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.2); }
}

.container { width: 100%; max-width: 1100px; padding: 60px 20px; z-index: 1; }

header { margin-bottom: 50px; text-align: left; }
header h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.5px; }
header p { color: var(--text-secondary); margin-top: 8px; font-size: 17px; }

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.glass-card {
    background: var(--apple-glass);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--apple-border);
    border-radius: 22px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    cursor: pointer;
}

.glass-card:hover {
    transform: scale(1.02);
    background: rgba(44, 44, 46, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.dev-info h3 { font-size: 20px; font-weight: 600; color: #fff; }

.status-tag {
    font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 12px;
    display: flex; align-items: center; gap: 6px;
}
.status-tag.online { color: var(--status-green); background: rgba(50, 215, 75, 0.15); }
.status-tag.offline { color: var(--status-red); background: rgba(255, 69, 58, 0.15); }

.stat-item { margin-bottom: 20px; }
.stat-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }

.progress-track { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent-blue); border-radius: 4px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }

.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    z-index: 100;
    pointer-events: none;
}

.modal.active {
    pointer-events: auto;
}

.modal-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.modal.active .modal-overlay {
    opacity: 1;
}

.modal-sheet {
    position: relative; width: 90%; max-width: 500px;
    background: var(--apple-glass);
    backdrop-filter: blur(40px);
    border-radius: 30px; padding: 40px;
    border: 1px solid var(--apple-border);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.modal.active .modal-sheet {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.detail-list { margin-top: 30px; }
.detail-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.detail-item:last-child { border: none; }
.d-label { color: var(--text-secondary); font-size: 15px; }
.d-val { color: #fff; font-size: 15px; font-weight: 500; text-align: right; max-width: 60%; }

.close-icon { position: absolute; top: 25px; right: 25px; cursor: pointer; color: var(--text-secondary); font-size: 20px; transition: color 0.2s; }
.close-icon:hover { color: #fff; }