        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        :root {
            /* Coral Wave Primary */
            --primary: #D66853;
            --primary-dark: #C25A47;
            --primary-light: #E8957E;
            
            /* Rosy Accent */
            --accent: #D66853;
            --accent-dark: #C25A47;
            --accent-light: #FFF0EC;
            
            /* Backgrounds */
            --bg: #FEFBF9;
            --bg-dark: #FFF6F2;
            --bg-card: #FFFFFF;
            
            /* Text */
            --text: #1C1917;
            --text-light: #57534E;
            --text-muted: #A8A29E;
            
            /* Borders & Others */
            --border: rgba(214,104,83,0.08);
            --white: #FFFFFF;
            --green: #5B9A6F;
            --green-light: #E8F2EB;
            --purple: #9C6B8A;
            --purple-dark: #7B5A6E;
            --night: #1C1917;
            --red: #D95550;
            --red-light: #FEE2E2;
            
            /* Semantic colors */
            --brand-text: #1C1917;
            --success: #10B981;
            --success-bg: #D1FAE5;
            --success-text: #047857;
            --warning: #F59E0B;
            --warning-bg: #FFF3CD;
            --warning-border: #FFEAA7;
            --warning-text: #856404;
            --warning-dark: #92400E;
            --warning-amber: #D97706;
            --danger: #EF4444;
            --danger-bg: #FEE2E2;
            --danger-text: #DC2626;
            --danger-dark: #C62828;
            --info-bg: #E8F5E9;
            --info-purple: #5B21B6;
            --neutral-bg: #f5f5f5;
            --neutral-border: #ddd;
            
            /* Aliases (backwards compat) */
            --text-secondary: #57534E;
            --text-dark: #1C1917;
            --bg-secondary: #FFF6F2;
            --bg-hover: rgba(214,104,83,0.06);
            --card-bg: #FFFFFF;
            
            /* Shadows */
            --shadow-sm: 0 2px 8px rgba(45, 41, 38, 0.06);
            --shadow-md: 0 4px 20px rgba(45, 41, 38, 0.08);
            --shadow-lg: 0 8px 40px rgba(45, 41, 38, 0.12);
        }
        
        /* ========== PERFORMANCE OPTIMIZATIONS ========== */
        .content {
            will-change: opacity;
        }
        
        .post-card, .marketplace-card, .channel-card {
            contain: layout style paint;
            content-visibility: auto;
            contain-intrinsic-size: auto 200px;
        }
        
        img {
            content-visibility: auto;
        }
        
        /* Prevent FOUC (Flash of Unstyled Content) */
        #app {
            min-height: 100vh; min-height: 100dvh;
            background: var(--bg);
        }
        
        /* Smooth transitions for navigation */
        .content, .channel-posts, #posts-container {
            transition: opacity 0.15s ease-out;
        }
        
        /* Hardware acceleration for animations */
        .filter-pill, .channel-card, .post-card, .marketplace-card {
            transform: translateZ(0);
            backface-visibility: hidden;
        }
        
        /* Reduce paint on scroll */
        .scrollable, .content {
            overflow-anchor: auto;
        }
        
        /* ========== ACCESSIBILITY ========== */
        /* Respect user's motion preferences */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }
        
        /* Focus styles for keyboard navigation */
        button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
            outline: 3px solid var(--accent);
            outline-offset: 2px;
        }
        
        /* Skip link styling */
        .skip-link:focus {
            top: 0 !important;
        }
        
        /* Screen reader only text */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        
        /* ========== SKELETON LOADING ========== */
        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }
        
        .skeleton {
            background: linear-gradient(90deg, #F5EBE7 25%, #FAF9F7 50%, #F5EBE7 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
            border-radius: 8px;
        }
        
        .skeleton-card {
            background: var(--white);
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 14px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }
        
        .skeleton-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
        }
        
        .skeleton-line {
            height: 14px;
            margin-bottom: 10px;
        }
        
        .skeleton-line.short { width: 40%; }
        .skeleton-line.medium { width: 70%; }
        .skeleton-line.long { width: 100%; }
        
        .skeleton-title {
            height: 18px;
            width: 50%;
            margin-bottom: 12px;
        }
        
        .skeleton-text {
            height: 14px;
            margin-bottom: 8px;
        }
        
        /* ========== PAGE TRANSITIONS ========== */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        
        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(20px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        @keyframes slideInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .page-transition {
            animation: fadeIn 0.3s ease-out;
        }
        
        .slide-in {
            animation: slideInRight 0.3s ease-out;
        }
        
        .slide-up {
            animation: slideInUp 0.35s ease-out;
        }
        
        /* ========== LIKE ANIMATION ========== */
        @keyframes heartPop {
            0% { transform: scale(1); }
            25% { transform: scale(1.3); }
            50% { transform: scale(0.95); }
            100% { transform: scale(1); }
        }
        
        @keyframes heartFloat {
            0% { opacity: 1; transform: translateY(0) scale(1); }
            100% { opacity: 0; transform: translateY(-40px) scale(1.5); }
        }
        
        .like-btn.liked {
            animation: heartPop 0.4s ease-out;
        }
        
        .like-btn .heart-float {
            position: absolute;
            pointer-events: none;
            animation: heartFloat 0.8s ease-out forwards;
        }
        
        /* ========== TYPING INDICATOR ========== */
        .typing-indicator {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 12px 16px;
            background: var(--bg-dark);
            border-radius: 18px;
            width: fit-content;
            margin: 8px 0;
        }
        
        .typing-dot {
            width: 8px;
            height: 8px;
            background: var(--text-muted);
            border-radius: 50%;
            animation: typingBounce 1.4s ease-in-out infinite;
        }
        
        .typing-dot:nth-child(1) { animation-delay: 0s; }
        .typing-dot:nth-child(2) { animation-delay: 0.2s; }
        .typing-dot:nth-child(3) { animation-delay: 0.4s; }
        
        @keyframes typingBounce {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-6px); }
        }
        
        /* ========== SVG ICONS ========== */
        .icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .icon svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
        }
        
        .icon-sm svg { width: 16px; height: 16px; }
        .icon-lg svg { width: 24px; height: 24px; }
        .icon-xl svg { width: 28px; height: 28px; }
        
        /* ========== AVATARS ========== */
        .avatar-svg {
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
            border: 2px solid var(--bg-dark);
        }
        
        .avatar-svg svg {
            width: 100%;
            height: 100%;
            display: block;
        }
        
        .avatar-emoji {
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-light), var(--bg-dark));
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border: 2px solid var(--bg-dark);
        }
        
        /* Avatar Grid in Settings */
        .avatar-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        
        .avatar-option {
            aspect-ratio: 1;
            border: 2px solid var(--border);
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s;
            background: var(--bg);
            padding: 4px;
            overflow: hidden;
        }
        
        .avatar-option:hover {
            border-color: var(--primary);
            transform: scale(1.05);
        }
        
        .avatar-option.selected {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-light);
        }
        
        .avatar-option svg {
            width: 100%;
            height: 100%;
        }
        
        /* ========== BUTTON MICRO-INTERACTIONS ========== */
        .btn-bounce:active {
            animation: buttonBounce 0.15s ease-out;
        }
        
        @keyframes buttonBounce {
            0% { transform: scale(1); }
            50% { transform: scale(0.92); }
            100% { transform: scale(1); }
        }
        
        /* ========== POST CARD ANIMATIONS ========== */
        .post-card {
            animation: fadeIn 0.3s ease-out;
            animation-fill-mode: both;
        }
        
        .posts-list .post-card:nth-child(1) { animation-delay: 0s; }
        .posts-list .post-card:nth-child(2) { animation-delay: 0.05s; }
        .posts-list .post-card:nth-child(3) { animation-delay: 0.1s; }
        .posts-list .post-card:nth-child(4) { animation-delay: 0.15s; }
        .posts-list .post-card:nth-child(5) { animation-delay: 0.2s; }
        
        /* ========== RIPPLE EFFECT ========== */
        .ripple {
            position: relative;
            overflow: hidden;
        }
        
        .ripple::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
            background-image: radial-gradient(circle, var(--primary) 10%, transparent 10.01%);
            background-repeat: no-repeat;
            background-position: 50%;
            transform: scale(10, 10);
            opacity: 0;
            transition: transform 0.4s, opacity 0.4s;
        }
        
        .ripple:active::after {
            transform: scale(0, 0);
            opacity: 0.2;
            transition: 0s;
        }
        
        /* ========== TOAST ANIMATION ========== */
        @keyframes toastSlideIn {
            from { transform: translateY(100px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        @keyframes toastSlideOut {
            from { transform: translateY(0); opacity: 1; }
            to { transform: translateY(100px); opacity: 0; }
        }
        
        .toast {
            animation: toastSlideIn 0.3s ease-out;
        }
        
        .toast.hiding {
            animation: toastSlideOut 0.3s ease-out forwards;
        }
        
        /* ========== CHANNEL CARD STAGGER ========== */
        .channels-grid .channel-card {
            animation: slideInUp 0.4s ease-out both;
        }
        
        .channels-grid .channel-card:nth-child(1) { animation-delay: 0s; }
        .channels-grid .channel-card:nth-child(2) { animation-delay: 0.05s; }
        .channels-grid .channel-card:nth-child(3) { animation-delay: 0.1s; }
        .channels-grid .channel-card:nth-child(4) { animation-delay: 0.15s; }
        .channels-grid .channel-card:nth-child(5) { animation-delay: 0.2s; }
        .channels-grid .channel-card:nth-child(6) { animation-delay: 0.25s; }
        .channels-grid .channel-card:nth-child(7) { animation-delay: 0.3s; }
        
        /* ========== REACTIONS ========== */
        .reactions-container {
            position: relative;
            display: inline-block;
        }
        
        .reactions-popup {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) scale(0.8);
            background: var(--white);
            border-radius: 24px;
            padding: 8px 12px;
            display: flex;
            gap: 4px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            z-index: 100;
        }
        
        .reactions-popup.show {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) scale(1);
        }
        
        .reaction-btn {
            font-size: 24px;
            padding: 6px;
            cursor: pointer;
            transition: transform 0.15s ease;
            border-radius: 50%;
        }
        
        .reaction-btn:hover {
            transform: scale(1.3);
            background: var(--bg);
        }
        
        .reaction-btn:active {
            transform: scale(1.1);
        }
        
        .reactions-summary {
            display: flex;
            align-items: center;
            gap: 2px;
            font-size: 13px;
        }
        
        .reactions-summary .reaction-icon {
            font-size: 14px;
        }
        
        /* ========== DARK MODE ========== */
        @media (prefers-color-scheme: dark) {
            :root.auto-dark {
                --primary: #FF8DC7;
                --primary-dark: #D66853;
                --primary-light: #FFB4DB;
                --bg: #1A1614;
                --bg-dark: #2D2522;
                --text: #F5EBE6;
                --text-light: #D4C4BC;
                --text-muted: #A89890;
                --border: #3D322C;
                --white: #252019;
            }
        }
        
        :root.dark-mode {
            --primary: #E8957E;
            --primary-dark: #D66853;
            --primary-light: #F0B8A8;
            --accent: #E8957E;
            --accent-dark: #D66853;
            --accent-light: rgba(232, 149, 126, 0.15);
            --bg: #121212;
            --bg-dark: #1E1E1E;
            --text: #FFFFFF;
            --text-light: #F0F0F0;
            --text-muted: #B0B0B0;
            --border: rgba(232, 149, 126, 0.12);
            --white: #1E1E1E;
            
            /* Semantic colors - dark mode */
            --brand-text: #F0B8A8;
            --success: #34D399;
            --success-bg: #064E3B;
            --success-text: #6EE7B7;
            --warning: #FBBF24;
            --warning-bg: #78350F;
            --warning-border: #92400E;
            --warning-text: #FDE68A;
            --warning-dark: #FDE68A;
            --warning-amber: #FBBF24;
            --danger: #F87171;
            --danger-bg: #7F1D1D;
            --danger-text: #FCA5A5;
            --danger-dark: #FCA5A5;
            --info-bg: #064E3B;
            --info-purple: #C4B5FD;
            --neutral-bg: #2A2A2A;
            --neutral-border: #444;
        }
        
        .dark-mode .post-card,
        .dark-mode .modal,
        .dark-mode .home-filter-select,
        .dark-mode .chat-item,
        .dark-mode .option-card {
            background: #252525 !important;
        }
        
        .dark-mode .form-input,
        .dark-mode .form-textarea,
        .dark-mode .form-select,
        .dark-mode .text-input {
            background: #2A2A2A !important;
            color: #FFFFFF !important;
            border-color: #444 !important;
        }
        
        .dark-mode .form-input::placeholder,
        .dark-mode .form-textarea::placeholder {
            color: #888 !important;
        }
        
        .dark-mode-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            background: var(--white);
            border-radius: 12px;
            margin-bottom: 12px;
            cursor: pointer;
        }
        
        .toggle-switch {
            width: 50px;
            height: 28px;
            background: var(--border);
            border-radius: 12px;
            position: relative;
            transition: background 0.3s;
        }
        
        .toggle-switch.active {
            background: var(--primary);
        }
        
        .toggle-switch::after {
            content: '';
            position: absolute;
            width: 22px;
            height: 22px;
            background: white;
            border-radius: 50%;
            top: 3px;
            left: 3px;
            transition: transform 0.3s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .toggle-switch.active::after {
            transform: translateX(22px);
        }
        
        /* ========== KONFETI ========== */
        @keyframes confetti-fall {
            0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
            100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
        }
        
        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            top: -10px;
            z-index: 9999;
            pointer-events: none;
            animation: confetti-fall 3s ease-out forwards;
        }
        
        .confetti.circle { border-radius: 50%; }
        .confetti.square { border-radius: 2px; }
        .confetti.triangle { 
            width: 0; height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 10px solid currentColor;
            background: transparent !important;
        }
        
        /* ========== SEEN/DELIVERED ========== */
        .message-status {
            font-size: 12px;
            color: var(--text-muted);
            margin-left: 4px;
        }
        
        .message-status.seen {
            color: #3B82F6;
        }
        
        .message-time-row {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 4px;
            margin-top: 4px;
        }
        
        /* ========== IMAGE UPLOAD ========== */
        .image-upload-area {
            border: 2px dashed var(--border);
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 16px;
        }
        
        .image-upload-area:hover {
            border-color: var(--primary);
            background: rgba(196, 154, 140, 0.05);
        }
        
        .image-upload-area.has-image {
            border-style: solid;
            border-color: var(--primary);
            padding: 8px;
        }
        
        .image-preview {
            max-width: 100%;
            max-height: 200px;
            border-radius: 8px;
            object-fit: cover;
        }
        
        .image-preview-container {
            position: relative;
            display: inline-block;
        }
        
        .image-remove-btn {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 24px;
            height: 24px;
            background: #EF4444;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh; min-height: 100dvh;
            min-height: -webkit-fill-available;
            overflow-x: hidden;
        }
        
        html { height: -webkit-fill-available; }
        
        #app {
            max-width: 480px;
            margin: 0 auto;
            min-height: 100vh; min-height: 100dvh;
            min-height: -webkit-fill-available;
            background: var(--bg);
            position: relative;
        }
        
        /* Loading */
        .loading-screen {
            min-height: 100vh; min-height: 100dvh;
            background: var(--bg);
            padding: 20px;
        }
        
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid var(--white);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        .loading-spinner.small {
            width: 24px;
            height: 24px;
            border-width: 3px;
        }
        
        .load-more-trigger {
            display: flex;
            justify-content: center;
            padding: 20px;
            min-height: 60px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .loading-text {
            margin-top: 16px;
            color: var(--text);
            font-weight: 500;
        }
        
        /* Skeleton Loading */
        .skeleton-container {
            padding-top: 40px;
        }
        
        .skeleton {
            background: linear-gradient(90deg, #E8E0DC 25%, #F0E8E4 50%, #E8E0DC 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 8px;
        }
        
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        .skeleton-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        .skeleton-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        
        .skeleton-header-text {
            flex: 1;
        }
        
        .skeleton-title {
            height: 16px;
            width: 120px;
            margin-bottom: 8px;
        }
        
        .skeleton-subtitle {
            height: 12px;
            width: 80px;
        }
        
        .skeleton-content {
            height: 16px;
            width: 100%;
            margin-bottom: 8px;
        }
        
        .skeleton-content.short {
            width: 70%;
            margin-bottom: 20px;
        }
        
        /* Auth Screens */
        .auth-screen {
            min-height: 100vh; min-height: 100dvh;
            display: flex;
            flex-direction: column;
            background: linear-gradient(165deg, #D66853 0%, #C25A47 50%, #B04E3D 100%);
            padding: 40px 24px;
        }
        
        .auth-logo {
            text-align: center;
            margin-bottom: 40px;
            margin-top: 40px;
        }
        
        .auth-logo-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--white);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 40px;
            margin: 0 auto 16px;
            box-shadow: 0 10px 40px rgba(166, 133, 112, 0.4);
        }
        
        .auth-logo h1, .auth-brand {
            font-size: 36px;
            font-weight: 800;
            letter-spacing: 4px;
            color: #FFFFFF;
        }
        
        .auth-wordmark-text {
            display: flex;
            align-items: flex-end;
            justify-content: center;
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            font-weight: 800;
            font-size: 36px;
            letter-spacing: 3px;
            color: #2D2320;
        }
        
        .auth-letters {
            display: inline;
        }
        
        .auth-i-container {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            margin-left: 1px;
        }
        
        .auth-heart-dot {
            font-size: 14px;
            line-height: 1;
            color: #D66853;
            margin-bottom: -3px;
        }
        
        .auth-i {
            line-height: 1;
        }
        
        .auth-underline {
            width: 140px;
            height: 3px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
            border-radius: 2px;
            margin: 8px auto 0;
        }
        
        .auth-logo p, .auth-tagline {
            font-size: 13px;
            font-weight: 500;
            color: rgba(255,255,255,0.85);
            margin-top: 6px;
            letter-spacing: 2px;
            text-transform: uppercase;
        }
        
        .auth-form {
            background: var(--white);
            border-radius: 24px;
            padding: 32px 24px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        }
        
        .auth-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 24px;
            text-align: center;
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .form-input {
            width: 100%;
            padding: 14px 16px;
            border-radius: 12px;
            border: 2px solid var(--border);
            font-size: 16px;
            font-family: inherit;
            outline: none;
            transition: all 0.2s ease;
            background: var(--bg-card);
            color: var(--text);
        }
        
        .form-input:hover {
            border-color: var(--primary-light);
        }
        
        .form-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px var(--accent-light);
        }
        
        .form-input::placeholder {
            color: var(--text-muted);
        }

        /* Prevent iOS auto-zoom on input focus */
        @supports (-webkit-touch-callout: none) {
            input, textarea, select {
                font-size: 16px !important;
            }
        }
        
        .form-error {
            color: var(--red);
            font-size: 13px;
            margin-top: 8px;
            padding: 12px;
            background: var(--red-light);
            border-radius: 10px;
            border: 1px solid var(--red);
        }
        
        .char-count {
            text-align: right;
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 4px;
        }
        
        .char-count.warning {
            color: #FF9800;
        }
        
        .char-count.limit {
            color: var(--red);
        }
        
        /* Poll Styles */
        .poll-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: var(--bg);
            border-radius: 12px;
            cursor: pointer;
            margin-bottom: 12px;
            transition: all 0.2s;
        }
        
        .poll-toggle:hover {
            background: var(--bg-dark);
        }
        
        .poll-toggle.active {
            background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
            border: 2px solid #8B5CF6;
        }
        
        .poll-toggle-icon {
            font-size: 20px;
        }
        
        .poll-toggle-text {
            font-size: 14px;
            font-weight: 500;
            color: var(--text);
        }
        
        .poll-builder {
            background: var(--bg);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
        }
        
        .poll-option-input {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }
        
        .poll-option-input input {
            flex: 1;
            padding: 10px 14px;
            border: 1.5px solid var(--border);
            border-radius: 10px;
            font-size: 14px;
            font-family: inherit;
            background: var(--white);
        }
        
        .poll-option-input input:focus {
            outline: none;
            border-color: #8B5CF6;
        }
        
        .poll-option-remove {
            width: 32px;
            height: 32px;
            border: none;
            background: rgba(239, 68, 68, 0.1);
            color: #EF4444;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
        }
        
        .poll-add-option {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px;
            border: 2px dashed var(--border);
            border-radius: 10px;
            background: transparent;
            color: var(--text-muted);
            font-size: 13px;
            cursor: pointer;
            width: 100%;
            margin-top: 8px;
            transition: all 0.2s;
        }
        
        .poll-add-option:hover {
            border-color: #8B5CF6;
            color: #8B5CF6;
        }
        
        /* Poll Display in Posts */
        .post-poll {
            background: var(--bg);
            border-radius: 12px;
            padding: 16px;
            margin-top: 12px;
        }
        
        .post-poll-question {
            font-weight: 600;
            color: var(--text);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .poll-option {
            margin-bottom: 10px;
        }
        
        .poll-option-btn {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid var(--border);
            border-radius: 10px;
            background: var(--white);
            text-align: left;
            cursor: pointer;
            font-family: inherit;
            font-size: 14px;
            transition: all 0.2s;
            position: relative;
            overflow: hidden;
        }
        
        .poll-option-btn:hover:not(.voted):not(.disabled) {
            border-color: #8B5CF6;
            background: rgba(139, 92, 246, 0.05);
        }
        
        .poll-option-btn.selected {
            border-color: #8B5CF6;
            background: rgba(139, 92, 246, 0.1);
        }
        
        .poll-option-btn.voted {
            cursor: default;
        }
        
        .poll-option-bar {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
            border-radius: 8px;
            transition: width 0.5s ease;
        }
        
        .poll-option-content {
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .poll-option-text {
            font-weight: 500;
            color: var(--text);
        }
        
        .poll-option-stats {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-muted);
        }
        
        .poll-option-percent {
            font-weight: 600;
            color: #8B5CF6;
        }
        
        .poll-total-votes {
            text-align: center;
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
        }
        
        .btn-primary {
            width: 100%;
            padding: 16px;
            border-radius: 12px;
            border: none;
            background: linear-gradient(135deg, #D66853, #C25A47);
            color: var(--white);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(214, 104, 83, 0.35);
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            font-family: inherit;
            position: relative;
            overflow: hidden;
        }
        
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
        
        .btn-primary:hover::before {
            left: 100%;
        }
        
        .category-chip {
            padding: 6px 12px;
            border-radius: 16px;
            border: 1.5px solid var(--border);
            background: var(--bg-card);
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            white-space: nowrap;
            font-family: inherit;
            transition: all 0.2s;
        }
        
        .category-chip.active {
            background: var(--accent-light);
            color: var(--accent);
            border-color: var(--accent);
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(214, 104, 83, 0.4);
        }
        
        .btn-primary:active {
            transform: translateY(0) scale(0.98);
        }
        
        .btn-primary:disabled {
            background: var(--border);
            color: var(--text-muted);
            box-shadow: none;
            cursor: default;
            transform: none;
        }
        
        .auth-switch {
            text-align: center;
            margin-top: 24px;
            font-size: 14px;
            color: var(--text-light);
        }
        
        .auth-switch a {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
        }
        
        /* Splash - Premium Brand Experience */
        .splash {
            height: 100vh; height: 100dvh;
            background: linear-gradient(165deg, #FFF5F8 0%, #FFE8EF 25%, #FFD6E4 50%, #FFC4D8 75%, #FFB0CC 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        
        .splash-bg-elements {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
        }
        
        .splash-circle {
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(224,82,151,0.1) 0%, transparent 70%);
        }
        
        .splash-circle.c1 {
            width: 400px;
            height: 400px;
            top: -150px;
            right: -100px;
            animation: floatSlow 8s ease-in-out infinite;
        }
        
        .splash-circle.c2 {
            width: 300px;
            height: 300px;
            bottom: -100px;
            left: -80px;
            animation: floatSlow 10s ease-in-out infinite reverse;
        }
        
        .splash-circle.c3 {
            width: 200px;
            height: 200px;
            top: 40%;
            left: 60%;
            animation: floatSlow 6s ease-in-out infinite;
        }
        
        @keyframes floatSlow {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(20px, -20px) scale(1.05); }
        }
        
        .splash-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 1;
        }
        
        .splash-logo-container {
            position: relative;
            margin-bottom: 40px;
        }
        
        .splash-logo-svg {
            animation: logoFloat 4s ease-in-out infinite;
            filter: drop-shadow(0 25px 50px rgba(180, 130, 110, 0.4));
        }
        
        @keyframes logoFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        .splash-logo-ring {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 220px;
            height: 220px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            animation: ringPulse 3s ease-in-out infinite;
        }
        
        @keyframes ringPulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
            50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.1; }
        }
        
        .splash-brand {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .splash-wordmark-text {
            display: flex;
            align-items: flex-end;
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            font-weight: 800;
            font-size: 48px;
            letter-spacing: 4px;
            color: #2D2320;
        }
        
        .splash-letters {
            display: inline;
        }
        
        .splash-i-container {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            margin-left: 2px;
        }
        
        .splash-heart-dot {
            font-size: 18px;
            line-height: 1;
            color: #D66853;
            margin-bottom: -4px;
        }
        
        .splash-i {
            line-height: 1;
        }
        
        .splash-underline {
            width: 180px;
            height: 4px;
            background: linear-gradient(90deg, transparent, #D4A59A, transparent);
            border-radius: 2px;
            margin-top: 8px;
        }
        
        .splash-wordmark {
            display: block;
        }
        
        .splash-letter {
            font-size: 52px;
            font-weight: 800;
            color: #3D2C29;
            letter-spacing: 4px;
            text-shadow: 0 2px 20px rgba(61, 44, 41, 0.15);
            animation: letterReveal 0.6s ease-out backwards;
        }
        
        .splash-letter:nth-child(1) { animation-delay: 0.1s; }
        .splash-letter:nth-child(2) { animation-delay: 0.2s; }
        .splash-letter:nth-child(3) { animation-delay: 0.3s; }
        .splash-letter:nth-child(4) { animation-delay: 0.4s; }
        
        @keyframes letterReveal {
            0% { opacity: 0; transform: translateY(30px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        
        .splash-tagline {
            font-size: 15px;
            font-weight: 500;
            color: #6B5750;
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-bottom: 24px;
            animation: fadeUp 0.8s ease-out 0.5s backwards;
        }
        
        @keyframes fadeUp {
            0% { opacity: 0; transform: translateY(20px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        
        .splash-line {
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, transparent, #C49A8C, transparent);
            border-radius: 2px;
            animation: fadeUp 0.8s ease-out 0.6s backwards;
        }
        
        .splash-hint {
            position: absolute;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 500;
            color: #8B7355;
            letter-spacing: 1px;
            opacity: 1;
            white-space: nowrap;
        }
        
        .splash-hint-dot {
            width: 6px;
            height: 6px;
            background: #C49A8C;
            border-radius: 50%;
            animation: dotPulse 1.5s ease-in-out infinite;
        }
        
        @keyframes dotPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.5); }
        }
        
        .splash-logo {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, #FFFFFF 0%, #F5E6E0 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 56px;
            box-shadow: 0 20px 60px rgba(180, 130, 110, 0.4);
            margin-bottom: 32px;
        }
        
        .splash-title {
            font-size: 42px;
            font-weight: 800;
            letter-spacing: 6px;
            color: var(--text);
            margin-bottom: 8px;
        }
        
        .splash h1 {
            font-size: 36px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 12px;
        }
        
        .splash p {
            font-size: 16px;
            color: var(--text-light);
        }
        
        /* Auth logo */
        .auth-logo-svg {
            filter: drop-shadow(0 8px 20px rgba(180, 130, 110, 0.3));
            margin-bottom: 16px;
        }
        
        /* Onboarding */
        .onboarding {
            min-height: 100vh; min-height: 100dvh;
            min-height: -webkit-fill-available;
            display: flex;
            flex-direction: column;
            background: var(--bg);
        }
        
        .progress {
            display: flex;
            gap: 8px;
            padding: 12px 24px;
        }
        
        .progress-dot {
            flex: 1;
            height: 4px;
            border-radius: 2px;
            background: var(--border);
            transition: background 0.3s;
        }
        
        .progress-dot.active {
            background: var(--primary);
        }
        
        .onboarding-content {
            flex: 1;
            padding: 16px 24px;
            overflow-y: auto;
        }
        
        .onboarding-footer {
            padding: 16px 24px 24px;
            background: var(--bg);
            position: sticky;
            bottom: 0;
        }
        
        /* ===== INTRO WALKTHROUGH ===== */
        .intro-walkthrough {
            min-height: 100vh; min-height: 100dvh;
            min-height: -webkit-fill-available;
            display: flex;
            flex-direction: column;
            background: var(--bg);
            overflow: hidden;
            position: relative;
        }
        .intro-slide {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 32px 24px;
            text-align: center;
            animation: introFadeIn 0.4s ease;
        }
        @keyframes introFadeIn {
            from { opacity: 0; transform: translateX(30px); }
            to { opacity: 1; transform: translateX(0); }
        }
        .intro-illustration {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 32px;
            font-size: 80px;
            position: relative;
            overflow: hidden;
        }
        .intro-illustration::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            opacity: 0.15;
        }
        .intro-illustration.slide-0 { background: linear-gradient(135deg, #FFF0F5, #FFE4EC); }
        .intro-illustration.slide-0::before { background: linear-gradient(135deg, #D66853, #C25A47); }
        .intro-illustration.slide-1 { background: linear-gradient(135deg, #F0F4FF, #E4ECFF); }
        .intro-illustration.slide-1::before { background: linear-gradient(135deg, #5C6BC0, #3949AB); }
        .intro-illustration.slide-2 { background: linear-gradient(135deg, #FFF8E1, #FFECB3); }
        .intro-illustration.slide-2::before { background: linear-gradient(135deg, #FF8F00, #F57C00); }
        .intro-illustration.slide-3 { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
        .intro-illustration.slide-3::before { background: linear-gradient(135deg, #43A047, #2E7D32); }
        .intro-title {
            font-size: 26px;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 12px;
            line-height: 1.2;
        }
        .intro-desc {
            font-size: 16px;
            color: var(--text-secondary);
            line-height: 1.6;
            max-width: 320px;
        }
        .intro-footer {
            padding: 16px 32px 40px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: center;
        }
        .intro-dots {
            display: flex;
            gap: 8px;
            margin-bottom: 8px;
        }
        .intro-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--border);
            transition: all 0.3s;
        }
        .intro-dot.active {
            width: 24px;
            border-radius: 4px;
            background: var(--primary);
        }
        .intro-skip {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 14px;
            cursor: pointer;
            padding: 8px 16px;
            margin-top: 4px;
        }
        
        .step-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 16px;
            text-align: center;
        }
        
        .step-subtitle {
            font-size: 14px;
            color: var(--text-muted);
            text-align: center;
            margin-top: -16px;
            margin-bottom: 24px;
        }
        
        .welcome-icon {
            font-size: 64px;
            text-align: center;
            margin-bottom: 24px;
        }
        
        .welcome-text {
            font-size: 16px;
            color: var(--text-light);
            line-height: 1.6;
            text-align: center;
            margin-bottom: 32px;
        }
        
        .features-box {
            background: #FFF8F5;
            border-radius: 16px;
            padding: 20px;
        }
        
        .feature-item {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        .feature-item:last-child {
            margin-bottom: 0;
        }
        
        .feature-icon {
            font-size: 24px;
        }
        
        .feature-text {
            color: var(--text);
            font-weight: 500;
        }
        
        .option-card {
            background: var(--white);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 16px;
            border: 2px solid var(--border);
            transition: all 0.2s;
        }
        
        .option-card.selected {
            background: linear-gradient(135deg, var(--primary-light), var(--primary));
            border-color: transparent;
        }
        
        .option-card.selected .option-title,
        .option-card.selected .option-desc {
            color: var(--white);
        }
        
        .option-emoji {
            font-size: 36px;
        }
        
        .option-title {
            font-weight: 600;
            color: var(--text);
            margin-bottom: 4px;
        }
        
        .option-desc {
            font-size: 13px;
            color: var(--text-muted);
        }
        
        .grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        
        .grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        
        .grid-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .year-card {
            background: var(--white);
            border-radius: 10px;
            padding: 12px 8px;
            text-align: center;
            cursor: pointer;
            border: 2px solid var(--border);
            transition: all 0.2s;
            font-weight: 600;
            color: var(--text);
            font-size: 14px;
        }
        
        .year-card.selected {
            background: linear-gradient(135deg, var(--primary-light), var(--primary));
            border-color: transparent;
            color: var(--white);
        }
        
        .month-card, .city-card {
            background: var(--white);
            border-radius: 12px;
            padding: 16px 8px;
            text-align: center;
            cursor: pointer;
            border: 2px solid var(--border);
            transition: all 0.2s;
        }
        
        .month-card.selected, .city-card.selected {
            background: linear-gradient(135deg, var(--primary-light), var(--primary));
            border-color: transparent;
        }
        
        .month-card.selected .month-name,
        .city-card.selected {
            color: var(--white);
        }
        
        .month-name {
            font-weight: 600;
            color: var(--text);
            font-size: 15px;
        }
        
        .city-card {
            padding: 14px;
            font-weight: 500;
            color: var(--text);
            font-size: 14px;
        }
        
        .text-input {
            width: 100%;
            padding: 16px;
            border-radius: 12px;
            border: 2px solid var(--border);
            font-size: 16px;
            font-family: inherit;
            outline: none;
            transition: border-color 0.2s;
        }
        
        .text-input:focus {
            border-color: var(--primary);
        }
        
        .input-hint {
            font-size: 13px;
            color: var(--text-muted);
            margin: 20px 0 12px;
        }
        
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tag {
            background: var(--bg-dark);
            color: var(--text-light);
            padding: 10px 18px;
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            font-family: inherit;
        }
        
        .tag.selected {
            background: var(--primary);
            color: var(--white);
        }
        
        /* Main App */
        .screen {
            min-height: 100vh; min-height: 100dvh;
            display: flex;
            flex-direction: column;
            background: var(--bg);
        }
        
        #page-content {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
        }
        
        .header {
            background: linear-gradient(135deg, #F5EBE7, #FAF9F7);
            padding: 16px 20px;
            position: sticky;
            top: 0;
            z-index: 100;
            overflow: hidden;
            border-bottom: 1px solid var(--border);
        }
        
        .header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 100%;
        }
        
        .post-actions {
            display: flex;
            gap: 2px;
            flex-shrink: 0;
        }
        
        .header-label {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 2px;
        }
        
        .header-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
        }
        
        .content {
            flex: 1;
            overflow-y: auto;
            padding: 8px 16px;
            padding-bottom: 100px;
        }
        
        /* SOS Banner */
        .sos-banner {
            background: linear-gradient(135deg, #4A3F6B, var(--night));
            padding: 14px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
        }
        
        .sos-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255,255,255,0.15);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 18px;
        }
        
        .sos-text {
            flex: 1;
        }
        
        .sos-title {
            color: var(--white);
            font-weight: 600;
            font-size: 14px;
        }
        
        .sos-subtitle {
            color: rgba(255,255,255,0.7);
            font-size: 12px;
        }
        
        .sos-arrow {
            color: rgba(255,255,255,0.5);
        }
        
        .sos-banner.inactive {
            background: linear-gradient(135deg, #6B6B7B, #4A4A5A);
            cursor: default;
            opacity: 0.7;
        }
        
        /* Subcategory filters */
        .subcategory-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .subcategory-chip {
            padding: 8px 14px;
            border-radius: 20px;
            border: 1px solid var(--border);
            background: var(--white);
            color: var(--text-light);
            font-size: 13px;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .subcategory-chip.active {
            background: var(--primary);
            border-color: var(--primary);
            color: var(--white);
        }
        
        /* Load More Button */
        .load-more-btn {
            width: 100%;
            padding: 14px;
            margin-top: 8px;
            margin-bottom: 16px;
            border: 2px dashed var(--border);
            border-radius: 12px;
            background: transparent;
            color: var(--text-muted);
            font-size: 14px;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .load-more-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        /* Image Upload */
        .image-upload-area {
            margin-bottom: 16px;
        }
        
        .image-upload-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 16px;
            border: 2px dashed var(--border);
            border-radius: 12px;
            color: var(--text-muted);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .image-upload-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .image-preview {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
        }
        
        .image-preview img {
            width: 100%;
            max-height: 200px;
            object-fit: cover;
            border-radius: 12px;
        }
        
        .image-remove-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(0,0,0,0.6);
            color: white;
            border: none;
            font-size: 14px;
            cursor: pointer;
        }
        
        .multi-image-grid {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .image-preview.small {
            width: 80px;
            height: 80px;
        }
        
        .image-preview.small img {
            width: 80px;
            height: 80px;
            object-fit: cover;
        }
        
        .image-preview.small .image-remove-btn {
            width: 22px;
            height: 22px;
            font-size: 12px;
            top: 4px;
            right: 4px;
        }
        
        .image-upload-btn.small {
            width: 80px;
            height: 80px;
            min-height: 80px;
            font-size: 20px;
        }
        
        /* Post Image */
        .post-image {
            width: 100%;
            border-radius: 10px;
            margin: 12px 0;
            max-height: 300px;
            object-fit: cover;
            cursor: pointer;
        }
        
        .post-images-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 8px;
            margin: 12px 0;
        }
        
        .post-images-grid .post-image {
            margin: 0;
            height: 150px;
            object-fit: cover;
        }
        
        .image-fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.95);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            cursor: pointer;
            outline: none;
        }
        
        .image-fullscreen img {
            max-width: 95%;
            max-height: 85%;
            object-fit: contain;
            transition: opacity 0.15s ease;
        }
        
        .image-gallery-close {
            position: absolute;
            top: max(16px, env(safe-area-inset-top));
            right: 16px;
            background: rgba(255,255,255,0.15);
            border: none;
            color: white;
            font-size: 22px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10001;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
        }
        
        .image-gallery-counter {
            position: absolute;
            bottom: max(24px, env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 14px;
            font-weight: 600;
            background: rgba(0,0,0,0.5);
            padding: 6px 16px;
            border-radius: 20px;
            backdrop-filter: blur(4px);
        }
        
        .image-gallery-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.15);
            border: none;
            color: white;
            font-size: 32px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10001;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
            transition: background 0.2s;
        }
        
        .image-gallery-arrow:hover {
            background: rgba(255,255,255,0.3);
        }
        
        .image-gallery-prev { left: 12px; }
        .image-gallery-next { right: 12px; }
        
        @media (max-width: 600px) {
            .image-gallery-arrow { display: none; }
        }
        
        /* Home Header */
        .home-header-new {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 16px;
            padding-top: max(8px, env(safe-area-inset-top));
            background: rgba(255, 255, 255, 0.72);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        }
        
        .header-left {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            transition: transform 0.15s ease, opacity 0.15s ease;
            padding: 6px 10px 6px 6px;
            border-radius: 12px;
            min-width: 0;
            overflow: hidden;
        }
        
        .header-left:hover {
            background: rgba(0, 0, 0, 0.03);
        }
        
        .header-left:active {
            transform: scale(0.95);
            opacity: 0.8;
        }
        
        .header-logo {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .header-logo svg {
            filter: drop-shadow(0 1px 2px rgba(214, 104, 83, 0.15));
        }
        
        .header-brand-text {
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            font-weight: 700;
            font-size: 20px;
            letter-spacing: 0.5px;
            color: var(--text);
        }
        
        .header-actions {
            display: flex;
            align-items: center;
            gap: 2px;
            flex-shrink: 0;
        }
        
        .header-icon-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
            position: relative;
            color: var(--text-light);
            -webkit-tap-highlight-color: transparent;
        }
        
        .header-icon-btn svg {
            stroke: var(--text-light);
            stroke-width: 2;
            width: 22px;
            height: 22px;
        }
        
        .header-icon-btn:hover {
            background: rgba(0, 0, 0, 0.04);
            color: var(--text);
        }
        
        .header-icon-btn:hover svg {
            stroke: var(--text);
        }
        
        .header-icon-btn:active {
            transform: scale(0.9);
            background: rgba(0, 0, 0, 0.06);
        }
        
        .header-icon-btn svg {
            width: 22px;
            height: 22px;
            stroke-width: 1.75;
        }
        
        :root.dark-mode .header-icon-btn svg {
            stroke: #FF8DC7;
        }
        
        :root.dark-mode .header-icon-btn:hover svg {
            stroke: #E8957E;
        }
        
        :root.dark-mode .tab-bar {
            background: rgba(30, 30, 30, 0.82);
            border-color: rgba(232, 149, 126, 0.12);
        }
        
        .header-badge {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 10px;
            height: 10px;
            background: linear-gradient(135deg, #EF4444, #DC2626);
            border-radius: 50%;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
            animation: pulse-badge 2s ease-in-out infinite;
        }
        
        @keyframes pulse-badge {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.15); opacity: 0.9; }
        }
        
        .header-badge.has-count {
            width: auto;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            font-size: 12px;
            font-weight: 700;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            top: 2px;
            right: 2px;
        }
        
        /* Remove old header styles */
        .mami-logo-premium,
        .header-text,
        .header-brand-container,
        .mami-wordmark-text,
        .mami-letters,
        .mami-i-container,
        .mami-heart-dot,
        .mami-i,
        .mami-wordmark,
        .header-brand,
        .header-greeting {
            display: none;
        }
        
        .header-search-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text);
            cursor: pointer;
            transition: all 0.15s ease;
            -webkit-tap-highlight-color: transparent;
        }
        
        .header-search-btn:hover {
            background: var(--bg-dark);
        }
        
        .header-search-btn:active {
            transform: scale(0.92);
        }
        
        .header-search-btn svg {
            width: 22px;
            height: 22px;
            stroke-width: 2;
        }
        
        .home-search-expanded {
            padding: 0 20px 16px;
            animation: slideDown 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .search-input-wrapper {
            display: flex;
            align-items: center;
            background: var(--white);
            border: 2px solid var(--border);
            border-radius: 16px;
            padding: 0 16px;
            gap: 12px;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(93, 64, 55, 0.04);
        }
        
        .search-input-wrapper:focus-within {
            border-color: var(--primary);
            box-shadow: 0 4px 16px rgba(196, 154, 140, 0.2);
        }
        
        .search-input-icon {
            color: var(--text-muted);
            flex-shrink: 0;
        }
        
        .search-input-field {
            flex: 1;
            border: none;
            background: transparent;
            padding: 14px 0;
            font-size: 16px;
            color: var(--text);
            font-family: inherit;
        }
        
        .search-input-field:focus {
            outline: none;
        }
        
        .search-input-field::placeholder {
            color: var(--text-muted);
        }
        
        .search-close-btn {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            background: var(--bg-dark);
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        
        .search-close-btn:active {
            transform: scale(0.9);
            background: var(--border);
        }
        
        .home-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px 8px;
            background: var(--bg);
        }
        
        .home-header-compact {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            background: var(--bg);
        }
        
        .mami-brand-compact {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .mami-logo-compact {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
        }
        
        .mami-header-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        
        .mami-name {
            font-size: 20px;
            font-weight: 800;
            letter-spacing: 2px;
            color: #3D2C29;
        }
        
        .mami-greeting {
            font-size: 13px;
            color: var(--text-light);
        }
        
        .mami-brand {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .mami-logo {
            width: 48px;
            height: 48px;
        }
        
        .mami-text {
            font-size: 32px;
            font-weight: 800;
            letter-spacing: 4px;
            color: #3D2C29;
            text-shadow: 0 1px 2px rgba(61, 44, 41, 0.1);
        }
        
        .home-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
        }
        
        .home-logo-svg {
            width: 36px;
            height: 36px;
        }
        
        .home-greeting {
            font-size: 16px;
            color: var(--text);
            margin-bottom: 12px;
            font-weight: 500;
        }
        
        .home-search-row {
            margin-bottom: 12px;
        }
        
        .home-search-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
        
        .home-search-icon {
            position: absolute;
            left: 14px;
            font-size: 14px;
        }
        
        .home-search-input {
            width: 100%;
            padding: 12px 40px 12px 40px;
            border-radius: 12px;
            border: 1.5px solid var(--border);
            background: var(--white);
            color: var(--text);
            font-size: 14px;
            font-family: inherit;
        }
        
        .home-search-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .home-search-clear {
            position: absolute;
            right: 12px;
            background: none;
            border: none;
            font-size: 14px;
            color: var(--text-muted);
            cursor: pointer;
            padding: 4px;
        }
        
        .home-filter-row {
            display: flex;
            gap: 8px;
            margin-bottom: 8px;
            margin-top: 0;
            padding: 0;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        /* Premium Filter Pills */
        .filter-pills-container {
            margin-bottom: 12px;
            margin-left: -16px;
            margin-right: -16px;
            padding: 0 16px;
            overflow: hidden;
            position: relative;
        }
        
        .filter-pills-container::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 40px;
            background: linear-gradient(to right, transparent, var(--bg-card));
            pointer-events: none;
            z-index: 1;
            transition: opacity 0.2s;
        }
        
        .filter-pills-container.scrolled-end::after {
            opacity: 0;
        }
        
        .filter-pills {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 4px 16px 4px 0;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            scroll-behavior: smooth;
        }
        
        .filter-pills::-webkit-scrollbar {
            display: none;
        }
        
        .filter-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 16px;
            border-radius: 100px;
            border: 1.5px solid var(--border);
            background: var(--bg-card);
            color: var(--text-light);
            font-size: 13px;
            font-weight: 500;
            font-family: inherit;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }
        
        .filter-pill svg {
            width: 16px;
            height: 16px;
            stroke-width: 2;
            flex-shrink: 0;
        }
        
        .filter-pill:hover {
            border-color: var(--primary);
            background: var(--bg-dark);
        }
        
        .filter-pill.active {
            background: var(--accent);
            border-color: var(--accent);
            color: white;
        }
        
        .filter-pill.active svg {
            stroke: white;
        }
        
        /* Sort Row */
        .sort-row {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .sort-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 10px;
            border: none;
            background: var(--bg-dark);
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 500;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .sort-btn svg {
            width: 14px;
            height: 14px;
            stroke-width: 2;
        }
        
        .sort-btn:hover {
            background: var(--border);
        }
        
        .sort-btn.active {
            background: var(--primary);
            color: var(--text);
        }
        
        .sort-btn.active svg {
            stroke: var(--text);
        }
        
        .home-filter-select {
            flex: 1;
            min-width: 0;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1.5px solid var(--border);
            background: var(--white);
            color: var(--text);
            font-size: 12px;
            font-weight: 500;
            font-family: inherit;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%235D4037' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 10px center;
            padding-right: 28px;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
        
        .home-filter-select:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .home-channel-select {
            flex: 1;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1.5px solid var(--border);
            background: var(--white);
            color: var(--text);
            font-size: 14px;
            font-weight: 500;
            font-family: inherit;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235D4037' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
        }
        
        .home-channel-select:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .home-sort-select {
            width: 130px;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1.5px solid var(--border);
            background: var(--white);
            color: var(--text);
            font-size: 14px;
            font-weight: 500;
            font-family: inherit;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235D4037' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
        }
        
        .home-sort-select:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        /* Channels */
        .section-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }
        
        /* Blog Styles */
        .blog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }
        
        .blog-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--text);
        }
        
        .blog-subtitle {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 20px;
        }
        
        .blog-add-btn {
            padding: 8px 16px;
            border-radius: 20px;
            border: none;
            background: var(--primary);
            color: var(--white);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
        }
        
        .blog-hub-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
        }
        
        .blog-hub-card {
            background: var(--white);
            border-radius: 12px;
            padding: 14px 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            transition: transform 0.15s, box-shadow 0.15s;
            position: relative;
            min-height: 56px;
        }
        
        .blog-hub-card:active {
            transform: scale(0.98);
            box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        }
        
        .blog-hub-icon {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--accent-light);
            border-radius: 12px;
            flex-shrink: 0;
            color: var(--accent);
        }
        
        .blog-hub-icon svg {
            width: 22px;
            height: 22px;
            stroke-width: 2;
        }
        
        .blog-hub-info {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }
        
        .blog-hub-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
            line-height: 1.3;
        }
        
        .blog-hub-desc {
            font-size: 12px;
            color: var(--text-muted);
            line-height: 1.3;
            margin-top: 2px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .blog-hub-count {
            position: absolute;
            top: 8px;
            right: 8px;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 10px;
            min-width: 20px;
            text-align: center;
        }
        
        .blog-pinned-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: rgba(255,255,255,0.95);
            color: var(--primary);
            font-size: 12px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 6px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .blog-card-image {
            position: relative;
        }
        
        .blog-grid {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .blog-card {
            background: var(--white);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .blog-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .blog-card-image {
            width: 100%;
            height: 160px;
            background-size: cover;
            background-position: center;
            background-color: var(--bg-dark);
        }
        
        .blog-card-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            background: linear-gradient(135deg, var(--primary-light), var(--primary));
        }
        
        .blog-card-content {
            padding: 16px;
        }
        
        .blog-card-category {
            font-size: 12px;
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .blog-card-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 8px;
            line-height: 1.3;
        }
        
        .blog-card-preview {
            font-size: 14px;
            color: var(--text-light);
            line-height: 1.5;
            margin-bottom: 12px;
        }
        
        .blog-card-meta {
            display: flex;
            gap: 12px;
            font-size: 12px;
            color: var(--text-muted);
        }
        
        .blog-detail-image {
            width: 100%;
            max-height: 250px;
            object-fit: cover;
            border-radius: 12px;
            margin-bottom: 16px;
        }
        
        .blog-detail-category {
            font-size: 13px;
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .blog-detail-title {
            font-size: 26px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.3;
            margin-bottom: 12px;
        }
        
        .blog-detail-meta {
            display: flex;
            gap: 8px;
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 24px;
        }
        
        .blog-detail-content {
            font-size: 16px;
            line-height: 1.8;
            color: var(--text);
            margin-bottom: 24px;
        }
        
        .blog-detail-actions {
            padding: 16px 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            margin-bottom: 24px;
        }
        
        .blog-like-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 24px;
            border: 1.5px solid var(--border);
            background: var(--white);
            color: var(--text);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
        }
        
        .blog-like-btn:hover {
            border-color: var(--primary);
        }
        
        .blog-like-btn.liked {
            background: #FFF0F0;
            border-color: #E53935;
            color: #E53935;
        }
        
        .blog-comments-section {
            margin-top: 16px;
        }
        
        .blog-comments-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 16px;
        }
        
        .form-input {
            width: 100%;
            padding: 14px 16px;
            border-radius: 12px;
            border: 1.5px solid var(--border);
            font-size: 16px;
            font-family: inherit;
            color: var(--text);
            background: var(--white);
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .channels-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .channel-card {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 20px 16px;
            cursor: pointer;
            border: 1px solid var(--border);
            position: relative;
            transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
        }
        
        .channel-card::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 60px;
            height: 60px;
            background: radial-gradient(circle at top right, var(--accent-light), transparent 70%);
            pointer-events: none;
        }
        
        .channel-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
            border-color: var(--primary-light);
        }
        
        .channel-card:active {
            transform: scale(0.96) translateY(0);
        }
        
        .channel-icon {
            font-size: 36px;
            margin-bottom: 6px;
            color: var(--primary);
        }
        
        .channel-icon .icon svg {
            width: 36px;
            height: 36px;
            stroke: var(--primary);
        }
        
        .channel-name {
            margin-top: 8px;
            font-weight: 700;
            color: var(--text);
            font-size: 14px;
            letter-spacing: 0.2px;
        }
        
        .channel-count {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 2px;
        }
        
        .channel-card.special {
            background: linear-gradient(135deg, var(--accent-light), var(--bg-dark));
            border-color: var(--accent);
        }
        
        .channel-desc {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 4px;
            line-height: 1.3;
        }
        
        /* Feed Tabs */
        .feed-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            background: var(--white);
            padding: 6px;
            border-radius: 12px;
            border: 1px solid var(--border);
        }
        
        .feed-tab {
            flex: 1;
            padding: 10px 16px;
            border: none;
            background: transparent;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
        }
        
        .feed-tab.active {
            background: var(--primary);
            color: var(--white);
        }
        
        /* Author Badge */
        .author-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: var(--bg-dark);
            color: var(--text-light);
            font-size: 12px;
            padding: 3px 8px;
            border-radius: 10px;
            margin-left: 8px;
        }
        
        /* Posts */
        .post-card {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 14px;
            border: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: var(--shadow-sm);
            position: relative;
            overflow: hidden;
            content-visibility: auto;
            contain-intrinsic-size: auto 200px;
        }
        
        .post-card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
            border-color: var(--primary-light);
        }
        
        .post-card:active {
            transform: scale(0.98) translateY(0);
            box-shadow: var(--shadow-sm);
        }
        
        .post-card.pinned {
            border: 2px solid var(--accent);
            background: linear-gradient(135deg, var(--accent-light), var(--bg-card));
        }
        
        .post-card.support {
            border: 2px solid var(--purple);
            background: linear-gradient(135deg, rgba(157, 122, 160, 0.05), var(--bg-card));
        }
        
        .support-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: linear-gradient(135deg, var(--purple), var(--purple-dark));
            color: var(--white);
            font-size: 12px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 12px;
            margin-bottom: 10px;
        }
        
        .promoted-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: linear-gradient(135deg, #FFD700, #FFA500);
            color: #000;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 12px;
            margin-bottom: 10px;
        }
        
        .hot-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: linear-gradient(135deg, #FF6B6B, #FF8E53);
            color: #FFF;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 12px;
            margin-bottom: 10px;
            animation: hotPulse 2s ease-in-out infinite;
            box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
        }
        
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 12px;
            margin-bottom: 10px;
        }
        
        .status-badge.reserved {
            background: linear-gradient(135deg, #FEF3C7, #FDE68A);
            color: #92400E;
        }
        
        .status-badge.sold {
            background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
            color: #047857;
        }
        
        .post-card.sold {
            opacity: 0.7;
        }
        
        .post-card.sold .post-content-preview {
            text-decoration: line-through;
            color: var(--text-muted);
        }
        
        @keyframes hotPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4); }
            50% { transform: scale(1.02); box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6); }
        }
        
        .post-card.promoted {
            border: 2px solid #FFD700;
            background: linear-gradient(135deg, #FFFEF5, #FFF9E6);
        }
        
        .post-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }
        
        .post-author {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--bg-dark), var(--primary-light));
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
        }
        
        .avatar.support {
            background: linear-gradient(135deg, var(--purple), var(--purple-dark));
            color: var(--white);
        }
        
        .avatar.large {
            width: 36px;
            height: 36px;
            font-size: 16px;
        }
        
        .post-name {
            font-weight: 600;
            color: var(--text);
            font-size: 14px;
        }
        
        .post-time {
            font-size: 12px;
            color: var(--text-muted);
        }
        
        .post-pin {
            font-size: 12px;
            color: var(--primary);
        }
        
        .post-title {
            font-weight: 600;
            color: var(--text);
            margin-bottom: 6px;
            font-size: 15px;
        }
        
        .post-content {
            color: var(--text-light);
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 12px;
        }
        
        .post-content-preview {
            color: var(--text-light);
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .post-stats {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        
        .post-stat {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .like-btn {
            cursor: pointer;
            padding: 8px 14px;
            border-radius: 20px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 15px;
            font-weight: 600;
        }
        
        .like-btn:hover {
            background: rgba(229, 57, 53, 0.1);
            color: #E53935;
            transform: scale(1.05);
        }
        
        .like-btn:active {
            transform: scale(0.95);
        }
        
        .like-btn.liked {
            color: #E53935;
            background: rgba(229, 57, 53, 0.1);
        }
        
        .like-btn.liked .like-icon {
            animation: heartPop 0.3s ease;
        }
        
        @keyframes heartPop {
            0% { transform: scale(1); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }
        
        .comment-stat {
            cursor: pointer;
            padding: 8px 14px;
            border-radius: 20px;
            transition: all 0.2s;
            font-size: 15px;
            font-weight: 600;
        }
        
        .comment-stat:hover {
            background: rgba(107, 87, 80, 0.1);
            color: var(--text-dark);
            transform: scale(1.05);
        }
        
        .bookmark-btn {
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 20px;
            transition: all 0.2s;
            margin-left: auto;
            font-size: 16px;
        }
        
        .bookmark-btn:hover {
            background: rgba(212, 165, 154, 0.2);
            transform: scale(1.1);
        }
        
        .bookmark-btn.bookmarked {
            color: var(--primary);
            background: rgba(212, 165, 154, 0.15);
        }
        
        .post-detail-stats {
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
        }
        
        /* Toast */
        .toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--text);
            color: var(--white);
            padding: 12px 24px;
            border-radius: 24px;
            font-size: 14px;
            font-weight: 500;
            z-index: 3000;
            animation: toastIn 0.3s, toastOut 0.3s 2.7s;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        @keyframes toastIn {
            from { opacity: 0; transform: translateX(-50%) translateY(20px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }
        
        @keyframes toastOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        
        /* Search */
        .search-input-container {
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--white);
            border-radius: 12px;
            padding: 12px 16px;
            margin-bottom: 16px;
            border: 1px solid var(--border);
        }
        
        .search-icon {
            color: var(--text-muted);
        }
        
        .search-input {
            flex: 1;
            border: none;
            background: transparent;
            font-size: 15px;
            outline: none;
            font-family: inherit;
        }
        
        .search-clear {
            background: var(--bg-dark);
            border: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 12px;
        }
        
        .search-go-btn {
            background: var(--primary);
            border: none;
            padding: 6px 12px;
            border-radius: 8px;
            color: white;
            cursor: pointer;
            font-size: 13px;
            font-family: inherit;
            font-weight: 500;
        }
        
        .search-suggestion {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            background: var(--white);
            border-radius: 10px;
            margin-bottom: 8px;
            cursor: pointer;
            border: 1px solid var(--border);
            transition: all 0.2s;
        }
        
        .search-suggestion:hover {
            border-color: var(--primary);
        }
        
        .search-suggestion-icon {
            color: var(--text-muted);
        }
        
        /* Profile motivation */
        .profile-motivation {
            margin: 0 20px 20px;
            padding: 20px;
            background: linear-gradient(135deg, #FFF8F5, #F5E6E0);
            border-radius: 16px;
            text-align: center;
        }
        
        .profile-motivation-icon {
            font-size: 32px;
            display: block;
            margin-bottom: 8px;
        }
        
        .profile-motivation-text {
            color: var(--text-light);
            font-size: 14px;
            margin-bottom: 12px;
        }
        
        .profile-motivation-btn {
            background: var(--primary);
            color: var(--white);
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
        }
        
        .settings-section {
            margin-bottom: 16px;
        }
        
        .settings-readonly {
            padding: 12px 14px;
            background: var(--bg-dark);
            border-radius: 10px;
            color: var(--text);
            font-size: 15px;
        }
        
        .settings-hint {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 6px;
        }
        
        .avatar-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
        }
        
        .avatar-option {
            width: 100%;
            aspect-ratio: 1;
            font-size: 24px;
            border: 2px solid var(--border);
            border-radius: 12px;
            background: var(--white);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .avatar-option:hover {
            border-color: var(--primary);
            transform: scale(1.05);
        }
        
        .avatar-option.selected {
            border-color: var(--primary);
            background: var(--primary-light);
        }
        
        .btn-secondary {
            width: 100%;
            padding: 14px;
            border: 2px solid var(--border);
            border-radius: 12px;
            background: var(--bg-card);
            color: var(--text);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
        }
        
        .btn-secondary:hover {
            border-color: var(--primary);
            background: var(--bg-dark);
        }
        
        .btn-secondary:active {
            transform: scale(0.98);
        }
        
        .terms-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin: 16px 0;
            font-size: 13px;
            color: var(--text-light);
            cursor: pointer;
        }
        
        .terms-checkbox input {
            width: 18px;
            height: 18px;
            margin-top: 2px;
            accent-color: var(--primary);
            flex-shrink: 0;
        }
        
        .terms-checkbox a {
            color: var(--primary);
            text-decoration: underline;
        }
        
        .legal-modal {
            max-height: 85vh;
        }
        
        .legal-content {
            max-height: 60vh;
            overflow-y: auto;
            font-size: 14px;
            line-height: 1.6;
            color: var(--text-light);
        }
        
        .legal-content h3 {
            color: var(--text);
            font-size: 15px;
            margin-top: 20px;
            margin-bottom: 8px;
        }
        
        .legal-content ul {
            margin: 8px 0;
            padding-left: 20px;
        }
        
        .legal-content li {
            margin-bottom: 4px;
        }
        
        .legal-content p {
            margin-bottom: 10px;
        }
        
        .post-action-btn {
            background: none;
            border: none;
            font-size: 16px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            opacity: 0.5;
            transition: all 0.2s;
        }
        
        .post-action-btn:hover {
            opacity: 1;
            background: var(--bg-dark);
        }
        
        .post-menu-container {
            position: relative;
        }
        
        .post-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--white);
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            overflow: hidden;
            min-width: 140px;
            z-index: 100;
        }
        
        .post-menu.show {
            display: block;
        }
        
        .post-menu button {
            display: block;
            width: 100%;
            padding: 12px 16px;
            border: none;
            background: none;
            text-align: left;
            font-size: 14px;
            color: var(--text);
            cursor: pointer;
            font-family: inherit;
        }
        
        .post-menu button:hover {
            background: var(--bg);
        }
        
        .post-menu button:last-child {
            color: #DC2626;
        }
        
        .post-channel-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 12px;
            margin-bottom: 8px;
        }
        
        .post-channel-tag svg {
            width: 12px;
            height: 12px;
            stroke-width: 2.5;
        }
        
        /* Colored category tags - matching actual channel IDs */
        .post-channel-tag[data-channel="pregnancy"] {
            background: linear-gradient(135deg, #FFE5EC, #FFCCD5);
            color: #C9184A;
        }
        .post-channel-tag[data-channel="sleep"] {
            background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
            color: #4338CA;
        }
        .post-channel-tag[data-channel="feeding"] {
            background: linear-gradient(135deg, #FEF3C7, #FDE68A);
            color: #B45309;
        }
        .post-channel-tag[data-channel="health"] {
            background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
            color: #047857;
        }
        .post-channel-tag[data-channel="postpartum"] {
            background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
            color: #7C3AED;
        }
        .post-channel-tag[data-channel="vent"] {
            background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
            color: #7C3AED;
        }
        .post-channel-tag[data-channel="baby"] {
            background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
            color: #1D4ED8;
        }
        .post-channel-tag[data-channel="regional"] {
            background: linear-gradient(135deg, #CCFBF1, #99F6E4);
            color: #0D9488;
        }
        .post-channel-tag[data-channel="shopping"] {
            background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
            color: #0369A1;
        }
        .post-channel-tag[data-channel="marketplace"] {
            background: linear-gradient(135deg, #FEF3C7, #FDE68A);
            color: #B45309;
        }
        .post-channel-tag[data-channel="general"] {
            background: linear-gradient(135deg, #FDF4E7, #FAECD3);
            color: #92400E;
        }
        .post-channel-tag:not([data-channel]),
        .post-channel-tag[data-channel=""] {
            background: var(--bg-dark);
            color: var(--text-light);
        }
        
        /* Tab Bar */
        .tab-bar {
            position: fixed;
            bottom: 10px;
            left: 10px;
            right: 10px;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 4px 6px;
            padding-bottom: max(4px, env(safe-area-inset-bottom));
            background: rgba(254, 251, 249, 0.78);
            backdrop-filter: blur(28px) saturate(1.8);
            -webkit-backdrop-filter: blur(28px) saturate(1.8);
            border: 1px solid rgba(214, 104, 83, 0.10);
            border-radius: 22px;
            z-index: 1000;
            max-width: 480px;
            margin: 0 auto;
            box-shadow: 0 -4px 32px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.6);
        }
        
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
            border: none;
            background: none;
            padding: 7px 14px;
            border-radius: 16px;
            font-family: inherit;
            -webkit-tap-highlight-color: transparent;
            position: relative;
        }
        
        .tab-item .tab-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2px;
            transition: all 0.2s ease;
            color: var(--text-muted);
        }
        
        .tab-item .tab-icon svg {
            width: 24px;
            height: 24px;
            stroke-width: 1.75;
        }
        
        .tab-item .tab-label {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-muted);
            transition: all 0.15s ease;
            margin-top: 2px;
        }
        
        .tab-item:active {
            transform: scale(0.88);
        }
        
        .tab-item.active {
            background: var(--accent-light);
        }
        
        .tab-item.active .tab-icon {
            color: var(--accent);
        }
        
        .tab-item.active .tab-icon svg {
            stroke-width: 2.25;
        }
        
        .tab-item.active .tab-label {
            color: var(--accent);
            font-weight: 600;
        }
        
        /* Tab badge for unread */
        .tab-badge {
            position: absolute;
            top: 4px;
            right: 16px;
            width: 8px;
            height: 8px;
            background: #EF4444;
            border-radius: 50%;
            border: 2px solid white;
        }
        
        /* Ad Banner */
        .ad-banner {
            position: fixed;
            bottom: 70px;
            left: 0;
            right: 0;
            background: var(--white);
            border-top: 1px solid var(--border);
            padding: 8px 16px;
            z-index: 99;
        }
        
        .ad-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .ad-label {
            font-size: 12px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .ad-placeholder {
            flex: 1;
            height: 50px;
            background: var(--bg-dark);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: var(--text-muted);
        }
        
        /* FAB */
        .fab {
            position: fixed;
            bottom: calc(90px + env(safe-area-inset-bottom, 0px));
            right: 20px;
            width: 58px;
            height: 58px;
            border-radius: 50%;
            background: linear-gradient(135deg, #D66853, #C25A47);
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 8px 28px rgba(214, 104, 83, 0.45), 0 4px 8px rgba(0,0,0,0.1);
            cursor: pointer;
            font-size: 32px;
            font-weight: 300;
            color: white;
            border: none;
            z-index: 9999;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            -webkit-tap-highlight-color: transparent;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }
        
        .fab::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
            pointer-events: none;
        }
        
        .fab:hover {
            transform: scale(1.1) translateY(-2px);
            box-shadow: 0 14px 36px rgba(214, 104, 83, 0.55), 0 6px 12px rgba(0,0,0,0.1);
        }
        
        .fab:active {
            transform: scale(0.92);
            box-shadow: 0 4px 12px rgba(214, 104, 83, 0.35);
        }
        
        /* Modal */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(45, 41, 38, 0.4);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            display: flex;
            align-items: flex-end;
            z-index: 2000;
            animation: fadeIn 0.25s ease;
        }
        
        .modal-overlay.center {
            align-items: center;
            justify-content: center;
            padding: 24px;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .modal {
            background: var(--bg);
            border-radius: 32px 32px 0 0;
            width: 100%;
            max-width: 480px;
            max-height: 90vh;
            overflow-y: auto;
            animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            box-shadow: var(--shadow-lg);
            border-top: 1px solid var(--border);
        }
        
        .modal.center {
            border-radius: 24px;
            max-height: 80vh;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
        }
        
        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px 16px;
            position: sticky;
            top: 0;
            background: var(--bg);
            z-index: 10;
            border-bottom: 1px solid var(--border);
        }
        
        .modal-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
        }
        
        .modal-close {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--bg-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: var(--text-muted);
            cursor: pointer;
            border: none;
            transition: all 0.2s ease;
        }
        
        .modal-close:hover {
            background: var(--border);
            transform: rotate(90deg);
        }
        
        .modal-close:active {
            transform: scale(0.9) rotate(90deg);
        }
        
        .modal-content {
            padding: 16px 24px 40px;
        }
        
        /* New Post Form */
        .post-type-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .post-type-card {
            background: var(--white);
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .post-type-card.selected {
            background: var(--primary);
            border-color: var(--primary);
        }
        
        .post-type-card.selected.support {
            background: var(--purple);
            border-color: var(--purple);
        }
        
        .post-type-card.selected .post-type-label,
        .post-type-card.selected .post-type-desc {
            color: var(--white);
        }
        
        .post-type-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
        }
        
        .post-type-desc {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 2px;
        }
        
        .form-select {
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            border: 2px solid var(--border);
            font-size: 15px;
            font-family: inherit;
            margin-bottom: 12px;
            background: var(--white);
            color: var(--text);
            outline: none;
        }
        
        .form-select:focus {
            border-color: var(--primary);
        }
        
        .form-textarea {
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            border: 2px solid var(--border);
            font-size: 16px;
            font-family: inherit;
            margin-bottom: 16px;
            resize: none;
            min-height: 120px;
            outline: none;
        }
        
        .form-textarea:focus {
            border-color: var(--primary);
        }
        
        /* Comments */
        .back-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-muted);
            font-size: 14px;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
            font-family: inherit;
            margin-bottom: 16px;
        }
        
        .original-post {
            background: var(--white);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
            border: 2px solid var(--primary);
        }
        
        .original-post.support {
            border-color: var(--purple);
        }
        
        .support-notice {
            background: #F3E5F5;
            border-radius: 10px;
            padding: 12px;
            margin-top: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .support-notice-text {
            font-size: 13px;
            color: #7B1FA2;
        }
        
        .comments-count {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 12px;
        }
        
        .comment-card {
            background: var(--white);
            border-radius: 12px;
            padding: 14px;
            margin-bottom: 8px;
            border: 1px solid var(--border);
        }
        
        .comment-card.helpful {
            background: #F0FDF4;
            border-color: var(--green);
        }
        
        .comment-card.support {
            background: #F3E5F5;
            border-color: var(--purple);
        }
        
        .helpful-badge {
            display: inline-flex;
            background: var(--green);
            color: var(--white);
            font-size: 12px;
            font-weight: 600;
            padding: 3px 8px;
            border-radius: 10px;
            margin-bottom: 10px;
        }
        
        .comment-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }
        
        .comment-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--bg-dark);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 12px;
            font-weight: 600;
        }
        
        .comment-avatar.support {
            background: var(--purple);
            color: var(--white);
        }
        
        .comment-author {
            font-weight: 600;
            color: var(--text);
            font-size: 14px;
        }
        
        .comment-time {
            font-size: 12px;
            color: var(--text-muted);
        }
        
        .comment-text {
            color: var(--text);
            font-size: 14px;
            line-height: 1.5;
        }
        
        .comment-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 10px;
            padding-top: 8px;
            border-top: 1px solid var(--border);
        }
        
        .comment-like-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 8px;
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        .comment-like-btn svg {
            width: 16px;
            height: 16px;
        }
        
        .comment-like-btn:hover {
            background: var(--accent-light);
            color: var(--accent);
        }
        
        .comment-like-btn.liked {
            color: var(--accent);
        }
        
        .comment-like-btn.liked svg {
            fill: var(--accent);
            stroke: var(--accent);
        }
        
        .comment-delete-btn {
            background: none;
            border: none;
            font-size: 14px;
            cursor: pointer;
            padding: 2px 6px;
            margin-left: auto;
            opacity: 0.4;
            transition: opacity 0.2s;
        }
        
        .comment-delete-btn:hover {
            opacity: 1;
        }
        
        .comment-report-btn {
            background: none;
            border: none;
            font-size: 12px;
            cursor: pointer;
            padding: 2px 6px;
            margin-left: auto;
            opacity: 0.3;
            color: var(--text-muted);
            transition: opacity 0.2s;
        }
        
        .comment-report-btn:hover {
            opacity: 0.7;
        }
        
        .comment-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }
        
        .comment-input-area {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-width: 480px;
            margin: 0 auto;
            background: var(--bg);
            padding: 12px 16px;
            padding-bottom: max(12px, env(safe-area-inset-bottom));
            border-top: 1px solid var(--border);
            z-index: 100;
        }
        
        .comment-input-row {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--white);
            border-radius: 12px;
            padding: 8px 12px;
            border: 1px solid var(--border);
        }
        
        .comment-input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 15px;
            font-family: inherit;
            background: transparent;
        }
        
        .comment-send {
            background: var(--primary);
            color: var(--white);
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
        }
        
        .comment-send.support {
            background: var(--purple-dark);
        }
        
        /* Profile */
        .profile-header {
            background: linear-gradient(135deg, #F5E6E0, #E8D5CF);
            padding: 30px 20px;
            text-align: center;
        }
        
        .profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: transparent;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 32px;
            margin: 0 auto 16px;
            color: var(--white);
            font-weight: 700;
            overflow: hidden;
        }
        
        .profile-name {
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
        }
        
        .profile-info {
            color: var(--text-light);
            font-size: 14px;
            margin-top: 4px;
        }
        
        .profile-member-since {
            color: var(--text-muted);
            font-size: 12px;
            margin-top: 8px;
        }
        
        .profile-stats {
            display: flex;
            gap: 12px;
            padding: 20px;
        }
        
        .profile-stat {
            flex: 1;
            background: var(--white);
            border-radius: 12px;
            padding: 14px;
            text-align: center;
            border: 1px solid var(--border);
        }
        
        .profile-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--text);
        }
        
        .profile-stat-label {
            font-size: 12px;
            color: var(--text-muted);
        }
        
        .profile-menu {
            margin: 0 20px 20px;
            background: var(--white);
            border-radius: 16px;
            border: 1px solid var(--border);
            overflow: hidden;
        }
        
        .profile-menu-item {
            display: flex;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
        }
        
        .profile-menu-item:last-child {
            border-bottom: none;
        }
        
        .profile-menu-icon {
            font-size: 20px;
            margin-right: 14px;
        }
        
        .profile-menu-label {
            flex: 1;
            color: var(--text);
            font-weight: 500;
        }
        
        .profile-menu-value {
            color: var(--text-muted);
            font-size: 14px;
        }
        
        .profile-menu-value.highlight {
            color: var(--primary);
            font-weight: 600;
        }
        
        .logout-btn {
            margin: 0 20px 100px;
            padding: 14px;
            border-radius: 12px;
            border: 2px solid var(--red);
            background: transparent;
            color: var(--red);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            width: calc(100% - 40px);
            font-family: inherit;
        }
        
        /* Poll */
        .poll-container {
            margin-top: 12px;
        }
        
        .poll-option {
            background: var(--white);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 8px;
            cursor: pointer;
            border: 2px solid var(--border);
            position: relative;
            overflow: hidden;
            transition: all 0.2s;
        }
        
        .poll-option.selected {
            border-color: var(--green);
        }
        
        .poll-option.voted {
            cursor: default;
        }
        
        .poll-bar {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: rgba(129, 199, 132, 0.2);
            transition: width 0.5s;
        }
        
        .poll-text {
            display: flex;
            justify-content: space-between;
            position: relative;
            z-index: 1;
        }
        
        .poll-label {
            font-size: 14px;
            color: var(--text);
        }
        
        .poll-percent {
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 600;
        }
        
        .poll-total {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 8px;
        }
        
        /* Marketplace Grid Cards */
        .marketplace-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        
        .marketplace-card {
            background: var(--bg-card);
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            content-visibility: auto;
            contain-intrinsic-size: auto 280px;
        }
        
        .marketplace-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }
        
        .marketplace-card:active {
            transform: scale(0.98);
        }
        
        .marketplace-card.reserved {
            opacity: 0.7;
        }
        
        .marketplace-reserved-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: #F59E0B;
            color: white;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 6px;
            z-index: 2;
        }
        
        .marketplace-card-image {
            width: 100%;
            height: 140px;
            background: var(--bg-dark);
            position: relative;
            overflow: hidden;
        }
        
        .marketplace-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .marketplace-no-image {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
        }
        
        .marketplace-no-image svg {
            width: 40px;
            height: 40px;
            opacity: 0.4;
        }
        
        .marketplace-image-count {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background: rgba(0,0,0,0.6);
            color: white;
            font-size: 12px;
            font-weight: 500;
            padding: 2px 6px;
            border-radius: 4px;
        }
        
        .marketplace-card-content {
            padding: 12px;
        }
        
        .marketplace-card-price {
            font-size: 18px;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 4px;
        }
        
        .marketplace-card-title {
            font-size: 13px;
            color: var(--text);
            line-height: 1.4;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .marketplace-card-meta {
            display: flex;
            gap: 6px;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .marketplace-condition {
            font-size: 12px;
            padding: 2px 6px;
            background: var(--bg-dark);
            border-radius: 4px;
            color: var(--text-muted);
        }
        
        .marketplace-card-footer {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-muted);
        }
        
        .marketplace-card-location {
            display: flex;
            align-items: center;
            gap: 2px;
        }
        
        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
        }
        
        .empty-icon {
            font-size: 48px;
            margin-bottom: 16px;
        }
        
        .empty-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 8px;
        }
        
        .empty-text {
            color: var(--text-muted);
            font-size: 14px;
        }
        
        /* Online indicator */
        .online-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #E8F5E9;
            color: #2E7D32;
            font-size: 12px;
            padding: 4px 10px;
            border-radius: 12px;
            margin-left: 8px;
        }
        
        .online-dot {
            width: 6px;
            height: 6px;
            background: #4CAF50;
            border-radius: 50%;
            animation: blink 2s infinite;
        }
        
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        /* Chat Styles */
        .chat-list {
            display: flex;
            flex-direction: column;
            gap: 1px;
            background: var(--border);
        }
        
        .chat-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
            background: var(--white);
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .chat-item:hover {
            background: var(--bg);
        }
        
        .chat-item.unread {
            background: #FEF3C7;
        }
        
        .chat-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-light), var(--primary));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        
        .chat-info {
            flex: 1;
            min-width: 0;
        }
        
        .chat-header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }
        
        .chat-name {
            font-weight: 600;
            color: var(--text);
            font-size: 15px;
        }
        
        .chat-time {
            font-size: 12px;
            color: var(--text-muted);
        }
        
        .chat-preview {
            font-size: 14px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .chat-item.unread .chat-preview {
            color: var(--text);
            font-weight: 500;
        }
        
        .chat-unread-dot {
            width: 10px;
            height: 10px;
            background: var(--primary);
            border-radius: 50%;
            flex-shrink: 0;
        }
        
        .chat-post-ref {
            font-size: 12px;
            color: var(--primary);
            margin-bottom: 4px;
        }
        
        /* Deal Panel */
        .deal-panel {
            background: linear-gradient(135deg, var(--bg) 0%, var(--bg-dark) 100%);
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
        }
        
        .deal-status-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .deal-status-badge {
            background: var(--primary);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
        }
        
        .deal-action-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 8px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
        }
        
        .deal-action-btn:active {
            transform: scale(0.95);
        }
        
        .deal-progress {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }
        
        .deal-step {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            opacity: 0.4;
        }
        
        .deal-step.active {
            background: var(--primary-light);
            opacity: 1;
        }
        
        .deal-line {
            width: 20px;
            height: 3px;
            background: var(--border);
            border-radius: 2px;
        }
        
        .deal-line.active {
            background: var(--primary);
        }
        
        .deal-quick-actions {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }
        
        .deal-quick-btn {
            flex: 1;
            background: var(--white);
            border: 1px solid var(--border);
            padding: 8px 10px;
            border-radius: 8px;
            font-size: 12px;
            cursor: pointer;
            font-family: inherit;
            color: var(--text);
        }
        
        .deal-quick-btn:active {
            background: var(--bg);
        }

        /* Chat Window */
        .chat-window {
            display: flex;
            flex-direction: column;
            height: calc(100vh - 120px); height: calc(100dvh - 120px);
        }
        
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .chat-safety-banner {
            background: linear-gradient(135deg, #FEF3C7, #FDE68A);
            border-radius: 12px;
            padding: 12px 16px;
            margin-bottom: 12px;
        }
        
        .chat-safety-banner h4 {
            font-size: 13px;
            font-weight: 600;
            color: #92400E;
            margin-bottom: 6px;
        }
        
        .chat-safety-banner ul {
            font-size: 12px;
            color: #A16207;
            margin: 0;
            padding-left: 16px;
        }
        
        .chat-safety-banner li {
            margin-bottom: 2px;
        }
        
        .message {
            max-width: 80%;
            padding: 12px 16px;
            border-radius: 18px;
            font-size: 15px;
            line-height: 1.4;
        }
        
        .message.sent {
            align-self: flex-end;
            background: linear-gradient(135deg, #E8957E, #D66853);
            color: white;
            border-bottom-right-radius: 4px;
        }
        
        .message.received {
            align-self: flex-start;
            background: var(--white);
            color: var(--text);
            border-bottom-left-radius: 4px;
            border: 1px solid var(--border);
        }
        
        .message.system-message {
            align-self: center;
            background: var(--bg-dark);
            color: var(--text-muted);
            font-size: 13px;
            padding: 8px 16px;
            border-radius: 20px;
            max-width: 90%;
            text-align: center;
        }
        
        .message-time {
            font-size: 12px;
            opacity: 0.7;
            margin-top: 4px;
        }
        
        .message.sent .message-time {
            text-align: right;
        }
        
        .chat-input-area {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            padding-bottom: max(12px, env(safe-area-inset-bottom));
            background: var(--white);
            border-top: 1px solid var(--border);
        }
        
        .chat-input {
            flex: 1;
            padding: 12px 16px;
            border: 1.5px solid var(--border);
            border-radius: 24px;
            font-size: 15px;
            font-family: inherit;
            outline: none;
        }
        
        .chat-input:focus {
            border-color: var(--primary);
        }
        
        .chat-send-btn {
            width: 44px;
            height: 44px;
            min-width: 44px;
            flex-shrink: 0;
            border: none;
            border-radius: 50%;
            background: linear-gradient(135deg, #D66853, #D4637A);
            color: white;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .chat-send-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .chat-delivery-btn {
            width: 48px;
            height: 48px;
            border: 2px solid var(--border);
            border-radius: 50%;
            background: white;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        
        .chat-delivery-btn:hover {
            border-color: var(--primary);
            background: var(--bg-secondary);
        }
        
        .delivery-option {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px;
            background: var(--bg-secondary);
            border-radius: 12px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 2px solid transparent;
        }
        
        .delivery-option:hover {
            border-color: var(--primary);
            background: white;
        }
        
        .delivery-icon {
            font-size: 28px;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .delivery-info {
            flex: 1;
        }
        
        .delivery-title {
            font-weight: 600;
            font-size: 15px;
            color: var(--text);
            margin-bottom: 4px;
        }
        
        .delivery-desc {
            font-size: 13px;
            color: var(--text-muted);
        }
        
        /* Message button on posts */
        .message-seller-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 12px;
            margin-top: 12px;
            border: 2px solid var(--primary);
            border-radius: 12px;
            background: transparent;
            color: var(--primary);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .message-seller-btn:hover {
            background: var(--primary);
            color: white;
        }
        
        /* Tab badge for unread */
        .tab-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            min-width: 18px;
            height: 18px;
            background: #EF4444;
            color: white;
            font-size: 12px;
            font-weight: 600;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
        }
        
        /* Trust Profile Styles */
        .trust-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }
        
        .trust-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            font-weight: 500;
            padding: 4px 10px;
            border-radius: 20px;
            background: var(--bg);
            color: var(--text-muted);
        }
        
        .trust-badge.verified {
            background: #D1FAE5;
            color: #047857;
        }
        
        .trust-badge.member {
            background: #DBEAFE;
            color: #1D4ED8;
        }
        
        .trust-badge.exchanges {
            background: #FEF3C7;
            color: #B45309;
        }
        
        .trust-badge.rating {
            background: linear-gradient(135deg, #FEF3C7, #FDE68A);
            color: #B45309;
        }
        
        .trust-score {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
            background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
            border-radius: 16px;
            margin-top: 16px;
        }
        
        .trust-score-number {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, #10B981, #059669);
            color: white;
            font-size: 20px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .trust-score-info h4 {
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 2px;
        }
        
        .trust-score-info p {
            font-size: 12px;
            color: var(--text-muted);
        }
        
        .trust-mini {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            color: #059669;
            background: #D1FAE5;
            padding: 2px 8px;
            border-radius: 10px;
            margin-left: 6px;
        }
        
        /* Paketomat banner */
        .paketomat-banner {
            background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
            border-radius: 12px;
            padding: 12px 16px;
            margin-top: 12px;
        }
        
        .paketomat-banner h4 {
            font-size: 13px;
            font-weight: 600;
            color: #5B21B6;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .paketomat-banner p {
            font-size: 12px;
            color: #6D28D9;
            line-height: 1.4;
        }
        
        .paketomat-toggle-btn {
            width: 100%;
            padding: 12px;
            margin-top: 10px;
            border: none;
            border-radius: 10px;
            background: linear-gradient(135deg, #7C3AED, #5B21B6);
            color: white;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: transform 0.2s;
        }
        
        .paketomat-toggle-btn:active {
            transform: scale(0.98);
        }
        
        .paketomat-map-container {
            margin-top: 12px;
        }
        
        .paketomat-links {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
        }
        
        .paketomat-link {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 8px;
            background: white;
            color: #5B21B6;
            text-decoration: none;
            border: 1px solid #C4B5FD;
        }
        
        .paketomat-link-small {
            font-size: 12px;
            color: #5B21B6;
            text-decoration: underline;
        }
        
        /* Price badge for marketplace - Premium Design */
        .price-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 18px;
            font-weight: 800;
            padding: 10px 20px;
            border-radius: 12px;
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            color: white;
            margin-top: 12px;
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
        }
        
        .price-badge::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
            border-radius: 12px 14px 0 0;
        }
        
        .price-badge.free {
            background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
            box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
        }
        
        .price-badge.negotiable {
            background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
        }
        
        .price-badge-small {
            display: inline-flex;
            align-items: center;
            font-size: 14px;
            font-weight: 700;
            padding: 6px 12px;
            border-radius: 10px;
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            color: white;
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
            letter-spacing: 0.3px;
        }
        
        .price-badge-small.free {
            background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
            box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
        }
        
        .price-badge-small.negotiable {
            background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
        }
        
        /* Notifications */
        .notif-bell {
            position: relative;
            cursor: pointer;
            font-size: 24px;
            padding: 8px;
        }
        
        .notif-badge {
            position: absolute;
            top: 2px;
            right: 2px;
            min-width: 18px;
            height: 18px;
            background: #EF4444;
            color: white;
            font-size: 12px;
            font-weight: 600;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
        }
        
        .notif-dropdown {
            position: fixed;
            top: 60px;
            right: 12px;
            left: 12px;
            width: auto;
            max-width: 380px;
            max-height: 70vh;
            overflow-y: auto;
            background: var(--white);
            border-radius: 20px;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.03);
            z-index: 1002;
            animation: slideDown 0.2s ease-out;
        }
        
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @media (min-width: 500px) {
            .notif-dropdown {
                position: absolute;
                top: 100%;
                right: 0;
                left: auto;
                width: 380px;
            }
        }
        
        .notif-header {
            padding: 18px 20px;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
            border-radius: 22px;
        }
        
        .notif-header h3 {
            font-size: 17px;
            font-weight: 700;
            color: var(--text);
        }
        
        .notif-mark-read {
            font-size: 13px;
            color: var(--primary);
            background: none;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: opacity 0.15s;
        }
        
        .notif-mark-read:hover {
            opacity: 0.7;
        }
        
        .notif-item {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(0,0,0,0.04);
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .notif-item:hover {
            background: var(--bg);
        }
        
        .notif-item.unread {
            background: linear-gradient(135deg, rgba(214, 104, 83, 0.08), rgba(212, 99, 122, 0.05));
            border-left: 3px solid var(--primary);
        }
        
        .notif-item:last-child {
            border-bottom: none;
            border-radius: 0 0 20px 20px;
        }
        
        .notif-content {
            font-size: 14px;
            color: var(--text);
            line-height: 1.4;
        }
        
        .notif-content strong {
            color: var(--primary);
        }
        
        .notif-time {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 4px;
        }
        
        .notif-empty {
            padding: 40px 20px;
            text-align: center;
            color: var(--text-muted);
        }
        
        /* Pull to refresh */
        .pull-indicator {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 4px;
            min-height: 0;
            color: var(--text-muted);
            font-size: 14px;
            transition: all 0.3s ease;
        }
        
        .pull-indicator.pulling {
            color: var(--primary);
        }
        
        .pull-indicator .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        
        /* Smooth transitions */
        .post-card, .channel-card, .chat-item {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .post-card:active, .channel-card:active, .chat-item:active {
            transform: scale(0.98);
        }
        
        /* Verified badge */
        .verified-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            font-weight: 600;
            color: #059669;
            background: #D1FAE5;
            padding: 3px 8px;
            border-radius: 6px;
            margin-left: 6px;
        }
        
        /* Premium card shadows */
        .post-card {
            box-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
        }
        
        .post-card:hover {
            box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
        }
        
        /* Bookmark icon on posts */
        .post-bookmark {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: all 0.2s ease;
            border: none;
        }
        
        .post-bookmark:hover {
            transform: scale(1.1);
        }
        
        .post-bookmark.saved {
            background: var(--primary);
            color: white;
        }
        
        /* Image loading skeleton */
        .image-skeleton {
            background: linear-gradient(90deg, #E8E0DC 25%, #F0E8E4 50%, #E8E0DC 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 12px;
            min-height: 200px;
        }
        
        /* Marketplace type selector */
        .marketplace-type-selector {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .marketplace-type-btn {
            flex: 1;
            padding: 14px 12px;
            border: 2px solid var(--border);
            border-radius: 12px;
            background: white;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
        }
        
        .marketplace-type-btn.active {
            border-color: var(--primary);
            background: linear-gradient(135deg, rgba(196, 154, 140, 0.1), rgba(214, 104, 83, 0.1));
            color: var(--primary-dark);
        }
        
        .marketplace-type-btn:hover:not(.active) {
            border-color: var(--primary-light);
        }
        
        /* ========== RESPONSIVE BREAKPOINTS ========== */
        
        /* Tablet (768px+) */
        @media (min-width: 768px) {
            .content {
                max-width: 680px;
                margin: 0 auto;
                padding-left: 24px;
                padding-right: 24px;
            }
            
            .post-card {
                padding: 20px;
            }
            
            .marketplace-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 16px;
            }
            
            .blog-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
            
            .modal {
                max-width: 560px;
                margin: 40px auto;
                border-radius: 20px;
            }
            
            .header {
                padding: 16px 24px;
            }
            
            .tab-bar {
                max-width: 500px;
                margin: 0 auto;
                border-radius: 22px;
            }
        }
        
        /* Desktop (1024px+) */
        @media (min-width: 1024px) {
            .content {
                max-width: 800px;
            }
            
            .marketplace-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .blog-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .filter-pills {
                justify-content: center;
            }
            
            .post-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 30px rgba(0,0,0,0.12);
            }
            
            .marketplace-card:hover {
                transform: translateY(-4px);
                box-shadow: 0 12px 40px rgba(0,0,0,0.15);
            }
        }
        
        /* Large Desktop (1280px+) */
        @media (min-width: 1280px) {
            .content {
                max-width: 960px;
            }
            
            .marketplace-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        /* ========== CUSTOM CONFIRM MODAL ========== */
        .confirm-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.15s ease;
        }
        .confirm-box {
            background: var(--card-bg, #fff);
            border-radius: 16px;
            padding: 24px;
            max-width: 340px;
            width: 100%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            animation: slideUp 0.2s ease;
        }
        .confirm-message {
            font-size: 15px;
            line-height: 1.5;
            color: var(--text, #333);
            margin-bottom: 20px;
            text-align: center;
        }
        .confirm-buttons {
            display: flex;
            gap: 10px;
        }
        .confirm-btn {
            flex: 1;
            padding: 12px 16px;
            border-radius: 12px;
            border: none;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: opacity 0.15s;
        }
        .confirm-btn:active { opacity: 0.7; }
        .confirm-btn-cancel {
            background: var(--bg, #f5f5f5);
            color: var(--text, #333);
        }
        .confirm-btn-ok {
            background: var(--primary, #D66853);
            color: white;
        }
        .confirm-btn-danger {
            background: #EF4444;
            color: white;
        }
        @keyframes slideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        /* PWA Standalone Mode */
        @media all and (display-mode: standalone) {
            body {
                padding-top: env(safe-area-inset-top);
                padding-bottom: env(safe-area-inset-bottom);
            }
            .header {
                padding-top: env(safe-area-inset-top);
            }
            .bottom-nav {
                padding-bottom: env(safe-area-inset-bottom);
            }
        }
        
        /* ==================== UTILITY CLASSES ==================== */
        /* Replaces repeated inline styles for consistency and DRY */
        .section-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 16px;
        }
        .section-subtitle {
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 12px;
        }
        .btn-inline {
            padding: 4px 8px;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: var(--bg);
            cursor: pointer;
            font-size: 13px;
            font-family: inherit;
        }
        .btn-inline:hover { background: var(--bg-hover); }
        .btn-outline {
            flex: 1;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: var(--bg);
            cursor: pointer;
            font-family: inherit;
        }
        .btn-outline:hover { background: var(--bg-hover); }
        .pill-badge {
            font-size: 12px;
            background: var(--bg);
            padding: 3px 8px;
            border-radius: 10px;
            color: var(--text-muted);
        }
        .pill-tag {
            font-size: 12px;
            background: var(--bg);
            padding: 6px 12px;
            border-radius: 20px;
            color: var(--text);
        }
        .table-cell {
            padding: 8px;
            text-align: left;
            border: 1px solid #ddd;
        }
        .abs-right-center {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-weight: 600;
        }
        .flex-center { display: flex; align-items: center; gap: 8px; }
        .flex-between { display: flex; align-items: center; justify-content: space-between; }
        .gap-4 { gap: 4px; }
        .gap-8 { gap: 8px; }
        .gap-12 { gap: 12px; }
        .gap-16 { gap: 16px; }
        .mt-8 { margin-top: 8px; }
        .mt-12 { margin-top: 12px; }
        .mt-16 { margin-top: 16px; }
        .mb-8 { margin-bottom: 8px; }
        .mb-12 { margin-bottom: 12px; }
        .mb-16 { margin-bottom: 16px; }
        .text-sm { font-size: 12px; }
        .text-base { font-size: 13px; }
        .text-muted { color: var(--text-muted); }
        .fw-600 { font-weight: 600; }
        .fw-700 { font-weight: 700; }
        .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        
        
        /* Active state micro-interactions */
        .post-action-btn:active,
        .post-stat:active,
        .filter-pill:active,
        .tab-item:active {
            transform: scale(0.92);
        }
        
        .btn-primary:active {
            transform: scale(0.97);
        }
        
        .post-card:active {
            transform: scale(0.99);
        }
        
        .chat-item:active {
            background: var(--bg-dark) !important;
        }


        /* ╔══════════════════════════════════════════════════════════╗
           ║           CORAL WAVE — PREMIUM DESIGN LAYER            ║
           ║           World-class visual polish & motion            ║
           ╚══════════════════════════════════════════════════════════╝ */

        /* ── 1. TYPOGRAPHY: Bricolage Grotesque for all headings ── */
        h1, h2, h3, h4, h5,
        .modal-title,
        .splash-tagline,
        .auth-title,
        .blog-card h3,
        .blog-article-title,
        .section-title,
        .empty-title,
        .profile-display-name,
        .onboarding-title {
            font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
            font-optical-sizing: auto;
            letter-spacing: -0.02em;
        }

        /* Variable optical sizing — tighter tracking at larger sizes */
        h1, .splash-tagline, .auth-title {
            letter-spacing: -0.035em;
            font-weight: 800;
        }

        h2, .modal-title, .section-title {
            letter-spacing: -0.025em;
            font-weight: 700;
        }

        h3, .blog-card h3 {
            letter-spacing: -0.02em;
            font-weight: 600;
        }


        /* ── 2. NOISE TEXTURE OVERLAY ── */
        /* Subtle grain that gives everything a premium, printed feel */
        #app::after {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 9999;
            opacity: 0.018;
            mix-blend-mode: multiply;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
            background-repeat: repeat;
            background-size: 256px 256px;
        }


        /* ── 3. GLASS CARD SYSTEM ── */
        /* Every card gets the Liquid Glass treatment */
        .post-card {
            background: rgba(255, 255, 255, 0.82);
            backdrop-filter: blur(12px) saturate(1.4);
            -webkit-backdrop-filter: blur(12px) saturate(1.4);
            border: 1px solid rgba(214, 104, 83, 0.06);
            box-shadow:
                0 1px 3px rgba(28, 25, 23, 0.04),
                0 4px 16px rgba(28, 25, 23, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
            border-radius: 20px;
        }

        .post-card:hover {
            box-shadow:
                0 2px 8px rgba(28, 25, 23, 0.06),
                0 8px 32px rgba(214, 104, 83, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            transform: translateY(-1px);
        }

        .blog-card {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px) saturate(1.3);
            -webkit-backdrop-filter: blur(10px) saturate(1.3);
            border: 1px solid rgba(214, 104, 83, 0.05);
            box-shadow:
                0 1px 3px rgba(28, 25, 23, 0.04),
                0 4px 16px rgba(28, 25, 23, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
        }

        .blog-card:hover {
            box-shadow:
                0 4px 20px rgba(214, 104, 83, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            transform: translateY(-2px);
        }

        /* Channel cards — glass pill style */
        .channel-card {
            background: rgba(255, 255, 255, 0.72);
            backdrop-filter: blur(16px) saturate(1.5);
            -webkit-backdrop-filter: blur(16px) saturate(1.5);
            border: 1px solid rgba(214, 104, 83, 0.06);
            box-shadow:
                0 1px 4px rgba(28, 25, 23, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .channel-card:hover {
            background: rgba(255, 246, 242, 0.9);
            box-shadow:
                0 2px 12px rgba(214, 104, 83, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            transform: translateY(-1px);
        }


        /* ── 4. GRADIENT ACCENT BORDERS ── */
        /* Coral→Rosy top edge on featured elements */
        .post-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 24px;
            right: 24px;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
            opacity: 0;
            transition: opacity 0.4s ease;
            border-radius: 0 0 2px 2px;
        }

        .post-card:hover::before {
            opacity: 0.6;
        }

        /* Pinned/featured posts get permanent accent */
        .post-card[style*="border-left"] {
            border-left: none !important;
            border-image: none !important;
        }

        .post-card[style*="border-left"]::before {
            opacity: 1;
            left: 16px;
            right: 16px;
            height: 2.5px;
            background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
        }


        /* ── 5. STAGGER ANIMATIONS — refined entrance ── */
        @keyframes cardReveal {
            0% {
                opacity: 0;
                transform: translateY(12px) scale(0.98);
                filter: blur(4px);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: blur(0);
            }
        }

        .posts-list .post-card {
            animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .posts-list .post-card:nth-child(1) { animation-delay: 0s; }
        .posts-list .post-card:nth-child(2) { animation-delay: 0.06s; }
        .posts-list .post-card:nth-child(3) { animation-delay: 0.12s; }
        .posts-list .post-card:nth-child(4) { animation-delay: 0.18s; }
        .posts-list .post-card:nth-child(5) { animation-delay: 0.24s; }
        .posts-list .post-card:nth-child(6) { animation-delay: 0.3s; }
        .posts-list .post-card:nth-child(7) { animation-delay: 0.36s; }
        .posts-list .post-card:nth-child(8) { animation-delay: 0.42s; }

        .blog-grid .blog-card {
            animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .blog-grid .blog-card:nth-child(1) { animation-delay: 0s; }
        .blog-grid .blog-card:nth-child(2) { animation-delay: 0.08s; }
        .blog-grid .blog-card:nth-child(3) { animation-delay: 0.16s; }
        .blog-grid .blog-card:nth-child(4) { animation-delay: 0.24s; }
        .blog-grid .blog-card:nth-child(5) { animation-delay: 0.32s; }

        .channels-grid .channel-card {
            animation: cardReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
        }


        /* ── 6. HEARTBEAT LIKE ANIMATION ── */
        @keyframes heartbeat {
            0% { transform: scale(1); }
            15% { transform: scale(1.3); }
            30% { transform: scale(0.95); }
            45% { transform: scale(1.15); }
            60% { transform: scale(1); }
        }

        .reaction-btn:active {
            animation: heartbeat 0.6s ease-in-out;
        }

        /* Float particles on like */
        @keyframes likeFloat {
            0% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
            100% {
                opacity: 0;
                transform: translateY(-28px) scale(0.6);
            }
        }

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

        .like-btn.liked svg {
            animation: heartbeat 0.5s ease-in-out;
            fill: var(--primary);
            stroke: var(--primary);
        }


        /* ── 7. FLOAT ANIMATION — ambient motion ── */
        @keyframes gentleFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }

        .splash-logo-container {
            animation: gentleFloat 4s ease-in-out infinite;
        }

        /* Ambient orb pulse */
        @keyframes orbPulse {
            0%, 100% { opacity: 0.15; transform: scale(1); }
            50% { opacity: 0.25; transform: scale(1.08); }
        }


        /* ── 8. PREMIUM HEADER ── */
        .home-header-new {
            background: rgba(254, 251, 249, 0.72);
            backdrop-filter: blur(28px) saturate(1.8);
            -webkit-backdrop-filter: blur(28px) saturate(1.8);
            border-bottom: 1px solid rgba(214, 104, 83, 0.05);
            box-shadow: 0 1px 12px rgba(28, 25, 23, 0.02);
        }


        /* ── 9. PREMIUM TAB BAR UPGRADE ── */
        .tab-bar {
            background: rgba(254, 251, 249, 0.72);
            backdrop-filter: blur(32px) saturate(2);
            -webkit-backdrop-filter: blur(32px) saturate(2);
            border: 1px solid rgba(214, 104, 83, 0.08);
            box-shadow:
                0 -2px 20px rgba(28, 25, 23, 0.03),
                0 -1px 4px rgba(28, 25, 23, 0.02),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
        }

        .tab-item.active {
            background: linear-gradient(135deg, rgba(214, 104, 83, 0.1), rgba(232, 149, 126, 0.08));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }

        .tab-item.active .tab-icon svg {
            filter: drop-shadow(0 1px 3px rgba(214, 104, 83, 0.3));
        }


        /* ── 10. MODAL GLASS UPGRADE ── */
        .modal {
            background: rgba(254, 251, 249, 0.92);
            backdrop-filter: blur(40px) saturate(1.6);
            -webkit-backdrop-filter: blur(40px) saturate(1.6);
            border: 1px solid rgba(214, 104, 83, 0.06);
            box-shadow:
                0 -4px 32px rgba(28, 25, 23, 0.08),
                0 -1px 4px rgba(28, 25, 23, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
        }

        .modal-overlay {
            background: rgba(28, 25, 23, 0.3);
            backdrop-filter: blur(20px) saturate(0.8);
            -webkit-backdrop-filter: blur(20px) saturate(0.8);
        }

        /* Modal handle bar */
        .modal-handle {
            width: 36px;
            height: 4px;
            background: rgba(214, 104, 83, 0.15);
            border-radius: 2px;
            margin: 0 auto 12px;
        }


        /* ── 11. BUTTON REFINEMENTS ── */
        .btn-primary {
            background: linear-gradient(135deg, #D66853, #C4836E);
            box-shadow:
                0 4px 14px rgba(214, 104, 83, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
        }

        .btn-primary:hover {
            box-shadow:
                0 6px 24px rgba(214, 104, 83, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }

        .btn-primary:active {
            transform: translateY(0) scale(0.98);
            box-shadow:
                0 2px 8px rgba(214, 104, 83, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        /* Shimmer effect on primary buttons */
        .btn-primary::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
            transition: left 0.6s ease;
        }

        .btn-primary:hover::after {
            left: 100%;
        }


        /* ── 12. FILTER PILLS — glass morphism ── */
        .filter-pill {
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(214, 104, 83, 0.06);
            transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: 0 1px 3px rgba(28, 25, 23, 0.03);
        }

        .filter-pill:hover {
            background: rgba(255, 246, 242, 0.8);
            border-color: rgba(214, 104, 83, 0.12);
        }

        .filter-pill.active {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            border-color: transparent;
            box-shadow:
                0 2px 8px rgba(214, 104, 83, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }


        /* ── 13. TOAST UPGRADE ── */
        .toast {
            background: rgba(28, 25, 23, 0.88);
            backdrop-filter: blur(24px) saturate(1.5);
            -webkit-backdrop-filter: blur(24px) saturate(1.5);
            color: white;
            border-radius: 16px;
            box-shadow:
                0 8px 32px rgba(28, 25, 23, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            font-weight: 500;
            letter-spacing: -0.01em;
        }


        /* ── 14. SEARCH INPUT GLASS ── */
        .search-input,
        input[type="text"],
        input[type="email"],
        input[type="search"],
        textarea,
        select {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(214, 104, 83, 0.08);
            transition: all 0.25s ease;
        }

        .search-input:focus,
        input[type="text"]:focus,
        input[type="email"]:focus,
        input[type="search"]:focus,
        textarea:focus,
        select:focus {
            background: rgba(255, 255, 255, 0.95);
            border-color: rgba(214, 104, 83, 0.2);
            box-shadow:
                0 0 0 3px rgba(214, 104, 83, 0.08),
                0 2px 8px rgba(214, 104, 83, 0.06);
            outline: none;
        }


        /* ── 15. AVATAR RING GRADIENT ── */
        .avatar-circle,
        .user-avatar {
            border: 2px solid transparent;
            background-clip: padding-box;
            position: relative;
        }

        .avatar-circle::after,
        .user-avatar::after {
            content: '';
            position: absolute;
            inset: -3px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .post-card:hover .avatar-circle::after {
            opacity: 0.3;
        }


        /* ── 16. SCROLL MOMENTUM & OVERSCROLL ── */
        .screen {
            overscroll-behavior-y: contain;
        }

        /* Pull-to-refresh bounce color */
        body {
            overscroll-behavior: none;
        }


        /* ── 17. SECTION DIVIDERS ── */
        /* Replace hard borders with subtle gradient fades */
        .post-card + .post-card {
            /* margin-top instead of border */
        }


        /* ── 18. PREMIUM BADGE STYLES ── */
        .hot-badge,
        .post-badge {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.03em;
            padding: 3px 8px;
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(214, 104, 83, 0.25);
        }


        /* ── 19. EMPTY STATE POLISH ── */
        .empty-icon {
            color: var(--primary-light);
            opacity: 0.6;
        }

        .empty-icon svg {
            stroke: var(--primary-light);
        }


        /* ── 20. SUBTLE SCROLL INDICATOR ── */
        ::-webkit-scrollbar {
            width: 4px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(214, 104, 83, 0.15);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(214, 104, 83, 0.25);
        }


        /* ── 21. BOOKMARK ANIMATION ── */
        @keyframes bookmarkPop {
            0% { transform: scale(1); }
            30% { transform: scale(1.25) rotate(-5deg); }
            60% { transform: scale(0.95) rotate(2deg); }
            100% { transform: scale(1) rotate(0); }
        }


        /* ── 22. SELECTION COLOR ── */
        ::selection {
            background: rgba(214, 104, 83, 0.2);
            color: var(--text);
        }

        ::-moz-selection {
            background: rgba(214, 104, 83, 0.2);
            color: var(--text);
        }


        /* ── 23. MARKETPLACE CARD GLASS ── */
        .marketplace-card {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(214, 104, 83, 0.05);
            box-shadow:
                0 1px 4px rgba(28, 25, 23, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .marketplace-card:hover {
            transform: translateY(-2px);
            box-shadow:
                0 4px 16px rgba(214, 104, 83, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
        }


        /* ── 24. CHAT BUBBLES PREMIUM ── */
        .chat-bubble-mine {
            background: linear-gradient(135deg, var(--primary), #C4836E) !important;
            color: white !important;
            box-shadow: 0 2px 8px rgba(214, 104, 83, 0.2);
        }

        .chat-bubble-other {
            background: rgba(255, 255, 255, 0.85) !important;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(214, 104, 83, 0.05);
            box-shadow: 0 1px 4px rgba(28, 25, 23, 0.03);
        }


        /* ── 25. SPLASH SCREEN UPGRADE ── */
        .splash-screen {
            background: linear-gradient(160deg, #FEFBF9 0%, #FFF6F2 40%, #FFF0EC 100%);
        }

        .splash-tagline {
            font-family: 'Bricolage Grotesque', sans-serif;
            font-weight: 600;
            font-size: 15px;
            color: var(--text-light);
            letter-spacing: 0.02em;
        }


        /* ── 26. NOTIFICATION DOT ── */
        .tab-badge {
            background: linear-gradient(135deg, var(--primary), #E8957E);
            box-shadow: 0 0 0 2px rgba(254, 251, 249, 0.9), 0 1px 4px rgba(214, 104, 83, 0.3);
        }


        /* ── 27. DARK MODE GLASS ADJUSTMENTS ── */
        .dark-mode .post-card {
            background: rgba(40, 36, 33, 0.82);
            border-color: rgba(214, 104, 83, 0.08);
            box-shadow:
                0 1px 3px rgba(0, 0, 0, 0.15),
                0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }

        .dark-mode .blog-card,
        .dark-mode .channel-card,
        .dark-mode .marketplace-card {
            background: rgba(40, 36, 33, 0.8);
            border-color: rgba(214, 104, 83, 0.06);
            box-shadow:
                0 1px 4px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.02);
        }

        .dark-mode .home-header-new {
            background: rgba(28, 25, 23, 0.78);
            border-bottom-color: rgba(255, 255, 255, 0.04);
        }

        .dark-mode .tab-bar {
            background: rgba(28, 25, 23, 0.78);
            border-color: rgba(255, 255, 255, 0.06);
        }

        .dark-mode .modal {
            background: rgba(40, 36, 33, 0.94);
            border-color: rgba(255, 255, 255, 0.05);
        }

        .dark-mode .toast {
            background: rgba(60, 56, 53, 0.92);
        }

        .dark-mode .filter-pill {
            background: rgba(40, 36, 33, 0.6);
            border-color: rgba(255, 255, 255, 0.06);
        }

        .dark-mode .filter-pill.active {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
        }

        .dark-mode .btn-primary {
            box-shadow:
                0 4px 14px rgba(214, 104, 83, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .dark-mode #app::after {
            opacity: 0.025;
            mix-blend-mode: soft-light;
        }

        .dark-mode ::-webkit-scrollbar-thumb {
            background: rgba(214, 104, 83, 0.2);
        }

        .dark-mode .post-card::before {
            background: linear-gradient(90deg, transparent, rgba(232, 149, 126, 0.3), transparent);
        }


        /* ── 28. REDUCED MOTION — respect preferences ── */
        @media (prefers-reduced-motion: reduce) {
            .posts-list .post-card,
            .blog-grid .blog-card,
            .channels-grid .channel-card {
                animation: none !important;
            }

            .splash-logo-container {
                animation: none !important;
            }

            .post-card:hover,
            .blog-card:hover,
            .btn-primary:hover {
                transform: none !important;
            }

            .btn-primary::after {
                display: none;
            }
        }


        /* ── 29. LARGE SCREEN REFINEMENTS ── */
        @media (min-width: 480px) {
            .post-card {
                border-radius: 24px;
            }

            .blog-card {
                border-radius: 20px;
            }

            .modal {
                border-radius: 24px 24px 0 0;
            }
        }

