/* ================================================================
   host.yt core widgets — base styles
   ================================================================ */

/* ---- Badge ---- */
.hostyt-badge-wrap { display: flex; }
.hostyt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid;
    border-radius: 999px;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hostyt-badge:hover { transform: translateY(-1px); }
.hostyt-badge__dot {
    width: 6px; height: 6px; border-radius: 50%;
    flex: 0 0 6px;
}
.hostyt-badge__label { display: inline-block; }

/* ---- Pricing Rows ---- */
.hostyt-pr {
    display: flex; flex-direction: column;
    font-family: Inter, system-ui, sans-serif;
    width: 100%;
}
.hostyt-pr__row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border: 1px solid;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hostyt-pr__row:hover { transform: translateY(-1px); }
.hostyt-pr__left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hostyt-pr__title { display: flex; align-items: center; gap: 10px; }
.hostyt-pr__name { font-size: 17px; font-weight: 700; line-height: 1.2; }
.hostyt-pr__tag {
    font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    padding: 3px 8px; border-radius: 999px; line-height: 1;
}
.hostyt-pr__specs { font-size: 13px; line-height: 1.4; }
.hostyt-pr__right { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; padding-left: 16px; }
.hostyt-pr__price { font-size: 28px; font-weight: 800; line-height: 1; }
.hostyt-pr__unit { font-size: 12px; font-weight: 500; opacity: .7; }
.hostyt-pr__empty { padding: 16px; opacity: .6; font-style: italic; }

/* ---- Feature Card ---- */
.hostyt-fc {
    display: flex; flex-direction: column; gap: 14px;
    border: 1px solid;
    font-family: Inter, system-ui, sans-serif;
    height: 100%;
}
.hostyt-fc__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; line-height: 0;
}
.hostyt-fc__icon svg,
.hostyt-fc__icon i { width: 32px; height: 32px; font-size: 32px; }
.hostyt-fc__title { font-size: 20px; font-weight: 700; margin: 0; line-height: 1.3; }
.hostyt-fc__desc { font-size: 14px; line-height: 1.55; margin: 0; }
.hostyt-fc__link {
    margin-top: auto;
    font-size: 14px; font-weight: 600; text-decoration: none;
    transition: transform .2s ease;
    display: inline-block;
    width: fit-content;
}
.hostyt-fc__link:hover { transform: translateX(3px); }

/* ---- FAQ ---- */
.hostyt-faq {
    display: flex; flex-direction: column;
    font-family: Inter, system-ui, sans-serif;
    width: 100%;
}
.hostyt-faq__item {
    border: 1px solid;
    overflow: hidden;
    transition: border-color .2s ease;
}
.hostyt-faq__summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;             /* Firefox / Safari: hide default marker */
    user-select: none;
}
.hostyt-faq__summary::-webkit-details-marker { display: none; }  /* Chrome/Safari fix */
.hostyt-faq__summary::marker { content: ''; }                     /* Firefox fix */
.hostyt-faq__q {
    font-size: 16px; font-weight: 600; line-height: 1.4;
    margin: 0;                /* reset H3/H2 browser defaults */
    letter-spacing: normal;
    font-family: inherit;
}
.hostyt-faq__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.12);
    transition: transform .25s ease, background .2s ease;
}
.hostyt-faq__item[open] .hostyt-faq__icon {
    transform: rotate(45deg);   /* "+" rotates into "×" — same glyph, animated */
    background: rgba(124, 92, 255, 0.22);
}
.hostyt-faq__a {
    padding: 0 22px 20px 22px;
    font-size: 14px; line-height: 1.6;
}
.hostyt-faq__a p:first-child { margin-top: 0; }
.hostyt-faq__a p:last-child  { margin-bottom: 0; }

/* ================================================================
   prefers-color-scheme fallback — dla użytkowników bez JS theme toggle
   (kontrolki Elementora "Colors — Light" dają priorytet nad tym fallbackiem
    dzięki większej specyficzności selektorów [data-theme="light"])
   ================================================================ */
@media (prefers-color-scheme: light) {
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-badge { background: rgba(91,60,224,0.08); color: #5B3CE0; border-color: #5B3CE060; }
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-badge__dot { background: #5B3CE0; box-shadow: 0 0 12px #5B3CE060; }
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-pr__row { background: #FFFFFF; border-color: #E4EAF3; }
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-pr__name { color: #0E1422; }
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-pr__specs { color: #6B7A90; }
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-pr__price { color: #0A8AB0; }
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-fc { background: #FFFFFF; border-color: #E4EAF3; }
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-fc__title { color: #0E1422; }
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-fc__desc { color: #6B7A90; }
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-faq__item { background: #FFFFFF; border-color: #E4EAF3; }
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-faq__q { color: #0E1422; }
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-faq__a { color: #6B7A90; }
}

/* ---- Tech Specs ---- */
.hostyt-ts {
    --hostyt-ts-cols: 4;
    --hostyt-ts-accent: #7C5CFF;
    display: grid;
    grid-template-columns: repeat(var(--hostyt-ts-cols), minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    font-family: Inter, system-ui, sans-serif;
}
.hostyt-ts__item {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 8px;
    padding: 18px 18px 16px;
    border: 1px solid #24314A;
    background: #0E1422;
    border-radius: 12px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hostyt-ts__item:hover {
    transform: translateY(-2px);
    border-color: var(--hostyt-ts-accent);
    box-shadow: 0 10px 30px -15px rgba(124,92,255,0.45);
}
.hostyt-ts__icon {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--hostyt-ts-accent) 12%, transparent);
    color: var(--hostyt-ts-accent);
    font-size: 16px;
}
.hostyt-ts__icon svg { width: 18px; height: 18px; fill: currentColor; }
.hostyt-ts__title { font-weight: 700; font-size: 14px; color: #FFFFFF; letter-spacing: -0.2px; }
.hostyt-ts__desc  { font-size: 12.5px; line-height: 1.55; color: #8A95AE; }

.hostyt-ts__title { display: inline-flex; align-items: baseline; gap: 3px; }
.hostyt-ts__note {
    font-size: 10px; font-weight: 700; color: var(--hostyt-ts-accent);
    line-height: 1; transform: translateY(-2px);
}
.hostyt-ts__disclaimer {
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px; line-height: 1.55;
    color: #6B7A90; margin-top: 20px;
}

@media (max-width: 1024px) { .hostyt-ts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .hostyt-ts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 480px)  { .hostyt-ts { grid-template-columns: 1fr; } }

/* ---- World Map country list ---- */
.hostyt-worldmap__list {
    --hostyt-wm-cols: 4;
    display: grid;
    grid-template-columns: repeat(var(--hostyt-wm-cols), minmax(0, 1fr));
    gap: 10px 18px;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    font-family: Inter, system-ui, sans-serif;
}
.hostyt-worldmap__list-item {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: #C7D2E3;
    padding: 6px 0;
}
.hostyt-worldmap__list-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--hy-primary, #7C5CFF);
    box-shadow: 0 0 8px rgba(124,92,255,.6);
    flex: 0 0 6px;
}
@media (max-width: 767px) { .hostyt-worldmap__list { gap: 6px 14px; } }

@media (prefers-color-scheme: light) {
    html:not([data-theme="dark"]):not(.dark-mode) .hostyt-worldmap__list-item { color: #334155; }
}

/* ---- Theme Toggle ---- */
.hostyt-tt {
    --hostyt-tt-size: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: var(--hostyt-tt-size);
    height: var(--hostyt-tt-size);
    padding: 0;
    border: 1px solid #24314A;
    border-radius: 999px;
    background: rgba(19,28,46,0.6);
    color: #C7D2E3;
    cursor: pointer;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.hostyt-tt:focus-visible { outline: 2px solid #7C5CFF; outline-offset: 2px; }
.hostyt-tt--icon_text { width: auto; padding: 0 14px 0 10px; }
.hostyt-tt__icons { position: relative; width: 18px; height: 18px; display: inline-block; }
.hostyt-tt__icons svg {
    position: absolute; inset: 0; width: 18px; height: 18px;
    transition: opacity .25s ease, transform .3s ease;
}
.hostyt-tt__sun  { opacity: 0; transform: rotate(-90deg) scale(.6); }
.hostyt-tt__moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .hostyt-tt__sun,
.light-mode .hostyt-tt__sun  { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .hostyt-tt__moon,
.light-mode .hostyt-tt__moon { opacity: 0; transform: rotate(90deg) scale(.6); }

/* Label variant */
.hostyt-tt__label { position: relative; display: inline-block; min-width: 34px; }
.hostyt-tt__label [data-theme-label] { transition: opacity .25s ease; }
.hostyt-tt__label [data-theme-label="dark"]  { opacity: 1; }
.hostyt-tt__label [data-theme-label="light"] { position: absolute; inset: 0; opacity: 0; }
[data-theme="light"] .hostyt-tt__label [data-theme-label="dark"],
.light-mode .hostyt-tt__label [data-theme-label="dark"]  { opacity: 0; }
[data-theme="light"] .hostyt-tt__label [data-theme-label="light"],
.light-mode .hostyt-tt__label [data-theme-label="light"] { opacity: 1; }

/* Switch variant */
.hostyt-tt--switch { width: 64px; height: 32px; padding: 3px; border-radius: 999px; }
.hostyt-tt__track { position: relative; width: 100%; height: 100%; border-radius: 999px; }
.hostyt-tt__knob {
    position: absolute; top: 0; left: 0;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--hy-primary, #7C5CFF);
    display: grid; place-items: center;
    transition: transform .3s cubic-bezier(.4,0,.2,1), background .2s ease;
}
.hostyt-tt__knob svg { width: 14px; height: 14px; color: #fff; }
[data-theme="light"] .hostyt-tt--switch .hostyt-tt__knob,
.light-mode .hostyt-tt--switch .hostyt-tt__knob {
    transform: translateX(32px);
    background: #FBBF24;
}

@media (prefers-reduced-motion: reduce) {
    .hostyt-tt, .hostyt-tt *, .hostyt-tt__knob { transition: none !important; }
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .hostyt-pr__row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hostyt-pr__right { padding-left: 0; }
    .hostyt-pr__price { font-size: 24px; }
}

/* ---- Language Switcher ---- */
.hostyt-ls-wrap { display: inline-flex; }

/* Trigger button */
.hostyt-ls-trigger {
    display: inline-flex; align-items: center; gap: 7px;
    height: 40px; padding: 0 12px;
    border: 1px solid #24314A; border-radius: 999px;
    background: rgba(19,28,46,0.6); color: #C7D2E3;
    cursor: pointer; font-family: Inter, system-ui, sans-serif;
    font-size: 13px; font-weight: 600; line-height: 1;
    transition: background .2s, border-color .2s, color .2s;
    white-space: nowrap;
    /* reset any theme button styles */
    text-decoration: none; appearance: none; box-shadow: none;
}
.hostyt-ls-trigger:hover { background: rgba(124,92,255,.12); border-color: #7C5CFF; }
.hostyt-ls-trigger:focus-visible { outline: 2px solid #7C5CFF; outline-offset: 2px; }
.hostyt-ls-trigger__flag {
    width: 22px; height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}
.hostyt-ls-trigger__code { font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.hostyt-ls-trigger__chevron { opacity: .6; flex-shrink: 0; transition: transform .2s; }
.hostyt-ls-trigger[aria-expanded="true"] .hostyt-ls-trigger__chevron { transform: rotate(180deg); }

/* Overlay */
.hostyt-ls-overlay {
    position: fixed; inset: 0; z-index: 999999;
    background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
}
.hostyt-ls-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Modal panel — white by default (matches reference design) */
.hostyt-ls-modal {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
    width: 100%; max-width: 820px; max-height: 82vh;
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(10px) scale(.97);
    transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.hostyt-ls-overlay.is-open .hostyt-ls-modal { transform: none; }

/* Header */
.hostyt-ls-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px 18px; flex-shrink: 0;
}
.hostyt-ls-modal__title {
    font-family: Inter, system-ui, sans-serif;
    font-size: 18px; font-weight: 700; color: #0F172A; margin: 0;
    letter-spacing: -.3px;
}

/* Close button — clean ×, no pink border/outline */
.hostyt-ls-modal__close {
    display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 8px;
    font-size: 22px; line-height: 1; color: #94A3B8;
    cursor: pointer; flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none; appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s, background-color .15s;
    padding: 0; margin: 0;
}
.hostyt-ls-modal__close::-moz-focus-inner { border: 0; padding: 0; }
.hostyt-ls-modal__close:focus,
.hostyt-ls-modal__close:active { outline: none !important; }
.hostyt-ls-modal__close:focus-visible { outline: 2px solid #7C5CFF !important; outline-offset: 2px; }
.hostyt-ls-modal__close:hover { color: #475569; background: #F1F5F9 !important; }

/* Search input — no icon, full-width, clean */
.hostyt-ls-modal__search-wrap {
    position: relative; padding: 0 20px 18px; flex-shrink: 0;
    border-bottom: 1px solid #E2E8F0;
}
.hostyt-ls-modal__search {
    display: block; width: 100%; box-sizing: border-box;
    padding: 11px 16px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    color: #0F172A;
    font-family: Inter, system-ui, sans-serif; font-size: 14px;
    outline: none !important;
    box-shadow: none;
    -webkit-appearance: none; appearance: none;
    transition: border-color .15s, box-shadow .15s;
}
.hostyt-ls-modal__search:focus {
    border-color: #7C5CFF;
    box-shadow: 0 0 0 3px rgba(124,92,255,.12);
}
.hostyt-ls-modal__search::placeholder { color: #94A3B8; }
.hostyt-ls-modal__search::-webkit-search-decoration,
.hostyt-ls-modal__search::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Grid */
.hostyt-ls-modal__grid {
    flex: 1; overflow-y: auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 4px; padding: 16px 16px 20px;
    scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent;
}
.hostyt-ls-modal__grid::-webkit-scrollbar { width: 5px; }
.hostyt-ls-modal__grid::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

/* Language item */
.hostyt-ls-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none; color: #1E293B;
    font-family: Inter, system-ui, sans-serif;
    transition: background .12s, border-color .12s, opacity .15s;
    min-width: 0;
}
.hostyt-ls-item:hover { background: #F1F5F9; border-color: #E2E8F0; }
.hostyt-ls-item.is-current { background: rgba(124,92,255,.06); border-color: #7C5CFF; }
.hostyt-ls-item__flag {
    width: 28px; height: 28px;
    object-fit: contain; flex-shrink: 0; display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
}
/* Two-line text block */
.hostyt-ls-item__text {
    display: flex; flex-direction: column; gap: 1px;
    min-width: 0; flex: 1;
}
.hostyt-ls-item__name {
    font-size: 13px; font-weight: 600; line-height: 1.25; color: #1E293B;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hostyt-ls-item__code {
    font-size: 11px; font-weight: 500; color: #94A3B8;
    letter-spacing: .3px;
}
.hostyt-ls-item__check { color: #7C5CFF; flex-shrink: 0; margin-left: auto; }

/* Dark mode overrides */
[data-theme="dark"] .hostyt-ls-modal,
.dark-mode .hostyt-ls-modal,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-modal {
    background: #0E1422; border-color: #24314A;
    box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
[data-theme="dark"] .hostyt-ls-modal__title,
.dark-mode .hostyt-ls-modal__title,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-modal__title { color: #E8EEF8; }
[data-theme="dark"] .hostyt-ls-modal__header,
.dark-mode .hostyt-ls-modal__header,
[data-theme="dark"] .hostyt-ls-modal__search-wrap,
.dark-mode .hostyt-ls-modal__search-wrap,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-modal__header,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-modal__search-wrap { border-color: #1C2A40; }
[data-theme="dark"] .hostyt-ls-modal__close,
.dark-mode .hostyt-ls-modal__close,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-modal__close { color: #6B7A90; }
[data-theme="dark"] .hostyt-ls-modal__close:hover,
.dark-mode .hostyt-ls-modal__close:hover,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-modal__close:hover { color: #C7D2E3; background: rgba(255,255,255,.07); }
[data-theme="dark"] .hostyt-ls-modal__search,
.dark-mode .hostyt-ls-modal__search,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-modal__search {
    background: #131C2E; border-color: #24314A; color: #E8EEF8;
}
[data-theme="dark"] .hostyt-ls-modal__search::placeholder,
.dark-mode .hostyt-ls-modal__search::placeholder,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-modal__search::placeholder { color: #4A5568; }
[data-theme="dark"] .hostyt-ls-modal__grid,
.dark-mode .hostyt-ls-modal__grid,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-modal__grid { scrollbar-color: #24314A transparent; }
[data-theme="dark"] .hostyt-ls-item,
.dark-mode .hostyt-ls-item,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-item { color: #C7D2E3; }
[data-theme="dark"] .hostyt-ls-item__name,
.dark-mode .hostyt-ls-item__name,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-item__name { color: #C7D2E3; }
[data-theme="dark"] .hostyt-ls-item:hover,
.dark-mode .hostyt-ls-item:hover,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-item:hover { background: rgba(124,92,255,.1); border-color: rgba(124,92,255,.3); }
[data-theme="dark"] .hostyt-ls-item.is-current,
.dark-mode .hostyt-ls-item.is-current,
html:not([data-theme="light"]):not(.light-mode) .hostyt-ls-item.is-current { background: rgba(124,92,255,.12); border-color: #7C5CFF; }

@media (max-width: 700px) {
    .hostyt-ls-modal__grid { grid-template-columns: repeat(2, 1fr); }
    .hostyt-ls-modal { max-height: 90vh; border-radius: 16px; }
}
@media (max-width: 420px) {
    .hostyt-ls-modal__grid { grid-template-columns: 1fr; }
    .hostyt-ls-trigger__code { display: none; }
}

/* ---- CTA Button ---- */
.hostyt-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
    box-sizing: border-box;
}
.hostyt-cta:hover { transform: translateY(-1px); }
.hostyt-cta:focus-visible { outline: 2px solid #7C5CFF; outline-offset: 2px; }

/* Sizes */
.hostyt-cta--size-sm { padding: 8px 14px;  font-size: 13px; border-radius: 8px; }
.hostyt-cta--size-md { padding: 11px 20px; font-size: 14px; }
.hostyt-cta--size-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }

/* Variants */
.hostyt-cta--filled {
    background: #7C5CFF; color: #FFF;
    box-shadow: 0 4px 14px rgba(124,92,255,.35);
}
.hostyt-cta--filled:hover {
    background: #6B4AE8;
    box-shadow: 0 6px 20px rgba(124,92,255,.45);
}
.hostyt-cta--outline {
    background: transparent; color: #FFF;
    border-color: rgba(255,255,255,.25);
}
.hostyt-cta--outline:hover { border-color: #7C5CFF; background: rgba(124,92,255,.1); }
.hostyt-cta--ghost {
    background: transparent; color: #C7D2E3;
    border-color: transparent;
}
.hostyt-cta--ghost:hover { background: rgba(124,92,255,.08); color: #FFF; }

/* Light mode base */
[data-theme="light"] .hostyt-cta--outline,
.light-mode .hostyt-cta--outline {
    color: #0C1220;
    border-color: #D9E2F0;
}
[data-theme="light"] .hostyt-cta--outline:hover,
.light-mode .hostyt-cta--outline:hover {
    border-color: #5B3CE0; background: rgba(91,60,224,.06);
}
[data-theme="light"] .hostyt-cta--ghost,
.light-mode .hostyt-cta--ghost { color: #1A2436; }
[data-theme="light"] .hostyt-cta--ghost:hover,
.light-mode .hostyt-cta--ghost:hover { background: rgba(91,60,224,.06); color: #5B3CE0; }

/* ================================================================
   Mega Nav — Hostinger-style dropdown panels with icons + descriptions
   ================================================================ */
.hostyt-meganav { font-family: Inter, system-ui, sans-serif; position: relative; display: flex; align-items: center; }

.hmn__list {
    list-style: none; margin: 0; padding: 0;
    font-family: inherit;
}
/* Inline list (desktop) */
.hmn__list--inline {
    display: flex; flex-direction: row;
    align-items: center; gap: 4px; flex-wrap: nowrap;
}
/* Items without chevron get phantom right space equal to chevron+gap
   so all top-level items have visually consistent horizontal weight. */
.hmn__list--inline .hmn__link {
    padding-right: calc(14px + 6px + 13px); /* base padding + chev gap + chev width = 33px */
}
/* Drawer list (mobile) */
.hmn__list--drawer {
    display: flex; flex-direction: column;
    gap: 2px;
}

/* Drawer + backdrop are portaled to body by JS; hidden on desktop */
.hmn__drawer, .hmn__backdrop { display: none; }
.hmn__item { position: relative; }

/* Trigger/link — aggressive reset to avoid theme/browser/Elementor pink borders */
.hostyt-meganav button[class^="hmn__"],
.hostyt-meganav a[class^="hmn__"],
.hmn__drawer button[class^="hmn__"],
.hmn__drawer a[class^="hmn__"] {
    -webkit-appearance: none; appearance: none;
    -webkit-tap-highlight-color: transparent;
    background-image: none;
}
.hmn__trigger, .hmn__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px;
    margin: 0;
    background: transparent;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none; appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    color: #C7D2E3;
    font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1;
    text-decoration: none;
    border-radius: 8px;
    transition: color .18s ease, background-color .18s ease, transform .15s ease;
    position: relative;
}
.hmn__trigger::-moz-focus-inner { border: 0; padding: 0; }
.hmn__trigger:focus,
.hmn__link:focus { outline: none !important; }
.hmn__trigger:focus-visible,
.hmn__link:focus-visible {
    outline: 2px solid #7C5CFF !important;
    outline-offset: 2px;
}
.hmn__trigger:active,
.hmn__link:active { transform: scale(.97); }

.hmn__chev { opacity: .55; transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .18s ease; flex-shrink: 0; }
.hmn__item.is-open .hmn__chev { transform: rotate(180deg); opacity: 1; }

/* Dropdown panel — subtle slide + fade */
.hmn__panel {
    position: absolute; top: 100%; left: 0;
    min-width: 320px; max-width: 420px;
    margin-top: 10px; padding: 8px;
    background: #0E1422;
    border: 1px solid #24314A;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    opacity: 0; pointer-events: none;
    transform: translateY(-8px) scale(.98);
    transform-origin: top center;
    transition: opacity .2s ease, transform .25s cubic-bezier(.34,1.3,.64,1);
    z-index: 100;
}
.hmn__item.is-open .hmn__panel {
    opacity: 1; pointer-events: auto;
    transform: translateY(0) scale(1);
}
.hmn__panel::before {
    content: ''; position: absolute; inset: -10px -10px auto -10px; height: 10px;
}
.hmn__panel-inner { display: flex; flex-direction: column; gap: 1px; }

/* Sub-item rows — subtle slide-in on panel open */
.hmn__sub {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color .15s ease, transform .18s ease;
    opacity: 0; transform: translateX(-6px);
}
.hmn__item.is-open .hmn__sub {
    opacity: 1; transform: translateX(0);
    transition: opacity .22s ease, transform .22s ease, background-color .15s ease;
}
.hmn__item.is-open .hmn__sub:nth-child(1) { transition-delay: .04s; }
.hmn__item.is-open .hmn__sub:nth-child(2) { transition-delay: .08s; }
.hmn__item.is-open .hmn__sub:nth-child(3) { transition-delay: .12s; }
.hmn__item.is-open .hmn__sub:nth-child(4) { transition-delay: .16s; }
.hmn__item.is-open .hmn__sub:nth-child(5) { transition-delay: .20s; }
.hmn__item.is-open .hmn__sub:nth-child(6) { transition-delay: .24s; }

.hmn__sub:hover {
    background: rgba(124,92,255,.1);
    transform: translateX(3px) !important;
}
.hmn__sub-icon {
    flex: 0 0 36px; width: 36px; height: 36px;
    display: grid; place-items: center;
    background: rgba(124,92,255,.12);
    color: #7C5CFF;
    border-radius: 10px; font-size: 15px;
    transition: background-color .18s ease, transform .25s ease;
}
.hmn__sub:hover .hmn__sub-icon {
    background: rgba(124,92,255,.24);
    transform: rotate(-4deg) scale(1.06);
}
.hmn__sub-icon svg { width: 18px; height: 18px; }
.hmn__sub-icon i   { font-size: 15px; line-height: 1; }
.hmn__sub-text  { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.hmn__sub-title { font-weight: 600; font-size: 14px; line-height: 1.3; color: #E8EEF8; }
.hmn__sub-desc  { font-size: 12.5px; line-height: 1.4; color: #8A95AE; }

/* Section (sub with sub-sub-items) */
.hmn__section {
    display: flex; flex-direction: column;
    padding: 4px 0;
    border-top: 1px solid rgba(36,49,74,.35);
}
.hmn__section:first-child { border-top: 0; }
.hmn__section-header {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 12px 8px;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    transition: background-color .15s ease;
}
.hmn__section-header:hover { background: rgba(124,92,255,.08); }
.hmn__section-header .hmn__sub-title { font-size: 13.5px; font-weight: 700; }
.hmn__section-items {
    display: flex; flex-direction: column;
    gap: 0; padding: 0 8px 6px 58px;
}
.hmn__subsub {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #A7B3C7;
    font-size: 13px; font-weight: 500;
    transition: color .12s ease, background-color .12s ease, transform .18s ease;
}
.hmn__subsub:hover {
    color: #FFF;
    background: rgba(124,92,255,.08);
    transform: translateX(2px);
}
.hmn__subsub-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: currentColor; opacity: .45;
    flex-shrink: 0;
    transition: opacity .15s, transform .2s;
}
.hmn__subsub:hover .hmn__subsub-dot {
    opacity: 1; transform: scale(1.3);
}
.hmn__subsub-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px;
    font-size: 12px; flex-shrink: 0;
    color: currentColor; opacity: .65;
    transition: opacity .15s;
}
.hmn__subsub:hover .hmn__subsub-icon { opacity: 1; }
/* Wider panel when sections present */
.hmn__panel { min-width: 340px; }

/* Burger + Drawer (hidden on desktop, shown on mobile only) */
.hmn__burger, .hmn__close {
    display: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #C7D2E3; cursor: pointer;
    padding: 8px; border-radius: 10px;
    margin: 0;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
    -webkit-appearance: none; appearance: none;
    -webkit-tap-highlight-color: transparent;
}
.hmn__burger::-moz-focus-inner,
.hmn__close::-moz-focus-inner { border: 0; padding: 0; }
.hmn__burger:focus, .hmn__close:focus { outline: none !important; }
.hmn__burger:focus-visible,
.hmn__close:focus-visible { outline: 2px solid #7C5CFF !important; outline-offset: 2px; }
.hmn__burger:hover, .hmn__close:hover {
    background: rgba(124,92,255,.12) !important; color: #FFF;
}
.hmn__burger:active { transform: scale(.92); }
.hmn__backdrop { display: none; }

/* Light mode defaults */
[data-theme="light"] .hmn__trigger,
[data-theme="light"] .hmn__link,
.light-mode .hmn__trigger,
.light-mode .hmn__link { color: #1A2436; }
[data-theme="light"] .hmn__trigger:hover,
[data-theme="light"] .hmn__link:hover,
[data-theme="light"] .hmn__item.is-open .hmn__trigger,
.light-mode .hmn__trigger:hover,
.light-mode .hmn__link:hover,
.light-mode .hmn__item.is-open .hmn__trigger {
    color: #5B3CE0; background: rgba(91,60,224,.07);
}
[data-theme="light"] .hmn__panel,
.light-mode .hmn__panel {
    background: #FFFFFF;
    border-color: #E4EAF3;
    box-shadow: 0 16px 40px rgba(10,20,40,.12);
}
[data-theme="light"] .hmn__sub:hover,
.light-mode .hmn__sub:hover { background: rgba(91,60,224,.06); }
[data-theme="light"] .hmn__sub-icon,
.light-mode .hmn__sub-icon { background: rgba(91,60,224,.1); color: #5B3CE0; }
[data-theme="light"] .hmn__sub:hover .hmn__sub-icon,
.light-mode .hmn__sub:hover .hmn__sub-icon { background: rgba(91,60,224,.18); }
[data-theme="light"] .hmn__sub-title,
.light-mode .hmn__sub-title { color: #0C1220; }
[data-theme="light"] .hmn__sub-desc,
.light-mode .hmn__sub-desc { color: #6B7A90; }
[data-theme="light"] .hmn__section,
.light-mode .hmn__section { border-top-color: rgba(228,234,243,.8); }
[data-theme="light"] .hmn__section-header:hover,
.light-mode .hmn__section-header:hover { background: rgba(91,60,224,.05); }
[data-theme="light"] .hmn__subsub,
.light-mode .hmn__subsub { color: #6B7A90; }
[data-theme="light"] .hmn__subsub:hover,
.light-mode .hmn__subsub:hover { color: #5B3CE0; background: rgba(91,60,224,.06); }
[data-theme="light"] .hmn__burger,
[data-theme="light"] .hmn__close,
.light-mode .hmn__burger,
.light-mode .hmn__close { color: #1A2436; }
[data-theme="light"] .hmn__burger:hover,
[data-theme="light"] .hmn__close:hover,
.light-mode .hmn__burger:hover,
.light-mode .hmn__close:hover { background: rgba(91,60,224,.08); color: #5B3CE0; }

/* Drawer base styles (only visible when .is-open via JS on mobile) */
.hmn__backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0; pointer-events: none;
    transition: opacity .28s ease;
    z-index: 99998;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.hmn__backdrop.is-open { opacity: 1; pointer-events: auto; }

.hmn__drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(380px, 88vw);
    background: #0E1422;
    padding: 64px 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    z-index: 99999;
    box-shadow: -20px 0 60px rgba(0,0,0,.4);
    font-family: Inter, system-ui, sans-serif;
}
.hmn__drawer.is-open { transform: translateX(0); }

[data-theme="light"] .hmn__drawer,
.light-mode .hmn__drawer {
    background: #FFFFFF;
    box-shadow: -20px 0 60px rgba(10,20,40,.14);
}

/* Mobile (≤900px) — hide inline list, show burger + enable drawer */
@media (max-width: 900px) {
    .hmn__list--inline { display: none !important; }
    .hmn__burger { display: inline-flex !important; }
    .hmn__close  { display: inline-flex !important; position: absolute !important; top: 14px; right: 14px; z-index: 2; }
    .hmn__drawer, .hmn__backdrop { display: block; }

    /* Drawer list items — full-width stacked */
    .hmn__list--drawer > .hmn__item { width: 100%; text-align: left; }
    .hmn__list--drawer .hmn__trigger,
    .hmn__list--drawer .hmn__link {
        display: flex !important;          /* block-level so width:100% takes effect */
        width: 100% !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 14px 16px; font-size: 15px;
    }
    .hmn__list--drawer .hmn__trigger .hmn__chev {
        margin-left: auto;  /* push chevron to the right */
    }
    /* Panels inside drawer = inline accordion (closed = zero space, open = reveals items) */
    .hmn__list--drawer .hmn__panel {
        position: static; min-width: 0; max-width: none;
        margin: 0; padding: 0;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        transform: none;
        max-height: 0; overflow: hidden;
        opacity: 1;
        pointer-events: auto;
        transition: max-height .3s ease, margin .3s ease, padding .3s ease;
    }
    .hmn__list--drawer .hmn__item.is-open .hmn__panel {
        max-height: 800px;
        margin: 2px 0 6px;
        padding: 4px 0 4px 8px;
        transform: none;
    }
    .hmn__list--drawer .hmn__sub { padding: 10px 10px; }

    /* Staggered entry when drawer opens */
    .hmn__drawer.is-open .hmn__list--drawer > .hmn__item {
        animation: hmnSlideIn .35s cubic-bezier(.34,1.2,.64,1) both;
    }
    .hmn__drawer.is-open .hmn__list--drawer > .hmn__item:nth-child(1) { animation-delay: .05s; }
    .hmn__drawer.is-open .hmn__list--drawer > .hmn__item:nth-child(2) { animation-delay: .10s; }
    .hmn__drawer.is-open .hmn__list--drawer > .hmn__item:nth-child(3) { animation-delay: .15s; }
    .hmn__drawer.is-open .hmn__list--drawer > .hmn__item:nth-child(4) { animation-delay: .20s; }
    .hmn__drawer.is-open .hmn__list--drawer > .hmn__item:nth-child(5) { animation-delay: .25s; }
    .hmn__drawer.is-open .hmn__list--drawer > .hmn__item:nth-child(6) { animation-delay: .30s; }
    .hmn__drawer.is-open .hmn__list--drawer > .hmn__item:nth-child(7) { animation-delay: .35s; }
}

@keyframes hmnSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hmn__trigger, .hmn__link, .hmn__sub, .hmn__sub-icon, .hmn__panel, .hmn__drawer, .hmn__backdrop, .hmn__chev {
        transition: none !important; animation: none !important;
    }
}

/* ================================================================
   Elementor Pro Nav Menu — light mode contrast fix
   (Nav Menu widget has no per-theme color controls; we override inline styles)
   ================================================================ */
[data-theme="light"] .elementor-nav-menu > li > a,
.light-mode .elementor-nav-menu > li > a {
    color: #1A2436 !important;
}
[data-theme="light"] .elementor-nav-menu > li > a:hover,
[data-theme="light"] .elementor-nav-menu > li > a:focus,
.light-mode .elementor-nav-menu > li > a:hover,
.light-mode .elementor-nav-menu > li > a:focus {
    color: #5B3CE0 !important;
}
[data-theme="light"] .elementor-nav-menu .current-menu-item > a,
[data-theme="light"] .elementor-nav-menu .current_page_item > a,
.light-mode .elementor-nav-menu .current-menu-item > a,
.light-mode .elementor-nav-menu .current_page_item > a {
    color: #5B3CE0 !important;
}
/* Submenu dropdown panels in light mode */
[data-theme="light"] .elementor-nav-menu .sub-menu,
.light-mode .elementor-nav-menu .sub-menu {
    background: #FFFFFF !important;
    border: 1px solid #E4EAF3 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.08) !important;
}
[data-theme="light"] .elementor-nav-menu .sub-menu a,
.light-mode .elementor-nav-menu .sub-menu a { color: #1A2436 !important; }
