/* Main Plugin CSS */

/* --- START: Color and Style Variables (Light Mode Default) --- */
:root {
    --background-color: #fff;
    --card-background-color: #f8f9fa;
    --hover-background-color: #e9ecef;
    --subtle-hover-background: #f5f5f5;
    --text-color: #0f1419;
    --text-color-light: #333;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-strong: #ddd;
    --header-background: rgba(255, 255, 255, 0.85);
    --modal-background-color: #fff;
    --input-background-color: #fff;
    --box-shadow-color: rgba(0, 0, 0, 0.1);
    --error-color: #e74c3c;
    --error-hover-color: #c0392b;
    --error-background-color: #ffebee;
    --error-border-color: #ffcdd2;
    --success-background-color: #e8f5e8;
    --success-border-color: #c8e6c9;
    /* --primary-color and --secondary-color are injected via PHP inline style */
}
/* --- END: Color and Style Variables --- */


.coecho-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0;
    margin-left: -30px;
    margin-right: -30px;
    background-color: var(--background-color);
    color: var(--text-color);
}

.coecho-feed {
    margin-bottom: 30px !important;
}

@media (min-width: 1024px) {
    .coecho-desktop-content {
        max-width: 47% !important;
        border-left: 1px solid var(--border-color) !important;
        border-right: 1px solid var(--border-color) !important;
    }
}
@media (min-width: 1024px) {
    .coecho-desktop-content {
        flex: 1;
        margin-left: 23% !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .coecho-desktop-content {
        margin-left: 30% !important;
        max-width: 70% !important;
    }
}

.coecho-desktop-content {
    margin-right: -30px;
    margin-left: -30px;
}

@media (min-width: 768px) {
    .coecho-header {
        margin-top: -140px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .coecho-right-sidebar {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .coecho-desktop-sidebar {
        margin-left: 0px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) {
    .coecho-right-sidebar {
        right: 0% !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    img.avatar.avatar-24.photo {
        border-radius: 50%;
        margin-right: 18px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .coecho-edit-profile-modal.active {
        transform: translateX(-50%);
        left: 30% !important;
        min-width: 400px !important;
    }
}

@media only screen and (max-width: 767px) {
    .coecho-header {
        margin-top: -60px !important;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .coecho-desktop-content {
        flex: 1;
    }
}

.coecho-header {
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--header-background);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coecho-post-content a,
.coecho-link-preview-url,
.coecho-link-preview-title {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.coecho-link-preview {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 767px) {
    .coecho-header .coecho-mobile-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .coecho-header .coecho-mobile-logo .coecho-logo {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .coecho-header .coecho-impersonation-badge {
        margin: 0;
    }
}

@media (min-width: 768px) {
    .coecho-header .coecho-mobile-logo {
        display: none;
    }
}

.coecho-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.coecho-nav {
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 0.4rem 0;
    z-index: 100;
}

.coecho-nav-item {
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.75rem;
    cursor: pointer;
}

.coecho-advertisement {
    margin-bottom: 15px;
}

.coecho-advertisement + * {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

button.coecho-suggested-be-me-btn {
    font-weight: 600;
    border-radius: 20px;
    padding: 8px 14px;
    border: 0;
    background: var(--primary-color);
    color: #fff;
}

.coecho-nav-item.active {
    color: var(--primary-color);
}

button.coecho-comment-reply-btn {
    border: none;
    background: none;
    color: var(--primary-color);
}

.coecho-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.25rem;
}

.coecho-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.coecho-tab {
    flex: 1;
    text-align: center;
    padding: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
}

.coecho-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.coecho-post {
    padding: 0.2rem 1rem 1rem 1rem;
	border-top: 0.5px solid var(--border-color); 
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.coecho-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.coecho-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 0.75rem;
    cursor: pointer;
    object-fit: cover;
}

img.avatar.avatar-32.photo {
    border-radius: 50%;
}

:where(.wp-site-blocks *:focus) {
    outline-width: 0px !important;
    outline-style: none !important;
}

.coecho-user-info {
    margin-left: -5px;
    flex: 1;
}

.coecho-display-name {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.coecho-display-name:hover {
    text-decoration: underline;
}

.coecho-verified-badge {
    width: 16px;
    height: 16px;
    margin-left: 0.25rem;
    color: var(--primary-color);
}

.coecho-username {
    color: var(--secondary-color);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
}

.coecho-username:hover {
    text-decoration: underline;
}

.coecho-impersonation-badge-post {
    background-color: rgba(0, 186, 123, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: inline-flex
;
    align-items: center;
}

.coecho-post-content {
    margin-top: -0.57rem;
    margin-bottom: -0.7rem;
    line-height: 1.5;
}

.coecho-hashtag {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
}

.coecho-hashtag:hover {
    text-decoration: underline;
}

.coecho-mention {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
}

.coecho-mention:hover {
    text-decoration: underline;
}

.coecho-post-media {
    margin-top: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
}

.coecho-post-media img,
.coecho-post-media video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.coecho-link-preview {
    margin-top: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background-color 0.2s ease;
}

.coecho-link-preview:hover {
    background-color: rgba(0, 0, 0, 0.02);
    text-decoration: none;
    color: inherit;
}

.coecho-link-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f5f5f5;
}

.coecho-link-preview-content {
    padding: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.coecho-link-preview-icon {
    width: 16px;
    height: 16px;
    color: var(--secondary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.coecho-link-preview-text {
    flex: 1;
}

.coecho-link-preview-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.coecho-link-preview-url {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.coecho-post-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    color: var(--secondary-color);
}

.coecho-action {
    display: flex;
    border-radius: 50px;
    border: solid 0.5px !important;
    align-items: center;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

.coecho-action-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.25rem;
}

.coecho-bookmark-button.active svg {
    color: var(--primary-color);
    fill: var(--primary-color);
}

.coecho-comment-avatars {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.coecho-comment-avatar-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--background-color);
    margin-left: -8px;
    object-fit: cover;
    cursor: pointer;
}

.coecho-comment-avatar-small:first-child {
    margin-left: 0;
}

.coecho-comment-time {
    font-size: 12px;
}

.coecho-comment-count-more {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-left: 0.25rem;
}

.coecho-impersonation-badge {
    background-color: rgba(0, 186, 123, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
}

.coecho-impersonation-badge svg {
    width: 12px;
    height: 12px;
    margin-right: 0.25rem;
}

.coecho-impersonation-badge .coecho-username {
    color: var(--primary-color);
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.coecho-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.coecho-post-time {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.coecho-post-options {
    position: relative;
    display: inline-block;
}

.coecho-post-options-toggle {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.coecho-post-options-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.coecho-post-options-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--modal-background-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--box-shadow-color);
    z-index: 100;
    min-width: 150px;
    overflow: hidden;
    display: none;
}

.coecho-post-options-menu.show {
    display: block;
}

.coecho-post-options-item {
    display: block;
    padding: 0.5rem 1rem;
    text-align: left;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    font-size: 0.875rem;
}

.coecho-post-options-item:hover {
    background-color: var(--subtle-hover-background);
}

.coecho-post-options-item.delete {
    color: var(--error-color);
}

.coecho-post-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--modal-background-color);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 10px var(--box-shadow-color);
    z-index: 1000;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.coecho-post-modal.active {
    transform: translateY(0);
}

.coecho-post-textarea {
    width: 100%;
    min-height: 100px;
    border: none;
    resize: none;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: inherit;
    background-color: transparent;
    color: var(--text-color);
}

.coecho-post-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coecho-media-options {
    display: flex;
}

.coecho-media-option {
    margin-right: 1rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}

.coecho-post-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    cursor: pointer;
}

.coecho-profile-menu {
    position: fixed;
    bottom: 60px;
    right: 1rem;
    background-color: var(--modal-background-color);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--box-shadow-color);
    z-index: 1000;
    padding: 1rem;
    min-width: 200px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.coecho-profile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.coecho-menu-header {
    display: flex;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
}

.coecho-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
    object-fit: cover;
}

.coecho-menu-user {
    flex: 1;
}

.coecho-menu-name {
    font-weight: 700;
}

.coecho-menu-username {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.coecho-menu-item {
    display: block;
    padding: 0.5rem 0;
    color: inherit;
    text-decoration: none;
}

.coecho-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.coecho-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.coecho-new-post-button {
    position: fixed;
    bottom: 60px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: 0 2px 10px var(--box-shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    cursor: pointer;
}

.coecho-media-preview {
    margin-top: 1rem;
    position: relative;
}

.coecho-media-preview img,
.coecho-media-preview video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.coecho-remove-media {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

img.avatar.avatar-48.photo {
    height: 45px;
    width: 45px;
    border-radius: 50%;
}

.coecho-comments-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--modal-background-color);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 10px var(--box-shadow-color);
    z-index: 1002;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}
@media (max-width: 767px) {
  .coecho-comments-modal {
    padding: 0.5rem 0.5rem 4rem 0.5rem;
  }
}

.coecho-comments-modal.active {
    transform: translateY(0);
}

.coecho-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.coecho-comments-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.coecho-comments-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.coecho-comments-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.coecho-comment {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.coecho-comment.coecho-comment-indent {
    border-bottom-left-radius: 50px;
    padding-left: 5px;
    margin-left: 15px;
    border-left: 2px solid var(--border-color);
}

.coecho-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    justify-content: space-between;
}

.coecho-comment-user-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.coecho-comment-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coecho-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.5rem;
    cursor: pointer;
    object-fit: cover;
}

.coecho-comment-user {
    flex: 1;
}

.coecho-comment-name {
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.coecho-comment-name:hover {
    text-decoration: underline;
}

.coecho-comment-username {
    color: var(--secondary-color);
    font-size: 0.75rem;
    cursor: pointer;
}

.coecho-comment-username:hover {
    text-decoration: underline;
}

.coecho-comment-content {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-left: 42px;
}

.coecho-comment-delete-btn,
.coecho-comment-report-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.coecho-comment-delete-btn {
    color: var(--error-color);
}

.coecho-comment-delete-btn:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

.coecho-comment-report-btn {
    color: var(--secondary-color);
}

.coecho-comment-report-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.coecho-comment-form {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
}

.coecho-comment-input-container {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.coecho-comment-input {
	border: none;
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 38px;
    resize: none;
    background-color: transparent;
    color: var(--text-color);
}

.coecho-comment-submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 60px;
}

.coecho-character-counter {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-left: auto;
}

.coecho-character-counter.over-limit {
    color: var(--error-color);
}

.coecho-followers-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--modal-background-color);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 10px var(--box-shadow-color);
    z-index: 1000;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.coecho-followers-modal.active {
    transform: translateY(0);
}

.coecho-followers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.coecho-followers-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.coecho-followers-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.coecho-followers-list {
    flex: 1;
    overflow-y: auto;
}

.coecho-follower-card {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background-color: var(--card-background-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    justify-content: space-between;
}

.coecho-follower-card:hover {
    background-color: var(--hover-background-color);
}

.coecho-follower-main-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.coecho-follower-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 0.75rem;
    object-fit: cover;
}

.coecho-follower-info {
    flex: 1;
}

.coecho-follower-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.coecho-follower-username {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.coecho-follower-bio {
    color: var(--secondary-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coecho-follower-follow-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
}

.coecho-follower-follow-btn.following {
    background-color: var(--primary-color);
    color: #fff;
}

.coecho-share-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--modal-background-color);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 10px var(--box-shadow-color);
    z-index: 1000;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.coecho-share-modal.active {
    transform: translateY(0);
}

.coecho-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.coecho-share-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.coecho-share-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.coecho-share-url {
    display: flex;
    margin-bottom: 1rem;
}

.coecho-share-input {
    margin-right: -30px;
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    padding: 0.5rem;
    font-size: 0.875rem;
    background-color: var(--input-background-color);
    color: var(--text-color);
}

.coecho-share-copy {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.coecho-share-options {
    display: flex;
    justify-content: space-around;
}

.coecho-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
}

.coecho-share-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.coecho-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.coecho-confirmation-modal.active {
    opacity: 1;
    pointer-events: all;
}

.coecho-confirmation-content {
    background-color: var(--modal-background-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.coecho-confirmation-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

.coecho-confirmation-message {
    margin-bottom: 2rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

.coecho-confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.coecho-confirmation-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coecho-confirmation-btn-cancel {
    background-color: var(--card-background-color);
    color: var(--text-color-light);
}

.coecho-confirmation-btn-cancel:hover {
    background-color: var(--hover-background-color);
}

.coecho-confirmation-btn-confirm {
    background-color: var(--error-color);
    color: #fff;
}

.coecho-confirmation-btn-confirm:hover {
    background-color: var(--error-hover-color);
}

.coecho-report-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--modal-background-color);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 10px var(--box-shadow-color);
    z-index: 1000;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.coecho-report-modal.active {
    transform: translateY(0);
}

.coecho-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.coecho-report-title {
    font-weight: 700;
    font-size: 1.25rem;
}

::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.coecho-report-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.coecho-report-reason-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    background-color: var(--input-background-color);
    color: var(--text-color);
}

img.avatar.avatar-24.photo {
    border-radius: 50%;
}

@media only screen and (min-width: 1024px) {
    img.avatar.avatar-24.photo {
        border-radius: 50%;
        margin-right: 18px;
    }
}

.coecho-report-reason-input {
    width: 96%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    min-height: 100px;
    resize: vertical;
    background-color: var(--input-background-color);
    color: var(--text-color);
}

.coecho-report-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.coecho-terms-checkbox {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.coecho-terms-link {
    color: var(--primary-color);
    text-decoration: none;
}

.coecho-auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.coecho-auth-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.coecho-auth-logo h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--primary-color);
}

.coecho-main-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coecho-main-tab {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.coecho-main-tab.active {
    display: block;
}

.coecho-search-container {
    padding: 1rem;
}

.coecho-search-input {
    width: 90%;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    background-color: var(--input-background-color);
    color: var(--text-color);
}

.coecho-search-section {
    margin-bottom: 0.5rem;
}

.coecho-search-section h3 {
	margin-top: -7px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.coecho-hashtag-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.coecho-hashtag-item {
    padding: 0.75rem;
    background-color: var(--card-background-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.coecho-hashtag-item:hover {
    background-color: var(--hover-background-color);
}

.coecho-hashtag-name {
    font-weight: 600;
    color: var(--text-color);
	font-size: 16px;
}

.coecho-hashtag-count {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.coecho-top-users-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coecho-top-user-card {
    background-color: var(--card-background-color);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.coecho-top-user-card:hover {
    background-color: var(--hover-background-color);
    transform: translateY(-2px);
}

.coecho-top-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.coecho-top-user-details {
    flex: 1;
}

.coecho-top-user-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.coecho-top-user-info {
    flex: 1;
}

.coecho-top-user-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.coecho-top-user-username {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.coecho-top-user-bio {
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coecho-top-user-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.coecho-top-user-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.coecho-suggested-users-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coecho-suggested-user-card {
    background-color: var(--card-background-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.coecho-suggested-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
}

.coecho-suggested-user-details {
    flex: 1;
}

.coecho-suggested-user-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.coecho-suggested-user-info {
    flex: 1;
}

.coecho-suggested-user-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.coecho-suggested-user-username {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.coecho-suggested-user-bio {
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coecho-suggested-user-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.coecho-suggested-user-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.coecho-suggested-follow-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.coecho-search-results {
    margin-right: -8px;
    margin-left: -8px;
}

p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.coecho-impersonate-users-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coecho-impersonate-user-card {
    background-color: var(--card-background-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.coecho-impersonate-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
}

.coecho-impersonate-user-details {
    flex: 1;
}

.coecho-impersonate-user-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.coecho-impersonate-user-info {
    flex: 1;
}

.coecho-impersonate-user-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.coecho-impersonate-user-username {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.coecho-impersonate-user-bio {
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coecho-impersonate-user-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.coecho-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: var(--secondary-color);
}

.coecho-desktop-sidebar {
	border-left: 1px solid var(--border-color);
    margin-left: 7%;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 15%;
	min-width: 200px;
	
    padding: 1rem;
    background-color: var(--background-color);
    z-index: 99;
}

.coecho-sidebar-item {
    top: -40px;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.coecho-sidebar-item:hover {
    background-color: rgba(0, 186, 123, 0.1);
}

.coecho-sidebar-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.coecho-sidebar-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
}

.coecho-sidebar-logout {
    margin-top: auto;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.coecho-sidebar-logout:hover {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
}

.coecho-right-sidebar {
	border-right: 1px solid var(--border-color);
    display: none;
    position: fixed;
    right: 7%;
    top: 0;
    bottom: 0;
    width: 300px;
    padding: 1rem;
    background-color: var(--background-color);
    overflow-y: auto;
}

.coecho-right-sidebar-section {
    background-color: var(--card-background-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.coecho-right-sidebar-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.coecho-sidebar-hashtag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
}

.coecho-sidebar-hashtag-item:hover {
    background-color: rgba(0, 186, 123, 0.1);
}

.coecho-sidebar-hashtag-name {
    font-weight: 600;
	font-size: 16px;
    color: var(--text-color);
}

.coecho-sidebar-hashtag-count {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.coecho-sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    padding: 0.75rem 0.5rem;
    margin-bottom: 0.5rem;
}

.coecho-sidebar-user-card:hover {
    background-color: rgba(0, 186, 123, 0.1);
}

.coecho-sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.coecho-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.coecho-sidebar-user-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coecho-sidebar-user-username {
    color: var(--secondary-color);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coecho-sidebar-user-actions {
    display: flex;
    gap: 0.25rem;
}

.coecho-sidebar-follow-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.75rem;
}

.coecho-sidebar-follow-btn.following {
    background-color: var(--primary-color);
    color: #fff;
}

.coecho-sidebar-be-me-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.75rem;
}

.coecho-sidebar-be-me-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.coecho-profile-container {
    max-width: 100%;
}

.coecho-profile-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.coecho-profile-cover {
    margin-top: 5px;
	margin-right: 8px;
    margin-left: 8px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    position: relative;
}

.coecho-profile-main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 1rem;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.coecho-profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--background-color);
    object-fit: cover;
}

.coecho-profile-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.coecho-action-icon-button {
    background-color: var(--modal-background-color);
    border: 1px solid var(--border-color-strong);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--secondary-color);
    text-decoration: none;
}

.coecho-action-icon-button:hover {
    background-color: var(--hover-background-color);
    border-color: #ccc;
}

.coecho-action-icon-button svg {
    width: 22px;
    height: 22px;
}

.coecho-action-icon-button.coecho-follow-button.following {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.coecho-action-icon-button.coecho-block-button.blocked {
    background-color: var(--error-color);
    border-color: var(--error-color);
    color: #fff;
}

.coecho-edit-button {
    background: none;
    border: 1px solid #aaa;
    color: var(--text-color-light);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
}

.coecho-profile-info {
    margin-top: 0.1rem;
    padding: 0 1rem;
}

.coecho-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.coecho-profile-username {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.coecho-profile-bio {
	margin-top: -.5rem;
    margin-bottom: -.5rem;
    line-height: 1.5;
}

.coecho-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.coecho-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.coecho-profile-meta-icon {
    width: 16px;
    height: 16px;
}

.coecho-profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.coecho-profile-stat {
    text-align: center;
    cursor: pointer;
}

.coecho-profile-stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.coecho-profile-stat-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coecho-profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.coecho-profile-tab {
    flex: 1;
    text-align: center;
    padding: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    background: none;
    border: none;
}

.coecho-profile-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.coecho-profile-content {
    padding: 1rem 0;
}

.coecho-profile-tab-content {
    display: none;
}

.coecho-profile-tab-content.active {
    display: block;
}

.coecho-media-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    display: grid;
	width: 100%;
	height: 100%;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    width: 150px;
    gap: 0.5rem;
    padding: 1rem;
	object-fit: cover;
}

.coecho-edit-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--modal-background-color);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.coecho-edit-profile-modal.active {
    transform: translateX(0);
}

.coecho-edit-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--modal-background-color);
    z-index: 10;
}

.coecho-edit-profile-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.coecho-edit-profile-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.coecho-edit-profile-form {
    padding: 1rem;
}

.coecho-form-group {
    margin-bottom: 1.5rem;
}

.coecho-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color-light);
}

.coecho-form-input {
    width: 95%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: var(--input-background-color);
    color: var(--text-color);
}

.coecho-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.coecho-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.coecho-edit-profile-save {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 1rem;
}

.coecho-edit-profile-save:hover {
    background-color: #009a68;
}

.coecho-delete-account-button {
    background-color: var(--error-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.coecho-delete-account-button:hover {
    background-color: var(--error-hover-color);
}

.coecho-logout-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    color: #fff;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.coecho-profile-picture-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    margin-bottom: 1rem;
}

.coecho-upload-profile-picture {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.coecho-remove-profile-picture {
    background-color: var(--error-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
}

.coecho-profile-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -15px;
    margin-bottom: -20px;
    padding-bottom: 0;
    border-bottom: 0;
}

.coecho-profile-post-user-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.coecho-profile-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
    cursor: pointer;
    object-fit: cover;
}

.coecho-profile-post-user {
    flex: 1;
}

.coecho-profile-post-name {
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.coecho-profile-post-name:hover {
    text-decoration: underline;
}

.coecho-profile-post-username {
    color: var(--secondary-color);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.coecho-profile-post-username:hover {
    text-decoration: underline;
}

.coecho-profile-post-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coecho-profile-post-delete-btn,
.coecho-profile-post-report-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.coecho-profile-post-delete-btn {
    color: var(--error-color);
}

.coecho-profile-post-delete-btn:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

.coecho-profile-post-report-btn {
    color: var(--secondary-color);
}

.coecho-profile-post-report-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.coecho-message-icon {
    width: 16px;
    height: 16px;
}

.coecho-advertisement {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0.5rem;
    margin: 0.5rem 0.1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.coecho-advertisement::before {
    content: 'Advertisement';
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.coecho-gif-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 767px) {
    .coecho-gif-search-input {
        width: 92%;
    }
}

.coecho-gif-modal.active {
    display: flex;
}

.coecho-gif-modal-content {
    background: var(--modal-background-color);
    border-radius: 16px;
    width: 99%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

.coecho-gif-modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coecho-gif-modal-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.coecho-gif-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0.25rem;
}

.coecho-gif-search-container {
    padding: 0.1rem;
    border-bottom: 1px solid var(--border-color);
}

.coecho-gif-search-input {
    width: 95%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    background-color: var(--input-background-color);
    color: var(--text-color);
}

.coecho-gif-search-input:focus {
    border-color: var(--primary-color);
}

.coecho-gif-results {
    padding: 1rem;
    max-height: 550px;
    overflow-y: auto;
}

.coecho-gif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}

.coecho-gif-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.coecho-gif-item:hover {
    transform: scale(1.05);
}

.coecho-gif-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coecho-gif-loading {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
}

.coecho-gif-error {
    text-align: center;
    padding: 2rem;
    color: #d32f2f;
}

.coecho-gif-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.coecho-gif-button:hover {
    background-color: rgba(0, 186, 123, 0.1);
}

@media (max-width: 767px) {
    .coecho-gif-modal-content {
        width: 99%;
        max-height: 85vh;
        margin: 1rem;
    }
    
    .coecho-gif-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.25rem;
    }
    
    .coecho-gif-results {
        max-height: 300px;
        padding: 0.5rem;
    }
    
    .coecho-post-modal {
        max-width: 100%;
        left: 0;
        margin: 0;
    }
}

@media (min-width: 768px) {
    .coecho-app {
        display: flex;
        margin-left: 0;
        margin-right: 0;
    }
    
    .coecho-desktop-sidebar {
        display: flex;
        flex-direction: column;
    }
    
    .coecho-right-sidebar {
        display: block;
    }
    
    .coecho-nav {
        display: none;
    }
    
    .coecho-comments-modal,
    .coecho-followers-modal {
        max-width: 600px;
        margin: 0 auto;
        left: 38%;
        transform: translate(-50%, 100%);
    }
    
    .coecho-comments-modal.active,
    .coecho-followers-modal.active {
        transform: translate(-50%, 0);
    }
    
    .coecho-share-modal {
        max-width: 600px;
        margin: 0 auto;
        left: 38%;
        transform: translate(-50%, 100%);
    }
    
    .coecho-share-modal.active {
        transform: translate(-50%, 0);
    }
    
    .coecho-report-modal {
        max-width: 600px;
        margin: 0 auto;
        left: 38%;
        transform: translate(-50%, 100%);
    }
    
    .coecho-report-modal.active {
        transform: translate(-50%, 0);
    }
    
    .coecho-edit-profile-modal {
        margin-left: 250px;
        max-width: 600px;
        left: 50%;
        transform: translateX(100%);
    }
    
    .coecho-edit-profile-modal.active {
        transform: translateX(-50%);
        left: 50%;
    }
    
    .coecho-post-modal {
        max-width: 600px;
        left: -7%;
        margin: 0 auto;
    }
    
    .coecho-comment-reply-btn {
        background: none;
        border: none;
        color: var(--secondary-color);
        font-size: 0.75rem;
        cursor: pointer;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
    }
    
    .coecho-comment-reply-btn:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    .coecho-comment-indent {
        margin-left: 2rem;
        border-left: 2px solid var(--border-color);
        padding-left: 1rem;
    }
    
    .coecho-comment-time {
        font-size: 0.7rem;
        color: var(--secondary-color);
        margin-left: 0.5rem;
    }
    
    .coecho-forgot-password-link {
        color: var(--primary-color);
        text-decoration: none;
        font-size: 0.9rem;
        margin-top: 0.5rem;
        display: inline-block;
    }
    
    .coecho-forgot-password-link:hover {
        text-decoration: underline;
    }
    
    .coecho-error-message {
        color: #d32f2f;
        font-size: 0.9rem;
        margin-top: 0.5rem;
        padding: 0.5rem;
        background-color: var(--error-background-color);
        border-radius: 4px;
        border: 1px solid var(--error-border-color);
    }
    
    .coecho-success-message {
        color: #2e7d32;
        font-size: 0.9rem;
        margin-top: 0.5rem;
        padding: 0.5rem;
        background-color: var(--success-background-color);
        border-radius: 4px;
        border: 1px solid var(--success-border-color);
    }
}

.coecho-nav-item,
.coecho-sidebar-item {
    position: relative;
}

.coecho-unread-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #ff4444;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--background-color);
    z-index: 10;
}

@media (min-width: 768px) {
    .coecho-unread-indicator {
        top: 4px;
        right: 4px;
    }
}

.coecho-messages-tab {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.coecho-conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.coecho-conversation-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color .2s ease;
    position: relative;
}

.coecho-conversation-item:hover {
    background-color: rgba(0, 186, 123, .05);
}

.coecho-conversation-item.unread {
    background-color: rgba(0, 186, 123, .1);
}

.coecho-conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: .75rem;
    object-fit: cover;
    flex-shrink: 0;
}

.coecho-conversation-info {
    flex: 1;
    min-width: 0;
}

.coecho-conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .25rem;
}

.coecho-conversation-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.coecho-conversation-time {
    font-size: .75rem;
    color: var(--secondary-color);
}

.coecho-conversation-preview {
    font-size: .875rem;
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.coecho-conversation-preview.unread {
    color: var(--text-color);
    font-weight: 500;
}

.coecho-message-type-icon {
    width: 16px;
    height: 16px;
    margin-right: .25rem;
    flex-shrink: 0;
}

.coecho-unread-badge {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.coecho-message-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--modal-background-color);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
}

.coecho-message-modal.active {
    transform: translateX(0);
}

.coecho-message-modal-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--modal-background-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.coecho-message-modal-back {
    background: 0 0;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    padding: .5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coecho-message-modal-back:hover {
    background-color: rgba(0, 0, 0, .05);
}

.coecho-message-modal-user {
    display: flex;
    align-items: center;
    flex: 1;
}

.coecho-message-modal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: .75rem;
    object-fit: cover;
}

.coecho-message-modal-user-info h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.coecho-message-modal-username {
    font-size: .875rem;
    color: var(--secondary-color);
    margin: 0;
}

.coecho-message-modal-actions {
    display: flex;
    gap: .5rem;
}

.coecho-message-modal-action {
    background: 0 0;
    border: none;
    cursor: pointer;
    padding: .5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.coecho-message-modal-action:hover {
    background-color: rgba(0, 0, 0, .05);
}

.coecho-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-height: 0;
}

.coecho-message-bubble {
    line-height: 1.4;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    margin-bottom: 2px;
}

.coecho-message-bubble.sent {
    background-color: var(--primary-color);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.coecho-message-bubble.received {
    background-color: #f0f0f0;
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.coecho-message-media {
    margin-top: .5rem;
    border-radius: 12px;
    overflow: hidden;
    max-width: 300px;
    cursor: pointer;
}

.coecho-message-media img,
.coecho-message-media video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 200px;
    object-fit: cover;
}

.coecho-message-time {
    font-size: .75rem;
    opacity: .7;
    margin-top: .25rem;
    text-align: right;
}

.coecho-message-bubble.received .coecho-message-time {
    text-align: left;
}

.coecho-message-input-container {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--modal-background-color);
    display: flex;
    align-items: flex-end;
    gap: .75rem;
}
@media (max-width: 767px) {
  .coecho-message-input-container {
    padding: 0.5rem 0.5rem 4rem 0.5rem;
  }
}

.coecho-message-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: .75rem 1rem;
    font-size: 1rem;
    resize: none;
    min-height: 20px;
    max-height: 120px;
    line-height: 1.4;
    font-family: inherit;
    background-color: var(--input-background-color);
    color: var(--text-color);
}

.coecho-message-input:focus {
    outline: 0;
    border-color: var(--primary-color);
}

.coecho-message-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.coecho-message-action {
    background: 0 0;
    border: none;
    cursor: pointer;
    padding: .75rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: all .2s ease;
}

.coecho-message-action:hover {
    background-color: rgba(0, 186, 123, .1);
    color: var(--primary-color);
}

.coecho-message-send {
    background-color: var(--primary-color);
    color: #fff;
}

.coecho-message-send:hover {
    background-color: #009a68;
}

.coecho-message-send:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
}

.coecho-media-upload-preview {
    margin: .5rem 0;
    position: relative;
    max-width: 200px;
}

.coecho-media-upload-preview img,
.coecho-media-upload-preview video {
    width: 100%;
    border-radius: 8px;
    max-height: 150px;
    object-fit: cover;
}

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

.coecho-messaging-advertisement {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    font-size: .875rem;
    color: var(--secondary-color);
    position: relative;
}

.coecho-messaging-advertisement::before {
    content: 'Advertisement';
    display: block;
    font-size: .75rem;
    margin-bottom: .5rem;
    opacity: .6;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.coecho-notifications-tab {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coecho-notifications-list {
    flex: 1;
    overflow-y: auto;
}

.coecho-notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color .2s ease;
    position: relative;
}

.coecho-notification-item:hover {
    background-color: rgba(0, 186, 123, .05);
}

.coecho-notification-item.unread {
    background-color: rgba(0, 186, 123, .1);
}

.coecho-notification-type-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--background-color);
}

.coecho-notification-type-icon svg {
    width: 12px;
    height: 12px;
    color: #fff;
}

.coecho-notification-content {
    flex: 1;
}

.coecho-notification-title {
    font-weight: 600;
    margin-bottom: .25rem;
    color: var(--text-color);
}

.coecho-notification-message {
    font-size: .875rem;
    color: var(--secondary-color);
    line-height: 1.4;
    margin-bottom: .25rem;
}

.coecho-notification-time {
    font-size: .75rem;
    color: var(--secondary-color);
}

.coecho-bookmarks-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.coecho-bookmarks-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
}

.coecho-bookmarks-header p {
    margin: 0;
    color: var(--secondary-color);
}

@media (min-width: 768px) {
    .coecho-message-modal {
        margin-right: -23% !important;
        max-width: 400px;
        margin: 0 auto;
        left: 70%;
        transform: translateX(50%);
        height: 80vh;
        top: 10vh;
        border-radius: 12px;
        box-shadow: 0 10px 40px var(--box-shadow-color);
    }
    
    .coecho-overlay.active {
        opacity: 0;
        pointer-events: all;
    }
    
    .coecho-message-modal.active {
        transform: translateX(-85%);
    }
    
    .coecho-message-modal-header {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
}

.coecho-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: var(--secondary-color);
}

.coecho-empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: .5;
}

.coecho-empty-state h3 {
    margin-bottom: .5rem;
    color: var(--text-color-light);
}

.coecho-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--secondary-color);
}

.coecho-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 186, 123, .3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: .5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fix for Theme Override on Notification Avatars */
.coecho-notification-avatar {
    width: 48px;
    height: 48px;
    margin-right: .75rem;
    flex-shrink: 0;
    position: relative;
}

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

/* --- Styles for Post View Modal --- */

.coecho-post-view-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--modal-background-color);
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    box-shadow: 0 -2px 10px var(--box-shadow-color);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.coecho-post-view-modal.active {
    transform: translateY(0);
}

.coecho-post-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.coecho-post-view-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.coecho-post-view-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.coecho-post-view-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
@media (max-width: 767px) {
  .coecho-post-view-content {
    margin-bottom: 50px;
  }
}

/* Desktop styles for single post modal */
@media (min-width: 768px) {
    .coecho-post-view-modal {
        max-width: 600px;
        margin: 0 auto;
        left: 0;
        right: 6%;
        transform: translate(0, 100%);
        height: auto;
        border-top-left-radius: 12px !important;
        border-top-right-radius: 12px !important;
    }

    .coecho-post-view-modal.active {
        transform: translate(0, 0);
    }
}

.coecho-notification-user-card {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-background-color);
    border-radius: 8px;
    margin: 0.5rem 0.2rem;
}

.coecho-notification-user-card.unread {
    background-color: var(--success-background-color);
}

/* Header with the notification message */
.coecho-notification-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.coecho-notification-card-header .coecho-notification-type-icon {
    position: static;
    border: none;
    background: none;
    width: 18px;
    height: 18px;
}

.coecho-notification-card-header .coecho-notification-type-icon svg {
    color: var(--secondary-color);
}

/* Flex container for the main content (body + action buttons) */
.coecho-notification-card-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.coecho-notification-card-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.coecho-notification-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.coecho-notification-card-info {
    flex: 1;
    min-width: 0;
}

.coecho-notification-card-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.1rem;
}

.coecho-notification-card-username {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.coecho-notification-card-bio {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Container for the buttons on the right */
.coecho-notification-card-actions {
    flex-shrink: 0;
}

.coecho-notification-follow-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.coecho-notification-follow-btn.following {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    cursor: default;
}

.coecho-notification-be-me-btn {
    font-weight: 600;
    border-radius: 20px;
    padding: 8px 14px;
    border: 0;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    font-size: 0.875rem;
}

/* --- END: Styles for Rich Notification Cards --- */
a {
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: normal;
}

/* --- Poll Creator Styles --- */
.coecho-poll-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}

.coecho-poll-creator {
    display: none;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

.coecho-poll-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.coecho-poll-back-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
    color: var(--secondary-color);
}

.coecho-poll-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.coecho-poll-question,
.coecho-poll-option {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
	margin-top: -15px;
    box-sizing: border-box; 
}

.coecho-add-poll-option {
    background: none;
    border: 1px dashed var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    width: 100%;
}

.coecho-poll-duration {
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.coecho-poll-duration h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.coecho-poll-duration-inputs {
    display: flex;
    gap: 1rem;
}

.coecho-poll-duration-inputs label {
    font-size: 0.875rem;
}

.coecho-poll-duration-inputs input {
    width: 50px;
    padding: 0.25rem;
    border: 1px solid var(--border-color-strong);
    border-radius: 4px;
}

/* --- Poll Display Styles --- */
.coecho-poll-container {
    margin-top: 1rem;
}

.coecho-poll-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.coecho-poll-option-button {
    border: none;
    width: 100%;
    background-color: var(--background-color);
    border-left: 5px solid var(--secondary-color);
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.coecho-poll-option-button:hover {
    background-color: var(--subtle-hover-background);
}

.coecho-poll-result-bar {
    width: 100%;
    background-color: var(--card-background-color);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ccc;
}

.coecho-poll-result-bar.voted .coecho-poll-result-text span:first-child {
    font-weight: 500;
}

.coecho-poll-result-fill {
    background-color: var(--primary-color);
    opacity: 0.3;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50px;
}

.coecho-poll-result-text {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem;
    position: relative;
    z-index: 1;
    color: var(--text-color);
    font-weight: 500;
}

button.coecho-poll-button {
    border: none;
    background: none;
    cursor: pointer;
}

.coecho-poll-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 1rem;
}
/* --- End Poll Creator Styles --- */

/* --- START: Styles for Blurred Video Background --- */
.coecho-reel-item {
    overflow: hidden;
}

.coecho-reel-video-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    filter: blur(25px);
    z-index: 1;
    opacity: 0.7;
}

.coecho-reel-video {
    position: relative;
    z-index: 2;
	border-radius: 16px;
}

.coecho-reel-overlay {
    z-index: 3;
}

.coecho-reel-actions-vertical {
    z-index: 4;
}

/* --- Reels Feature Styles --- */

#reels-tab.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.coecho-reels-feed {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

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

.coecho-reel-video {
&nbsp; &nbsp; width: 100%;
&nbsp; &nbsp; height: 100%;
&nbsp; &nbsp; object-fit: contain;
&nbsp; &nbsp; cursor: pointer;
}

.coecho-reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%);
    pointer-events: none;
}

#reels-tab.active .coecho-reels-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
    pointer-events: all;
}

.coecho-reels-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.coecho-reels-close-btn {
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    pointer-events: all;
}

.coecho-reel-mute-btn {
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    pointer-events: all;
}

.coecho-reel-mute-btn svg {
    width: 20px;
    height: 20px;
}

.coecho-reel-actions-vertical {
    position: absolute;
    bottom: 1rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    z-index: 10;
    pointer-events: all;
}

.coecho-reel-action {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.coecho-reel-action svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.7));
}

.coecho-reel-action .coecho-action-count {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.coecho-views-display {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.coecho-views-display svg {
    width: 32px;
    height: 32px;
}

.coecho-reel-info {
    position: relative;
    z-index: 10;
    max-width: calc(100% - 70px);
    pointer-events: all;
}

.coecho-reel-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.coecho-reel-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.coecho-reel-author-details {
    display: flex;
    flex-direction: column;
}

.coecho-reel-author-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.coecho-reel-author-username {
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.875rem;
}

.coecho-reel-caption {
    font-size: 0.875rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.coecho-reel-caption p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coecho-reel-caption.expanded p {
    -webkit-line-clamp: unset;
}

.coecho-reel-caption .read-more {
    font-weight: 600;
    cursor: pointer;
    opacity: 0.8;
}

.coecho-reel-ad-space {
    margin-top: 0.75rem;
    min-height: 90px;
	height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.coecho-reels-nav {
    display: none;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
    pointer-events: none;
}

.coecho-reels-nav-btn {
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: background-color 0.2s ease;
}

.coecho-reels-nav-btn:hover {
    background: rgba(0,0,0,0.5);
}

.coecho-reels-nav-btn svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .coecho-reels-nav {
        display: flex;
    }
    #reels-tab.active .coecho-reels-feed {
        display: block;
        padding-top: 5vh;
        padding-bottom: 5vh;
    }
    #reels-tab.active .coecho-reel-item {
        width: auto;
        max-width: 500px;
        height: 100vh;
        margin: 0 auto;
        border-radius: 12px;
        overflow: hidden;
    }
}

.coecho-reel-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    color: var(--primary-color);
}

/* --- Dark Mode Toggle Switch Styles --- */
.coecho-toggle-switch-wrapper {
    display: flex;
    align-items: center;
}
.coecho-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.coecho-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.coecho-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}
.coecho-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .coecho-toggle-slider {
    background-color: var(--primary-color);
}
input:checked + .coecho-toggle-slider:before {
    transform: translateX(22px);
}
/* --- End Dark Mode Toggle Styles --- */
/* --- START: Reels Carousel Styles --- */
.coecho-reels-carousel-wrapper {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

.coecho-reels-carousel-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 1rem 0.75rem 1rem;
    color: var(--text-color-light);
}

.coecho-reels-carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 7px;
    padding: 0 1rem;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.coecho-reels-carousel-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.coecho-reel-carousel-item {
    flex: 0 0 45%;
    max-width: 180px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    scroll-snap-align: start;
    background-color: var(--card-background-color);
}

.coecho-reel-carousel-item:hover .coecho-reel-carousel-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}

.coecho-reel-carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coecho-reel-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    transition: background 0.2s ease-in-out;
    pointer-events: none;
}

.coecho-reel-carousel-overlay svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.coecho-reel-carousel-author {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
    margin-left: 6px;
}
/* --- END: Reels Carousel Styles --- */

/* --- Co-Echo Stories Notification Styles --- */

/* For live stream notifications */
.coecho-notification-item[data-type="live_started"] .coecho-notification-type-icon {
    color: #e74c3c; /* Red color for live */
    animation: pulse-live-icon 1.8s infinite ease-in-out;
}

/* For space created notifications */
.coecho-notification-item[data-type="space_created"] .coecho-notification-type-icon {
    color: #8B5CF6; /* Purple color for spaces */
}

@keyframes pulse-live-icon {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- START: Report User Modal Styles --- */
.coecho-report-user-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--modal-background-color);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 10px var(--box-shadow-color);
    z-index: 1000;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.coecho-report-user-modal.active {
    transform: translateY(0);
}

.coecho-report-user-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.coecho-report-user-reason-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    background-color: var(--input-background-color);
    color: var(--text-color);
}

.coecho-report-user-reason-input {
    width: 96%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    min-height: 100px;
    resize: vertical;
    background-color: var(--input-background-color);
    color: var(--text-color);
}

.coecho-report-user-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

@media (min-width: 768px) {
    .coecho-report-user-modal {
        max-width: 600px;
        margin: 0 auto;
        left: 38%;
        transform: translate(-50%, 100%);
    }

    .coecho-report-user-modal.active {
        transform: translate(-50%, 0);
    }
}
/* --- END: Report User Modal Styles --- */
/* --- START: Post Modal Privacy Controls --- */
.coecho-privacy-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
}

.coecho-privacy-controls span {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-right: 0.25rem;
}

.coecho-privacy-icon {
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coecho-privacy-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--secondary-color);
    transition: fill 0.2s ease-in-out;
}

.coecho-privacy-icon:hover svg {
    fill: #777;
}

.coecho-privacy-icon.active svg {
    fill: var(--primary-color);
}
/* --- END: Post Modal Privacy Controls --- */
/* --- Repost Feature Styles --- */

/* Adjusts the share modal to accommodate the new repost button */
.coecho-share-url {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Adds space between elements */
}

.coecho-share-input {
    flex-grow: 1; /* Allows the input to take up available space */
}

/* Style for the new Repost button in the share modal */
.coecho-repost-button {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.2rem;
    border: 1px solid var(--border-color-strong);
    background-color: var(--card-background-color);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.coecho-repost-button:hover {
    background-color: var(--hover-background-color);
}

.coecho-repost-button .coecho-repost-icon {
    width: 20px;
    height: 20px;
}

/* "Active" state for the repost button when the post has been reposted */
.coecho-repost-button.active {
    background-color: #d1f7e8; /* A light green to indicate success */
    color: #0d6d4f;
    border-color: #0d6d4f;
}

/* The indicator banner shown above a reposted post on a profile */
.coecho-repost-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.coecho-repost-indicator .coecho-repost-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
