* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f0f2f5;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: #0088cc;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.display-name {
    font-weight: bold;
    font-size: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.coins {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.notification-icon {
    color: white;
    position: relative;
    font-size: 20px;
}

.badge {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Container */
.app-container {
    margin-top: 60px;
    margin-bottom: 60px;
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Bottom Menu */
.bottom-menu {
    background: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
    height: 60px;
}

.bottom-menu a {
    text-decoration: none;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    position: relative;
}

.bottom-menu a i {
    font-size: 22px;
    margin-bottom: 2px;
}

.bottom-menu a.active {
    color: #0088cc;
}

.bottom-menu a .badge {
    position: absolute;
    top: -5px;
    right: -10px;
}

/* Login/Register */
.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    color: #0088cc;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #0088cc;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #0077b3;
}

.auth-link {
    text-align: center;
    margin-top: 15px;
}

.auth-link a {
    color: #0088cc;
    text-decoration: none;
}

/* Home - Public Chat */
.chat-room {
    background: white;
    border-radius: 10px;
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.message-item {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.message-item .avatar-small {
    width: 30px;
    height: 30px;
}

.message-content {
    background: #f0f2f5;
    padding: 10px;
    border-radius: 10px;
    flex: 1;
}

.message-content .sender {
    font-weight: bold;
    color: #0088cc;
    font-size: 13px;
}

.message-content .time {
    color: #999;
    font-size: 11px;
    float: right;
}

.message-content .text {
    margin-top: 5px;
    word-wrap: break-word;
}

.message-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.message-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.message-input button {
    padding: 10px 20px;
    background: #0088cc;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* Messages */
.message-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.message-list-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.message-list-item:hover {
    background: #f8f9fa;
}

.message-list-item .avatar-small {
    width: 40px;
    height: 40px;
}

.message-list-item .info {
    flex: 1;
}

.message-list-item .info .name {
    font-weight: bold;
}

.message-list-item .info .last-msg {
    color: #666;
    font-size: 14px;
}

.message-list-item .info .time {
    color: #999;
    font-size: 12px;
}

/* Profile */
.profile-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-header .avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0088cc;
}

.profile-header .display-name {
    display: block;
    margin-top: 10px;
    font-size: 20px;
}

.profile-info {
    margin: 20px 0;
}

.profile-info .info-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.profile-info .info-item .label {
    color: #666;
}

.profile-info .info-item .value {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        margin: 20px 10px;
    }
    
    .app-container {
        padding: 10px;
    }
}