:root {
    --bg: #f4efe8;
    --bg-alt: #e8ded1;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #fff9f2;
    --ink: #16212b;
    --muted: #5f6c78;
    --line: rgba(22, 33, 43, 0.12);
    --accent: #c75c32;
    --accent-dark: #8a391a;
    --deep: #1d3948;
    --price-blue: #2f6fb5;
    --shadow: 0 18px 50px rgba(29, 57, 72, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: min(1180px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #bde3ff;
    background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.42), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(128, 196, 255, 0.34), transparent 34%),
    linear-gradient(180deg, #d8f0ff 0%, #bde3ff 42%, #a9d8ff 100%);
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--ink);
    background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.42), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(128, 196, 255, 0.34), transparent 34%),
    linear-gradient(180deg, #d8f0ff 0%, #bde3ff 42%, #a9d8ff 100%);
}

html {
    scrollbar-color: #8ab8dd #bde3ff;
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: #bde3ff;
}

html::-webkit-scrollbar-thumb {
    background: #8ab8dd;
    border-radius: 999px;
    border: 2px solid #bde3ff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-impersonate-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 1.25rem;
    background: #1a3a5c;
    color: #e8f0fa;
    font-size: 0.82rem;
    font-weight: 500;
}

.admin-impersonate-exit {
    color: #ffd166;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.admin-impersonate-exit:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background: linear-gradient(to right, rgba(0, 20, 56, 0.25), rgba(0, 0, 0, 0.7));
}

main {
    display: block;
    margin: 0;
    padding: 0;
    flex: 1 0 auto;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-only {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section h1,
.page-banner h1,
.section-head h2,
.two-column-layout h2,
.content-card h2,
.content-card h3,
.download-item h2,
.faq-item h3,
.contact-card h2,
.site-footer h3,
.site-footer h4 {
    font-family: 'Manrope', sans-serif;
}

.brand-mark {
    width: 236px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.brand-tagline {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    letter-spacing: 0.05em;
    text-align: center;
    margin-top: -26px;
    margin-left: 0;
    line-height: 1;
}

.brand-mark img,
.footer-logo,
.hero-logo {
    display: block;
    width: 100%;
    height: auto;
}

.hero-logo {
    width: 220px;
    margin-bottom: 22px;
}

.hero-carousel-full {
    width: 100%;
}

.homepage-carousel {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    width: 100%;
    background: #10202b;
}

.carousel-track {
    position: relative;
    min-height: 520px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms ease;
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #081218;
}

.carousel-video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    border: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 18, 24, 0.18), rgba(8, 18, 24, 0.66));
}

.carousel-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    max-width: none;
    color: #fff;
    text-align: center;
}

.carousel-content h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.carousel-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.carousel-kicker {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.carousel-controls {
    position: absolute;
    right: 22px;
    bottom: 18px;
    left: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.carousel-arrow,
.carousel-dot {
    border: 0;
    cursor: pointer;
}

.carousel-arrow {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(47, 111, 181, 0.8) !important;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(47, 111, 181, 0.5) !important;
}

.carousel-dot.is-active {
    background: #2f6fb5 !important;
    transform: scale(1.12);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #ffffff;
    transition: 180ms ease;
}

.nav-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: 12px;
}

.header-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(22, 33, 43, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--deep);
    transition: 180ms ease;
}

.header-cart-link svg {
    width: 22px;
    height: 22px;
}

.header-user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(22, 33, 43, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--deep);
    transition: 180ms ease;
}

.header-user-link svg {
    width: 22px;
    height: 22px;
}

.header-user-menu {
    position: relative;
}

.header-user-menu summary {
    list-style: none;
}

.header-user-menu summary::-webkit-details-marker {
    display: none;
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 25;
    display: grid;
    gap: 14px;
    width: min(280px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(22, 33, 43, 0.1);
    border-radius: 24px;
    background: rgba(255, 249, 242, 0.98);
    box-shadow: var(--shadow);
}

.header-user-dropdown-head {
    display: grid;
    gap: 4px;
}

.header-user-dropdown-head strong {
    font-family: 'Manrope', sans-serif;
}

.header-user-dropdown-head span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-word;
}

.header-user-dropdown-nav {
    display: grid;
    gap: 6px;
}

.header-user-dropdown-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--ink);
    transition: background 180ms ease, color 180ms ease;
}

.header-user-dropdown-nav a:hover {
    background: rgba(29, 57, 72, 0.08);
}

.header-user-link:hover,
.header-user-link.is-active,
.header-cart-link:hover,
.header-cart-link.is-active {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.header-cart-link .nav-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.24);
}

.site-nav a[data-support-nav-link]:not(.is-support-live):not(.is-support-soon),
.site-nav a[data-support-nav-link]:not(.is-support-live):not(.is-support-soon):hover,
.site-nav a[data-support-nav-link]:not(.is-support-live):not(.is-support-soon).is-active {
    color: #ffffff;
    background: #dc2626;
}

.site-nav a.is-support-soon,
.site-nav a.is-support-soon:hover,
.site-nav a.is-support-soon.is-active {
    color: #ffffff;
    background: #f59e0b;
}

.site-nav a.is-support-live,
.site-nav a.is-support-live:hover,
.site-nav a.is-support-live.is-active {
    color: #ffffff;
    background: #1f9d55;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
}

.hero-section,
.page-banner,
.content-section,
.stats-section {
    padding: 40px 0;
}

.two-column-layout,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.hero-section {
    padding-top: 24px;
    padding-bottom: 24px;
}

.hero-section h1 {
    margin: 12px 0 16px;
    font-size: clamp(2.4rem, 6vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    max-width: 12ch;
}

.page-banner h1 {
    margin: 12px 0 16px;
    font-size: clamp(1.75rem, 3.2vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.page-banner .container {
    text-align: center;
}

.page-banner .eyebrow {
    justify-content: center;
}

.page-banner p {
    margin-left: auto;
    margin-right: auto;
}

.hero-copy,
.page-banner p,
.content-card p,
.stack-item p,
.download-item p,
.faq-item p,
.contact-card p,
.site-footer p,
.section-head p {
    color: var(--muted);
    line-height: 1.7;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-dark);
}

.eyebrow::before {
    content: '';
    width: 38px;
    height: 1px;
    background: currentColor;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    background:  #20376e ;
    color: #fff;
}

.button.button-download-update {
    background: #2f6fb5;
    border-color: #2f6fb5;
    color: #fff;
}

.button.button-support-teamviewer {
    background: #2f6fb5;
    border-color: #2f6fb5;
    color: #fff;
}

.button.button-support-teamviewer:hover {
    background: #235b97;
    border-color: #235b97;
}

.button.button-support-session {
    background: #2f8a4c;
    border-color: #2f8a4c;
    color: #fff;
}

.button.button-support-session:hover {
    background: #23683a;
    border-color: #23683a;
}

.button.button-support-legacy {
    background: #b54141;
    border-color: #b54141;
    color: #fff;
}

.button.button-support-legacy:hover {
    background: #913131;
    border-color: #913131;
}

.button-support-transfer-on {
    background: #2f8a4c;
    border-color: #2f8a4c;
    color: #fff;
}

.button-support-transfer-on:hover {
    background: #23683a;
    border-color: #23683a;
}

.button-support-transfer-off {
    background: #b54141;
    border-color: #b54141;
    color: #fff;
}

.button-support-transfer-off:hover {
    background: #913131;
    border-color: #913131;
}

.button.button-download-update:hover {
    background: #235b97;
    border-color: #235b97;
}

.button-secondary {
    border-color: rgba(22, 33, 43, 0.14);
    background: rgba(255, 255, 255, 0.5);
}

.button-ghost {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(22, 33, 43, 0.82);
    color: #fff;
}

.text-link {
    color: var(--deep);
    font-weight: 700;
}

.info-banner {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: rgba(29, 57, 72, 0.92);
    color: #fff;
    box-shadow: var(--shadow);
}

.info-banner-vertical {
    flex-direction: column;
    align-items: flex-start;
}

.support-link-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 18px;
}

.support-link-legend {
    margin-top: 14px;
}

.support-link-legend p {
    margin: 0 0 6px;
}

.support-link-legend p:last-child {
    margin-bottom: 0;
}

.support-link-legend .support-legend-teamviewer {
    color: #78b8ff;
}

.support-link-legend .support-legend-session {
    color: #7edb9b;
}

.support-link-legend .support-legend-legacy {
    color: #ff9a9a;
}

.support-banner-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.support-refresh-indicator {
    align-self: flex-end;
    margin-top: 10px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
}

.site-alert {
    margin: 20px auto 0;
    padding: 16px 18px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.site-alert-success {
    background: rgba(70, 139, 107, 0.14);
    color: #1e6545;
}

.site-alert-error {
    background: rgba(181, 71, 56, 0.14);
    color: #8f3020;
}

.hero-panel,
.content-card,
.download-item,
.contact-card,
.stack-item,
.faq-item,
.table-wrap,
.stat-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.hero-panel {
    min-height: 100%;
    background:
        linear-gradient(135deg, rgba(29, 57, 72, 0.96), rgba(18, 26, 34, 0.96)),
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1));
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-panel::after {
    content: '';
    position: absolute;
    inset: auto -20% -20% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 92, 50, 0.42), transparent 60%);
}

.hero-panel-inner {
    position: relative;
    z-index: 1;
    padding: 34px;
}

.check-list {
    padding-left: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.82);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

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

.stat-card {
    padding: 24px;
}

.stat-card strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-card span {
    color: var(--muted);
}

.stat-card-map {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
}

.stat-map-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 180px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fbff;
}

.stat-map-snapshot {
    width: 100%;
    min-height: 180px;
    height: auto;
    aspect-ratio: 1024 / 600;
    object-fit: contain;
    object-position: center;
}

.stat-card-chart {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-micro-label {
    font-size: 0.62rem;
    line-height: 1.2;
    color: var(--muted);
    letter-spacing: 0.02em;
    margin-top: -2px;
}

.stat-mini-chart-wrap {
    margin-top: 12px;
    padding-bottom: 13px;
    position: relative;
}

.stat-mini-chart {
    height: 72px;
    display: grid;
    grid-template-columns: repeat(var(--chart-cols, 24), minmax(0, 1fr));
    gap: 3px;
    align-items: end;
}

.stat-mini-chart-day-axis {
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.stat-mini-chart-day-tick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    text-align: center;
    font-size: 0.54rem;
    line-height: 1.1;
    color: var(--muted);
}

.stat-mini-chart-day-date {
    font-weight: 500;
}

.stat-mini-chart-day-weekday {
    font-size: 0.52rem;
    text-transform: lowercase;
    opacity: 0.95;
}

.stat-mini-chart-day-tick.is-weekend {
    color: #dc2626;
}

.stat-mini-chart-axis {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    pointer-events: none;
}

.stat-mini-chart-tick {
    position: absolute;
    left: calc((var(--x) / 23) * 100%);
    transform: translateX(-50%);
    font-size: 0.52rem;
    line-height: 1;
    color: var(--muted);
    white-space: nowrap;
}

.stat-mini-chart-bar {
    height: max(var(--bar-h, 0%), 4px);
    border-radius: 0;
    background: linear-gradient(180deg, #2a9d8f 0%, #1f7a8c 100%);
    opacity: 0.95;
}

.stat-mini-chart-bar.is-weekend {
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
}

.stat-mini-chart-bar.is-off-hour {
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
}

.stat-mini-chart.stat-mini-chart--weekday .stat-mini-chart-bar.is-today {
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
}

.stat-mini-chart:not(.stat-mini-chart--weekday) .stat-mini-chart-bar.is-current-hour {
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
}

.stat-mini-chart-bar.is-zero {
    height: 1px;
    opacity: 0.7;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}

.featured-products-section .section-head {
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.highlights-section {
    padding-top: 10px;
}

.highlights-head {
    justify-content: center;
    text-align: center;
}

.highlights-head p {
    max-width: 70ch;
    margin: 10px auto 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
}

.highlight-card {
    display: grid;
    gap: 14px;
    min-height: 100%;
}

.highlight-card h3,
.highlight-card p {
    margin: 0;
}

.highlight-card p {
    white-space: pre-line;
}

.highlight-date {
    justify-self: start;
    margin-bottom: 0;
}

.highlight-actions {
    margin-top: auto;
}

.featured-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
}

.featured-products-grid .content-card {
    text-align: center;
}

.product-card-visual {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    min-height: 420px;
}

.product-card-media {
    flex: 0 0 46%;
    min-height: 190px;
    background: linear-gradient(135deg, rgba(29, 57, 72, 0.14), rgba(199, 92, 50, 0.12));
    border-bottom: 1px solid rgba(22, 33, 43, 0.08);
}

.product-card-media-link {
    display: block;
    flex: 0 0 46%;
    min-height: 190px;
    overflow: hidden;
    color: inherit;
}

.product-card-media-link .product-card-media {
    height: 100%;
}

.product-card-media-link:hover img {
    transform: scale(1.03);
}

.product-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.product-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    padding: 26px 28px 36px;
}

.product-card-body .tag {
    align-self: flex-start;
    margin-bottom: 0;
}

.product-card-body h2,
.product-card-body h3,
.product-card-body p {
    margin: 0;
}

.product-card-body h2,
.product-card-body h3 {
    align-self: start;
    line-height: 1.25;
    min-height: calc(1.25em * 2);
}

.product-card-body p {
    align-self: start;
    line-height: 1.55;
    min-height: calc(1.55em * 4);
}

.product-card-body .product-meta {
    margin-top: auto;
}

.product-card-body .product-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 46px;
    column-gap: 14px;
}

.product-card-body .product-meta strong {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    min-height: 44px;
    line-height: 1.2;
    justify-self: start;
    text-align: left;
    color: var(--price-blue);
}

.product-card-body .product-meta strong .price-bgn {
    opacity: 0.72;
}

.product-card-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    flex: 0 0 auto;
}

.product-detail-layout {
    align-items: start;
}

.product-detail-layout > .content-card {
    height: 100%;
}

.product-detail-media {
    display: flex;
    overflow: hidden;
    padding: 0;
}

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

.product-detail-copy {
    display: grid;
    gap: 18px;
}

.product-detail-copy h2,
.product-detail-copy p {
    margin: 0;
}

.product-detail-full {
    display: grid;
    gap: 18px;
}

.product-detail-full h2,
.product-detail-full p {
    margin: 0;
}

.product-detail-description {
    display: grid;
    gap: 14px;
    line-height: 1.75;
}

.product-detail-description > * {
    margin: 0;
}

.product-detail-description a {
    color: var(--accent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

.product-detail-description ul,
.product-detail-description ol {
    margin: 0;
    padding-left: 1.4rem;
}

.product-detail-description font[size="1"] {
    font-size: 0.75rem;
}

.product-detail-description font[size="2"] {
    font-size: 0.875rem;
}

.product-detail-description font[size="3"] {
    font-size: 1rem;
}

.product-detail-description font[size="4"] {
    font-size: 1.125rem;
}

.product-detail-description font[size="5"] {
    font-size: 1.25rem;
}

.product-detail-description font[size="6"] {
    font-size: 1.5rem;
}

.product-detail-description font[size="7"] {
    font-size: 1.8rem;
}

.product-detail-meta {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(29, 57, 72, 0.08);
}

.product-detail-meta strong {
    font-size: 1.15rem;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.product-detail-actions .cart-add-form .button {
    min-width: 56px;
}

.cart-add-form {
    margin: 0;
}

.cart-add-form .button {
    min-height: 44px;
}

.cart-add-button {
    width: 52px;
    min-width: 52px;
    padding: 0;
}

.cart-add-button svg {
    width: 22px;
    height: 22px;
}

.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;
}

.featured-products-grid .product-card-visual .product-card-body {
    align-items: center;
    text-align: center;
}

.featured-products-grid .product-card-visual .product-card-body .tag {
    align-self: center;
}

.featured-products-grid .product-card-visual .product-meta {
    width: 100%;
}

.featured-services-section .section-head {
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.featured-services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.service-link-button {
    min-height: 44px;
}

.featured-services-grid .product-card-visual .product-card-body {
    align-items: center;
    text-align: center;
}

.featured-services-grid .product-card-visual .product-card-body .tag {
    align-self: center;
}

.featured-services-grid .service-meta {
    justify-content: center;
}

.service-card {
    height: 100%;
    min-height: 520px;
}

.service-card .product-card-media {
    flex: 0 0 42%;
    min-height: 170px;
}

.service-card .product-card-media.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(29, 57, 72, 0.1), rgba(199, 92, 50, 0.08));
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.service-card .product-card-body .service-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.service-card .product-card-body {
    justify-content: flex-end;
    gap: 12px;
}

.service-card .product-card-body h3 {
    min-height: calc(1.25em * 3);
}

.service-card .service-price {
    margin: 0;
    align-self: flex-start;
    font-weight: 700;
    color: var(--price-blue);
}

.service-card .service-price strong {
    display: inline-block;
    margin: 0;
    line-height: 1.2;
}

.service-card .product-meta {
    margin-top: auto;
    padding-top: 10px;
}

.service-card .service-meta {
    align-self: stretch;
    width: 100%;
    justify-content: center;
}

.client-card h2,
.client-card p {
    text-align: center;
}

.client-meta {
    align-items: center;
}

.compact-status-pill {
    margin-bottom: 0;
}

.checkbox-row-inline {
    align-self: end;
    min-height: 52px;
}

.content-card,
.download-item,
.contact-card,
.stack-item,
.faq-item {
    padding: 28px;
}

.accent-card {
    background: linear-gradient(180deg, rgba(255, 249, 242, 0.95), rgba(255, 255, 255, 0.76));
}

.tag,
.status-pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(50, 162, 199, 0.1);
    color: #000000;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 16px;
    white-space: nowrap;
}

.product-card .product-meta,
.download-item,
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.alt-section {
    background: linear-gradient(180deg, rgba(232, 222, 209, 0.42), rgba(244, 239, 232, 0));
}

.stack-list,
.faq-list,
.download-list {
    display: grid;
    gap: 18px;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.instruction-grid img {
    width: 100%;
    border-radius: 18px;
        align-items: center;
        gap: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.bullet-list {
    margin: 18px 0 0;
    padding-left: 20px;
    line-height: 1.8;
    color: var(--muted);
}

.support-remote-card {
    display: grid;
    align-content: start;
    gap: 14px;
}

.support-note,
.contact-legal p {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    width: 100%;
}

.client-table {
    width: 100%;
    border-collapse: collapse;
}

.client-table th,
.client-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.client-table th {
    background: rgba(29, 57, 72, 0.06);
    font-family: 'Manrope', sans-serif;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
}

.contact-form label.checkbox-row {
    display: flex;
}

.checkbox-row input {
    width: auto;
    margin-top: 4px;
}

.contact-form .checkbox-row input {
    width: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(22, 33, 43, 0.14);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: rgba(255, 255, 255, 0.8);
}

.form-notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(29, 57, 72, 0.08);
    color: var(--deep);
}

.site-footer {

    background: linear-gradient(to right, rgba(0, 0, 0, 0.90),rgba(0, 20, 56, 0.80));

    padding: 24px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
    padding: 34px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 0;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-link-list li {
    margin: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.footer-legal-list {
    display: grid;
    gap: 14px;
}

.footer-logo {
    width: 220px;
    margin-bottom: 18px;
}

.footer-primary-column {
    display: grid;
    gap: 18px;
}

.footer-tagline {
    margin: 0;
    line-height: 1.35;
}

.footer-tagline span {
    display: block;
    margin-top: 2px;
}

.footer-contact-block {
    display: grid;
    gap: 2px;
}

.footer-contact-block h4,
.footer-contact-block p {
    margin: 0;
}

.footer-contact-block p {
    line-height: 1.35;
}

.footer-share-lead {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.78);
}

.footer-share-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 42px));
    gap: 10px;
}

.footer-share-btn {
    display: inline-grid;
    place-items: center;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.footer-share-btn-facebook {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.6);
    background: rgba(24, 119, 242, 0.12);
}

.footer-share-btn-linkedin {
    color: #0a66c2;
    border-color: rgba(10, 102, 194, 0.6);
    background: rgba(10, 102, 194, 0.12);
}

.footer-share-btn-x {
    color: #e5e7eb;
    border-color: rgba(229, 231, 235, 0.5);
    background: rgba(229, 231, 235, 0.1);
}

.footer-share-btn-whatsapp {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.6);
    background: rgba(37, 211, 102, 0.12);
}

.footer-share-btn-viber {
    color: #7360f2;
    border-color: rgba(115, 96, 242, 0.6);
    background: rgba(115, 96, 242, 0.12);
}

.footer-share-btn-copy {
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.6);
    background: rgba(34, 211, 238, 0.12);
}

.footer-share-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-share-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.7);
}

.footer-share-btn.footer-share-copy.is-copied {
    background: rgba(34, 197, 94, 0.26);
    border-color: rgba(34, 197, 94, 0.7);
}

.footer-bottom {
    padding: 18px 4px 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.admin-body {
    background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.34), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(120, 190, 255, 0.3), transparent 34%),
    linear-gradient(180deg, #d5eeff 0%, #b8deff 48%, #9dceff 100%);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}

.admin-sidebar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    background: rgba(22, 33, 43, 0.96);
    color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 16px 42px rgba(5, 10, 15, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.admin-body.is-localhost-admin .admin-sidebar {
    background: #5f0f12;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-brand img {
    width: 180px;
}

.admin-brand span,
.admin-kicker,
.admin-list,
.admin-definition-list dt,
.admin-table,
.admin-login-hint,
.admin-alert,
.admin-form label,
.admin-fieldset legend {
    font-family: 'IBM Plex Sans', sans-serif;
}

.admin-brand span,
.admin-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
}

.admin-login-note {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    align-content: center;
}

.admin-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.admin-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 180ms ease, opacity 180ms ease;
}

.admin-menu-panel {
    display: contents;
}

.admin-nav a,
.admin-nav-toggle {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.74);
    transition: background 180ms ease, color 180ms ease;
    white-space: nowrap;
}

.admin-nav a:hover,
.admin-nav a.is-active,
.admin-nav-toggle:hover,
.admin-nav-toggle.is-active,
.admin-nav-group.is-open > .admin-nav-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-nav-toggle {
    width: auto;
    border: none;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-nav-caret {
    font-size: 0.84rem;
    opacity: 0.84;
    transition: transform 180ms ease;
}

.admin-nav-group {
    position: relative;
    display: block;
}

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

.admin-nav-submenu {
    display: none;
    gap: 6px;
    padding-left: 0;
}

.admin-nav-group.is-open .admin-nav-submenu {
    display: grid;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(22, 33, 43, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(5, 10, 15, 0.28);
    z-index: 30;
}

.admin-nav-group.is-open .admin-nav-submenu-link {
    color: rgba(255, 255, 255, 0.92);
}

.admin-nav-submenu-link {
    display: block;
    padding: 10px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    transition: background 180ms ease, color 180ms ease;
}

.admin-nav-submenu-divider {
    display: block;
    height: 1px;
    margin: 4px 14px;
    background: rgba(255, 255, 255, 0.2);
}

.admin-nav-submenu-link:hover,
.admin-nav-submenu-link:focus-visible,
.admin-nav-submenu-link.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    outline: none;
}

.admin-sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.admin-nav-utility {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.admin-nav-utility-link,
.admin-nav-utility-button {
    display: block;
    padding: 12px 16px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.04);
    transition: background 180ms ease, color 180ms ease;
}

.admin-nav-utility-button {
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.admin-nav-utility-link:hover,
.admin-nav-utility-link:focus-visible,
.admin-nav-utility-link.is-active,
.admin-nav-utility-button:hover,
.admin-nav-utility-button:focus-visible,
.admin-nav-utility-button.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
}

.admin-nav-utility-link.button-support-transfer-on,
.admin-nav-utility-button.button-support-transfer-on {
    background: #2f8a4c;
    color: #fff;
}

.admin-nav-utility-link.button-support-transfer-off,
.admin-nav-utility-button.button-support-transfer-off {
    background: #b54141;
    color: #fff;
}

.admin-nav-utility-link.button-support-transfer-on:hover,
.admin-nav-utility-link.button-support-transfer-on:focus-visible,
.admin-nav-utility-button.button-support-transfer-on:hover,
.admin-nav-utility-button.button-support-transfer-on:focus-visible {
    background: #23683a;
    color: #fff;
}

.admin-nav-utility-link.button-support-transfer-off:hover,
.admin-nav-utility-link.button-support-transfer-off:focus-visible,
.admin-nav-utility-button.button-support-transfer-off:hover,
.admin-nav-utility-button.button-support-transfer-off:focus-visible {
    background: #913131;
    color: #fff;
}

.admin-page-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.58);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.admin-page-loading-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    padding: 16px 20px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.admin-page-loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: admin-page-loading-spin .75s linear infinite;
}

@keyframes admin-page-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.admin-sofia-clock {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-sofia-clock strong {
    font-size: 1.28rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.admin-sofia-clock.is-open-hours strong {
    color: #86efac;
}

.admin-sofia-clock.is-closed-hours strong {
    color: #f87171;
}

.admin-sofia-clock span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
}

.admin-main {
    padding: 24px 30px 30px;
}

.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-topbar h1,
.admin-panel h2,
.admin-stat-card strong,
.admin-auth-card h2 {
    font-family: 'Manrope', sans-serif;
}

.admin-topbar h1 {
    margin: 6px 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.admin-user-card,
.admin-panel,
.admin-stat-card,
.admin-auth-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    border-radius: 28px;
}

.admin-user-card {
    display: grid;
    gap: 6px;
    min-width: 180px;
    padding: 16px 18px;
}

.admin-user-card span {
    color: var(--muted);
}

.admin-alert {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 18px;
}

.admin-alert-success {
    background: rgba(70, 139, 107, 0.14);
    color: #1e6545;
}

.admin-alert-error {
    background: rgba(181, 71, 56, 0.14);
    color: #8f3020;
}

.admin-grid {
    display: grid;
    gap: 20px;
}

.admin-grid-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}

.admin-grid-main,
.admin-form-layout,
.admin-settings-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
}

.admin-stat-card,
.admin-panel,
.admin-auth-card {
    padding: 24px;
}

.admin-stat-card span {
    color: var(--muted);
}

.admin-stat-card strong {
    display: block;
    margin: 12px 0 6px;
    font-size: 2.3rem;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-panel-head h2 {
    margin: 0;
    font-size: 1.5rem;
}

.admin-search-form {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.admin-search-form input {
    width: min(100%, 760px);
    border: 1px solid rgba(22, 33, 43, 0.14);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.admin-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.9;
    color: var(--muted);
}

.admin-import-note {
    margin: 0 0 16px;
    color: var(--muted);
    flex: 0 0 auto;
    line-height: 1.7;
}

.admin-danger-button {
    border-color: rgba(181, 71, 56, 0.25);
    color: #8f3020;
    background: rgba(181, 71, 56, 0.08);
}

.admin-definition-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.admin-definition-list div {
    display: grid;
    gap: 4px;
}

.admin-definition-list dt {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.admin-definition-list dd {
    margin: 0;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.admin-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.admin-form .admin-form-field {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    border: 1px solid rgba(22, 33, 43, 0.14);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.admin-form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-form-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-import-actions {
    align-items: flex-end;
}

.admin-inline-field {
    display: grid;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
}

.admin-inline-field input,
.admin-inline-field select {
    min-width: 280px;
    padding: 10px 12px;
    border: 1px solid rgba(22, 33, 43, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font: inherit;
}

.admin-inline-field-serial {
    flex: 1 1 340px;
}

.admin-form-help {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-stack {
    display: grid;
    gap: 18px;
}

.admin-update-files {
    display: grid;
    gap: 14px;
}

.admin-update-file-row {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-update-file-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr) 120px auto;
    gap: 12px;
    align-items: end;
}

.admin-update-file-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.admin-update-file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-update-file-empty {
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
}

.admin-table-updates td:nth-child(2),
.admin-table-updates td:nth-child(3) {
    white-space: nowrap;
}

.admin-code {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    color: var(--deep);
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

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

.admin-table th {
    font-family: 'Manrope', sans-serif;
    background: rgba(29, 57, 72, 0.05);
}

.admin-table-clients tbody tr.client-row-even td {
    background: rgba(29, 57, 72, 0.04);
}

.admin-table-clients th:nth-child(1),
.admin-table-clients td:nth-child(1) {
    width: 2rem;
    padding-left: .25rem;
    padding-right: .25rem;
    text-align: center;
    color: #9ca3af;
}

.admin-table-clients th:nth-child(2),
.admin-table-clients td:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table-clients th:nth-child(3),
.admin-table-clients td:nth-child(3) {
    width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table-clients th:nth-child(6),
.admin-table-clients td:nth-child(6) {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table-licenses tbody {
    counter-reset: lic-rownum;
}

.admin-table-licenses [data-license-row] td.lic-row-num {
    counter-increment: lic-rownum;
    width: 2rem;
    padding-left: .25rem;
    padding-right: .25rem;
    text-align: center;
    color: #9ca3af;
    font-size: .8rem;
    white-space: nowrap;
}

.admin-table-licenses [data-license-row] td.lic-row-num::before {
    content: counter(lic-rownum);
}

.admin-empty-state {
    text-align: center;
    color: var(--muted);
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
}

.cart-main {
    min-width: 0;
}

.cart-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow);
}

.cart-list-form {
    display: grid;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 180px;
    gap: 20px;
    align-items: stretch;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.cart-item-media {
    min-height: 120px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(29, 57, 72, 0.14), rgba(199, 92, 50, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-copy {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.cart-item-copy h2,
.cart-item-copy p {
    margin: 0;
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
}

.cart-item-controls {
    display: grid;
    align-content: center;
    gap: 12px;
    justify-items: end;
}

.cart-item-controls label {
    display: grid;
    gap: 6px;
    width: 100%;
}

.cart-item-controls input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    font: inherit;
}

.cart-actions-row,
.cart-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-summary {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 110px;
}

.cart-summary h2,
.cart-empty-state h2 {
    margin: 0;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-summary-note,
.cart-empty-state p {
    margin: 0;
    color: var(--muted);
}

.cart-checkout-form {
    display: grid;
    gap: 10px;
    width: 100%;
}

.cart-checkout-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.cart-checkout-form select,
.cart-checkout-form input,
.cart-checkout-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    font: inherit;
}

.cart-checkout-form textarea {
    min-height: 96px;
    padding: 10px 14px;
    resize: vertical;
}

.cart-checkout-edit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.proforma-document-section {
    padding-top: 28px;
}

.proforma-document-card {
    display: grid;
    gap: 22px;
}

.proforma-document-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
}

.proforma-document-head > div:first-child {
    min-width: 0;
}

.proforma-document-logo {
    --proforma-logo-space: clamp(56px, 9vw, 88px);
    display: block;
    width: clamp(180px, 30vw, 280px);
    max-width: 100%;
    height: auto;
    margin-top: var(--proforma-logo-space);
    margin-bottom: 6px;
}

.proforma-document-slogan {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(0.96rem, 1.8vw, 1.08rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--deep);
}

.proforma-document-divider {
    width: 100%;
    height: 1px;
    margin: 12px 0 var(--proforma-logo-space);
    background: linear-gradient(90deg, rgba(29, 57, 72, 0.45), rgba(29, 57, 72, 0.18));
}

.proforma-document-head h1 {
    margin: 8px 0 8px;
}

.proforma-document-head p {
    margin: 0;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(22, 33, 43, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 16px;
    border-top: 2px solid var(--accent);
    animation: slideUp 300ms ease-out;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.cookie-consent-banner.is-hidden {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.5;
}

.cookie-consent-text p:first-child {
    margin-bottom: 6px;
}

.cookie-consent-text strong {
    color: #ffd166;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.cookie-consent-actions .button {
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 200ms ease;
}

.cookie-consent-actions .button-primary {
    background: var(--accent);
    color: #fff;
}

.cookie-consent-actions .button-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.cookie-consent-actions .button-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-actions .button-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
    .cookie-consent-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-actions .button {
        flex: 1;
    }

    .cookie-consent-banner {
        padding: 12px;
    }

    .cookie-consent-text p {
        font-size: 0.85rem;
    }
}

.proforma-document-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
    margin-bottom: 6px;
}

.proforma-print-badge {
    margin: 2px 0 6px;
    width: fit-content;
    padding: 5px 10px;
    border: 1px solid rgba(29, 57, 72, 0.35);
    border-radius: 999px;
    background: rgba(29, 57, 72, 0.08);
    color: var(--deep);
    font: 800 0.78rem/1 'IBM Plex Sans', sans-serif;
    letter-spacing: 0.08em;
}

.proforma-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.proforma-document-grid section,
.proforma-document-summary,
.proforma-document-notes {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
}

.proforma-document-grid h2,
.proforma-document-summary h2,
.proforma-document-notes h2 {
    margin-top: 0;
}

.proforma-document-grid p,
.proforma-document-notes p,
.proforma-document-foot p {
    margin: 8px 0;
}

.proforma-document-foot {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.proforma-items-table {
    width: 100%;
    table-layout: fixed;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
}

.proforma-col-index {
    width: 52px;
}

.proforma-col-qty {
    width: 92px;
}

.proforma-col-unit-price,
.proforma-col-total {
    width: 128px;
}

.proforma-items-table thead th {
    background: linear-gradient(180deg, rgba(29, 57, 72, 0.12), rgba(29, 57, 72, 0.08));
    color: var(--deep);
    font-weight: 700;
}

.proforma-items-table tbody tr:nth-child(even) {
    background: rgba(29, 57, 72, 0.03);
}

.proforma-items-table tfoot td {
    background: rgba(29, 57, 72, 0.08);
    font-weight: 700;
}

.proforma-items-table th:nth-child(1),
.proforma-items-table td:nth-child(1) {
    width: 52px;
    text-align: center;
}

.proforma-items-table th:nth-child(3),
.proforma-items-table td:nth-child(3),
.proforma-items-table th:nth-child(4),
.proforma-items-table td:nth-child(4),
.proforma-items-table th:nth-child(5),
.proforma-items-table td:nth-child(5),
.proforma-col-number {
    text-align: right;
    white-space: nowrap;
}

.proforma-items-table td:nth-child(2) {
    min-width: 0;
    white-space: normal;
}

.proforma-document-summary > p {
    margin: 14px 0 0;
}

@media (max-width: 900px) {
    .admin-update-file-grid {
        grid-template-columns: 1fr;
    }

    .admin-update-file-row-actions {
        justify-content: flex-start;
    }

    .proforma-document-head {
        flex-direction: column;
        align-items: stretch;
    }

    .proforma-document-actions {
        justify-content: flex-start;
    }

    .proforma-document-grid {
        grid-template-columns: 1fr;
    }

    .brand-tagline {
        font-size: 0.5rem;
        margin-top: -20px;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    .site-header,
    .site-footer,
    .site-alert,
    .no-print,
    .nav-toggle,
    .header-actions,
    .page-banner,
    .admin-sidebar,
    .admin-topbar {
        display: none !important;
    }

    .admin-shell {
        display: block !important;
    }

    .admin-main {
        padding: 0 !important;
        width: 100% !important;
    }

    body {
        background: #fff !important;
    }

    .content-section {
        padding: 0;
    }

    .container,
    .narrow {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .proforma-document-card,
    .content-card {
        box-shadow: none;
        border: 0;
        background: #fff;
        border-radius: 0;
        padding: 0 !important;
    }

    .proforma-document-card {
        gap: 10px !important;
    }

    .proforma-document-head {
        gap: 8px !important;
    }

    .proforma-document-head h1 {
        margin: 0 !important;
        font-size: 1.45rem !important;
        line-height: 1.2 !important;
    }

    .proforma-document-head p {
        margin: 4px 0 0 !important;
    }

    .proforma-document-logo {
        width: 220px;
        margin-top: 12px !important;
        margin-bottom: 6px !important;
    }

    .proforma-document-slogan {
        color: #1d3948 !important;
    }

    .proforma-print-badge {
        margin: 0 0 8px !important;
        padding: 3px 10px !important;
        border: 1px solid #1d3948 !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: #1d3948 !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        letter-spacing: 0.12em !important;
        display: inline-block !important;
    }

    .proforma-document-divider {
        margin: 8px 0 14px !important;
        background: #c8d1d8 !important;
    }

    .proforma-document-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .proforma-document-grid section {
        break-inside: avoid;
    }

    .proforma-document-grid h2,
    .proforma-document-summary h2,
    .proforma-document-notes h2 {
        margin: 0 0 4px !important;
        font-size: 1rem !important;
    }

    .proforma-document-grid p,
    .proforma-document-summary > p,
    .proforma-document-notes p,
    .proforma-document-foot p {
        margin: 3px 0 !important;
        line-height: 1.3 !important;
    }

    .proforma-document-summary {
        margin-top: 4px !important;
    }

    .table-wrap {
        overflow: visible !important;
    }

    .proforma-items-table,
    .proforma-items-table thead,
    .proforma-items-table tbody,
    .proforma-items-table tfoot,
    .proforma-items-table tr,
    .proforma-items-table th,
    .proforma-items-table td {
        display: table-row-group;
    }

    .proforma-items-table {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 11px !important;
    }

    .proforma-items-table thead {
        display: table-header-group !important;
    }

    .proforma-items-table tbody {
        display: table-row-group !important;
    }

    .proforma-items-table tfoot {
        display: table-footer-group !important;
    }

    .proforma-items-table tr {
        display: table-row !important;
        break-inside: avoid;
    }

    .proforma-items-table th,
    .proforma-items-table td {
        display: table-cell !important;
        padding: 5px 7px !important;
        border: 1px solid #d7dee3 !important;
        background: #fff !important;
    }

    .proforma-items-table td::before {
        content: none !important;
        display: none !important;
    }

    .proforma-items-table th:nth-child(1),
    .proforma-items-table td:nth-child(1) {
        text-align: center;
    }

    .proforma-document-foot {
        margin-top: 6px !important;
        padding-top: 8px !important;
    }
}

.admin-product-preview {
    display: grid;
    gap: 12px;
    min-height: 120px;
    padding: 14px;
    border: 1px dashed rgba(11, 73, 89, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-product-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(22, 33, 43, 0.08);
}

.admin-product-preview span {
    color: var(--muted);
    font-size: 0.92rem;
    word-break: break-word;
}

.admin-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.admin-table-actions form {
    margin: 0;
}

.admin-inline-form {
    margin: 0;
}

.admin-table-proformas th:nth-child(1),
.admin-table-proformas td:nth-child(1) {
    white-space: nowrap;
}

.admin-table-proformas th:nth-child(1),
.admin-table-proformas td:nth-child(1) {
    min-width: 320px;
}

.admin-table-proformas th:nth-child(2),
.admin-table-proformas td:nth-child(2) {
    white-space: nowrap;
}

.admin-proforma-main-cell {
    min-width: 320px;
}

.admin-proforma-main-meta {
    display: grid;
    gap: 0;
}

.admin-proforma-main-first-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 10px;
    margin-bottom: 4px;
}

.admin-proforma-main-number {
    margin-bottom: 0;
}

.admin-proforma-main-client {
    margin-bottom: 0;
}

.admin-proforma-main-email {
    color: var(--muted);
}

.admin-proforma-main-eik {
    color: var(--muted);
    font-size: 0.85em;
}

.admin-proforma-row-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-proforma-row-actions .button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
}

.admin-proforma-row-actions .admin-icon-button {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
}

.admin-proforma-row-actions form {
    margin: 0;
}

.admin-table-invoices th:nth-child(1),
.admin-table-invoices td:nth-child(1) {
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    padding-left: 4px;
    padding-right: 4px;
}

.admin-table-invoices th:nth-child(2),
.admin-table-invoices td:nth-child(2) {
    min-width: 320px;
}

.admin-table-invoices th:nth-child(3),
.admin-table-invoices td:nth-child(3) {
    white-space: nowrap;
}

.admin-table-invoices th:nth-child(4),
.admin-table-invoices td:nth-child(4) {
    white-space: nowrap;
}

.admin-table-email-logs th:nth-child(1),
.admin-table-email-logs td:nth-child(1) {
    white-space: nowrap;
}

.admin-table-email-logs th:nth-child(2),
.admin-table-email-logs td:nth-child(2) {
    min-width: 210px;
}

.admin-table-email-logs th:nth-child(3),
.admin-table-email-logs td:nth-child(3) {
    min-width: 260px;
}

.admin-email-logs-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
}

.admin-email-log-detail {
    display: grid;
    gap: 12px;
}

.admin-email-log-detail p,
.admin-email-log-detail h3 {
    margin: 0;
}

.admin-email-log-body {
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(22, 33, 43, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    font: 500 0.95rem/1.5 'IBM Plex Sans', sans-serif;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 520px;
    overflow: auto;
}

.admin-table-proforma-items input {
    min-width: 0;
}

.admin-table-proforma-items th:nth-child(1),
.admin-table-proforma-items td:nth-child(1) {
    min-width: 280px;
}

.proforma-items-layout {
    table-layout: fixed;
    width: 100%;
}

.proforma-items-layout th:nth-child(1),
.proforma-items-layout td:nth-child(1) {
    width: 70%;
}

.proforma-items-layout th:nth-child(2),
.proforma-items-layout td:nth-child(2),
.proforma-items-layout th:nth-child(3),
.proforma-items-layout td:nth-child(3) {
    width: 7%;
}

.proforma-items-layout th:nth-child(4),
.proforma-items-layout td:nth-child(4) {
    width: 8%;
}

.proforma-items-layout th:nth-child(5),
.proforma-items-layout td:nth-child(5) {
    width: 8%;
}

.admin-proforma-row-total {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.admin-proforma-remove-cell {
    white-space: nowrap;
}

.admin-proforma-remove-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.admin-proforma-preview-section {
    padding-top: 0;
}

.admin-catalog-results {
    position: absolute;
    z-index: 1200;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid rgba(11, 73, 89, 0.22);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(11, 33, 59, 0.22);
    padding: 6px;
}

.admin-catalog-results-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font: 500 0.95rem/1.35 'IBM Plex Sans', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-catalog-results-item:hover,
.admin-catalog-results-item:focus-visible {
    background: rgba(11, 73, 89, 0.1);
    outline: none;
}

.admin-status-form {
    margin: 0;
    display: flex;
    justify-content: center;
}

.admin-status-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.admin-status-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent-dark);
    cursor: pointer;
}

.admin-table-actions button {
    cursor: pointer;
}

.admin-inline-action {
    color: var(--deep) !important;
}

.admin-table-name-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.15s ease;
}

.admin-table-name-link:hover {
    text-decoration-color: #1a8a4a;
}

/* EIK / VAT lookup bar */
.admin-eik-lookup {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.admin-eik-lookup input[type="text"] {
    width: 180px;
    padding: 0.38rem 0.6rem;
    border: 1px solid rgba(11, 73, 89, 0.25);
    border-radius: 6px;
    font-size: 0.9rem;
}

.eik-lookup-status {
    font-size: 0.82rem;
    color: #b05000;
    white-space: nowrap;
}

.admin-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(11, 73, 89, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: var(--deep);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-icon-button:hover,
.admin-icon-button:focus-visible {
    border-color: rgba(11, 73, 89, 0.34);
    background: rgba(11, 73, 89, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.admin-icon-button-danger {
    color: #8f2f2f;
}

.admin-icon-button-danger:hover,
.admin-icon-button-danger:focus-visible {
    border-color: rgba(143, 47, 47, 0.3);
    background: rgba(143, 47, 47, 0.08);
    color: #7a2323;
}

.has-modal-open {
    overflow: hidden;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 21, 0.58);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.admin-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 249, 242, 0.98);
    box-shadow: 0 28px 60px rgba(10, 16, 21, 0.24);
}

.admin-modal-dialog-clients {
    width: min(980px, 100%);
}

.admin-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-modal-head h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.admin-modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(22, 33, 43, 0.08);
    color: var(--ink);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.admin-modal-form {
    gap: 16px;
}

.admin-rich-editor {
    display: grid;
    gap: 10px;
}

.admin-rich-editor-toolbar-section {
    border: 1px solid rgba(22, 33, 43, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
    overflow: hidden;
}

.admin-rich-editor-toolbar-title {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(22, 33, 43, 0.75);
    background: rgba(22, 33, 43, 0.06);
    border-bottom: 1px solid rgba(22, 33, 43, 0.1);
}

.admin-rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px;
}

.admin-rich-editor-toolbar select {
    width: auto;
    min-width: 124px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.admin-rich-editor-toolbar .button {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 0.88rem;
}

.admin-rich-editor-toolbar-break {
    flex-basis: 100%;
    height: 0;
}

.admin-rich-editor-surface,
.admin-rich-editor textarea[data-rich-editor-source] {
    min-height: 380px;
    border: 1px solid rgba(22, 33, 43, 0.14);
    border-radius: 18px;
    padding: 16px;
    background: #ffffff;
    line-height: 1.65;
}

.admin-rich-editor-surface {
    overflow: auto;
}

.admin-rich-editor-surface:focus {
    outline: 2px solid rgba(11, 73, 89, 0.18);
    outline-offset: 2px;
}

.admin-rich-editor-surface > *:first-child {
    margin-top: 0;
}

.admin-rich-editor-surface > *:last-child {
    margin-bottom: 0;
}

.admin-rich-editor.is-code-view .admin-rich-editor-toolbar [data-rich-editor-command],
.admin-rich-editor.is-code-view .admin-rich-editor-toolbar [data-rich-editor-font],
.admin-rich-editor.is-code-view .admin-rich-editor-toolbar [data-rich-editor-size],
.admin-rich-editor.is-code-view .admin-rich-editor-toolbar [data-rich-editor-link] {
    opacity: 0.55;
}

.admin-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 180;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(11, 73, 89, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--deep);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(10, 16, 21, 0.2);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.admin-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.admin-back-to-top:hover,
.admin-back-to-top:focus-visible {
    border-color: rgba(11, 73, 89, 0.35);
    background: #ffffff;
    outline: none;
}

.admin-table-carousel th:nth-child(1),
.admin-table-carousel td:nth-child(1) {
    width: 140px;
}

.admin-table-products th:nth-child(1),
.admin-table-products td:nth-child(1) {
    width: 150px;
}

.admin-table-highlights th:nth-child(1),
.admin-table-highlights td:nth-child(1) {
    width: 29%;
}

.admin-table-highlights th:nth-child(2),
.admin-table-highlights td:nth-child(2) {
    width: 31%;
}

.admin-table-highlights th:nth-child(4),
.admin-table-highlights td:nth-child(4) {
    white-space: nowrap;
}

.admin-carousel-media-cell {
    display: flex;
    align-items: center;
    min-height: 64px;
}

.admin-carousel-thumb {
    width: 112px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.admin-carousel-thumb-video {
    width: 112px;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #081218;
}

.admin-carousel-thumb-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.admin-media-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(29, 57, 72, 0.1);
    color: var(--deep);
    font-weight: 700;
}

.admin-media-pill.is-empty {
    background: rgba(22, 33, 43, 0.08);
    color: var(--muted);
}

.admin-muted-text {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.admin-carousel-preview {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px dashed rgba(22, 33, 43, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.admin-carousel-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 14px;
}

.admin-carousel-preview-video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #081218;
}

.admin-carousel-preview-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.admin-preview-note {
    display: grid;
    gap: 6px;
}

.admin-help-text {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-inline-action-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.admin-inline-clear-button {
    min-width: 54px;
    padding: 0 16px;
    background: #b54141;
    border-color: #b54141;
    color: #fff;
}

.admin-inline-clear-button:hover {
    background: #913131;
    border-color: #913131;
}

.admin-support-status {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(29, 57, 72, 0.08);
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.support-status-badges,
.admin-support-indicators,
.admin-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.support-status-badges,
.admin-support-indicators {
    margin-top: 14px;
}

.admin-support-actions {
    margin-top: 16px;
    margin-bottom: 16px;
}

.admin-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.admin-auth-card {
    width: min(520px, 100%);
}

.admin-auth-form {
    margin-top: 20px;
}

.admin-login-hint {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(29, 57, 72, 0.08);
}

.admin-fieldset {
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(22, 33, 43, 0.1);
    border-radius: 18px;
}

.auth-shell {
    display: grid;
    gap: 18px;
}

.auth-switcher {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.auth-switcher-button {
    min-width: 150px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 180ms ease;
}

.auth-switcher-button.is-active {
    background: #861414;
    color: #fff;
}

.auth-panel {
    display: grid;
    gap: 18px;
}

.auth-panel h2,
.auth-panel h3,
.account-summary h2,
.account-summary h3 {
    margin: 0;
}

.auth-panel p,
.account-summary p {
    margin: 0;
}

.auth-stack {
    display: grid;
    gap: 20px;
}

.auth-panel[hidden] {
    display: none;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form-compact {
    margin-top: 6px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    border: 1px solid rgba(22, 33, 43, 0.14);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: rgba(255, 255, 255, 0.9);
}

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

.auth-note,
.account-muted {
    color: var(--muted);
    line-height: 1.7;
}

.license-key-display {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    background: rgba(11, 73, 89, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
}

.license-expiry-warn {
    color: #b05000;
    font-weight: 600;
}

.auth-help-card,
.account-summary {
    display: grid;
    gap: 14px;
}

.site-user-activity-meta {
    display: block;
    word-break: break-word;
    white-space: normal;
    max-width: none;
}

.site-user-activity-meta.is-hardware-mismatch {
    color: #dc2626;
    font-weight: 600;
}

.auth-resend-box {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(29, 57, 72, 0.06);
}

.auth-debug-box {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(199, 92, 50, 0.08);
    border: 1px dashed rgba(199, 92, 50, 0.28);
}

.status-pill-success {
    background: rgba(70, 139, 107, 0.14);
    color: #1e6545;
}

.status-pill-pending {
    background: rgba(181, 127, 56, 0.14);
    color: #8f5a1f;
}

.status-pill-danger {
    background: #d62828;
    color: #ffffff;
}

.license-version-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.license-version-pill-success {
    background: #1f8f55;
    color: #ffffff;
}

.license-version-pill-warning {
    background: #d4971f;
    color: #ffffff;
}

.license-version-pill-danger {
    background: #c73939;
    color: #ffffff;
}

.account-definition-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.account-definition-list div {
    display: grid;
    gap: 4px;
}

.account-definition-list dt {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.account-definition-list dd {
    margin: 0;
}

.account-inline-link {
    color: var(--price-blue);
    font-weight: 600;
    text-decoration-color: currentColor;
}

.account-inline-link:hover {
    color: #235b97;
}

.account-form-card,
.companies-card,
.company-form-card {
    display: grid;
    gap: 18px;
}

/* For cards that contain wide tables, bleed the table to card edges */
.companies-card .table-wrap {
    margin-left: -28px;
    margin-right: -28px;
}

.companies-card .client-table th:first-child,
.companies-card .client-table td:first-child {
    padding-left: 28px;
}

.companies-card .client-table th:last-child,
.companies-card .client-table td:last-child {
    padding-right: 28px;
}

.account-form {
    display: grid;
    gap: 14px;
}

.account-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.account-form input,
.account-form textarea {
    width: 100%;
    border: 1px solid rgba(22, 33, 43, 0.14);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.company-list {
    display: grid;
    gap: 16px;
}

.company-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(29, 57, 72, 0.06);
}

.company-card h3,
.company-card p {
    margin: 0;
}

.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.company-notes {
    white-space: pre-line;
}

.company-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.company-delete-form {
    margin: 0;
}

/* Header switches to hamburger a bit earlier to avoid edge overflow on tablets. */
@media (max-width: 1100px) {
    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: auto;
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 24px;
        background: rgba(20, 73, 132, 0.96);
        box-shadow: var(--shadow);
        z-index: 30;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header-bar {
        position: relative;
    }

    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 960px) {
    .header-bar {
        min-width: 0;
    }

    .brand,
    .brand-logo-only,
    .header-actions {
        min-width: 0;
    }

    .brand-mark {
        width: min(220px, 58vw);
        height: auto;
    }

    .two-column-layout,
    .contact-grid,
    .stat-grid,
    .card-grid,
    .compact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .admin-search-form {
        display: block;
    }

    .admin-search-form input {
        width: 100%;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: auto;
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 24px;
        background: rgba(20, 73, 132, 0.96);
        box-shadow: var(--shadow);
        z-index: 30;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header-bar {
        position: relative;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-user-dropdown {
        right: 0;
        left: auto;
        z-index: 80;
    }

    .auth-switcher {
        width: 100%;
    }

    .auth-switcher-button {
        min-width: 0;
    }

    .section-head,
    .download-item,
    .footer-bottom,
    .info-banner,
    .support-link-actions,
    .admin-topbar,
    .admin-actions-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-import-actions {
        width: 100%;
    }

    .admin-inline-field,
    .admin-inline-field input,
    .admin-inline-field select {
        width: 100%;
        min-width: 0;
    }

    .admin-shell,
    .admin-grid-stats,
    .admin-grid-main,
    .admin-form-layout,
    .admin-settings-grid,
    .admin-form-row,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        grid-template-columns: 1fr;
        gap: 16px;
        position: sticky;
        top: 0;
        width: 100%;
        margin-top: 0;
        padding: 16px;
    }

    .admin-brand {
        justify-content: flex-start;
    }

    .admin-menu-toggle {
        display: inline-flex;
        justify-self: end;
        grid-row: 1;
        grid-column: 1;
    }

    .admin-menu-panel {
        display: none;
        width: 100%;
        max-height: calc(100dvh - 120px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    .admin-sidebar.is-menu-open .admin-menu-panel {
        display: grid;
        gap: 14px;
    }

    .admin-sidebar.is-menu-open .admin-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .admin-sidebar.is-menu-open .admin-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .admin-sidebar.is-menu-open .admin-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .admin-nav {
        align-items: stretch;
        display: grid;
    }

    .admin-nav a,
    .admin-nav-toggle,
    .admin-nav-utility-link,
    .admin-nav-utility-button {
        width: 100%;
        justify-content: space-between;
    }

    .admin-nav-group {
        width: 100%;
    }

    .admin-nav-group.is-open .admin-nav-submenu {
        position: static;
        min-width: 0;
        box-shadow: none;
        margin-top: 6px;
    }

    .admin-nav-utility,
    .admin-sidebar-footer {
        display: grid;
    }

    .admin-main {
        padding: 20px;
    }

    .admin-topbar {
        gap: 14px;
        margin-bottom: 18px;
    }

    .admin-topbar h1 {
        margin-top: 2px;
        font-size: clamp(1.45rem, 5.4vw, 2rem);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .admin-panel-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .admin-eik-lookup {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-eik-lookup input[type="text"] {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .admin-eik-lookup .button {
        flex: 1 1 140px;
        min-width: 0;
    }

    .eik-lookup-status {
        width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .admin-form label,
    .admin-help-text {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-inline-action-field {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-inline-action-field .button {
        width: 100%;
    }

    .admin-user-card {
        width: 100%;
        min-width: 0;
    }

    .admin-panel,
    .admin-stat-card,
    .admin-auth-card {
        min-width: 0;
        border-radius: 22px;
    }

    .admin-main table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .admin-main th,
    .admin-main td {
        white-space: nowrap;
    }

    .admin-modal {
        padding: 16px;
    }

    .admin-modal-dialog {
        max-height: calc(100vh - 32px);
        padding: 20px;
    }

    .admin-back-to-top {
        right: 16px;
        bottom: 16px;
    }

    .homepage-carousel,
    .carousel-track {
        min-height: 420px;
    }

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

    .client-table thead {
        display: none;
    }

    .client-table,
    .client-table tbody,
    .client-table tr,
    .client-table td {
        display: block;
        width: 100%;
        white-space: normal;
    }

    .client-table tr {
        padding: 16px;
        border-bottom: 1px solid var(--line);
    }

    .client-table td {
        padding: 8px 0;
        border-bottom: 0;
    }

    .client-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .card-grid,
    .card-grid > * {
        min-width: 0;
    }

    .client-card {
        min-width: 0;
        overflow: hidden;
    }

    .client-card h2,
    .client-card p,
    .client-card .text-link,
    .client-meta strong {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }

    .client-meta {
        grid-template-columns: 1fr;
        row-gap: 8px;
        justify-items: center;
    }
}

@media (max-width: 640px) {
    .header-bar {
        gap: 12px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow: visible;
        min-width: 0;
    }

    body,
    .site-shell {
        overflow-x: hidden;
    }

    .brand-logo-only {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 146px);
    }

    .brand-mark {
        width: min(118px, 34vw);
    }

    .admin-main {
        padding: 14px;
    }

    .admin-topbar {
        gap: 10px;
        margin-bottom: 14px;
    }

    .admin-topbar h1 {
        font-size: clamp(1.18rem, 6.2vw, 1.55rem);
    }

    .admin-panel-head h2 {
        font-size: 1.15rem;
    }

    .admin-nav a,
    .admin-nav-toggle,
    .admin-nav-submenu-link {
        font-size: 0.9rem;
    }

    .admin-form input,
    .admin-form textarea,
    .admin-form select {
        padding: 12px 14px;
        font-size: 16px;
    }

    .admin-actions-row .button {
        width: 100%;
    }

    .header-actions {
        gap: 6px;
        flex: 0 0 auto;
        position: relative;
        z-index: 70;
        margin-left: auto;
        min-width: 136px;
        justify-content: flex-end;
    }

    .header-user-menu,
    .header-user-link,
    .header-cart-link,
    .nav-toggle {
        flex: 0 0 auto;
    }

    .header-user-menu {
        position: static;
    }

    .header-user-dropdown {
        position: fixed;
        top: calc(72px + env(safe-area-inset-top));
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(320px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        z-index: 120;
    }

    .header-user-link,
    .header-cart-link {
        width: 40px;
        height: 40px;
    }

    .nav-toggle {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        font-size: 0;
        line-height: 0;
    }

    .nav-toggle::before {
        content: '';
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    }

    .hero-section {
        padding-top: 40px;
    }

    .hero-section h1 {
        max-width: none;
        font-size: clamp(2.1rem, 11vw, 3.4rem);
    }

    .page-banner h1 {
        font-size: clamp(1.55rem, 5.8vw, 2.2rem);
        white-space: normal;
    }

    .homepage-carousel,
    .carousel-track {
        min-height: 340px;
    }

    .carousel-content {
        padding: 24px;
    }

    .carousel-content h2 {
        font-size: clamp(1.7rem, 9vw, 2.4rem);
    }

    .carousel-controls {
        left: 18px;
        right: 18px;
        bottom: 14px;
    }

    .content-card,
    .download-item,
    .contact-card,
    .stack-item,
    .faq-item,
    .hero-panel-inner,
    .footer-grid,
    .admin-panel,
    .admin-stat-card,
    .admin-auth-card {
        padding: 22px;
    }

    .product-card-visual {
        min-height: 0;
    }

    .product-card-body {
        padding: 22px;
    }

    .product-card-media {
        min-height: 170px;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-controls {
        justify-items: stretch;
    }

    .cart-summary {
        position: static;
    }

    .brand-mark {
        width: 190px;
        height: 56px;
    }

    .hero-logo,
    .footer-logo {
        width: 180px;
    }
}

/* Tablet portrait: avoid visible right gutter/stripe from reserved scrollbar lane. */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) {
    html,
    body {
        scrollbar-width: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    body::after {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        width: 18px;
        height: 100vh;
        background: #bde3ff;
        pointer-events: none;
        z-index: 1;
    }
}
/* -- Bilingual language tabs (invoice-edit) --------------------------- */
.admin-lang-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(22,33,43,0.12);
    margin-bottom: 1.5rem;
}

.admin-lang-tab {
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 0.95rem;
    color: rgba(22,33,43,0.50);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    letter-spacing: 0.01em;
}

.admin-lang-tab:hover {
    color: rgba(22,33,43,0.80);
}

.admin-lang-tab.is-active {
    color: #1f4dba;
    border-bottom-color: #1f4dba;
}

.admin-lang-panel {
    display: none;
}

.admin-lang-panel.is-active {
    display: block;
}

.en-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.en-items-table th,
.en-items-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(22,33,43,0.10);
    font-size: 0.9rem;
}

.en-items-table th {
    font-weight: 600;
    color: rgba(22,33,43,0.65);
    background: rgba(22,33,43,0.04);
}
