:root {
    --bg: #f9f6ff;
    --primary: #ff8aa1;
    --secondary: #7cc5ff;
    --text: #333;
    --card: #fff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 14px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background: radial-gradient(circle at 10% 20%, #ffeef4 0, #f9f6ff 30%, #f6fbff 60%);
    color: var(--text);
}

.container { max-width: 960px; margin: 20px auto 60px; padding: 0 16px; }
.site-header, .site-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 10;
}
.site-footer { position: static; margin-top: 40px; border-radius: var(--radius); }
.logo {
    font-weight: 800; font-size: 20px; color: var(--primary);
    letter-spacing: 1px;
}
nav a, nav form.inline { margin-right: 12px; text-decoration: none; color: var(--text); font-weight: 600; }
nav form.inline { display: inline; }
.pill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 14px; border-radius: 999px; border: none; cursor: pointer;
    background: var(--primary); color: #fff; box-shadow: var(--shadow);
    text-decoration: none; transition: transform .1s ease, box-shadow .2s ease;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.pill.secondary { background: var(--secondary); }
.pill.danger { background: #ff6b6b; }
.card {
    background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
    margin-bottom: 16px;
}
h1, h2, h3 { color: #1f1f1f; }
input[type=text], input[type=password], input[type=email], textarea, select {
    width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #ddd;
    background: #fff; font-size: 14px;
}
textarea { min-height: 120px; }
label { font-weight: 700; display: block; margin: 12px 0 6px; }
button, input[type=submit] { font-size: 14px; }
.list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.profile-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.profile-card .meta { display: flex; align-items: center; gap: 12px; }
.badge { display: inline-block; background: #ffe4ec; color: #b14c69; padding: 4px 8px; border-radius: 999px; font-size: 12px; margin-right: 6px; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--secondary); border-color: var(--secondary); }
.message-bubble { padding: 10px 12px; border-radius: 12px; margin-bottom: 10px; max-width: 80%; }
.me { background: #dff1ff; margin-left: auto; }
.them { background: #ffeef4; margin-right: auto; }
.chat-box { max-height: 400px; overflow-y: auto; padding: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.inline { display: inline; }
@media (max-width: 640px) {
    .site-header { flex-wrap: wrap; gap: 8px; }
    nav a, nav form.inline { margin-right: 6px; }
}
