/* NEXA ECOSYSTEM — original design (F0), unchanged; NEXA BALANCE elements appended below. */

/* УЛТРА-ЛУКСОЗЕН КИБЕР ДИЗАЙН (Черна матова тема с неоново синьо) */
:root {
    --bg-color: #05070d;      /* син-черен фон като в снимките */
    --card-bg: #0a0e17;       /* матово тъмно стъкло */
    --accent-blue: #3d7fff;   /* електриково кобалтово сияние (текст, линии) */
    --accent-deep: #276fe1;   /* същият нюанс за плътни запълвания */
    --accent-glass: #9dbcff;  /* светъл нюанс на прозрачното стъкло */
    --neon: #6ea2ff;          /* неоново синьо за името на сайта */
    --steel: #c9d0dd;         /* четкана стомана / титан */
    --text-main: #ffffff;
    --text-muted: #8a93a6;    /* стоманено сиво със синя нотка */
    --border-color: #151c2b;
    --font: 'Michroma', 'Eurostile', 'Microgramma D Extended', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    font-family: var(--font);
    font-weight: 400;
    color: var(--text-main);
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, #02030a 0%, var(--bg-color) 100%);
    box-shadow: 0 1px 0 rgba(61, 127, 255, 0.35), 0 8px 40px -12px rgba(39, 111, 225, 0.45);
}

/* ИМЕТО НА САЙТА - неонов цвят с лека светлина */
.brand-logo {
    font-size: clamp(0.95rem, 4.4vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--neon);
    margin: 0;
    text-transform: none;
    overflow-wrap: anywhere;
    text-shadow:
        0 0 3px rgba(157, 188, 255, 0.85),
        0 0 12px rgba(61, 127, 255, 0.7),
        0 0 32px rgba(39, 111, 225, 0.45);
}

.brand-subtitle {
    font-size: 0.7rem;
    line-height: 1.8;
    color: var(--accent-blue);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 10px;
}

/* ГАЛЕРИЯ 9:16 - ПЕРФЕКТНА ЗА ТЕЛЕФОНИ И AI СКАНЕРИ */
/* 1 карта на ред (телефон) / 2 колони (таблет и десктоп); непълният последен ред е центриран */
.gallery-container {
    --cols: 2;
    --gap: 16px;
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}

.gallery-container > .product-card {
    width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
}

@media (min-width: 640px) {
    .gallery-container { --gap: 40px; }
}


.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 0 32px rgba(39, 111, 225, 0.22);
}

/* 9:16 Контейнер за снимките от ChatGPT */
.image-container {
    position: relative;
    width: 100%;
    padding-top: 177.77%; /* Точно 9:16 съотношение */
    background: radial-gradient(circle at 50% 40%, #0c1a33 0%, #03050a 70%);
}

/* Резервен надпис, ако снимката още не е качена */
.image-container::before {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

/* КАРУСЕЛ: до 3 снимки на продукт */
.carousel-track {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.35s ease;
}

.image-container .carousel-track img {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: rgba(5, 7, 13, 0.55);
    border: 1px solid rgba(201, 208, 221, 0.35);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel:hover .carousel-btn,
.carousel-btn:focus-visible { opacity: 1; }

.carousel-btn:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 14px rgba(61, 127, 255, 0.45);
}

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dot {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(201, 208, 221, 0.6);
    background: rgba(5, 7, 13, 0.5);
    cursor: pointer;
}

.carousel-dot::after { content: ""; position: absolute; inset: -9px; }

.carousel-dot[aria-current="true"] {
    background: var(--neon);
    border-color: var(--neon);
    box-shadow: 0 0 8px rgba(61, 127, 255, 0.8);
}

.carousel-btn:focus-visible,
.carousel-dot:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* при една снимка стрелките и точките се скриват */
.carousel.is-single .carousel-btn,
.carousel.is-single .carousel-dots { display: none; }

@media (hover: none) {
    .carousel-btn { opacity: 0.85; }
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0 0 14px 0;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-price {
    margin: 0 0 18px 0;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--text-main);
}

.price-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.spec-list {
    margin: 0 0 20px 0;
    font-size: 0.68rem;
    line-height: 2;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.spec-row dt,
.spec-row dd {
    display: inline;
    margin: 0;
}

.spec-row dt::after { content: ": "; }
.spec-row dd { color: var(--accent-blue); }

.flash-drop {
    margin: auto 0 20px 0; /* Flash Drop и бутонът са долу във всички карти */
    padding: 14px 16px;
    font-size: 0.66rem;
    line-height: 1.9;
    color: var(--steel);
    background-color: rgba(39, 111, 225, 0.08);
    border: 1px solid rgba(61, 127, 255, 0.35);
    border-left: 3px solid #ff4d5e; /* червен сигнален акцент */
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.flash-tag {
    color: var(--neon);
    text-shadow: 0 0 10px rgba(61, 127, 255, 0.55);
}

/* КОРПОРАТИВНИЯТ БУТОН "BUY NOW" */
.buy-btn {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--steel);
    padding: 14px 20px;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.buy-btn:hover {
    background-color: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #fff;
    box-shadow: 0 0 22px rgba(61, 127, 255, 0.5);
}

/* ЛУКСОЗНИЯТ ЧЕРЕН ПРОЗОРЕЦ ЗА ХОРАТА И ШПИОНИТЕ (MODAL COCKPIT) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 5, 10, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--accent-blue);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 0 48px rgba(39, 111, 225, 0.25);
}

.modal-logo {
    color: var(--accent-glass);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    margin-bottom: 20px;
}

.modal-text {
    font-size: 0.75rem;
    line-height: 2;
    color: var(--text-main);
    margin-bottom: 30px;
}

.modal-text em {
    color: var(--accent-blue);
    font-style: normal;
    font-weight: 400;
}

.close-modal-btn {
    background-color: var(--accent-deep);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    font-family: inherit;
}

strong, b, h1, h2, h3 { font-weight: 400; }
.modal-text strong { color: var(--steel); letter-spacing: 0.12em; }

.sold-out {
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-shadow: 0 0 14px rgba(61, 127, 255, 0.9);
}

/* Клас за показване на прозореца */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Видим фокус за клавиатура */
.buy-btn:focus-visible,
.close-modal-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .brand-logo { letter-spacing: 0.06em; }
    .modal-content { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .buy-btn,
    .modal-overlay,
    .carousel-track { transition: none; }
    .product-card:hover { transform: none; }
}

:root {
    --nb-accent: var(--accent-blue);
    --nb-accent-deep: var(--accent-deep);
}

/* ==================== NEXA BALANCE (shared by NEXA SmartLife / NEXA Ecosystem) ====================
   Uses the site's own palette through --nb-accent / --nb-accent-deep (set in :root above). */

.concept-disclaimer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #9a9a9a;
    text-transform: uppercase;
}

.concept-label {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--nb-accent);
    border: 1px solid var(--nb-accent);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.balance-badge {
    display: block;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #bbbbbb;
    margin-bottom: 8px;
}
.balance-badge[data-state="active"] { color: var(--nb-accent); }
.balance-badge[data-state="free"] { color: #7ddc8a; }

.product-title { overflow-wrap: anywhere; }
/* phones: the two-column cards are ~110px wide; long words get a smaller size and hyphenation instead of a mid-word break */
@media (max-width: 480px) { .product-title { font-size: 12px; letter-spacing: 0.06em; -webkit-hyphens: auto; hyphens: auto; } }

.product-teaser {
    font-size: 13px;
    line-height: 1.6;
    color: #cfcfcf;
    margin: 8px 0 12px;
}

.concept-question {
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.6;
    color: #9a9a9a;
    margin: 6px 0 14px;
    text-transform: uppercase;
}

.spec-list.concept-protected-pending dd {
    color: #8a8a8a;
    font-style: italic;
}

/* sticky BALANCE indicator */
.balance-indicator {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 900;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(5, 5, 5, 0.92);
    border: 1px solid var(--nb-accent);
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #dddddd;
}
.balance-indicator[hidden] { display: none; }
.balance-indicator.is-warning { border-color: #888888; color: #888888; }
.balance-value { color: var(--nb-accent); font-size: 15px; }
.balance-delta { opacity: 0; transition: opacity 0.3s; color: #ff8a8a; }
.balance-delta.is-visible { opacity: 1; }

/* BALANCE modal (reuses .modal-overlay / .modal-content of the site) */
.balance-box { max-width: 560px; width: calc(100% - 32px); position: relative; }
.balance-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: 0;
    color: #bbbbbb;
    font-size: 18px;
    cursor: pointer;
}
.balance-step[hidden] { display: none; }
.balance-strong { color: var(--nb-accent); }

.network-block {
    border: 1px solid var(--nb-accent);
    border-radius: 6px;
    padding: 12px;
    margin: 14px 0;
    text-align: center;
}
.network-block[hidden] { display: none; }
.network-title { color: var(--nb-accent); letter-spacing: 0.14em; font-size: 12px; margin: 0 0 6px; }
.network-text, .network-sites, .network-tagline { font-size: 12px; color: #cfcfcf; margin: 4px 0; }

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}
@media (max-width: 600px) { .package-grid { grid-template-columns: 1fr; } }
.package-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--nb-accent);
    border-radius: 6px;
    color: #eeeeee;
    cursor: pointer;
    font-family: inherit;
}
.package-card:hover, .package-card:focus-visible { background: var(--nb-accent-deep); color: #ffffff; }
.package-price { font-size: 18px; }
.package-balance { font-size: 13px; letter-spacing: 0.08em; }
.package-days { font-size: 10px; letter-spacing: 0.14em; color: #9a9a9a; }
.package-note, .code-warning { font-size: 11px; color: #9a9a9a; line-height: 1.6; }

.code-value {
    font-family: monospace;
    font-size: 15px;
    letter-spacing: 0.06em;
    color: var(--nb-accent);
    word-break: break-all;
    border: 1px dashed var(--nb-accent);
    padding: 10px;
    border-radius: 4px;
    margin: 12px 0;
}
.code-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.code-feedback { font-size: 12px; color: var(--nb-accent); min-height: 1em; }
.code-link {
    background: none;
    border: 0;
    color: #bbbbbb;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    margin-top: 8px;
}
.balance-btn {
    background: transparent;
    border: 1px solid var(--nb-accent);
    color: #eeeeee;
    padding: 10px 16px;
    font-family: inherit;
    letter-spacing: 0.12em;
    cursor: pointer;
    border-radius: 3px;
}
.balance-btn.primary { background: var(--nb-accent-deep); border-color: var(--nb-accent-deep); color: #ffffff; }
.balance-btn[hidden] { display: none; }
#messageText { white-space: pre-line; }
/* Michroma draws the euro sign like a zero: payment amounts use a font with an unambiguous euro sign */
.package-price, #codeContinue, #messageAction { font-family: "Segoe UI", Arial, Helvetica, sans-serif; letter-spacing: 0.04em; }

/* C4: legal links (footer) and the Balance Code restore link (BALANCE window) */
.legal-links { margin: 12px 0 0; font-size: 11px; letter-spacing: 1px; }
.legal-links a, .legal-note a { color: inherit; text-decoration: underline; }
.legal-links a { color: #BBBBBB; display: inline-block; padding: 6px 2px; }
.legal-note { margin-top: 6px; }
.restore-note { margin: 6px 0 0; text-align: center; }
.restore-note .code-link { display: inline-block; padding: 8px 4px; }

/* ==================== NEXA BALANCE GATE (public/balance-gate.js) ====================
   One panel where the catalog needs BALANCE; the locked concepts after it are hidden. Palette of this site only. */
.balance-gate {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0;
    padding: 34px 20px;
    text-align: center;
    background: #050403;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--nb-accent);
    font-family: var(--font);
    color: var(--text-muted);
}
.balance-gate-title { margin: 0 0 10px; font-size: 15px; letter-spacing: 3px; color: var(--nb-accent); }
.balance-gate-text { margin: 0 0 18px; font-size: 13px; letter-spacing: 1px; }
.balance-gate-button {
    min-height: 44px;
    padding: 12px 26px;
    background: var(--nb-accent-deep);
    color: var(--text-main);
    border: 1px solid var(--nb-accent-deep);
    font-family: var(--font);
    letter-spacing: 2px;
    cursor: pointer;
}
.balance-gate-button:hover { box-shadow: 0 0 14px var(--nb-accent); }
.balance-gate-button:focus-visible { outline: 2px solid var(--text-main); outline-offset: 3px; }
.product-card[hidden] { display: none !important; }

/* Purchase information, shown directly above the three packages (static text; the package cards are unchanged). */
.package-terms {
    max-width: 560px;
    margin: 14px auto 0;
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center;
}

/* CONNECT — a guest connects the BALANCE they already have (only on click; nothing is created) */
.balance-connect { margin-left: 10px; padding: 4px 10px; font: inherit; font-size: 11px; letter-spacing: 0.08em; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 4px; cursor: pointer; }
.balance-connect[hidden] { display: none; }

/* NEXA-SEO — the gallery of concept images the owner approved for search engines (lib/seo.js) */
.nexa-seo-gallery { max-width: 1200px; margin: 48px auto; padding: 0 20px; }
.nexa-seo-gallery h2 { font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.nexa-seo-note { opacity: .7; font-size: .85rem; margin: 0 0 16px; }
.nexa-seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.nexa-seo-grid figure { margin: 0; }
.nexa-seo-grid img { width: 100%; height: auto; display: block; border-radius: 6px; }
.nexa-seo-grid figcaption { font-size: .8rem; opacity: .8; margin-top: 6px; }
.nexa-seo-concept { margin: 0 0 32px; }
.nexa-seo-concept h3 { margin: 0 0 6px; }
.nexa-seo-description { margin: 0 0 8px; line-height: 1.5; }
