:root {
    /* Color Palette - Premium Dark Theme (Custom) */
    --bg-base: #16090C; /* Very dark background */
    --bg-surface: rgba(30, 15, 20, 0.7); /* Translucent surface */
    --bg-surface-hover: rgba(45, 20, 30, 0.9);
    
    --text-primary: #F7EDE8; /* Off-white / cream text */
    --text-secondary: #F4A7B4; /* Light pink secondary text */
    
    /* Neon Accents */
    --accent-gradient: linear-gradient(135deg, #E0243F 0%, #F4A7B4 100%);
    --accent-primary: #E0243F; /* Deep red primary */
    --accent-hover: #b01a30; /* Darker red hover */
    
    --border-color: rgba(244, 167, 180, 0.2); /* Light pink borders with opacity */
    --border-focus: #E0243F;
    
    --error: #ef4444;
    
    /* Layout & Spacing */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;
    
    --shadow-glow: 0 0 20px rgba(224, 36, 63, 0.25);
    --shadow-glow-hover: 0 0 30px rgba(244, 167, 180, 0.4);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    
    /* Glassmorphism */
    --glass-blur: blur(12px);

    /* Typografia */
    --font-serif: Georgia, 'Times New Roman', serif;
}

/* Serifové písmo pre primárne nadpisy, titulky modálov a mená na kartách
   (vizuálne prepojenie s logom). Telo, formuláre, tlačidlá a odznaky ostávajú Inter. */
.modal-header h2,
.filter-panel-header h2,
.age-gate-box h2,
.content-page h1,
.admin-header h1,
.item-title {
    font-family: var(--font-serif);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(224, 36, 63, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(244, 167, 180, 0.08), transparent 25%);
    min-height: 100vh;
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* Header & Search */
.header {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
}

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

.header-bar .search-container {
    flex: 1 1 200px;
    min-width: 0;
    max-width: 560px;
    width: auto;
}

.header-bar .header-actions {
    flex-shrink: 0;
    margin-left: auto;
}

/* Tlačidlo Filtre + počítadlo aktívnych filtrov */
.filters-btn {
    position: relative;
    flex-shrink: 0;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

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

.logo-image {
    max-height: 48px; /* Nastaví rozumnú výšku, aby sa zmestilo do hlavičky */
    width: auto;
    object-fit: contain;
    display: block;
}

.search-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
}

#searchInput {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 1px var(--border-focus), var(--shadow-glow);
    background-color: rgba(0, 0, 0, 0.8);
}

#searchInput::placeholder {
    color: var(--text-secondary);
}

.custom-select {
    padding: 0.625rem 2.5rem 0.625rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F4A7B4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    font-family: inherit;
    min-width: 140px;
}

.custom-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 1px var(--border-focus), var(--shadow-glow);
}

.custom-select option {
    background-color: #16090C; /* Solid color for options dropdown */
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(224, 36, 63, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 36, 63, 0.6);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background-color: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ff6b6b;
}

.btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: var(--error);
    color: #fff;
}

.btn-icon {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Účet / prihlásenie */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.account-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-info {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 220px;
}

.account-info i {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.account-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-sm {
    max-width: 420px;
}

.form-error {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.admin-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* Main Content & Grid */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    color: var(--text-secondary);
    text-align: center;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.empty-state i {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--border-color);
}

/* Item Card */
.item-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.item-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(244, 167, 180, 0.5);
    box-shadow: var(--shadow-glow-hover);
}

.item-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Square aspect ratio for a more modern portrait/gallery look */
    background-color: rgba(0,0,0,0.5);
    overflow: hidden;
}

.item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.item-card:hover .item-image {
    transform: scale(1.08);
}

.image-count-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: var(--text-primary);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-count-badge i {
    width: 12px;
    height: 12px;
}

/* Gradient overlay for text readability if needed */
.item-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}

.item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.item-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.item-card:hover .item-badge {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.item-badge i {
    width: 12px;
    height: 12px;
    color: var(--accent-primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

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

.modal {
    background: rgba(22, 9, 12, 0.95);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(244, 167, 180, 0.1);
    border: 1px solid var(--border-color);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row > .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Univerzálne štýlovanie textových vstupov (text, tel, email, password)
   + textarea a select vo formulároch. Platí globálne, nie len v modáloch. */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F4A7B4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-group select option {
    background-color: #16090C;
    color: var(--text-primary);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 1px var(--border-focus), var(--shadow-glow);
    background-color: rgba(0, 0, 0, 0.6);
}

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

.file-upload-area {
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--accent-primary);
    background-color: rgba(255, 42, 95, 0.05);
}

.file-upload-area i {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.file-upload-area p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.upload-placeholder {
    transition: opacity 0.3s;
}

.upload-placeholder.hidden {
    display: none;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
}

.preview-thumbnail {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: block;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.preview-remove:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
}

.preview-remove i {
    width: 14px;
    height: 14px;
    margin: 0;
    color: #fff;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Detail Modal Styles */
.detail-modal {
    max-width: 800px;
}

.detail-body {
    padding: 0;
    gap: 0;
}

.gallery-container {
    position: relative;
    width: 100%;
    background-color: #000;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.gallery-nav:hover {
    background: rgba(224, 36, 63, 0.8);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.detail-gallery {
    width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem; /* Priestor pre scrollbar */
}

/* Custom Scrollbar pre galériu */
.detail-gallery::-webkit-scrollbar {
    height: 8px;
}

.detail-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.detail-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.detail-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.detail-image-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 500px;
}

.detail-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.detail-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-description {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
    white-space: pre-wrap;
    opacity: 0.9;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    background: rgba(255,255,255,0.03);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.02);
}

.detail-meta.full-width {
    grid-column: 1 / -1;
}

.phone-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.phone-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-meta i {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

/* Utility */
.hidden {
    display: none !important;
}

/* Administrácia */
.admin-app {
    max-width: 1400px;
}

.admin-gate-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
}

/* Vstupy dedia univerzálne štýlovanie; tu len centrovaný text pre login bránu */
.admin-gate-form input {
    text-align: center;
}

.admin-gate-form .btn {
    justify-content: center;
}

.admin-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.admin-header h1 {
    margin-bottom: 0;
}

.admin-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.admin-toolbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.admin-empty {
    color: var(--text-secondary);
    padding: 2rem 0;
}

.admin-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 800px;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.admin-table th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table td strong {
    color: var(--text-primary);
    display: block;
}

.admin-sub {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: block;
}

.btn-sm {
    padding: 0.4rem 0.6rem;
}

.btn-sm i {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Obsahová stránka (napr. cookies) */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.content-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.content-page .back-link:hover {
    color: var(--accent-primary);
}

.content-page .back-link i {
    width: 16px;
    height: 16px;
}

.content-page h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.content-page .updated {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}

.content-page h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.content-page p,
.content-page li {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.content-page ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.content-page a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.content-page .note {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(224, 36, 63, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Veková brána (age gate) */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(10, 4, 6, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Ak už bol vek potvrdený, bránu vôbec nezobrazíme */
.age-ok .age-gate {
    display: none;
}

.age-gate-box {
    width: 100%;
    max-width: 460px;
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(22, 9, 12, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.age-gate-logo {
    max-height: 44px;
    width: auto;
    margin-bottom: 0.5rem;
}

.age-gate-icon i {
    width: 44px;
    height: 44px;
    color: var(--accent-primary);
}

.age-gate-box h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.age-gate-warning {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.age-gate-cookies {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.age-gate-cookies a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.age-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
}

.age-gate-actions .btn {
    width: 100%;
    justify-content: center;
}

.age-gate-denied {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.95rem;
}

.age-gate-denied.hidden,
.age-gate-actions.hidden {
    display: none;
}

/* Off-canvas panel s filtrami */
.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 60;
}

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

.filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 360px;
    max-width: 90vw;
    background: rgba(22, 9, 12, 0.98);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 61;
    display: flex;
    flex-direction: column;
}

.filter-panel.active {
    transform: translateX(0);
}

.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-panel-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.filter-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group .custom-select {
    width: 100%;
    min-width: 0;
}

.filter-panel-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.filter-panel-footer .btn {
    flex: 1;
    justify-content: center;
}

/* Chipy vizuálnych/binárnych atribútov v detaile */
.detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(224, 36, 63, 0.12);
    border: 1px solid rgba(244, 167, 180, 0.25);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.detail-chip:empty {
    display: none;
}

.detail-chip i {
    width: 15px;
    height: 15px;
    color: var(--accent-primary);
}

/* Popisný hint pri labeloch */
.label-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Checkbox skupina ako tagy (jazyky, dostupný teraz) */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
    user-select: none;
}

.checkbox-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-chip:hover {
    border-color: rgba(244, 167, 180, 0.5);
}

.checkbox-chip:has(input:checked) {
    background: rgba(224, 36, 63, 0.15);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.checkbox-inline {
    margin-bottom: 0.5rem;
}

/* Číselné rozsahy vo filtroch */
.range-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-input {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.range-sep {
    color: var(--text-secondary);
}

.range-avail {
    margin-top: 0.5rem;
}

.range-avail .custom-select {
    flex: 1;
    min-width: 0;
}

/* Matica dostupnosti (editor aj read-only) */
.availability-editor,
.availability-view {
    overflow-x: auto;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.availability-grid {
    display: grid;
    grid-template-columns: 34px repeat(24, minmax(18px, 1fr));
    gap: 2px;
    min-width: 560px;
    user-select: none;
    touch-action: none;
}

.availability-grid.compact {
    grid-template-columns: 28px repeat(24, minmax(12px, 1fr));
    min-width: 430px;
}

.avail-corner {
    /* prázdny roh vľavo hore */
}

.avail-hour {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    align-self: center;
}

.avail-day {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
}

.avail-cell {
    height: 20px;
    /* Neaktívne bunky musia byť zreteľne vidieť aj na jasnej obrazovke,
       inak mriežka pôsobí ako prázdna plocha. */
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(244, 167, 180, 0.28);
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.avail-cell.active {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
    box-shadow: 0 0 6px rgba(224, 36, 63, 0.4);
}

.availability-editor .avail-cell:hover {
    background: rgba(244, 167, 180, 0.25);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.availability-grid.compact .avail-cell {
    height: 12px;
    cursor: default;
    border-radius: 2px;
}

.availability-grid.compact .avail-cell:not(.active) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(244, 167, 180, 0.2);
}

/* Detail: fyzické parametre a jazyky ako tokeny */
.detail-subheading {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.detail-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-specs:empty,
.detail-langs:empty {
    display: none;
}

.spec-token {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.spec-token i {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
}

.detail-langs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.lang-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-label i {
    width: 15px;
    height: 15px;
    color: var(--accent-primary);
}

.lang-token {
    padding: 0.3rem 0.7rem;
    background: rgba(224, 36, 63, 0.1);
    border: 1px solid rgba(244, 167, 180, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 1rem;
    }

    .header-bar {
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .logo {
        order: 1;
    }

    .logo-image {
        max-height: 36px;
    }

    .header-bar .header-actions {
        order: 2;
        margin-left: auto;
    }

    .header-bar .search-container {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .filters-btn {
        order: 4;
    }

    .filter-panel {
        width: 320px;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .detail-info {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Klient–server rozhranie: toasty, potvrdzovanie, stavy profilov,
   radenie výsledkov, stránkovanie a moderačné záložky.
   ========================================================================== */

/* --- Toasty (náhrada za alert) --- */
.toast-stack {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: min(26rem, calc(100vw - 3rem));
}

.toast {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(30, 15, 20, 0.95);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.toast-error {
    border-color: rgba(239, 68, 68, 0.55);
    border-left: 3px solid var(--error);
}

.toast-info {
    border-left: 3px solid var(--accent-primary);
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: none;
    }
}

/* --- Potvrdzovací dialóg --- */
.confirm-overlay {
    z-index: 2500;
}

.confirm-text {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-primary);
}

/* --- Stav profilu (čaká na schválenie / zamietnutý) --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.item-image-wrapper .status-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2;
    backdrop-filter: var(--glass-blur);
}

.detail-info .status-badge {
    margin-bottom: 0.85rem;
    white-space: normal;
}

.status-pending {
    background: rgba(234, 179, 8, 0.18);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: #fde68a;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fecaca;
}

.status-approved {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #bbf7d0;
}

/* --- Lišta nad výsledkami: počet + radenie --- */
/* Lišta nad mriežkou: počítadlo vľavo, radenie vpravo. Zostáva na mieste
   aj vtedy, keď je mriežka prázdna, aby sa rozloženie stránky nemenilo. */
.content-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sort-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sort-control .custom-select {
    width: auto;
    min-width: 10rem;
}

.items-grid[aria-busy="true"] {
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

/* --- Stránkovanie --- */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 2rem 0 1rem;
}

/* --- Nahrávanie fotiek --- */
.file-upload-area.uploading {
    opacity: 0.6;
    pointer-events: none;
}

/* --- Prepínač „Moje profily" --- */
#myProfilesBtn.active {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

/* --- Moderačné záložky v administrácii --- */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}

.admin-tab.active {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(224, 36, 63, 0.15);
}

.tab-count {
    min-width: 1.5rem;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-full);
    background: rgba(244, 167, 180, 0.15);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.admin-actions {
    white-space: nowrap;
}

.admin-actions-col {
    text-align: right;
}

.admin-actions .btn-sm {
    margin-left: 0.35rem;
}

@media (max-width: 768px) {
    .toast-stack {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }

    /* Na úzkych displejoch sa lišta zloží pod seba, aby sa počítadlo
       a radenie neprekrývali. */
    .content-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .sort-control {
        justify-content: space-between;
    }

    .sort-control .custom-select {
        flex: 1;
        min-width: 0;
    }

    .admin-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .admin-actions .btn-sm {
        margin-left: 0;
    }
}

/* --- Náhľad profilu v administrácii --- */

/* Riadok tabuľky otvára celý profil */
.admin-row {
    cursor: pointer;
}

.admin-row:hover .admin-thumb {
    box-shadow: 0 0 0 2px var(--accent-primary);
}

.admin-row:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

/* Moderačné tlačidlá pod obsahom náhľadu. Sticky, aby ostali po ruke
   aj pri dlhom profile s maticou dostupnosti. */
.detail-control-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(30, 15, 20, 0.92);
    backdrop-filter: var(--glass-blur);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.detail-control-bar .btn {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .detail-control-bar {
        padding: 0.85rem 1rem;
        gap: 0.5rem;
    }

    /* Na úzkom displeji nech tlačidlá vyplnia šírku a nezalamujú sa krivo. */
    .detail-control-bar .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
