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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin-top: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(2px);
}

nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.btn, .theme-toggle-btn {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    color: #333;
    border: 1px solid #333;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary, .btn-outline {
    background: white;
    color: #333;
    border-color: #333;
}

.btn-outline:hover, .btn-primary:hover {
    background: #333;
    color: white;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.features {
    display: flex;
    justify-content: space-around;
    padding: 50px 20px;
    background: rgba(255,255,255,0.8);
    text-align: center;
    border-radius: 15px;
    margin: 20px;
}
.feature {
    max-width: 300px;
}
form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}
form input, form select, form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #333;
}
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.profile-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}
.profile-card:hover {
    transform: translateY(-5px);
}
.profile-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}
.profile-photo {
    margin-bottom: 20px;
    text-align: center;
}
.profile-photo img {
    max-width: 200px;
    border-radius: 50%;
    border: 2px solid #ccc;
}
.chat-box {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
}
.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 20px;
}
.message.me {
    background: #d1e7dd;
    text-align: right;
    color: #0f5132;
}
.message.other {
    background: #f8d7da;
    text-align: left;
    color: #842029;
}
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #2c3e50;
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .features { flex-direction: column; align-items: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; }
}
