* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav h1 {
    color: white;
    font-size: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.welcome {
    text-align: center;
    color: white;
    padding: 4rem 0;
}

.welcome h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.welcome p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#get-started {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s;
}

#get-started:hover {
    transform: translateY(-2px);
}

#profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.profile-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.profile-card h3 {
    padding: 1rem;
    font-size: 1.3rem;
    color: #333;
}

.profile-card p {
    padding: 0 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.profile-actions {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
}

.profile-actions button {
    background: none;
    border: 2px solid #ddd;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.like-btn:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.dislike-btn:hover {
    background: #666;
    border-color: #666;
    color: white;
}

.chat-btn:hover {
    background: #4ecdc4;
    border-color: #4ecdc4;
    color: white;
}

#chat-container {
    background: white;
    border-radius: 15px;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #667eea;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

#back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 1rem;
}

#chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.user-message {
    align-items: flex-end;
}

.bot-message {
    align-items: flex-start;
}

.message-content {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    max-width: 70%;
}

.user-message .message-content {
    background: #667eea;
    color: white;
}

.message-time {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.2rem;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

#message-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 1rem;
}

#send-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.modal button {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.premium-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.plan {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.plan:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.plan h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.plan p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
}

.plan ul {
    list-style: none;
    text-align: left;
}

.plan li {
    padding: 0.3rem 0;
    color: #666;
}

.plan li:before {
    content: "✓ ";
    color: #4ecdc4;
    font-weight: bold;
}

@media (max-width: 768px) {
    #profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .premium-plans {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
}
