/*
Theme Name: Frisk Child
Theme URI: https://tobalt.lt
Description: Frisk child theme for Tobalt customizations
Author: Tobalt
Author URI: https://tobalt.lt
Template: frisk
Version: 1.0.11
Text Domain: frisk-child
*/

/**
 * Header logo offset
 * Author: Tobalt — https://tobalt.lt
 */
.header-logo {
    padding-top: 8px;
}

/**
 * WCAG Accessibility Fixes
 * Author: Tobalt — https://tobalt.lt
 */

/* Focus states — visible only for keyboard navigation, not mouse clicks */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #E3FF04 !important;
    outline-offset: 2px !important;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none !important;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #0A0C00;
    color: #E3FF04;
    padding: 12px 24px;
    z-index: 99999;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: none !important;
}

/**
 * Layout 10 — Tobalt Product Showcase
 * Based on Genially product template
 * Author: Tobalt — https://tobalt.lt
 */

.tbs {
    --tbs-bg: #f5f5f5;
    --tbs-dark: #2d2d2d;
    --tbs-white: #ffffff;
    --tbs-glass: rgba(255, 255, 255, 0.7);
    --tbs-glass-dark: rgba(45, 45, 45, 0.7);
    --tbs-font-display: 'Unbounded', sans-serif;
    --tbs-font-body: 'Poppins', sans-serif;
    --tbs-radius: 25px;
    --tbs-blur: blur(6px);

    position: relative;
    font-family: var(--tbs-font-body);
    background: var(--tbs-bg);
}

/* Header - fixed at top */
.tbs__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

/* Counter Button - Frosted Glass */
.tbs__menu-wrap {
    position: relative;
}

.tbs__counter {
    height: 32px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tbs__counter-num {
    font-family: var(--tbs-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tbs-white);
    letter-spacing: 0.04em;
}

.tbs__counter:hover {
    background: rgba(0, 0, 0, 0.65);
}

.tbs__counter:hover .tbs__counter-num {
    color: #E3FF04;
}

/* Dropdown Menu */
.tbs__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 280px;
    background: var(--tbs-glass);
    backdrop-filter: var(--tbs-blur);
    -webkit-backdrop-filter: var(--tbs-blur);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    max-height: 400px;
    overflow-y: auto;
}

.tbs__dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tbs__dropdown {
    border-radius: var(--tbs-radius);
}

.tbs__dropdown-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.tbs__dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--tbs-font-body);
    font-size: 0.9375rem;
    color: var(--tbs-dark);
    cursor: pointer;
    transition: background 0.15s ease;
}

.tbs__dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Navigation Arrows */
.tbs__nav {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tbs-glass);
    backdrop-filter: var(--tbs-blur);
    -webkit-backdrop-filter: var(--tbs-blur);
    border: 2px solid var(--tbs-dark);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tbs__nav svg {
    width: 16px;
    height: 16px;
    color: var(--tbs-dark);
}

.tbs__nav:hover {
    background: var(--tbs-dark);
    border-color: var(--tbs-dark);
}

.tbs__nav:hover svg {
    color: var(--tbs-white);
}

.tbs__nav:active {
    transform: scale(0.95);
}

/* Lime border on image hover */
.tbs:hover .tbs__nav {
    border-color: #E3FF04;
}

/* Slider */
.tbs__slider {
    width: 100%;
}

.tbs__slide {
    outline: none;
    display: block !important;
    height: 600px;
}

/* Image Wrapper - full width */
.tbs__image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

/* Scrollable Image Container */
.tbs__image-scroll::-webkit-scrollbar {
    display: none;
}

/* Image container - holds image and hotspots */
.tbs__image-container {
    position: relative;
    width: 100%;
    display: inline-block;
}

/* Image - full width, natural proportional height */
.tbs__img {
    display: block;
    width: 100%;
    height: auto;
}

/* Title Footer with Dark Grey Gradient */
.tbs__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(45, 45, 45, 0.95) 0%, rgba(45, 45, 45, 0.6) 60%, transparent 100%) !important;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 0 0 15px 15px;
}

.tbs__title {
    font-family: var(--tbs-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--tbs-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex: 1;
}

.tbs__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tbs__title a:hover {
    color: #E3FF04;
}

.tbs__footer-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--tbs-white);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tbs__footer-link svg {
    width: 16px;
    height: 16px;
    color: var(--tbs-white);
}

.tbs__footer-link:hover {
    background: #E3FF04;
    border-color: #E3FF04;
}

.tbs__footer-link:hover svg {
    color: var(--tbs-dark);
}


/* Hotspots - lime color */
.tbs__hotspot {
    position: absolute;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    background: #E3FF04;
    border: 2px solid #E3FF04;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(227, 255, 4, 0.4);
}

.tbs__hotspot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--tbs-dark);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* Tooltip on hover */
.tbs__hotspot::after {
    content: 'Sužinokite daugiau apie atliktus darbus';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 8px 14px;
    background: var(--tbs-dark);
    color: var(--tbs-white);
    font-family: var(--tbs-font-body);
    font-size: 0.8125rem;
    white-space: nowrap;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.tbs__hotspot:hover::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .tbs__hotspot::after {
        display: none !important;
    }
}

.tbs__hotspot-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid #E3FF04;
    border-radius: 50%;
    opacity: 0;
    animation: tbs-pulse 2s ease-out infinite;
}

@keyframes tbs-pulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.tbs__hotspot:hover {
    background: var(--tbs-dark);
    border-color: var(--tbs-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

.tbs__hotspot:hover::before {
    background: #E3FF04;
}

/* Modal */
.tbs__modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 45, 45, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tbs__modal--open {
    opacity: 1;
    visibility: visible;
}

.tbs__modal-card {
    position: relative;
    max-width: 480px;
    width: 90%;
    padding: 32px;
    background: var(--tbs-white);
    border-radius: var(--tbs-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tbs__modal--open .tbs__modal-card {
    transform: scale(1) translateY(0);
}

.tbs__modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--tbs-dark);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tbs__modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--tbs-dark);
}

.tbs__modal-close:hover {
    background: var(--tbs-dark);
}

.tbs__modal-close:hover svg {
    color: var(--tbs-white);
}

.tbs__modal-title {
    font-family: var(--tbs-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tbs-dark);
    margin: 0 0 16px;
    padding-right: 40px;
    line-height: 1.3;
}

.tbs__modal-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--tbs-dark);
    margin: 0;
}

/* Slick Overrides */
.tbs__slider .slick-list {
    height: 600px !important;
}

.tbs__slider .slick-track {
    display: flex;
    height: 600px !important;
}

.tbs__slider .slick-slide {
    height: 600px !important;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tbs__slider .slick-slide > div {
    height: 100%;
}

.tbs__slider .slick-current {
    opacity: 1;
}

/* Ensure scroll container works - free native scroll */
.tbs__image-scroll {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: scroll !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 15px;
}

.tbs__image-scroll::-webkit-scrollbar {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .tbs__slide {
        height: 500px;
    }

    .tbs__slider .slick-list,
    .tbs__slider .slick-track,
    .tbs__slider .slick-slide {
        height: 500px !important;
    }
}

@media (max-width: 768px) {
    .tbs__header {
        padding: 12px 16px;
        gap: 8px;
    }

    .tbs__nav {
        width: 42px;
        height: 42px;
    }

    .tbs__counter-num {
        font-size: 0.8125rem;
    }

    .tbs__overlay {
        padding: 12px 16px;
    }

    .tbs__title {
        font-size: 0.875rem;
    }

    .tbs__footer-link {
        width: 32px;
        height: 32px;
    }

    .tbs__footer-link svg {
        width: 14px;
        height: 14px;
    }

    .tbs__slide {
        height: 450px;
    }

    .tbs__slider .slick-list,
    .tbs__slider .slick-track,
    .tbs__slider .slick-slide {
        height: 450px !important;
    }

    .tbs__dropdown {
        min-width: 240px;
    }

    .tbs__nav {
        width: 32px;
        height: 32px;
    }

    .tbs__counter-num {
        font-size: 0.75rem;
    }

    .tbs__nav svg {
        width: 14px;
        height: 14px;
    }

    .tbs__modal-card {
        padding: 24px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .tbs__slide {
        height: 400px;
    }

    .tbs__slider .slick-list,
    .tbs__slider .slick-track,
    .tbs__slider .slick-slide {
        height: 400px !important;
    }

    .tbs__hotspot {
        width: 28px;
        height: 28px;
    }

    .tbs__hotspot::before {
        width: 5px;
        height: 5px;
    }

    .tbs__nav {
        width: 28px;
        height: 28px;
    }

    .tbs__counter-num {
        font-size: 0.6875rem;
    }

    .tbs__nav svg {
        width: 12px;
        height: 12px;
    }
}

/**
 * Tools Slider — Light Design
 * Author: Tobalt — https://tobalt.lt
 */

.tts-slider { margin: 0 -10px; }
.tts-slider .slick-slide { box-sizing: border-box; }
.tts-slide { padding: 0 10px; }
.tts-slider.slick-initialized .slick-list { overflow: hidden; }

.tts-slider .slick-dots {
    text-align: center;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.tts-slider .slick-dots li { display: inline-block; margin: 0 5px; }
.tts-slider .slick-dots li button {
    width: 8px; height: 8px; padding: 0;
    border: none; border-radius: 50%;
    background: rgba(0,0,0,0.15);
    font-size: 0; cursor: pointer;
    transition: all 0.2s ease;
}
.tts-slider .slick-dots li.slick-active button {
    background: #0A0C00;
    transform: scale(1.3);
}

.tts-card {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.75rem 1.5rem;
    min-height: 220px;
    color: #1a1a1a;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tts-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    color: #1a1a1a;
}

.tts-card__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.625rem;
    color: #0A0C00;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tts-card__tagline {
    font-size: 0.8125rem;
    color: rgba(0,0,0,0.55);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.tts-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    gap: 8px;
}
.tts-card__link-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(0,0,0,0.4);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}
.tts-card:hover .tts-card__link-text { color: #0A0C00; }
.tts-card__arrow {
    color: rgba(0,0,0,0.3);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.tts-card:hover .tts-card__arrow {
    transform: translateX(4px);
    color: #0A0C00;
}

/* Yellow accent card (first) */
.tts-card--accent {
    background: #E3FF04;
    border-color: transparent;
}
.tts-card--accent .tts-card__title { color: #0A0C00; }
.tts-card--accent .tts-card__tagline { color: rgba(10,12,0,0.6); }
.tts-card--accent .tts-card__footer { border-top-color: rgba(10,12,0,0.1); }
.tts-card--accent .tts-card__link-text { color: rgba(10,12,0,0.5); }
.tts-card--accent:hover .tts-card__link-text { color: #0A0C00; }
.tts-card--accent .tts-card__arrow { color: rgba(10,12,0,0.4); }
.tts-card--accent:hover .tts-card__arrow { color: #0A0C00; }
.tts-card--accent:hover { color: #0A0C00; box-shadow: 0 8px 24px rgba(227,255,4,0.3); }

/* Dark CTA card (last) */
.tts-card--cta {
    background: #0A0C00;
    border-color: transparent;
    color: #fff;
}
.tts-card--cta:hover { color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.tts-card--cta .tts-card__title { color: #E3FF04; font-size: 1.05rem; }
.tts-card--cta .tts-card__tagline { color: rgba(255,255,255,0.5); }
.tts-card--cta .tts-card__footer { border-top-color: rgba(255,255,255,0.1); }
.tts-card--cta .tts-card__link-text { color: rgba(255,255,255,0.4); }
.tts-card--cta:hover .tts-card__link-text { color: #E3FF04; }
.tts-card--cta .tts-card__arrow { color: rgba(255,255,255,0.3); }
.tts-card--cta:hover .tts-card__arrow { color: #E3FF04; }

/**
 * FAQ Accordion — Mobile Fixes
 * Author: Tobalt — https://tobalt.lt
 */

@media (max-width: 767px) {
    .tts-slider { margin: 0 -8px; }
    .tts-slide { padding: 0 8px; }
    .tts-card {
        padding: 1.5rem 1.25rem 1.25rem;
        min-height: 190px;
        border-radius: 16px;
    }
    .tts-card__title { font-size: 0.9rem; }
    .tts-card__tagline { font-size: 0.8rem; }
    .tts-card__footer { margin-top: 1rem; padding-top: 0.75rem; }

    .accordion-area .accordion-button {
        width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        gap: 12px;
    }
    .accordion-area .accordion-body { max-width: 100%; }
}

@media (max-width: 480px) {
    .tts-slider { margin: 0 -6px; }
    .tts-slide { padding: 0 6px; }
    .tts-card {
        padding: 1.25rem 1.125rem 1rem;
        min-height: 170px;
        border-radius: 14px;
    }
    .tts-card__title { font-size: 0.85rem; }
    .tts-card__footer { margin-top: 0.875rem; padding-top: 0.625rem; }

    .accordion-area .accordion-button {
        font-size: 16px;
        padding: 14px 12px;
    }
    .accordion-area .faq-number {
        margin-right: 8px;
        font-size: 13px;
        flex-shrink: 0;
    }
    .accordion-area .accordion-body { padding: 0 12px 14px; }
    .accordion-area .faq-text { font-size: 15px; }
}

/**
 * Faster entrance animations — override parent theme's slow delays
 * img-custom-anim-left/right/top: 1.3s + 0.4s delay → 0.5s + 0s delay
 * WOW.js visibility: ensure content never stays hidden
 * Author: Tobalt — https://tobalt.lt
 */
.elementor-widget.img-custom-anim-left,
.elementor-widget.img-custom-anim-right,
.elementor-widget.img-custom-anim-top {
    animation-duration: 0.5s !important;
    -webkit-animation-duration: 0.5s !important;
    animation-delay: 0s !important;
    -webkit-animation-delay: 0s !important;
}

.wow {
    visibility: visible !important;
}

/**
 * Layout 10 — Scroll Progress Indicator
 * Author: Tobalt — https://tobalt.lt
 */

.tbs__scroll-progress {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    width: 44px;
    height: 44px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tbs__scroll-ring {
    position: absolute;
    inset: 2px;
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
}

.tbs__scroll-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 2;
}

.tbs__scroll-ring-fill {
    fill: none;
    stroke: #E3FF04;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s ease-out;
}

.tbs__scroll-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    color: #fff;
    animation: tbs-bounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.tbs__scroll-progress--scrolled .tbs__scroll-arrow {
    animation: none;
}

.tbs__scroll-progress--done {
    opacity: 0.3;
}

@keyframes tbs-bounce {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% + 4px)); }
}

@media (max-width: 768px) {
    .tbs__scroll-progress {
        width: 32px;
        height: 32px;
        bottom: 70px;
    }

    .tbs__scroll-ring {
        width: 32px;
        height: 32px;
    }

    .tbs__scroll-arrow {
        width: 14px;
        height: 14px;
    }
}

/**
 * Layout 11 — Tobalt Bubble Map
 * Interactive sector category bubbles
 * Author: Tobalt — https://tobalt.lt
 */

.tbb {
    --tbb-bg: #0A0C00;
    --tbb-accent: #E3FF04;
    --tbb-glass: rgba(255, 255, 255, 0.08);
    --tbb-glass-border: rgba(255, 255, 255, 0.12);
    --tbb-font-display: 'Unbounded', sans-serif;
    --tbb-font-body: 'Poppins', sans-serif;

    position: relative;
    font-family: var(--tbb-font-body);
    background: var(--tbb-bg);
    padding: 60px 20px 80px;
    overflow: hidden;
}

.tbb__header {
    text-align: center;
    margin-bottom: 48px;
}

.tbb__heading {
    font-family: var(--tbb-font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.tbb__subheading {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tbb__canvas {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 300px;
}

.tbb__bubble {
    position: absolute;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--tbb-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid var(--tbb-glass-border);
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    will-change: transform, opacity;
    padding: 10px;
    box-sizing: border-box;
}

.tbb__bubble--visible {
    opacity: 1;
    transform: scale(1);
    animation: tbb-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tbb-pop-in {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

.tbb__bubble--float {
    animation: tbb-float 4s ease-in-out infinite;
}

@keyframes tbb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1); }
}

.tbb__bubble:hover {
    border-color: var(--tbb-accent);
    transform: scale(1.08) !important;
    background: rgba(227, 255, 4, 0.08);
    animation-play-state: paused;
}

.tbb__bubble:focus-visible {
    outline: 2px solid var(--tbb-accent);
    outline-offset: 3px;
}

.tbb__bubble-count {
    font-family: var(--tbb-font-display);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--tbb-accent);
    line-height: 1;
}

.tbb__bubble-name {
    font-size: clamp(0.6rem, 1.2vw, 0.8rem);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 90%;
}

/* Preview Tooltip */
.tbb__preview {
    position: absolute;
    z-index: 100;
    width: 280px;
    padding: 16px;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-100%) translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.tbb__preview--visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-100%) translateY(0);
    pointer-events: auto;
}

.tbb__preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.tbb__preview-thumb {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
}

.tbb__preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbb__preview-cta {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tbb-accent);
    text-align: center;
}

/* Responsive — Tablet */
@media (max-width: 992px) {
    .tbb__canvas {
        max-width: 700px;
    }

    .tbb {
        padding: 48px 16px 64px;
    }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .tbb {
        padding: 40px 12px 56px;
    }

    .tbb__header {
        margin-bottom: 32px;
    }

    .tbb__preview {
        width: 240px;
    }
}

/* Responsive — Small mobile: bottom sheet preview */
@media (max-width: 480px) {
    .tbb__preview--bottom,
    .tbb__preview--bottom.tbb__preview--visible {
        position: fixed;
        bottom: 0;
        left: 0 !important;
        right: 0;
        top: auto !important;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        z-index: 9999;
    }

    .tbb__preview--bottom.tbb__preview--visible {
        transform: translateY(0);
    }
}

/**
 * Language Switcher — Globe Button
 * Author: Tobalt — https://tobalt.lt
 */

.tls {
    position: fixed;
    top: 10%;
    right: 20px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.tls__globe {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 12, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.tls__globe:hover {
    background: #E3FF04;
    color: #0A0C00;
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(227, 255, 4, 0.35);
}

.tls--open .tls__globe {
    background: #E3FF04;
    color: #0A0C00;
    transform: scale(1.08);
}

.tls__globe-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.tls__langs {
    position: absolute;
    top: 52px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    pointer-events: none;
}

.tls--open .tls__langs {
    pointer-events: auto;
}

.tls__lang {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 12, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: scale(0) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.tls--open .tls__lang {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition-delay: var(--tls-delay);
}

.tls__lang:hover {
    background: #E3FF04;
    border-color: #E3FF04;
    transform: scale(1.12) translateY(0) !important;
    box-shadow: 0 4px 16px rgba(227, 255, 4, 0.3);
}

.tls__flag {
    font-size: 1.25rem;
    line-height: 1;
}

.tls__flag--img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .tls {
        top: 20%;
        right: 14px;
    }

    .tls__globe {
        width: 40px;
        height: 40px;
    }

    .tls__globe-icon {
        width: 20px;
        height: 20px;
    }

    .tls__langs {
        top: 48px;
    }

    .tls__lang {
        width: 36px;
        height: 36px;
    }

    .tls__flag {
        font-size: 1.1rem;
    }

    .tls__flag--img {
        width: 20px;
        height: 20px;
    }
}

/**
 * Hide tg-btn widgets when ACF dynamic URL is empty.
 */
.elementor-widget-tg-btn a:not([href]) {
    display: none;
}
