* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Helvetica Neue',Arial,sans-serif; background-color:#f0f2f5; color:#1c1e21; }
.container { max-width:1200px; margin:0 auto; padding:0 15px; }
nav { background-color:#4267b2; color:white; padding:10px 0; position:sticky; top:0; z-index:1000; }
nav .container { display:flex; justify-content:space-between; align-items:center; }
.logo { font-size:24px; font-weight:bold; color:white; text-decoration:none; }
.nav-links a { color:white; margin-left:20px; text-decoration:none; font-size:14px; }
.nav-links a:hover { text-decoration:underline; }
main { padding:20px 0; min-height:calc(100vh - 140px); }
footer { background-color:white; padding:20px 0; border-top:1px solid #dddfe2; font-size:12px; color:#65676b; }
footer .container { display:flex; justify-content:space-between; align-items:center; }
footer ul { list-style:none; display:flex; }
footer ul li { margin-left:20px; }
footer ul li a { color:#65676b; text-decoration:none; }
footer ul li a:hover { text-decoration:underline; }
.post, .friend-card, .page-card, .group-card { background-color:white; border-radius:8px; padding:16px; margin-bottom:20px; box-shadow:0 1px 2px rgba(0,0,0,0.1); }
.post-header { display:flex; align-items:center; margin-bottom:12px; }
.avatar, .profile-pic, .page-pic, .group-pic { width:40px; height:40px; border-radius:50%; margin-right:10px; object-fit:cover; }
.avatar-small { width:32px; height:32px; border-radius:50%; margin-right:8px; }
.cover-photo { width:100%; height:300px; object-fit:cover; border-radius:8px 8px 0 0; }
.profile-header, .page-header, .group-header { background-color:white; border-radius:8px; overflow:hidden; margin-bottom:20px; }
.profile-info, .page-info, .group-info { padding:20px; display:flex; flex-direction:column; align-items:center; }
.profile-pic, .page-pic, .group-pic { width:120px; height:120px; border-radius:50%; margin-top:-60px; border:4px solid white; object-fit:cover; }
.btn { display:inline-block; padding:8px 16px; background-color:#4267b2; color:white; text-decoration:none; border-radius:6px; border:none; cursor:pointer; font-size:14px; }
.btn:hover { background-color:#365899; }
.btn-outline { background-color:transparent; border:1px solid #4267b2; color:#4267b2; }
.btn-outline:hover { background-color:#e7f3ff; }
.auth-container, .create-form { max-width:400px; margin:40px auto; background-color:white; padding:30px; border-radius:8px; box-shadow:0 2px 4px rgba(0,0,0,0.1); }
.auth-container h2, .create-form h3 { margin-bottom:20px; text-align:center; }
input[type="text"], input[type="email"], input[type="password"], textarea, select { width:100%; padding:12px; margin-bottom:16px; border:1px solid #dddfe2; border-radius:6px; font-size:14px; }
textarea { resize:vertical; min-height:100px; }
button[type="submit"] { width:100%; padding:12px; background-color:#4267b2; color:white; border:none; border-radius:6px; font-size:16px; font-weight:bold; cursor:pointer; }
button[type="submit"]:hover { background-color:#365899; }
.friends-grid, .pages-grid, .groups-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:20px; margin-bottom:30px; }
.friend-card, .page-card, .group-card { text-align:center; }
.friend-avatar, .page-avatar, .group-avatar { width:100px; height:100px; border-radius:50%; margin-bottom:10px; object-fit:cover; }
.reels-container { display:flex; flex-direction:column; align-items:center; gap:30px; }
.reel-item { max-width:400px; background-color:white; border-radius:12px; overflow:hidden; margin-bottom:20px; }
.reel-header { display:flex; align-items:center; padding:12px; }
.story-viewer { position:fixed; top:0; left:0; width:100%; height:100%; background-color:black; z-index:9999; }
.story-header { position:absolute; top:20px; left:20px; color:white; display:flex; align-items:center; z-index:10; }
.story-header .avatar { width:40px; height:40px; border:2px solid white; }
.close-btn { position:absolute; top:20px; right:20px; color:white; font-size:30px; text-decoration:none; }
.story-content { display:flex; justify-content:center; align-items:center; height:100%; }
.story-progress { position:absolute; top:10px; left:10px; right:10px; display:flex; gap:4px; }
.progress-bar { height:3px; background-color:rgba(255,255,255,0.5); flex:1; }
.error { color:#dc3545; font-size:14px; margin-bottom:16px; text-align:center; }
.success { color:#28a745; font-size:14px; margin-bottom:16px; text-align:center; }