:root {
    --bg: #000000;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: #86868b;
    --danger: #ff453a;
}

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

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
}

.back-button {
    position: absolute;
    top: 40px;
    left: 40px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.back-button:hover { color: #fff; }

.settings-wrapper {
    width: 90%;
    max-width: 900px;
    height: 70vh;
    background: var(--glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    overflow: hidden;
}

.sidebar {
    width: 240px;
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid var(--border);
    padding: 40px 20px;
}

.sidebar-title { font-size: 1.1rem; font-weight: 800; letter-spacing: 2px; }
.sidebar-subtitle { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; margin-top: 4px; }

.menu { margin-top: 40px; }
.menu-item {
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-dim);
    transition: 0.3s;
    font-size: 0.9rem;
}

.menu-item:hover, .menu-item.active {
    background: var(--glass);
    color: #fff;
}

.content-area { flex: 1; padding: 50px; overflow-y: auto; }
.section-header h2 { font-size: 2rem; margin-bottom: 8px; }
.section-header p { color: var(--text-dim); margin-bottom: 30px; }

.content-section { display: none; }
.content-section.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.setting-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.setting-row:not(:last-child) { border-bottom: 1px solid var(--border); }

.label { font-weight: 600; }
.description { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }

.btn-danger {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.btn-danger:hover { background: var(--danger); color: #fff; }

.toggle-switch {
    width: 40px;
    height: 22px;
    background: #333;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-switch.active { background: #34c759; }
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch.active::after { transform: translateX(18px); }

.legal-text-block { margin-bottom: 20px; }
.legal-text-block h4 { margin-bottom: 5px; color: #fff; font-size: 1rem; }
.legal-text-block p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

@media (max-width: 768px) {
    .settings-wrapper { flex-direction: column; height: auto; margin: 20px; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
}
