:root {
    --bg: #050505; --sidebar: #0a0a0a; --card: rgba(20, 20, 20, 0.7);
    --border: rgba(255, 255, 255, 0.08); --text: #ffffff; --text-dim: #888;
    --accent: #007aff; --accent-glow: rgba(0, 122, 255, 0.3);
}
[data-theme="light"] {
    --bg: #f5f5f7; --sidebar: #ffffff; --card: rgba(255, 255, 255, 0.8);
    --border: rgba(0, 0, 0, 0.08); --text: #000; --text-dim: #6e6e73;
    --accent: #007aff; --accent-glow: rgba(0, 122, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'General Sans', sans-serif; }
body { background: var(--bg); color: var(--text); display: flex; height: 100vh; overflow: hidden; }

.sidebar { width: 280px; background: var(--sidebar); border-right: 1px solid var(--border); padding: 32px; display: flex; flex-direction: column; }
.logo { font-size: 24px; font-weight: 700; letter-spacing: -1px; }
.logo span { color: var(--accent); }

.nav-menu { margin-top: 48px; flex: 1; }
.nav-btn { width: 100%; background: none; border: none; color: var(--text-dim); padding: 12px 16px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; transition: 0.2s; margin-bottom: 4px; }
.nav-btn i { font-style: normal; font-size: 18px; }
.nav-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.nav-btn.active { background: var(--accent); color: white; }

.main-view { flex: 1; padding: 48px; overflow-y: auto; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.item-card { background: var(--card); border: 1px solid var(--border); padding: 24px; border-radius: 24px; transition: 0.3s; position: relative; }
.item-card:hover { border-color: var(--accent); transform: translateY(-5px); }

.bar-container { background: rgba(255,255,255,0.05); height: 12px; border-radius: 6px; overflow: hidden; margin: 24px 0; }
.bar-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.1s linear; }

.btn-action { background: var(--accent); color: white; border: none; padding: 12px; border-radius: 12px; width: 100%; cursor: pointer; font-weight: 600; margin-top: 15px; }
.btn-secondary { background: none; border: 1px solid var(--border); color: var(--text); padding: 12px; border-radius: 12px; width: 100%; cursor: pointer; margin-top: 8px; }

/* Индекс */
.locked-card { opacity: 0.3; filter: grayscale(1); }
.index-badge { position: absolute; top: 15px; right: 15px; background: var(--accent); color: white; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; }
