/* =============================================================
   Pegas Tools — main.css
   Mobile-first, custom properties, no Bootstrap, no jQuery
   ============================================================= */

/* ── Custom properties ──────────────────────────────────────── */
:root {
    --bg-primary:      #06070b;
    --bg-secondary:    #080a0f;
    --bg-card:         rgba(255,255,255,0.03);
    --accent-cyan:     #22d3ee;
    --accent-cyan-dim: rgba(34,211,238,0.15);
    --text-primary:    #ffffff;
    --text-muted:      rgba(255,255,255,0.62);
    --text-dim:        rgba(255,255,255,0.35);
    --border:          rgba(255,255,255,0.10);
    --border-cyan:     rgba(34,211,238,0.22);

    --radius-card: 30px;
    --radius-btn:  16px;
    --radius-icon: 16px;

    --transition-card: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;

    --container-max: 1280px;
    --container-pad: 1.5rem;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img, video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ── Eyebrow label ──────────────────────────────────────────── */
.eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.875rem;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-btn);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}
.btn--primary:hover {
    background: #38e8ff;
}

.btn--ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.10);
}

.btn--lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn--sm {
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(6,7,11,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-icon);
    border: 1px solid var(--border-cyan);
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
}

.nav-logo__name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-logo__sub {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--text-dim);
}

.nav-links {
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-list li a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-list li a:hover,
.nav-list li.current-menu-item a {
    color: var(--text-primary);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

/* Hamburger */
.nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(0, 242, 254, 0.05) !important;
    border: 1px solid rgba(0, 242, 254, 0.2) !important;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    width: 42px;
    height: 42px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.05);
}

.nav-burger:hover,
.nav-burger[aria-expanded="true"] {
    background: rgba(0, 242, 254, 0.12) !important;
    border-color: #00f2fe !important;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #00f2fe;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger span:nth-child(2) {
    width: 14px;
    align-self: flex-end;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav open */
.nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid #222;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 242, 254, 0.05);
    z-index: 999;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links.is-open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.nav-links.is-open .nav-list li a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links.is-open .nav-list li a:hover,
.nav-links.is-open .nav-list li.current-menu-item a {
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.05);
    padding-left: 20px;
}

/* Mobile top action buttons */
.nav-actions-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 12px;
}

.btn-mobile-nav {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-mobile-nav:hover,
.btn-mobile-nav:active {
    background: rgba(0, 242, 254, 0.06);
    border-color: #00f2fe;
    color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

@media (min-width: 1024px) {
    .nav-links  { display: flex; }
    .nav-actions{ display: flex; }
    .nav-burger { display: none; }
    .nav-actions-mobile { display: none; }
}

@media (max-width: 1023px) {
    .nav-links { display: none; }
}

/* Sticky Bottom Nav Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 60px !important;
    }
}

.mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    gap: 4px;
    transition: all 0.2s ease;
    flex: 1;
    height: 100%;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item:focus,
.mobile-bottom-nav__item:active {
    color: #00f2fe;
}

.mobile-bottom-nav__icon {
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.mobile-bottom-nav__item:hover .mobile-bottom-nav__icon,
.mobile-bottom-nav__item:active .mobile-bottom-nav__icon {
    transform: translateY(-2px);
}

.mobile-bottom-nav__label {
    text-transform: uppercase;
}
}

/* ── Hero ────────────────────────────────────────────────────── */
/* Mobile-first: video flows naturally at full width — always 100% visible */
.hero {
    position: relative;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(6, 7, 11, 0.7) 0%,
        rgba(6, 7, 11, 0.45) 50%,
        rgba(6, 7, 11, 0.8) 100%
    );
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: 5rem;
    pointer-events: none;
}

.hero__content {
    max-width: 620px;
    pointer-events: auto;
}

.hero__stats {
    display: none;
}

/* Desktop (≥768px): set min-height and layout aspect ratio */
@media (min-width: 768px) {
    .hero {
        aspect-ratio: 1376 / 768;
        min-height: 700px;
    }
    .hero__inner {
        padding-block: 8rem 7rem;
    }
    .hero__stats {
        display: grid;
    }
}

.hero__content {
    max-width: 780px;
}

.hero__badge {
    margin-bottom: 1.5rem;
    border-color: rgba(34,211,238,0.25);
    background: rgba(34,211,238,0.10);
    color: rgba(220,248,255,0.9);
}

.hero__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 16px rgba(6,7,11,0.6);
}

.hero__title-accent {
    color: var(--accent-cyan);
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero__text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.88);
    max-width: 600px;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 16px rgba(6,7,11,0.6);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 380px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.125rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-card__num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-card__label {
    font-size: 0.8125rem;
    color: var(--text-dim);
}

/* ── Section shared ──────────────────────────────────────────── */
.section-header {
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.section-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-text {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ── Addons section ──────────────────────────────────────────── */
.addons-section {
    background: var(--bg-secondary);
    padding-block: 5rem;
    border-bottom: 1px solid var(--border);
}

/* Category cards */
.category-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    transition: var(--transition-card);
}

.category-card:hover {
    border-color: var(--border-cyan);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-icon);
    border: 1px solid var(--border-cyan);
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.category-card__title {
    font-size: 1.125rem;
    font-weight: 600;
}

.category-card__sub {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.category-card__arrow {
    margin-left: auto;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* Product grid */
.products-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: var(--transition-card);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34,211,238,0.25);
    background: rgba(255,255,255,0.05);
}

.product-card__img {
    margin: -1.75rem -1.75rem 1.25rem;
    border-radius: calc(var(--radius-card) - 2px) calc(var(--radius-card) - 2px) 0 0;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

.product-card__img a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__img img {
    transform: scale(1.04);
}

.product-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 1rem;
    min-height: 1.5rem;
}

.product-card__cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.product-card__name {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.product-card__desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1.5rem;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-card__price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-cyan);
}

/* Architecture cards */
.arch-cards {
    display: grid;
    gap: 1rem;
}

.arch-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
}

.arch-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-icon);
    border: 1px solid rgba(167,139,250,0.25);
    background: rgba(167,139,250,0.10);
    color: #c4b5fd;
    margin-bottom: 1rem;
}

.arch-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
}

.arch-card__text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ── Blog section ────────────────────────────────────────────── */
.blog-section {
    background: var(--bg-primary);
    padding-block: 5rem;
    border-bottom: 1px solid var(--border);
}

.blog-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition-card);
}

.blog-card:hover {
    border-color: var(--border-cyan);
    transform: translateY(-4px);
}

.blog-card__thumb {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.04);
}

.blog-card__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0b1220, #0d0d10);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.blog-card__thumb-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34,211,238,0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,211,238,0.10) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.6;
}

.blog-card__play {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 40px rgba(34,211,238,0.3);
}

.blog-card__body {
    padding: 1.5rem;
}

.blog-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card__title a:hover {
    color: var(--accent-cyan);
}

.blog-card__excerpt {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.blog-section__cta {
    text-align: center;
}

/* ── Footer CTA ──────────────────────────────────────────────── */
.footer-cta-section {
    background: var(--bg-secondary);
    padding-block: 5rem;
}

.footer-cta {
    border: 1px solid var(--border-cyan);
    border-radius: 34px;
    background:
        radial-gradient(circle at top, rgba(34,211,238,0.10), transparent 40%),
        linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-cta .eyebrow {
    margin-bottom: 1rem;
}

.footer-cta__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.footer-cta__text {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.footer-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ── Site footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding-block: 2.5rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand__name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-brand__sub {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-dim);
}

/* ── Page content ────────────────────────────────────────────── */
.page-content {
    padding-block: 4rem;
}

.page-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.page-body {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 720px;
}

/* ── Blog post ───────────────────────────────────────────────── */
.single-post {
    max-width: 760px;
    margin: 0 auto;
    padding-block: 4rem;
}

.single-post__header {
    margin-bottom: 2.5rem;
}

.single-post__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.single-post__meta {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.single-post__thumb {
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.single-post__thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.single-post__body {
    color: var(--text-muted);
    line-height: 1.8;
}

.single-post__body h2,
.single-post__body h3 {
    color: var(--text-primary);
    font-weight: 700;
    margin-block: 2rem 0.75rem;
}

.single-post__body p { margin-bottom: 1.25rem; }
.single-post__body ul,
.single-post__body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }

/* ── Archive ─────────────────────────────────────────────────── */
.archive-header {
    padding-block: 3rem 2rem;
}

.archive-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.posts-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition-card);
}

.post-card:hover {
    border-color: var(--border-cyan);
    transform: translateY(-4px);
}

.post-card__thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-card__body {
    padding: 1.5rem;
}

.post-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-card__title a:hover { color: var(--accent-cyan); }

.post-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.post-card__date {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin-top: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 3rem;
}

.pagination .page-numbers {
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}

/* ── Fallback nav function ───────────────────────────────────── */

/* ── Responsive breakpoints ──────────────────────────────────── */
@media (min-width: 640px) {
    :root { --container-pad: 2rem; }
    .category-cards { grid-template-columns: 1fr 1fr; }
    .posts-grid     { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .products-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid     { grid-template-columns: 1fr 1fr; }
    .arch-cards    { grid-template-columns: 1fr 1fr; }
    .footer-inner  { flex-direction: row; justify-content: space-between; text-align: left; }
    .footer-cta    { padding: 3.5rem; }
}

@media (min-width: 1024px) {
    :root { --container-pad: 2.5rem; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-grid     { grid-template-columns: repeat(3, 1fr); }
    .arch-cards    { grid-template-columns: repeat(4, 1fr); }
    .posts-grid    { grid-template-columns: repeat(3, 1fr); }
}

/* ── Single product page ─────────────────────────────────────── */
.single-product-page {
    padding-block: 4rem;
}

.sp-header {
    margin-bottom: 2.5rem;
}

.sp-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.sp-layout {
    display: grid;
    gap: 3rem;
}

.sp-description {
    margin-top: 2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.sp-description h2,
.sp-description h3 { color: var(--text-primary); font-weight: 700; margin-block: 1.5rem 0.5rem; }
.sp-description p  { margin-bottom: 1.25rem; }
.sp-description ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }

.sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sp-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-cyan);
}

.sp-short-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
}

/* ── Resources block (Documentation + What's new) ─────────── */
.sp-resources {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.sp-resources__title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.sp-resources__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.sp-resources__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.sp-resources__link:hover {
    color: var(--accent-cyan);
    gap: 0.75rem;
}

.sp-requirements {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.25rem;
}

.sp-requirements__title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.sp-requirements__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.sp-requirements__list li::before {
    content: '✓ ';
    color: var(--accent-cyan);
}

@media (min-width: 768px) {
    .sp-layout { grid-template-columns: 1fr 1fr; }
}

/* ── Scroll fade-in ──────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: none;
}

/* ── Header scrolled state ───────────────────────────────────── */
.site-header.is-scrolled {
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

/* ── Footer legal bar ────────────────────────────────────────── */
.footer-legal {
    background: rgba(0,0,0,0.35);
    border-top: 1px solid var(--border);
    padding-block: 1.125rem;
    text-align: center;
}

.footer-legal__inner {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.footer-legal__hours {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-legal__hours strong {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-legal__complaints {
    font-size: 0.8125rem;
    color: var(--text-dim);
}

.footer-legal__complaints a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.footer-legal__complaints a:hover {
    opacity: 0.8;
}

.footer-legal__copy {
    font-size: 0.8125rem;
    color: var(--text-dim);
}

/* ── Footer legal bar ────────────────────────────────────────── */
.footer-legal {
    border-top: 1px solid var(--border);
    padding-block: 1.25rem;
}

.footer-legal__inner {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    align-items: center;
    text-align: center;
}

.footer-legal__hours {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-legal__complaints {
    font-size: 0.8125rem;
    color: var(--text-dim);
}

.footer-legal__complaints a {
    color: var(--accent-cyan);
    text-underline-offset: 2px;
}
.footer-legal__complaints a:hover {
    text-decoration: underline;
}

.footer-legal__copy {
    font-size: 0.8125rem;
    color: var(--text-dim);
}

@media (min-width: 768px) {
    .footer-legal__inner {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem 1.5rem;
        text-align: left;
    }
}

/* ── Mobile improvements ─────────────────────────────────────── */

/* Badge: allow wrap on small screens */
@media (max-width: 480px) {
    .badge { white-space: normal; }
}

/* Button: full width in hero on very small screens */
@media (max-width: 400px) {
    .hero__actions .btn--lg {
        width: 100%;
        justify-content: center;
    }
}

/* Footer CTA on mobile */
@media (max-width: 639px) {
    .footer-cta {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }
    .footer-cta__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Section padding on mobile */
@media (max-width: 639px) {
    .page-content       { padding-block: 2.5rem; }
    .single-post        { padding-block: 2.5rem; }
    .addons-section     { padding-block: 3rem; }
    .blog-section       { padding-block: 3rem; }
    .footer-cta-section { padding-block: 3rem; }
    .site-footer        { padding-block: 1.75rem; }
}

/* Product card padding on very small screens */
@media (max-width: 479px) {
    .product-card { padding: 1.25rem; }
    .blog-card__body { padding: 1.125rem; }
    .arch-card    { padding: 1.125rem; }
}

/* Single product layout: stack on mobile */
@media (max-width: 639px) {
    .sp-title  { letter-spacing: -0.02em; }
    .sp-price  { font-size: 2rem; }
    .single-product-page { padding-block: 2.5rem; }
}

/* ── Footer legal links nav ──────────────────────────────────── */
.footer-legal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    justify-content: center;
}

.footer-legal__links a {
    font-size: 0.8125rem;
    color: var(--text-dim);
    transition: color 0.2s ease;
}

.footer-legal__links a:hover {
    color: var(--accent-cyan);
}

@media (min-width: 768px) {
    .footer-legal__links {
        justify-content: flex-start;
    }
}

/* На 1024px-1280px сжимаем gap чтобы влезли все пункты */
@media (min-width: 1024px) and (max-width: 1279px) {
    .nav-list { gap: 1.1rem; }
    .nav-list li a { font-size: 0.8125rem; }
    .nav-inner { gap: 1rem; }
}




/* ================================================================
   Consolidated responsive overrides  v1.1.3
   ================================================================ */

/* ── Nav logo ────────────────────────────────────────────────── */
.nav-logo__img {
    display: block;
    height: 62px;
    width: auto;
    object-fit: contain;
}

.nav-list li a { white-space: nowrap; }

@media (min-width: 1024px) and (max-width: 1279px) {
    .nav-list { gap: 1.1rem; }
    .nav-list li a { font-size: 0.8125rem; }
    .nav-inner { gap: 1rem; }
}

@media (max-width: 640px) {
    .nav-logo__img { height: 50px; }
}
@media (max-width: 400px) {
    .nav-logo__img { height: 42px; }
    .hero__actions .btn--lg { width: 100%; justify-content: center; }
}

/* ── Documentation index cards ─────────────────────────────── */
.doc-index-card {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}
.doc-index-card:last-of-type { border-bottom: none; }
.doc-index-card h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.doc-index-card h3 a {
    color: var(--accent-cyan);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}
.doc-index-card h3 a:hover { opacity: 0.75; text-decoration: underline; }

a.doc-link {
    color: #818cf8;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(129,140,248,0.35);
    transition: color 0.2s, border-color 0.2s;
}
a.doc-link:hover { color: #a5b4fc; border-color: rgba(165,180,252,0.6); }

/* ── Breadcrumbs ─────────────────────────────────────────────── */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}
.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--accent-cyan); }
.breadcrumbs__sep { color: var(--text-dim); user-select: none; }
.breadcrumbs__current {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 28ch;
}

/* ── Blog home: category sections ───────────────────────────── */
.archive-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    max-width: 620px;
}
.blog-cat-section { margin-bottom: 3rem; }
.blog-cat-header  { margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.blog-cat-title   { font-size: 1.375rem; font-weight: 700; }
.blog-cat-title a { color: var(--accent-cyan); text-decoration: none; transition: opacity 0.2s; }
.blog-cat-title a:hover { opacity: 0.75; }
.blog-cat-desc    { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.4rem; }

.post-card__cat-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

/* ── Fix text clipping at rounded corners ────────────────────── */
/* 30px radius needs horizontal padding > 30*(1-cos45°) ≈ 9px   */
/* We use 1.75rem (28px) to be safe on all sides                 */
.blog-card__body { padding: 1.5rem 1.75rem; }
.post-card__body { padding: 1.5rem 1.75rem; }

@media (max-width: 767px) {
    .blog-card__body { padding: 1.25rem 1.375rem; }
    .post-card__body { padding: 1.25rem 1.375rem; }
}

/* ── Blog main page: category cards ─────────────────────────── */
.blog-cat-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 3.5rem;
}
@media (min-width: 640px) {
    .blog-cat-cards { grid-template-columns: 1fr 1fr; }
}
.blog-cat-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-card);
}
.blog-cat-card:hover {
    border-color: var(--border-cyan);
    background: rgba(255,255,255,0.05);
    transform: translateY(-3px);
}
.blog-cat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-icon);
    border: 1px solid var(--border-cyan);
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
}
.blog-cat-card__body { flex: 1; min-width: 0; }
.blog-cat-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.blog-cat-card__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.blog-cat-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}
.blog-cat-card__count {
    font-size: 0.8125rem;
    color: var(--text-dim);
    white-space: nowrap;
}
.blog-cat-card__arrow {
    font-size: 1.25rem;
    color: var(--accent-cyan);
    transition: transform 0.2s;
}
.blog-cat-card:hover .blog-cat-card__arrow { transform: translateX(4px); }

/* ── Blog recent section ─────────────────────────────────────── */
.blog-recent__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* ── Category archive: products section ─────────────────────── */
.cat-products {
    margin-bottom: 3rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}
.cat-products__title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}
.cat-products__grid {
    display: grid;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .cat-products__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .cat-products__grid { grid-template-columns: repeat(3, 1fr); }
}
.cat-product-card {
    display: block;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.cat-product-card:hover {
    border-color: var(--border-cyan);
    background: rgba(34,211,238,0.04);
}
.cat-product-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.cat-product-card__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent-cyan);
}
.cat-product-card__tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255,255,255,0.07);
    color: var(--text-muted);
    white-space: nowrap;
}
.cat-product-card__tag--free {
    background: rgba(34,211,238,0.12);
    color: var(--accent-cyan);
}
.cat-product-card__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ── Category archive: articles section ─────────────────────── */
.cat-articles__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* ── Homepage product category sections ─────────────────────── */
.products-cat-section { margin-bottom: 2.5rem; }
.products-cat-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.products-cat-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.products-cat-link {
    font-size: 0.875rem;
    color: var(--accent-cyan);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.products-cat-link:hover { opacity: 0.75; }

/* Software section: single card, wider layout */
.products-grid--software { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .products-grid--software { grid-template-columns: minmax(0, 480px); }
}

/* ── Blog post CTA link ──────────────────────────────────────── */
.blog-post-cta {
    color: #4ade80;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(74,222,128,0.35);
    transition: color 0.2s, border-color 0.2s;
}
.blog-post-cta:hover {
    color: #86efac;
    border-bottom-color: rgba(134,239,172,0.55);
}

/* ── Shop sort pills (archive-product.php) ──────────────────── */
.shop-archive { padding-block: 3.5rem; }
.shop-header  { margin-bottom: 2rem; }

.shop-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}
.shop-sort__label {
    font-size: 0.875rem;
    color: var(--text-dim);
    flex-shrink: 0;
}
.shop-sort__pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.shop-sort__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1.125rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.shop-sort__pill:hover {
    border-color: var(--border-cyan);
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
}
.shop-sort__pill.is-active {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ── Cat products: header row ───────────────────────────────── */
.cat-products__header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.cat-products__hint {
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin: 0;
}

/* ── Cat product card as button (filter mode) ───────────────── */
button.cat-product-card {
    cursor: pointer;
    text-align: left;
    width: 100%;
    font: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
button.cat-product-card:hover {
    border-color: var(--border-cyan);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}
button.cat-product-card.is-active {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
}
button.cat-product-card.is-active .cat-product-card__name {
    color: var(--accent-cyan);
}

/* "All" card smaller */
.cat-product-card--all { opacity: 0.8; }
.cat-product-card--all.is-active { opacity: 1; }

/* View product link inside button card */
.cat-product-card__view-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--accent-cyan);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.cat-product-card__view-link:hover { opacity: 1; text-decoration: underline; }

/* Post card hidden by filter */
.post-card[style*="display: none"] { display: none !important; }

.posts-empty {
    color: var(--text-dim);
    font-size: 0.9375rem;
    padding: 1.5rem 0;
}

/* ==================================================================
   COMING SOON + NOTIFY-ME
================================================================== */

/* Coming-soon label on card and single page */
.product-card__price--soon,
.sp-price--soon {
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.product-card__price--soon {
    font-size: 0.9375rem;
}

.sp-price--soon {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Notify-me block on single product page */
.sp-notify {
    background: rgba(34, 211, 238, 0.04);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    margin: 0.5rem 0 1.5rem;
}

.sp-notify__head { margin-bottom: 1.25rem; }

.sp-notify__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.sp-notify__sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.sp-notify__form { display: flex; flex-direction: column; gap: 0.9rem; }

.sp-notify__field { display: flex; flex-direction: column; gap: 0.4rem; }

.sp-notify__label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sp-notify__req { color: var(--accent-cyan); }
.sp-notify__opt { color: var(--text-dim); font-weight: 400; }

.sp-notify__form input[type="text"],
.sp-notify__form input[type="email"],
.sp-notify__form textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.9375rem;
    padding: 0.7rem 0.9rem;
    width: 100%;
    transition: border-color 0.2s, background 0.2s;
}

.sp-notify__form textarea {
    resize: vertical;
    min-height: 4.5rem;
    line-height: 1.5;
}

.sp-notify__form input:focus,
.sp-notify__form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.06);
}

.sp-notify__form input:disabled,
.sp-notify__form textarea:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Honeypot — visually hidden but accessible */
.sp-notify__hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
}

.sp-notify__submit {
    align-self: flex-start;
    margin-top: 0.25rem;
}

.sp-notify__msg {
    display: none;
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 0.65rem 0.8rem;
    border-radius: var(--radius-btn);
    align-items: flex-start;
    gap: 0.5rem;
}

.sp-notify__msg.is-success,
.sp-notify__msg.is-error {
    display: flex;
}

.sp-notify__msg.is-success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.sp-notify__msg.is-success svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #4ade80;
}

.sp-notify__msg.is-error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.sp-notify.is-done .sp-notify__submit { display: none; }

/* =============================================================
   Cookie Notice
   ============================================================= */
#cookie-notice {
    background: rgba(6, 7, 11, 0.96) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cookie-notice-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 14px 24px;
    max-width: 1200px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.62) !important;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#cn-notice-text {
    flex: 1;
    min-width: 200px;
}

#cn-notice-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* All plugin buttons — reset */
#cookie-notice .cn-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: var(--radius-btn, 16px);
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

#cookie-notice .cn-button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Accept — filled cyan */
#cn-accept-cookie {
    background: var(--accent-cyan, #22d3ee) !important;
    color: #06070b !important;
}

/* Decline — ghost */
#cn-refuse-cookie {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.62) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

#cn-refuse-cookie:hover {
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
}

/* Privacy Policy — link style */
#cn-more-info {
    background: transparent !important;
    color: var(--accent-cyan, #22d3ee) !important;
    padding: 8px 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Close X icon */
#cn-close-notice {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 18px;
    padding: 4px 8px;
    border: none;
    cursor: pointer;
}

@media (max-width: 600px) {
    .cookie-notice-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    #cn-notice-buttons {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* ==================================================================
   SUPPORT CONTACT FORM
   ================================================================== */
.support-form-container {
    margin-top: 3.5rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.support-form-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.support-form-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.support-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .support-form-container {
        padding: 1.75rem;
        margin-top: 2.5rem;
    }
    .support-form__row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.support-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.support-form__req {
    color: var(--accent-cyan);
}

.support-form__opt {
    color: var(--text-dim);
    text-transform: lowercase;
}

.support-form input[type="text"],
.support-form input[type="email"],
.support-form textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1.125rem;
    color: var(--text-primary);
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.support-form input[type="text"]:focus,
.support-form input[type="email"]:focus,
.support-form textarea:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.15);
    outline: none;
}

.support-form__submit {
    align-self: flex-start;
    padding: 0.875rem 2rem;
}

.support-form__msg {
    font-size: 0.9375rem;
    line-height: 1.6;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.support-form__msg.is-success {
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.15);
    padding: 1rem 1.25rem;
}

.support-form__msg.is-error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.05);
    border: 1px solid rgba(248, 113, 113, 0.15);
    padding: 1rem 1.25rem;
}

.support-form.is-done input,
.support-form.is-done textarea,
.support-form.is-done button {
    opacity: 0.5;
}

.support-form__field--checkbox {
    margin-block: 0.5rem;
}

.support-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.support-form__checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: var(--accent-cyan);
}

.support-form__checkbox-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.support-form__checkbox-text a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.support-form__checkbox-text a:hover {
    opacity: 0.8;
}

/* Global Mobile safety reset & Page adaptations */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

img, video, iframe, table, form, input, select, textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 480px) {
    .btn-mobile-nav {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        height: 30px !important;
    }
    .nav-actions-mobile {
        gap: 4px !important;
        margin-right: 6px !important;
    }
    .nav-logo__img {
        max-width: 120px !important;
        height: auto !important;
    }
    .nav-burger {
        width: 36px !important;
        height: 36px !important;
        padding: 8px !important;
        gap: 4px !important;
    }
    .nav-burger span {
        width: 18px !important;
    }
    .nav-burger span:nth-child(2) {
        width: 12px !important;
    }
    .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
