:root {
    --brand-color: #FA8072; 
    --bg-color: #f8f9fa;
    --sidebar-bg: #ffffff;
    --text-primary: #0f0f0f;
    --text-secondary: #606060;
    --nav-icon-color: #9e9e9e; 
    --badge-bg: var(--brand-color);
    --badge-text: #ffffff;
    --border-color: #e5e5e5;
    --modal-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-color: #0f0f0f;
        --sidebar-bg: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #aaaaaa;
        --nav-icon-color: #888888;
        --border-color: #272727;
        --modal-bg: #212121;
    }
}

:root[data-theme="dark"] {
    --bg-color: #0f0f0f;
    --sidebar-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --nav-icon-color: #888888;
    --border-color: #272727;
    --modal-bg: #212121;
}

:root[data-theme="light"] {
    --bg-color: #f8f9fa;
    --sidebar-bg: #ffffff;
    --text-primary: #0f0f0f;
    --text-secondary: #606060;
    --nav-icon-color: #9e9e9e; 
    --border-color: #e5e5e5;
    --modal-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

input, textarea, [contenteditable="true"], .post-text-content, .comment-text, .post-text-content *, .comment-text *, #profileNameLarge, #desktopProfileHeaderName, #profileDynamicTitle, #profileDescription, #profileDescription *, .post-author-name, .comment-author, #settingsName, .dropdown-name, .user-list-name, .selectable-text, .selectable-text * {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
    cursor: text;
}
.post-text-content a, .comment-text a, .selectable-text a, 
.post-text-content .mention-link, .comment-text .mention-link {
    cursor: pointer !important;
}

html, body {
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
}

.hidden {
    display: none !important;
}

.ripple-element {
    position: relative;
    overflow: hidden;
}

.ripple-span {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .ripple-span { background-color: rgba(0, 0, 0, 0.1); }
    :root:not([data-theme="dark"]) .upload-btn .ripple-span, 
    :root:not([data-theme="dark"]) .publish-btn .ripple-span,
    :root:not([data-theme="dark"]) .delete-btn .ripple-span { background-color: rgba(0, 0, 0, 0.2) !important; }
    
    :root:not([data-theme="dark"]) .save-profile-btn .ripple-span, 
    :root:not([data-theme="dark"]) .profile-action-btn .ripple-span, 
    :root:not([data-theme="dark"]) .modal-btn-red .ripple-span { background-color: rgba(255, 255, 255, 0.4); }
}

:root[data-theme="light"] .ripple-span { background-color: rgba(0, 0, 0, 0.1); }
:root[data-theme="light"] .upload-btn .ripple-span, 
:root[data-theme="light"] .publish-btn .ripple-span,
:root[data-theme="light"] .delete-btn .ripple-span { background-color: rgba(0, 0, 0, 0.2) !important; }
:root[data-theme="light"] .save-profile-btn .ripple-span, 
:root[data-theme="light"] .profile-action-btn .ripple-span, 
:root[data-theme="light"] .modal-btn-red .ripple-span { background-color: rgba(255, 255, 255, 0.4); }

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

#btnFollow .ripple-span, #btnNotifyPosts .ripple-span {
    background-color: rgba(255, 255, 255, 0.5) !important;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) #btnNotifyPosts .ripple-span {
        background-color: rgba(0, 0, 0, 0.15) !important;
    }
}

:root[data-theme="light"] #btnNotifyPosts .ripple-span {
    background-color: rgba(0, 0, 0, 0.15) !important;
}

#btnNotifyPosts .material-symbols-outlined {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.app-layout {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.main-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}

.material-symbols-outlined, h1, h2, p, .badge, .nav-text, .btn-text {
    pointer-events: none !important;
}

.notification-icon, .nav-item, .sidebar-nav-item, .upload-btn, button, .remove-image-btn, label, .lightbox-close, .delete-btn, .edit-post-btn, .like-btn, .edit-profile-btn, .profile-tab, .post-avatar-link, .user-list-card, .profile-stat-btn, .settings-item, .theme-btn, .close-modal, .comment-toggle-btn, .comment-reply-btn, .comment-more, .send-comment-btn, .toggle-row, .report-post-btn, .mod-delete-user-btn, .mention-link {
    cursor: pointer;
    pointer-events: auto !important;
}

.inactive {
    opacity: 0.5;
    pointer-events: none !important;
    cursor: default;
}

.page-view {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

.page-view.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.brand-container {
    display: flex;
    align-items: center;
}

.brand-icon {
    font-size: 28px;
    color: var(--brand-color);
    margin-right: 8px;
}

h1, h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.header {
    background-color: var(--sidebar-bg);
    padding: max(12px, env(safe-area-inset-top)) 20px 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    z-index: 100;
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    z-index: 101;
    position: relative;
}

.transparent-header {
    background: transparent !important;
    border-bottom: none !important;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.create-header {
    justify-content: flex-start;
    padding-left: 12px;
    gap: 12px;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: -8px;
}

.notification-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}

.profile-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    background-color: #2196f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.2s;
    position: relative;
    cursor: pointer;
}

.yt-embed {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    margin: 12px 0;
    background-color: #000;
    display: block;
    border: none;
}

.profile-avatar:active {
    opacity: 0.7;
    transform: scale(0.95);
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    background-color: #2196f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--sidebar-bg);
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-avatar-visual {
    cursor: default !important;
    pointer-events: none !important;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 120px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 2;
}

.feed-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background-color: var(--sidebar-bg);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    animation: slideDown 0.3s ease;
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.post-author-info {
    margin-left: 12px;
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-size: 15px;
    font-weight: 500;
}

.post-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.post-text-content {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-image-content {
    width: 100%;
    border-radius: 12px;
    height: auto;
    margin-bottom: 12px;
    cursor: pointer;
    pointer-events: auto !important;
    transition: transform 0.2s;
}

.post-image-content:active {
    transform: scale(0.98);
}

.post-actions {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.action-btn .material-symbols-outlined {
    font-size: 20px;
    margin-right: 6px;
    transition: transform 0.2s;
}

.action-btn.like-btn:active .material-symbols-outlined {
    transform: scale(0.8);
}

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

.action-btn.like-btn.liked .material-symbols-outlined {
    font-variation-settings: 'FILL 1';
}

.post-comments-section {
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.2s ease;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    padding-right: 4px;
    padding-bottom: 8px;
}

.comment-item-container {
    margin-bottom: 16px;
}

.comment-item-container:last-child {
    margin-bottom: 0;
}

.comment-item {
    display: flex;
    gap: 10px;
    position: relative;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #2196f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    font-size: 14px;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.comment-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-wrap;
}

.comment-actions {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

.comment-reply-btn {
    cursor: pointer;
    transition: color 0.2s;
}

.comment-reply-btn:hover, .comment-reply-btn:active {
    color: var(--brand-color);
}

.comment-more {
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 4px;
}

.comment-replies-wrapper {
    margin-top: 12px;
    border-left: 1px solid var(--border-color);
    padding-left: 10px;
}

.comment-input-container {
    display: flex;
    align-items: flex-end;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 6px;
    margin-top: 4px;
    transition: border-color 0.3s;
    gap: 6px;
}

.comment-input-container:focus-within {
    border-color: var(--brand-color);
}

.comment-input {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 8px 0 8px 10px;
    box-sizing: border-box;
    resize: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: inherit;
    line-height: 20px;
    height: 36px;
    max-height: 120px;
}

.send-comment-btn, .save-edit-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    margin-bottom: 2px;
}

.send-comment-btn:active, .save-edit-btn:active {
    background: rgba(255, 117, 78, 0.1);
}

.create-content {
    align-items: center;
}

.create-post-box {
    width: 100%;
    max-width: 600px;
    background-color: var(--sidebar-bg);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, background-color 0.2s;
}

#view-create .create-post-box.drag-over {
    border: 2px dashed var(--brand-color);
    background-color: rgba(250, 128, 114, 0.05);
}

.create-post-box textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 18px;
    resize: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: inherit;
    margin-bottom: 4px;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #aaaaaa;
    margin-bottom: 16px;
    padding-right: 4px;
    pointer-events: none;
}

.image-preview-container {
    position: relative;
    margin-bottom: 20px;
}

.image-preview-container img {
    width: 100%;
    border-radius: 12px;
    max-height: 350px;
    object-fit: cover;
    pointer-events: none;
}

.remove-image-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-post-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    gap: 10px;
    flex-wrap: nowrap;
}

.upload-btn {
    display: flex;
    align-items: center;
    color: var(--brand-color);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    background-color: rgba(255, 117, 78, 0.1);
    border-radius: 12px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.upload-btn:active {
    opacity: 0.7;
}

.upload-btn .material-symbols-outlined {
    margin-right: 6px;
    font-size: 20px;
}

.publish-btn {
    background-color: var(--brand-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.publish-btn:active {
    opacity: 0.8;
}

.search-wrapper, .connections-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-input-container {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 24px;
    transition: border-color 0.3s;
}

.search-input-container:focus-within {
    border-color: var(--brand-color);
}

.search-input-container .search-icon {
    color: var(--text-secondary);
    margin-right: 12px;
    font-size: 24px;
}

.search-input-container input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
}

.search-input-container .search-clear {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    border-radius: 50%;
}

.user-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.user-list-card {
    display: flex;
    align-items: center;
    background-color: var(--sidebar-bg);
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
}

.user-list-card .profile-avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-right: 16px;
    pointer-events: none !important;
}

.user-list-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    pointer-events: none !important;
}

.empty-state-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 20px;
    font-size: 15px;
}

.tab-badge {
    background-color: var(--brand-color);
    color: white;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 6px;
    font-weight: bold;
}

.notification-card {
    background-color: #242424;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.notification-card:active {
    background-color: #2a2a2a;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .notification-card { background-color: var(--sidebar-bg); }
    :root:not([data-theme="dark"]) .notif-user-box { border-color: var(--border-color) !important; }
    :root:not([data-theme="dark"]) .notif-user-box .user-list-name { color: var(--text-primary) !important; }
}

:root[data-theme="light"] .notification-card { background-color: var(--sidebar-bg); }
:root[data-theme="light"] .notif-user-box { border-color: var(--border-color) !important; }
:root[data-theme="light"] .notif-user-box .user-list-name { color: var(--text-primary) !important; }

.notif-left-icon {
    color: var(--text-primary);
    padding-top: 10px;
}

.notif-left-icon .material-symbols-outlined {
    font-size: 32px;
    font-weight: 300;
}

.notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.notif-user-box {
    display: flex;
    align-items: center;
    border: 1px solid #444;
    border-radius: 16px;
    padding: 12px;
    gap: 12px;
}

.notif-message-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-message {
    color: var(--brand-color);
    font-size: 14px;
    font-weight: bold;
    flex: 1;
    margin-right: 8px;
}

.notif-date {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.profile-bg-container {
    position: relative;
}

.profile-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s;
    pointer-events: auto !important;
    cursor: pointer;
}

.profile-background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 20%, var(--bg-color) 45%, var(--bg-color) 100%);
}

.profile-content {
    padding-top: 10px;
}

.profile-info-section {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.profile-name-large {
    font-size: 24px;
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-box {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 12px;
    flex: 1;
    max-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    border: 1px solid #333;
    transition: opacity 0.2s;
}

.stat-box:active {
    opacity: 0.8;
}

.stat-title {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 6px;
    pointer-events: none;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
}

.profile-description {
    background-color: var(--sidebar-bg);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.profile-action-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

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

.profile-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-tab.active {
    color: var(--brand-color);
    border-bottom-color: var(--brand-color);
}

.edit-content {
    align-items: center;
}

.edit-profile-box {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.edit-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.edit-input {
    background: transparent;
    border: none;
    outline: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 20px;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    width: 14ch;
    max-width: 100%;
}

.edit-photo-buttons {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

.edit-photo-btn {
    background-color: #2a2a2a;
    color: var(--brand-color);
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    flex: 1;
    max-width: 160px;
    border: 1px solid #333;
}

.edit-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-field label {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 4px;
}

.edit-field textarea {
    background-color: rgba(36, 36, 36, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    padding: 12px;
    resize: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: inherit;
}

.save-profile-btn {
    background: linear-gradient(90deg, #FF6B4A, #E91E63) !important;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 24px;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}

.settings-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.settings-name {
    font-size: 22px;
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 8px;
}

.settings-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-section-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-secondary);
    padding-left: 16px;
}

.settings-card {
    background-color: var(--sidebar-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    font-size: 16px;
    font-weight: 500;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:active:not(.inactive) {
    background-color: var(--border-color);
}

.settings-item .material-symbols-outlined {
    color: var(--text-secondary);
    font-size: 24px;
    pointer-events: none;
}

.settings-item span {
    pointer-events: none;
}

.theme-toggle-container {
    display: flex;
    background-color: var(--sidebar-bg);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--border-color);
    gap: 4px;
}

.theme-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: 0.3s;
}

.theme-btn.active {
    background-color: var(--brand-color);
    color: white;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

#row-notif-global {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.settings-main-toggle {
    font-size: 18px;
    font-weight: 900;
}

.sub-toggles-container {
    padding-left: 16px;
}

.toggle-switch {
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background-color: var(--brand-color);
    position: relative;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 20px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: left 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch.off {
    background-color: #555555;
}

html[data-theme="light"] .toggle-switch.off {
    background-color: #cccccc;
}

.toggle-switch.off::after {
    left: 2px;
}

.disabled-group {
    opacity: 0.4;
    pointer-events: none;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.hidden {
    display: none !important;
}

.custom-modal-overlay.closing {
    opacity: 0 !important;
    pointer-events: none !important;
}

.custom-modal-content {
    background-color: var(--modal-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.custom-modal-overlay.closing .custom-modal-content {
    transform: scale(0.9) !important;
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.modal-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--text-secondary);
    padding: 8px 0;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 24px;
    outline: none;
    cursor: pointer;
}

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

.modal-btn-red {
    background: linear-gradient(90deg, #FF6B4A, #E91E63) !important;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

.modal-btn-outline {
    background: transparent !important;
    color: var(--brand-color) !important;
    border: 1px solid var(--brand-color) !important;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.modal-btn-text {
    background: transparent;
    border: none;
    font-weight: bold;
    font-size: 14px;
    padding: 8px;
    text-transform: uppercase;
}

.modal-btn-outline .ripple-span, 
.modal-btn-text .ripple-span, 
.profile-action-btn .ripple-span { 
    background-color: rgba(250, 128, 114, 0.3) !important; 
}

#btnConfirmClearCache { color: var(--brand-color) !important; }

.app-mobile-nav {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    margin: 0 auto;
    max-width: 450px;
    background-color: var(--sidebar-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.18);
    z-index: 99999;
    transition: opacity 0.3s, transform 0.3s;
}

.app-mobile-nav.nav-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(50px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .app-mobile-nav {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }
}

:root[data-theme="dark"] .app-mobile-nav {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-item {
    color: var(--nav-icon-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20%;
    padding: 8px;
    border-radius: 50%;
}

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

.nav-item .nav-text {
    display: none; 
}

.nav-item .material-symbols-outlined {
    font-size: 28px;
    font-weight: 300;
}

.nav-item.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

.profile-dropdown {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--text-primary);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(0, 0, 0, 0.18);
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .profile-dropdown {
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }
}

:root[data-theme="dark"] .profile-dropdown {
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.dropdown-header {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.dropdown-name {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 16px;
    pointer-events: auto !important;
}

.dropdown-item:hover, .dropdown-item:active {
    background-color: var(--border-color);
}

.dropdown-item .material-symbols-outlined {
    font-size: 24px;
    color: var(--nav-icon-color);
}

.dropdown-item .item-text {
    font-size: 15px;
    flex: 1;
}

.ms-auto {
    margin-left: auto;
}

.active-lang {
    color: var(--brand-color);
}

.active-lang .item-text {
    font-weight: 500;
}

.active-lang .material-symbols-outlined {
    color: var(--brand-color) !important;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto !important;
    cursor: pointer;
}

.lightbox-img {
    max-width: 95%;
    max-height: 90%;
    border-radius: 8px;
    object-fit: contain;
    cursor: default;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    right: 20px;
    color: #ffffff;
    font-size: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 4px;
    transition: background 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.4);
}

.auth-terms-text {
    position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom));
    font-size: 13px;
    color: var(--text-secondary);
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.auth-terms-link {
    color: var(--brand-color);
    text-decoration: underline;
    cursor: pointer;
}

.skeleton-media,
.skeleton-el,
.skeleton-box,
.skeleton-avatar,
.skeleton-name,
.skeleton-desc,
.skeleton-tab {
    position: relative;
    overflow: hidden;
    background-color: var(--sidebar-bg);
    background-image: none !important;
}

.skeleton-el::after,
.skeleton-box::after,
.skeleton-avatar::after,
.skeleton-name::after,
.skeleton-desc::after,
.skeleton-tab::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmer-gpu 1.2s infinite;
    will-change: transform;
    pointer-events: none;
}

@keyframes shimmer-gpu {
    100% {
        transform: translateX(100%);
    }
}
.feed-tabs-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; 
    gap: 20px !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: -8px auto 12px auto !important;
    padding: 0 !important;
}
@media (min-width: 900px) {
    .feed-tabs-wrapper {
        max-width: 800px !important; 
        margin-top: -24px !important; 
        margin-bottom: 16px !important; 
    }
}

.feed-tab {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary, #aaa);
    text-decoration: none;
    padding-bottom: 6px !important;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}
.feed-tab:hover {
    color: var(--text-primary, #ffffff);
}
.feed-tab.active {
    color: #FA8072;
}
.feed-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FA8072;
    border-radius: 2px;
}