:root {
    --bg: #f5f6f7;
    --white: #ffffff;
    --text-main: #222222;
    --text-soft: #555555;
    --pink-light: #ffebf2; /* Світло-рожевий фон */
    --pink-bold: #ff85b3;  /* Яскравіший рожевий для акцентів */
    --border: #e7e8ec;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    font-weight: 500; /* Робимо весь текст жирнішим за стандартний */
}

strong, b {
    font-weight: 700; /* Дуже жирний для імен */
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: 52px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.head-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-box {
    background: var(--pink-bold);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
}
.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--pink-bold);
}

.search-input {
    background: #ebedef;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    width: 250px;
    font-weight: 500;
}

.user-profile { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.avatar-circle { width: 32px; height: 32px; background: #ddd; border-radius: 50%; }
.avatar-circle.sm { width: 40px; height: 40px; }

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Sidebar */
.nav-link {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--text-soft);
    border-radius: 8px;
    margin-bottom: 2px;
    font-weight: 600; /* Жирне меню */
    transition: 0.2s;
}

.nav-link:hover { background: var(--pink-light); color: var(--pink-bold); }
.nav-link.active { background: var(--pink-light); color: var(--pink-bold); }

/* Card System */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    border: none;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    resize: none;
    outline: none;
}

.btn-pink {
    background: var(--pink-bold);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.btn-pink:hover { background: #ff6a9f; }

/* Messenger Styling */
.messenger-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 0;
    height: 500px;
    overflow: hidden;
}

.dialogs-sidebar { border-right: 1px solid var(--border); overflow-y: auto; }
.dialog-item { padding: 15px; border-bottom: 1px solid #f9f9f9; cursor: pointer; }
.dialog-item:hover { background: #fcfcfc; }
.dialog-item.active { background: var(--pink-light); }
.dialog-item p { margin: 3px 0 0; font-size: 12px; color: #777; }

.chat-area { display: flex; flex-direction: column; background: #fafafa; }
.chat-history { flex: 1; padding: 20px; }
.chat-input-row { padding: 15px; background: white; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-input-row input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 10px; }

.footer { text-align: center; color: #999; padding: 30px; font-weight: 600; }

/* Профіль */
.profile-cover {
    height: 150px;
    background: linear-gradient(90deg, #ffdae9, #a6c1ee);
    border-radius: 8px 8px 0 0;
    margin: -15px -15px 0 -15px;
}
.profile-info { display: flex; align-items: flex-end; padding: 10px; margin-top: -50px; }
.big-avatar { 
    width: 120px; height: 120px; background: #eee; 
    border: 4px solid white; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.profile-text { margin-left: 20px; margin-bottom: 10px; }
.profile-text h2 { margin: 0; font-size: 22px; }

/* Ігри */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; margin-top: 15px; }
.game-item { text-align: center; cursor: pointer; }
.game-thumb { width: 100%; aspect-ratio: 1; background: #ddd; border-radius: 12px; margin-bottom: 5px; }
.game-item span { font-weight: 600; font-size: 13px; }

/* Жирність */
p, span, div, input, textarea {
    font-weight: 550; /* Ще трохи жирніше для чіткості */
}