* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

#app {
    max-width: 100%;
    min-height: 100vh;
    background-color: #fff;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.header-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.coin-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff9a56, #ffb366);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.coin-icon {
    font-size: 20px;
}

.plus-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffa726, #ffb84d);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #ff4444;
    border-radius: 50%;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22100%22 height=%22100%22%3E%3Crect fill=%22%23e0e0e0%22 width=%22100%22 height=%22100%22/%3E%3Ccircle cx=%2250%22 cy=%2235%22 r=%2215%22 fill=%22%23ccc%22/%3E%3Cellipse cx=%2250%22 cy=%2275%22 rx=%2225%22 ry=%2220%22 fill=%22%23ccc%22/%3E%3C/svg%3E');
    background-size: cover;
    cursor: pointer;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
}

.nav-tab {
    flex: 1;
    padding: 16px 8px;
    text-align: center;
    color: #999;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-tab.active {
    color: #333;
    border-bottom-color: #333;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 60vh;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.user-video {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 120px;
    height: 160px;
    background-color: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    z-index: 2;
    border: 2px solid #fff;
}

.user-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
}

.omegle-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.online-count {
    text-align: center;
}

.count-number {
    display: block;
    font-size: 48px;
    font-weight: bold;
    color: #4178e3;
}

.count-label {
    display: block;
    font-size: 16px;
    color: #999;
}

/* Restriction Banner */
.restriction-banner {
    background-color: #ff5252;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.restriction-text {
    flex: 1;
    font-size: 14px;
}

.unban-btn {
    background-color: white;
    color: #ff5252;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* Match Info */
.match-info {
    padding: 20px;
    background-color: #fff;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px;
}

.btn-guys-girls,
.btn-new {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.btn-guys-girls {
    background: linear-gradient(135deg, #ff9966, #ff6b6b);
    color: white;
}

.btn-new {
    background: linear-gradient(135deg, #4fc3f7, #4178e3);
    color: white;
}

/* Profile Menu */
.profile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s;
}

.profile-menu.hidden {
    transform: translateY(100%);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22100%22 height=%22100%22%3E%3Crect fill=%22%23e0e0e0%22 width=%22100%22 height=%22100%22/%3E%3Ccircle cx=%2250%22 cy=%2235%22 r=%2220%22 fill=%22%23ccc%22/%3E%3Cellipse cx=%2250%22 cy=%2280%22 rx=%2230%22 ry=%2225%22 fill=%22%23ccc%22/%3E%3C/svg%3E');
    background-size: cover;
    margin-bottom: 12px;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.profile-location img {
    width: 24px;
    height: auto;
}

.menu-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 16px;
}

.menu-item:last-child {
    border-bottom: none;
}

/* Discover Page */
.discover-container {
    padding: 16px;
    background-color: #f5f5f5;
    min-height: calc(100vh - 180px);
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.discover-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.discover-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.discover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 12px;
    color: white;
}

.discover-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.discover-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.discover-actions {
    display: flex;
    gap: 8px;
}

.call-btn {
    flex: 1;
    background: linear-gradient(135deg, #a855f7, #8e44ff);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
}

.message-btn {
    width: 44px;
    background-color: #5b9df9;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.online-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 12px;
    height: 12px;
    background-color: #4caf50;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 1;
}

/* Message Page */
.message-tabs {
    display: flex;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.message-tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    background-color: #fff;
    color: #666;
    border: none;
}

.message-tab.active {
    background-color: #333;
    color: white;
}

.conversations-container {
    background-color: #f5f5f5;
    min-height: calc(100vh - 200px);
}

.conversations-list {
    background-color: #fff;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.conversation-item:hover {
    background-color: #f9f9f9;
}

.conversation-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    position: relative;
}

.conversation-details {
    flex: 1;
}

.conversation-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.conversation-preview {
    font-size: 14px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.conversation-time {
    font-size: 12px;
    color: #999;
}

.unread-badge {
    background-color: #ff9966;
    color: white;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    padding: 0 6px;
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background-color: #4caf50;
    border-radius: 50%;
    border: 2px solid white;
}

/* History Page */
.history-container {
    background-color: #f5f5f5;
    min-height: calc(100vh - 180px);
}

.history-list {
    background-color: #fff;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.history-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.history-details {
    flex: 1;
}

.history-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.history-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 8px;
}

.history-time {
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
}

.history-duration {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.message-icon-btn {
    width: 44px;
    height: 44px;
    background-color: #5b9df9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Chat Page */
.chat-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-right: 12px;
    color: #333;
}

.chat-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-username {
    font-size: 16px;
    font-weight: 600;
}

.accept-btn {
    background-color: #5b9df9;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    background-color: #f5f5f5;
    overflow-y: auto;
    min-height: calc(100vh - 160px);
}

.message-bubble {
    max-width: 70%;
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    word-wrap: break-word;
}

.message-sent {
    background-color: white;
    border: 1px solid #e5e5e5;
    margin-left: 0;
    margin-right: auto;
    border-radius: 18px 18px 18px 4px;
}

.message-received {
    background-color: white;
    border: 1px solid #e5e5e5;
    margin-left: auto;
    margin-right: 0;
    border-radius: 18px 18px 4px 18px;
}

.message-timestamp {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin: 16px 0;
}

.message-call-declined {
    background-color: white;
    border: 1px solid #e5e5e5;
    padding: 12px 16px;
    border-radius: 18px;
    margin: 12px auto;
    max-width: 70%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
}

.message-video-duration {
    background-color: white;
    border: 1px solid #e5e5e5;
    padding: 16px;
    border-radius: 18px;
    margin: 12px auto;
    max-width: 80%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-input-container {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
}

.video-call-btn {
    background: linear-gradient(135deg, #a855f7, #8e44ff);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.send-btn {
    background-color: #5b9df9;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .discover-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header-left {
        gap: 4px;
    }
    
    .coin-badge,
    .plus-badge {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .nav-tab {
        font-size: 12px;
        padding: 12px 4px;
    }
    
    .discover-image {
        height: 240px;
    }
}