/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --primary: #FCD535;
    --primary-dark: #E8B800;
    --dark: #1E2329;
    --bg: #F5F6F8;
    --white: #FFFFFF;
    --text: #1E2329;
    --text-secondary: #707A8A;
    --border: #E8EAED;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    border-radius: 5px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    padding: 8px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}
/* ============================================
   TRENDING TOPICS
   ============================================ */
.trending-topics {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.trending-topics:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.trending-topics h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-topics h4 i {
    color: var(--primary);
    font-size: 18px;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-item:hover {
    background: var(--bg);
    transform: translateX(4px);
}

.topic-item .topic-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.topic-item .topic-name::before {
    content: '#';
    color: var(--primary);
    font-weight: 700;
}

.topic-item .topic-posts {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 2px 12px;
    border-radius: 12px;
    font-weight: 500;
}

/* Trending Topics - Hashtag color variants */
.topic-item:nth-child(1) .topic-name {
    color: #3B82F6;
}
.topic-item:nth-child(2) .topic-name {
    color: #8B5CF6;
}
.topic-item:nth-child(3) .topic-name {
    color: #EC4899;
}
.topic-item:nth-child(4) .topic-name {
    color: #F59E0B;
}
.topic-item:nth-child(5) .topic-name {
    color: #10B981;
}

/* ============================================
   SUGGESTED USERS
   ============================================ */
.suggested-users {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.suggested-users:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.suggested-users h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggested-users h4 i {
    color: var(--primary);
    font-size: 18px;
}

.suggested-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
    border-radius: 8px;
}

.suggested-user:last-child {
    border-bottom: none;
}

.suggested-user:hover {
    background: var(--bg);
    transform: translateX(4px);
}

.suggested-user img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.suggested-user .user-info {
    flex: 1;
}

.suggested-user .user-info .name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    display: block;
}

.suggested-user .user-info .handle {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-follow-suggest {
    padding: 6px 18px;
    border: 2px solid var(--primary);
    background: transparent;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-follow-suggest:hover {
    background: var(--primary);
    color: var(--dark);
    transform: scale(1.05);
}

.btn-follow-suggest.following {
    background: var(--primary);
    color: var(--dark);
}

.btn-follow-suggest.following:hover {
    background: #EF4444;
    border-color: #EF4444;
    color: white;
}

/* ============================================
   RESPONSIVE - TRENDING TOPICS & SUGGESTED USERS
   ============================================ */
@media (max-width: 768px) {
    .trending-topics,
    .suggested-users {
        padding: 16px;
    }
    
    .trending-topics h4,
    .suggested-users h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .topic-item {
        padding: 8px 10px;
    }
    
    .topic-item .topic-name {
        font-size: 13px;
    }
    
    .topic-item .topic-posts {
        font-size: 12px;
        padding: 2px 10px;
    }
    
    .suggested-user {
        padding: 8px 10px;
    }
    
    .suggested-user img {
        width: 36px;
        height: 36px;
    }
    
    .suggested-user .user-info .name {
        font-size: 13px;
    }
    
    .btn-follow-suggest {
        padding: 4px 14px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .trending-topics,
    .suggested-users {
        padding: 12px 14px;
    }
    
    .topic-item {
        padding: 6px 8px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .topic-item .topic-name {
        font-size: 12px;
    }
    
    .topic-item .topic-posts {
        font-size: 11px;
        padding: 1px 8px;
    }
    
    .suggested-user {
        padding: 6px 8px;
        flex-wrap: wrap;
    }
    
    .suggested-user img {
        width: 32px;
        height: 32px;
    }
    
    .suggested-user .user-info .name {
        font-size: 12px;
    }
    
    .suggested-user .user-info .handle {
        font-size: 11px;
    }
    
    .btn-follow-suggest {
        padding: 3px 10px;
        font-size: 10px;
    }
}
.logo {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo i {
    color: var(--primary);
    font-size: 28px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: 24px;
    padding: 8px 16px;
    max-width: 400px;
    flex: 1;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(252, 213, 53, 0.1);
}

.search-box i {
    color: var(--text-secondary);
    margin-right: 10px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-create {
    background: var(--primary);
    border: none;
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: var(--dark);
}

.btn-create:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(252, 213, 53, 0.3);
}

.user-profile {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.user-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 8px 0;
    border: 1px solid var(--border);
}

.user-menu.show {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.user-menu a:hover {
    background: var(--bg);
}

/* ============================================
   SIDEBAR OVERLAY - MOBILE
   ============================================ */
#sidebarOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#sidebarOverlay.active {
    display: block;
}

/* ============================================
   SIDEBAR - DESKTOP
   ============================================ */
.sidebar-left {
    width: 280px;
    min-width: 280px;
    position: sticky;
    top: 80px;
    height: fit-content;
}

/* ============================================
   SIDEBAR - MOBILE (slide from left)
   ============================================ */
@media (max-width: 768px) {
    .sidebar-left {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 60px;
        overflow-y: auto;
        background: #FFFFFF;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
        border-radius: 0;
        border: none;
        display: block;
    }
    
    .sidebar-left.open {
        left: 0;
    }
    
    .sidebar-left .menu-item span,
    .sidebar-left .profile-info h3,
    .sidebar-left .profile-info p,
    .sidebar-left .profile-stats {
        display: block !important;
    }
    
    .sidebar-left .profile-card {
        padding: 0 20px;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
        background: transparent;
    }
    
    .sidebar-left .profile-cover {
        border-radius: 0;
    }
    
    .sidebar-left .profile-avatar {
        width: 80px;
        height: 80px;
        margin-top: -40px;
    }
    
    .sidebar-left .sidebar-menu {
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    
    .sidebar-left .menu-item {
        justify-content: flex-start;
        padding: 12px 20px;
    }
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    gap: 24px;
}

.feed {
    flex: 1;
    max-width: 600px;
}

.sidebar-right {
    width: 300px;
    min-width: 300px;
    position: sticky;
    top: 80px;
    height: fit-content;
}

/* ============================================
   PROFILE CARD
   ============================================ */
.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.profile-cover {
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.profile-info {
    padding: 0 20px 20px;
    margin-top: -40px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 12px;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 18px;
    font-weight: 700;
}

.profile-username {
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0 12px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.profile-stats > div {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-weight: 700;
    font-size: 16px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   SIDEBAR MENU
   ============================================ */
.sidebar-menu {
    background: var(--white);
    border-radius: var(--radius);
    padding: 8px 0;
    box-shadow: var(--shadow);
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
    transition: 0.2s;
}

.menu-item:hover {
    background: #F8F9FA;
    color: var(--text);
}

.menu-item.active {
    background: #FFF8E1;
    color: var(--text);
    border-left-color: var(--primary);
    font-weight: 600;
}

.menu-item i {
    width: 20px;
}

/* ============================================
   CREATE POST BOX
   ============================================ */
.create-post-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
}

.create-post-box:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.create-post-box img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.create-post-box input {
    flex: 1;
    border: none;
    background: var(--bg);
    padding: 12px 16px;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    cursor: pointer;
}

.create-actions {
    display: flex;
    gap: 8px;
}

.action-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.action-icon:hover {
    background: #FFF8E1;
    color: var(--primary);
}

/* ============================================
   TRENDING SECTION
   ============================================ */
.trending-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.trending-section h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.trending-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.trending-scroll::-webkit-scrollbar {
    height: 4px;
}

.trending-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.trending-card {
    min-width: 180px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius);
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.3s;
}

.trending-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.trending-rank {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 700;
}

.trending-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 4px 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-content p {
    font-size: 12px;
    color: var(--text-secondary);
}

.trending-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.trending-play-btn {
    margin-top: 6px;
    padding: 4px 14px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.3s;
}

.trending-play-btn:hover {
    transform: scale(1.05);
}

/* ============================================
   FEED HEADER
   ============================================ */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.feed-header h3 {
    font-size: 18px;
}

.feed-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 4px 12px;
    border: none;
    background: transparent;
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: 0.3s;
}

.filter-btn:hover {
    background: var(--bg);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--dark);
}

/* ============================================
   POST CARDS
   ============================================ */
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    transition: 0.3s;
}

.post-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.post-username {
    font-weight: 700;
    font-size: 14px;
}

.post-handle {
    color: var(--text-secondary);
    font-size: 13px;
}

.post-time {
    color: var(--text-secondary);
    font-size: 13px;
}

.post-more {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 50%;
    cursor: pointer;
}

.post-more:hover {
    background: var(--bg);
}

.post-content {
    cursor: pointer;
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    cursor: pointer;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(252, 213, 53, 0.9);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.play-button i {
    font-size: 24px;
    color: var(--dark);
    margin-left: 4px;
}

.play-text {
    font-size: 9px;
    font-weight: 700;
    color: var(--dark);
    margin-top: 2px;
}

.post-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
}

.post-category {
    margin-top: 8px;
}

.category-tag {
    display: inline-block;
    padding: 2px 12px;
    background: var(--bg);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.post-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 4px;
}

.action-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: 0.2s;
}

.action-btn:hover {
    background: var(--bg);
}

.action-btn.liked {
    color: #FF4444;
}

/* ============================================
   WALLET CARD
   ============================================ */
.wallet-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.wallet-card h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.wallet-balance {
    text-align: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.balance-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.balance-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

/* ============================================
   MODALS - RESPONSIVE & RAPIH
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.25s ease;
    padding: 20px;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    margin: 20px auto;
    width: 100%!important;
    max-width: 540px;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease;
    overflow: hidden;
    position: relative;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 5;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-header h2 i {
    color: var(--primary);
}

.close {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: 0.3s;
    padding: 0 4px;
    line-height: 1;
    background: none;
    border: none;
}

.close:hover {
    color: var(--text);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

/* ============================================
   LOGIN / REGISTER MODAL
   ============================================ */
.login-modal .form-group {
    margin-bottom: 16px;
}

.login-modal .form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}

.login-modal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    background: var(--bg);
}

.login-modal .form-group input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(252, 213, 53, 0.1);
}

.login-modal .form-group input::placeholder {
    color: #9CA3AF;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    color: var(--dark);
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(252, 213, 53, 0.3);
}

.modal-footer-text {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-footer-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

/* ============================================
   CREATE POST MODAL
   ============================================ */
.create-modal .form-group {
    margin-bottom: 16px;
}

.create-modal .form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}

.create-modal .form-group input,
.create-modal .form-group textarea,
.create-modal .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
    background: var(--bg);
}

.create-modal .form-group input:focus,
.create-modal .form-group textarea:focus,
.create-modal .form-group select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(252, 213, 53, 0.1);
}

.create-modal .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.create-modal .form-group select {
    appearance: auto;
    cursor: pointer;
}

/* ============================================
   POST DETAIL MODAL
   ============================================ */
.post-modal {
    max-width: 680px;
}

.post-modal .modal-body {
    padding: 0;
}

.post-modal .post-content {
    padding: 20px 24px;
}

.post-modal .post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.post-modal .post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-modal .post-username {
    font-weight: 700;
    font-size: 16px;
    display: block;
}

.post-modal .post-handle {
    color: var(--text-secondary);
    font-size: 14px;
}

.post-modal .post-time {
    color: var(--text-secondary);
    font-size: 13px;
}

.post-modal .post-title {
    font-size: 22px;
    font-weight: 700;
    margin: 12px 0 10px;
}

.post-modal .post-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.post-modal .post-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 12px 0 16px;
}

.post-modal .post-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.post-modal .post-stats i {
    font-size: 16px;
}

.post-modal .post-actions {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-modal .action-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* ============================================
   COMMENTS SECTION
   ============================================ */
.comments-section {
    margin-top: 16px;
}

.comments-section h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.comment-input {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.comment-input input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
    background: var(--bg);
}

.comment-input input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(252, 213, 53, 0.1);
}

.comment-input button {
    padding: 10px 20px;
    background: var(--primary);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-input button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.comment-input button i {
    font-size: 16px;
    color: var(--dark);
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.comment-name {
    font-weight: 600;
    font-size: 14px;
}

.comment-handle {
    color: var(--text-secondary);
    font-size: 12px;
}

.comment-time {
    color: var(--text-secondary);
    font-size: 12px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

/* ============================================
   DONATION MODAL
   ============================================ */
.donation-modal {
    max-width: 520px;
}

.donation-modal .modal-body {
    padding: 0;
}

.donation-content {
    padding: 24px;
}

.donation-title {
    text-align: center;
    margin-bottom: 20px;
}

.donation-title h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.donation-title p {
    color: var(--text-secondary);
    font-size: 14px;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: 12px;
    margin-bottom: 20px;
}

.creator-info img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.creator-info .name {
    font-weight: 600;
    font-size: 15px;
    display: block;
}

.creator-info .handle {
    color: var(--text-secondary);
    font-size: 13px;
}

.creator-wallet-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #F0FDF4;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #065F46;
}

.creator-wallet-status i {
    color: #10B981;
}

.creator-wallet-status .has-address {
    font-family: monospace;
    font-weight: 600;
    color: #065F46;
}

.wallet-connect {
    background: linear-gradient(135deg, #1E2329, #2A2F36);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.wallet-connect .wallet-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 6px;
}

.wallet-connect .wallet-status {
    font-size: 14px;
    opacity: 0.8;
}

.wallet-connect .wallet-address {
    font-size: 12px;
    font-family: monospace;
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 8px;
    word-break: break-all;
}

.wallet-connect .btn-connect {
    margin-top: 12px;
    padding: 10px 28px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: var(--dark);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wallet-connect .btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(252, 213, 53, 0.3);
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.donation-amount {
    padding: 12px 8px;
    border: 2px solid var(--border);
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    color: var(--text);
    transition: 0.3s;
}

.donation-amount:hover {
    border-color: var(--primary);
    background: #FFF8E1;
    transform: scale(1.03);
}

.donation-amount .sub-text {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 2px;
}

.custom-donation {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.custom-donation input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
    min-width: 0;
    background: var(--bg);
}

.custom-donation input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(252, 213, 53, 0.1);
}

.custom-donation button {
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.custom-donation button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(252, 213, 53, 0.3);
}

.donation-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.donation-info i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.donation-info strong {
    color: var(--text);
}

/* ============================================
   VIDEO PLAYER OVERLAY
   ============================================ */
.video-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-player-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.video-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-close-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: rotate(90deg);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   NOTIFICATION
   ============================================ */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: slideInRight 0.4s ease;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.notification.success {
    background: #10B981;
}

.notification.error {
    background: #EF4444;
}

.notification.warning {
    background: #F59E0B;
}

.notification.info {
    background: #3B82F6;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   WALLET SETTINGS
   ============================================ */
.wallet-setting {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.wallet-setting label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.wallet-address-short {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    padding: 10px 14px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 13px;
    border: 1px solid var(--border);
}

.wallet-address-short span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-edit-address {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.2s;
}

.btn-edit-address:hover {
    background: rgba(252, 213, 53, 0.15);
}

.wallet-input-group {
    display: flex;
    gap: 8px;
}

.wallet-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-family: monospace;
    outline: none;
    transition: 0.3s;
    background: var(--bg);
}

.wallet-input-group input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(252, 213, 53, 0.1);
}

.btn-save-address {
    padding: 10px 20px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    color: var(--dark);
}

.btn-save-address:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-cancel-edit {
    padding: 10px 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-secondary);
}

.btn-cancel-edit:hover {
    background: #E8EAED;
}

.wallet-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-hint i {
    color: var(--primary);
}

.wallet-hint .success {
    color: #10B981;
}

.wallet-hint .warning {
    color: #F59E0B;
}

/* ============================================
   LOADING / EMPTY
   ============================================ */
.loading,
.empty,
.error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty i,
.error i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: #D1D5DB;
}

.error i {
    color: #EF4444;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1200px) {
    .sidebar-right {
        display: none;
    }
}

@media (max-width: 992px) {
    .feed {
        max-width: 100%;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        padding: 6px 12px;
    }
    
    .search-box {
        max-width: 160px;
    }
    
    .btn-create span {
        display: none;
    }
    
    .btn-create {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .user-profile {
        width: 34px;
        height: 34px;
    }
    
    /* Main Container */
    .main-container {
        padding: 10px 12px;
        gap: 0;
    }
    
    /* Sidebar hidden by default */
    .sidebar-left {
        display: none;
    }
    
    /* Post Cards */
    .post-card {
        padding: 12px 14px;
        border-radius: 12px;
    }
    
    .post-avatar {
        width: 34px;
        height: 34px;
    }
    
    .post-username {
        font-size: 13px;
    }
    
    .post-handle {
        font-size: 12px;
    }
    
    .post-time {
        font-size: 11px;
    }
    
    .post-title {
        font-size: 15px;
    }
    
    .post-description {
        font-size: 13px;
    }
    
    .post-actions {
        justify-content: space-around;
    }
    
    .action-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .action-btn span {
        font-size: 11px;
    }
    
    /* Trending */
    .trending-card {
        min-width: 140px;
        padding: 10px 12px;
    }
    
    /* Feed Header */
    .feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .feed-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        gap: 4px;
    }
    
    .filter-btn {
        white-space: nowrap;
        font-size: 12px;
        padding: 4px 10px;
    }
    
    /* ============================================
       MODALS - MOBILE FULL SCREEN
       ============================================ */
    .modal {
        padding: 0;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .modal-content {
        margin: 0;
        max-width: 100%;
        width: 100%!important;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
        animation: none;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 14px 18px;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        background: var(--white);
        z-index: 10;
    }
    
    .modal-header h2 {
        font-size: 17px;
    }
    
    .modal-body {
        padding: 18px;
    }
    
    .close {
        font-size: 24px;
        padding: 0 4px;
    }
    
    /* Login Modal */
    .login-modal .form-group input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    /* Create Modal */
    .create-modal .form-group {
        margin-bottom: 12px;
    }
    
    .create-modal .form-group input,
    .create-modal .form-group textarea,
    .create-modal .form-group select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .create-modal .form-group textarea {
        min-height: 80px;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    /* Post Detail Modal */
    .post-modal .post-content {
        padding: 14px 16px;
    }
    
    .post-modal .post-avatar {
        width: 40px;
        height: 40px;
    }
    
    .post-modal .post-title {
        font-size: 18px;
    }
    
    .post-modal .post-description {
        font-size: 14px;
    }
    
    .post-modal .post-stats {
        gap: 12px;
        font-size: 13px;
    }
    
    .post-modal .post-actions {
        gap: 4px;
    }
    
    /* Comments */
    .comment-input {
        flex-direction: column;
        gap: 8px;
    }
    
    .comment-input button {
        width: 100%;
        padding: 10px;
        border-radius: 12px;
    }
    
    .comment-item {
        padding: 10px 0;
    }
    
    .comment-item img {
        width: 32px;
        height: 32px;
    }
    
    .comment-name {
        font-size: 13px;
    }
    
    .comment-text {
        font-size: 13px;
    }
    
    /* Donation Modal */
    .donation-content {
        padding: 16px 18px;
    }
    
    .donation-title h3 {
        font-size: 18px;
    }
    
    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .donation-amount {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .custom-donation {
        flex-direction: column;
        gap: 8px;
    }
    
    .custom-donation button {
        width: 100%;
        justify-content: center;
    }
    
    .wallet-connect {
        padding: 16px;
    }
    
    .wallet-connect .wallet-icon {
        font-size: 30px;
    }
    
    /* Notification */
    .notification {
        top: auto;
        bottom: 16px;
        right: 12px;
        left: 12px;
        max-width: 100%;
        font-size: 13px;
        padding: 12px 16px;
        border-radius: 10px;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    .search-box {
        display: none;
    }
    
    .nav-left {
        gap: 8px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo-image {
        width: 28px;
        height: 28px;
    }
    
    .navbar {
        padding: 4px 10px;
    }
    
    .btn-create {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .btn-create i {
        font-size: 14px;
    }
    
    .user-profile {
        width: 30px;
        height: 30px;
    }
    
    .main-container {
        padding: 8px 10px;
    }
    
    .post-card {
        padding: 10px 12px;
        border-radius: 10px;
    }
    
    .post-avatar {
        width: 30px;
        height: 30px;
    }
    
    .post-username {
        font-size: 12px;
    }
    
    .post-title {
        font-size: 14px;
    }
    
    .post-description {
        font-size: 12px;
    }
    
    .action-btn {
        padding: 2px 6px;
        font-size: 11px;
    }
    
    .action-btn i {
        font-size: 12px;
    }
    
    .trending-card {
        min-width: 120px;
        padding: 8px 10px;
    }
    
    .trending-content h4 {
        font-size: 12px;
    }
    
    .modal-header {
        padding: 10px 14px;
    }
    
    .modal-header h2 {
        font-size: 15px;
    }
    
    .modal-body {
        padding: 12px 14px;
    }
    
    .close {
        font-size: 20px;
    }
    
    .login-modal .form-group input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .create-modal .form-group input,
    .create-modal .form-group textarea,
    .create-modal .form-group select {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn-submit {
        padding: 10px;
        font-size: 14px;
    }
    
    .post-modal .post-title {
        font-size: 16px;
    }
    
    .post-modal .post-description {
        font-size: 13px;
    }
    
    .donation-amounts {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .donation-amount {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .wallet-connect .wallet-icon {
        font-size: 24px;
    }
    
    .wallet-connect .btn-connect {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .video-player-overlay {
        padding: 0;
    }
    
    .video-player-container {
        border-radius: 0;
        width: 100%;
    }
    
    .video-close-btn {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .modal {
        padding: 0;
    }
    
    .modal-content {
        height: 100vh;
        max-height: 100vh;
        width: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-header {
        padding: 8px 14px;
    }
    
    .modal-header h2 {
        font-size: 15px;
    }
    
    .modal-body {
        padding: 10px 14px;
    }
    
    .login-modal .form-group {
        margin-bottom: 8px;
    }
    
    .login-modal .form-group input {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .create-modal .form-group {
        margin-bottom: 6px;
    }
    
    .create-modal .form-group input,
    .create-modal .form-group textarea,
    .create-modal .form-group select {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .create-modal .form-group textarea {
        min-height: 50px;
    }
    
    .btn-submit {
        padding: 8px;
        font-size: 13px;
    }
    
    .donation-content {
        padding: 10px 12px;
    }
    
    .donation-amounts {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    
    .donation-amount {
        padding: 4px 4px;
        font-size: 11px;
    }
    
    .wallet-connect {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .wallet-connect .wallet-icon {
        font-size: 24px;
        margin-bottom: 2px;
    }
    
    .custom-donation {
        flex-direction: row;
        gap: 6px;
    }
    
    .custom-donation input {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .custom-donation button {
        padding: 6px 16px;
        font-size: 13px;
    }
}