
        :root {
            --gold-light: #FFD700;
            --gold-dark: #B8860B;
            --primary-blue: #1877f2;
            --background-light: #f0f2f5;
            --text-dark: #1c1e21;
            --chat-bg-light: #e9e9eb;
            --chat-sent-bg: var(--primary-blue);
            --chat-received-bg: #E5E5EA;
            --header-height: 64px; /* Approximate header height */
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--background-light);
            color: var(--text-dark);
            min-height: 100vh;
            overflow-x: hidden;
        }
        .fade-in { animation: fadeIn 0.5s ease-in; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .slide-up { animation: slideUp 0.5s ease-out; }
        @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        .post-card {
            transition: all 0.3s ease;
            border-radius: 0.75rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
            background-color: #fff;
        }
        .post-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        .comment-section {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-in-out;
        }
        .comment-section.expanded { max-height: 1000px; }
        .like-button.liked, .story-like-button.liked { color: var(--primary-blue); }
        .dropdown-menu {
            display: none; position: absolute; background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-radius: 0.5rem; z-index: 100;
        }
        .dropdown-menu.show { display: block; animation: fadeIn 0.2s ease-out; }
        .modal {
            display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px);
            z-index: 1000; align-items: center; justify-content: center;
            opacity: 0; transition: opacity 0.3s ease;
        }
        .modal.show { display: flex; opacity: 1; }
        .modal-content {
            background-color: white; padding: 2rem; border-radius: 1rem;
            box-shadow: 0 12px 28px 0 rgba(0,0,0,0.2), 0 2px 4px 0 rgba(0,0,0,0.1);
            max-width: 90%; max-height: 90%; overflow-y: auto; width: 500px;
        }

        .modal-content-full-page {
            background-color: white;
            border-radius: 0;
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            display: flex;
            flex-direction: column;
            transform: translateY(100%);
            transition: transform 0.3s ease-out;
        }
        .modal.show .modal-content-full-page {
            transform: translateY(0);
        }


        .verified-badge { color: var(--primary-blue); margin-left: 4px; font-size: 0.9em; }
        .monetization-icon { color: green; margin-left: 4px; font-size: 0.9em; }
        .post-image, .story-image {
            max-height: 600px; width: 100%; object-fit: cover;
            border-radius: 0.75rem; margin: 1rem 0; display: block;
        }
        .profile-pic-upload { display: none; }
        .profile-pic-preview {
            width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
            cursor: pointer; border: 3px solid var(--primary-blue);
        }

        .app-header {
            background-color: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            position: sticky; top: 0; z-index: 50; padding: 0.75rem 1.5rem; height: var(--header-height);
        }
        .app-header .logo-img { 
            height: 2.5rem; /* 40px */
            width: 2.5rem;  /* 40px */
            border-radius: 50%;
            object-fit: cover;
        }
        
        .bottom-nav {
            position: fixed; bottom: 0; left: 0; right: 0; background: white;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 40; padding: 0.5rem 0;
            display: flex; justify-content: space-around;
        }
        .bottom-nav .nav-item.active { color: var(--primary-blue); }

        .btn {
            display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1.4rem;
            border-radius: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
        }
        .btn-primary-filled { background-color: var(--primary-blue); color: white; }
        .btn-primary-filled:hover { background-color: #166fe5; }
        .btn-outlined {
            background-color: transparent; border: 1px solid #dbdbdb; color: var(--text-dark);
        }
        .btn-outlined:hover { background-color: #f0f0f0; }
        .btn-danger-filled { background-color: #dc3545; color: white; }
        .btn-danger-filled:hover { background-color: #c82333; }

        .filter-button {
             flex: 1; padding: 0.75rem 1rem; border-radius: 0.5rem; text-align: center;
             font-weight: 600; transition: all 0.2s ease; cursor: pointer; color: #8e8e8e;
        }
        .filter-button.active { color: var(--text-dark); border-bottom: 2px solid var(--text-dark); }
        
        .toggle-switch {
            position: relative; display: inline-block; width: 50px; height: 28px;
        }
        .toggle-switch input { opacity: 0; width: 0; height: 0; }
        .slider {
            position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
            background-color: #ccc; transition: .4s; border-radius: 34px;
        }
        .slider:before {
            position: absolute; content: ""; height: 20px; width: 20px;
            left: 4px; bottom: 4px; background-color: white;
            transition: .4s; border-radius: 50%;
        }
        input:checked + .slider { background-color: var(--primary-blue); }
        input:checked + .slider:before { transform: translateX(22px); }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.8); 
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000; 
            transition: opacity 0.3s ease;
            opacity: 0;
            pointer-events: none; 
        }
        .loading-overlay.show {
            opacity: 1;
            pointer-events: all; 
        }
        
        .skeleton-container {
            position: relative;
            overflow: hidden;
            background-color: #f3f4f6; 
        }
        .skeleton-container::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            animation: shimmer 1.5s infinite;
        }
        .skeleton-circle, .skeleton-line, .skeleton-box {
            background-color: #e5e7eb; 
            border-radius: 0.25rem;
        }
        .skeleton-circle {
            border-radius: 50%;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }
        
        .button-spinner {
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid #fff;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            animation: spin 1s linear infinite;
            margin-right: 8px; 
        }
        .button-spinner.dark {
             border: 2px solid rgba(0, 0, 0, 0.2);
             border-top: 2px solid #333;
        }


        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        #reelsContainer {
            height: calc(100vh - var(--header-height) - 64px); 
            overflow-y: scroll;
            scroll-snap-type: y mandatory; 
            -webkit-overflow-scrolling: touch; 
            width: 100%;
            background-color: black; 
            scroll-behavior: smooth; 
        }
        @media (min-width: 768px) { 
             #reelsContainer {
                height: calc(100vh - var(--header-height)); 
            }
        }


        .reel-item {
            width: 100%;
            height: 100%; 
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            scroll-snap-align: start; 
            background-color: black;
        }

        .reel-item video {
            width: 100%;
            height: 100%;
            object-fit: contain; 
        }

        .reel-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-end; 
            padding: 1rem;
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 30%); 
            pointer-events: none; 
        }
        .reel-overlay > div {
            pointer-events: auto;
        }

        .reel-actions {
            position: absolute;
            right: 1rem;
            bottom: 6rem; 
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            color: white;
            z-index: 10;
        }
         @media (min-width: 768px) { 
            .reel-actions {
                bottom: 2rem; 
            }
        }


        .reel-action-button {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 1.8rem;
            cursor: pointer;
            text-shadow: 0 0 5px rgba(0,0,0,0.5);
            pointer-events: auto; 
        }
        .reel-action-button span {
            font-size: 0.75rem;
            margin-top: 0.25rem;
        }
        .reel-action-button.liked {
            color: var(--primary-blue); 
        }

        .play-pause-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 4rem;
            color: rgba(255, 255, 255, 0.7);
            text-shadow: 0 0 10px rgba(0,0,0,0.8);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 5;
            pointer-events: none; 
        }
        .play-pause-icon.show {
            opacity: 1;
        }

        .dashboard-reel-preview {
            width: 100%;
            height: 200px; 
            background-color: #333; 
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border-radius: 0.75rem; 
            overflow: hidden;
            cursor: pointer;
        }
        .dashboard-reel-preview i {
            font-size: 3rem;
            color: rgba(255,255,255,0.7);
        }
        .form-checkbox {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            height: 20px;
            width: 20px;
            min-width: 20px; 
            border: 2px solid #D1D5DB; 
            border-radius: 6px; 
            cursor: pointer;
            display: inline-block;
            position: relative;
            transition: all 0.2s ease-in-out;
            margin-right: 0.5rem; 
            flex-shrink: 0; 
        }

        .form-checkbox:checked {
            background-color: var(--primary-blue);
            border-color: var(--primary-blue);
        }

        .form-checkbox:checked::after {
            content: '\\2713'; 
            font-size: 14px;
            color: white;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .form-checkbox:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5); 
        }
        .form-checkbox:hover {
            border-color: var(--primary-blue); 
        }
        .hobby-label {
            display: flex;
            align-items: center;
            font-size: 0.875rem; line-height: 1.25rem;
            cursor: pointer;
            user-select: none;
            padding: 0.5rem 0.75rem;
            border: 1px solid #D1D5DB; border-radius: 0.5rem;
            background-color: #F9FAFB;
            transition-property: background-color, border-color;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            transition-duration: 200ms;
        }
        .hobby-label:hover {
            background-color: #F3F4F6;
        }
        .hobby-label.selected {
            background-color: #EBF8FF; 
            border-color: var(--primary-blue); 
            font-weight: 500;
        }

        .auth-container {
            border-radius: 1.5rem; 
            padding: 3rem 2rem;
            max-width: 480px; 
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        .auth-container .logo-img { /* Class for the new image logo */
            height: 5rem; /* 80px */
            width: 5rem; /* 80px */
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 2.5rem;
            margin-left: auto;
            margin-right: auto;
        }
        .auth-container #authTitle {
            font-size: 2.5rem; 
            margin-bottom: 2.5rem;
            color: var(--primary-blue);
        }
        .auth-container input {
            padding: 0.8rem 1.25rem;
            font-size: 1.1rem;
        }
        .auth-container #authButton {
            padding: 0.9rem 1.5rem;
            font-size: 1.25rem;
            border-radius: 1rem; 
            background-image: linear-gradient(to right, #1877f2, #3b5998); 
            transition: all 0.3s ease;
        }
        .auth-container #authButton:hover {
            box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
            transform: translateY(-2px);
        }
        .auth-container .auth-toggle {
            font-size: 1.05rem;
            color: #555;
        }
        .auth-container .auth-toggle:hover {
            color: var(--primary-blue);
        }

        .story-border {
            position: relative;
            display: inline-block; 
            cursor: pointer;
        }
        .story-border::before {
            content: '';
            position: absolute;
            top: -4px;  
            left: -4px;
            right: -4px;
            bottom: -4px;
            border: 3px solid var(--gold-light); 
            border-radius: 50%; 
            z-index: 1; 
        }
        .story-border > img {
            position: relative;
            z-index: 2; 
        }
        
        .story-preview-modal-content {
            background-color: #000;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            transform: translateY(100%);
            transition: transform 0.3s ease-out;
        }
        .modal.show .story-preview-modal-content {
            transform: translateY(0);
        }

        .story-preview-header {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem;
            z-index: 20;
            background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
        }
        .story-preview-user-info {
            display: flex;
            align-items: center;
            color: white;
        }
        .story-preview-user-info img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            margin-right: 0.5rem;
            border: 2px solid white;
        }
         .story-preview-user-info .story-count-text {
            font-size: 0.9rem;
            margin-left: 0.75rem;
            opacity: 0.8;
        }
        .story-preview-header .close-btn {
            color: white;
            font-size: 1.5rem;
            background: none;
            border: none;
            cursor: pointer;
        }
        .story-preview-media-container {
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%; 
        }
        .story-preview-media-container img,
        .story-preview-media-container video {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        .story-preview-actions {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 1rem;
            z-index: 20;
            background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
        }
        .story-preview-actions .story-like-button {
            color: white;
            font-size: 1.8rem;
            background: none;
            border: none;
            cursor: pointer;
        }
        .story-preview-actions .story-like-button.liked {
            color: var(--primary-blue);
        }

        .story-navigation {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            z-index: 10;
        }
        .story-nav-area {
            flex: 1;
            height: 100%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .story-nav-area .story-nav-arrow {
            font-size: 2.5rem;
            color: rgba(255,255,255,0.4);
            transition: color 0.2s;
            padding: 1rem; 
        }
        .story-nav-area:hover .story-nav-arrow {
            color: rgba(255,255,255,0.8);
        }

        .story-progress-container {
            position: absolute;
            top: 8px;
            left: 1rem;
            right: 1rem;
            display: flex;
            gap: 4px;
            z-index: 25;
        }
        .story-progress-bar {
            flex-grow: 1;
            height: 3px;
            background-color: rgba(255,255,255,0.3);
            border-radius: 2px;
            overflow: hidden;
        }
        .story-progress-bar-fill {
            height: 100%;
            width: 0%; 
            background-color: white;
        }
        .story-progress-bar.active .story-progress-bar-fill {
        }
        .story-progress-bar.completed .story-progress-bar-fill {
            width: 100%;
        }

        .chat-header {
            background-color: white;
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            align-items: center;
        }
        .chat-header img { width: 40px; height: 40px; border-radius: 50%; margin-right: 0.75rem; object-fit: cover;}
        .chat-header .chat-partner-name { font-weight: 600; font-size: 1.1rem; }
        .chat-messages {
            flex-grow: 1;
            overflow-y: auto;
            padding: 1rem;
            background-color: var(--chat-bg-light);
            display: flex;
            flex-direction: column;
        }
        .chat-bubble {
            max-width: 70%;
            padding: 0.6rem 1rem;
            border-radius: 1.25rem;
            margin-bottom: 0.5rem;
            word-wrap: break-word;
            line-height: 1.4;
        }
        .chat-bubble.sent {
            background-color: var(--chat-sent-bg);
            color: white;
            align-self: flex-end;
            border-bottom-right-radius: 0.25rem;
        }
        .chat-bubble.received {
            background-color: var(--chat-received-bg);
            color: var(--text-dark);
            align-self: flex-start;
            border-bottom-left-radius: 0.25rem;
        }
        .chat-bubble .timestamp {
            font-size: 0.7rem;
            opacity: 0.7;
            display: block;
            margin-top: 0.25rem;
            text-align: right;
        }
        .chat-bubble.sent .timestamp { color: rgba(255,255,255,0.7); }
        .chat-bubble.received .timestamp { color: rgba(0,0,0,0.5); }
        .chat-bubble img.chat-image-media {
            max-width: 100%;
            max-height: 200px;
            border-radius: 0.75rem;
            margin-top: 0.5rem;
            cursor: pointer;
        }
         .chat-bubble audio {
            width: 100%;
            max-width: 250px;
            margin-top: 0.5rem;
            border-radius: 6px;
        }
        .chat-input-area {
            background-color: white;
            padding: 0.75rem 1rem;
            border-top: 1px solid #e0e0e0;
            display: flex;
            align-items: center;
            gap: 0.5rem; 
        }
        .chat-input-area input[type="text"] {
            flex-grow: 1;
            border: 1px solid #ccc;
            border-radius: 20px;
            padding: 0.6rem 1rem;
            outline: none;
        }
        .chat-input-area button {
            background: none;
            border: none;
            color: var(--primary-blue);
            font-size: 1.5rem; 
            padding: 0.5rem;
            cursor: pointer;
            flex-shrink: 0; 
        }
        .chat-encryption-label {
            font-size: 0.7rem;
            color: #888;
            text-align: center;
            padding: 0.25rem 0;
            background-color: var(--chat-bg-light);
        }
         #voiceRecordingIndicator {
            position: fixed;
            bottom: 70px; 
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0,0,0,0.7);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            z-index: 1010; 
            display: none; 
        }
        #voiceRecordingIndicator.show { display: block; }

        .header-icon-container {
            position: relative;
        }
        .notification-dot {
            position: absolute;
            top: -2px;
            right: -2px;
            width: 8px;
            height: 8px;
            background-color: red;
            border-radius: 50%;
            border: 1px solid white;
            display: none; 
        }
        .notification-dot.show { display: block; }

        #sidebar .nav-item {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            color: #374151; 
            font-weight: 500;
            transition: background-color 0.2s ease, color 0.2s ease;
        }
        #sidebar .nav-item:hover {
            background-color: #f3f4f6; 
            color: var(--text-dark);
        }
        #sidebar .nav-item.active {
            background-color: var(--primary-blue);
            color: white;
        }
        #sidebar .nav-item i {
            margin-right: 0.75rem;
            width: 20px; 
            text-align: center;
        }
        #sidebar .logo-container { /* For sidebar logo */
            display: flex;
            align-items: center;
            justify-content: center; /* Center logo in sidebar */
            flex-shrink: 0;
            padding-left: 1rem; /* px-4 */
            padding-right: 1rem; /* px-4 */
            margin-bottom: 1.25rem; /* mb-5 */
            height: 4rem; /* h-16 */
        }
        #sidebar .logo-container img {
            height: 3rem; /* h-12 */
            width: 3rem;  /* w-12 */
            border-radius: 50%;
            object-fit: cover;
        }
        
        /* Suggested Stories Feed Section */
        #suggestedStoriesFeedSection {
            background-color: #ffffff;
            padding: 1rem;
            border-radius: 0.75rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
            margin-bottom: 1rem;
        }
        #suggestedStoriesFeedSection h3 {
            font-size: 1.125rem; /* text-lg */
            font-weight: 600; /* font-semibold */
            margin-bottom: 0.75rem; /* mb-3 */
        }
        .suggested-stories-horizontal-scroll {
            display: flex;
            overflow-x: auto;
            gap: 0.75rem; /* space-x-3 */
            padding-bottom: 0.5rem; /* For scrollbar visibility if needed */
        }
        .suggested-stories-horizontal-scroll::-webkit-scrollbar {
            height: 6px;
        }
        .suggested-stories-horizontal-scroll::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }
        .suggested-story-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 80px; /* Adjust as needed */
            flex-shrink: 0;
            cursor: pointer;
        }
        .suggested-story-item .story-border { /* Re-use existing story border style */
            width: 64px; /* w-16 */
            height: 64px; /* h-16 */
        }
        .suggested-story-item .story-border img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }
        .suggested-story-item p {
            font-size: 0.75rem; /* text-xs */
            margin-top: 0.25rem; /* mt-1 */
            text-align: center;
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        #landingPage .logo-img { /* Class for the new image logo on landing page */
            max-height: 120px;
            width: 120px;
            border-radius: 50%; /* Make it circular */
            object-fit: cover;
        }


    
