:root {
    --bg-black: #0f0f0f;
    --bg-dark: #141414;
    --bg-glass: rgba(20, 20, 20, 0.7);
    --accent-red: #e50914;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-pink { --accent-red: #f43f5e; }
body.theme-blue { --accent-red: #3b82f6; }
body.theme-green { --accent-red: #10b981; }
body.theme-purple { --accent-red: #8b5cf6; }
body.theme-orange { --accent-red: #f97316; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    touch-action: manipulation;
}

[v-cloak] {
    display: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* ===== NAVBAR ===== */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 4%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 10%, transparent);
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav-container.scrolled {
    background: var(--bg-black);
}

.logo {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 3rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-muted);
}

.nav-links a.active {
    font-weight: 700;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-red);
    border-radius: 3px;
}

.nav-actions {
    margin-left: auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icon {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.2s;
    background: none;
    border: none;
    position: relative;
}

.nav-icon:hover {
    color: var(--accent-red);
}

/* User Menu */
.user-menu-wrapper {
    position: relative;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent-red), #ff4d6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 2px transparent;
}

.nav-avatar-letter {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    user-select: none;
}

.nav-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.5);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: rgba(24, 24, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    z-index: 999;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: rgba(24, 24, 28, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
}

.user-dropdown-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-red), #ff4d6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-dropdown-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 6px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.user-dropdown-item i {
    font-size: 1.15rem;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.user-dropdown-logout {
    color: var(--accent-red);
}

.user-dropdown-logout:hover {
    background: rgba(229, 9, 20, 0.12);
    color: #ff6b7a;
}

/* Dropdown Transition */
.dropdown-fade-enter-active {
    animation: dropdownIn 0.2s ease-out;
}

.dropdown-fade-leave-active {
    animation: dropdownIn 0.15s ease-in reverse;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

/* ===== PROFILE PAGE ===== */
.profile-page {
    padding: 100px 24px 60px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.profile-container {
    width: 100%;
    max-width: 560px;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-red), #ff4d6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 32px rgba(229, 9, 20, 0.3);
}

.profile-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px;
}

.profile-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 24px;
}

.profile-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-card-title i {
    font-size: 1.2rem;
    color: var(--accent-red);
}

.profile-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: -12px 0 16px;
}

.profile-field {
    margin-bottom: 16px;
}

.profile-field:last-child {
    margin-bottom: 0;
}

.profile-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-label i {
    font-size: 0.9rem;
}

.profile-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.profile-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.profile-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.profile-input-group {
    position: relative;
}

.profile-input-group .profile-input {
    padding-right: 44px;
}

.profile-toggle-pw {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: color 0.2s;
}

.profile-toggle-pw:hover {
    color: var(--text-main);
}

/* Info Card */
.profile-card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-info-label i {
    font-size: 1rem;
}

.profile-info-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-admin {
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.badge-user {
    background: rgba(99, 179, 237, 0.12);
    color: #63b3ed;
    border: 1px solid rgba(99, 179, 237, 0.25);
}

/* Save Button */
.profile-actions {
    display: flex;
    justify-content: flex-end;
}

.profile-btn-save {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-red), #c70812);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.profile-btn-save:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
}

.profile-btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message Toast */
.profile-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-message.success {
    background: rgba(72, 187, 120, 0.12);
    color: #68d391;
    border: 1px solid rgba(72, 187, 120, 0.25);
}

.profile-message.error {
    background: rgba(229, 62, 62, 0.12);
    color: #fc8181;
    border: 1px solid rgba(229, 62, 62, 0.25);
}

.toast-fade-enter-active {
    animation: toastIn 0.3s ease-out;
}

.toast-fade-leave-active {
    animation: toastIn 0.2s ease-in reverse;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PREMIUM ADMIN BEREICH ===== */
.admin-page {
    padding: 100px 4% 40px;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(20, 20, 20, 0.98) 0%, rgba(10, 10, 10, 0.99) 90%);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.admin-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 12px;
    margin-bottom: 12px;
    color: var(--accent-red);
    font-size: 1.5rem;
}

.admin-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.admin-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .admin-grid {
        margin-top: 1rem;
        grid-template-columns: 1fr;
        max-width: calc(100vw - 30px) !important;
    }
}

.admin-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-card {
    background: rgba(30, 30, 30, 0.45);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    
        max-width: calc(100vw - 30px) !important;
}

.admin-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-card-title i {
    color: var(--accent-red);
    font-size: 1.3rem;
}

/* Forms */
.admin-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-input {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.admin-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.admin-input-grow {
    flex: 1;
    min-width: 150px;
}

.admin-select {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.admin-select:focus {
    border-color: var(--accent-red);
}

/* Buttons */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.admin-btn-add {
    background: linear-gradient(135deg, var(--accent-red), #c70812);
    color: white;
}

.admin-btn-add:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
}

.admin-btn-add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Lists and Items */
.admin-user-list,
.admin-path-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-user-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.admin-user-item.is-editing {
    border-color: rgba(229, 9, 20, 0.3);
    background: rgba(229, 9, 20, 0.02);
}

.admin-user-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-admin {
    background: linear-gradient(135deg, var(--accent-red), #9e060e);
    color: white;
}

.avatar-user {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: white;
}

.admin-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-user-name {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.admin-user-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-role-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.role-admin {
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.role-user {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-user-id {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-user-actions {
    display: flex;
    gap: 8px;
}

.admin-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-action-delete:hover {
    background: rgba(229, 62, 62, 0.2);
    border-color: rgba(229, 62, 62, 0.3);
    color: #feb2b2;
}

/* Edit User Panel */
.admin-edit-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-edit-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.admin-edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-edit-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-edit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.admin-edit-message {
    font-size: 0.8rem;
    font-weight: 500;
}

.admin-edit-message.success {
    color: #68d391;
}

.admin-edit-message.error {
    color: #fc8181;
}

.admin-edit-message.info {
    color: #63b3ed;
}

.admin-btn-save {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-btn-save:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Scan Paths */
.admin-path-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-path-icon {
    font-size: 1.2rem;
    color: var(--accent-red);
}

.admin-path-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.admin-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.admin-empty i {
    font-size: 2rem;
}

.admin-empty span {
    font-size: 0.85rem;
}

/* Transitions */
.slide-down-enter-active,
.slide-down-leave-active {
    transition: all 0.25s ease-out;
    max-height: 200px;
    overflow: hidden;
}

.slide-down-enter-from,
.slide-down-leave-to {
    opacity: 0;
    max-height: 0;
    transform: translateY(-8px);
}

/* ===== DYNAMIC GLASSMORPHIC TAG FILTERS ===== */
.tag-filter-bar-wrapper {
    padding: 30px 4% 15px;
    margin-bottom: 5px;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.4));
}

.tag-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 2px 12px;
    scrollbar-width: none;
    /* Firefox */
}

.tag-filter-container::-webkit-scrollbar {
    display: none;
    /* Safari / Chrome */
}

.tag-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    border-radius: 24px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tag-filter-pill i {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.25s;
}

.tag-filter-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1.5px);
}

.tag-filter-pill.active {
    background: linear-gradient(135deg, var(--accent-red), #c70812);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.35);
}

.tag-filter-pill.active i {
    color: white;
}

/* ===== DYNAMIC TAG GRID VIEW ===== */
.tag-grid-wrapper {
    padding: 20px 4% 60px;
    animation: fadeIn 0.4s ease;
}

.tag-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.tag-grid-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-grid-title span {
    color: var(--accent-red);
}

.tag-grid-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px 20px;
}

@media (max-width: 768px) {
    .tag-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px 15px;
    }

    .tag-grid-title {
        font-size: 1.4rem;
    }
}


/* Glassmorphic Grid Item Card */
.grid-book-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    aspect-ratio: 2 / 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.grid-book-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-book-card:hover {
    transform: translateY(-6px);
    border-color: rgba(229, 9, 20, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(229, 9, 20, 0.15);
}

.grid-book-card:hover img {
    transform: scale(1.06);
}

.grid-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 12px 12px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.98) 35%, rgba(10, 10, 10, 0.7) 70%, transparent);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(4px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 55%;
}

.grid-book-card:hover .grid-card-info {
    opacity: 1;
    transform: translateY(0);
}

.grid-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

.grid-card-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Book Tag Pill (Inside Book Modal) */
.book-tag-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.book-tag-pill:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.3);
    color: var(--accent-red);
    box-shadow: 0 2px 10px rgba(229, 9, 20, 0.15);
    transform: translateY(-1px);
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px;
    animation: fadeIn 0.2s ease;
}

.search-input-wrapper {
    width: 90%;
    max-width: 700px;
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    font-size: 1.3rem;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.search-input-wrapper input:focus {
    border-color: var(--accent-red);
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--text-muted);
}

.search-results {
    width: 90%;
    max-width: 700px;
    margin-top: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.search-result-item:hover {
    background: #252525;
    transform: translateX(4px);
}

.search-result-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.search-result-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 85vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 4%;
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #000 0%, transparent 70%),
        linear-gradient(to top, var(--bg-black) 0%, transparent 30%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding-top: 60px;
    padding-bottom: 3rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 0 black;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero indicators */
.hero-indicators {
    position: absolute;
    bottom: 1rem;
    right: 4%;
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dot.active {
    background: var(--accent-red);
    transform: scale(1.2);
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero:hover .hero-nav-btn {
    opacity: 1;
}

.hero-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    scale: 1.1;
}

.hero-nav-btn.left {
    left: 4%;
}

.hero-nav-btn.right {
    right: 4%;
}

@media (max-width: 768px) {
    .hero-nav-btn {
        display: none;
    }
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    transition: transform 0.2s ease, background 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: white;
}

.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.4);
}

/* ===== ROW / CAROUSEL ===== */
.row {
    margin: 3rem 0;
    padding-left: 4%;
    position: relative;
}

.row-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e5e5e5;
}

.carousel-wrapper {
    position: relative;
}

.carousel-container {
    position: relative;
    display: flex;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    white-space: nowrap;
}

.carousel-container>div {
    scroll-snap-align: start;
    flex-shrink: 0 !important;
    display: inline-block;
    white-space: normal;
    vertical-align: top;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Carousel Navigation Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 100%;
    border: none;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.left {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.carousel-btn.right {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.carousel-btn.hidden {
    display: none;
}

/* Book Cards */
.book-card {
    position: relative;
    flex: 0 0 200px;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition-fast);
    cursor: pointer;
}

.book-card:hover {
    transform: scale(1.08);
    z-index: 100;
}

.book-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    padding-bottom: 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    transition: transform 0.3s ease;
}

.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.card-author {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== MODAL ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-dark);
    width: 90%;
    max-width: 850px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.chapter-row {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
}

.chapter-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Chapter skeleton loader */
.chapter-skeleton {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 4px;
    gap: 1rem;
}

.chapter-skeleton .skel-num {
    width: 70px;
    height: 18px;
    border-radius: 4px;
}

.chapter-skeleton .skel-title {
    flex: 1;
    height: 18px;
    border-radius: 4px;
}

/* ===== CBZ READER ===== */
.reader-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reader-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 60px;
    height: auto;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: center;
    padding: 10px 1rem;
    z-index: 3010;
    transition: transform 0.3s ease;
    justify-content: space-between;
}

.reader-header.hidden {
    transform: translateY(-100%);
}

.reader-header h2 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-width: 0;
}

.reader-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.reader-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.reader-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reader-content::-webkit-scrollbar {
    display: none;
}

.reader-page {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #000;
}

.reader-page img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Horizontal Page Mode Styles */
.reader-horizontal.reader-content {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
}

.reader-page-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #000;
}

.reader-vertical .reader-page-container {
    flex-direction: column;
    align-items: center; /* Center the wrapper */
    margin-bottom: 0px; /* Overlap containers to completely eliminate rendering gaps */
}

.reader-horizontal .reader-page-container {
    flex-direction: row;
    flex: 0 0 100vw;
    height: 100vh;
    scroll-snap-align: center;
}

.reader-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.reader-vertical .reader-page-wrapper {
    width: 100%;
    max-width: 800px; /* Limit width on desktop for vertical reading */
    align-items: flex-start; /* Prevent vertical centering gaps */
}

.reader-vertical .reader-page-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: -1px; /* Overlap slightly to prevent browser sub-pixel rendering gaps */
}

.reader-horizontal .reader-page-wrapper {
    width: 100%;
    height: 100vh;
}

.reader-horizontal .reader-page-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* On small screens, force vertical even if horizontal page is selected */
@media (max-width: 768px) {
    .reader-horizontal .reader-page-container {
        flex-direction: column;
        height: auto;
    }
    
    .reader-horizontal .reader-page-wrapper {
        width: 100%;
        height: auto;
    }
    
    .reader-horizontal .reader-page-wrapper img {
        height: auto;
    }
}

.reader-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    font-size: 1.2rem;
    gap: 1rem;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== TRANSITIONS ===== */
.modal-fade-enter-active,
.modal-fade-leave-active {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-fade-enter-from,
.modal-fade-leave-to {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
}

/* ===== PHOSPHOR SPIN ===== */
.ph-spin {
    animation: ph-spin 2s linear infinite;
}

@keyframes ph-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 280px;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.toast.success {
    background: rgba(34, 140, 34, 0.9);
}

.toast.error {
    background: rgba(220, 38, 38, 0.9);
}

.toast.info {
    background: rgba(59, 130, 246, 0.9);
}

.toast.leaving {
    animation: toastOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .avatar-user, .avatar-admin {
        display: none !important;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-black);
        padding: 1rem 4%;
        gap: 0.8rem;
        border-bottom: 1px solid var(--border-color);
    }

    .hero {
        height: 60vh;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .row {
        margin: 1.2rem 0;
    }

    .row-title {
        font-size: 1.1rem;
    }



    .book-card {
        flex: none !important;
        height: auto !important;
        aspect-ratio: 2 / 3;
        width: 100% !important;
    }


    .modal-book-title {
        font-size: 1.5rem !important;
        text-shadow: 1px 1px 0px black;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
    }

    .modal-backdrop {
        align-items: flex-end;
    }

    /* Modal grid -> single column */
    .modal-body-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .modal-header-image {
        height: 250px !important;
    }

    .chapter-row {
        padding: 0.8rem 0.5rem;
        min-height: 48px;
    }

    .reader-header h2 {
        font-size: 1rem;
    }

    .reader-page {
        max-width: 100%;
    }

    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }

    .search-overlay {
        padding-top: 80px;
    }

    .carousel-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
        margin-right: 1rem;
    }

    .nav-container {
        padding: 0 3%;
    }

    .hero {
        height: 50vh;
    }

}

/* Sub-navigation Tabs */
.sub-nav {
    display: flex;
    gap: 2rem;
    margin: 80px 4% 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.sub-nav-item {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.sub-nav-item:hover {
    color: var(--text-main);
}

.sub-nav-item.active {
    color: var(--text-main);
}

.sub-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-red);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .sub-nav {
        margin-top: 70px;
        gap: 1.5rem;
        justify-content: center;
    }

    .sub-nav-item {
        font-size: 0.9rem;
    }
}

/* Offset fixed navbar when tag is selected */
.tag-selected-view {
    padding-top: 80px;
    animation: fadeIn 0.4s ease;
}

/* Premium Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0 20px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-radius: 30px;
    padding: 14px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.load-more-btn i {
    font-size: 1.1rem;
    transition: transform 0.25s;
}

.load-more-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.45);
    transform: translateY(-2px);
}

.load-more-btn:hover i {
    transform: rotate(90deg);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* Card Cover Container & Premium Glassmorphic Play Button Overlay */
.card-cover-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.card-play-btn i {
    transform: translateX(2px);
    transition: transform 0.2s ease;
}

.book-card:hover .card-play-btn,
.grid-book-card:hover .card-play-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.card-play-btn:hover {
    background: var(--accent-red, #e50914);
    border-color: var(--accent-red, #e50914);
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.7);
    transform: translate(-50%, -50%) scale(1.15);
}

.card-play-btn:hover i {
    transform: translateX(2px) scale(1.05);
}

.card-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* ===== WATCHLIST BUTTON PREMIUM STYLING ===== */
.btn-watchlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
}

.btn-watchlist:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.btn-watchlist:active {
    transform: scale(0.9);
}

/* In Watchlist State */
.btn-watchlist.in-watchlist {
    border-color: rgba(70, 211, 105, 0.6);
    background: rgba(70, 211, 105, 0.15);
    color: #46d369;
    box-shadow: 0 0 15px rgba(70, 211, 105, 0.25);
}

.btn-watchlist.in-watchlist .icon-hover {
    display: none;
}

/* Hover effect on watchlist button when item is already in watchlist */
.btn-watchlist.in-watchlist:hover {
    border-color: rgba(229, 9, 20, 0.6);
    background: rgba(229, 9, 20, 0.15);
    color: #e50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.35);
}

.btn-watchlist.in-watchlist:hover .icon-default {
    display: none;
}

.btn-watchlist.in-watchlist:hover .icon-hover {
    display: inline-block;
}

/* ===== BROWSE PAGE ===== */
.browse-page {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

/* Sidebar */
.browse-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #111;
    border-right: 1px solid #222;
    padding: 24px 20px;
    overflow-y: auto;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.tag-count {
    font-size: 0.7rem;
    background: var(--accent-red);
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 4px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    background: #1e1e1e;
    border: 1px solid #333;
    color: #ccc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    border-color: #555;
    color: #fff;
}

.chip.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.chip.small {
    padding: 3px 10px;
    font-size: 0.75rem;
}

.range-inputs {
    display: flex;
    gap: 8px;
}

.range-input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.range-input-wrap span {
    font-size: 0.7rem;
    color: #777;
}

.range-input-wrap input {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    padding: 6px 10px;
    font-size: 0.85rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.range-input-wrap input:focus {
    border-color: var(--accent-red);
}

.quick-ranges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-search-input {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    padding: 7px 12px;
    font-size: 0.85rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.tag-search-input:focus {
    border-color: var(--accent-red);
}

.tag-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.btn-reset {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    margin-top: auto;
}

.btn-reset:hover {
    border-color: #666;
    color: #fff;
}

/* Content area */
.browse-content {
    flex: 1;
    padding: 24px 32px;
    overflow: hidden;
}

.browse-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.browse-toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.browse-toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: #1e1e1e;
    border: 1px solid #333;
    color: #ccc;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
}

.filter-badge {
    background: var(--accent-red);
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 700;
}

.browse-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.result-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 8px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.active-chip {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #fff;
    border-radius: 20px;
    padding: 3px 8px 3px 12px;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.active-chip button {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0;
    display: flex;
    align-items: center;
}

.active-chip button:hover {
    color: #fff;
}

/* Grid */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.browse-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #141414;
    border: 1px solid #1e1e1e;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.browse-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.browse-card-cover {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #1a1a1a;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.browse-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    pointer-events: none;
}

.browse-card:hover .browse-card-cover img {
    transform: scale(1.05);
}

.browse-card-chapter-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.browse-card-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.85rem;
    padding: 3px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.browse-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.browse-card:hover .browse-card-overlay {
    opacity: 1;
}

.browse-card:hover .card-play-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.btn-read {
    background: var(--accent-red);
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.btn-read:hover {
    opacity: 0.85;
}

.browse-card-info {
    padding: 10px 12px;
}

.browse-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.browse-card-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browse-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.mini-tag {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    font-size: 0.65rem;
    padding: 1px 7px;
    color: #aaa;
}

/* Loading */
.browse-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    gap: 16px;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #222;
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.browse-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    gap: 16px;
    color: #666;
    text-align: center;
}

/* Pagination */
.browse-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #ccc;
    border-radius: 6px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #2a2a2a;
    color: #fff;
}

.page-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn.ellipsis {
    border: none;
    background: transparent;
    cursor: default;
    width: auto;
}

/* Mobile adjustments for browse */
@media (max-width: 768px) {
    .browse-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 2000;
        transform: translateX(-100%);
        width: 300px;
    }

    .browse-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1999;
        backdrop-filter: blur(2px);
    }

    .filter-toggle-btn {
        display: flex;
    }

    .browse-content {
        padding: 16px;
    }

    .browse-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
}

/* Mobile Format Picker */
.mobile-format-picker {
    display: none;
    margin: 80px 4% 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .mobile-format-picker {
        display: flex;
    }
}

.mobile-format-picker button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 0;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.mobile-format-picker button.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ===== SKELETON LOADING ===== */
@keyframes skeleton-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton-row {
    padding: 20px 4% 10px;
}

.skeleton-row-title {
    width: 180px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
    background-size: 600px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    margin-bottom: 14px;
}

.skeleton-pulse {
    background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
    background-size: 600px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
}

.skeleton-cards {
    display: flex;
    gap: 10px;
    overflow: hidden;
}

.skeleton-card {
    flex: 0 0 160px;
    height: 230px;
    border-radius: 8px;
    background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
    background-size: 600px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
}

.skeleton-card:nth-child(2) { animation-delay: 0.1s; }
.skeleton-card:nth-child(3) { animation-delay: 0.2s; }
.skeleton-card:nth-child(4) { animation-delay: 0.3s; }
.skeleton-card:nth-child(5) { animation-delay: 0.4s; }
.skeleton-card:nth-child(6) { animation-delay: 0.5s; }

/* ===== AMOLED THEME ===== */
body.theme-amoled {
    --bg-black: #000000;
    --bg-dark: #000000;
    --bg-glass: rgba(0, 0, 0, 0.8);
}
body.theme-amoled .nav-container.scrolled {
    background: #000000;
}
body.theme-amoled .admin-page {
    background: radial-gradient(circle at 10% 20%, rgba(5, 5, 5, 0.98) 0%, rgba(0, 0, 0, 0.99) 90%);
}

/* ===== UNREAD BADGE ===== */
.unread-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: #e50914;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid #666;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-red 2.5s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

/* ===== VIEW TOGGLE & LIST VIEW ===== */
.view-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}
.view-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.list-view-container .book-row,
.list-view-container .book-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: hidden;
}
.list-view-container .book-card {
    display: flex;
    flex-direction: row;
    height: 100px;
    width: 100%;
    max-width: 100%;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    flex-shrink: 0;
}
.list-view-container .book-cover-container {
    height: 100%;
    width: 70px;
    flex-shrink: 0;
}
.list-view-container .book-cover {
    border-radius: 8px 0 0 8px;
}
.list-view-container .book-info {
    padding: 10px 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    background: transparent;
    transform: none;
    position: static;
}
.list-view-container .book-title {
    font-size: 1rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
}
.list-view-container .book-author {
    font-size: 0.8rem;
}
/* For row carousels in list view, disable scroll arrows */
.list-view-container .scroll-btn {
}

.unread-badge.update-badge {
    background: #4da6ff;
    animation: pulse-blue 2.5s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(77, 166, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(77, 166, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(77, 166, 255, 0);
    }
}.reader-header {
    min-height: 60px;
    height: auto;
}
.reader-footer {
    top: auto;
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 15px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}
.reader-footer.hidden {
    transform: translateY(100%);
}

/* ==========================================================================
   Stats Admin
   ========================================================================== */

.stat-kpi-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 16px;
}

.stat-kpi-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-kpi-label {
    font-size: 0.72rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.stat-kpi-sub {
    font-size: 0.7rem;
    color: #5cb85c;
    margin-top: 4px;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 16px 18px;
}

.stat-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-card-title i {
    color: var(--accent-red);
    font-size: 0.95rem;
}

.stat-mini-kpi {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 10px 12px;
}

.stat-mini-val {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
}

.stat-mini-label {
    font-size: 0.68rem;
    color: #555;
}

@media (max-width: 768px) {
    .stat-card-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Admin Panel Styles
   ========================================================================== */

.admin-tab-btn {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent !important;
    border: 1px solid transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-align: left;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.admin-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
}

.admin-tab-btn.active {
    background-color: rgba(229, 9, 20, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(229, 9, 20, 0.3) !important;
}

.admin-tab-btn i {
    font-size: 1.3rem;
    color: inherit;
}

.admin-tab-btn.active i {
    color: var(--accent-red) !important;
}

/* Reset inner component heights since we control the flex layout */
.admin-content .users-page,
.admin-content .admin-page,
.admin-content .profile-page {
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 20px !important;
    background: transparent !important;
    overflow-y: auto !important;
    box-sizing: border-box;
}

/* specific resets */
.admin-content .admin-container {
    max-width: 1000px;
    margin: 0;
}

/* Mobile Responsiveness for Admin Panel */
@media (max-width: 768px) {
    .admin-panel {
        flex-direction: column !important;
    }
    
    .admin-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 10;
    }
    
    .admin-sidebar > div:first-child {
        display: none; /* Hide "Control Center" title on mobile to save space */
    }
    
    .admin-sidebar-nav {
        flex-direction: row !important;
        overflow-x: auto;
        padding: 10px 15px !important;
        gap: 10px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .admin-sidebar-nav::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    
    .admin-tab-btn {
        white-space: nowrap;
        width: auto !important;
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
        gap: 7px !important;
        flex-shrink: 0;
    }

    /* Group labels (Bibliothek / Scanner / System) break horizontal scroll — hide on mobile */
    .admin-group-label {
        display: none !important;
    }

    /* Content header: compact on mobile, hide description text */
    .admin-content-header {
        padding: 10px 16px !important;
    }

    .admin-content-header-desc {
        display: none !important;
    }

    .admin-content-header-icon {
        font-size: 1.1rem !important;
    }

    .admin-content .users-page,
    .admin-content .admin-page,
    .admin-content .profile-page {
        padding: 0 15px 20px 15px !important;
    }

    .admin-content h2 {
        font-size: 1.4rem !important;
    }

    .admin-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .admin-form-row {
        flex-direction: column !important;
    }

    .admin-input-grow {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Catalog letter bar — horizontal scroll on mobile instead of multi-row wrap */
    .catalog-letter-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .catalog-letter-bar::-webkit-scrollbar {
        display: none;
    }
    .catalog-letter-bar button {
        flex-shrink: 0;
    }
}
