:root {
    --gold: #d4af37;
    --dark: #0f0f0f;
    --glass: rgba(255, 255, 255, 0.05);
}

body, html { 
    margin: 0; padding: 0; height: 100%; 
    background: radial-gradient(circle at top, #1a1a1a 0%, #000 100%);
    font-family: 'Segoe UI', sans-serif; color: white; overflow: hidden;
}

/* Экраны */
.login-screen { display: flex; justify-content: center; align-items: center; height: 100vh; }
.glass-card { 
    background: rgba(255,255,255,0.03); backdrop-filter: blur(15px);
    padding: 40px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1);
    width: 85%; max-width: 380px; text-align: center;
}
.logo { font-size: 28px; font-weight: 800; margin-bottom: 30px; letter-spacing: 2px; }
.logo span { color: var(--gold); }

input { 
    width: 100%; padding: 15px; margin: 10px 0; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; color: white; outline: none; box-sizing: border-box;
}
button { 
    width: 100%; padding: 15px; background: var(--gold); color: black; 
    border: none; border-radius: 12px; font-weight: bold; cursor: pointer; margin-top: 10px;
}

/* Чат */
.app-container { display: flex; flex-direction: column; height: 100vh; max-width: 500px; margin: 0 auto; background: var(--dark); }

header { padding: 15px; border-bottom: 1px solid #222; text-align: center; }
.nav { display: flex; justify-content: center; gap: 15px; margin-top: 10px; font-size: 13px; }
.room-link { color: #888; cursor: pointer; }
.room-link.active { color: var(--gold); border-bottom: 1px solid var(--gold); }

#chat-window { 
    flex: 1; overflow-y: scroll; padding: 20px; 
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    display: flex; flex-direction: column; gap: 15px;
}

.msg { 
    background: var(--glass); padding: 12px; border-radius: 15px 15px 15px 0; 
    max-width: 85%; align-self: flex-start; position: relative; border: 0.5px solid rgba(255,255,255,0.1);
}
.msg.my { align-self: flex-end; background: rgba(212, 175, 55, 0.1); border-color: var(--gold); border-radius: 15px 15px 0 15px; }
.gold-member { border: 1px solid var(--gold); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
.gold-member b { color: var(--gold); text-shadow: 0 0 5px rgba(212,175,55,0.5); }

.msg-info { font-size: 11px; margin-bottom: 5px; opacity: 0.7; display: flex; justify-content: space-between; gap: 10px; }
.del-x { position: absolute; top: -5px; right: -5px; background: red; color: white; width: 15px; height: 15px; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Подвал */
.bottom-bar { padding: 15px; border-top: 1px solid #222; background: #050505; }
.gift-row { display: flex; gap: 10px; margin-bottom: 10px; justify-content: center; }
.gift-row button { width: auto; padding: 5px 12px; background: var(--glass); color: white; margin: 0; }
.input-row { display: flex; gap: 10px; }
.input-row button { width: 50px; margin: 0; }