/* ===== CSS Variables - Light Theme (default) ===== */
:root {
    --bg-primary: #fff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --accent-color: #4a6cf7;
    --accent-hover: #3a5ce5;
    --accent-light: rgb(74 108 247 / 10%);
    --card-bg: #fff;
    --card-shadow: 0 2px 8px rgb(0 0 0 / 8%);
    --card-shadow-hover: 0 4px 16px rgb(0 0 0 / 12%);
    --header-bg: #fff;
    --header-shadow: 0 1px 4px rgb(0 0 0 / 6%);
    --footer-bg: #212529;
    --footer-text: #adb5bd;
    --overlay-bg: rgb(0 0 0 / 40%);
    --side-menu-bg: #fff;
    --alert-success-bg: #d4edda;
    --alert-success-text: #155724;
    --alert-error-bg: #f8d7da;
    --alert-error-text: #721c24;
    --alert-info-bg: #d1ecf1;
    --alert-info-text: #0c5460;
    --input-bg: #fff;
    --input-border: #ced4da;
    --input-focus-border: #4a6cf7;
    --badge-bg: #e9ecef;
    --badge-text: #495057;
    --radius: 12px;
}

/* ===== Dark Theme ===== */
[data-theme='dark'] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --text-muted: #6c757d;
    --border-color: #2d3748;
    --accent-color: #5b7cfa;
    --accent-hover: #7b9aff;
    --accent-light: rgb(91 124 250 / 15%);
    --card-bg: #16213e;
    --card-shadow: 0 2px 8px rgb(0 0 0 / 30%);
    --card-shadow-hover: 0 4px 16px rgb(0 0 0 / 40%);
    --header-bg: #16213e;
    --header-shadow: 0 1px 4px rgb(0 0 0 / 30%);
    --footer-bg: #0f0f1a;
    --footer-text: #6c757d;
    --overlay-bg: rgb(0 0 0 / 60%);
    --side-menu-bg: #16213e;
    --alert-success-bg: #1e4620;
    --alert-success-text: #a3d9a5;
    --alert-error-bg: #4a1c24;
    --alert-error-text: #f5c6cb;
    --alert-info-bg: #1a3a4a;
    --alert-info-text: #b8daff;
    --input-bg: #1a1a2e;
    --input-border: #2d3748;
    --input-focus-border: #5b7cfa;
    --badge-bg: #2d3748;
    --badge-text: #b0b3b8;
    --radius: 12px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    caret-color: transparent;
    overflow-x: hidden;
}

input,
textarea,
select,
[contenteditable='true'] {
    caret-color: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.header-nav .nav-link,
.side-menu-header h3,
.page-title,
.post-card-title,
.single-post-title,
.category-filter a,
.comments-title,
.btn {
    font-family: Oxanium, sans-serif;
}

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

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#admin-container {
    max-width: none;
    border-bottom: 1px solid var(--border-color);
}

/* ===== Header ===== */
.site-header {
    background-color: var(--header-bg);
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition:
        background-color 0.3s ease,
        border-color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: 0 2px 12px rgb(0 0 0 / 8%);
}

[data-theme='dark'] .site-header.is-scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: 0 2px 12px rgb(0 0 0 / 30%);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 500;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgb(74 108 247 / 35%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background-color 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgb(74 108 247 / 50%);
    transform: translateY(-2px);
}

.back-to-top.is-visible:hover {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: var(--site-logo-height, 45px);
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    /* prevent overlap with logo/actions — reserve ~260px per side */
    max-width: calc(100% - 520px);
    white-space: nowrap;
    overflow: hidden;
}

.header-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    font-size: 1.2rem;
}

.header-nav .nav-link:hover {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header search bar */
.header-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 40px;
    transition:
        width 0.2s ease,
        border-color 0.2s ease;
}

.header-search:focus-within {
    border-color: var(--accent-color);
}

.header-search.is-expanded {
    width: 236px;
}

.header-search-input {
    background: none;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-primary);
    width: 0;
    font-family: inherit;
    opacity: 0;
    pointer-events: none;
    transition:
        width 0.2s ease,
        padding 0.2s ease,
        opacity 0.15s ease;
}

.header-search.is-expanded .header-search-input {
    padding: 8px 12px;
    width: 180px;
    opacity: 1;
    pointer-events: auto;
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

.header-search-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0;
    width: 38px;
    min-width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.header-search-btn:hover {
    color: var(--accent-color);
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Cart icon in header */
.header-cart-wrap {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: flex-start;
    overflow: visible;
}

.header-cart-btn {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.header-cart-btn:hover {
    background-color: var(--bg-secondary);
}

.header-cart-wrap .cart-badge {
    flex: 0 0 auto;
    margin: 4px 0 0 -14px;
    pointer-events: none;
    z-index: 1;
}

/* Hamburger button */
.hamburger-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 8px;
    transition: border-color 0.2s ease;
}

.hamburger-btn:hover {
    border-color: var(--accent-color);
}

.hamburger-btn .icon-img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Mobile nav - hidden on desktop */
.mobile-nav {
    display: none;
}

/* ===== Side Menu ===== */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background-color: var(--side-menu-bg);
    z-index: 201;
    transition:
        right 0.3s ease,
        background-color 0.3s ease;
    box-shadow: -4px 0 20px rgb(0 0 0 / 15%);
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

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

.side-menu-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.side-menu-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.side-menu-close:hover {
    color: var(--text-primary);
}

.side-menu-body {
    padding: 15px 20px;
}

.side-menu-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

.side-menu-user i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.side-menu-search {
    display: none;
}

.side-menu-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.side-menu-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 0;
    color: var(--text-primary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s ease;
}

.side-menu-link:hover {
    color: var(--accent-color);
}

.side-menu-link i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* Nav links in side menu (pages) — no icon, slightly larger */
.side-menu-nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: none;
    padding: 13px 0;
}

.side-menu-nav-link:hover {
    color: var(--accent-color);
}

/* Divider between nav links and utility links */
.side-menu-divider {
    height: 3px;
    background: var(--border-color);
    margin: 8px 0 4px;
    border-radius: 2px;
}

/* On desktop the header nav already shows all pages – hide the nav
   section from the side menu to avoid duplication */
@media (width >= 1101px) {
    .side-menu-nav,
    .side-menu-divider {
        display: none;
    }
}

/* ===== Hero Image ===== */

/* Use body prefix to keep specificity beatable by the custom \3c style>
   injected from admin settings (which also uses .hero-image selector).
   !important is kept only on layout properties that must never change. */
body .hero-image {
    display: block;
    width: 100% !important;
    height: 450px;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Hero image with overlay – needs relative positioning (already set above) */
.hero-image--has-overlay {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.hero-image-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.hero-image--slideshow {
    overflow: hidden;
}

.hero-image--slideshow .hero-image-swiper {
    width: 100%;
    max-width: var(--hero-slideshow-width);
    height: 100%;
    margin: 0 auto !important;
}

.hero-image--slideshow .swiper-slide,
.hero-image--slideshow .swiper-slide img {
    width: 100%;
    height: 100%;
}

.hero-image--slideshow .swiper-slide img {
    display: block;
    object-fit: cover;
}

.hero-image--slideshow .swiper-pagination {
    bottom: 14px;
}

.hero-image--slideshow .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.hero-image--slideshow .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgb(0 0 0 / 15%);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: toastSlideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.toast.toast-hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    color: inherit;
}

.toast-close:hover {
    opacity: 1;
}

.toast-success {
    background-color: var(--alert-success-bg);
    color: var(--alert-success-text);
    border-left: 4px solid var(--alert-success-text);
}

.toast-error {
    background-color: var(--alert-error-bg);
    color: var(--alert-error-text);
    border-left: 4px solid var(--alert-error-text);
}

.toast-info {
    background-color: var(--alert-info-bg);
    color: var(--alert-info-text);
    border-left: 4px solid var(--alert-info-text);
}

/* Legacy alert classes for backwards compatibility */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-success {
    background-color: var(--alert-success-bg);
    color: var(--alert-success-text);
}

.alert-error {
    background-color: var(--alert-error-bg);
    color: var(--alert-error-text);
}

.alert-info {
    background-color: var(--alert-info-bg);
    color: var(--alert-info-text);
}

@media (width <= 480px) {
    .toast-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}

/* ===== Main Content ===== */
main {
    flex: 1;
    padding: 30px 0;
}

.blog-container {
    max-width: 1000px;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 30px;
    margin-top: 20px;
    text-align: center;
    color: var(--text-primary);
}

/* ===== Blog Posts Grid ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.post-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition:
        box-shadow 0.3s ease,
        transform 0.2s ease,
        background-color 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.post-card-image-wrap {
    position: relative;
    overflow: hidden;
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg-tertiary);
    display: block;
}

.post-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-light), var(--bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.post-card-body {
    padding: 20px;
}

.post-card-category {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--accent-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.post-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-primary);
}

.post-card-title a:hover {
    color: var(--accent-color);
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    gap: 8px;
}

.post-card-meta i {
    margin-right: 4px;
}

.post-card-meta-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.post-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    font-family: inherit;
}

.post-like-btn:hover:not(:disabled) {
    color: #e74c3c;
}

.post-like-btn.liked {
    color: #e74c3c;
}

.post-like-btn.liked:hover {
    color: #c0392b;
}

.post-like-btn:disabled {
    cursor: default;
    opacity: 0.5;
}

.post-like-btn i {
    margin-right: 0;
    transition: transform 0.2s ease;
}

.post-like-btn:active:not(:disabled) i {
    transform: scale(1.3);
}

.post-card-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
    color: #fff;
    text-decoration: none;
    background: rgb(0 0 0 / 50%);
    border: none;
    border-radius: 50%;
    opacity: 0;
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.post-card-image-wrap:hover .post-card-edit-btn {
    opacity: 1;
}

.post-card-edit-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination a {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.pagination .current {
    background-color: var(--accent-color);
    color: #fff;
}

.pagination-ellipsis {
    padding: 8px 6px;
    color: var(--text-secondary);
    background: none;
    user-select: none;
}

/* ===== Single Post ===== */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-header {
    margin-bottom: 30px;
}

.single-post-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.single-post-meta i {
    margin-right: 4px;
}

.meta-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 4px;
}

.single-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.single-post-content [contenteditable] {
    -webkit-user-modify: read-only;
    outline: none;
    cursor: default;
    caret-color: transparent;
}

.single-post-content p,
.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6,
.single-post-content div,
.single-post-content span,
.single-post-content li,
.single-post-content blockquote {
    outline: none;
    caret-color: transparent;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin: 25px 0 15px;
}

.single-post-content p {
    margin-bottom: 15px;
}

.single-post-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.single-post-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    margin: 20px 0;
    background-color: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.single-post-content pre {
    background-color: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.single-post-content code {
    background-color: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ===== Comments ===== */
.comments-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.comments-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.comment {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: auto;
}

.comment-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.comment-actions a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-actions a:hover {
    color: var(--accent-color);
}

.comment-form {
    margin-top: 25px;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition:
        border-color 0.2s ease,
        background-color 0.3s ease;
}

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

/* ===== Page Content ===== */
.page-content {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px 30px;
}

.page-content h1 {
    font-size: 2rem;
    margin-top: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.page-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-body [contenteditable] {
    -webkit-user-modify: read-only;
    outline: none;
    cursor: default;
    caret-color: transparent;
}

.page-body p,
.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6,
.page-body div,
.page-body span,
.page-body li,
.page-body blockquote {
    outline: none;
    caret-color: transparent;
}

/* ===== Forms ===== */
.form-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.form-container h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label,
.editor-form-field > label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Legacy NeikiEditor is isolated by structure, not by duplicate editor CSS. */
.editor-form-field {
    margin-bottom: 18px;
}

.editor-form-field > .text-muted {
    display: block;
    margin-top: 6px;
}

.required-asterisk {
    color: #e53935;
    margin-left: 2px;
}

.form-group label.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-group label.checkbox-label input[type='checkbox'] {
    width: auto;
    margin: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        background-color 0.3s ease;
}

/* Sjednocení výšky textových inputů a selectů, aby byly ve form-row vertikálně zarovnané */
.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='password'],
.form-group input[type='url'],
.form-group input[type='tel'],
.form-group input[type='search'],
.form-group input[type='number'],
.form-group input[type='date'],
.form-group select {
    height: 44px;
    line-height: 1.2;
}

.form-group select {
    appearance: none;
    padding-right: 2.85rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
        linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

/* Řádek s color pickerem - swatch + hex input vedle sebe */
.color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Malý čtvercový swatch - přebije obecné .form-group input pravidlo */
.form-group .color-input.color-input,
input.color-input {
    width: 44px;
    height: 44px;
    padding: 2px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    background-color: var(--input-bg);
}

/* Odstranění defaultního paddingu nativního color swatch */
.color-input::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-input::-webkit-color-swatch {
    border: none;
    border-radius: 5px;
}

.color-input::-moz-color-swatch {
    border: none;
    border-radius: 5px;
}

/* Hex input - rozumná pevná šířka, ne 100% */
.color-hex-input {
    width: 130px;
    flex-shrink: 0;
}

.color-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.icon-color-groups {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.icon-color-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.icon-color-group__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-color-group .color-picker-row {
    justify-content: center;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--input-focus-border);
}

#eshopFilterEditForm #slug,
#eshopFilterEditForm #type {
    min-height: 44px;
    box-sizing: border-box;
}

.filter-values-table {
    table-layout: fixed;
}

.filter-values-table th,
.filter-values-table td {
    vertical-align: middle;
}

.filter-values-table th:nth-child(1),
.filter-values-table td:nth-child(1) {
    width: 22%;
}

.filter-values-table th:nth-child(2),
.filter-values-table td:nth-child(2) {
    width: auto;
}

.filter-values-table--color th:nth-child(3),
.filter-values-table--color td:nth-child(3),
.filter-values-table--choice th:nth-child(3),
.filter-values-table--choice td:nth-child(3) {
    width: 110px;
}

.filter-values-table--color th:nth-child(4),
.filter-values-table--color td:nth-child(4) {
    width: 110px;
}

.filter-values-table--color th:nth-child(5),
.filter-values-table--color td:nth-child(5),
.filter-values-table--choice th:nth-child(4),
.filter-values-table--choice td:nth-child(4) {
    width: 58px;
    text-align: center;
}

.filter-values-table td:last-child {
    overflow: visible;
}

.filter-values-table .form-control {
    min-width: 0;
}

.filter-value-color-input {
    width: 48px !important;
    height: 32px;
    min-width: 48px;
    padding: 2px !important;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    cursor: pointer;
}

.filter-value-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.filter-value-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 5px;
}

.filter-value-color-input::-moz-color-swatch {
    border: none;
    border-radius: 5px;
}

.btn.btn-sm.filter-value-remove {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    align-self: center;
    overflow: visible;
}

.btn.btn-sm.filter-value-remove .icon-img {
    width: 14px;
    height: 14px;
}

.product-filter-group {
    margin-bottom: 1rem;
}

.product-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.form-group label.product-filter-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 24px;
    margin: 0;
    line-height: 1.2;
    cursor: pointer;
}

.product-filter-option input[type='checkbox'] {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
}

.product-filter-color-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    min-width: 14px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    flex: 0 0 14px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
    width: auto; /* prevent flex-child stretch */
    align-self: flex-start; /* prevent stretch when inside a flex column */
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

.btn-primary .icon-img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Default PNG icon pack má vlastní barevné ikony – nefiltrovat */
.btn-primary .icon-img.icon-default {
    filter: none;
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-secondary .icon-img {
    filter: brightness(0);
}

/* Default PNG icon pack má vlastní barevné ikony – nefiltrovat */
.btn-secondary .icon-img.icon-default {
    filter: none;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
    color: #fff;
}

.btn-danger .icon-img {
    filter: brightness(0) invert(1);
}

/* Default PNG icon pack má vlastní barevné ikony – nefiltrovat */
.btn-danger .icon-img.icon-default {
    filter: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--badge-bg);
    color: var(--badge-text);
}

.badge-superadmin {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
}

.badge-admin {
    background-color: #dc3545;
    color: #fff;
}

.badge-editor {
    background-color: #fd7e14;
    color: #fff;
}

.badge-store-moderator {
    background-color: #0d6efd;
    color: #fff;
}

.badge-user {
    background-color: #28a745;
    color: #fff;
}

/* ===== User Avatar (admin table) ===== */
.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}

.user-avatar-placeholder {
    background: var(--badge-bg);
    color: var(--text-muted);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Sortable Table Headers ===== */
.th-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.th-sort:hover {
    color: inherit;
    opacity: 0.8;
}

.sort-arrows {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
}

.sort-arrows i {
    font-size: 10px;
    line-height: 0.5;
    color: var(--text-muted);
    opacity: 0.4;
    transition:
        opacity 0.15s ease,
        color 0.15s ease;
}

.sort-arrows i.active {
    color: var(--text-primary);
    opacity: 1;
}

.badge-published {
    background-color: #28a745;
    color: #fff;
}

/* ===== Page Type Badges ===== */
.page-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.page-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ===== Page Types Management Section ===== */
.page-types-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.page-types-section .admin-header {
    margin-bottom: 16px;
}

.page-types-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.page-types-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-type-selectable {
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.page-type-selectable:hover {
    transform: scale(1.05);
}

.page-type-selectable.selected {
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px var(--text-primary);
    transform: scale(1.08);
}

/* ===== Unified Color Palette ===== */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.color-dot {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease;
}

.color-dot:hover {
    transform: scale(1.15);
}

.color-dot.selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--text-primary);
    transform: scale(1.15);
}

/* ===== Color Bar (page types inline edit) ===== */
.color-bar {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.color-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-bar-inner .color-palette {
    margin-top: 0;
}

#colorBarDeleteBtn {
    height: 32px;
}

@media (width <= 768px) {
    .page-types-badges {
        gap: 6px;
    }
}

/* ===== Tags ===== */
.tag-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.tag-badge-sm {
    padding: 2px 8px;
    font-size: 0.7rem;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-color-preview {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 4px;
}

.tag-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.tag-color-option {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-color-option input[type='radio'] {
    display: none;
}

.tag-color-swatch {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 3px solid transparent;
    transition:
        border-color 0.2s ease,
        transform 0.15s ease;
}

.tag-color-option input[type='radio']:checked + .tag-color-swatch {
    border-color: var(--text-primary);
    transform: scale(1.1);
}

.tag-color-option:hover .tag-color-swatch {
    transform: scale(1.05);
}

.tag-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tag-select-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.tag-select-option {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.tag-select-option input[type='checkbox'] {
    display: none;
}

.tag-select-option .tag-badge {
    opacity: 0.5;
    transition:
        opacity 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.tag-select-option input[type='checkbox']:checked + .tag-badge {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--text-primary);
}

.tag-select-option:hover .tag-badge {
    opacity: 0.8;
    transform: scale(1.05);
}

.tag-select-option.disabled {
    cursor: not-allowed;
}

.tag-select-option.disabled .tag-badge {
    opacity: 0.25;
}

/* ===== Favicon Upload ===== */
.favicon-upload-area {
    padding: 15px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
}

.favicon-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.favicon-preview-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    background-color: var(--bg-tertiary);
    padding: 2px;
}

/* ===== Appearance Admin Page ===== */
.appearance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.appearance-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.appearance-card > form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.appearance-card > form > .mt-10 {
    margin-top: auto;
    padding-top: 12px;
}

.appearance-card .text-muted {
    display: block;
    text-align: center;
}

.appearance-card .mt-10 {
    text-align: center;
}

.appearance-card > form > .file-upload-wrap {
    text-align: center;
}

.appearance-card > form > .file-upload-wrap .file-upload-preview,
.appearance-card > form > .file-upload-wrap .file-upload-drop {
    display: inline-block;
}

.appearance-card-full {
    grid-column: 1 / -1;
}

.appearance-card-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.appearance-card-title i {
    margin-right: 6px;
    color: var(--accent-color);
}

.appearance-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 10px;
}

.appearance-row .appearance-col {
    flex: 0 1 auto;
}

.appearance-col {
    text-align: center;
}

.appearance-col label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.appearance-col .file-upload-preview,
.appearance-col .file-upload-drop {
    display: inline-block;
}

.appearance-preview {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 60px;
}

.appearance-preview img {
    max-height: 45px;
    width: auto;
}

.appearance-preview-light {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
}

.appearance-preview-dark {
    background-color: #1a1a2e;
    border: 1px solid #2d3748;
}

.appearance-preview-cover {
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto 8px;
    border: 1px solid var(--border-color);
    max-width: 480px;
}

.appearance-preview-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Color picker */
.color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.color-input {
    width: 50px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
    background: none;
}

.color-hex-input {
    width: 90px;
    padding: 8px 10px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.9rem;
}

.color-hex-input:focus {
    outline: none;
    border-color: var(--input-focus-border);
}

.color-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.color-preset-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        border-color 0.2s ease;
}

.color-preset-btn:hover {
    transform: scale(1.15);
    border-color: var(--text-primary);
}

/* Layout toggle */
.layout-toggle {
    display: flex;
    gap: 10px;
}

.layout-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.layout-option input {
    display: none;
}

.layout-option.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: var(--accent-light);
}

.layout-option:hover {
    border-color: var(--accent-color);
}

/* Custom CSS editor */
.custom-css-editor {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    tab-size: 4;
    resize: vertical;
    min-height: 150px;
}

/* ===== Theme Colors Editor ===== */
.theme-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.theme-tab {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.theme-tab.active {
    border-color: var(--accent-color);
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.theme-tab i {
    margin-right: 4px;
}

.theme-tab-content {
    display: none;
}

.theme-tab-content.active {
    display: block;
}

.theme-colors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (width <= 1100px) {
    .theme-colors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width <= 600px) {
    .theme-colors-grid {
        grid-template-columns: 1fr;
    }
}

.theme-color-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.theme-color-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-color-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.theme-color-picker {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    background: none;
}

.theme-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.theme-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

.theme-color-hex {
    width: 80px;
    padding: 5px 8px;
    font-size: 0.8rem;
    font-family: 'Courier New', Consolas, monospace;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    text-align: center;
}

.theme-color-reset {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-color-reset:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: var(--accent-light);
}

/* ===== Posts List Layout ===== */
.posts-grid.posts-list {
    grid-template-columns: 1fr;
    gap: 15px;
}

.posts-list .post-card {
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.posts-list .post-card-image-wrap {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
}

.posts-list .post-card-image,
.posts-list .post-card-image-placeholder {
    height: 100%;
    min-height: 180px;
}

.posts-list .post-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.posts-list .post-card-excerpt {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

@media (width <= 1100px) {
    .appearance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width <= 768px) {
    .appearance-grid {
        grid-template-columns: 1fr;
    }

    .appearance-row {
        flex-direction: column;
        align-items: center;
    }

    .color-picker-row {
        flex-direction: column;
        align-items: center;
    }

    .layout-toggle {
        flex-direction: column;
    }

    .posts-list .post-card {
        flex-direction: column;
    }

    .posts-list .post-card-image-wrap {
        width: 100%;
        min-width: 100%;
    }

    .posts-list .post-card-image,
    .posts-list .post-card-image-placeholder {
        height: 200px;
        min-height: 200px;
    }
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 25px 0;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgb(255 255 255 / 10%);
    color: var(--footer-text);
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== 404 ===== */
.not-found {
    text-align: center;
    padding: 60px 20px;
}

.not-found h1 {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.not-found p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* ===== Category Filter ===== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    margin-top: 20px;
    justify-content: center;
}

.category-filter.no-title {
    margin-top: 20px;
}

.category-filter a {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.category-filter a:hover,
.category-filter a.active {
    background-color: var(--accent-color);
    color: #fff;
}

/* ===== Admin Panel ===== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 250px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.admin-sidebar-title {
    padding: 0 20px 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-sidebar a .icon-img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.admin-sidebar-version {
    padding: 8px 0px 10px 0px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
    text-align: center;
    user-select: none;
}

.admin-sidebar a i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.admin-content {
    flex: 1;
    padding: 30px;
    overflow-x: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    font-size: 1.6rem;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.admin-table td {
    font-size: 0.95rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background-color: var(--accent-light);
}

.admin-actions {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    white-space: nowrap;
}

.admin-actions .btn {
    flex: 0 0 auto;
}

/* Sortable drag & drop */
.sortable-th {
    width: 40px;
}

.sortable-handle-cell {
    width: 50px;
    text-align: center;
    vertical-align: middle;
}

.sortable-handle {
    cursor: grab;
    width: 20px !important;
    height: 20px !important;
    opacity: 0.6;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.sortable-handle:hover {
    opacity: 1;
    transform: scale(1.1);
}

.sortable-handle:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.4;
    background-color: var(--accent-light) !important;
}

.sortable-ghost td {
    background-color: var(--accent-light) !important;
}

.sort-arrow {
    display: none !important;
}

/* Statistics page */
.stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.stats-period-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Custom date range panel */
.stats-custom-range {
    display: none;
    margin-bottom: 20px;
}

.stats-custom-range--open {
    display: block;
}

.stats-custom-range__form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 16px;
}

.stats-custom-range__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.stats-custom-range__input {
    padding: 6px 10px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Eshop overview */
.eshop-overview-periods {
    margin-bottom: 18px;
}

.eshop-overview-stats {
    grid-template-columns: repeat(4, 1fr);
}

.eshop-overview-stats .dashboard-stat-card {
    min-width: 0;
}

.eshop-overview-chart-card,
.eshop-overview-recent-card {
    margin-bottom: 24px;
}

.eshop-overview-chart-card neiki-chart {
    display: block;
    width: 100%;
    height: 320px;
}

.eshop-overview-recent-card .admin-table td {
    vertical-align: middle;
}

.stats-charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stats-chart-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s ease;
}

.stats-chart-card h3 {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.stats-chart-card canvas {
    height: 220px !important;
}

.stats-section {
    margin-bottom: 30px;
}

.stats-section--card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.stats-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Muted stat card for placeholder data */
.stat-card--muted {
    opacity: 0.5;
    pointer-events: none;
}

/* Traffic tab – 2-column grid */
.stats-traffic-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (width <= 768px) {
    .stats-traffic-2col {
        grid-template-columns: 1fr;
    }
}

.stats-table-wrap {
    overflow-x: auto;
}

.stats-export-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Traffic tracking toggle switch */
.tracking-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
    flex-shrink: 0;
}
.tracking-toggle--on {
    background: #28a745;
}

.tracking-toggle__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    pointer-events: none;
}
.tracking-toggle--on .tracking-toggle__knob {
    transform: translateX(20px);
}

/* Admin form */
.admin-form {
    max-width: 800px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.admin-form .form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Product image upload */
.product-image-upload input[type='file'] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.product-image-drop {
    width: 100%;
    min-height: 132px;
    border: 2px dashed var(--input-border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 22px;
    text-align: center;
    font-family: inherit;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.product-image-drop strong {
    font-size: 0.98rem;
}

.product-image-drop span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.product-image-drop:hover,
.product-image-drop.is-dragover {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.product-image-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.product-image-preview {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.product-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgb(0 0 0 / 68%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
}

.product-image-remove:hover {
    background: #dc3545;
}

.product-pdf-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 14px 52px 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
}

.product-pdf-card[hidden],
#pdfRemovalNotice[hidden] {
    display: none;
}

.product-pdf-card__icon {
    flex: none;
    color: #dc3545;
    font-size: 2rem;
}

.product-pdf-card__details {
    min-width: 0;
}

.product-pdf-card__details strong,
.product-pdf-card__details small {
    display: block;
}

.product-pdf-card__details strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-pdf-card__details small {
    margin-top: 3px;
    color: var(--text-muted);
}

.product-pdf-card__remove {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    background: rgb(0 0 0 / 68%);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.product-pdf-card__remove:hover {
    background: #dc3545;
}

/* Admin editor layout - settings card + standalone editor */
.admin-editor-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-form-compact {
    max-width: 100%;
}

.editor-standalone {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.editor-standalone label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.editor-standalone .tox-tinymce {
    min-height: 500px !important;
}

/* Desktop - form rows side by side */
@media (width >= 769px) {
    .admin-form-compact .form-row {
        display: flex;
        gap: 20px;
    }

    .admin-form-compact .form-row .form-group-flex {
        flex: 1;
        min-width: 0;
    }

    .admin-form-compact .form-row-checkboxes {
        gap: 30px;
    }

    .admin-form-compact .form-row-checkboxes .form-group-flex {
        flex: 0 0 auto;
    }
}

/* Mobile - stack everything vertically */
@media (width <= 768px) {
    .admin-form-compact .form-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .admin-form-compact .form-row-checkboxes {
        gap: 10px;
    }

    .editor-standalone .tox-tinymce {
        min-height: 300px !important;
    }
}

/* Admin dashboard stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgb(74 108 247 / 8%) 0%, rgb(74 108 247 / 3%) 100%);
    border: 1px solid rgb(74 108 247 / 15%);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-color);
}

[data-theme='dark'] .stat-card {
    background: linear-gradient(135deg, rgb(91 124 250 / 12%) 0%, rgb(91 124 250 / 5%) 100%);
    border-color: rgb(91 124 250 / 20%);
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* ===== Mobile hamburger toggle for admin sidebar ===== */
.admin-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1250;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}

/* ===== Admin Chatbot ===== */
.admin-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    font-family: inherit;
}

.admin-chatbot-toggle {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 10px 28px rgb(74 108 247 / 34%),
        0 3px 10px rgb(0 0 0 / 18%);
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.admin-chatbot-toggle:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow:
        0 14px 34px rgb(74 108 247 / 42%),
        0 4px 14px rgb(0 0 0 / 22%);
}

.admin-chatbot-toggle svg {
    width: 28px;
    height: 28px;
}

.admin-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(380px, calc(100vw - 32px));
    height: min(540px, calc(100vh - 120px));
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 22px 60px rgb(0 0 0 / 24%);
}

.admin-chatbot.is-open .admin-chatbot-panel {
    display: flex;
}

.admin-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.admin-chatbot-header strong,
.admin-chatbot-header span {
    display: block;
}

.admin-chatbot-header strong {
    font-family: Oxanium, sans-serif;
    font-size: 0.98rem;
}

.admin-chatbot-header span {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.3;
}

.admin-chatbot-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.admin-chatbot-close:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.admin-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-primary);
}

.admin-chatbot-message {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.admin-chatbot-message--user,
.admin-chatbot-message--loading,
.admin-chatbot-message--error {
    white-space: pre-wrap;
}

.admin-chatbot-message--assistant {
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.admin-chatbot-message--user {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: var(--accent-color);
    color: #fff;
}

.admin-chatbot-message--loading {
    color: var(--text-secondary);
}

.admin-chatbot-message--error {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
}

.admin-chatbot-message--markdown {
    overflow-wrap: normal;
    word-break: normal;
}

.admin-chatbot-message--markdown > :first-child {
    margin-top: 0;
}

.admin-chatbot-message--markdown > :last-child {
    margin-bottom: 0;
}

.admin-chatbot-message--markdown p,
.admin-chatbot-message--markdown ul,
.admin-chatbot-message--markdown ol,
.admin-chatbot-message--markdown pre,
.admin-chatbot-message--markdown blockquote,
.admin-chatbot-message--markdown table {
    margin: 0 0 0.72em;
}

.admin-chatbot-message--markdown h1,
.admin-chatbot-message--markdown h2,
.admin-chatbot-message--markdown h3,
.admin-chatbot-message--markdown h4 {
    margin: 0.85em 0 0.42em;
    font-family: Oxanium, sans-serif;
    line-height: 1.25;
}

.admin-chatbot-message--markdown h1 {
    font-size: 1.18rem;
}
.admin-chatbot-message--markdown h2 {
    font-size: 1.08rem;
}
.admin-chatbot-message--markdown h3 {
    font-size: 1rem;
}
.admin-chatbot-message--markdown h4 {
    font-size: 0.95rem;
}

.admin-chatbot-message--markdown ul,
.admin-chatbot-message--markdown ol {
    padding-left: 1.25rem;
}

.admin-chatbot-message--markdown li + li {
    margin-top: 0.28em;
}

.admin-chatbot-message--markdown a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.admin-chatbot-message--markdown code {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.08em 0.34em;
    font-family: Consolas, SFMono-Regular, 'Liberation Mono', Menlo, monospace;
    font-size: 0.86em;
}

.admin-chatbot-message--markdown pre {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #111827;
    color: #e5e7eb;
    padding: 10px 12px;
}

.admin-chatbot-message--markdown pre code {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    white-space: pre;
}

.admin-chatbot-message--markdown blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
    color: var(--text-secondary);
}

.admin-chatbot-message--markdown table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.admin-chatbot-message--markdown th,
.admin-chatbot-message--markdown td {
    border: 1px solid var(--border-color);
    padding: 5px 7px;
    text-align: left;
}

.admin-chatbot-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.admin-chatbot-form textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: vertical;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-primary);
    padding: 10px 11px;
    font: inherit;
    line-height: 1.35;
}

.admin-chatbot-form textarea:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.admin-chatbot-send {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--accent-color);
    color: #fff;
    cursor: pointer;
    flex: 0 0 44px;
}

.admin-chatbot-send:hover {
    background: var(--accent-hover);
}

.admin-chatbot-send:disabled {
    cursor: wait;
    opacity: 0.72;
}

.admin-chatbot-settings {
    padding: 8px 12px 10px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-align: center;
}

.admin-chatbot-settings:hover {
    color: var(--accent-color);
}

/* ===== Responsive ===== */
@media (width <= 1100px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header-logo {
        order: 1;
        flex: 1;
    }

    #admin-header-logo {
        order: 0 !important;
    }

    .header-actions {
        order: 2;
    }

    .header-search {
        display: none;
    }

    .side-menu-search {
        display: flex;
    }

    .header-nav {
        display: none;
    }

    .mobile-nav {
        display: none;
    }
}

/* ── General mobile breakpoint ── */
@media (width <= 768px) {
    .admin-chatbot {
        right: 18px;
        bottom: 86px;
    }

    .admin-chatbot-panel {
        bottom: 70px;
        height: min(520px, calc(100vh - 156px));
    }

    .hero-image {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
    }

    /* With overlay the height is driven by content, not a fixed value */
    .hero-image--has-overlay {
        height: auto !important;
        min-height: 0 !important;
        padding-block: clamp(2rem, 5vw, 3rem) !important;
    }

    .hero-image--slideshow {
        height: var(--hero-slideshow-height) !important;
        min-height: var(--hero-slideshow-height) !important;
        padding: 0 !important;
    }

    .page-title {
        font-size: 1.5rem;
        margin-top: 15px;
    }

    .page-content h1 {
        margin-top: 15px;
        font-size: 1.5rem;
    }

    .category-filter.no-title {
        margin-top: 15px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .single-post-title {
        font-size: 1.6rem;
    }

    /* Admin responsive */
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        z-index: 180;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .admin-sidebar.active {
        left: 0;
    }

    /* Disable ALL hover effects on mobile - only show active state */
    .admin-sidebar a:hover {
        background-color: transparent;
        color: var(--text-primary);
    }

    .admin-sidebar a.active,
    .admin-sidebar a.active:hover {
        background-color: var(--accent-light);
        color: var(--accent-color);
    }

    /* Use touch-action to improve scrolling behavior */
    .admin-sidebar {
        -webkit-overflow-scrolling: touch;
    }

    .admin-sidebar a {
        -webkit-tap-highlight-color: transparent;
    }

    .admin-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        right: 18px;
        bottom: 18px;
    }

    .admin-content {
        padding: 20px 15px;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody tr {
        display: block;
        margin-bottom: 12px;
        background-color: var(--card-bg);
        border-radius: 8px;
        box-shadow: var(--card-shadow);
        padding: 10px 14px;
    }

    .admin-table tbody td {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 6px 0;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }

    .admin-table tbody td[data-label] {
        justify-content: space-between;
    }

    .admin-table tbody td:last-child {
        border-bottom: none;
    }

    .admin-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: var(--text-secondary);
        text-align: left;
        margin-right: 10px;
        white-space: nowrap;
    }

    .admin-table tbody td[data-label='Akce'] {
        justify-content: flex-end;
    }

    .admin-table tbody td[data-label='Akce']::before {
        display: none;
    }

    .sortable-handle-cell {
        display: none !important;
    }

    .sort-arrow {
        display: inline-flex !important;
    }

    /* TinyMCE mobile fix */
    .tox-tinymce {
        min-height: 250px !important;
    }

    .tox .tox-toolbar__group {
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-charts-grid {
        grid-template-columns: 1fr;
    }

    .stats-chart-card {
        padding: 15px;
    }

    .stats-chart-card canvas {
        height: 160px !important;
    }

    .stats-chart-card h3 {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .admin-table tbody td i {
        display: none;
    }

    .admin-table tbody td[data-label='Akce'] i {
        display: inline;
    }

    .stats-export-btns {
        width: 100%;
    }

    .form-container {
        margin: 20px 15px;
        padding: 20px;
    }
}

@media (width <= 480px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px 8px;
    }

    .stat-card i {
        font-size: 1.3rem;
    }

    .stat-card .stat-number {
        font-size: 1.3rem;
    }

    .stat-card .stat-label {
        font-size: 0.7rem;
    }

    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .header-logo img {
        height: min(var(--site-logo-height, 45px), 35px);
    }
}

/* ===== Search Page ===== */
.search-page h1 {
    font-size: 1.8rem;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.search-page h1 i {
    margin-right: 8px;
    color: var(--accent-color);
}

.search-form {
    margin-bottom: 30px;
}

.search-form-inner {
    display: flex;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.search-form-inner:focus-within {
    border-color: var(--accent-color);
}

.search-form-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    border: none;
    outline: none;
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-family: inherit;
}

.search-form-input::placeholder {
    color: var(--text-muted);
}

.search-form-btn {
    padding: 14px 24px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.search-form-btn:hover {
    opacity: 0.9;
}

.search-results-info {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.search-result-card {
    display: flex;
    gap: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(0 0 0 / 12%);
}

.search-result-image {
    width: 200px;
    min-height: 150px;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-body {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-result-card:not(:has(.search-result-image)) .search-result-body {
    padding-left: 20px;
}

.search-result-title {
    font-size: 1.15rem;
    margin: 6px 0 8px;
}

.search-result-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.search-result-title a:hover {
    color: var(--accent-color);
}

.search-result-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.search-result-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (width <= 600px) {
    .search-result-card {
        flex-direction: column;
    }

    .search-result-image {
        width: 100%;
        min-height: 0;
        height: 180px;
    }

    .search-result-body {
        padding: 16px;
    }

    .search-form-btn span {
        display: none;
    }

    .search-page h1 {
        margin-top: 15px;
    }

    .search-results {
        margin-bottom: 30px;
    }
}

/* ===== Contact Form ===== */
.cf-wrapper {
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 520px;
    margin: 20px auto;
    box-shadow: var(--card-shadow);
}

.cf-wrapper h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cf-wrapper .cf-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.cf-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.cf-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cf-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.cf-group input,
.cf-group textarea {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.cf-group input::placeholder,
.cf-group textarea::placeholder {
    color: var(--text-muted);
}

.cf-group input:focus,
.cf-group textarea:focus {
    border-color: var(--accent-color);
}

.cf-group textarea {
    resize: vertical;
    min-height: 120px;
}

.cf-group-full {
    margin-bottom: 24px;
}

.cf-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.cf-submit:hover {
    opacity: 0.9;
}

@media (width <= 480px) {
    .cf-row {
        flex-direction: column;
        gap: 20px;
    }

    .cf-wrapper {
        padding: 24px;
    }
}

/* ===== FAQ ===== */
.faq-wrapper {
    max-width: 700px;
    margin: 20px auto;
}

.faq-wrapper > h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: var(--card-shadow);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    font-family: inherit;
    gap: 12px;
}

.faq-question i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

@media (width <= 480px) {
    .faq-question {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 16px 14px;
        font-size: 0.9rem;
    }
}

/* ===== Styled File Upload ===== */
.file-upload-wrap {
    position: relative;
}

.file-upload-wrap input[type='file'] {
    display: none;
}

/* Drop zone (empty state) */
.file-upload-drop {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
    background-color: var(--bg-secondary);
}

.file-upload-drop:hover,
.file-upload-drop.dragover {
    border-color: var(--accent-color);
    background-color: var(--accent-light);
}

.file-upload-drop-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 6px;
}

.file-upload-drop-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.file-upload-drop-text strong {
    color: var(--accent-color);
}

.file-upload-drop-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Preview with overlay (existing image) */
.file-upload-preview {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
}

.file-upload-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 55%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    color: #fff;
    gap: 4px;
    border-radius: inherit;
}

.file-upload-preview:hover .file-upload-preview-overlay {
    opacity: 1;
}

.file-upload-preview-overlay i {
    font-size: 1.4rem;
}

.file-upload-preview-overlay span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* File selected info bar */
.file-upload-info {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: var(--accent-light);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.file-upload-info.visible {
    display: flex;
}

.file-upload-info i {
    color: var(--accent-color);
}

.file-upload-info-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-upload-info-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.file-upload-info-remove:hover {
    color: var(--danger-color, #e74c3c);
}

/* Appearance-specific previews inside file-upload-preview */
.file-upload-preview .appearance-preview {
    margin-bottom: 0;
}

.file-upload-preview .appearance-preview-cover {
    margin-bottom: 0;
}

.file-upload-preview .favicon-preview {
    margin-bottom: 0;
}

/* Favicon preview enlarged for overlay */
.file-upload-preview .favicon-preview-img {
    width: 64px;
    height: 64px;
}

/* Avatar upload styled */
.avatar-upload-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.avatar-upload-wrap input[type='file'] {
    display: none;
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 55%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    color: #fff;
    gap: 2px;
}

.avatar-upload-wrap:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-overlay i {
    font-size: 1.3rem;
}

.avatar-upload-overlay span {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Avatar drop zone (no avatar) */
.avatar-upload-drop {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
    background-color: var(--bg-secondary);
    gap: 2px;
}

.avatar-upload-drop:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-light);
}

.avatar-upload-drop i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.avatar-upload-drop span {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
}

@media (width <= 768px) {
    .file-upload-drop {
        padding: 18px 12px;
    }

    .file-upload-preview-overlay {
        opacity: 1;
        background: rgb(0 0 0 / 35%);
    }

    .avatar-upload-overlay {
        opacity: 1;
        background: rgb(0 0 0 / 35%);
    }
}

/* ===== Profile Avatar ===== */
.profile-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 3px solid var(--accent-color);
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-placeholder i {
    font-size: 5rem;
    color: var(--text-muted);
}

/* ===== Avatar Crop Modal ===== */
.crop-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 70%);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.crop-modal-overlay.active {
    display: flex;
}

.crop-modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgb(0 0 0 / 30%);
}

.crop-modal h3 {
    margin: 0 0 16px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.crop-modal .croppie-container {
    margin: 0 auto;
}

.crop-modal .cr-slider-wrap {
    margin: 12px auto 0;
}

.crop-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.crop-modal-actions .btn {
    min-width: 100px;
}

/* ===== Utility ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.no-posts {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-posts i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: var(--text-muted);
}

/* ===== PNG Icon Images ===== */
.icon-img {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

.stat-card .icon-img {
    width: 2rem;
    height: 2rem;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.theme-toggle .icon-img {
    width: 18px;
    height: 18px;
}

.side-menu-link .icon-img {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

.admin-sidebar-toggle .icon-img {
    filter: brightness(0) saturate(100%) invert(100%) !important;
}

.side-menu-user .icon-img {
    width: 1.5rem;
    height: 1.5rem;
}

.btn .icon-img {
    width: 14px;
    height: 14px;
}

.btn-sm .icon-img {
    width: 14px;
    height: 14px;
}

.no-posts .icon-img {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-card-edit-btn .icon-img {
    width: 14px;
    height: 14px;
}

.post-card-image-placeholder .icon-img {
    width: 3rem;
    height: 3rem;
    opacity: 0.5;
}

.comments-title .icon-img {
    width: 1.2em;
    height: 1.2em;
}

.search-form-btn .icon-img {
    width: 16px;
    height: 16px;
}

.header-search-btn .icon-img {
    width: 1.5em;
    height: 1.5em;
}

.header-cart-btn .icon-img {
    width: 1.5em;
    height: 1.5em;
}

.appearance-card-title .icon-img {
    width: 1.2em;
    height: 1.2em;
}

.sortable-handle.icon-img {
    width: 16px;
    height: 16px;
    cursor: grab;
}

.comment-actions .icon-img {
    width: 14px;
    height: 14px;
}

.crop-modal h3 .icon-img {
    width: 1.2em;
    height: 1.2em;
}

@media (width <= 768px) {
    .stat-card .icon-img {
        width: 1.3rem;
        height: 1.3rem;
    }
}

/* ===== Admin Dashboard ===== */
.dashboard-date {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-stat-card {
    background: linear-gradient(135deg, rgb(74 108 247 / 8%) 0%, rgb(74 108 247 / 4%) 100%);
    border: 1px solid rgb(74 108 247 / 15%);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--card-shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgb(74 108 247 / 14%) 0%, rgb(74 108 247 / 7%) 100%);
    color: inherit;
}

[data-theme='dark'] .dashboard-stat-card {
    background: linear-gradient(135deg, rgb(91 124 250 / 12%) 0%, rgb(91 124 250 / 6%) 100%);
    border-color: rgb(91 124 250 / 20%);
}

[data-theme='dark'] .dashboard-stat-card:hover {
    background: linear-gradient(135deg, rgb(91 124 250 / 20%) 0%, rgb(91 124 250 / 10%) 100%);
    border-color: var(--accent-color);
}

.dashboard-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-stat-icon .icon-img {
    width: 24px;
    height: 24px;
}

.dashboard-stat-posts .dashboard-stat-icon {
    background: rgb(45 185 175 / 13%);
    border: 2px solid black;
}

.dashboard-stat-pages .dashboard-stat-icon {
    background: rgb(45 185 175 / 13%);
    border: 2px solid black;
}

.dashboard-stat-users .dashboard-stat-icon {
    background: rgb(45 185 175 / 13%);
    border: 2px solid black;
}

.dashboard-stat-comments .dashboard-stat-icon {
    background: rgb(45 185 175 / 13%);
    border: 2px solid black;
}

.dashboard-stat-categories .dashboard-stat-icon {
    background: rgb(45 185 175 / 13%);
    border: 2px solid black;
}

.dashboard-stat-tags .dashboard-stat-icon {
    background: rgb(45 185 175 / 13%);
    border: 2px solid black;
}

/* Dashboard stat icons – dark mode */
[data-theme='dark'] .dashboard-stat-posts .dashboard-stat-icon,
[data-theme='dark'] .dashboard-stat-pages .dashboard-stat-icon,
[data-theme='dark'] .dashboard-stat-users .dashboard-stat-icon,
[data-theme='dark'] .dashboard-stat-comments .dashboard-stat-icon,
[data-theme='dark'] .dashboard-stat-categories .dashboard-stat-icon,
[data-theme='dark'] .dashboard-stat-tags .dashboard-stat-icon {
    border: none;
}

.dashboard-stat-content {
    flex: 1;
    min-width: 0;
}

.dashboard-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.dashboard-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.dashboard-stat-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Engagement Row */
.dashboard-engagement-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-engagement-card {
    background: linear-gradient(135deg, rgb(74 108 247 / 8%) 0%, rgb(74 108 247 / 3%) 100%);
    border: 1px solid rgb(74 108 247 / 15%);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-engagement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-color);
}

[data-theme='dark'] .dashboard-engagement-card {
    background: linear-gradient(135deg, rgb(91 124 250 / 12%) 0%, rgb(91 124 250 / 5%) 100%);
    border-color: rgb(91 124 250 / 20%);
}

.dashboard-engagement-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-engagement-icon .icon-img {
    width: 20px;
    height: 20px;
}

.dashboard-engagement-icon.views {
    background: rgb(51 191 57 / 13%);
    border: 2px solid black;
}

.dashboard-engagement-icon.likes {
    background: rgb(51 191 57 / 13%);
    border: 2px solid black;
}

.dashboard-engagement-icon.activity {
    background: rgb(51 191 57 / 13%);
    border: 2px solid black;
}

.dashboard-engagement-icon.comments {
    background: rgb(51 191 57 / 13%);
    border: 2px solid black;
}

/* Dashboard engagement icons – dark mode */
[data-theme='dark'] .dashboard-engagement-icon.views,
[data-theme='dark'] .dashboard-engagement-icon.likes,
[data-theme='dark'] .dashboard-engagement-icon.activity,
[data-theme='dark'] .dashboard-engagement-icon.comments {
    border: none;
}

.dashboard-engagement-info {
    flex: 1;
    min-width: 0;
}

.dashboard-engagement-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.dashboard-engagement-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Content Grid */
.dashboard-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-card-link {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 500;
}

.dashboard-card-body {
    padding: 12px;
}

/* Dashboard List */
.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.dashboard-list-item:hover {
    background-color: var(--bg-secondary);
    color: inherit;
}

.dashboard-list-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent-light);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-list-content {
    flex: 1;
    min-width: 0;
}

.dashboard-list-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-list-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dashboard-list-badge {
    flex-shrink: 0;
}

.dashboard-list-views {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
    text-align: right;
}

/* Author Avatar */
.dashboard-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.dashboard-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-author-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-light);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Comments List */
.dashboard-comment-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.dashboard-comment-item:hover {
    background-color: var(--bg-secondary);
}

.dashboard-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.dashboard-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-comment-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-comment-content {
    flex: 1;
    min-width: 0;
}

.dashboard-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dashboard-comment-header strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.dashboard-comment-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dashboard-comment-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.dashboard-comment-post {
    font-size: 0.75rem;
    color: var(--accent-color);
}

/* Quick Actions */
.dashboard-quick-actions {
    margin-bottom: 30px;
}

.dashboard-quick-actions h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.dashboard-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    background: linear-gradient(135deg, rgb(74 108 247 / 8%) 0%, rgb(74 108 247 / 3%) 100%);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
    border: 1px solid rgb(74 108 247 / 15%);
}

.dashboard-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgb(74 108 247 / 15%) 0%, rgb(74 108 247 / 7%) 100%);
    color: var(--accent-color);
}

[data-theme='dark'] .dashboard-action-btn {
    background: linear-gradient(135deg, rgb(91 124 250 / 12%) 0%, rgb(91 124 250 / 5%) 100%);
    border-color: rgb(91 124 250 / 20%);
}

[data-theme='dark'] .dashboard-action-btn:hover {
    background: linear-gradient(135deg, rgb(91 124 250 / 22%) 0%, rgb(91 124 250 / 12%) 100%);
}

.dashboard-action-btn .icon-img {
    width: 28px;
    height: 28px;
}

/* Dashboard Responsive */
@media (width <= 1200px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (width <= 992px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-engagement-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width <= 768px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .eshop-overview-chart-card neiki-chart {
        height: 260px;
    }

    .dashboard-stat-card {
        padding: 14px;
        gap: 12px;
    }

    .dashboard-stat-icon {
        width: 40px;
        height: 40px;
    }

    .dashboard-stat-icon .icon-img {
        width: 20px;
        height: 20px;
    }

    .dashboard-stat-number {
        font-size: 1.4rem;
    }

    .dashboard-stat-detail {
        display: none;
    }

    .dashboard-engagement-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dashboard-engagement-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .dashboard-engagement-icon {
        width: 36px;
        height: 36px;
    }

    .dashboard-engagement-icon .icon-img {
        width: 18px;
        height: 18px;
    }

    .dashboard-engagement-number {
        font-size: 1.2rem;
    }

    .dashboard-engagement-label {
        font-size: 0.7rem;
    }

    .dashboard-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dashboard-action-btn {
        padding: 16px 10px;
        font-size: 0.8rem;
    }

    .dashboard-action-btn .icon-img {
        width: 24px;
        height: 24px;
    }
}

@media (width <= 480px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-stat-label {
        font-size: 0.75rem;
    }

    .dashboard-engagement-row {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-list-views {
        display: none;
    }

    .dashboard-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-action-btn span {
        font-size: 0.7rem;
    }
}

/* ===== Neiki Cookie Banner Theme Overrides ===== */
.neiki-cb {
    --ncb-bg: var(--card-bg);
    --ncb-text: var(--text-primary);
    --ncb-text-muted: var(--text-secondary);
    --ncb-border: var(--border-color);
    --ncb-accent: var(--accent-color);
    --ncb-accent-hover: var(--accent-hover);
    --ncb-btn-text: #fff;
    --ncb-btn-secondary-bg: var(--bg-secondary);
    --ncb-btn-secondary-text: var(--text-primary);
    --ncb-btn-secondary-hover: var(--bg-tertiary);
    --ncb-radius: var(--radius);
    --ncb-radius-sm: var(--radius);
    --ncb-backdrop: var(--overlay-bg);
    --ncb-toggle-bg: var(--bg-tertiary);
    --ncb-toggle-bg-active: var(--accent-color);
    --ncb-toggle-locked-bg: var(--bg-tertiary);
    --ncb-category-hover: var(--bg-secondary);
    --ncb-font: inherit;
}

/* ===== Theme Selection (admin/appearance.php) ===== */
.theme-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.theme-select-card {
    position: relative;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
    overflow: hidden;
}

.theme-select-card input[type='radio'] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-select-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--card-shadow-hover);
}

.theme-select-card.active,
.theme-select-card:has(input:checked) {
    border-color: var(--accent-color);
    background: var(--accent-light);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.theme-select-card__body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.theme-select-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.theme-select-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.theme-select-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.theme-select-card__badge {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--badge-bg);
    color: var(--badge-text);
}

.theme-select-card__badge--supports-dark {
    background: #1a1a2e;
    color: #e4e6eb;
}

.theme-select-card__badge--dark-only {
    background: #0d001a;
    color: #e9d5ff;
}

@media (width <= 600px) {
    .theme-select-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Appearance card – locked state (custom footer active) ===== */
.appearance-card--locked {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.appearance-card--locked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
    pointer-events: none;
}

.appearance-locked-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: var(--alert-info-bg);
    color: var(--alert-info-text);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    border-left: 4px solid var(--alert-info-text);
}

/* ===== Appearance section tabs + panels (WordPress-style) ===== */
.appearance-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.appearance-tab {
    padding: 10px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition:
        color 0.15s,
        background-color 0.15s;
    margin-bottom: -1px;
}

.appearance-tab:hover {
    color: var(--accent-color);
}

.appearance-tab.active {
    color: var(--accent-color);
    background-color: var(--card-bg);
    border-color: var(--border-color);
    border-bottom: 1px solid var(--card-bg);
}

.appearance-panel {
    display: none;
    animation: appearanceFade 0.2s ease;
}

.appearance-panel.active {
    display: block;
}

@keyframes appearanceFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.appearance-panel .appearance-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.appearance-panel .appearance-card-title svg {
    flex-shrink: 0;
    color: var(--accent-color);
    opacity: 0.9;
}

/* Badge for active sections */
.appearance-badge-active {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    vertical-align: middle;
    margin-left: 6px;
}

/* ===== Admin sidebar submenu (Appearance) ===== */
.admin-nav-item {
    position: relative;
}

.admin-submenu-caret {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

/* Submenu – skrytý accordion, stejný na PC i mobilu */
.admin-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

/* Otevřený accordion – Appearance */
.admin-nav-appearance--open + .admin-submenu {
    max-height: 800px;
}

.admin-nav-appearance--open .admin-submenu-caret {
    transform: rotate(180deg);
}

/* Otevřený accordion – Statistics */
.admin-nav-statistics--open + .admin-submenu {
    max-height: 200px;
}

.admin-nav-statistics--open .admin-submenu-caret {
    transform: rotate(180deg);
}

/* Otevřený accordion – Settings */
.admin-nav-settings--open + .admin-submenu {
    max-height: 400px;
}

.admin-nav-settings--open .admin-submenu-caret {
    transform: rotate(180deg);
}

/* OtevĹ™enĂ˝ accordion â€“ Plugins */
.admin-nav-plugins--open + .admin-submenu {
    max-height: 520px;
}

.admin-nav-plugins--open .admin-submenu-caret {
    transform: rotate(180deg);
}

.admin-sidebar .admin-submenu-link {
    display: block;
    padding: 8px 20px 8px 44px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition:
        background-color 0.15s,
        color 0.15s;
}

.admin-sidebar .admin-submenu-link:hover,
.admin-sidebar .admin-submenu-link.active {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

/* ===== Admin sidebar title + close button ===== */
.admin-sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 2px;
    line-height: 0;
}

.admin-sidebar-close:hover {
    color: var(--accent-color);
}

/* ===== Settings sections ===== */
.settings-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 18px;
}

.settings-info-box {
    background: var(--alert-info-bg);
    color: var(--alert-info-text);
    border-left: 4px solid var(--alert-info-text);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.settings-info-box a {
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== Appearance page – mobile sidebar close button ===== */
@media (width <= 768px) {
    .admin-sidebar-close {
        display: inline-flex;
    }
}

/* ===== Appearance landing grid (no section selected) ===== */
.appearance-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.appearance-landing-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition:
        background-color 0.15s,
        color 0.15s,
        border-color 0.15s,
        box-shadow 0.15s;
    gap: 10px;
}

.appearance-landing-card:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: var(--card-shadow-hover);
}

.appearance-landing-card svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ===== Appearance breadcrumb in h1 ===== */
.appearance-breadcrumb {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* ===== Icon Set selector cards (Appearance → Icon Sets) ===== */
.icon-set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.icon-set-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    background: var(--card-bg);
}

.icon-set-card input[type='radio'] {
    display: none;
}

.icon-set-card:hover {
    border-color: var(--accent-color);
}

.icon-set-card.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.icon-set-card__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.icon-set-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.icon-set-card__preview {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 4px;
}

.icon-set-table-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    width: 100%;
    max-width: min(100%, 1500px);
    box-sizing: border-box;
}

.icon-set-table-wrap .admin-table th,
.icon-set-table-wrap .admin-table td {
    min-width: 140px;
    white-space: nowrap;
}

.icon-set-table-wrap .admin-table th:first-child,
.icon-set-table-wrap .admin-table td:first-child {
    min-width: 120px;
    position: sticky;
    left: 0;
    background: var(--bg-secondary);
    z-index: 1;
}
.icon-set-table-wrap::-webkit-scrollbar {
    height: 6px;
}
.icon-set-table-wrap::-webkit-scrollbar-track {
    background: transparent;
}
.icon-set-table-wrap::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Lucide SVG icon colour for admin pages */
.admin-layout img.icon-lucide {
    filter: invert(30%) sepia(0%) saturate(0%) brightness(40%);
    opacity: 0.85;
}

[data-theme='dark'] .admin-layout img.icon-lucide {
    filter: invert(85%) sepia(0%) saturate(0%) brightness(90%);
    opacity: 0.9;
}

/* Default dark-mode tint for all other SVG icon sets (no user override set) */
.admin-layout img.icon-tabler,
.admin-layout img.icon-heroicons,
.admin-layout img.icon-phosphor,
.admin-layout img.icon-bootstrap,
.admin-layout img.icon-feather,
.admin-layout img.icon-ionicons,
.admin-layout img.icon-fontawesome,
.admin-layout img.icon-remix,
.admin-layout img.icon-material,
.admin-layout img.icon-boxicons {
    filter: invert(30%) sepia(0%) saturate(0%) brightness(40%);
    opacity: 0.85;
}

[data-theme='dark'] .admin-layout img.icon-tabler,
[data-theme='dark'] .admin-layout img.icon-heroicons,
[data-theme='dark'] .admin-layout img.icon-phosphor,
[data-theme='dark'] .admin-layout img.icon-bootstrap,
[data-theme='dark'] .admin-layout img.icon-feather,
[data-theme='dark'] .admin-layout img.icon-ionicons,
[data-theme='dark'] .admin-layout img.icon-fontawesome,
[data-theme='dark'] .admin-layout img.icon-remix,
[data-theme='dark'] .admin-layout img.icon-material,
[data-theme='dark'] .admin-layout img.icon-boxicons {
    filter: invert(85%) sepia(0%) saturate(0%) brightness(90%);
    opacity: 0.9;
}

/* ── Button icon colour overrides (higher specificity to beat admin-layout rules) ── */
.admin-layout .btn-primary img.icon-lucide,
.admin-layout .btn-primary img.icon-tabler,
.admin-layout .btn-primary img.icon-heroicons,
.admin-layout .btn-primary img.icon-phosphor,
.admin-layout .btn-primary img.icon-bootstrap,
.admin-layout .btn-primary img.icon-feather,
.admin-layout .btn-primary img.icon-ionicons,
.admin-layout .btn-primary img.icon-fontawesome,
.admin-layout .btn-primary img.icon-remix,
.admin-layout .btn-primary img.icon-material,
.admin-layout .btn-primary img.icon-boxicons,
[data-theme='dark'] .admin-layout .btn-primary img.icon-lucide,
[data-theme='dark'] .admin-layout .btn-primary img.icon-tabler,
[data-theme='dark'] .admin-layout .btn-primary img.icon-heroicons,
[data-theme='dark'] .admin-layout .btn-primary img.icon-phosphor,
[data-theme='dark'] .admin-layout .btn-primary img.icon-bootstrap,
[data-theme='dark'] .admin-layout .btn-primary img.icon-feather,
[data-theme='dark'] .admin-layout .btn-primary img.icon-ionicons,
[data-theme='dark'] .admin-layout .btn-primary img.icon-fontawesome,
[data-theme='dark'] .admin-layout .btn-primary img.icon-remix,
[data-theme='dark'] .admin-layout .btn-primary img.icon-material,
[data-theme='dark'] .admin-layout .btn-primary img.icon-boxicons {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.admin-layout .btn-danger img.icon-lucide,
.admin-layout .btn-danger img.icon-tabler,
.admin-layout .btn-danger img.icon-heroicons,
.admin-layout .btn-danger img.icon-phosphor,
.admin-layout .btn-danger img.icon-bootstrap,
.admin-layout .btn-danger img.icon-feather,
.admin-layout .btn-danger img.icon-ionicons,
.admin-layout .btn-danger img.icon-fontawesome,
.admin-layout .btn-danger img.icon-remix,
.admin-layout .btn-danger img.icon-material,
.admin-layout .btn-danger img.icon-boxicons,
[data-theme='dark'] .admin-layout .btn-danger img.icon-lucide,
[data-theme='dark'] .admin-layout .btn-danger img.icon-tabler,
[data-theme='dark'] .admin-layout .btn-danger img.icon-heroicons,
[data-theme='dark'] .admin-layout .btn-danger img.icon-phosphor,
[data-theme='dark'] .admin-layout .btn-danger img.icon-bootstrap,
[data-theme='dark'] .admin-layout .btn-danger img.icon-feather,
[data-theme='dark'] .admin-layout .btn-danger img.icon-ionicons,
[data-theme='dark'] .admin-layout .btn-danger img.icon-fontawesome,
[data-theme='dark'] .admin-layout .btn-danger img.icon-remix,
[data-theme='dark'] .admin-layout .btn-danger img.icon-material,
[data-theme='dark'] .admin-layout .btn-danger img.icon-boxicons {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.admin-layout .btn-secondary img.icon-lucide,
.admin-layout .btn-secondary img.icon-tabler,
.admin-layout .btn-secondary img.icon-heroicons,
.admin-layout .btn-secondary img.icon-phosphor,
.admin-layout .btn-secondary img.icon-bootstrap,
.admin-layout .btn-secondary img.icon-feather,
.admin-layout .btn-secondary img.icon-ionicons,
.admin-layout .btn-secondary img.icon-fontawesome,
.admin-layout .btn-secondary img.icon-remix,
.admin-layout .btn-secondary img.icon-material,
.admin-layout .btn-secondary img.icon-boxicons,
[data-theme='dark'] .admin-layout .btn-secondary img.icon-lucide,
[data-theme='dark'] .admin-layout .btn-secondary img.icon-tabler,
[data-theme='dark'] .admin-layout .btn-secondary img.icon-heroicons,
[data-theme='dark'] .admin-layout .btn-secondary img.icon-phosphor,
[data-theme='dark'] .admin-layout .btn-secondary img.icon-bootstrap,
[data-theme='dark'] .admin-layout .btn-secondary img.icon-feather,
[data-theme='dark'] .admin-layout .btn-secondary img.icon-ionicons,
[data-theme='dark'] .admin-layout .btn-secondary img.icon-fontawesome,
[data-theme='dark'] .admin-layout .btn-secondary img.icon-remix,
[data-theme='dark'] .admin-layout .btn-secondary img.icon-material,
[data-theme='dark'] .admin-layout .btn-secondary img.icon-boxicons {
    filter: brightness(0);
    opacity: 1;
}

/* Secondary action icons must remain legible in every dark admin theme. */
[data-theme='dark'] .admin-layout .btn-secondary .icon-img {
    filter: brightness(0) invert(1) !important;
    opacity: 1;
}

/* ===== Icon Position widget (Appearance → Icon Sets → Pozice ikon) ===== */
.icon-position-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.icon-position-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px 16px;
}

.icon-position-group__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* ── Widget: tři řady (top / middle / bottom) ── */
.icon-pos-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Řada nahoře a dole: input + "px" vedle sebe, horizontálně centrované */
.icon-pos-top,
.icon-pos-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

/* Neviditelný spacer pro vyvážení "px" na druhé straně – zarovná input na střed */
.icon-pos-unit-spacer {
    display: inline-block;
    width: 22px; /* stejná šířka jako .icon-pos-unit */
    flex-shrink: 0;
}

/* Střední řada: levý blok · náhled · pravý blok */
.icon-pos-middle {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Levý / pravý blok inputu se stejným flex layoutem */
.icon-pos-side {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Náhled ikonky – tečkovaný rámeček, bílé pozadí */
.icon-pos-preview {
    width: 72px;
    height: 72px;
    border: 2px dashed var(--accent-color);
    border-radius: 14px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
}

.icon-pos-preview img {
    width: 28px;
    height: 28px;
    display: block;
    transition: margin 0.12s ease;
}

/* Input pole — zaoblené, šedé pozadí, čísla centrovaná */
.icon-pos-input {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px; /* pill shape jak na obrázku */
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: center;
    appearance: textfield; /* skrýt šipky ve FF */
}

.icon-pos-input::-webkit-outer-spin-button,
.icon-pos-input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.icon-pos-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-light, rgb(74 108 247 / 15%));
}

/* "px" label */
.icon-pos-unit {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    width: 22px;
    flex-shrink: 0;
}

/* Hint pod widgetem */
.icon-pos-hint {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}

@media (width <= 600px) {
    .icon-position-groups {
        grid-template-columns: 1fr;
    }
}

/* Zachování starých tříd pro zpětnou kompatibilitu (přesměrováno na nové) */
.icon-position-widget {
    display: none;
}
.icon-position-row {
    display: none;
}
.icon-position-label {
    display: none;
}
.icon-position-input {
    display: none;
}

/* ===== Public Profile Page ===== */
.profile-page {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Header card */
.profile-header-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-header-avatar {
    flex-shrink: 0;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    display: block;
}

.profile-avatar-placeholder-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    border: 3px solid var(--accent-color);
}

.profile-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.profile-display-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.profile-username {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.profile-header-actions {
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-header-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.profile-header-actions .icon-img {
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 auto;
    vertical-align: middle;
}

/* The filled default message glyph has a smaller visual area than the user-edit glyph. */
.profile-message-action .icon-img {
    width: 1.2em;
    height: 1.2em;
}

/* Info list */
.profile-info-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 0 24px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    flex-shrink: 0;
}

.profile-info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* Sections */
.profile-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 24px 28px;
}

.profile-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.profile-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 16px 0;
}

/* Stats grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.profile-stat-card {
    background: var(--bg-secondary);
    border-radius: calc(var(--radius) - 4px);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.profile-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-color);
}

.profile-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Posts list */
.profile-posts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-post-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition:
        background-color 0.15s,
        border-color 0.15s;
}

.profile-post-item:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-color);
    color: inherit;
}

.profile-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-post-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Comments list */
.profile-comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-comment-item {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.profile-comment-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 6px;
}

.profile-comment-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-comment-meta a {
    color: var(--accent-color);
}

/* Side-menu user name link */
.side-menu-user-name {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.side-menu-user-name:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive */
@media (width <= 640px) {
    .profile-header-card {
        padding: 20px;
        gap: 16px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    /* Avatar + info vedle sebe, actions pod nimi celou šířkou */
    .profile-header-avatar {
        flex-shrink: 0;
    }

    .profile-header-info {
        flex: 1;
        min-width: 0;
    }

    .profile-header-actions {
        width: 100%;
        margin-left: 0;
        order: 3;
    }

    .profile-avatar-large,
    .profile-avatar-placeholder-large {
        width: 72px;
        height: 72px;
        font-size: 1.8rem;
    }

    .profile-display-name {
        font-size: 1.2rem;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-section {
        padding: 18px 16px;
    }
}

@media (width <= 400px) {
    .profile-header-card {
        padding: 16px;
    }

    .profile-avatar-large,
    .profile-avatar-placeholder-large {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        border-width: 2px;
    }

    .profile-display-name {
        font-size: 1.05rem;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-info-list {
        padding: 0 16px;
    }

    .profile-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 0;
    }

    .profile-info-value {
        text-align: left;
    }
}

/* ===== Job Offers Accordion (shortcode) ===== */
.job-offers-accordion {
    max-width: 780px;
    margin: 24px auto;
}

.job-offers-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-style: italic;
}

.job-acc-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--card-bg, #fff);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.job-acc-item--featured {
    border-color: rgb(245 158 11 / 45%);
    box-shadow: 0 0 0 2px rgb(245 158 11 / 12%);
}

.job-acc-item--open {
    box-shadow: var(--card-shadow-hover);
}

.job-acc-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--text-primary);
    transition: background 0.15s;
}

.job-acc-trigger:hover {
    background: var(--bg-secondary, rgb(0 0 0 / 4%));
}

.job-acc-title {
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.job-acc-dept {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--accent-light, rgb(74 108 247 / 10%));
    color: var(--accent-color, #4a6cf7);
}

.job-acc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--text-secondary, #666);
}

.job-acc-loc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.job-acc-tag {
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--bg-secondary, rgb(0 0 0 / 6%));
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary, #555);
}

.job-acc-tag--mode {
    background: rgb(34 197 94 / 10%);
    color: #16a34a;
}

.job-acc-chevron {
    flex-shrink: 0;
    color: var(--text-muted, #aaa);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
}

.job-acc-trigger[aria-expanded='true'] .job-acc-chevron {
    transform: rotate(180deg);
}

.job-acc-body {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border-color);
}

.job-acc-salary,
.job-acc-start {
    margin: 14px 0 8px;
    font-size: 0.92rem;
}

.job-acc-desc {
    font-size: 0.93rem;
    margin: 12px 0;
    color: var(--text-secondary, #555);
    line-height: 1.6;
}

.job-acc-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #666);
    margin: 16px 0 8px;
}

.job-acc-list {
    padding-left: 20px;
    margin: 0;
}

.job-acc-list li {
    padding: 3px 0;
    font-size: 0.9rem;
}

.job-acc-list--benefits li::marker {
    color: #16a34a;
}

.job-acc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.job-acc-detail-link {
    font-size: 0.85rem;
    color: var(--accent-color, #4a6cf7);
    text-decoration: none;
}

.job-acc-detail-link:hover {
    text-decoration: underline;
}

.job-acc-cta {
    font-size: 0.88rem;
    padding: 8px 20px;
}

.job-acc-cta-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.job-acc-btn-detail {
    font-size: 0.88rem;
    padding: 8px 20px;
}

.job-acc-section {
    margin-top: 16px;
}

.job-acc-cond-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.job-acc-cond-table tr td {
    padding: 5px 10px 5px 0;
    vertical-align: top;
}

.job-acc-cond-label {
    color: var(--text-secondary, #666);
    font-weight: 500;
    white-space: nowrap;
    min-width: 130px;
}

@media (width <= 600px) {
    .job-acc-meta {
        display: none;
    }
    .job-acc-trigger {
        padding: 14px 16px;
    }
    .job-acc-body {
        padding: 0 16px 16px;
    }
    .job-acc-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .job-acc-btn-detail,
    .job-acc-cta {
        text-align: center;
    }
    .job-acc-cond-table tr {
        display: grid;
    }
    .job-acc-cond-label {
        padding-bottom: 0;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #4a6cf7;
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a5ce5;
}

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

[data-theme='dark'] ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme='dark'] ::-webkit-scrollbar-thumb {
    background: #5b7cfa;
}

[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
    background: #7b9aff;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #4a6cf7 var(--bg-secondary);
}

[data-theme='dark'] * {
    scrollbar-color: #5b7cfa var(--bg-secondary);
}

/* ═══════════════════════════════════════════════════════════════════
   ESHOP – etapa 2
   ═══════════════════════════════════════════════════════════════════ */

/* Cart badge in side menu */
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    min-width: 1.3em;
    height: 1.3em;
    padding: 0 0.3em;
    margin-left: 0.4em;
    font-weight: 700;
    line-height: 1;
}

.header-cart-wrap .cart-badge {
    margin: 4px 0 0 -14px;
}

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.product-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.product-card-image-wrap {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-secondary);
}
.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.3;
}

.product-badge-sale {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #e53e3e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15em 0.5em;
    border-radius: 4px;
    text-transform: uppercase;
}
.product-card-body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}
.product-card-title {
    font-size: 1rem;
    margin: 0;
    line-height: 1.45;
}
.product-card-title a {
    color: var(--text);
    text-decoration: none;
}
.product-card-title a:hover {
    color: var(--accent);
}

.product-card-description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.product-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.45rem;
}
.product-card-stock {
    line-height: 1.2;
}
.product-card-purchase {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.35rem;
    min-width: 0;
}
.product-card-price {
    flex: 0 1 auto;
    min-width: 0;
    font-size: clamp(0.88rem, 1.45vw, 1.25rem);
    font-weight: 700;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    white-space: nowrap;
}
.product-card-cart-form {
    margin: 0;
    flex: 0 0 auto;
    transform: translateY(-3px);
}
.product-card-cart-form .btn {
    padding: 0.62rem 0.82rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.product-card-cart-form .btn .icon-img {
    width: 14px;
    height: 14px;
}
.product-card-cart-form .btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.price-sale {
    color: #e53e3e;
}
.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}
.price-lg {
    font-size: 1.4rem;
}

.coupon-box {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--border-color, var(--border));
    border-radius: 12px;
    background: var(--bg-secondary);
}

.coupon-box label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.coupon-box .form-control,
.coupon-box input[type='text'] {
    width: 100%;
    min-height: 42px;
    padding: 0.65rem 0.8rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font: inherit;
    box-shadow: inset 0 1px 2px rgb(15 23 42 / 4%);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.coupon-box .form-control:focus,
.coupon-box input[type='text']:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow:
        0 0 0 3px var(--accent-light),
        inset 0 1px 2px rgb(15 23 42 / 4%);
}

.coupon-box .form-control::placeholder,
.coupon-box input[type='text']::placeholder {
    color: var(--text-muted);
}

.coupon-box .btn {
    width: 100%;
    justify-content: center;
}
.stock-in {
    color: #38a169;
    font-size: 0.82rem;
}
.stock-out {
    color: #e53e3e;
    font-size: 0.82rem;
}

@media (width <= 520px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .product-card-body {
        padding: 0.85rem;
    }
}

@media (width <= 360px) {
    .product-card-purchase {
        gap: 0.35rem;
    }
    .product-card-price {
        font-size: 0.82rem;
    }
    .product-card-cart-form .btn {
        padding-inline: 0.62rem;
        font-size: 0.72rem;
    }
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

@media (width <= 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

.product-detail-main-img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    max-height: 480px;
}
.product-detail-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.product-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.15s;
    border: 2px solid transparent;
}
.product-thumb.active,
.product-thumb:hover {
    opacity: 1;
    border-color: var(--accent);
}
.product-detail-placeholder {
    aspect-ratio: 4/3;
    font-size: 5rem;
}

.product-detail-title {
    font-size: 1.7rem;
    margin: 0.5rem 0;
}
.product-detail-price {
    margin: 0.75rem 0;
}
.product-detail-stock {
    margin-bottom: 1rem;
}
.product-detail-description {
    margin-top: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.product-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.qty-input {
    width: 70px;
    padding: 0.4em 0.5em;
    border: 2px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.qty-input:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Cart */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
    gap: clamp(2rem, 4vw, 3.25rem);
    margin-top: 1.5rem;
    align-items: start;
}

@media (width <= 860px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-empty {
    text-align: center;
    padding: 3rem 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color, var(--border));
}
.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-name {
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary, var(--text));
}
.cart-item-name:hover {
    color: var(--accent-color, var(--accent));
}
.cart-item-unit-price {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cart-item-line-total {
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}
.btn-icon-danger {
    background: none;
    border: none;
    cursor: pointer;
    color: #e53e3e;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0 0.25rem;
}
.btn-icon-danger:hover {
    opacity: 0.7;
}
.cart-qty-form .qty-input {
    width: 60px;
}

.cart-summary {
    position: sticky;
    top: 96px;
    background: var(--card-bg);
    border: 1px solid var(--border-color, var(--border));
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow:
        0 18px 45px rgb(15 23 42 / 8%),
        var(--card-shadow);
}

.cart-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    color: var(--text-secondary);
}

.cart-summary-row strong {
    color: var(--text-primary, var(--text));
    font-size: 1.05rem;
    white-space: nowrap;
}
.cart-summary-total {
    border-top: 2px solid var(--border-color, var(--border));
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    font-size: 1.1rem;
}

.cart-summary-note {
    border-top: 1px solid var(--border-color, var(--border));
    margin-top: 0.15rem;
    padding-top: 0.85rem;
}

.cart-summary-note span:last-child {
    max-width: 12rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.35;
    text-align: right;
}

.cart-summary-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.cart-summary-actions .btn,
.cart-summary > form .btn {
    width: 100%;
    justify-content: center;
}

.cart-summary > form.mt-10 {
    margin-top: 0.75rem;
}
.btn-ghost {
    background: none;
    color: var(--text-muted);
    border: 1px solid var(--border-color, var(--border));
}
.btn-ghost:hover {
    background: var(--bg-secondary);
}
.btn-block {
    width: 100%;
}
.btn-sm {
    padding: 0.3em 0.7em;
    font-size: 0.85rem;
}
.mt-10 {
    margin-top: 0.625rem;
}

@media (width <= 860px) {
    .cart-summary {
        position: static;
    }
}

@media (width <= 640px) {
    .cart-item {
        grid-template-columns: 72px 1fr;
        align-items: start;
    }

    .cart-item-image img {
        width: 72px;
        height: 72px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
        width: 100%;
        padding-left: 88px;
    }
}

@media (width <= 768px) {
    .admin-sidebar-toggle {
        width: 62px;
        height: 62px;
        right: 18px;
        bottom: 18px;
        border-radius: 50%;
        font-size: 1.35rem;
    }
}

@media (width <= 540px) {
    neiki-assistant:not([open]) {
        bottom: 76px !important;
    }
}

/* Checkout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}

@media (width <= 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--card-shadow);
}
.checkout-section h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.saved-addresses {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.saved-address-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.saved-address-option:hover {
    background: var(--bg-secondary);
}
.saved-address-option input {
    margin-top: 3px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-bottom: 0.4rem;
    cursor: pointer;
}
.shipping-option:hover {
    background: var(--bg-secondary);
}
.shipping-option-label {
    flex: 1;
}
.shipping-option-price {
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (width <= 520px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
.form-check {
    margin-top: 0.5rem;
}
.form-check label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Order detail */
.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}

@media (width <= 860px) {
    .order-detail-layout {
        grid-template-columns: 1fr;
    }
}

.order-confirmation-banner {
    text-align: center;
    padding: 2.5rem 1rem;
}
.order-confirmation-banner svg,
.order-confirmation-banner img {
    font-size: 3rem;
}

.order-status-badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.status-pending {
    background: #fef3c7;
    color: #92400e;
}
.status-paid {
    background: #d1fae5;
    color: #065f46;
}
.status-processing {
    background: #dbeafe;
    color: #1e3a8a;
}
.status-shipped {
    background: #e0e7ff;
    color: #3730a3;
}
.status-delivered {
    background: #d1fae5;
    color: #065f46;
}
.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}
.status-refunded {
    background: #f3f4f6;
    color: #374151;
}

.order-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.order-items-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
}
.order-items-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.order-items-table a {
    color: var(--accent);
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb span {
    color: var(--text-muted);
}

/* Eshop container base */
.eshop-container {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Eshop filter panel + product listing layout */
.eshop-layout {
    display: grid;
    grid-template-columns: minmax(268px, 300px) 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}

@media (width <= 860px) {
    .eshop-layout {
        grid-template-columns: 1fr;
    }
}

/* ---- Mobile toggle button ---- */
.eshop-filter-toggle {
    display: none;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 0.95rem;
    margin-bottom: 1rem;
    background: var(--card-bg);
    border: 1px solid rgb(127 139 161 / 24%);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 14px 34px rgb(15 23 42 / 10%);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.eshop-filter-toggle:hover {
    border-color: rgb(74 108 247 / 45%);
    box-shadow: 0 18px 42px rgb(15 23 42 / 14%);
    transform: translateY(-1px);
}

.eshop-filter-toggle .icon-img,
.eshop-filter-toggle img {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 5px 10px var(--accent-light));
}
.eshop-filter-toggle span:first-of-type {
    flex: 1;
    text-align: left;
}

/* ---- Active-filter count badge ---- */
.eshop-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgb(18 185 129 / 25%);
}

.eshop-filter-overlay {
    display: none;
}

/* ---- Panel shell ---- */
.eshop-filter-panel {
    --filter-surface: rgb(255 255 255 / 82%);
    --filter-line: rgb(127 139 161 / 18%);
    --filter-soft: rgb(74 108 247 / 8%);
    --filter-ink: var(--text-primary);

    position: sticky;
    top: 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgb(127 139 161 / 22%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgb(15 23 42 / 12%);
    backdrop-filter: blur(18px);
    isolation: isolate;
}

/* ---- Header ---- */
.eshop-filter-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 72px;
    padding: 1rem 1.05rem 0.95rem;
    border-bottom: 1px solid var(--filter-line);
    background: rgb(255 255 255 / 34%);
}

.eshop-filter-head-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    color: var(--text-primary);
}

.eshop-filter-head-title .icon-img,
.eshop-filter-head-title img {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 12px 24px var(--accent-light);
}

.eshop-filter-reset {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: rgb(74 108 247 / 9%);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
    white-space: nowrap;
}

.eshop-filter-reset:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-1px);
}

.eshop-filter-close {
    display: none;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgb(127 139 161 / 12%);
    font-size: 1.55rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.eshop-filter-close:hover {
    background: rgb(74 108 247 / 12%);
    color: var(--accent-color);
}

/* ---- Body / groups ---- */
.eshop-filter-body {
    display: flex;
    flex-direction: column;
    padding: 0.35rem;
}

.eshop-filter-group {
    margin: 0;
    padding: 1rem 0.8rem;
    border-bottom: 1px solid var(--filter-line);
}
.eshop-filter-group:last-child {
    border-bottom: none;
}

/* Collapsible section header */
.eshop-filter-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    list-style: none;
    cursor: pointer;
    min-height: 32px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--filter-ink);
    user-select: none;
    outline: none;
}
.eshop-filter-group > summary::-webkit-details-marker {
    display: none;
}

.eshop-filter-group > summary::after {
    content: '';
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentcolor;
    border-bottom: 2px solid currentcolor;
    transform: rotate(45deg);
    transition: transform 0.22s ease;
    opacity: 0.55;
    margin-bottom: 3px;
}
.eshop-filter-group[open] > summary::after {
    transform: rotate(-135deg);
    margin-bottom: -3px;
}

.eshop-filter-group > summary:focus-visible {
    color: var(--accent-color);
    outline: 3px solid var(--accent-light);
    outline-offset: 4px;
    border-radius: 8px;
}
.eshop-filter-content {
    margin-top: 0.75rem;
}

/* ---- Stock switch (flat, no collapse) ---- */
.eshop-filter-group--flat {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.eshop-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    min-height: 44px;
    padding: 0.25rem 0.15rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
}
.eshop-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.eshop-switch-track {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgb(127 139 161 / 22%);
    box-shadow: inset 0 0 0 1px rgb(127 139 161 / 20%);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.eshop-switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 14px rgb(15 23 42 / 26%);
    transition: transform 0.2s ease;
}

.eshop-switch input:checked + .eshop-switch-track {
    background: var(--accent-color);
    box-shadow: 0 9px 22px rgb(18 185 129 / 20%);
}
.eshop-switch input:checked + .eshop-switch-track::after {
    transform: translateX(20px);
}

.eshop-switch input:focus-visible + .eshop-switch-track {
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ---- Color swatches ---- */
.eshop-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.eshop-color-swatch {
    position: relative;
    cursor: pointer;
    line-height: 0;
}
.eshop-color-swatch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.eshop-color-swatch span {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgb(255 255 255 / 86%);
    box-shadow:
        0 0 0 1px rgb(127 139 161 / 24%),
        0 8px 18px rgb(15 23 42 / 12%);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}
.eshop-color-swatch:hover span {
    transform: translateY(-2px) scale(1.04);
}

.eshop-color-swatch.is-selected span,
.eshop-color-swatch input:checked + span {
    border-color: #fff;
    box-shadow:
        0 0 0 3px var(--accent-color),
        0 12px 24px rgb(15 23 42 / 16%);
}

/* checkmark on selected swatch */
.eshop-color-swatch.is-selected::before,
.eshop-color-swatch:has(input:checked)::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 47%;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    filter: drop-shadow(0 0 1px rgb(0 0 0 / 50%));
    pointer-events: none;
}

/* ---- Pill chips (brand / choice attributes) ---- */
.eshop-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.eshop-filter-pill {
    position: relative;
    cursor: pointer;
}
.eshop-filter-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.eshop-filter-pill span {
    display: inline-block;
    min-height: 36px;
    padding: 0.5rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgb(127 139 161 / 20%);
    background: rgb(255 255 255 / 50%);
    color: var(--text-primary);
    font-size: 0.83rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 6px 16px rgb(15 23 42 / 5%);
    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.eshop-filter-pill:hover span {
    border-color: rgb(74 108 247 / 45%);
    background: rgb(74 108 247 / 8%);
    transform: translateY(-1px);
}

.eshop-filter-pill.is-selected span,
.eshop-filter-pill input:checked + span {
    background: var(--accent-color);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 26px rgb(74 108 247 / 22%);
}

.eshop-filter-pill input:focus-visible + span {
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ---- Price slider + inputs ---- */
.eshop-price-slider {
    margin: 0.75rem 0.4rem 1.25rem;
}

.eshop-price-slider .noUi-connect {
    background: var(--accent-color);
}

.eshop-price-slider .noUi-handle:focus,
.eshop-price-slider .noUi-handle:hover {
    border-color: var(--accent-color);
}

.eshop-price-inputs {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.eshop-price-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.eshop-price-field > span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eshop-price-inputs input {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.eshop-price-inputs input:hover {
    border-color: color-mix(in srgb, var(--accent-color) 38%, var(--border-color));
    background: var(--bg-primary);
}

.eshop-price-inputs input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.eshop-price-sep {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-weight: 700;
    line-height: 2.65rem;
}

/* ---- Sort select ---- */
.eshop-select-wrap {
    position: relative;
}

.eshop-select-wrap::after {
    content: '';
    position: absolute;
    right: 1.05rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    transition: border-color 0.16s ease;
}

.eshop-select-wrap select {
    width: 100%;
    min-height: 2.75rem;
    appearance: none;
    padding: 0.55rem 2.85rem 0.55rem 0.9rem;
    border-radius: 0.65rem;
    line-height: 1.35;
    font-weight: 700;
    text-overflow: ellipsis;
    background-color: var(--card-bg);
    cursor: pointer;
}

.eshop-select-wrap:hover::after,
.eshop-select-wrap:focus-within::after {
    border-color: var(--accent-color);
}

.eshop-select-wrap select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ---- Actions footer ---- */
.eshop-filter-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.05rem 1.15rem;
    border-top: 1px solid var(--filter-line);
    background: rgb(255 255 255 / 42%);
}

.eshop-filter-apply {
    min-height: 46px;
    border-radius: 8px !important;
    background: var(--accent-color) !important;
    border: none !important;
    font-weight: 900;
    box-shadow: 0 16px 34px rgb(74 108 247 / 24%);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.eshop-filter-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgb(74 108 247 / 28%);
}

.eshop-filter-clear {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}
.eshop-filter-clear:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

@media (width <= 860px) {
    .eshop-filter-toggle {
        display: flex;
    }
    .eshop-filter-close {
        display: block;
    }

    .eshop-filter-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 88%;
        max-width: 360px;
        height: 100%;
        z-index: 180;
        border-radius: 0;
        box-shadow: 20px 0 60px rgb(0 0 0 / 25%);
        transform: translateX(-104%);
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .eshop-filter-panel.active {
        transform: translateX(0);
    }

    /* scrollable body, pinned footer on mobile off-canvas */
    .eshop-filter-body {
        flex: 1;
        overflow-y: auto;
    }
    .eshop-filter-actions {
        position: sticky;
        bottom: 0;
    }

    .eshop-filter-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgb(15 23 42 / 48%);
        backdrop-filter: blur(5px);
        z-index: 170;
    }
    .eshop-filter-overlay.active {
        display: block;
    }
}

[data-theme='dark'] .eshop-filter-toggle,
[data-theme='dark'] .eshop-filter-panel {
    background: var(--card-bg);
    border-color: rgb(148 163 184 / 18%);
    box-shadow: 0 24px 60px rgb(0 0 0 / 34%);
}

[data-theme='dark'] .eshop-filter-panel {
    --filter-line: rgb(148 163 184 / 16%);
}

[data-theme='dark'] .eshop-filter-head,
[data-theme='dark'] .eshop-filter-actions {
    background: rgb(15 23 42 / 22%);
}

[data-theme='dark'] .eshop-filter-pill span,
[data-theme='dark'] .eshop-price-inputs input,
[data-theme='dark'] .eshop-select-wrap select {
    background: rgb(15 23 42 / 34%);
    border-color: rgb(148 163 184 / 20%);
}

[data-theme='dark'] .status-pending {
    background: #78350f;
    color: #fde68a;
}
[data-theme='dark'] .status-paid {
    background: #064e3b;
    color: #6ee7b7;
}
[data-theme='dark'] .status-processing {
    background: #1e3a8a;
    color: #bfdbfe;
}
[data-theme='dark'] .status-shipped {
    background: #312e81;
    color: #c7d2fe;
}
[data-theme='dark'] .status-delivered {
    background: #064e3b;
    color: #6ee7b7;
}
[data-theme='dark'] .status-cancelled {
    background: #7f1d1d;
    color: #fecaca;
}
[data-theme='dark'] .status-refunded {
    background: #1f2937;
    color: #d1d5db;
}

/* Role and registry badges remain aligned in the users table. */
.admin-user-role-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Presentation-only badges loaded from cms-badge-registry.json. */
.badge.registry-badge {
    background-color: var(--registry-badge-color);
    color: #fff;
}

/* Settings import/export */
.settings-transfer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 960px;
}

.settings-transfer-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 26px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.settings-transfer-card-export {
    border-top: 3px solid var(--accent-color);
}

.settings-transfer-card-import {
    border-top: 3px solid #d68910;
}

.settings-transfer-icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent-color) 12%, transparent);
    border-radius: 12px;
}

.settings-transfer-icon .icon-img {
    width: 23px;
    height: 23px;
}

.settings-transfer-card h2,
.settings-transfer-card p {
    margin: 0;
}

.settings-transfer-card h2 {
    font-size: 1.15rem;
}

.settings-transfer-card p,
.settings-transfer-upload small {
    color: var(--text-secondary);
    line-height: 1.55;
}

.settings-transfer-warning {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    color: var(--text-primary);
    background: rgb(214 137 16 / 12%);
    border: 1px solid rgb(214 137 16 / 38%);
    border-radius: 8px;
    line-height: 1.45;
}

.settings-transfer-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 14px;
}

.settings-transfer-upload {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

.settings-transfer-upload input[type='file'] {
    max-width: 100%;
}

.settings-transfer-confirmation {
    font-size: 0.92rem;
}

@media (width <= 768px) {
    .settings-transfer {
        grid-template-columns: 1fr;
    }
}

/* ===== Private messages ===== */
.side-menu-messages {
    position: relative;
}

.message-alert-icon {
    width: 1.15rem;
    height: 1.15rem;
    margin-left: auto;
    display: inline-flex;
    flex: 0 0 auto;
}

.message-alert-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.hamburger-btn {
    position: relative;
}

.message-alert-icon-hamburger {
    position: absolute;
    top: -0.28rem;
    right: -0.28rem;
    width: 0.9rem;
    height: 0.9rem;
    margin: 0;
}
.message-alert-icon[hidden] {
    display: none;
}
.messages-page {
    max-width: 1080px;
    margin: 0 auto;
}

.messages-layout {
    display: grid;
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
    min-height: 580px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.messages-sidebar {
    border-right: 1px solid var(--border-color);
    background: var(--bg-secondary);
}
.messages-sidebar-title,
.messages-conversation-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-color);
}
.messages-sidebar-title-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.messages-sidebar-title h1,
.messages-conversation-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}
.messages-delete-selected {
    flex: 0 0 auto;
}
.messages-delete-selected:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.messages-thread-list {
    display: flex;
    flex-direction: column;
}
.messages-thread-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-color);
}
.messages-thread-row:hover,
.messages-thread-row.is-active {
    background: var(--accent-light);
}
.messages-thread-select {
    display: flex;
    align-items: center;
    padding: 0 0 0 14px;
    cursor: pointer;
}
.messages-thread-select input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
    cursor: pointer;
}
.messages-thread {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 12px;
    padding: 14px 16px 14px 12px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}
.messages-thread:hover,
.messages-thread.is-active {
    color: inherit;
    background: transparent;
}
.messages-thread-avatar,
.messages-conversation-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}
.messages-thread-content {
    min-width: 0;
    flex: 1;
}
.messages-thread-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.messages-thread-name {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.messages-thread-time,
.message-time {
    color: var(--text-muted);
    font-size: 0.72rem;
    white-space: nowrap;
}
.messages-thread-preview {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.messages-thread-unread {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--accent-color);
    flex: 0 0 auto;
}
.messages-conversation {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.messages-conversation-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.messages-conversation-meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.messages-conversation-meta a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
}
.messages-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    overflow-y: auto;
    background: var(--card-bg);
    flex: 1;
}
.message-bubble {
    align-self: flex-start;
    max-width: min(82%, 560px);
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px 16px 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.message-bubble.is-own {
    align-self: flex-end;
    color: #fff;
    border-color: var(--accent-color);
    border-radius: 16px 4px 16px 16px;
    background: var(--accent-color);
}
.message-bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.message-bubble .message-time {
    display: block;
    margin-top: 5px;
    color: inherit;
    opacity: 0.72;
    text-align: right;
}
.messages-compose {
    padding: 16px 22px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}
.messages-compose textarea {
    width: 100%;
    min-height: 92px;
    padding: 12px 14px;
    resize: vertical;
    color: var(--text-primary);
    border: 1px solid var(--input-border);
    border-radius: calc(var(--radius) - 3px);
    background: var(--input-bg);
    font: inherit;
}
.messages-compose textarea:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.messages-compose-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}
.messages-character-count {
    color: var(--text-muted);
    font-size: 0.78rem;
}
.messages-empty {
    display: grid;
    min-height: 240px;
    place-items: center;
    padding: 36px 22px;
    color: var(--text-muted);
    text-align: center;
}
.messages-empty > div {
    max-width: 320px;
}
.messages-empty h2 {
    margin: 0 0 7px;
    color: var(--text-primary);
    font-size: 1.1rem;
}
.messages-empty p {
    margin: 0;
}

@media (width <= 760px) {
    .messages-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .messages-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }
    .messages-thread-list {
        max-height: 280px;
        overflow-y: auto;
    }
    .messages-body {
        min-height: 340px;
        max-height: 58vh;
    }
}

@media (width <= 480px) {
    .messages-sidebar-title,
    .messages-conversation-header,
    .messages-body,
    .messages-compose {
        padding-left: 15px;
        padding-right: 15px;
    }
    .message-bubble {
        max-width: 91%;
    }
    .messages-compose-footer {
        align-items: flex-end;
    }
}

/* Visually hidden accessible labels */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Admin sidebar sections and user card ===== */
.admin-sidebar-section {
    padding: 16px 20px 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.admin-sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 12px 0;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
}
.admin-sidebar-user-card__avatar {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
}
.admin-sidebar-user-card__details {
    min-width: 0;
    flex: 1;
    padding: 0 !important;
    background: none !important;
    color: inherit !important;
}
.admin-sidebar-user-card__name,
.admin-sidebar-user-card__role {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-sidebar-user-card__name {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 700;
}
.admin-sidebar-user-card__role {
    color: var(--text-secondary);
    font-size: 0.72rem;
}
.admin-sidebar-user-card__logout {
    width: 32px;
    height: 32px;
    flex: none;
    justify-content: center;
    padding: 0 !important;
    border-radius: 8px;
    color: var(--text-secondary) !important;
}
.admin-sidebar-user-card__logout:hover {
    background: var(--accent-light) !important;
    color: var(--accent-color) !important;
}

/* Keep the content column centered within the available admin area. */
.admin-content {
    max-width: 1440px;
    margin-inline: auto;
}

/* ===== Admin overview ===== */
.admin-b-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.admin-b-stat-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    text-decoration: none;
}
.admin-b-stat-label {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.admin-b-stat-value {
    margin-top: 8px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}
.admin-b-stat-foot {
    color: var(--text-secondary);
    font-size: 0.72rem;
}
.admin-b-bubble {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
}
.admin-b-bubble .icon-img {
    width: 20px;
    height: 20px;
}
.admin-b-bubble--brand {
    background: var(--accent-light);
}
.admin-b-bubble--emerald {
    background: #ecfdf5;
}
.admin-b-bubble--amber {
    background: #fffbeb;
}
.admin-b-bubble--violet {
    background: #f5f3ff;
}
.admin-b-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.admin-b-dashboard-main,
.admin-b-dashboard-side {
    display: grid;
    gap: 20px;
}
.admin-b-card {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}
.admin-b-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}
.admin-b-card__header h2 {
    margin: 0;
    font-size: 1rem;
}
.admin-b-card__header p {
    margin: 2px 0 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
}
.admin-b-card__body {
    padding: 20px 24px;
}
.admin-b-table-wrap {
    overflow-x: auto;
}
.admin-b-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 700;
}
.admin-b-status--success {
    color: #047857;
    background: #ecfdf5;
}
.admin-b-status--pending {
    color: #b45309;
    background: #fffbeb;
}
.admin-b-link {
    color: var(--accent-color);
    font-weight: 600;
}
.admin-b-traffic-chart {
    display: flex;
    align-items: end;
    gap: 7px;
    height: 150px;
    margin-top: 22px;
}
.admin-b-traffic-bar {
    display: block;
    flex: 1;
    min-height: 4px;
    height: var(--bar-height);
    border-radius: 5px 5px 0 0;
    background: linear-gradient(to top, var(--accent-color), var(--accent-light));
}
.admin-b-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-b-welcome img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.admin-b-welcome strong,
.admin-b-welcome span {
    display: block;
}
.admin-b-welcome span,
.admin-b-recent-comments p {
    color: var(--text-secondary);
    font-size: 0.78rem;
}
.admin-b-quick-actions,
.admin-b-recent-comments {
    display: grid;
    gap: 8px;
}
.admin-b-quick-actions .btn {
    justify-content: flex-start;
}
.admin-b-recent-comments {
    gap: 12px;
}
.admin-b-recent-comments strong {
    font-size: 0.83rem;
}
.admin-b-recent-comments p {
    margin: 2px 0 0;
}
@media (width <= 900px) {
    .admin-b-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .admin-b-dashboard-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-b-dashboard-side > :last-child {
        grid-column: 1 / -1;
    }
}
@media (width <= 768px) {
    .admin-content {
        max-width: none;
    }
    .admin-b-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-b-dashboard-side {
        grid-template-columns: 1fr;
    }
    .admin-b-dashboard-side > :last-child {
        grid-column: auto;
    }
    .admin-b-dashboard-grid .admin-table {
        box-shadow: none;
    }
    .admin-b-dashboard-grid .admin-table tbody td {
        display: grid;
        grid-template-columns: minmax(90px, 0.72fr) minmax(0, 1.28fr);
        gap: 10px;
    }
    .admin-b-dashboard-grid .admin-table tbody td::before {
        content: attr(data-label);
        color: var(--text-secondary);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
    }
}

/* Keep the reference-style user card aligned with the sidebar navigation. */
.admin-sidebar {
    display: flex;
    flex-direction: column;
}

/* Sidebar user card: prevent legacy sidebar link rules from placing the name and role inline. */
.admin-sidebar-user-card {
    padding: 10px;
}
.admin-sidebar-user-card__avatar {
    width: 36px;
    height: 36px;
}
.admin-sidebar .admin-sidebar-user-card__details {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 !important;
}
.admin-sidebar .admin-sidebar-user-card__logout {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.admin-sidebar-user-card__name {
    font-size: 0.875rem;
    line-height: 1.35;
}
.admin-sidebar-user-card__role {
    margin-top: 2px;
    font-size: 0.75rem;
    line-height: 1.35;
}
.admin-sidebar > .admin-sidebar-close {
    align-self: flex-end;
    margin: 0 14px 4px;
}

/* Use one accent surface for every overview metric bubble. */
.admin-b-bubble--brand,
.admin-b-bubble--emerald,
.admin-b-bubble--amber,
.admin-b-bubble--violet {
    background: var(--accent-light);
}

/* ===== Plugin administration list ===== */
.plugins-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg, var(--bg-secondary));
    box-shadow: var(--card-shadow);
}

.plugins-bulk-actions,
.plugins-search-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plugins-bulk-actions .btn,
.plugins-search-controls .btn {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
}

.plugins-control-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.plugins-control-label i {
    color: var(--accent-color);
}

.plugins-select-control {
    position: relative;
    min-width: 218px;
}

.plugins-select-control select {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0 42px 0 14px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    appearance: none;
    background: var(--input-bg);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.plugins-select-control select:hover {
    border-color: var(--accent-color);
}

.plugins-select-control select:focus {
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 3px var(--accent-light);
}

.plugins-select-control i {
    position: absolute;
    top: 50%;
    right: 15px;
    color: var(--accent-color);
    font-size: 0.75rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.plugins-search-controls {
    margin-left: auto;
}

.plugins-search-input {
    position: relative;
    width: min(360px, 42vw);
}

.plugins-search-input input {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0 46px 0 15px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
    font-size: 0.9rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.plugins-search-input input::placeholder {
    color: var(--text-muted);
}

.plugins-search-input input:hover {
    border-color: var(--accent-color);
}

.plugins-search-input input:focus {
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 3px var(--accent-light);
}

.plugins-search-input i {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--accent-color);
    pointer-events: none;
    transform: translateY(-50%);
}

.plugins-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg, var(--bg-secondary));
    box-shadow: var(--card-shadow);
}

.plugins-table {
    width: 100%;
    min-width: 920px;
    margin: 0;
    border-collapse: collapse;
    background: transparent;
    font-size: 0.93rem;
}

.plugins-table th,
.plugins-table td {
    padding: 15px 18px;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    vertical-align: middle;
}

.plugins-table th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.plugins-table tbody tr {
    transition: background-color 0.16s ease;
}

.plugins-table tbody tr:hover {
    background: var(--accent-light);
}

.plugins-table tbody tr:last-child td {
    border-bottom: 0;
}

.plugins-select-column {
    width: 56px;
    text-align: center;
}

.plugins-select-column input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.plugins-status-column {
    width: 116px;
    text-align: center;
}

.plugins-table th.plugins-status-column {
    text-align: center !important;
}

.plugins-table th:nth-child(2),
.plugins-table td:nth-child(2) {
    min-width: 220px;
    white-space: nowrap;
}

.plugins-description-cell {
    min-width: 280px;
    color: var(--text-secondary) !important;
    line-height: 1.5;
}

.plugins-name-link {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
}

.plugins-name-link:hover,
.plugins-name-link:focus-visible {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.plugins-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.plugins-sort-button:hover,
.plugins-sort-button:focus-visible {
    color: var(--accent-color);
}

.plugins-sort-button:focus-visible,
.plugins-switch input:focus-visible + .plugins-switch-slider {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.plugins-table .screen-reader-text,
.plugins-search-controls .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.plugins-toggle-form {
    display: flex;
    justify-content: center;
}

.plugins-switch {
    display: inline-flex;
    position: relative;
    width: 48px;
    height: 28px;
    cursor: pointer;
}

.plugins-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.plugins-switch-slider {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-tertiary);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.plugins-switch-slider::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
    content: '';
    transition: transform 0.2s ease;
}

.plugins-switch:hover .plugins-switch-slider {
    border-color: var(--accent-color);
}

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

.plugins-switch input:checked + .plugins-switch-slider::before {
    transform: translateX(20px);
}

.plugins-count {
    margin: 14px 2px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: right;
}

.plugins-count strong {
    color: var(--text-primary);
}

@media (width <= 900px) {
    .plugins-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .plugins-search-controls {
        width: 100%;
        margin-left: 0;
    }

    .plugins-search-input {
        flex: 1;
        width: auto;
    }
}

@media (width <= 560px) {
    .plugins-list-toolbar,
    .plugins-bulk-actions,
    .plugins-search-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .plugins-bulk-actions select,
    .plugins-search-input {
        width: 100%;
    }

    .plugins-bulk-actions .btn,
    .plugins-search-controls .btn {
        width: 100%;
    }
}
/* Purchased travel guide library */
body:has(.tc-library-page){background:radial-gradient(circle at 85% 0,#c6e9ff 0,transparent 30%),linear-gradient(145deg,#e8f5ff,#f9fcff 58%,#d9efff);color:#071735;font-family:Inter,Arial,sans-serif}
body:has(.tc-library-page) .site-header{background:rgba(255,255,255,.96);border-bottom:1px solid #dcebf6;box-shadow:0 8px 28px rgba(18,82,138,.08)}
.tc-library-page{--tl-blue:#0667d8;--tl-navy:#071735;--tl-muted:#60728a;width:min(1240px,calc(100% - 40px));margin:0 auto;padding:42px 0 80px}
.tc-library-hero{min-height:285px;display:flex;align-items:center;justify-content:space-between;gap:45px;padding:48px 54px;border:1px solid rgba(202,228,247,.9);border-radius:24px;background:linear-gradient(115deg,rgba(255,255,255,.98),rgba(239,249,255,.92)),url('/assets/travel/hero.webp') center/cover;box-shadow:0 24px 65px rgba(19,80,136,.13);overflow:hidden;position:relative}
.tc-library-hero:after{content:"";position:absolute;width:340px;height:340px;right:-85px;top:-155px;border-radius:50%;border:52px solid rgba(6,103,216,.055)}
.tc-library-hero-copy{max-width:690px;position:relative;z-index:1}.tc-library-eyebrow{display:inline-flex;align-items:center;gap:9px;margin-bottom:13px;color:var(--tl-blue);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.tc-library-hero h1{margin:0 0 14px;font-size:clamp(42px,5vw,64px);line-height:1;letter-spacing:-.055em}.tc-library-hero p{max-width:650px;margin:0;color:var(--tl-muted);font-size:16px;line-height:1.7}
.tc-library-summary{min-width:168px;min-height:142px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px;border:1px solid #d5e9f8;border-radius:19px;background:rgba(255,255,255,.92);box-shadow:0 14px 35px rgba(20,83,138,.12);position:relative;z-index:1;text-align:center}.tc-library-summary strong{color:var(--tl-blue);font-size:52px;line-height:.95}.tc-library-summary span{margin-top:10px;color:var(--tl-muted);font-size:11px;font-weight:700}
.tc-library-content{padding:55px 0 20px}.tc-library-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:24px}.tc-library-heading>div>span,.tc-library-card-kicker{color:var(--tl-blue);font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.tc-library-heading h2{margin:6px 0 0;font-size:30px;letter-spacing:-.025em}.tc-library-heading>a{display:flex;align-items:center;gap:8px;color:var(--tl-blue);font-size:12px;font-weight:800;text-decoration:none}
.tc-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.tc-library-card{display:grid;grid-template-columns:minmax(210px,42%) 1fr;min-height:330px;border:1px solid #d9e9f6;border-radius:20px;background:#fff;box-shadow:0 13px 36px rgba(24,79,127,.1);overflow:hidden;transition:transform .22s ease,box-shadow .22s ease}.tc-library-card:hover{transform:translateY(-4px);box-shadow:0 20px 46px rgba(24,79,127,.15)}
.tc-library-card-image{position:relative;min-height:330px;background:#e3f2fc;overflow:hidden}.tc-library-card-image:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,24,50,.55),transparent 48%);pointer-events:none}.tc-library-card-image>img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.tc-library-card:hover .tc-library-card-image>img{transform:scale(1.035)}.tc-library-image-placeholder{width:100%;height:100%;display:grid;place-items:center;color:var(--tl-blue);font-size:50px}.tc-library-country,.tc-library-ready{position:absolute;z-index:1;display:inline-flex;align-items:center;gap:6px;border-radius:99px;font-size:9px;font-weight:800}.tc-library-country{left:15px;bottom:15px;padding:8px 10px;background:rgba(255,255,255,.94);color:var(--tl-navy)}.tc-library-ready{left:15px;top:15px;padding:8px 10px;background:#e8f8ee;color:#187044}.tc-library-ready i{font-size:8px}
.tc-library-card-body{min-width:0;display:flex;flex-direction:column;padding:27px 25px}.tc-library-card h3{margin:6px 0 11px;color:var(--tl-navy);font-size:28px;letter-spacing:-.035em}.tc-library-card-body>p{margin:0;color:var(--tl-muted);font-size:12px;line-height:1.65}.tc-library-purchase-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:auto;padding:18px 0 15px;color:#7a899d;font-size:9px}.tc-library-purchase-meta span{display:flex;align-items:center;gap:6px}.tc-library-actions{display:grid;grid-template-columns:1fr 45px;gap:9px}.tc-library-download,.tc-library-detail{min-height:45px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;text-decoration:none;font-size:11px;font-weight:800}.tc-library-download{background:linear-gradient(135deg,#0784ea,#0059c8);color:#fff;box-shadow:0 9px 20px rgba(0,91,204,.2)}.tc-library-download.is-waiting{background:#e9f4ff;color:var(--tl-blue);box-shadow:none}.tc-library-detail{border:1px solid #d8e8f5;background:#f7fbfe;color:var(--tl-blue)}
.tc-library-empty{margin:48px 0 25px;padding:72px 25px;border:1px dashed #bfdced;border-radius:22px;background:rgba(255,255,255,.75);text-align:center}.tc-library-empty>span{width:74px;height:74px;margin:0 auto 20px;display:grid;place-items:center;border-radius:22px;background:#e6f4ff;color:var(--tl-blue);font-size:32px}.tc-library-empty h2{margin:0 0 10px;font-size:30px}.tc-library-empty p{max-width:560px;margin:0 auto 24px;color:var(--tl-muted);line-height:1.65}.tc-library-empty a{display:inline-flex;align-items:center;gap:9px;padding:14px 20px;border-radius:9px;background:var(--tl-blue);color:#fff;text-decoration:none;font-size:12px;font-weight:800}
.tc-library-help{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:17px;margin-top:34px;padding:21px 24px;border:1px solid #d9e9f6;border-radius:15px;background:rgba(255,255,255,.85)}.tc-library-help>div:first-child{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:#e8f4ff;color:var(--tl-blue);font-size:20px}.tc-library-help>div:nth-child(2){display:flex;flex-direction:column;gap:4px}.tc-library-help strong{font-size:13px}.tc-library-help span{color:var(--tl-muted);font-size:11px}.tc-library-help>a{color:var(--tl-blue);font-size:11px;font-weight:800;text-decoration:none}
@media(max-width:1000px){.tc-library-grid{grid-template-columns:1fr}.tc-library-card{grid-template-columns:300px 1fr}}
@media(max-width:700px){.tc-library-page{width:100%;padding:18px 14px 55px}.tc-library-hero{min-height:0;display:block;padding:34px 25px}.tc-library-hero h1{font-size:42px}.tc-library-hero p{font-size:14px}.tc-library-summary{min-width:0;min-height:0;flex-direction:row;justify-content:flex-start;gap:10px;margin-top:25px;padding:14px 17px}.tc-library-summary strong{font-size:30px}.tc-library-summary span{margin:0}.tc-library-content{padding-top:38px}.tc-library-heading{align-items:flex-start}.tc-library-heading h2{font-size:24px}.tc-library-heading>a{white-space:nowrap;margin-top:5px}.tc-library-card{grid-template-columns:1fr}.tc-library-card-image{min-height:245px;height:245px}.tc-library-card-body{padding:24px 21px}.tc-library-purchase-meta{margin-top:20px}.tc-library-help{grid-template-columns:44px 1fr}.tc-library-help>a{grid-column:2}.tc-library-empty{margin-top:30px;padding:55px 20px}}
@media(prefers-reduced-motion:reduce){.tc-library-card,.tc-library-card-image>img{transition:none}}

/* Back navigation shared by every order detail layout */
.tc-order-back-wrap{width:min(1240px,calc(100% - 40px));margin:28px auto 0}
.tc-order-back{display:inline-flex;align-items:center;gap:9px;padding:10px 2px;color:#0667d8;text-decoration:none;font:800 12px/1.2 Inter,Arial,sans-serif;transition:gap .18s ease,color .18s ease}
.tc-order-back i{font-size:11px}.tc-order-back:hover{gap:13px;color:#004fae}
.tc-order-back-wrap+.tc-purchase-page{padding-top:24px}
.tc-order-back-wrap+.eshop-container{padding-top:24px}
@media(max-width:700px){.tc-order-back-wrap{width:calc(100% - 30px);margin-top:17px}.tc-order-back-wrap+.tc-purchase-page,.tc-order-back-wrap+.eshop-container{padding-top:12px}}
@media(prefers-reduced-motion:reduce){.tc-order-back{transition:none}}

/* Cestuj chytře login */
body:has(.tc-login-page){background:radial-gradient(circle at 83% 5%,#bfe5ff 0,transparent 29%),linear-gradient(145deg,#e8f5ff,#f9fcff 57%,#d8efff);color:#071735;font-family:Inter,Arial,sans-serif}
body:has(.tc-login-page) .site-header{background:rgba(255,255,255,.96);border-bottom:1px solid #dcebf6;box-shadow:0 8px 28px rgba(18,82,138,.08)}
body:has(.tc-login-page) .site-footer{margin-top:0}
.tc-login-page{--tcl-blue:#0667d8;--tcl-navy:#071735;--tcl-muted:#62748c;min-height:calc(100vh - 160px);display:grid;place-items:center;width:min(1180px,calc(100% - 40px));margin:0 auto;padding:48px 0 68px}
.tc-login-shell{width:100%;min-height:650px;display:grid;grid-template-columns:minmax(0,1.04fr) minmax(420px,.96fr);overflow:hidden;border:1px solid rgba(207,229,245,.95);border-radius:25px;background:#fff;box-shadow:0 28px 80px rgba(15,76,132,.16)}
.tc-login-visual{position:relative;min-height:650px;padding:39px 42px;display:flex;flex-direction:column;justify-content:space-between;background:#bfdff5 url('/assets/travel/hero.webp') center/cover;color:#fff;isolation:isolate}.tc-login-visual-overlay{position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(2,22,48,.22),rgba(2,25,55,.82)),linear-gradient(90deg,rgba(0,73,153,.18),transparent)}
.tc-login-brand{display:inline-flex;align-items:center;gap:11px;width:max-content;color:#fff;text-decoration:none}.tc-login-brand img{width:46px;height:46px;border-radius:13px;box-shadow:0 7px 20px rgba(0,31,66,.22)}.tc-login-brand span{display:flex;flex-direction:column;gap:3px}.tc-login-brand strong{font-size:14px;letter-spacing:.025em}.tc-login-brand small{color:#e1f1ff;font-size:8px}
.tc-login-visual-copy{max-width:510px}.tc-login-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:16px;color:#dff1ff;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.tc-login-visual-copy h2{margin:0 0 17px;color:#fff;font-size:clamp(39px,4.2vw,58px);line-height:1.04;letter-spacing:-.052em}.tc-login-visual-copy h2 em{color:#8bd0ff;font-style:normal}.tc-login-visual-copy>p{max-width:480px;margin:0;color:#e7f4ff;font-size:14px;line-height:1.72}.tc-login-benefits{display:flex;flex-wrap:wrap;gap:9px;margin-top:25px}.tc-login-benefits span{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid rgba(255,255,255,.25);border-radius:99px;background:rgba(255,255,255,.13);backdrop-filter:blur(8px);color:#fff;font-size:9px;font-weight:700}.tc-login-benefits i{color:#8fe0b3}
.tc-login-panel{display:grid;place-items:center;padding:48px 54px;background:linear-gradient(160deg,#fff,#f9fcff)}.tc-login-form-wrap{width:min(400px,100%)}.tc-login-panel-icon{width:50px;height:50px;display:grid;place-items:center;margin-bottom:18px;border-radius:15px;background:#e8f4ff;color:var(--tcl-blue);font-size:20px}.tc-login-eyebrow{color:var(--tcl-blue);font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.tc-login-form-wrap h1{margin:6px 0 10px;color:var(--tcl-navy);font-size:38px;line-height:1.08;letter-spacing:-.045em}.tc-login-intro{margin:0 0 27px;color:var(--tcl-muted);font-size:12px;line-height:1.65}
.tc-login-error{display:flex;align-items:flex-start;gap:9px;margin:0 0 19px;padding:12px 14px;border:1px solid #f6cdcd;border-radius:10px;background:#fff2f2;color:#a62f2f;font-size:11px}.tc-login-form{display:grid;gap:19px}.tc-login-field{display:grid;gap:8px}.tc-login-label-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.tc-login-field label{color:var(--tcl-navy);font-size:11px;font-weight:800}.tc-login-label-row>a{color:var(--tcl-blue);font-size:9px;font-weight:700;text-decoration:none}.tc-login-input-wrap{height:52px;display:grid;grid-template-columns:43px 1fr auto;align-items:center;border:1.5px solid #d2e4f2;border-radius:11px;background:#fff;box-shadow:0 5px 16px rgba(22,79,127,.045);transition:border-color .18s ease,box-shadow .18s ease}.tc-login-input-wrap:focus-within{border-color:#5ba8ea;box-shadow:0 0 0 4px rgba(6,103,216,.09)}.tc-login-input-wrap>i{color:#7b9ab5;text-align:center;font-size:13px}.tc-login-input-wrap input{width:100%;height:100%;min-width:0;padding:0 10px 0 0;border:0!important;outline:0;background:transparent!important;color:var(--tcl-navy);font:500 13px Inter,Arial,sans-serif;box-shadow:none!important}.tc-login-password-toggle{width:43px;height:100%;border:0;background:transparent;color:#7894ad;cursor:pointer}.tc-login-submit{width:100%;min-height:54px;display:flex;align-items:center;justify-content:center;gap:10px;margin-top:3px;border:0;border-radius:10px;background:linear-gradient(135deg,#0784ea,#0059c8);color:#fff;font:800 12px Inter,Arial,sans-serif;cursor:pointer;box-shadow:0 12px 25px rgba(0,91,204,.24);transition:transform .18s ease,box-shadow .18s ease}.tc-login-submit:hover{transform:translateY(-2px);box-shadow:0 16px 29px rgba(0,91,204,.3)}.tc-login-submit i{font-size:10px}
.tc-login-register{margin:23px 0 0;text-align:center;color:var(--tcl-muted);font-size:10px}.tc-login-register a{color:var(--tcl-blue);font-weight:800;text-decoration:none}.tc-login-security{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:27px;padding-top:20px;border-top:1px solid #e2edf6;color:#8a9bae;font-size:9px}.tc-login-security i{color:#24915d}
@media(max-width:900px){.tc-login-shell{grid-template-columns:1fr;min-height:0}.tc-login-visual{min-height:320px;padding:31px 34px}.tc-login-visual-copy h2{font-size:42px}.tc-login-panel{padding:45px 35px}}
@media(max-width:600px){.tc-login-page{width:100%;padding:17px 14px 45px}.tc-login-shell{border-radius:19px}.tc-login-visual{min-height:250px;padding:24px}.tc-login-brand img{width:39px;height:39px}.tc-login-brand small{display:none}.tc-login-visual-copy h2{font-size:34px;margin-bottom:10px}.tc-login-visual-copy>p{font-size:12px;line-height:1.55}.tc-login-kicker,.tc-login-benefits{display:none}.tc-login-panel{padding:34px 23px 31px}.tc-login-panel-icon{width:44px;height:44px;margin-bottom:14px}.tc-login-form-wrap h1{font-size:33px}.tc-login-intro{margin-bottom:22px}.tc-login-input-wrap{height:50px}}
@media(prefers-reduced-motion:reduce){.tc-login-input-wrap,.tc-login-submit{transition:none}}

/* Travel-aware global search */
body:has(.tc-search-page){background:radial-gradient(circle at 84% 3%,#bfe5ff 0,transparent 29%),linear-gradient(145deg,#e8f5ff,#f9fcff 58%,#d9efff);color:#071735;font-family:Inter,Arial,sans-serif}
body:has(.tc-search-page) .site-header{background:rgba(255,255,255,.96);border-bottom:1px solid #dcebf6;box-shadow:0 8px 28px rgba(18,82,138,.08)}
.tc-search-page{--tcs-blue:#0667d8;--tcs-navy:#071735;--tcs-muted:#60728a;width:min(1180px,calc(100% - 40px));margin:0 auto;padding:42px 0 80px}
.tc-search-hero{padding:55px 58px;border:1px solid #d7e9f7;border-radius:23px;background:linear-gradient(105deg,rgba(255,255,255,.98),rgba(239,249,255,.88)),url('/assets/travel/hero.webp') center/cover;box-shadow:0 22px 60px rgba(18,79,135,.13)}.tc-search-eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:11px;color:var(--tcs-blue);font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.tc-search-hero h1{margin:0 0 10px;font-size:clamp(39px,4.8vw,58px);line-height:1.03;letter-spacing:-.052em}.tc-search-hero>p{margin:0;color:var(--tcs-muted);font-size:14px}.tc-global-search-form{height:64px;display:grid;grid-template-columns:56px 1fr auto;align-items:center;margin-top:28px;border:1.5px solid #bddcf2;border-radius:13px;background:#fff;box-shadow:0 13px 34px rgba(16,78,133,.13);overflow:hidden}.tc-global-search-form label{display:grid;place-items:center;color:var(--tcs-blue);font-size:18px}.tc-global-search-form input{min-width:0;height:100%;border:0;outline:0;background:#fff;color:var(--tcs-navy);font:500 15px Inter,Arial,sans-serif}.tc-global-search-form button{height:44px;display:flex;align-items:center;gap:9px;margin-right:10px;padding:0 19px;border:0;border-radius:9px;background:linear-gradient(135deg,#0784ea,#0059c8);color:#fff;font:800 11px Inter,Arial,sans-serif;cursor:pointer}
.tc-search-content{padding:45px 0 0}.tc-search-summary{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:30px}.tc-search-summary>div>span{color:var(--tcs-blue);font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.tc-search-summary h2{margin:5px 0 0;font-size:31px;letter-spacing:-.035em}.tc-search-summary>strong{padding:8px 12px;border-radius:99px;background:#e8f4ff;color:var(--tcs-blue);font-size:10px}
.tc-search-section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 17px}.tc-search-section-heading>div{display:flex;align-items:center;gap:9px;color:var(--tcs-navy);font-size:14px;font-weight:800}.tc-search-section-heading>div i{color:var(--tcs-blue)}.tc-search-section-heading small{min-width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#e8f4ff;color:var(--tcs-blue);font-size:10px;font-weight:800}.tc-search-destination-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px}.tc-search-destination-card{display:grid;grid-template-columns:42% 1fr;min-height:280px;overflow:hidden;border:1px solid #d9e9f6;border-radius:18px;background:#fff;box-shadow:0 11px 31px rgba(22,77,124,.09);transition:transform .2s ease,box-shadow .2s ease}.tc-search-destination-card:hover{transform:translateY(-3px);box-shadow:0 17px 39px rgba(22,77,124,.14)}
.tc-search-destination-image{position:relative;min-height:280px;display:block;overflow:hidden;background:#e5f3fc}.tc-search-destination-image:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,22,47,.55),transparent 50%)}.tc-search-destination-image>img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.tc-search-destination-card:hover .tc-search-destination-image>img{transform:scale(1.035)}.tc-search-destination-image>span{width:100%;height:100%;display:grid;place-items:center;color:var(--tcs-blue);font-size:42px}.tc-search-destination-image>em{position:absolute;z-index:1;left:14px;bottom:14px;padding:7px 9px;border-radius:99px;background:rgba(255,255,255,.94);color:var(--tcs-navy);font-size:8px;font-style:normal;font-weight:800}
.tc-search-destination-body{min-width:0;display:flex;flex-direction:column;padding:24px 22px}.tc-search-destination-body>span{color:var(--tcs-blue);font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.tc-search-destination-body h3{margin:5px 0 9px;font-size:25px;letter-spacing:-.035em}.tc-search-destination-body h3 a{color:var(--tcs-navy);text-decoration:none}.tc-search-destination-body>p{margin:0;color:var(--tcs-muted);font-size:11px;line-height:1.6}.tc-search-destination-body footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:17px}.tc-search-destination-body footer strong{font-size:13px}.tc-search-destination-body footer strong.is-coming{color:#a36e00;font-size:10px}.tc-search-destination-body footer a{display:flex;align-items:center;gap:6px;color:var(--tcs-blue);font-size:9px;font-weight:800;text-decoration:none}
.tc-search-articles-heading{margin-top:38px}.tc-search-article-results .search-result-card{border:1px solid #d9e9f6;border-radius:15px;background:#fff;box-shadow:0 9px 27px rgba(22,77,124,.08)}.tc-search-empty{padding:70px 25px;border:1px dashed #bddbed;border-radius:20px;background:rgba(255,255,255,.72);text-align:center}.tc-search-empty>span{width:67px;height:67px;margin:0 auto 18px;display:grid;place-items:center;border-radius:20px;background:#e8f4ff;color:var(--tcs-blue);font-size:28px}.tc-search-empty h2{margin:0 0 9px;font-size:27px}.tc-search-empty p{margin:0 auto 22px;color:var(--tcs-muted);font-size:12px}.tc-search-empty a{display:inline-flex;padding:12px 17px;border-radius:8px;background:var(--tcs-blue);color:#fff;text-decoration:none;font-size:10px;font-weight:800}
.tc-search-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;margin-top:35px;padding-top:24px;border-top:1px solid #d9e9f6}.tc-search-pagination a{display:inline-flex;align-items:center;gap:8px;width:max-content;padding:10px 14px;border:1px solid #cfe2f1;border-radius:9px;background:#fff;color:var(--tcs-blue);font-size:10px;font-weight:800;text-decoration:none}.tc-search-pagination a:last-child{justify-self:end}.tc-search-pagination span{color:var(--tcs-muted);font-size:10px;font-weight:700}
@media(max-width:900px){.tc-search-destination-grid{grid-template-columns:1fr}.tc-search-destination-card{grid-template-columns:280px 1fr}}
@media(max-width:650px){.tc-search-page{width:100%;padding:18px 14px 55px}.tc-search-hero{padding:35px 23px}.tc-search-hero h1{font-size:38px}.tc-search-hero>p{font-size:12px;line-height:1.55}.tc-global-search-form{height:58px;grid-template-columns:45px 1fr auto}.tc-global-search-form button{width:42px;padding:0;justify-content:center;font-size:0}.tc-global-search-form button i{font-size:11px}.tc-search-content{padding-top:34px}.tc-search-summary{align-items:flex-start}.tc-search-summary h2{font-size:26px}.tc-search-destination-card{grid-template-columns:1fr}.tc-search-destination-image{min-height:220px;height:220px}.tc-search-destination-body{padding:22px 20px}.tc-search-destination-body footer{margin-top:20px}.tc-search-pagination{grid-template-columns:1fr 1fr}.tc-search-pagination span{grid-column:1/-1;grid-row:1;text-align:center}.tc-search-pagination a{grid-row:2}.tc-search-pagination a:last-child{grid-column:2}}
@media(prefers-reduced-motion:reduce){.tc-search-destination-card,.tc-search-destination-image>img{transition:none}}
