/* Базовые сбросы и цвета */
:root {
    --bg-main: #020617;
    --bg-card: #0f172a;
    --border-color: #1e293b;
    --accent: #10b981;
    --accent-hover: #059669;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-slate-300: #cbd5e1;
    --text-slate-400: #94a3b8;
    --text-slate-500: #64748b;
    --text-slate-100: #f1f5f9;
    --text-slate-200: #e2e8f0;
    --bg-slate-800: #1e293b;
    --bg-slate-700: #334155;
    --bg-slate-950: #020617;
    --bg-slate-900: #0f172a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-slate-900);
    color: var(--text-slate-100);
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout helpers */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) {
    .md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md-flex { display: flex; }
}

/* Width / Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.w-auto { width: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-80pct { max-width: 80%; }
.aspect-video { aspect-ratio: 16 / 9; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }
.italic { font-style: italic; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.select-none { user-select: none; }

/* Colors */
.text-white { color: #ffffff; }
.text-slate-100 { color: var(--text-slate-100); }
.text-slate-200 { color: var(--text-slate-200); }
.text-slate-300 { color: var(--text-slate-300); }
.text-slate-400 { color: var(--text-slate-400); }
.text-slate-500 { color: var(--text-slate-500); }
.text-emerald-400 { color: #34d399; }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-amber-400 { color: var(--amber-400); }

/* Backgrounds */
.bg-slate-800 { background-color: var(--bg-slate-800); }
.bg-slate-800-50 { background-color: rgba(30, 41, 59, 0.5); }
.bg-slate-700 { background-color: var(--bg-slate-700); }
.bg-slate-950 { background-color: var(--bg-slate-950); }
.bg-slate-900 { background-color: var(--bg-slate-900); }
.bg-slate-900-90 { background-color: rgba(15, 23, 42, 0.9); }
.bg-slate-900-60 { background-color: rgba(15, 23, 42, 0.6); }
.bg-emerald-500-10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-emerald-600 { background-color: #059669; }
.bg-amber-500-10 { background-color: rgba(245, 158, 11, 0.1); }
.bg-black-90 { background-color: rgba(0, 0, 0, 0.9); }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-slate-700 { border-color: var(--bg-slate-700); }
.border-slate-700-60 { border-color: rgba(51, 65, 85, 0.6); }
.border-slate-800 { border-color: var(--bg-slate-800); }
.border-emerald-500-20 { border-color: rgba(16, 185, 129, 0.2); }
.border-amber-500-20 { border-color: rgba(245, 158, 11, 0.2); }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2-5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-2 { left: 0.5rem; }
.right-2 { right: 0.5rem; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Transforms */
.-translate-y-1-2 { transform: translateY(-50%); }
.top-1-2 { top: 50%; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Shadows */
.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Backdrop */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Transitions */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Hover states */
.hover-text-emerald-400:hover { color: #34d399; }
.hover-bg-slate-700:hover { background-color: var(--bg-slate-700); }
.hover-bg-emerald-500:hover { background-color: #10b981; }
.hover-bg-emerald-600:hover { background-color: #059669; }

/* Focus */
.focus-outline-none:focus { outline: none; }
.focus-border-emerald-500:focus { border-color: #10b981; }

/* Placeholder */
.placeholder-slate-500::placeholder { color: var(--text-slate-500); }

/* Resize */
.resize-y { resize: vertical; }

/* Hidden */
.hidden { display: none; }

/* Active scale */
.active-scale-95:active { transform: scale(0.95); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bg-slate-800);
    min-height: 64px;
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .header-inner {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 0 2rem;
    }
}

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

.logo-img {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-slate-300);
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    color: var(--text-slate-300);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: #34d399;
}

.lang-btn-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.lang-btn {
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-slate-800);
    border: 1px solid var(--bg-slate-700);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #34d399;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.lang-btn:hover {
    background-color: var(--bg-slate-700);
}

/* Main */
.main-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 640px) {
    .main-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .main-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Product Section */
.product-section {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 640px) {
    .product-section {
        padding: 2rem;
    }
}

.section-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .section-row {
        flex-direction: row;
    }
    .col-half {
        width: 50%;
    }
}

.col-half {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.col-half-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

.section-title-sm {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Description */
.desc-text {
    color: var(--text-slate-300);
    font-size: 0.875rem;
    line-height: 1.625;
    margin: 0;
}

.desc-text p {
    margin: 0 0 0.75rem 0;
}

.desc-text p:last-child {
    margin-bottom: 0;
}

/* Gallery */
.gallery-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-slate-950);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.8);
}

.media-container {
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-hint {
    font-size: 0.75rem;
    color: var(--text-slate-400);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Nav Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--bg-slate-700);
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 10;
    font-size: 1rem;
    line-height: 1;
}

.nav-arrow:hover {
    background-color: #059669;
}

.nav-arrow.left { left: 0.5rem; }
.nav-arrow.right { right: 0.5rem; }

/* Download Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #059669;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-download:hover {
    background-color: #10b981;
}

/* Стили неактивных (серых) кнопок скачивания */
.btn-download-disabled {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background-color: #334155 !important;
	color: #94a3b8 !important;
	border: 1px solid #475569 !important;
	border-radius: 0.5rem;
	font-weight: 500;
    font-size: 0.875rem;
	cursor: not-allowed !important;
	opacity: 0.75;
	border-radius: 0.5rem;
	user-select: none;
	pointer-events: none;
}

.download-counter {
    display: block;
    font-size: 0.75rem;
    color: var(--text-slate-400);
    margin-top: 0.25rem;
}

.download-counter strong {
    color: #10b981;
}

/* R&D Section */
.rd-section-header {
    border-bottom: 1px solid var(--bg-slate-800);
    padding-bottom: 1rem;
}

.rd-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.rd-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .rd-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.rd-card {
    background-color: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rd-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.rd-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #34d399;
    margin: 0;
}

.status-badge {
    padding: 0.125rem 0.625rem;
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--amber-400);
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 0.75rem;
    border-radius: 9999px;
}

.rd-desc {
    color: var(--text-slate-300);
    font-size: 0.875rem;
    line-height: 1.625;
    margin: 0;
}

.tech-stack-box {
    background-color: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--bg-slate-800);
    font-size: 0.75rem;
}

.tech-stack-title {
    font-weight: 700;
    color: var(--text-slate-200);
    display: block;
    margin-bottom: 0.25rem;
}

/* Feedback Section */
.feedback-section {
    padding-top: 1.5rem;
}

.feedback-box {
    padding: 1.5rem;
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 1rem;
    background-color: rgba(15, 23, 42, 0.6);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .feedback-box {
        padding: 2rem;
    }
}

.feedback-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feedback-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.feedback-subtitle {
    color: var(--text-slate-400);
    font-size: 0.875rem;
    margin: 0;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 42rem;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.feedback-form > * {
    width: 100%;
    box-sizing: border-box;
}

.form-input {
    display: block;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--bg-slate-700);
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--text-slate-100);
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: var(--text-slate-500);
}

.form-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

textarea.form-input {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background-color: #059669;
    color: #ffffff;
    font-weight: 500;
    padding: 0.625rem 0;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-submit:hover {
    background-color: #10b981;
}

.feedback-messages {
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 65, 85, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 42rem;
    margin: 0 auto;
    width: 100%;
}

/* Footer */
.site-footer {
    background-color: var(--bg-slate-950);
    border-top: 1px solid var(--bg-slate-800);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-slate-400);
}

@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
    }
}

@media (min-width: 640px) {
    .footer-inner {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-inner {
        padding: 0 2rem;
    }
}

.footer-views strong {
    color: #34d399;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    user-select: none;
}

@media (min-width: 640px) {
    .modal-overlay {
        padding: 1.5rem;
    }
}

/* hidden class must override everything */
.hidden {
    display: none !important;
}

.modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.modal-title {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
    margin: 0;
}

@media (min-width: 640px) {
    .modal-title {
        font-size: 1rem;
    }
}

.modal-close {
    color: var(--text-slate-400);
    font-size: 1.875rem;
    font-weight: 700;
    padding: 0.5rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-center {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background-color: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid var(--bg-slate-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.modal-arrow:hover {
    background-color: #059669;
}

.modal-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-arrow.left { left: 0.5rem; }
.modal-arrow.right { right: 0.5rem; }

@media (min-width: 640px) {
    .modal-arrow.left { left: 1.5rem; }
    .modal-arrow.right { right: 1.5rem; }
}

.modal-media-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.modal-media-wrapper img,
.modal-media-wrapper video {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-hint {
    text-align: center;
    color: var(--text-slate-500);
    font-size: 0.75rem;
    z-index: 20;
}

/* Scrollable description - уменьшенная высота */
.scrollable-desc {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.scrollable-desc::-webkit-scrollbar {
    width: 6px;
}

.scrollable-desc::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 3px;
}

.scrollable-desc::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.4);
    border-radius: 3px;
}

.scrollable-desc::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.7);
}

/* Product changes list */
.product-changes-list {
    margin: 0;
    padding-left: 1.2rem;
}

.product-changes-list li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.product-changes-list li:last-child {
    margin-bottom: 0;
}

/* ========== Utility classes for JS-generated content ========== */

.block { display: block; }
.font-normal { font-weight: 400; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.text-red-400 { color: #f87171; }
.bg-transparent { background-color: transparent; }
.hover-text-blue-400:hover { color: #60a5fa; }

/* Feedback card (replaces Tailwind utility soup) */
.feedback-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--bg-slate-800);
}

.feedback-author {
    color: #34d399;
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

.feedback-date {
    font-size: 11px;
    color: var(--text-slate-400);
    font-weight: 400;
    display: block;
    margin-bottom: 0.5rem;
}

.feedback-text {
    color: var(--text-slate-300);
    font-size: 0.875rem;
    white-space: pre-wrap;
    line-height: 1.625;
    margin: 0;
}

.feedback-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    justify-content: flex-start;
}

.feedback-btn {
    color: var(--text-slate-400);
    background-color: transparent;
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
    font-family: inherit;
}

.feedback-btn:hover {
    color: #60a5fa;
}

/* Gallery media */
.gallery-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
    user-select: none;
}

.gallery-media-modal {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Status messages */
.msg-error {
    color: #f87171;
    font-style: italic;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin: 0;
}

.msg-empty {
    color: var(--text-slate-400);
    font-style: italic;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin: 0;
}

/* SAP description helpers */
.sap-hr {
    border: none;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    margin: 1rem 0;
}

.sap-list {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}
