:root {
    --viber-purple: #7360f2;
    --roblox-red: #f12b24;
    --roblox-green: #00b06f;
    --bg-light: #f4f4f7;
    --text-dark: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    height: 100vh;
}

.hub-container {
    width: 100%;
    max-width: 500px;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* Header */
.hub-header {
    background: var(--viber-purple);
    color: white;
    padding: 15px 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header-title h2 { font-size: 18px; }
.header-title p { font-size: 12px; opacity: 0.8; }

.join-btn {
    background: var(--roblox-green);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 176, 111, 0.3);
    transition: 0.3s;
}

.join-btn:hover { transform: scale(1.05); }

/* Status Bar */
.status-bar {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.user-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid var(--roblox-green);
    position: relative;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--roblox-green);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid white;
}

.user-status span { font-size: 10px; margin-top: 4px; }

/* Chat Area */
.chat-area {
    flex: 1;
    background: #e5e5f7;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.msg.system {
    align-self: center;
    background: rgba(0,0,0,0.05);
    color: #666;
    font-size: 12px;
    border-radius: 10px;
}

.msg.received { background: white; align-self: flex-start; border-bottom-left-radius: 2px; }
.msg.sent { background: #e2dffc; align-self: flex-end; border-bottom-right-radius: 2px; }

.sender-name { font-weight: bold; font-size: 11px; color: var(--viber-purple); margin-bottom: 4px; }

/* Input Area */
.input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-area input {
    flex: 1;
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    outline: none;
}

.send-btn { color: var(--viber-purple); font-size: 20px; cursor: pointer; }
