.friends-home {
    background: #f7f9fc;
    color: #243247;
    min-height: 75vh;
}

.friends-home-inner {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding: 65px 0 70px;
}

.home-welcome {
    text-align: center;
    padding: 35px 0 65px;
}

.home-welcome h1 {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 12px;
}

.home-welcome p {
    color: #68778b;
    font-size: 17px;
    margin: 0 0 38px;
}

.home-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.home-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 205px;
    min-height: 62px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.home-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px #00000018;
}

.home-action.create { background: #3265a8; }
.home-action.join.available { background: #207c58; }
.home-action.join.unavailable { background: #929aa5; }
.home-action.solo { background: #53657e; }

.home-how {
    display: inline-block;
    margin-top: 35px;
    color: #3265a8;
    font-size: 16px;
    text-decoration: underline;
}

.ariksworld-projects {
    border-top: 1px solid #dce3eb;
    padding-top: 35px;
}

.ariksworld-projects h2 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 20px;
}

.home-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.home-project {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 20px;
    border: 1px solid #dce3eb;
    border-radius: 12px;
    background: white;
    color: #243247;
    text-decoration: none;
}

.home-project strong { font-size: 16px; }
.home-project span { color: #68778b; font-size: 14px; }

@media (max-width: 650px) {
    .friends-home-inner { padding-top: 25px; }
    .home-welcome { padding: 30px 0 45px; }
    .home-actions { flex-direction: column; align-items: center; }
    .home-action { width: min(100%, 300px); }
}

/* Unified home buttons */
.home-action.create,
.home-action.join.available,
.home-action.join.unavailable,
.home-action.solo {
    background: #3265a8;
}

.home-join-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.home-join-status {
    font-size: 13px;
    color: #207c58;
    white-space: nowrap;
}

.home-actions {
    align-items: flex-start;
}

/* Fix JOIN button */
.home-join-group {
    width: 205px;
}

.home-join-group .home-action.join {
    width: 100%;
    background: #3265a8;
    color: #ffffff;
}

@media (max-width: 650px) {
    .home-join-group {
        width: min(100%, 300px);
    }
}

/* Friendly, colorful action buttons */
.home-action.create {
    background: #3265a8;
}

.home-join-group .home-action.join {
    background: #207c58;
}

.home-action.solo {
    background: #b56520;
}

.home-activity {
    border-top: 1px solid #dce3eb;
    padding-top: 35px;
    display: flex;
    justify-content: center;
}
