:root {
    --primary-color: #6200ee;
    --primary-color-rgb: 98, 0, 238;
    --primary-light: #bb86fc;
    --primary-light-rgb: 187, 134, 252;
    --primary-dark: #26418f;
    --primary-dark-rgb: 38, 65, 143;
    --secondary-color: #03dac6;
    --secondary-color-rgb: 38, 166, 154;
    --accent-color: #6200ee;
    --accent-color-rgb: 98, 0, 238;
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #f2f2f2;
    --card-bg: #ffffff;
    --hover-bg: #e8e8e8;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --header-bg: linear-gradient(135deg, #5c6bc0, #3949ab);
    --footer-bg: #3949ab;
    --sidebar-bg: #ffffff;
    --sidebar-border: #e0e0e0;
    --sidebar-active: #f5f0ff;
    --button-hover: #7986cb;
    --header-text: #ffffff;
    --text-secondary: #888888;
    --heading-color: #444444;
    --accent-hover: #5000c1;
    --accent-light: rgba(98, 0, 238, 0.1);
    --border-color: #dddddd;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warn-color: #ff9900;
    --danger-color: #e91e63;
    --input-bg: #f9f9f9;
    --count-bg: #f0f0f0;
    
    --primary-bg: #f8f8f8;
    --secondary-bg: #e8e8e8;
    --primary-text: #333333;
    --profile-text: #000000;
    --profile-bg: #d8d8d8;
    --username-text: #222222;
}

[data-theme="dark"] {
    --primary-color: #bb86fc;
    --primary-color-rgb: 187, 134, 252;
    --primary-light: #d7b9ff;
    --primary-light-rgb: 215, 185, 255;
    --primary-dark: #49599a;
    --primary-dark-rgb: 73, 89, 154;
    --secondary-color: #03dac6;
    --secondary-color-rgb: 38, 166, 154;
    --accent-color: #bb86fc;
    --accent-color-rgb: 187, 134, 252;
    --text-color: #e0e0e0;
    --light-text: #a0a0a0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --hover-bg: #2c2c2c;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --header-bg: #1f1f1f;
    --footer-bg: #1f1f1f;
    --sidebar-bg: #1e1e1e;
    --sidebar-border: #333333;
    --sidebar-active: #2d2d2d;
    --button-hover: #4a4a4a;
    --header-text: #ffffff;
    --text-secondary: #aaaaaa;
    --heading-color: #d7d7d7;
    --accent-hover: #c694ff;
    --accent-light: rgba(187, 134, 252, 0.1);
    --border-color: #333333;
    --input-bg: #2a2a2a;
    --count-bg: #333333;
    
    --primary-bg: #1f1f1f;
    --secondary-bg: #2c2c2c;
    --primary-text: #e0e0e0;
    --profile-text: #ffffff;
    --profile-bg: #3d3d3d;
    --username-text: #bbbbbb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

header {
    background-color: var(--primary-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-text);
    transition: all 0.2s ease;
    padding: 0;
}

.logo-link:hover {
    color: var(--accent-color);
    transform: scale(1.02);
}

.logo-link h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-controls, .guest-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--primary-text);
    background-color: var(--secondary-bg);
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-icon-link:hover {
    color: var(--accent-color);
    background-color: var(--hover-bg);
    transform: scale(1.05);
}

.header-icon-link.active {
    color: white;
    background-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(var(--accent-color-rgb), 0.3);
}

.header-icon-link.active:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--primary-text);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--secondary-bg);
    transition: all 0.2s ease;
    padding: 0;
}

.theme-toggle:hover {
    color: var(--accent-color);
    background-color: var(--hover-bg);
    transform: scale(1.05);
}

.user-profile {
    display: flex;
    align-items: center;
    background-color: var(--profile-bg);
    border-radius: 50px;
    padding: 0.3rem 0.5rem 0.3rem 0.3rem;
    transition: all 0.2s ease;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-settings-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    flex-grow: 1;
    transition: all 0.2s ease;
}

.profile-settings-link:hover {
    color: var(--accent-color);
}

.user-profile:hover {
    background-color: var(--hover-bg);
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.user-avatar, .user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--profile-text);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .user-name {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    color: white;
}

.user-username {
    font-size: 0.8rem;
    color: var(--username-text);
    font-weight: 500;
}

[data-theme="light"] .user-username {
    color: #222222;
}

[data-theme="dark"] .user-username {
    color: rgba(255, 255, 255, 0.7);
}

.logout-button {
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

[data-theme="light"] .logout-button {
    color: rgba(0, 0, 0, 0.7);
}

.logout-button:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

[data-theme="light"] .logout-button:hover {
    color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.1);
}

.telegram-login-widget {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
    }
    
    .logo-link h1 {
        font-size: 1.3rem;
    }
    
    .header-icon-link {
        width: 32px;
        height: 32px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
    }
    
    .user-name {
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.85rem;
    }
    
    .user-username {
        font-size: 0.75rem;
    }
    
    .header-content {
        padding: 0;
    }
    
    .user-profile {
        padding: 0.2rem 0.4rem 0.2rem 0.2rem;
        margin-left: 0.5rem;
    }
    
    .sticker-card {
        height: 100px;
        padding: 0.6rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .view-set-button, .sticker-link, .dm-button, .favorite-button {
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .user-info {
        display: none;
    }
    
    .header-controls {
        gap: 0.5rem;
    }
    
    .header-icon-link, .theme-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .user-avatar, .user-avatar-placeholder {
        width: 28px;
        height: 28px;
    }
    
    .logo-link h1 {
        font-size: 1.1rem;
    }
    
    .sticker-card {
        height: 80px;
        padding: 0.4rem;
    }
    
    .modal-content {
        padding: 1rem;
        width: 95%;
        margin: 5% auto;
    }
}

.main-nav {
    display: flex;
    gap: 15px;
    margin: 0 auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: white;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-link:hover:before {
    width: 70%;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link.active:before {
    width: 70%;
}

.nav-link i {
    font-size: 0.9rem;
}

.main-content {
    display: flex;
    min-height: calc(100vh - 180px);
    position: relative;
}

.container {
    width: calc(100% - 280px);
    margin-left: 280px;
    padding: 25px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.back-to-all {
    display: block;
    font-size: 1rem;
    color: var(--light-text);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.back-to-all:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.stickers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.sticker-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    cursor: pointer;
    height: 120px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sticker-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
    z-index: 2;
}

.sticker-card img.sticker-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.sticker-card:hover img.sticker-thumbnail {
    transform: scale(1.05);
}

.sticker-card .emoji {
    display: none;
}

.emoji {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.pagination a:hover, .pagination a.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pagination a:not(.active):hover {
    border-color: var(--primary-color);
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.pagination .nav-btn {
    padding: 0 1.2rem;
    border-radius: 30px;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--light-text);
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem auto;
    max-width: 600px;
}

.no-results i {
    font-size: 3.5rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

footer {
    background: var(--primary-bg);
    color: var(--primary-text);
    text-align: center;
    padding: 1.8rem;
    margin-top: 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
}

@media (max-width: 768px) {
    .stickers-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .pagination a, .pagination span {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stickers-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 1rem 0.5rem;
    }
    
    .pagination {
        gap: 0.3rem;
    }
    
    .pagination a, .pagination span {
        min-width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

.emoji-sidebar {
    width: 280px;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 80px;
    bottom: 0;
    left: 0;
    z-index: 10;
    padding-bottom: 80px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--sidebar-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.emoji-sidebar::-webkit-scrollbar {
    width: 6px;
}

.emoji-sidebar::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.emoji-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 6px;
}

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

.sidebar-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.clear-filter {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    transition: all 0.2s ease;
}

.clear-filter:hover {
    background-color: rgba(var(--accent-color-rgb), 0.2);
    transform: translateY(-2px);
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-header, .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 12px;
}

.filter-section-header {
    cursor: pointer;
}

.filter-section h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    display: flex;
    align-items: center;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: auto;
}

.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.filter-section-content {
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease;
}

.collapsed .filter-section-content {
    max-height: 0;
    overflow: hidden;
}

.search-form, .emoji-search-form {
    margin-bottom: 15px;
    width: 100%;
}

.js-apply-collapse-tag .toggle-icon,
.js-apply-collapse-emoji .toggle-icon {
    transform: rotate(-90deg);
}

.js-apply-collapse-tag ~ .filter-section-content,
.js-apply-collapse-emoji ~ .filter-section-content {
    max-height: 0 !important;
    overflow: hidden;
}

.filter-section.no-collapse .section-header {
    cursor: default;
}

.search-input-container {
    position: relative;
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.2);
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-50%) scale(1.05);
}

.emoji-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--sidebar-bg);
}

.emoji-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 5px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.emoji-item:hover {
    background-color: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.emoji-item.active {
    background-color: var(--accent-light);
    border-color: var(--accent-color);
    box-shadow: 0 3px 10px rgba(var(--accent-color-rgb), 0.15);
}

.emoji-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.emoji-count {
    font-size: 12px;
    color: var(--text-secondary);
    background-color: var(--count-bg);
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.popular-tags {
    margin-top: 15px;
}

.popular-tags h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--sidebar-bg);
}

.rating-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.favorites-toggle {
    margin-bottom: 15px;
}

.favorites-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 30px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-weight: 500;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.favorites-filter i {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.favorites-filter:hover {
    background-color: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.favorites-filter.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.favorites-filter.active i {
    color: white;
    transform: scale(1.1);
}

.rating-filter {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.rating-filter:hover {
    background-color: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rating-filter.active {
    background-color: var(--accent-light);
    border-color: var(--accent-color);
    box-shadow: 0 3px 10px rgba(var(--accent-color-rgb), 0.15);
}

.rating-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.rating-general {
    background-color: #4CAF50;
}

.rating-sensitive {
    background-color: #FFC107;
    color: #333;
}

.rating-questionable {
    background-color: #FF9800;
}

.rating-explicit {
    background-color: #F44336;
}

.rating-unknown {
    background-color: #9E9E9E;
}

@media (max-width: 768px) {
    .rating-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .rating-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.debug-info {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.debug-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.debug-info pre {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9rem;
    background-color: #f1f1f1;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

[data-theme="dark"] .debug-info {
    background-color: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .debug-info h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .debug-info pre {
    background-color: #333;
    color: #e0e0e0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--light-text);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--accent-color);
    transform: scale(1.1);
    background-color: var(--hover-bg);
}

.modal-body {
    margin-top: 1rem;
}

.modal-sticker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-sticker-image {
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.modal-sticker-image:hover {
    transform: scale(1.05);
}

.modal-sticker-info {
    text-align: center;
    width: 100%;
}

.modal-emoji {
    font-size: 3rem;
    margin: 1rem 0;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.modal-sticker-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-header {
    margin-bottom: 1rem;
}

.modal-header h3 {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pack-name-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
}

.pack-name-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.pack-name-link:hover {
    color: var(--accent-color);
}

.pack-name-link:hover:after {
    width: 100%;
}

.favorite-icon-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.favorite-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #999;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.favorite-icon:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.95);
}

.favorite-icon:hover i {
    color: var(--accent-color);
}

.favorite-icon.is-favorite i {
    color: var(--accent-color);
}

[data-theme="dark"] .favorite-icon {
    background-color: rgba(var(--primary-color-rgb), 0.2);
    color: var(--text-color);
}

[data-theme="dark"] .favorite-icon:hover {
    background-color: rgba(var(--primary-color-rgb), 0.3);
}

[data-theme="dark"] .favorite-icon.is-favorite i {
    color: var(--accent-color);
}

.modal-header .favorite-icon {
    width: 32px;
    height: 32px;
    margin-left: 8px;
}

.modal-sticker-image-container .favorite-icon {
    width: 40px;
    height: 40px;
}

.modal-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

.modal-header h3 {
    margin-bottom: 0;
    margin-right: 1rem;
    flex: 1;
}

.favorite-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--accent-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.favorite-icon:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
    color: white;
}

.favorite-icon.is-favorite {
    color: white;
}

[data-theme="dark"] .favorite-icon {
    background-color: rgba(var(--primary-color-rgb), 0.2);
    color: var(--text-color);
}

[data-theme="dark"] .favorite-icon.is-favorite {
    color: white;
}

.view-set-button, .sticker-link, .dm-button, .favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: center;
    min-width: 160px;
    border: none;
    cursor: pointer;
    gap: 8px;
}

.view-set-button {
    background-color: var(--secondary-color);
    color: white;
}

.view-set-button:hover {
    background-color: rgba(var(--secondary-color-rgb), 0.85);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sticker-link {
    background-color: var(--primary-color);
    color: white;
}

.sticker-link:hover {
    background-color: rgba(var(--primary-color-rgb), 0.85);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dm-button {
    background-color: #2196f3;
    color: white;
}

.dm-button:hover {
    background-color: rgba(33, 150, 243, 0.85);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.favorite-button {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--text-color);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.favorite-button:hover {
    background-color: rgba(var(--primary-color-rgb), 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.favorite-button.is-favorite {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.favorite-button.is-favorite:hover {
    background-color: rgba(var(--accent-color-rgb), 0.85);
}

.modal-sticker-info p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.share-container {
    margin-top: 2rem;
    background-color: var(--hover-bg);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.share-link {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--sidebar-border);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin-top: 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-link:hover, .share-link:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
    outline: none;
}

.user-dashboard {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.user-dashboard:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.dashboard-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    border-radius: 3px;
}

.dashboard-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dashboard-header p {
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-content {
    padding: 1rem 0;
}

.dashboard-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}


.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


@media (min-width: 768px) {
    .modal-sticker-container {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .modal-sticker-image {
        margin-right: 2rem;
        margin-bottom: 0;
        max-width: 300px;
        max-height: 300px;
    }
    
    .modal-sticker-info {
        text-align: left;
        flex: 1;
    }
    
    .modal-buttons {
        justify-content: flex-start;
    }
    
    .share-container {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .sticker-card {
        height: 80px;
        padding: 0.5rem;
    }
    
    .modal-content {
        padding: 1rem;
        margin: 15% auto;
    }
    
    .modal-sticker-image {
        max-width: 200px;
        max-height: 200px;
    }
    
    .user-dashboard {
        padding: 1.5rem 1rem;
    }
}

.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-profile:hover {
    background-color: var(--hover-bg);
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.user-avatar, .user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.user-profile:hover .user-avatar, 
.user-profile:hover .user-avatar-placeholder {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.user-avatar-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-username {
    font-size: 0.8rem;
}

[data-theme="light"] .user-info {
    color: #000000;
}

[data-theme="light"] .user-name {
    color: #000000;
    font-weight: 700;
}

[data-theme="light"] .user-username {
    color: #222222;
}

.telegram-login-widget {
    height: 40px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    
    .user-area {
        width: 100%;
        justify-content: center;
    }
}

.user-dashboard {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--light-text);
}

.dashboard-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-content {
    padding: 1rem 0;
}

.dashboard-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .user-dashboard {
        padding: 1.5rem;
    }
    
    .dashboard-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
}

.user-dashboard-link {
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.user-dashboard-link:hover {
    color: #ff4081;
    transform: scale(1.2);
}

.user-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.user-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .user-nav {
        flex-direction: row;
        gap: 0.3rem;
    }
    
    .user-nav .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .user-nav .nav-link i {
        margin-right: 0.3rem;
    }
}

@media (max-width: 480px) {
    .user-nav {
        margin-top: 0.8rem;
    }
    
    .user-nav .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .user-nav .nav-link i {
        margin-right: 0.2rem;
    }
}

.sticker-card {
    position: relative;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.favorite-button.is-favorite {
    background-color: var(--accent-color);
    color: white;
}

.favorite-button.is-favorite:hover {
    background-color: var(--accent-color);
    opacity: 0.9;
}

[data-theme="dark"] .favorite-button {
    background-color: rgba(var(--primary-color-rgb), 0.2);
    color: var(--text-color);
}

[data-theme="dark"] .favorite-button.is-favorite {
    background-color: var(--accent-color);
    color: white;
}

.logout-confirm-modal {
    z-index: 1001;
}

.logout-confirm-content {
    max-width: 400px;
    text-align: center;
    padding: 2.5rem;
    border-radius: 16px;
    animation: modalPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPulse {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logout-confirm-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logout-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(var(--accent-color-rgb), 0.2);
}

.logout-confirm-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.logout-confirm-body p {
    margin-bottom: 2rem;
    color: var(--light-text);
    font-size: 1.1rem;
}

.logout-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.logout-cancel-btn, .logout-confirm-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    min-width: 120px;
    font-size: 1rem;
}

.logout-cancel-btn {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.logout-cancel-btn:hover {
    background-color: var(--hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.logout-confirm-btn {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.3);
}

.logout-confirm-btn:hover {
    background-color: rgba(var(--accent-color-rgb), 0.85);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.4);
}

@media (max-width: 480px) {
    .logout-confirm-content {
        padding: 2rem 1.5rem;
    }
    
    .logout-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .logout-confirm-body h3 {
        font-size: 1.3rem;
    }
    
    .logout-confirm-body p {
        font-size: 1rem;
    }
    
    .logout-buttons {
        flex-direction: column;
    }
    
    .logout-cancel-btn, .logout-confirm-btn {
        width: 100%;
    }
}

.sticker-tags {
    margin: 1rem 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: var(--accent-light);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tag-badge:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.tag-badge.active {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--accent-color-rgb), 0.3);
}

.tag-count {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 5px;
    font-size: 10px;
    min-width: 20px;
    text-align: center;
}

.rating-general {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.rating-sensitive {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #FFC107;
    color: #333;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.rating-questionable {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #FF9800;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.rating-explicit {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #F44336;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.rating-unknown {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #9E9E9E;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

[data-theme="dark"] .tag-badge {
    background-color: var(--primary-dark);
}

[data-theme="dark"] .tag-badge:hover {
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.popular-tags {
    margin-top: 15px;
}

.popular-tags h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--sidebar-bg);
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: var(--accent-light);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tag-badge:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.tag-badge.active {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--accent-color-rgb), 0.3);
}

.tag-count {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 5px;
    font-size: 10px;
    min-width: 20px;
    text-align: center;
}

.rating-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.rating-link:hover {
    text-decoration: underline;
}

.settings-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.settings-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-section p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.settings-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.option-label {
    font-weight: 500;
}

.option-description {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 0.3rem;
}

.option-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.option-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.tag-suggestions {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .tag-suggestions {
    background-color: #2c2c2c;
    border-color: #444444;
}

.tag-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .tag-suggestion-item {
    border-bottom-color: #444444;
}

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

.tag-suggestion-item:hover,
.tag-suggestion-item.active {
    background-color: var(--hover-bg);
    color: var(--accent-color);
}

[data-theme="dark"] .tag-suggestion-item:hover,
[data-theme="dark"] .tag-suggestion-item.active {
    background-color: #3a3a3a;
}

.tag-suggestion-count {
    color: var(--light-text);
    font-size: 0.8em;
    background-color: var(--count-bg);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.modal-sticker-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.favorite-icon-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.favorite-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #ccc;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.favorite-icon:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.9);
}

.favorite-icon.is-favorite {
    color: var(--accent-color);
}

[data-theme="dark"] .favorite-icon {
    background-color: rgba(40, 40, 40, 0.8);
    color: #666;
}

[data-theme="dark"] .favorite-icon.is-favorite {
    color: var(--accent-color);
}

.detail-value {
    color: var(--text-color);
    font-weight: 500;
}

.emoji-value {
    font-size: 1.5rem;
    line-height: 1;
}

[data-theme="dark"] .modal-details {
    background-color: rgba(255, 255, 255, 0.05);
}

.js-apply-collapse-tag ~ .filter-section-content {
    max-height: 0 !important;
    overflow: hidden;
}

.js-apply-collapse-emoji ~ .filter-section-content {
    max-height: 0 !important;
    overflow: hidden;
}

.js-apply-collapse-tag .toggle-icon,
.js-apply-collapse-emoji .toggle-icon {
    transform: rotate(-90deg);
}

.tag-suggestions {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 5px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .tag-suggestions {
    background-color: #2c2c2c;
    border-color: #444444;
}

.tag-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

[data-theme="dark"] .tag-suggestion-item {
    border-bottom-color: #444444;
    background-color: #2c2c2c;
    color: #ffffff;
}

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

.tag-suggestion-item:hover,
.tag-suggestion-item.active {
    background-color: #f0f0f0;
    color: var(--accent-color);
}

[data-theme="dark"] .tag-suggestion-item:hover,
[data-theme="dark"] .tag-suggestion-item.active {
    background-color: #3a3a3a;
}

.tag-suggestion-count {
    color: #777777;
    font-size: 0.8em;
    background-color: #eeeeee;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

[data-theme="dark"] .tag-suggestion-count {
    background-color: #444444;
    color: #cccccc;
}

.search-input-container {
    position: relative;
    z-index: 10;
}

.navigation-arrows {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1001;
    pointer-events: none;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    pointer-events: auto;
}

[data-theme="dark"] .nav-arrow {
    background-color: rgba(50, 50, 50, 0.9);
    color: #fff;
}

.nav-arrow:hover {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.nav-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}