/**
 * Zinc Builder — Frontend Block Styles
 *
 * Styles for all builder blocks when rendered on the frontend.
 * Loaded automatically when a page uses the Zinc Builder.
 *
 * @package ZincOS
 * @since   1.0.0
 */

/* ═══════════════════════════════════════════════════════════════════════════
   VARIABLES (inherits from :root set by Customizer)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Design Tokens Bridge — maps block vars to both the
   Design Tokens system (--zb-color-*) and the legacy
   template vars (--zinc-*). First match wins via cascade. */
.zinc-builder-content {
    --zb-accent: var(--zb-color-accent, var(--zinc-accent, #dc2626));
    --zb-surface: var(--zb-color-surface, var(--zinc-surface, #18181b));
    --zb-surface-alt: var(--zb-color-surface-alt, var(--zinc-surface-alt, #27272a));
    --zb-text: var(--zb-color-text, var(--zinc-text, #fafafa));
    --zb-text-muted: var(--zb-color-text-muted, var(--zinc-text-muted, #a1a1aa));
    --zb-border: var(--zb-color-border, var(--zinc-border, #3f3f46));
    --zb-radius: var(--zb-radius-md, 12px);
    --zb-font: var(--zb-font-primary, 'Inter', system-ui, -apple-system, sans-serif);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION WRAPPER
   ═══════════════════════════════════════════════════════════════════════════ */

.zinc-builder-content { width: 100%; }
.zb-section { padding: 64px 24px; }
.zb-section + .zb-section { padding-top: 0; }

@media (max-width: 768px) {
    .zb-section { padding: 40px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    font-family: var(--zb-font);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
}

.zb-btn--primary {
    background: var(--zb-accent);
    color: #fff;
}
.zb-btn--primary:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

.zb-btn--ghost {
    background: transparent;
    color: var(--zb-text);
    border: 1px solid var(--zb-border);
}
.zb-btn--ghost:hover {
    background: var(--zb-surface-alt);
    border-color: #52525b;
}

.zb-btn--white {
    background: #fff;
    color: #09090b;
}
.zb-btn--white:hover {
    background: #f4f4f5;
    transform: translateY(-1px);
}

.zb-btn--lg {
    padding: 14px 32px;
    font-size: 1.0625rem;
    border-radius: 12px;
}

.zb-btn--full { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--zb-radius);
}

.zb-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.zb-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

.zb-hero__headline {
    font-family: var(--zb-font);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--zb-text);
    margin: 0 0 16px;
}

.zb-hero__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--zb-text-muted);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 600px;
}
.zb-hero[style*="text-align:center"] .zb-hero__sub { margin-left: auto; margin-right: auto; }

.zb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.zb-hero[style*="text-align:center"] .zb-hero__actions { justify-content: center; }

@media (max-width: 640px) {
    .zb-hero__actions { flex-direction: column; }
    .zb-hero__actions .zb-btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEXT BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-text { padding: 24px 0; }

.zb-text__heading {
    font-family: var(--zb-font);
    font-weight: 700;
    color: var(--zb-text);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
h2.zb-text__heading { font-size: 1.875rem; }
h3.zb-text__heading { font-size: 1.5rem; }
h4.zb-text__heading { font-size: 1.25rem; }

.zb-text__body {
    color: var(--zb-text-muted);
    font-size: 1.0625rem;
    line-height: 1.75;
}
.zb-text__body p { margin: 0 0 1em; }
.zb-text__body p:last-child { margin-bottom: 0; }
.zb-text__body a { color: var(--zb-accent); text-decoration: underline; }
.zb-text__body strong { color: var(--zb-text); font-weight: 600; }
.zb-text__body ul,
.zb-text__body ol { padding-left: 1.5em; margin: 0 0 1em; }
.zb-text__body li { margin-bottom: 0.5em; }

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-image { margin: 0; text-align: center; }

.zb-image__img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.zb-image--rounded .zb-image__img,
.zb-image--rounded a { border-radius: var(--zb-radius); overflow: hidden; display: block; }

.zb-image--shadow .zb-image__img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.zb-image__caption {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--zb-text-muted);
}

.zb-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--zb-surface-alt);
    border: 2px dashed var(--zb-border);
    border-radius: var(--zb-radius);
    color: var(--zb-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-cta {
    padding: 64px 32px;
    border-radius: 16px;
    text-align: center;
}

.zb-cta__inner {
    max-width: 640px;
    margin: 0 auto;
}

.zb-cta__heading {
    font-family: var(--zb-font);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.zb-cta__text {
    font-size: 1.0625rem;
    opacity: 0.85;
    margin: 0 0 28px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .zb-cta { padding: 40px 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-gallery { padding: 24px 0; }

.zb-gallery__heading {
    font-family: var(--zb-font);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--zb-text);
    margin: 0 0 24px;
    text-align: center;
}

.zb-gallery__item {
    display: block;
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.zb-gallery__item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.zb-gallery__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .zb-gallery__grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-testimonials { padding: 24px 0; }

.zb-testimonials__heading {
    font-family: var(--zb-font);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--zb-text);
    margin: 0 0 32px;
    text-align: center;
}

.zb-testimonial-card {
    background: var(--zb-surface);
    border: 1px solid var(--zb-border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 300ms ease;
}
.zb-testimonial-card:hover { border-color: #52525b; }

.zb-testimonial-card__stars {
    font-size: 1.125rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.zb-testimonial-card__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--zb-text-muted);
    margin: 0 0 20px;
    font-style: italic;
    border: 0;
    padding: 0;
}

.zb-testimonial-card__author strong {
    display: block;
    color: var(--zb-text);
    font-size: 0.9375rem;
    margin-bottom: 2px;
}
.zb-testimonial-card__author span {
    font-size: 0.8125rem;
    color: var(--zb-text-muted);
}

@media (max-width: 768px) {
    .zb-testimonials__grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-pricing { padding: 24px 0; }

.zb-pricing__heading {
    font-family: var(--zb-font);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--zb-text);
    margin: 0 0 32px;
    text-align: center;
}

.zb-pricing-card {
    background: var(--zb-surface);
    border: 1px solid var(--zb-border);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    position: relative;
    transition: border-color 300ms ease, transform 300ms ease;
}
.zb-pricing-card:hover { border-color: #52525b; transform: translateY(-2px); }

.zb-pricing-card--featured {
    border-color: var(--zb-accent);
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.15);
    transform: scale(1.03);
}
.zb-pricing-card--featured:hover { transform: scale(1.03) translateY(-2px); }

.zb-pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--zb-accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.zb-pricing-card__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--zb-text);
    margin: 8px 0 16px;
}

.zb-pricing-card__price { margin-bottom: 24px; }

.zb-pricing-card__amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--zb-text);
    letter-spacing: -0.02em;
}

.zb-pricing-card__period {
    font-size: 0.875rem;
    color: var(--zb-text-muted);
}

.zb-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}
.zb-pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--zb-text-muted);
    border-bottom: 1px solid rgba(63, 63, 70, 0.3);
}
.zb-pricing-card__features li:last-child { border-bottom: 0; }
.zb-pricing-card__features li svg { flex-shrink: 0; }

@media (max-width: 768px) {
    .zb-pricing__grid { grid-template-columns: 1fr !important; max-width: 400px; margin: 0 auto; }
    .zb-pricing-card--featured { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCTS BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-products { padding: 24px 0; }

.zb-products__header {
    text-align: center;
    margin-bottom: 32px;
}

.zb-products__heading {
    font-family: var(--zb-font);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--zb-text);
    margin: 0 0 8px;
}

.zb-products__sub {
    font-size: 1.0625rem;
    color: var(--zb-text-muted);
    margin: 0;
}

.zb-products__footer {
    text-align: center;
    margin-top: 32px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPACER BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-section--spacer { padding: 0; }

.zb-spacer hr {
    margin: 0;
    border: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COLUMNS BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-columns {
    display: grid;
    gap: 24px;
    align-items: start;
}

.zb-column {
    min-width: 0;
}

.zb-column__inner > *:first-child { margin-top: 0; }
.zb-column__inner > *:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .zb-columns { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-video { border-radius: var(--zb-radius); overflow: hidden; }

.zb-video__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--zb-surface, #000);
}
.zb-video__wrapper iframe,
.zb-video__wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

.zb-video__caption {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--zb-text-muted);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCORDION / FAQ BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-accordion { padding: 24px 0; max-width: 800px; margin: 0 auto; }

.zb-accordion__heading {
    font-family: var(--zb-font);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--zb-text);
    margin: 0 0 24px;
    text-align: center;
}

.zb-accordion-item {
    border: 1px solid var(--zb-border);
    border-radius: var(--zb-radius);
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--zb-surface);
}

.zb-accordion-item__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    color: var(--zb-text);
    font-family: var(--zb-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 150ms;
}
.zb-accordion-item__trigger:hover { background: var(--zb-surface-alt); }

.zb-accordion-item__icon {
    transition: transform 300ms ease;
    flex-shrink: 0;
}
.zb-accordion-item--open .zb-accordion-item__icon { transform: rotate(180deg); }

.zb-accordion-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
}
.zb-accordion-item--open .zb-accordion-item__body { max-height: 600px; }

.zb-accordion-item__content {
    padding: 0 20px 18px;
    color: var(--zb-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTON BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-button-wrap { padding: 8px 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   ICON BOX BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-iconboxes { padding: 24px 0; }

.zb-iconboxes__heading {
    font-family: var(--zb-font);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--zb-text);
    margin: 0 0 32px;
    text-align: center;
}

.zb-iconbox {
    background: var(--zb-surface);
    border: 1px solid var(--zb-border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 300ms ease, transform 300ms ease;
}
.zb-iconbox:hover { border-color: var(--zb-accent); transform: translateY(-4px); }

.zb-iconbox__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--zb-accent) 10%, transparent);
    border-radius: 14px;
    font-size: 24px;
}

.zb-iconbox__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--zb-text);
    margin: 0 0 8px;
}

.zb-iconbox__text {
    font-size: 0.9375rem;
    color: var(--zb-text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .zb-iconboxes__grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BANNER / ALERT BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-radius: var(--zb-radius);
    font-size: 0.9375rem;
}

.zb-banner__content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.zb-banner__dismiss {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    transition: opacity 150ms;
}
.zb-banner__dismiss:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   SOCIAL ICONS BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-social { padding: 24px 0; }

.zb-social__heading {
    font-family: var(--zb-font);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--zb-text);
    margin: 0 0 16px;
    text-align: center;
}

.zb-social__icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zb-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--zb-surface-alt);
    border: 1px solid var(--zb-border);
    color: var(--zb-text-muted);
    text-decoration: none;
    transition: all 300ms ease;
    font-size: 18px;
}
.zb-social__link:hover {
    color: #fff;
    background: var(--zb-accent);
    border-color: var(--zb-accent);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .zb-section { padding: 32px 12px; }
    .zb-cta { padding: 32px 16px; }
    .zb-hero__inner { padding: 32px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-form { max-width: 640px; margin: 0 auto; }

.zb-form__title {
    font-size: 1.5rem; font-weight: 700; color: var(--zb-text);
    margin: 0 0 24px; text-align: center;
}

.zb-form__field {
    margin-bottom: 16px;
}

.zb-form__field label {
    display: block; font-size: 0.875rem; font-weight: 500;
    color: var(--zb-text-muted); margin-bottom: 6px;
}

.zb-form__field input[type="text"],
.zb-form__field input[type="email"],
.zb-form__field input[type="tel"],
.zb-form__field input[type="url"],
.zb-form__field input[type="number"],
.zb-form__field textarea,
.zb-form__field select {
    width: 100%; padding: 12px 16px;
    background: var(--zb-surface, #09090b); border: 1px solid var(--zb-border, #27272a);
    border-radius: 8px; color: var(--zb-text);
    font-size: 0.9375rem; font-family: inherit;
    transition: border-color 200ms;
    box-sizing: border-box;
}

.zb-form__field input:focus,
.zb-form__field textarea:focus,
.zb-form__field select:focus {
    border-color: var(--zb-accent); outline: none;
}

.zb-form__submit {
    display: block; width: 100%; padding: 14px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff; font-weight: 600; font-size: 1rem;
    border: none; border-radius: 10px; cursor: pointer;
    transition: opacity 200ms; margin-top: 8px;
}

.zb-form__submit:hover { opacity: 0.9; }

.zb-form__message--success { background: #052e16; color: #4ade80; }
.zb-form__message--error { background: #450a0a; color: #fca5a5; }

/* ═══════════════════════════════════════════════════════════════════════════
   QUERY LOOP
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-query-loop { width: 100%; }
.zb-query-loop__grid { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE HIDE UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .zb-hide-tablet { display: none !important; }
}
@media (max-width: 480px) {
    .zb-hide-mobile { display: none !important; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SLIDER / CAROUSEL BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--zb-radius);
    background: #000;
    outline: none;
}

.zb-slider:focus-visible {
    box-shadow: 0 0 0 3px var(--zb-accent);
}

/* --- Track (slide effect) ------------------------------------------------ */

.zb-slider__track {
    display: flex;
    height: 100%;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.zb-slider__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* --- Fade effect --------------------------------------------------------- */

.zb-slider--fade .zb-slider__track {
    position: relative;
    transition: none;
}
.zb-slider--fade .zb-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 600ms ease;
    min-width: 100%;
}
.zb-slider--fade .zb-slider__slide--active {
    opacity: 1;
    z-index: 1;
}

/* --- Cube effect --------------------------------------------------------- */

.zb-slider--cube {
    perspective: 1200px;
}
.zb-slider--cube .zb-slider__track {
    position: relative;
    transform-style: preserve-3d;
    transition: none;
}
.zb-slider--cube .zb-slider__slide {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    opacity: 0;
    transform: rotateY(90deg);
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1), opacity 600ms ease;
    min-width: 100%;
}
.zb-slider--cube .zb-slider__slide--active {
    opacity: 1;
    transform: rotateY(0deg);
    z-index: 1;
}

/* --- Overlay ------------------------------------------------------------- */

.zb-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* --- Slide content ------------------------------------------------------- */

.zb-slider__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    text-align: center;
    padding: 32px 24px;
}

.zb-slider__title {
    font-family: var(--zb-font);
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.zb-slider__desc {
    font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 24px;
}

/* --- Navigation arrows --------------------------------------------------- */

.zb-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    transition: all 250ms ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.zb-slider__nav:hover {
    background: var(--zb-accent);
    border-color: var(--zb-accent);
    transform: translateY(-50%) scale(1.08);
}
.zb-slider__nav:focus-visible {
    outline: 2px solid var(--zb-accent);
    outline-offset: 2px;
}
.zb-slider__nav--prev { left: 16px; }
.zb-slider__nav--next { right: 16px; }

/* --- Dots indicator ------------------------------------------------------ */

.zb-slider__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.zb-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 250ms ease;
}
.zb-slider__dot--active,
.zb-slider__dot:hover {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}
.zb-slider__dot:focus-visible {
    outline: 2px solid var(--zb-accent);
    outline-offset: 2px;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 768px) {
    .zb-slider__nav { width: 36px; height: 36px; }
    .zb-slider__nav--prev { left: 10px; }
    .zb-slider__nav--next { right: 10px; }
    .zb-slider__nav svg { width: 18px; height: 18px; }
    .zb-slider__content { padding: 24px 16px; }
}

@media (max-width: 480px) {
    .zb-slider__nav { width: 32px; height: 32px; }
    .zb-slider__nav--prev { left: 8px; }
    .zb-slider__nav--next { right: 8px; }
    .zb-slider__dots { bottom: 12px; gap: 6px; }
    .zb-slider__dot { width: 8px; height: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABS BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-tabs {
    padding: 24px 0;
    --zb-tabs-active: var(--zb-accent);
}

/* --- Horizontal layout (default) ----------------------------------------- */

.zb-tabs--horizontal .zb-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--zb-border);
    margin-bottom: 24px;
}

.zb-tabs--horizontal.zb-tabs--align-center .zb-tabs__nav { justify-content: center; }
.zb-tabs--horizontal.zb-tabs--align-right  .zb-tabs__nav { justify-content: flex-end; }

.zb-tabs--horizontal .zb-tabs__tab {
    position: relative;
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--zb-text-muted);
    font-family: var(--zb-font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 200ms ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.zb-tabs--horizontal .zb-tabs__tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 200ms ease;
    border-radius: 2px 2px 0 0;
}
.zb-tabs--horizontal .zb-tabs__tab:hover { color: var(--zb-text); }
.zb-tabs--horizontal .zb-tabs__tab--active { color: var(--zb-text); }
.zb-tabs--horizontal .zb-tabs__tab--active::after { background: var(--zb-tabs-active); }
.zb-tabs--horizontal .zb-tabs__tab:focus-visible {
    outline: 2px solid var(--zb-tabs-active);
    outline-offset: -2px;
    border-radius: 6px;
}

/* --- Vertical layout ----------------------------------------------------- */

.zb-tabs--vertical {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.zb-tabs--vertical .zb-tabs__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    border-right: 1px solid var(--zb-border);
    padding-right: 16px;
    flex-shrink: 0;
}

.zb-tabs--vertical .zb-tabs__tab {
    position: relative;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--zb-text-muted);
    font-family: var(--zb-font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    border-radius: 8px;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.zb-tabs--vertical .zb-tabs__tab:hover {
    color: var(--zb-text);
    background: var(--zb-surface-alt);
}
.zb-tabs--vertical .zb-tabs__tab--active {
    color: var(--zb-text);
    background: var(--zb-surface-alt);
    box-shadow: inset 3px 0 0 var(--zb-tabs-active);
}
.zb-tabs--vertical .zb-tabs__tab:focus-visible {
    outline: 2px solid var(--zb-tabs-active);
    outline-offset: -2px;
}
.zb-tabs--vertical .zb-tabs__panels { flex: 1; min-width: 0; }

/* --- Pills layout -------------------------------------------------------- */

.zb-tabs--pills .zb-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.zb-tabs--pills.zb-tabs--align-center .zb-tabs__nav { justify-content: center; }
.zb-tabs--pills.zb-tabs--align-right  .zb-tabs__nav { justify-content: flex-end; }

.zb-tabs--pills .zb-tabs__tab {
    padding: 8px 20px;
    background: var(--zb-surface-alt);
    border: 1px solid var(--zb-border);
    border-radius: 100px;
    color: var(--zb-text-muted);
    font-family: var(--zb-font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.zb-tabs--pills .zb-tabs__tab:hover {
    color: var(--zb-text);
    border-color: #52525b;
}
.zb-tabs--pills .zb-tabs__tab--active {
    background: var(--zb-tabs-active);
    border-color: var(--zb-tabs-active);
    color: #fff;
}
.zb-tabs--pills .zb-tabs__tab:focus-visible {
    outline: 2px solid var(--zb-tabs-active);
    outline-offset: 2px;
}

/* --- Tab icon ------------------------------------------------------------- */

.zb-tabs__tab-icon {
    display: inline-flex;
    align-items: center;
    font-size: 1.125em;
    line-height: 1;
}

/* --- Tab panels ---------------------------------------------------------- */

.zb-tabs__panel {
    display: none;
    outline: none;
}
.zb-tabs__panel--active { display: block; }

.zb-tabs__panel:focus-visible {
    box-shadow: inset 0 0 0 2px var(--zb-tabs-active);
    border-radius: 8px;
}

.zb-tabs__panel-content {
    color: var(--zb-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}
.zb-tabs__panel-content > *:first-child { margin-top: 0; }
.zb-tabs__panel-content > *:last-child  { margin-bottom: 0; }
.zb-tabs__panel-content a { color: var(--zb-accent); text-decoration: underline; }
.zb-tabs__panel-content strong { color: var(--zb-text); font-weight: 600; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 768px) {
    .zb-tabs--vertical { flex-direction: column; }
    .zb-tabs--vertical .zb-tabs__nav {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid var(--zb-border);
        padding-right: 0;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }
    .zb-tabs--vertical .zb-tabs__tab--active { box-shadow: none; }
    .zb-tabs--horizontal .zb-tabs__tab { padding: 10px 14px; font-size: 0.875rem; }
}

@media (max-width: 480px) {
    .zb-tabs--horizontal .zb-tabs__nav { gap: 0; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .zb-tabs--horizontal .zb-tabs__tab { flex-shrink: 0; padding: 10px 12px; font-size: 0.8125rem; }
    .zb-tabs--pills .zb-tabs__tab { padding: 6px 14px; font-size: 0.8125rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO BLOCK (ENHANCED — poster, play button, lightbox)
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Poster overlay ------------------------------------------------------ */

.zb-video__poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 300ms ease;
}
.zb-video__poster:hover { filter: brightness(1.1); }

/* --- Play button --------------------------------------------------------- */

.zb-video__play-btn {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 300ms ease;
}
.zb-video__play-btn:focus-visible {
    outline: 2px solid var(--zb-accent);
    outline-offset: 4px;
}

.zb-video__play-btn--default {
    padding: 14px 24px;
    border-radius: var(--zb-radius);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.zb-video__play-btn--default:hover {
    background: var(--zb-accent);
    transform: scale(1.06);
}

.zb-video__play-btn--circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.zb-video__play-btn--circle:hover {
    background: var(--zb-accent);
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.35);
}

.zb-video__play-btn svg { pointer-events: none; }

/* --- Lightbox ------------------------------------------------------------ */

.zb-video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px;
    animation: zbVideoLBIn 300ms ease;
}

@keyframes zbVideoLBIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.zb-video-lightbox__inner {
    position: relative;
    width: 100%;
    max-width: 1024px;
}

.zb-video-lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 200ms;
    line-height: 1;
}
.zb-video-lightbox__close:hover { opacity: 1; }
.zb-video-lightbox__close:focus-visible {
    outline: 2px solid var(--zb-accent);
    outline-offset: 2px;
}

.zb-video-lightbox__content {
    border-radius: var(--zb-radius);
    overflow: hidden;
    background: #000;
}

.zb-video-lightbox__content iframe,
.zb-video-lightbox__content video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* --- Responsive (video enhanced) ----------------------------------------- */

@media (max-width: 640px) {
    .zb-video__play-btn--circle { width: 60px; height: 60px; }
    .zb-video__play-btn--circle svg { width: 36px; height: 36px; }
    .zb-video__play-btn--default { padding: 10px 18px; }
    .zb-video__play-btn--default svg { width: 36px; height: 36px; }
    .zb-video-lightbox { padding: 12px; }
    .zb-video-lightbox__close { top: -40px; font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROGRESS BARS BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-progress { padding: 24px 0; max-width: 800px; margin: 0 auto; }

/* --- Bar style --- */
.zb-progress__bar { margin-bottom: 20px; }
.zb-progress__bar:last-child { margin-bottom: 0; }

.zb-progress__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.zb-progress__label-text {
    font-family: var(--zb-font);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--zb-text);
}

.zb-progress__label-pct {
    font-family: var(--zb-font);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zb-text-muted);
    font-variant-numeric: tabular-nums;
}

.zb-progress__track {
    width: 100%;
    border-radius: 999px;
    overflow: hidden;
}

.zb-progress__fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Animated striped pattern */
.zb-progress__fill--striped {
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,0.12) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.12) 75%,
        transparent 75%,
        transparent
    );
    background-size: 24px 24px;
    animation: zb-progress-stripe 0.8s linear infinite;
}

@keyframes zb-progress-stripe {
    0%   { background-position: 24px 0; }
    100% { background-position: 0 0; }
}

/* --- Circle style --- */
.zb-progress__circles {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.zb-progress__circle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
}

.zb-progress__circle-svg {
    width: 120px;
    height: 120px;
}

.zb-progress__circle-value {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.zb-progress__circle-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 10px));
    font-family: var(--zb-font);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--zb-text);
    font-variant-numeric: tabular-nums;
}

.zb-progress__circle-label {
    display: block;
    margin-top: 8px;
    font-family: var(--zb-font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zb-text-muted);
    text-align: center;
}

/* --- Semicircle style --- */
.zb-progress__semicircles {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.zb-progress__semicircle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
}

.zb-progress__semicircle-svg {
    width: 140px;
    height: 82px;
}

.zb-progress__semicircle-value {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.zb-progress__semicircle-pct {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--zb-font);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--zb-text);
    font-variant-numeric: tabular-nums;
}

.zb-progress__semicircle-label {
    display: block;
    margin-top: 4px;
    font-family: var(--zb-font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zb-text-muted);
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .zb-progress__circles,
    .zb-progress__semicircles {
        gap: 20px;
    }
    .zb-progress__circle { width: 110px; }
    .zb-progress__circle-svg { width: 100px; height: 100px; }
    .zb-progress__semicircle { width: 130px; }
    .zb-progress__semicircle-svg { width: 110px; height: 65px; }
    .zb-progress__circle-pct,
    .zb-progress__semicircle-pct { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BEFORE / AFTER IMAGE COMPARISON BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-compare {
    position: relative;
    overflow: hidden;
    border-radius: var(--zb-radius);
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    line-height: 0;
}

.zb-compare--vertical { cursor: ns-resize; }

.zb-compare--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--zb-surface-alt);
    border: 2px dashed var(--zb-border);
    border-radius: var(--zb-radius);
    color: var(--zb-text-muted);
    font-size: 0.9375rem;
    font-family: var(--zb-font);
    line-height: 1.4;
    cursor: default;
}

.zb-compare__after,
.zb-compare__before {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.zb-compare__after {
    position: relative;
    z-index: 1;
}

.zb-compare__before {
    z-index: 2;
}

.zb-compare--horizontal .zb-compare__before {
    border-right: none;
}
.zb-compare--vertical .zb-compare__before {
    border-bottom: none;
}

.zb-compare__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.zb-compare__before .zb-compare__img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 0;
    min-height: 0;
}

/* Before image must match the container width, not the clipped region */
.zb-compare--horizontal .zb-compare__before .zb-compare__img {
    width: 100%;
    min-width: 0;
}
.zb-compare--horizontal .zb-compare__before {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
}
.zb-compare--horizontal .zb-compare__before .zb-compare__img {
    width: calc(100vw);
    max-width: none;
}

/* Vertical variant */
.zb-compare--vertical .zb-compare__before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.zb-compare--vertical .zb-compare__before .zb-compare__img {
    width: 100%;
    height: auto;
}

/* Use container query approach: before image width = container width */
.zb-compare--horizontal .zb-compare__before .zb-compare__img {
    width: 100%;
}
/* Recalculate: the image inside .before needs to be as wide as the entire compare container */
.zb-compare {
    container-type: inline-size;
}
.zb-compare--horizontal .zb-compare__before .zb-compare__img {
    width: 100cqi;
}

/* Labels */
.zb-compare__label {
    position: absolute;
    z-index: 5;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--zb-font);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    line-height: 1.4;
}

.zb-compare--horizontal .zb-compare__label--before { top: 16px; left: 16px; }
.zb-compare--horizontal .zb-compare__label--after  { top: 16px; right: 16px; }
.zb-compare--vertical .zb-compare__label--before   { top: 16px; left: 16px; }
.zb-compare--vertical .zb-compare__label--after     { bottom: 16px; left: 16px; }

/* Handle / divider */
.zb-compare__handle {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zb-compare--horizontal .zb-compare__handle {
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    flex-direction: column;
}
.zb-compare--vertical .zb-compare__handle {
    left: 0;
    right: 0;
    height: 3px;
    transform: translateY(-50%);
    flex-direction: row;
}

.zb-compare__handle-line {
    position: absolute;
    background: var(--zb-compare-color, #dc2626);
}

.zb-compare--horizontal .zb-compare__handle-line {
    width: 3px;
    top: 0;
    bottom: 0;
}
.zb-compare--vertical .zb-compare__handle-line {
    height: 3px;
    left: 0;
    right: 0;
}

.zb-compare__handle-grip {
    position: relative;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--zb-compare-color, #dc2626);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    cursor: grab;
    transition: transform 150ms ease;
}
.zb-compare__handle-grip:active { cursor: grabbing; transform: scale(1.1); }

/* Focus state for accessibility */
.zb-compare:focus {
    outline: 2px solid var(--zb-compare-color, #dc2626);
    outline-offset: 2px;
}
.zb-compare:focus:not(:focus-visible) { outline: none; }

/* --- Responsive --- */
@media (max-width: 640px) {
    .zb-compare__handle-grip { width: 34px; height: 34px; }
    .zb-compare__handle-grip svg { width: 16px; height: 16px; }
    .zb-compare__label { font-size: 0.6875rem; padding: 4px 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAP BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-map {
    position: relative;
    border-radius: var(--zb-radius);
    overflow: hidden;
    background: var(--zb-surface-alt);
    min-height: 200px;
}

.zb-map__container {
    position: relative;
    width: 100%;
    height: 100%;
}

.zb-map__container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

/* Inherit height from parent */
.zb-map__container {
    position: absolute;
    inset: 0;
}

/* Dark style filter for OSM maps */
.zb-map--dark .zb-map__container iframe {
    filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(1.1);
}

/* Interaction overlay */
.zb-map__overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 9, 11, 0.15);
    cursor: pointer;
    transition: background 200ms ease;
}
.zb-map__overlay:hover {
    background: rgba(9, 9, 11, 0.35);
}

.zb-map__overlay-text {
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-family: var(--zb-font);
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.zb-map__overlay:hover .zb-map__overlay-text {
    opacity: 1;
    transform: translateY(0);
}

/* Focus state for keyboard users */
.zb-map__overlay:focus {
    outline: 2px solid var(--zb-accent);
    outline-offset: -2px;
}
.zb-map__overlay:focus:not(:focus-visible) { outline: none; }
.zb-map__overlay:focus-visible .zb-map__overlay-text {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .zb-map { min-height: 250px; }
    .zb-map__overlay-text { font-size: 0.75rem; padding: 8px 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COUNTDOWN TIMER BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 0;
    font-family: var(--zb-font);
}

.zb-countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.zb-countdown__number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--zb-cd-number, #fafafa);
    line-height: 1;
    letter-spacing: -0.02em;
}

.zb-countdown__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--zb-cd-label, #a1a1aa);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.zb-countdown__expired {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zb-accent);
    text-align: center;
    padding: 24px;
    width: 100%;
}

/* --- Style: Boxes --- */

.zb-countdown--boxes .zb-countdown__item {
    background: var(--zb-cd-bg, #27272a);
    border-radius: var(--zb-radius);
    padding: 20px 24px;
    min-width: 80px;
}

/* --- Style: Circles --- */

.zb-countdown--circles .zb-countdown__item {
    background: var(--zb-cd-bg, #27272a);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    justify-content: center;
    padding: 0;
}

/* --- Style: Flip --- */

.zb-countdown--flip .zb-countdown__item {
    background: var(--zb-cd-bg, #27272a);
    border-radius: 8px;
    padding: 20px 24px;
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

.zb-countdown--flip .zb-countdown__item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.zb-countdown--flip .zb-countdown__label {
    position: relative;
    z-index: 1;
}

/* --- Style: Minimal --- */

.zb-countdown--minimal .zb-countdown__item {
    padding: 8px 16px;
}

.zb-countdown--minimal .zb-countdown__number {
    font-size: 2.5rem;
}

.zb-countdown--minimal .zb-countdown__label {
    font-size: 0.6875rem;
}

/* --- Size: Small --- */

.zb-countdown--small .zb-countdown__number { font-size: 1.5rem; }
.zb-countdown--small .zb-countdown__label { font-size: 0.625rem; }

.zb-countdown--small.zb-countdown--boxes .zb-countdown__item {
    padding: 12px 16px;
    min-width: 60px;
}

.zb-countdown--small.zb-countdown--circles .zb-countdown__item {
    width: 72px;
    height: 72px;
}

.zb-countdown--small.zb-countdown--flip .zb-countdown__item {
    padding: 12px 16px;
    min-width: 60px;
}

/* --- Size: Large --- */

.zb-countdown--large .zb-countdown__number { font-size: 3.5rem; }
.zb-countdown--large .zb-countdown__label { font-size: 0.875rem; }

.zb-countdown--large.zb-countdown--boxes .zb-countdown__item {
    padding: 28px 32px;
    min-width: 110px;
}

.zb-countdown--large.zb-countdown--circles .zb-countdown__item {
    width: 140px;
    height: 140px;
}

.zb-countdown--large.zb-countdown--flip .zb-countdown__item {
    padding: 28px 32px;
    min-width: 110px;
}

/* --- Countdown Responsive --- */

@media (max-width: 640px) {
    .zb-countdown { gap: 10px; }
    .zb-countdown--boxes .zb-countdown__item { padding: 14px 16px; min-width: 64px; }
    .zb-countdown--circles .zb-countdown__item { width: 76px; height: 76px; }
    .zb-countdown--flip .zb-countdown__item { padding: 14px 16px; min-width: 64px; }
    .zb-countdown__number { font-size: 1.5rem; }
    .zb-countdown--large .zb-countdown__number { font-size: 2rem; }
}

@media (max-width: 400px) {
    .zb-countdown { gap: 6px; }
    .zb-countdown--boxes .zb-countdown__item,
    .zb-countdown--flip .zb-countdown__item { padding: 10px 12px; min-width: 56px; }
    .zb-countdown--circles .zb-countdown__item { width: 64px; height: 64px; }
    .zb-countdown__number { font-size: 1.25rem; }
    .zb-countdown__label { font-size: 0.5625rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ICON BOX (SINGLE) BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-icon-box {
    background: var(--zb-surface);
    border: 1px solid var(--zb-border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--zb-font);
    outline: none;
}

.zb-icon-box:focus-visible {
    border-color: var(--zb-accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

/* --- Layout: Top (default) --- */

.zb-icon-box--top {
    text-align: center;
}

.zb-icon-box--top .zb-icon-box__icon {
    margin: 0 auto 20px;
}

/* --- Layout: Left --- */

.zb-icon-box--left {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
}

/* --- Layout: Inline --- */

.zb-icon-box--inline {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 20px 24px;
}

.zb-icon-box--inline .zb-icon-box__desc {
    display: none;
}

.zb-icon-box--inline .zb-icon-box__link {
    display: none;
}

/* --- Icon --- */

.zb-icon-box__icon {
    width: var(--zb-ib-bg-size, 72px);
    height: var(--zb-ib-bg-size, 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--zb-ib-bg, #27272a);
    color: var(--zb-ib-color, #dc2626);
    flex-shrink: 0;
}

.zb-icon-box__icon svg {
    width: var(--zb-ib-size, 48px);
    height: var(--zb-ib-size, 48px);
}

/* --- Content --- */

.zb-icon-box__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--zb-text);
    margin: 0 0 8px;
}

.zb-icon-box__desc {
    font-size: 0.9375rem;
    color: var(--zb-text-muted);
    line-height: 1.65;
    margin: 0 0 16px;
}

.zb-icon-box__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--zb-accent);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 200ms ease;
}

.zb-icon-box__link:hover {
    gap: 8px;
}

/* --- Hover Effects --- */

.zb-icon-box--hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.zb-icon-box--hover-glow:hover {
    box-shadow: 0 0 32px rgba(220, 38, 38, 0.2);
    border-color: var(--zb-accent);
}

.zb-icon-box--hover-border:hover {
    border-color: var(--zb-accent);
}

/* --- Icon Box Responsive --- */

@media (max-width: 640px) {
    .zb-icon-box--left {
        flex-direction: column;
        text-align: center;
    }

    .zb-icon-box--left .zb-icon-box__icon {
        margin: 0 auto;
    }

    .zb-icon-box--inline {
        flex-direction: column;
        text-align: center;
    }

    .zb-icon-box--inline .zb-icon-box__icon {
        margin: 0 auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING TABLE BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.zb-pricing--cards,
.zb-pricing--bordered,
.zb-pricing--gradient {
    padding: 24px 0;
    font-family: var(--zb-font);
}

/* --- Billing Toggle --- */

.zb-pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 40px;
    background: var(--zb-surface);
    border: 1px solid var(--zb-border);
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
}

.zb-pricing__toggle-btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-family: var(--zb-font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zb-text-muted);
    cursor: pointer;
    transition: all 200ms ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.zb-pricing__toggle-btn--active {
    background: var(--zb-surface-alt);
    color: var(--zb-text);
}

.zb-pricing__toggle-btn:focus-visible {
    outline: 2px solid var(--zb-accent);
    outline-offset: 2px;
}

.zb-pricing__save {
    background: rgba(220, 38, 38, 0.15);
    color: var(--zb-accent);
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

/* --- Grid --- */

.zb-pricing__grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

/* --- Card --- */

.zb-pricing__card {
    background: var(--zb-surface);
    border: 1px solid var(--zb-border);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    position: relative;
    transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.zb-pricing__card:hover {
    border-color: #52525b;
    transform: translateY(-2px);
}

.zb-pricing__card--featured {
    border-color: var(--zb-accent);
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.15);
    transform: scale(1.05);
    z-index: 1;
}

.zb-pricing__card--featured:hover {
    transform: scale(1.05) translateY(-2px);
}

/* --- Badge --- */

.zb-pricing__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--zb-accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* --- Plan Info --- */

.zb-pricing__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--zb-text);
    margin: 8px 0 4px;
}

.zb-pricing__desc {
    font-size: 0.875rem;
    color: var(--zb-text-muted);
    margin: 0 0 20px;
}

/* --- Price --- */

.zb-pricing__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 24px;
}

.zb-pricing__currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--zb-text-muted);
}

.zb-pricing__amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--zb-text);
    letter-spacing: -0.02em;
    line-height: 1;
}

.zb-pricing__period {
    font-size: 0.875rem;
    color: var(--zb-text-muted);
    margin-left: 2px;
}

/* --- Features --- */

.zb-pricing__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}

.zb-pricing__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--zb-text-muted);
    border-bottom: 1px solid rgba(63, 63, 70, 0.3);
}

.zb-pricing__features li:last-child {
    border-bottom: 0;
}

.zb-pricing__features li svg {
    flex-shrink: 0;
    color: var(--zb-accent);
}

/* --- Button --- */

.zb-pricing__btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-family: var(--zb-font);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    background: var(--zb-surface-alt);
    color: var(--zb-text);
    border: 1px solid var(--zb-border);
    cursor: pointer;
    transition: all 300ms ease;
    box-sizing: border-box;
}

.zb-pricing__btn:hover {
    background: #3f3f46;
    border-color: #52525b;
}

.zb-pricing__btn:focus-visible {
    outline: 2px solid var(--zb-accent);
    outline-offset: 2px;
}

.zb-pricing__btn--featured {
    background: var(--zb-accent);
    color: #fff;
    border-color: var(--zb-accent);
}

.zb-pricing__btn--featured:hover {
    background: #b91c1c;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

/* --- Style: Bordered --- */

.zb-pricing--bordered .zb-pricing__card {
    background: transparent;
    border-width: 2px;
}

.zb-pricing--bordered .zb-pricing__card--featured {
    border-width: 2px;
}

/* --- Style: Gradient --- */

.zb-pricing--gradient .zb-pricing__card {
    background: linear-gradient(180deg, var(--zb-surface) 0%, #1a1a1f 100%);
}

.zb-pricing--gradient .zb-pricing__card--featured {
    background: linear-gradient(135deg, #18181b, #27272a);
    border-color: var(--zb-accent);
}

/* --- Pricing Table Responsive --- */

@media (max-width: 768px) {
    .zb-pricing__grid {
        grid-template-columns: 1fr !important;
        max-width: 400px;
        margin: 0 auto;
    }

    .zb-pricing__card--featured {
        transform: none;
    }

    .zb-pricing__card--featured:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .zb-pricing__toggle-btn {
        padding: 8px 16px;
        font-size: 0.8125rem;
    }
}
