body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #2b133f 0, #05020a 60%, #000000 100%);
    color: #f5f5ff;
}
a { color: #ff8ad4; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 16px;
    background: rgba(5, 2, 20, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
}
.logo-heart { font-size: 1.4rem; }
.logo-text { letter-spacing: 1px; }

.radio-player audio {
    max-width: 220px;
}

.main-nav {
    display: flex;
    gap: 10px;
    margin-left: 16px;
    flex: 1;
}
.main-nav a {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.main-nav a:hover {
    border-color: #ff8ad4;
    background: rgba(255,138,212,0.1);
}

.auth-box {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #ff8ad4;
    background: transparent;
    color: #ff8ad4;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-primary {
    background: linear-gradient(135deg,#ff8ad4,#ff4b8b);
    color: #fff;
    border-color: transparent;
}
.btn:hover {
    opacity: 0.9;
}

.page {
    padding: 20px 16px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 40px 10px 20px;
}
.hero h1 {
    font-size: 2.1rem;
    margin-bottom: 10px;
}
.hero p {
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto 18px;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 14px;
    margin-top: 12px;
}
.feature-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}

.form-card {
    max-width: 360px;
    margin-top: 10px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
}
.form-card label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.form-card input {
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.4);
    color: #fff;
}

.error-box, .success-box {
    max-width: 360px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.error-box { background: rgba(255,0,80,0.1); border: 1px solid rgba(255,0,80,0.4); }
.success-box { background: rgba(0,180,120,0.1); border: 1px solid rgba(0,180,120,0.4); }

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 12px;
}
.room-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.room-card .badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: rgba(255,138,212,0.3);
}

.chat-box {
    height: 380px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    overflow-y: auto;
    background: rgba(0,0,0,0.4);
    margin-bottom: 8px;
}
.messages .msg {
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.messages .meta {
    opacity: 0.5;
    font-size: 0.75rem;
}

.chat-form {
    display: flex;
    gap: 6px;
}
.chat-form input {
    flex: 1;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    color: #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 12px;
}
.shop-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.site-footer {
    padding: 14px 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-left, .footer-right {
    display: flex;
    gap: 8px;
    align-items: center;
}
.footer-right select {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 2px 8px;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .main-nav {
        order: 3;
        margin-left: 0;
        flex-wrap: wrap;
    }
    .auth-box {
        width: 100%;
        justify-content: flex-end;
    }
}
