/* assets/style.css - Niestandardowe style i reguły dla aplikacji AppZone */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Outfit', sans-serif;
}

.hosting-plan-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
    overflow: visible;
}

.panel-heading-title,
.panel-heading-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.panel-heading-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    text-align: center;
    width: 100%;
}

.panel-heading-stack .panel-heading-title-text {
    display: block;
}

.panel-role-badge {
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.panel-role-badge--client {
    background: rgb(209 250 229);
    color: rgb(4 120 87);
}

.dark .panel-role-badge--client {
    background: rgb(6 78 59 / 0.4);
    color: rgb(52 211 153);
}

.panel-role-badge--partner {
    background: rgb(224 231 255);
    color: rgb(67 56 202);
}

.dark .panel-role-badge--partner {
    background: rgb(49 46 129 / 0.5);
    color: rgb(129 140 248);
}

.panel-role-badge--admin {
    background: rgb(254 226 226);
    color: rgb(185 28 28);
}

.dark .panel-role-badge--admin {
    background: rgb(127 29 29 / 0.4);
    color: rgb(248 113 113);
}

button,
select,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="file"]::-webkit-file-upload-button,
label[for],
[role="button"] {
    cursor: pointer;
}

button:disabled,
select:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
    cursor: not-allowed;
}

/* Placeholder widoczny po dynamicznej zmianie motywu (Tailwind CDN) */
input::placeholder,
textarea::placeholder {
    color: rgb(148 163 184);
    opacity: 1;
}
.dark input::placeholder,
.dark textarea::placeholder {
    color: rgb(100 116 139);
    opacity: 1;
}

/* Efekty przejścia dla modala — bez scale (scale + border-radius daje szare rogi na tle overlay) */
#checkout-modal.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}
#checkout-modal > .checkout-modal-panel {
    transform: translateY(0.5rem);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
#checkout-modal.active > .checkout-modal-panel {
    transform: translateY(0);
    opacity: 1;
}

.nav-dropdown-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.375rem);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.nav-subdropdown-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-0.375rem);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}
.nav-subdropdown:hover .nav-subdropdown-panel,
.nav-subdropdown:focus-within .nav-subdropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}
.nav-dropdown-scroll {
    max-height: min(calc(24rem + 20px), calc(100dvh - 5.5rem + 20px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgb(199 210 254) transparent;
}
.dark .nav-dropdown-scroll {
    scrollbar-color: rgb(67 56 202 / 0.5) transparent;
}
.nav-dropdown-scroll::-webkit-scrollbar {
    width: 6px;
}
.nav-dropdown-scroll::-webkit-scrollbar-thumb {
    background: rgb(199 210 254);
    border-radius: 9999px;
}
.dark .nav-dropdown-scroll::-webkit-scrollbar-thumb {
    background: rgb(67 56 202 / 0.5);
}

/* Płynny scroll w modalach panelowych (bez backdrop-blur na overlay) */
.panel-modal-scroll {
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgb(203 213 225) transparent;
}
.dark .panel-modal-scroll {
    scrollbar-color: rgb(71 85 105 / 0.6) transparent;
}
.panel-modal-scroll::-webkit-scrollbar {
    width: 6px;
}
.panel-modal-scroll::-webkit-scrollbar-thumb {
    background: rgb(203 213 225);
    border-radius: 9999px;
}
.dark .panel-modal-scroll::-webkit-scrollbar-thumb {
    background: rgb(71 85 105 / 0.6);
}
.opinion-modal-item,
.client-modal-order-item {
    content-visibility: auto;
    contain-intrinsic-size: auto 7.5rem;
}

.nav-dropdown-menu > a,
.nav-dropdown-menu .nav-subdropdown > a {
    display: flex;
}
.nav-dropdown-menu {
    overflow: hidden;
}
.nav-dropdown-menu:has(.nav-subdropdown) {
    overflow: visible;
}

/* Animacje dla świateł Aurora w sekcji Hero */
@keyframes float-glow-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(3%, 8%) scale(1.1);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}
@keyframes float-glow-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-5%, -4%) scale(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}
.animate-aurora-1 {
    animation: float-glow-1 14s ease-in-out infinite;
}
.animate-aurora-2 {
    animation: float-glow-2 18s ease-in-out infinite;
}

/* Base hover lift for all product tiles */
.product-card {
    position: relative;
    margin-top: 1.85rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 22px 45px -15px rgba(15, 23, 42, 0.12), 0 8px 16px -8px rgba(15, 23, 42, 0.06);
}

.dark .product-card:hover {
    box-shadow: 0 22px 45px -15px rgba(0, 0, 0, 0.4), 0 8px 16px -8px rgba(0, 0, 0, 0.2);
}

/* Styl dla produktów Bestseller klasy Premium */
.bestseller-card {
    border: 2px solid rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.08), 0 2px 8px -1px rgba(245, 158, 11, 0.04) !important;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bestseller-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(245, 158, 11, 0.95) !important;
    box-shadow: 0 22px 45px -15px rgba(245, 158, 11, 0.35), 0 0 25px 4px rgba(245, 158, 11, 0.15) !important;
}

.bestseller-card > a,
.bestseller-card > .product-card-media {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    overflow: hidden;
}

.bestseller-badge {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translate(-50%, -100%);
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.725rem;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.8rem;
    border-radius: 16px 16px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    box-shadow: 0 -4px 10px rgba(217, 119, 6, 0.15);
    z-index: 20;
    white-space: nowrap;
    border: 2px solid rgba(245, 158, 11, 0.45);
    border-bottom: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bestseller-card:hover .bestseller-badge {
    border-color: rgba(245, 158, 11, 0.95);
    box-shadow: 0 -6px 14px rgba(217, 119, 6, 0.3);
    transform: translate(-50%, -105%) scale(1.05);
}

/* Styl dla produktów Rekomendowanych klasy Premium */
.recommended-card {
    border: 2px solid rgba(99, 102, 241, 0.4) !important; /* indigo-500/40 */
    box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.08), 0 2px 8px -1px rgba(99, 102, 241, 0.04) !important;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.recommended-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.9) !important;
    box-shadow: 0 22px 45px -15px rgba(99, 102, 241, 0.35), 0 0 25px 4px rgba(99, 102, 241, 0.15) !important;
}

.recommended-card > a,
.recommended-card > .product-card-media {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    overflow: hidden;
}

.product-card-media {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    overflow: hidden;
}

.product-tab {
    cursor: pointer;
}

.product-gallery-strip,
.product-gallery-modal-strip {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.45) transparent;
}

.product-gallery-strip::-webkit-scrollbar,
.product-gallery-modal-strip::-webkit-scrollbar {
    height: 6px;
}

.product-gallery-strip::-webkit-scrollbar-thumb,
.product-gallery-modal-strip::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.45);
    border-radius: 999px;
}

.product-gallery-strip::-webkit-scrollbar-track,
.product-gallery-modal-strip::-webkit-scrollbar-track {
    background: transparent;
}

.product-gallery-admin-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.45) transparent;
}

.product-gallery-admin-strip::-webkit-scrollbar {
    height: 6px;
}

.product-gallery-admin-strip::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.45);
    border-radius: 999px;
}

.product-gallery-admin-item.is-dragging {
    opacity: 0.55;
}

.product-gallery-admin-item.is-drag-over {
    border-color: rgba(99, 102, 241, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.product-main-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.product-main-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.recommended-badge {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translate(-50%, -100%);
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); /* Indigo gradient */
    color: #ffffff;
    font-weight: 800;
    font-size: 0.725rem;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.8rem;
    border-radius: 16px 16px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    box-shadow: 0 -4px 10px rgba(99, 102, 241, 0.15);
    z-index: 20;
    white-space: nowrap;
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-bottom: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.recommended-card:hover .recommended-badge {
    border-color: rgba(99, 102, 241, 0.9);
    box-shadow: 0 -6px 14px rgba(99, 102, 241, 0.3);
    transform: translate(-50%, -105%) scale(1.05);
}

/* FAQ Accordion Premium Styling */
.faq-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.faq-item.faq-active {
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.08), 0 8px 10px -6px rgba(99, 102, 241, 0.04) !important;
}

.faq-item.faq-active button {
    color: #4f46e5 !important;
}

.dark .faq-item.faq-active button {
    color: #818cf8 !important;
}

/* Opis produktu (Quill HTML) — zgodnie ze starym AppZone */
.product-description.ql-editor {
    padding: 0 !important;
    line-height: 1.42;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: rgb(51 65 85);
}

.dark .product-description.ql-editor {
    color: rgb(203 213 225);
}

.product-description.ql-editor :where(p, span, strong, em, li, a, code):not([class]) {
    color: inherit;
}

.product-description.ql-editor p {
    margin: 0 !important;
    padding: 0;
}

.product-description.ql-editor p:has(> br:only-child),
.product-description.ql-editor p:empty {
    min-height: 1.42em;
}

.product-description.ql-editor ul,
.product-description.ql-editor ol {
    margin: 0;
    padding-left: 1.5em;
}

.product-description.ql-editor ol > li,
.product-description.ql-editor ul > li {
    list-style-type: none;
}

.product-description.ql-editor ul > li::before {
    content: '\2022';
}

.product-description.ql-editor li::before {
    display: inline-block;
    white-space: nowrap;
    width: 1.2em;
}

.product-description.ql-editor li:not(.ql-direction-rtl)::before {
    margin-left: -1.5em;
    margin-right: 0.3em;
    text-align: right;
}

.product-description.ql-editor ol li:not(.ql-direction-rtl),
.product-description.ql-editor ul li:not(.ql-direction-rtl) {
    padding-left: 1.5em;
}

.product-description.ql-editor .product-fullscreen-btn {
    white-space: normal;
}

.dark .product-description.ql-editor code {
    background: rgb(30 41 59);
}

.product-description.ql-editor code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85em;
    padding: 0.1em 0.35em;
    border-radius: 0.25rem;
    background: rgb(241 245 249);
}

.technical-break-message.ql-editor {
    white-space: normal !important;
}

.technical-break-message.ql-editor > :first-child {
    margin-top: 0 !important;
}

.technical-break-message.ql-editor p:has(> br:only-child),
.technical-break-message.ql-editor p:empty {
    display: none;
}

/* Quill — edytor (modal, panel partnera) */
.quill-field {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgb(203 213 225);
    background: rgb(255 255 255);
}

.dark .quill-field {
    border-color: rgb(51 65 85);
    background: rgb(2 6 23);
}

.quill-field .ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid rgb(203 213 225) !important;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background-color: rgb(248 250 252) !important;
    box-shadow: none !important;
}

.quill-field .ql-container.ql-snow {
    border: none !important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    font-family: inherit;
    font-size: 0.875rem;
    background: rgb(255 255 255) !important;
    box-shadow: none !important;
}

.quill-field .ql-editor {
    min-height: 120px;
    color: rgb(15 23 42);
}

.dark .quill-field .ql-toolbar.ql-snow {
    border-bottom-color: rgb(51 65 85) !important;
    background-color: rgb(15 23 42) !important;
}

.dark .quill-field .ql-container.ql-snow {
    background: rgb(2 6 23) !important;
}

.dark .quill-field .ql-editor {
    color: rgb(248 250 252);
}

.dark .quill-field .ql-snow .ql-stroke {
    stroke: rgb(203 213 225);
}

.dark .quill-field .ql-snow .ql-fill {
    fill: rgb(203 213 225);
}

.dark .quill-field .ql-snow .ql-picker {
    color: rgb(203 213 225);
}

.dark .quill-field .ql-snow .ql-picker-label {
    color: rgb(203 213 225);
}

.dark .quill-field .ql-snow .ql-picker-options {
    background-color: rgb(15 23 42);
    border-color: rgb(51 65 85);
}

.dark .quill-field .ql-snow .ql-picker-item {
    color: rgb(203 213 225);
}

.dark .quill-field .ql-snow .ql-picker-item:hover,
.dark .quill-field .ql-snow .ql-picker-item.ql-selected {
    color: rgb(129 140 248);
}

.dark .quill-field .ql-snow .ql-tooltip {
    background-color: rgb(30 41 59);
    border-color: rgb(51 65 85);
    color: rgb(248 250 252);
    box-shadow: 0 10px 25px rgb(0 0 0 / 0.35);
}

.dark .quill-field .ql-snow .ql-tooltip input[type="text"] {
    background: rgb(15 23 42);
    color: rgb(248 250 252);
    border-color: rgb(51 65 85);
}

.dark .quill-field .ql-snow .ql-tooltip a.ql-action,
.dark .quill-field .ql-snow .ql-tooltip a.ql-remove {
    color: rgb(129 140 248);
}

.quill-field .ql-editor.ql-blank::before {
    color: rgb(148 163 184);
    font-style: normal;
}

.dark .quill-field .ql-editor.ql-blank::before {
    color: rgb(100 116 139);
}

/* W jasnym motywie: biały/czarny inline z Quilla → kolor bazowy edytora */
html:not(.dark) .quill-field .ql-editor [style*="color: rgb(255, 255, 255)"],
html:not(.dark) .quill-field .ql-editor [style*="color:rgb(255, 255, 255)"],
html:not(.dark) .quill-field .ql-editor [style*="color: rgb(255,255,255)"],
html:not(.dark) .quill-field .ql-editor [style*="color:#fff"],
html:not(.dark) .quill-field .ql-editor [style*="color: #fff"],
html:not(.dark) .quill-field .ql-editor [style*="color:#ffffff"],
html:not(.dark) .quill-field .ql-editor [style*="color: #ffffff"],
html:not(.dark) .quill-field .ql-editor [style*="color: white"],
html:not(.dark) .quill-field .ql-editor [style*="color:rgb(248, 249, 250)"],
html:not(.dark) .quill-field .ql-editor [style*="color: rgb(248, 249, 250)"] {
    color: rgb(15 23 42) !important;
}

html.dark .quill-field .ql-editor [style*="color: rgb(0, 0, 0)"],
html.dark .quill-field .ql-editor [style*="color:rgb(0, 0, 0)"],
html.dark .quill-field .ql-editor [style*="color: rgb(0,0,0)"],
html.dark .quill-field .ql-editor [style*="color:#000"],
html.dark .quill-field .ql-editor [style*="color: #000"],
html.dark .quill-field .ql-editor [style*="color:#000000"],
html.dark .quill-field .ql-editor [style*="color: black"] {
    color: rgb(248 250 252) !important;
}

.homepage-banner-side {
    position: relative;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(226 232 240 / 0.7);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.7);
    overflow: hidden;
}

.dark .homepage-banner-side {
    border-color: rgb(51 65 85 / 0.7);
    background: rgb(15 23 42 / 0.55);
}

.homepage-banner-hero-ad {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgb(226 232 240 / 0.7);
}

.homepage-banner-hero-ad--responsive {
    aspect-ratio: var(--hero-aspect-mobile, 768 / 480);
}

@media (min-width: 1280px) {
    .homepage-banner-hero-ad--responsive {
        aspect-ratio: var(--hero-aspect-desktop, 1920 / 520);
    }
}

.dark .homepage-banner-hero-ad {
    border-color: rgb(51 65 85 / 0.7);
}

.homepage-banner-hero-ad__picture {
    position: absolute;
    inset: 0;
    display: block;
}

.homepage-banner-hero-ad picture img,
.homepage-banner-hero-ad > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}

.homepage-banner-side,
.homepage-banner-hero-ad {
    transition: border-color 0.2s ease;
}

.homepage-banner-hover-hint {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgb(255 255 255);
    background: rgb(15 23 42 / 0);
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    pointer-events: none;
}

.homepage-banner-side:hover .homepage-banner-hover-hint,
.homepage-banner-hero-ad:hover .homepage-banner-hover-hint {
    opacity: 1;
    background: rgb(15 23 42 / 0.38);
}

.homepage-ad-label {
    position: absolute;
    z-index: 2;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgb(255 255 255);
    background: rgb(15 23 42 / 0.72);
    border-radius: 9999px;
    padding: 0.4em 0.65em;
    pointer-events: none;
}

.homepage-ad-label--top_left {
    top: 0.6rem;
    left: 0.6rem;
    transform: none;
}

.homepage-ad-label--top_right {
    top: 0.6rem;
    right: 0.6rem;
    left: auto;
    transform: none;
}

.homepage-ad-label--bottom_left {
    bottom: 0.6rem;
    left: 0.6rem;
    top: auto;
    transform: none;
}

.homepage-ad-label--bottom_right {
    bottom: 0.6rem;
    right: 0.6rem;
    left: auto;
    top: auto;
    transform: none;
}

.homepage-ad-label--left_upper_center {
    top: 25%;
    left: 0.6rem;
    right: auto;
    transform: translateY(-50%);
}

.homepage-ad-label--left_lower_center {
    top: 75%;
    left: 0.6rem;
    right: auto;
    transform: translateY(-50%);
}

.banner-buy-preview-stage {
    width: 100%;
}

.banner-buy-preview-canvas {
    width: 100%;
}

.banner-buy-preview-scaler {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.banner-buy-preview-scaler--scroll {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.banner-buy-preview-scaler--scroll .banner-buy-preview-scaler-inner {
    margin: 0;
    flex-shrink: 0;
}

.banner-buy-preview-scaler-inner {
    width: 1280px;
    max-width: none;
    margin: 0 auto;
    transform-origin: top center;
}

.banner-buy-preview-section {
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgb(15 23 42 / 0.08);
}

.dark .banner-buy-preview-section {
    box-shadow: 0 10px 40px rgb(0 0 0 / 0.25);
}

.banner-buy-preview-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

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

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

.banner-buy-preview-grid-bg {
    background-image:
        linear-gradient(to right, rgb(128 128 128 / 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(128 128 128 / 0.04) 1px, transparent 1px);
    background-size: 14px 24px;
}

.dark .banner-buy-preview-grid-bg {
    background-image:
        linear-gradient(to right, rgb(255 255 255 / 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(255 255 255 / 0.03) 1px, transparent 1px);
}

.banner-buy-preview-grid {
    display: grid;
    grid-template-columns: var(--preview-side-width, 120px) minmax(0, 1fr) var(--preview-side-width, 120px);
    gap: 1.5rem;
    align-items: start;
}

.banner-buy-preview-grid--mobile {
    grid-template-columns: minmax(0, 1fr);
}

.banner-buy-preview-side-col {
    min-width: 0;
    width: var(--preview-side-width, 120px);
}

.banner-buy-preview-side {
    display: flex;
    width: 100%;
    aspect-ratio: var(--preview-side-ratio, 160 / 600);
}

.banner-buy-preview-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banner-buy-preview-hero-ad {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
}

.banner-buy-preview-hero-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}

.banner-buy-preview-slot-empty,
.banner-buy-preview-hero-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    width: 100%;
    aspect-ratio: var(--preview-side-ratio, 160 / 600);
    padding: 0.75rem;
    border: 2px dashed rgb(203 213 225 / 0.9);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.55);
}

.dark .banner-buy-preview-slot-empty,
.dark .banner-buy-preview-hero-empty {
    border-color: rgb(51 65 85 / 0.9);
    background: rgb(15 23 42 / 0.35);
}

.banner-buy-preview-slot-empty-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    color: rgb(71 85 105);
}

.dark .banner-buy-preview-slot-empty-title {
    color: rgb(203 213 225);
}

.banner-buy-preview-slot-empty-note {
    display: block;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    color: rgb(100 116 139);
}

.dark .banner-buy-preview-slot-empty-note {
    color: rgb(148 163 184);
}

.banner-buy-preview-hero-empty {
    aspect-ratio: auto;
    min-height: 5.5rem;
}

.banner-buy-preview-slot-active {
    outline: 2px solid rgb(79 70 229 / 0.85);
    outline-offset: 3px;
    border-radius: 1rem;
}

.banner-buy-preview-center {
    position: relative;
}

.banner-upload-preview-frame {
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgb(255 255 255 / 0.7);
}

.dark .banner-upload-preview-frame {
    background: rgb(15 23 42 / 0.5);
}

.banner-upload-preview-frame--sm {
    max-height: 9rem;
}

.banner-upload-preview-img {
    display: block;
    width: 100%;
    max-height: 12rem;
    object-fit: contain;
}

.banner-upload-preview-frame--sm .banner-upload-preview-img {
    max-height: 9rem;
}

/* Panel navigation — ikony i dropdowny */
.panel-nav > a,
.panel-nav-dropdown {
    flex-shrink: 0;
}

.panel-nav-dropdown {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    align-self: flex-start;
}

.panel-nav-dropdown-trigger {
    list-style: none;
    cursor: pointer;
    width: max-content;
    max-width: 100%;
}

.panel-nav-dropdown-trigger::-webkit-details-marker {
    display: none;
}

.panel-nav-dropdown-trigger::marker {
    content: '';
}

.panel-nav-chevron {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.panel-nav-dropdown[open] > .panel-nav-dropdown-trigger .panel-nav-chevron {
    transform: rotate(180deg);
}

.panel-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 13.5rem;
    width: max-content;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.35rem;
    border-radius: 1rem;
    border: 1px solid rgb(226 232 240 / 0.9);
    background: rgb(255 255 255 / 0.98);
    box-shadow: 0 10px 30px rgb(15 23 42 / 0.08);
}

.dark .panel-nav-dropdown-menu {
    border-color: rgb(51 65 85 / 0.8);
    background: rgb(15 23 42 / 0.98);
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}

@media (max-width: 639px) {
    .panel-nav {
        row-gap: 0.5rem;
    }
}
