/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #ff4d6d;
    --secondary-color: #ff8fa3;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-color: #e9ecef;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
}

/* Top Navigation */
.top-nav {
    background: linear-gradient(135deg, #87ceeb 0%, #b0e0e6 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav .container {
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    max-width: 100%;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-menu a {
    padding: 5px 0;
    position: relative;
    color: #2b2d42;
    font-weight: 500;
    transition: color 0.3s;
}

.main-menu a:hover,
.main-menu a.active {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.main-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
}

.user-menu a {
    font-size: 20px;
    color: #2b2d42;
    transition: transform 0.3s;
}

.user-menu a:hover {
    transform: rotate(90deg);
}

/* Main Content Layout */
.main-container {
    margin: 20px auto;
    gap: 20px;
}

.left-sidebar {
    width: 220px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
    height: calc(100vh - 100px);
    position: sticky;
    top: 80px;
}

.main-content {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 80vh;
}

.right-sidebar {
    width: 280px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
    height: calc(100vh - 100px);
    position: sticky;
    top: 80px;
    overflow-y: auto;
}

/* Footer */
.footer {
    background-color: white;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lang-switcher {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.lang-switcher a {
    color: var(--gray-color);
    font-size: 14px;
}

.lang-switcher a:hover {
    color: var(--primary-color);
}

.copyright {
    color: var(--gray-color);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-sidebar,
    .right-sidebar {
        width: 100%;
        position: static;
        height: auto;
        margin-bottom: 20px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 24px;
    font-weight: 900;
    color: #1d3557;
}

.auth-subtitle {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
}

.auth-alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin: 14px 0;
    font-size: 13px;
    font-weight: 600;
}

.auth-alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.auth-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.15);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 8px 16px rgba(255, 77, 109, 0.2);
    transition: all 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 77, 109, 0.3);
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
}

.auth-footer-text {
    color: #6b7280;
}

.auth-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-home {
    margin-top: 14px;
    text-align: center;
}

.auth-home-link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
}

.auth-home-link:hover {
    text-decoration: underline;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ============================================
   Home Page Specific Styles
   ============================================ */

/* User Profile in Sidebar */
.user-profile {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.user-profile .user-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    position: relative;
}

.user-profile .user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-info h3 {
    margin: 5px 0;
    color: var(--dark-color);
}

.user-info p {
    color: var(--gray-color);
    font-size: 14px;
}

.user-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.balance-icon {
    font-size: 16px;
}

.balance-amount {
    font-weight: 600;
    color: #ffc107;
    font-size: 16px;
}

/* Side Menu */
.side-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 6px;
    color: var(--dark-color);
    transition: all 0.3s;
}

.menu-item:hover {
    background-color: #f0f2f5;
    color: var(--primary-color);
}

.menu-item .icon {
    margin-right: 10px;
    font-size: 18px;
}

/* Romantic Banner */
.romantic-banner {
    background: linear-gradient(135deg, #ffb3d9 0%, #ffc0e5 50%, #ffd6e8 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.romantic-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.3) 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 50px 50px, 60px 60px, 30px 30px;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-title {
    font-size: 72px;
    font-weight: bold;
    color: #d32f2f;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    margin: 0;
    letter-spacing: 5px;
}

.rose-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.rose-petals::before,
.rose-petals::after {
    content: '🌹';
    position: absolute;
    font-size: 40px;
    opacity: 0.6;
    animation: petal-fall 15s infinite;
}

.rose-petals::before {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.rose-petals::after {
    top: 60%;
    right: 25%;
    animation-delay: 5s;
}

@keyframes petal-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(30px) rotate(180deg); opacity: 0.3; }
    100% { transform: translateY(60px) rotate(360deg); opacity: 0; }
}

/* Content Tabs */
.content-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: var(--gray-color);
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Search Section */
.search-section {
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    gap: 0;
    max-width: 500px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}

.search-bar input:focus {
    border-color: var(--primary-color);
}

.search-icon-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.search-icon-btn:hover {
    background-color: #e63946;
}

/* Mood Post Form */
.mood-post-form {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.mood-post-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
}

.mood-post-form textarea:focus {
    border-color: var(--primary-color);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.form-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.translate-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.emoji-btn {
    padding: 6px 12px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.emoji-btn:hover {
    background-color: #f0f2f5;
}

.form-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.char-count {
    font-size: 12px;
    color: var(--gray-color);
}

.char-count.warning {
    color: #ff9800;
}

.char-count.error {
    color: #f44336;
}

.btn-post {
    padding: 8px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-post:hover {
    background-color: #e63946;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 77, 109, 0.3);
}

.btn-post:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.view-more-link {
    text-align: center;
    margin-bottom: 20px;
}

.view-more-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.view-more-link a:hover {
    text-decoration: underline;
}

/* Posts List */
.posts-list {
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-color);
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Online Users Section */
.online-users h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.user-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 线上用户列表头像：统一为更协调的尺寸 */
.user-card .user-avatar {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.user-card .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-card .online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #4caf50;
    border-radius: 50%;
    border: 2px solid white;
}

.user-card .user-name {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
    color: #333;
}

.user-card .user-score {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.user-card .user-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
}

.user-card .btn-icon {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background-color: #f0f2f5;
    padding: 0;
}

.user-card .btn-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-chat {
    background-color: var(--primary-color);
    color: white;
}

.btn-chat:hover {
    background-color: #e63946;
}

.btn-gift {
    background-color: #ffc107;
    color: #212529;
}

.btn-gift:hover {
    background-color: #e0a800;
}

/* Friends List & Recent Chats */
.friends-list, .recent-chats {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title h4 {
    margin: 0;
    font-size: 16px;
}

.view-all {
    font-size: 12px;
    color: var(--gray-color);
}

.search-box {
    display: flex;
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-btn {
    padding: 0 12px;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.friend-items, .chat-items {
    list-style: none;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 6px;
    margin-bottom: 2px;
}

.friend-item:hover {
    background-color: #f8f9fa;
}

.friend-avatar {
    position: relative;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.friend-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
}

.online-status.online {
    background-color: #4caf50;
}

.online-status.offline {
    background-color: #adb5bd;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-weight: 500;
    font-size: 14px;
}

.friend-status {
    font-size: 12px;
    color: var(--gray-color);
}

.friend-actions {
    flex-shrink: 0;
    margin-left: auto;
}

.friend-actions .btn-chat {
    background: none;
    border: none;
    color: #6c757d;
    padding: 6px;
    font-size: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.friend-actions .btn-chat svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.friend-actions .btn-chat:hover {
    color: var(--primary-color);
    background-color: #fff5f5;
    transform: scale(1.1);
}

.no-chats, .no-friends {
    text-align: center;
    color: var(--gray-color);
    padding: 20px 0;
    font-size: 14px;
}

/* Home Page Posts List */
.home-post-item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.home-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.home-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.home-post-author-info {
    flex: 1;
}

.home-post-author {
    font-weight: bold;
    color: #333;
}

.home-post-time {
    font-size: 12px;
    color: #999;
}

.home-post-content {
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.home-post-media-grid {
    display: grid;
    gap: 5px;
    margin-bottom: 12px;
}

.home-post-media-grid.grid-1 { grid-template-columns: minmax(0, 2fr); }
.home-post-media-grid.grid-2, .home-post-media-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
.home-post-media-grid.grid-3, .home-post-media-grid.grid-5, .home-post-media-grid.grid-6, .home-post-media-grid.grid-7, .home-post-media-grid.grid-8, .home-post-media-grid.grid-9 { grid-template-columns: repeat(3, 1fr); }

.home-post-media-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f2f5;
    border-radius: 8px;
    cursor: pointer;
}

.home-post-actions {
    font-size: 13px;
    color: #666;
}

/* Home Mood Upload */
.home-mood-media{margin-top:10px}
.home-mood-media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}
.home-mood-media-item{position:relative;width:100%;padding-top:100%;background-size:cover;background-position:center;background-color:#f0f2f5;border-radius:8px;overflow:hidden}
.home-mood-media-remove{position:absolute;right:4px;top:4px;width:22px;height:22px;border:none;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;cursor:pointer;line-height:22px;font-size:14px}
.home-mood-add-btn{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border:1px dashed #cfd8dc;border-radius:10px;color:#1d3557;font-weight:800;cursor:pointer;background:#fff}

/* Home Image Preview Modal */
.home-media-modal{position:fixed;inset:0;z-index:9999;display:none}
.home-media-modal.show{display:block}
.home-media-mask{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.home-media-content{position:relative;max-width:900px;margin:60px auto;background:#111;border-radius:12px;padding:14px;z-index:1}
.home-media-close{position:absolute;right:10px;top:6px;background:transparent;border:none;color:#fff;font-size:28px;cursor:pointer}
.home-media-box{display:flex;justify-content:center;align-items:center;min-height:200px}
.home-media-box img{max-width:100%;max-height:80vh}

/* Right Sidebar Enhancements */
.right-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.sidebar-title {
    font-weight: 600;
    color: var(--dark-color);
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--gray-color);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.close-sidebar:hover {
    background-color: #f0f2f5;
    color: var(--dark-color);
}

.sidebar-tabs {
    display: flex;
    gap: 5px;
    padding: 0 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-tab {
    padding: 8px 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.sidebar-tab:hover {
    color: var(--primary-color);
}

.sidebar-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.sidebar-content {
    padding: 0 15px;
}

.sidebar-tab-content {
    display: none;
}

.sidebar-tab-content.active {
    display: block;
}

.contact-category {
    margin-bottom: 15px;
}

.category-header {
    padding: 8px 0;
    font-size: 13px;
    color: var(--gray-color);
    cursor: pointer;
    user-select: none;
}

.category-header:hover {
    color: var(--dark-color);
}

.contact-category.expanded .category-header {
    font-weight: 600;
    color: var(--dark-color);
}

.contact-category:not(.expanded) .friend-items {
    display: none;
}

/* 客服特殊样式 */
.friend-item[data-is-support="1"] {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-left: 3px solid var(--primary-color);
}

.friend-item[data-is-support="1"]:hover {
    background: linear-gradient(135deg, #ffe5e5 0%, #fff5f5 100%);
}

.friend-item[data-is-support="1"] .friend-name {
    color: var(--primary-color);
    font-weight: 600;
}

/* 确保好友列表项布局正确 */
.friend-items {
    padding: 0;
    margin: 0;
}

.friend-item {
    position: relative;
}

.friend-item:last-child {
    border-bottom: none;
}

/* Responsive adjustments for home page */
@media (max-width: 992px) {
    .user-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .user-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-banner {
        padding: 20px 15px;
    }
    
    .welcome-banner h2 {
        font-size: 20px;
    }
}