* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0095f6;
    --primary-hover: #1877f2;
    --bg: #000000;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --border: #262626;
    --text-primary: #f5f5f5;
    --text-secondary: #a8a8a8;
    --text-muted: #737373;
    --danger: #ed4956;
    --success: #58c322;
    --gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 60px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 60px;
}

.navbar-container {
    max-width: 975px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary);
    font-weight: 700;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 8px 16px;
    width: 268px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.search-bar:focus-within {
    border-color: var(--primary);
}

.search-bar i {
    color: var(--text-muted);
    margin-right: 8px;
    font-size: 14px;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    position: relative;
    padding: 4px;
    transition: transform 0.2s;
}

.nav-btn:hover {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.notification-wrapper {
    position: relative;
}

.notifications-panel {
    position: absolute;
    top: 100%;
    right: -50px;
    width: 400px;
    max-height: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.notifications-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px) scale(1);
}

.notifications-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 60px;
    width: 16px;
    height: 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    transform: rotate(45deg);
    z-index: 1;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.notif-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.mark-all-read:hover {
    color: var(--primary-hover);
}

.notif-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 12px;
}

.notif-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 8px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.notif-tab:hover {
    color: var(--text-secondary);
}

.notif-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.notif-list {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.notif-item:hover {
    background: var(--bg-tertiary);
}

.notif-item.unread {
    background: rgba(0, 149, 246, 0.05);
    border-left-color: var(--primary);
}

.notif-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.notif-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.notif-type-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid var(--bg-secondary);
}

.notif-type-icon.like {
    background: var(--danger);
    color: white;
}

.notif-type-icon.comment {
    background: var(--primary);
    color: white;
}

.notif-type-icon.follow {
    background: var(--success);
    color: white;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary);
}

.notif-text strong {
    font-weight: 600;
}

.notif-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.notif-preview {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.notif-empty i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.notif-empty p {
    color: var(--text-secondary);
    font-size: 14px;
}

.notif-item.fade-in {
    animation: fadeIn 0.3s ease;
}

.nav-profile img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.nav-profile img:hover {
    border-color: var(--text-muted);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* MOBILE NAV */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 8px 0;
    justify-content: space-around;
}

.mobile-nav-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.3s;
}

.mobile-nav-btn.active {
    color: var(--text-primary);
}

.mobile-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* MAIN CONTAINER */
.main-container {
    max-width: 975px;
    margin: 80px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

/* STORIES */
.stories-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    overflow: hidden;
}

.stories-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px;
}

.stories-wrapper::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.story-avatar-ring {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--gradient);
    padding: 3px;
    transition: transform 0.3s;
}

.story-avatar-ring:hover {
    transform: scale(1.05);
}

.story-avatar-ring.add {
    background: var(--border);
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-avatar i {
    color: var(--text-primary);
    font-size: 20px;
}

.story-name {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 66px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* POSTS */
.post {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform 0.2s;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s;
}

.author-avatar:hover {
    opacity: 0.8;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.2px;
}

.verified {
    color: var(--primary);
    font-size: 12px;
}

.post-location {
    font-size: 12px;
    color: var(--text-secondary);
}

.post-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: color 0.3s;
}

.post-menu-btn:hover {
    color: var(--text-secondary);
}

/* POST IMAGE */
.post-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.post-image:hover {
    transform: scale(1.02);
}

.post-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 149, 246, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.post-tag.ideia {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.post-tag.novidade {
    background: rgba(88, 195, 34, 0.9);
}

/* CAROUSEL */
.carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-track .post-image {
    min-width: 100%;
    height: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
    z-index: 2;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* POST ACTIONS */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
}

.action-left {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn:active {
    transform: scale(0.95);
}

.like-btn.liked {
    color: var(--danger);
}

.like-btn.liked i {
    font-weight: 900;
}

.save-btn.saved {
    color: var(--text-primary);
}

.save-btn.saved i {
    font-weight: 900;
}

/* POST INFO */
.post-info {
    padding: 0 16px 8px;
}

.likes-count {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.post-caption {
    margin-bottom: 8px;
    line-height: 1.4;
}

.caption-author {
    font-weight: 600;
    font-size: 14px;
    margin-right: 6px;
}

.caption-text {
    font-size: 14px;
    color: var(--text-primary);
}

.view-comments {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 8px;
    display: block;
}

.view-comments:hover {
    color: var(--text-secondary);
}

.comments-preview {
    margin-bottom: 8px;
}

.comment-item {
    margin-bottom: 4px;
    font-size: 14px;
}

.comment-author {
    font-weight: 600;
    margin-right: 6px;
}

.comment-text {
    color: var(--text-primary);
}

.post-time {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ADD COMMENT */
.add-comment {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.comment-input::placeholder {
    color: var(--text-muted);
}

.post-comment-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.post-comment-btn.active {
    opacity: 1;
}

.post-comment-btn:hover {
    opacity: 0.8;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
}

.sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
}

.sidebar-profile-info {
    display: flex;
    flex-direction: column;
}

.sidebar-name {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.2px;
}

.sidebar-bio {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: -0.1px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sidebar-header span {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.sidebar-header a {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-header a:hover {
    color: var(--text-secondary);
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

.suggestion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.suggestion-name:hover {
    color: var(--text-secondary);
}

.suggestion-detail {
    font-size: 12px;
    color: var(--text-muted);
}

.follow-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s;
}

.follow-btn:hover {
    color: var(--text-primary);
}

/* CATEGORIES FILTER */
.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-chip {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.category-chip:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.category-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.sidebar-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.sidebar-footer p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.modal-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
}

.modal-upload {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 48px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.modal-upload:hover {
    border-color: var(--primary);
    background: rgba(0, 149, 246, 0.05);
}

.modal-upload i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.modal-upload p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 14px;
}

.upload-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: var(--primary-hover);
}

.modal-preview {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.modal-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.modal-author span {
    font-weight: 600;
    font-size: 14px;
}

.modal-form textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

.modal-form textarea:focus {
    border-color: var(--primary);
}

.modal-options {
    display: flex;
    gap: 12px;
}

.modal-options select,
.modal-options input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.modal-options select:focus,
.modal-options input:focus {
    border-color: var(--primary);
}

.modal-options select option {
    background: var(--bg-secondary);
}

.publish-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.publish-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.publish-btn:active {
    transform: translateY(0);
}

/* POST DETAIL MODAL */
.post-detail-modal {
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

.post-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.post-detail-image {
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-detail-info {
    display: flex;
    flex-direction: column;
}

.detail-comments {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* DOUBLE TAP HEART */
.double-tap-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 80px;
    color: white;
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.double-tap-heart.animate {
    animation: heartBurst 0.8s ease forwards;
}

@keyframes heartBurst {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* LIKE ANIMATION */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.like-btn.animate {
    animation: likeAnimation 0.4s ease;
}

/* TOAST NOTIFICATION */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* RESPONSIVE - TABLET */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .sidebar {
        display: none;
    }

    .search-bar {
        width: 200px;
    }
}

/* RESPONSIVE - MOBILE */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 16px;
    }

    .search-bar {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }

    .main-container {
        margin-top: 68px;
        padding: 0;
    }

    .stories-container {
        border-radius: 0;
        margin-bottom: 8px;
        border-left: none;
        border-right: none;
    }

    .post {
        border-radius: 0;
        margin-bottom: 8px;
        border-left: none;
        border-right: none;
    }

    .post-image-container {
        aspect-ratio: auto;
    }

    .modal {
        width: 95%;
    }

    .post-detail-content {
        grid-template-columns: 1fr;
    }

    .post-detail-image {
        max-height: 300px;
    }

    .modal-options {
        flex-direction: column;
    }

    .notifications-panel {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 60px);
        border-radius: 0;
        transform: translateY(-100%);
    }

    .notifications-panel.active {
        transform: translateY(0);
    }

    .notifications-panel::before {
        display: none;
    }
}

/* RESPONSIVE - SMALL MOBILE */
@media (max-width: 380px) {
    .story-avatar-ring {
        width: 56px;
        height: 56px;
    }

    .story-name {
        font-size: 11px;
        max-width: 56px;
    }

    .post-actions .action-btn {
        font-size: 20px;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* SELECTION */
::selection {
    background: var(--primary);
    color: white;
}

/* SKELETON LOADING */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* FADE IN ANIMATION */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
