:root {
    --bg: #f2f2f7;
    --text: #1c1c1e;
    --card: rgba(255,255,255,0.75);
    --border: rgba(0,0,0,0.1);
    --blue: #007bff;
    --blur: blur(20px);
}
[data-theme="dark"] {
    --bg: #1c1c1e;
    --text: #f2f2f7;
    --card: rgba(30,30,30,0.75);
    --border: rgba(255,255,255,0.1);
    --blue: #58a6ff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s ease;
}
body {
    background: var(--bg);
    color: var(--text);
    padding-bottom: 70px;
}
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--card);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 99;
}
.nav .title {
    font-size: 17px;
    font-weight: 600;
}
.theme-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text);
}
.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: var(--card);
    backdrop-filter: var(--blur);
    border-right: 1px solid var(--border);
    z-index: 200;
    padding: 70px 20px 20px;
}
.sidebar.show {
    left: 0;
}
.sidebar a {
    display: block;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    color: var(--text);
    text-decoration: none;
}
.sidebar a.active {
    background: var(--blue);
    color: #fff;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 150;
    display: none;
}
.overlay.show {
    display: block;
}
.card {
    background: var(--card);
    backdrop-filter: var(--blur);
    border-radius: 20px;
    padding: 24px;
    margin: 20px;
    border: 1px solid var(--border);
}
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: var(--blue);
    color: #fff;
    text-align: center;
    text-decoration: none;
    margin-top: 12px;
    border: none;
    font-size: 16px;
}
.btn-sm {
    padding: 8px 12px;
    font-size: 14px;
    display: inline-block;
    width: auto;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--blue);
    color: var(--blue);
}
input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    margin-bottom: 14px;
    outline: none;
}
.slider {
    margin: 70px 20px 20px;
    border-radius: 20px;
    overflow: hidden;
    height: 140px;
    position: relative;
}
.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    animation: slide 10s infinite;
}
@keyframes slide {
    0% { opacity: 0; }
    10% { opacity: 1; }
    50% { opacity: 1; }
    60% { opacity: 0; }
    100% { opacity: 0; }
}
.bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--card);
    backdrop-filter: var(--blur);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 98;
}
.bottom a {
    color: var(--text);
    text-decoration: none;
    text-align: center;
    font-size: 12px;
}
.bottom a.active {
    color: var(--blue);
}
.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px;
}
.captcha-img {
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    margin: 6px 0 14px;
}
.preview-img {
    max-width: 100%;
    border-radius: 12px;
    margin: 10px 0;
}
video {
    max-width: 100%;
    border-radius: 12px;
}
