:root {
    --primary: #00f2ff;
    --accent: #7000ff;
    --bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #00ff88;
    --warning: #ffcc00;
    --error: #ff4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.4;
}

.blob {
    position: absolute;
    border-radius: 50%;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: move 20s infinite alternate;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    animation: move 15s infinite alternate-reverse;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #ff00ea;
    top: 40%;
    left: 20%;
    animation: move 25s infinite alternate;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 50px) scale(1.1); }
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
}

h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
}

.accent {
    color: var(--primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online { background: var(--success); box-shadow: 0 0 10px var(--success); }

/* Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Cards */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
}

h2 i { color: var(--primary); }

/* Status Card */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    font-size: 15px;
    color: var(--text-dim);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.online { background: rgba(0, 255, 136, 0.1); color: var(--success); }
.status-badge.active { background: rgba(0, 242, 255, 0.1); color: var(--primary); }
.status-badge.offline { background: rgba(255, 68, 68, 0.1); color: var(--error); }
.status-badge.loading { background: rgba(255, 255, 255, 0.05); color: var(--text-dim); }

/* Health Card */
.metrics {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.metric-label {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    text-align: right;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 1s ease;
}

/* Financial Card */
.goal-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.circular-progress {
    width: 100px;
}

.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.percentage {
    fill: var(--text);
    font-size: 8px;
    text-anchor: middle;
    font-weight: 800;
}

.goal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goal-item .value {
    font-size: 24px;
    font-weight: 800;
    display: block;
}

/* Buttons & Inputs */
.btn-icon {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
}

.btn-icon:hover { color: var(--primary); }

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.btn.primary:hover {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    width: 100%;
    max-width: 400px;
}

h3 { margin-bottom: 25px; font-size: 20px; }

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

@media (max-width: 600px) {
    .container { padding: 20px; }
    header { margin-bottom: 30px; }
    .goal-container { flex-direction: column; text-align: center; }
}
