* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-light: #05080d;
    --bg-nav: #0a0f17;
    --bg-secondary: #0e1520;
    --bg-content: #0c1118;
    --bg-tertiary: #1a1f26;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --text-muted: #8a8d91;
    --border-color: #242a33;
    --accent-color: #667eea;
    --accent-hover: #7c8ef5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --sidebar-width: 280px;
    --top-nav-height: 55px;
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #05080d;
    color: var(--text-primary);
    min-height: 100%;
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

body > *:not(.main-content):not(.main-content-footer) {
    flex-shrink: 0;
}

.main-content {
    flex: 0 0 auto;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
}


.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 91px;
    height: 100vh;
    background: var(--bg-light);
    border-right: 1px solid rgba(36, 42, 51, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: none;
    transition: width 0.15s ease;
    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    width: 0;
    display: none;
}

.sidebar.expanded {
    width: var(--sidebar-width);
}

.sidebar .menu-item {
    display: grid;
    grid-template-columns: 91px 189px;
    width: 280px;
    min-width: 280px;
    padding: 0;
    gap: 0;
}

.sidebar .menu-item .menu-icon {
    grid-column: 1;
    justify-self: center;
}

.sidebar .menu-item .menu-text {
    grid-column: 2;
    display: none;
    opacity: 0;
    max-width: none;
    padding: 0 8px 0 0;
    margin: 0;
    align-self: center;
}

.sidebar.expanded .menu-item .menu-text {
    display: block;
    opacity: 1;
}

.sidebar .toggle-sidebar-btn {
    display: grid;
    grid-template-columns: 91px 189px;
    width: 280px;
    min-width: 280px;
    padding: 0;
    gap: 0;
}

.sidebar .toggle-sidebar-btn .menu-icon {
    grid-column: 1;
    justify-self: center;
}

.sidebar .toggle-sidebar-btn .menu-text {
    grid-column: 2;
    display: none;
    opacity: 0;
    max-width: none;
    padding: 0 8px 0 0;
    margin: 0;
    align-self: center;
}

.sidebar.expanded .toggle-sidebar-btn .menu-text {
    display: block;
    opacity: 1;
}

.sidebar-header {
    display: grid;
    grid-template-columns: 91px 189px;
    width: 280px;
    min-width: 280px;
    align-items: center;
    background: var(--bg-light);
    height: 80px;
    min-height: 80px;
    box-sizing: border-box;
    padding: 0;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.sidebar-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
    display: grid;
    grid-template-columns: 91px 189px;
    width: 280px;
    min-width: 280px;
    align-items: center;
    gap: 0;
    height: 100%;
}

.sidebar-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 8px;
    overflow: hidden;
    grid-column: 1;
    justify-self: center;
}

.sidebar-logo-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.sidebar-logo-text {
    white-space: nowrap;
    font-weight: bold;
    font-size: 1.4rem;
    transition: none;
    grid-column: 2;
    padding: 0 8px 0 0;
    display: none;
    opacity: 0;
}

.sidebar.expanded .sidebar-logo-text {
    display: block;
    opacity: 1;
}

.sidebar-toggle {
    padding: 0;
    background: var(--bg-light);
    height: 45.4px;
    min-height: 45.4px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 91px 189px;
    width: 280px;
    min-width: 280px;
    align-items: center;
    margin-bottom: 4px;
}

.sidebar-menu {
    flex: 1;
    padding: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 280px;
    min-width: 280px;
}

.sidebar-footer {
    padding: 12px 0;
    width: 280px;
    min-width: 280px;
}

.admin-view {
    padding: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.admin-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.admin-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-row + .admin-row {
    margin-top: 12px;
}

.admin-row-stack {
    flex-direction: column;
    align-items: stretch;
}

.admin-label {
    min-width: 110px;
    color: var(--text-secondary);
}

.admin-input,
.admin-select {
    flex: 1;
    min-width: 240px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #05080d;
    color: var(--text-primary);
    font-family: inherit;
}

.admin-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
}

.admin-btn-secondary {
    background: transparent;
}

.admin-results {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-result-item {
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #05080d;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
}

.admin-role-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #05080d;
}

.admin-role-left {
    color: var(--text-primary);
}

.menu-item {
    display: grid;
    grid-template-columns: 91px 189px;
    width: 280px;
    min-width: 280px;
    align-items: center;
    gap: 0;
    padding: 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-left-color 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
    position: relative;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.menu-item:hover {
    background: none;
    color: var(--text-primary);
    border-left-color: var(--accent-color);
}

.menu-item.active {
    color: var(--text-primary);
    border-left-color: var(--accent-color);
    background: none;
    font-weight: 500;
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    flex-shrink: 0;
    background: #101318;
    border-radius: 8px;
    font-size: 1.5rem;
    transition: background 0.3s ease;
    border: none;
    grid-column: 1;
    justify-self: center;
}

.menu-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.menu-item:hover .menu-icon {
    background: color-mix(in srgb, var(--accent-color) 20%, #101318);
}

.menu-item.active .menu-icon {
    background: color-mix(in srgb, var(--accent-color) 20%, #101318);
}

.menu-item.active:hover .menu-icon {
    background: color-mix(in srgb, var(--accent-color) 30%, #101318);
}

.menu-text {
    grid-column: 2;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 8px 0 0;
    align-self: center;
    display: block;
    opacity: 1;
    max-width: none;
}

.toggle-sidebar-btn {
    display: grid;
    grid-template-columns: 91px 189px;
    width: 280px;
    min-width: 280px;
    align-items: center;
    gap: 0;
    padding: 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    background: none;
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.toggle-sidebar-btn:hover {
    background: none;
    color: var(--text-secondary);
    border-left-color: var(--accent-color);
}

.sidebar .toggle-sidebar-btn .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: #101318;
    border: none;
    border-radius: 8px;
    transition: background 0.3s ease;
    grid-column: 1;
    justify-self: center;
}

.sidebar .toggle-sidebar-btn .menu-text {
    grid-column: 2;
    padding: 0 8px 0 0;
    align-self: center;
}

.sidebar .toggle-sidebar-btn .menu-icon-inner {
    font-size: 0.95rem;
    color: #4a4d51;
    transition: color 0.2s ease, transform 0.2s ease;
    will-change: transform;
    transform: rotate(0deg);
    display: inline-block;
}

.sidebar.expanded .toggle-sidebar-btn .menu-icon-inner {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .sidebar .toggle-sidebar-btn .menu-icon-inner {
        transition: color 0.2s ease;
    }
    
    .sidebar.expanded .toggle-sidebar-btn .menu-icon-inner {
        transform: none;
    }
}

.toggle-sidebar-btn:hover .menu-icon {
    background: color-mix(in srgb, var(--accent-color) 20%, #101318);
}

.toggle-sidebar-btn:hover .menu-icon-inner {
    color: #6a6d71;
}

.footer-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-menu-item:not(:first-child) {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
}

.footer-menu-item i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.footer-menu-item:not(:first-child) i {
    font-size: 1.2rem;
}

.footer-menu-item:hover {
    background: none;
    border: none;
    box-shadow: none;
}

.footer-menu-item:hover i {
    color: var(--accent-color);
}

.main-content-banner {
    margin-left: 90px;
    background: #000000;
    color: white;
    padding: 0;
    text-align: left;
    box-shadow: var(--shadow-md);
    height: 180px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.banner-background-video,
.banner-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.banner-background-video::-webkit-media-controls-panel,
.banner-background-video::-webkit-media-controls-play-button,
.banner-background-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.banner-background-video::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.banner-background-video::-webkit-media-controls-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.banner-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.main-content-banner > .banner-top-bar {
    position: relative;
    z-index: 2;
}

.main-content-banner > .banner-content {
    position: relative;
    z-index: 1;
}

.banner-top-bar {
    height: 50px;
    min-height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 20px 0 20px;
    box-sizing: border-box;
}

.banner-search-wrapper {
    flex: 0 0 auto;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.banner-search-wrapper:focus-within {
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.banner-search-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.banner-search-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.banner-search {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.95rem;
    outline: none;
    padding: 0;
}

.banner-search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.banner-buttons {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.banner-btn {
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.banner-btn:hover {
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.banner-dropdown {
    position: relative;
    display: inline-block;
}

.banner-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding-left: 14px;
}

.banner-dropdown-btn i.fa-thumbtack,
.banner-dropdown-btn i.fa-user {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-right: 2px;
}

.banner-dropdown-btn .banner-search-separator {
    flex-shrink: 0;
}

.banner-btn-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding-left: 14px;
}

.banner-btn-with-icon i.fa-user {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-right: 2px;
}

.banner-btn-with-icon .banner-search-separator {
    flex-shrink: 0;
}

.banner-dropdown-menu {
    position: fixed;
    min-width: 150px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 999999;
    overflow: hidden;
    pointer-events: auto;
    isolation: isolate;
}

.banner-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.banner-dropdown-item,
a.banner-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
    text-decoration: none;
}

.banner-dropdown-item:hover {
    background: color-mix(in srgb, var(--accent-color) 20%, transparent);
}

.banner-dropdown-item.active {
    background: color-mix(in srgb, var(--accent-color) 30%, transparent);
    color: var(--accent-color);
    font-weight: 500;
}

.followed-pages-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    user-select: none;
    pointer-events: none;
}

.followed-pages-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.followed-pages-group:last-child {
    border-bottom: none;
}

.followed-pages-group-header {
    padding: 12px 16px 8px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.followed-pages-group-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.followed-pages-group-items {
    display: flex;
    flex-direction: column;
}

.followed-pages-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.followed-pages-item-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #555;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.followed-pages-item:hover {
    background: color-mix(in srgb, var(--accent-color) 20%, transparent);
    color: var(--accent-color);
}

#followedPagesDropdownMenu {
    max-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

#topNavFollowedPagesDropdownMenu {
    max-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    min-width: 200px;
}

.banner-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.banner-content *,
.banner-content img {
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.banner-icon {
    flex-shrink: 0;
}

.banner-icon img {
    width: 57.6px;
    height: 57.6px;
    object-fit: contain;
    display: block;
}

.banner-text {
    flex: 1;
}

.main-content-banner h1 {
    font-size: 2em;
    margin: 0;
    padding: 0;
    line-height: 1;
    color: white;
    font-weight: bold;
}

.main-content-banner p {
    font-size: 0.88em;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    opacity: 0.95;
}

.main-content-nav {
    margin-left: 90px;
    background: #080b12;
    border-bottom: 1px solid rgba(36, 42, 51, 0.3);
    border-top: none;
    padding: 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 99;
    height: 55px;
    min-height: 55px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.main-content {
    margin-left: 90px;
    padding: 12px max(24px, calc((100vw - 90px - 1500px) / 2)) 0;
    padding-bottom: 30px;
    background: #0a0f14;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}

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

.main-content-header-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 0;
    box-sizing: border-box;
    line-height: 1.5;
}

.breadcrumb-separator {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
}

.breadcrumb-separator i {
    font-size: 0.675rem;
}

.breadcrumb-back-icon {
    color: var(--text-muted);
    display: none !important;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-back-icon i {
    font-size: 0.675rem;
}

.breadcrumb-item {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item-link:hover {
    color: var(--text-primary);
}

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

.breadcrumb-back-icon {
    color: var(--text-muted);
    display: none !important;
    align-items: center;
}

.breadcrumb-back-icon i {
    font-size: 0.675rem;
}

.main-content-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.follow-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    line-height: 1.5;
}

.follow-button:hover {
    background: color-mix(in srgb, var(--accent-color) 20%, var(--bg-tertiary));
}

.follow-button.followed {
    background: color-mix(in srgb, var(--accent-color) 30%, var(--bg-tertiary));
    color: #ffffff;
}

.follow-button.followed:hover {
    background: color-mix(in srgb, var(--accent-color) 40%, var(--bg-tertiary));
}

.follow-button i {
    font-size: 0.85rem;
    color: #ffffff;
}

.copy-url-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: calc(0.9rem * 1.5 + 16px);
    height: calc(0.9rem * 1.5 + 16px);
    min-width: calc(0.9rem * 1.5 + 16px);
    min-height: calc(0.9rem * 1.5 + 16px);
    background: var(--bg-tertiary);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.copy-url-button i {
    font-size: 0.85rem;
    color: #ffffff;
}

.copy-url-button:hover {
    background: color-mix(in srgb, var(--accent-color) 20%, var(--bg-tertiary));
}

.copy-url-button i {
    font-size: 0.85rem;
    color: #ffffff;
}

.main-content-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    min-width: min-content;
    gap: 10px;
}

.main-content-nav li {
    margin: 0;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.main-content-nav .main-content-nav-item {
    display: flex;
    align-items: center;
    padding: 16px 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    height: 55px;
    box-sizing: border-box;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.main-content-nav button.main-content-nav-item {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    color: var(--text-muted);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.main-content-nav .main-content-nav-label {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    height: auto;
}

.main-content-nav .main-content-nav-item.active {
    color: white;
    border-bottom-color: var(--accent-color);
}

.main-content-nav .main-content-nav-item:hover {
    color: white;
}


.main-content-nav .nav-dropdown-icon {
    margin-left: 8px;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease;
    will-change: transform;
    transform: rotate(0deg);
    display: inline-block;
}

.main-content-nav .main-content-nav-item.active .nav-dropdown-icon {
    opacity: 1;
}

.main-content-nav .main-content-nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-icon {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .main-content-nav .nav-dropdown-icon {
        transition: opacity 0.3s ease;
    }
    
    .main-content-nav .main-content-nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-icon {
        transform: none;
    }
}

.main-content-nav-mega {
    position: fixed;
    z-index: 110;
    background: #080b12;
    border-bottom: 1px solid #242a33;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    will-change: transform, top, left;
}

.main-content-nav-mega-panel {
    padding: 24px 32px;
    display: flex;
    justify-content: center;
}

.main-content-nav-mega-grid {
    display: inline-flex;
    gap: 26px 80px;
    align-items: start;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    width: fit-content;
    max-width: 100%;
}

.main-content-nav-mega-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    width: fit-content;
    flex: 0 0 auto;
}

.main-content-nav-mega-section {
    text-align: left;
}

.main-content-nav-mega-heading {
    color: white;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
    user-select: none;
}

.main-content-nav-mega-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.main-content-nav-mega-link {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.92rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.main-content-nav-mega-link:hover {
    color: white;
}

.main-content-nav-mega-link.active {
    color: white;
}

.main-content-nav-mega-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.main-content-nav-mega-tag--hot {
    background: rgba(255, 126, 46, 0.18);
    color: #ffb07a;
}

.main-content-nav-mega-tag--new {
    background: rgba(66, 153, 225, 0.18);
    color: #9fd0ff;
}

.top-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    z-index: 1001;
    box-shadow: var(--shadow-sm);
}

.top-nav-header {
    display: flex;
    align-items: center;
    height: var(--top-nav-height);
    min-height: var(--top-nav-height);
    padding: 0 10px;
    box-sizing: border-box;
    gap: 8px;
}

.top-nav-buttons {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.top-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1;
    height: 36px;
    width: 40px;
    min-width: 40px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-language-btn {
    width: auto;
    min-width: 50px;
    padding: 5px 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.top-nav-btn:hover {
    background: color-mix(in srgb, var(--accent-color) 20%, var(--bg-tertiary));
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.top-nav-btn i.fa-thumbtack {
    font-size: 1rem;
}

.top-nav-dropdown {
    position: relative;
    display: inline-block;
}

.top-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
    overflow: hidden;
}

.top-nav-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #topNavUsername {
        display: none;
    }
}

.top-nav-dropdown-item,
a.top-nav-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
    text-decoration: none;
}

.top-nav-dropdown-item:hover {
    background: color-mix(in srgb, var(--accent-color) 20%, transparent);
}

.top-nav-dropdown-item.active {
    background: color-mix(in srgb, var(--accent-color) 20%, transparent);
    color: var(--accent-color);
    font-weight: 500;
}

.top-nav-logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.top-nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.top-nav-logo-icon:hover {
    opacity: 0.8;
}

.top-nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    display: block;
}

.top-nav-logo-text {
    white-space: nowrap;
    margin: 0;
    padding: 0;
    font-weight: 700;
}


.mobile-menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    height: 36px;
    width: 40px;
    min-width: 40px;
    min-height: 36px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: -2px;
}

.mobile-menu-toggle:hover {
    background: color-mix(in srgb, var(--accent-color) 20%, var(--bg-tertiary));
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.active,
body:has(#mobileMenu:target) .mobile-menu-toggle,
.top-nav:has(#mobileMenu:target) .mobile-menu-toggle {
    background: color-mix(in srgb, var(--accent-color) 20%, var(--bg-tertiary));
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: block;
    padding: 0;
}

.mobile-menu:target,
.mobile-menu.active {
    max-height: 500px;
    padding: 20px 0;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 20px 10px 20px;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    font-size: 0.95rem;
}

.mobile-menu-item img {
    display: block;
    flex-shrink: 0;
}

.mobile-menu-item:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    color: white;
}

.mobile-menu-item.active {
    color: white;
    border-color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color) 20%, var(--bg-tertiary));
    font-weight: 500;
}

.mobile-menu-item.active:hover {
    background: color-mix(in srgb, var(--accent-color) 30%, var(--bg-tertiary));
    border-color: var(--accent-color);
    color: white;
}

.mobile-search-wrapper {
    margin: 0 20px 20px 20px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.mobile-search-wrapper:focus-within {
    background: var(--bg-light);
    border-color: var(--accent-color);
}

.mobile-search-icon {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.mobile-search-separator {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    flex-shrink: 0;
}

.mobile-search {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    padding: 0;
    font-family: inherit;
}

.mobile-search::placeholder {
    color: var(--text-secondary);
}

.mobile-footer-menu {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.info {
    background: var(--bg-tertiary);
    border-left: 3px solid var(--accent-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.info-item {
    margin: 10px 0;
    color: var(--text-secondary);
}

.info-item strong {
    color: var(--text-primary);
}

.status {
    display: inline-block;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-top: 10px;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

 a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    :root {
        --top-nav-height: 50px;
    }
    
    .sidebar {
        display: none;
    }
    
    .top-nav {
        display: block;
    }
    
    .top-nav-header {
        padding: 0 9px;
    }
    
    .top-nav-logo {
        font-size: 1.17rem;
    }
    
    .top-nav-logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .mobile-menu-toggle {
        font-size: 1rem;
        padding: 5px 8px;
        height: 36px;
        width: 40px;
        min-width: 40px;
        min-height: 36px;
    }
    
    .mobile-menu-toggle span {
        font-size: 1.1rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -2px;
    }
    
    body {
        padding-top: var(--top-nav-height);
    }
    
    .main-content-banner,
    .main-content-nav,
    .main-content {
        margin-left: 0;
    }
    
    .main-content {
        padding: 12px max(12px, calc((100vw - 1500px) / 2)) 0;
        padding-bottom: 30px;
        margin-left: 0;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }
    
    .main-content-footer {
        margin-left: 0;
        width: 100%;
    }
    
    .main-content-header {
        margin-bottom: 8px;
        padding-bottom: 10px;
    }
    
    .main-content-banner {
        padding: 0;
        height: 130px;
    }
    
    .banner-top-bar {
        display: none;
    }
    
    .banner-content {
        gap: 10px;
        padding: 20px 10px;
    }
    
    .banner-icon img {
        width: 43.2px;
        height: 43.2px;
    }
    
    .main-content-banner h1 {
        font-size: 1.6em;
    }
    
    .main-content-nav {
        position: sticky;
        top: var(--top-nav-height);
        z-index: 100;
        padding: 6px 8px;
        height: 55px;
        min-height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-content-nav ul {
        gap: 6px;
        padding: 0;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        display: flex;
    }
    
    .main-content-nav.scrollable ul {
        justify-content: flex-start;
    }
    
    .main-content-nav.scrollable {
        justify-content: flex-start;
    }
    
    .main-content-nav li {
        display: flex;
        align-items: center;
    }
    
    .main-content-nav .main-content-nav-item {
        padding: 6px 12px;
        border-radius: 6px;
        border-bottom: none;
        background: var(--bg-tertiary);
        color: white;
        height: auto;
        min-height: auto;
        margin: 0;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-content-nav .main-content-nav-item:hover {
        background: color-mix(in srgb, var(--accent-color) 20%, transparent);
        color: white;
    }
    
    .main-content-nav .main-content-nav-item.active {
        background: var(--accent-color);
        color: white;
        border-bottom: none;
    }
    
    .main-content-nav .main-content-nav-item.active:hover {
        background: var(--accent-hover);
        color: white;
    }
    
    .main-content-nav button.main-content-nav-item {
        background: var(--bg-tertiary);
        border: none;
        border-bottom: none;
        color: white;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-content-nav button.main-content-nav-item:hover {
        background: color-mix(in srgb, var(--accent-color) 20%, transparent);
        color: white;
    }
    
    .main-content-nav button.main-content-nav-item.active {
        background: var(--accent-color);
        color: white;
        border-bottom: none;
    }
    
    .main-content-nav button.main-content-nav-item.active:hover {
        background: var(--accent-hover);
        color: white;
    }
    
    .main-content-nav button.main-content-nav-item .main-content-nav-label {
        font-size: 0.85rem;
    }
    
    .main-content-nav .nav-dropdown-icon {
        margin-left: 5px;
        font-size: 0.65rem;
        opacity: 1;
        color: white;
    }
    
    .main-content-nav .main-content-nav-item.active .nav-dropdown-icon {
        opacity: 1;
        color: white;
    }
    
    .main-content-header-breadcrumbs {
        position: relative;
    }
    
    .main-content-header-breadcrumbs .breadcrumb-separator {
        display: none;
    }
    
    .main-content-header-breadcrumbs .breadcrumb-item-link ~ * {
        display: none;
    }
    
    .main-content-header-breadcrumbs .breadcrumb-item:not(.breadcrumb-item-link) {
        display: none;
    }
    
    .main-content-header-breadcrumbs .breadcrumb-back-icon {
        display: inline-flex !important;
    }
    
    .main-content-header-breadcrumbs {
        font-size: 0.8rem;
        gap: 6px;
        padding: 6px 0;
    }
    
    .main-content-header-actions {
        gap: 8px;
    }
    
    .follow-button {
        padding: 6px 12px;
        font-size: 0.85rem;
        border-radius: 6px;
        height: calc(0.85rem * 1.5 + 12px);
        min-height: calc(0.85rem * 1.5 + 12px);
        display: flex;
        align-items: center;
    }
    
    .follow-button i {
        font-size: 0.8rem;
    }
    
    .copy-url-button {
        width: calc(0.85rem * 1.5 + 12px);
        height: calc(0.85rem * 1.5 + 12px);
        min-width: calc(0.85rem * 1.5 + 12px);
        min-height: calc(0.85rem * 1.5 + 12px);
        border-radius: 6px;
    }
    
    .copy-url-button i {
        font-size: 0.8rem;
    }
}

.main-content-footer {
    margin-top: 0;
    margin-left: 90px;
    margin-right: 0;
    margin-bottom: 0;
    padding-top: 60px;
    padding-left: max(24px, calc((100vw - 90px - 1500px) / 2));
    padding-right: max(24px, calc((100vw - 90px - 1500px) / 2));
    padding-bottom: 40px;
    background: var(--bg-light);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    width: calc(100% - 90px);
    box-sizing: border-box;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    align-items: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    padding: 4px 12px;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-link-disabled {
    color: var(--text-muted);
    cursor: default;
    opacity: 0.6;
}

.footer-separator {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0 4px;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0;
}

.footer-social-link:hover {
    color: #ffffff;
}

.footer-social-link i {
    font-size: clamp(0.9375rem, 2.5vw + 0.5rem, 1.76rem);
}

.footer-copyright {
    margin-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media screen and (max-width: 768px) {
    .main-content-footer {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        width: 100%;
        padding-top: 40px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 30px;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }
    
    .footer-links {
        gap: 0;
    }
    
    .footer-link {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
    
    .footer-separator {
        font-size: 0.85rem;
    }
    
    .footer-social {
        gap: 20px;
        margin-top: 30px;
    }
    
    .footer-social-link {
        padding: 0;
    }
    
    .footer-social-link i {
        font-size: clamp(0.9375rem, 3vw + 0.5rem, 1.5rem);
    }
    
    .footer-copyright {
        margin-top: 25px;
        font-size: 0.8rem;
    }
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-tertiary);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
    border: 2px solid var(--bg-tertiary);
    transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

*::-webkit-scrollbar-corner {
    background: var(--bg-tertiary);
}

