/**
 * GNOZIS BUNDLED MAIN CSS (Audited & Optimized)
 */

/* ==========================================================================
   FILE: tokens/variables.css
   ========================================================================== */
﻿/**
 * GNOZIS DESIGN SYSTEM — DESIGN TOKENS
 * Occult Tech / Cyber-Mysticism / Steel Abyss
 * All variables, color palettes, fonts, and elevations.
 */

:root {
    /* 1. BACKGROUND PALETTE (Steel Abyss & Void) */
    --bg-void:                  #001020;
    --bg-deep:                  #101820;
    --bg-base:                  #101020;
    --bg-surface:               #152030;
    --bg-card:                  #1A2B3C;
    --bg-card-alt:              #1A1A2E;
    --bg-elevated:              #203040;
    --bg-dark-surface:          #102030;
    --bg-input:                 #1E2E3E;
    --bg-input-focus:           #243444;
    --bg-glass:                 rgba(20, 32, 48, 0.82);
    --bg-overlay:               rgba(0, 10, 20, 0.85);

    /* 2. BORDERS & DIVIDERS */
    --border-subtle:            rgba(96, 120, 144, 0.15);
    --border-default:           #304050;
    --border-card:              #2A3B4C;
    --border-input:             #405060;
    --border-hover:             #607890;
    --border-active:            #7898B8;
    --border-muted:             rgba(64, 80, 96, 0.35);

    /* 3. ACCENTS & NEON GLOWS (Steel-Blue & Cyber-Mystic) */
    --accent-primary:           #607890;
    --accent-bright:            #7898B8;
    --accent-dim:               #4A6070;
    --accent-subtle:            #506070;
    --accent-glow:              rgba(96, 120, 144, 0.18);
    --accent-glow-strong:       rgba(96, 120, 144, 0.28);
    --accent-fill-soft:         rgba(96, 120, 144, 0.10);
    --accent-fill-medium:       rgba(96, 120, 144, 0.18);
    --accent-cyan:              #38bdf8;
    --accent-cyan-glow:         rgba(56, 189, 248, 0.25);
    --accent-emerald:           #10b981;
    --accent-amber:             #f59e0b;
    --accent-rose:              #f43f5e;
    --accent-violet:            #8b5cf6;

    /* 4. TYPOGRAPHY & FONTS */
    --font-heading:             'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body:                'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono:                'JetBrains Mono', 'Fira Code', monospace;

    /* 5. TEXT COLORS */
    --text-primary:             #E0E8F0;
    --text-secondary:           #A0B0C0;
    --text-muted:               #708090;
    --text-disabled:            #506070;
    --text-accent:              #7898B8;

    /* 6. SHADOWS & ELEVATION */
    --shadow-xs:                0 2px 8px rgba(0, 0, 0, 0.40);
    --shadow-card:              0 4px 20px -4px rgba(0, 0, 0, 0.55);
    --shadow-card-elevated:     0 16px 40px -12px rgba(0,0,0,0.80), 0 0 1px 1px rgba(255,255,255,0.04);
    --shadow-modal:             0 24px 64px -12px rgba(0, 0, 0, 0.90);

    /* 7. RADII & SHAPES */
    --radius-xs:                4px;
    --radius-sm:                8px;
    --radius-md:                12px;
    --radius-lg:                16px;
    --radius-xl:                20px;
    --radius-full:              9999px;

    /* 8. TRANSITIONS */
    --transition-fast:          150ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base:          220ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth:        350ms cubic-bezier(0.16, 1, 0.3, 1);

    /* 9. Z-INDEX SCALE */
    --z-base:                   1;
    --z-dropdown:               50;
    --z-sticky:                 100;
    --z-fixed-nav:              200;
    --z-popover:                500;
    --z-modal-backdrop:         900;
    --z-modal:                  1000;
    --z-toast:                  2000;
    --z-floating-bar:           999999;

    /* 10. LEGACY THEME ALIASES (100% Backwards Compatibility) */
    --gnozis-bg-void:           var(--bg-void);
    --gnozis-bg-deep:           var(--bg-deep);
    --gnozis-bg-surface:        var(--bg-surface);
    --gnozis-bg-card:           var(--bg-glass);
    --gnozis-bg-input:          var(--bg-input);
    --gnozis-text-primary:      var(--text-primary);
    --gnozis-text-secondary:    var(--text-secondary);
    --gnozis-text-muted:        var(--text-muted);
    --gnozis-font-heading:      var(--font-heading);
    --gnozis-font-body:         var(--font-body);
}

/* ==========================================================================
   FILE: base/reset.css
   ========================================================================== */
/* ==========================================================================
   ГНОЗИС: Master Stylesheet (Occult Tech / Cyber-Mysticism Design System)
   Естетика: Linear / Vercel / Raycast Dark Mode
   ========================================================================== */

/* 1. Скидання та глобальні стилі */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
html.admin-bar,
body,
body.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#wpadminbar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 120, 144, 0.45) #080c14;
}

/* Єдиний сакральний скролбар для всієї платформи */
html::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html::-webkit-scrollbar-track {
    background: #080c14;
}

html::-webkit-scrollbar-thumb {
    background: rgba(96, 120, 144, 0.35);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.55);
}

body.gnozis-dark-mode {
    background-color: var(--bg-deep);
    color: var(--gnozis-text-secondary);
    font-family: var(--gnozis-font-body);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
    position: relative;
}

/* Оптимізація медіа та співвідношення сторін для усунення Cumulative Layout Shift (CLS) */
img {
    max-width: 100%;
    height: auto;
    content-visibility: auto;
}

.user-avatar,
.fb-user-avatar-img,
.fb-dropdown-avatar-img,
.composer-avatar,
.profile-avatar-img,
.dialog-avatar,
.member-avatar,
.chats-item-avatar,
.mini-chat-avatar,
.mentor-avatar {
    aspect-ratio: 1 / 1;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--gnozis-transition);
}

a:hover {
    color: #7dd3fc;
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--gnozis-font-heading);
    color: var(--gnozis-text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* 2. Космічний сакральний фон та містичні аури */
.gnozis-ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gnozis-ambient-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.glow-top-left {
    top: -250px;
    left: -200px;
    width: 800px;
    height: 800px;
    /* Subtle cobalt ambient — Deep Abyss */
    background: radial-gradient(circle, rgba(96, 120, 144, 0.12) 0%, rgba(16, 24, 32, 0) 70%);
    filter: blur(140px);
}

.glow-bottom-right {
    bottom: -200px;
    right: -200px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(120, 152, 184, 0.08) 0%, rgba(0, 16, 32, 0) 70%);
    filter: blur(140px);
}

.gnozis-constellation-layer {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.35;
}

.gnozis-page-shell {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 28px 80px;
}

/* 3. Універсальні компоненти карток та кнопок */
.gnozis-card {
    background: var(--gnozis-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-lg);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: var(--gnozis-transition);
}

.gnozis-card:hover {
    border-color: var(--border-hover);
    background: var(--gnozis-bg-card-hover);
}

/* Primary CTA — Steel Blue #607890 (мат, без neon) */
.btn-gradient-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-primary);
    color: var(--text-primary) !important;
    font-family: var(--gnozis-font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--gnozis-radius-md);
    border: 1px solid rgba(96, 120, 144, 0.55);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.40);
    transition: var(--gnozis-transition);
    letter-spacing: 0.01em;
}

.btn-gradient-primary:hover {
    background: var(--accent-bright);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.50);
    transform: translateY(-1px);
}

.btn-gradient-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.40);
}

/* Secondary CTA — outlined steel border + frosted text */
.btn-outline-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(26, 43, 60, 0.50);
    color: var(--text-secondary) !important;
    font-family: var(--gnozis-font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--gnozis-radius-md);
    border: 1px solid var(--border-input);
    cursor: pointer;
    transition: var(--gnozis-transition);
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.btn-outline-glass:hover {
    background: rgba(96, 120, 144, 0.10);
    border-color: var(--border-hover);
    color: var(--text-primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.30);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

/* 4. Адаптивна 3-колонкова архітектура макета */
.gnozis-layout-3col {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: start;
}

.gnozis-col-left {
    position: sticky;
    top: 76px;
}

.gnozis-col-right {
    position: sticky;
    top: 76px;
}

.gnozis-sidebar-card {
    background: var(--gnozis-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-lg);
    box-shadow: var(--shadow-card);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================================
   FILE: base/responsive.css
   ========================================================================== */
/* ==========================================================================
   10. МОБІЛЬНІ ЕЛЕМЕНТИ ТА АДАПТИВНІСТЬ (Responsive Design)
   ========================================================================== */

.gnozis-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(16, 24, 32, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gnozis-border-card);
    position: sticky;
    top: 0;
    z-index: 50;
}

.gnozis-mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gnozis-text-primary);
    font-weight: 700;
}

.gnozis-mobile-brand .gnozis-brand-symbol {
    color: var(--accent-cyan);
}

.gnozis-mobile-toggle {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--gnozis-text-primary);
    border-radius: 2px;
}

.btn-drawer-cart-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-full);
    padding: 6px 12px;
    color: var(--gnozis-text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.cart-badge {
    background: var(--accent-cyan);
    color: #101820;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
}

.gnozis-mobile-bottom-nav {
    display: none;
}

/* Рекомендований товар у мобільній стрічці (Featured Artifact Post) */
.gnozis-mobile-promoted-post,
.gnozis-post-card.gnozis-mobile-promoted-post,
article.gnozis-mobile-promoted-post {
    display: none !important;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(20, 29, 47, 0.98) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.08);
    position: relative;
    overflow: hidden;
}

.gnozis-mobile-promoted-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
}

.gnozis-mobile-promoted-post .promoted-product-media-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.gnozis-mobile-promoted-post .promoted-product-media-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

/* Медіа-запити адаптивності */
@media (min-width: 769px) {
    .gnozis-mobile-bottom-nav {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .gnozis-mobile-promoted-post,
    .gnozis-post-card.gnozis-mobile-promoted-post,
    article.gnozis-mobile-promoted-post {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .gnozis-layout-3col {
        grid-template-columns: 240px minmax(0, 1fr) 310px;
        gap: 18px;
    }
}

@media (max-width: 1024px) {
    .gnozis-layout-3col {
        grid-template-columns: minmax(0, 1fr);
    }
    .gnozis-col-left,
    .gnozis-col-right {
        display: none !important;
    }
    .gnozis-mobile-header {
        display: flex;
    }
    .gnozis-mobile-promoted-post,
    .gnozis-post-card.gnozis-mobile-promoted-post,
    article.gnozis-mobile-promoted-post {
        display: flex !important;
        flex-direction: column !important;
    }
    .gnozis-page-shell {
        padding-bottom: 75px;
    }
}

@media (max-width: 900px) {
    .gnozis-shop-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 16px !important;
    }
    .gnozis-shop-filters {
        position: static !important;
        width: 100% !important;
    }
    .gnozis-product-hero {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .gnozis-layout-3col {
        grid-template-columns: 1fr;
    }
    .gnozis-col-right {
        position: static;
    }
    .gnozis-page-shell {
        padding: 8px 6px calc(80px + env(safe-area-inset-bottom, 0px)) 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .gnozis-subpage-viewport,
    .gnozis-profile-viewport,
    .single-group-viewport {
        padding: 4px 0 80px !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    .gnozis-subpage-2col-layout,
    .profile-2col-layout {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .subpage-side-col,
    .profile-side-col {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* ==========================================================================
   30. Комплексна оптимізація мобільної версії (GNOZIS Mobile Suite)
   Підтримка екранів < 992px, < 768px, < 480px, < 360px
   ========================================================================== */

/* Глобальні налаштування для тач-пристроїв */
@media (max-width: 992px) {
    *, *::before, *::after {
        -webkit-tap-highlight-color: transparent;
    }

    button, a, input, select, textarea {
        touch-action: manipulation;
    }

    /* Запобігання автозуму на iOS для полів вводу */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Адаптивна розмітка сторінки */
    .gnozis-page-shell {
        padding: 10px 6px calc(80px + env(safe-area-inset-bottom, 0px)) 6px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* 3-колонкова стрічка (gnozis-layout-3col) -> в 1 чисту центральну колонку */
    .gnozis-layout-3col,
    .gnozis-stream-layout,
    .stream-grid-layout,
    .gnozis-columns-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Приховуємо дублюючий лівий сайдбар на планшетах і мобільних (навігація вже є в topbar/bottombar) */
    .gnozis-layout-3col .gnozis-col-left,
    .gnozis-col-left,
    .stream-sidebar-left {
        display: none !important;
    }

    .gnozis-layout-3col .gnozis-col-center,
    .gnozis-col-center,
    .stream-feed-center {
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important;
    }

    .gnozis-layout-3col .gnozis-col-right,
    .gnozis-col-right,
    .stream-sidebar-right {
        width: 100% !important;
        max-width: 100% !important;
        order: 2 !important;
        position: static !important;
        margin-top: 14px !important;
    }

    /* Сітка магазину на планшетах (3 колонки) */
    .products-grid,
    .woocommerce ul.products,
    .gnozis-shop-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
}

/* ==========================================================================
   Мобільні пристрої (< 768px) - Стиль нативного додатка (Native App UX)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Стрічка новин: приховуємо правий сайдбар на мобільних для чистоти стрічки */
    .gnozis-layout-3col .gnozis-col-right,
    .gnozis-col-right,
    .stream-sidebar-right {
        display: none !important;
    }

    /* 2. Верхній бар (Topbar) */
    .gnozis-fb-topbar {
        position: sticky !important;
        top: 0 !important;
        height: 54px !important;
    }

    .fb-topbar-inner {
        padding: 0 10px !important;
        justify-content: space-between !important;
    }

    .fb-topbar-left {
        gap: 8px !important;
    }

    .fb-brand-circle {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.15rem !important;
    }

    /* 3. Приховуємо десктопні вкладки у шапці на мобільних */
    .fb-topbar-center {
        display: none !important;
    }

    /* 4. Кнопки швидких дій праворуч (Кошик, Чат, Сповіщення, Профіль) */
    .fb-topbar-right {
        gap: 6px !important;
    }

    .fb-round-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .fb-round-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .fb-avatar-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .fb-avatar-frame {
        width: 36px !important;
        height: 36px !important;
    }

    .fb-avatar-arrow-badge {
        display: none !important;
    }

    .fb-profile-dropdown-menu {
        top: 100% !important;
        margin-top: 8px !important;
        right: 4px !important;
        width: calc(100vw - 20px) !important;
        max-width: 320px !important;
        max-height: calc(100vh - 72px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        border-radius: 16px !important;
    }

    .gnozis-lang-topbar-popover {
        top: 100% !important;
        margin-top: 8px !important;
        right: 0 !important;
        width: 190px !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 72px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
    }

    /* 5. Блок створення нового допису (Post Composer) на мобільних */
    .gnozis-composer-card {
        padding: 12px 14px !important;
        border-radius: 16px !important;
        margin-bottom: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .composer-top {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .composer-avatar-wrap {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }

    .composer-textarea {
        font-size: 16px !important;
        min-height: 48px !important;
        padding: 8px 12px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .composer-bottom {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 10px !important;
    }

    .composer-tools {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        width: 100% !important;
        padding-bottom: 3px !important;
    }

    .composer-tools::-webkit-scrollbar {
        display: none !important;
    }

    .composer-tool-btn {
        padding: 6px 10px !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .composer-destination-select-wrap {
        flex: 1 !important;
        min-width: 120px !important;
    }

    .composer-destination-select {
        width: 100% !important;
        font-size: 0.78rem !important;
        padding: 6px 8px !important;
        border-radius: 8px !important;
    }

    .btn-publish-post,
    .btn-publish-wall-post {
        width: 100% !important;
        padding: 10px !important;
        font-size: 0.88rem !important;
        justify-content: center !important;
        border-radius: 10px !important;
    }

    /* 6. Вкладки фільтрації Стрічки (Horizontal Swipe) */
    .gnozis-feed-filter-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding: 4px 2px 10px 2px !important;
        scrollbar-width: none !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }

    .gnozis-feed-filter-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .feed-tab-btn {
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        border-radius: 20px !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
    }

    /* 7. Картки дописів у стрічці (Gnozis Post Cards) - Бездоганна адаптивність */
    .gnozis-feed-stream {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        gap: 12px !important;
    }

    .gnozis-post-card {
        padding: 12px 14px !important;
        border-radius: 16px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .post-card-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin-bottom: 10px !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .post-author-box {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    .author-avatar-wrap {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }

    .author-meta {
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    .author-name-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 4px 6px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .author-name {
        font-size: 0.92rem !important;
        margin: 0 !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 130px !important;
    }

    .group-target-pill {
        font-size: 0.72rem !important;
        max-width: 120px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    .group-target-pill a {
        display: inline-block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 100% !important;
    }

    .wall-target-name {
        max-width: 100px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-block !important;
    }

    .rank-badge {
        font-size: 0.60rem !important;
        padding: 2px 5px !important;
        border-radius: 5px !important;
        flex-shrink: 0 !important;
    }

    .post-time {
        font-size: 0.72rem !important;
        color: #94a3b8 !important;
        display: block !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .post-header-actions {
        flex-shrink: 0 !important;
    }

    .post-bookmark-btn {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .post-content {
        margin-bottom: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .post-text-body {
        font-size: 0.90rem !important;
        line-height: 1.55 !important;
        color: #e2e8f0 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .btn-post-read-more {
        margin-top: 8px;
        font-size: 0.86rem;
    }

    .post-media-frame {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 240px !important;
        box-sizing: border-box !important;
        margin-top: 10px !important;
    }

    .post-media-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* Опитування */
    .gnozis-poll-widget {
        margin-top: 10px !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .poll-option-row {
        padding: 8px 10px !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .poll-content-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 0.78rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .poll-content-inner .poll-text {
        flex: 1 !important;
        min-width: 0 !important;
        word-break: break-word !important;
    }

    .poll-content-inner .poll-stat {
        flex-shrink: 0 !important;
        font-size: 0.72rem !important;
    }

    /* Футер картки: 4 реакції сіткою + статистика */
    .post-card-footer {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .post-reactions-bar {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .reaction-pill-btn {
        width: 100% !important;
        padding: 5px 2px !important;
        font-size: 0.76rem !important;
        border-radius: 10px !important;
        min-height: 30px !important;
        gap: 3px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .reaction-emoji {
        font-size: 0.85rem !important;
    }

    .reaction-count {
        font-size: 0.72rem !important;
    }

    .post-stats-bar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding-top: 6px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
        box-sizing: border-box !important;
    }

    .post-stats-link {
        font-size: 0.76rem !important;
        gap: 4px !important;
    }

    /* 8. Сітка товарів у магазині (2 рівні акуратні колонки) */
    .products-grid,
    .woocommerce ul.products,
    .gnozis-shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-card,
    .woocommerce ul.products li.product {
        padding: 10px !important;
        border-radius: 12px !important;
    }

    .product-card-thumb,
    .woocommerce ul.products li.product img {
        border-radius: 8px !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
    }

    .product-card-title,
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin-top: 6px !important;
    }

    .product-card-price,
    .woocommerce ul.products li.product .price {
        font-size: 0.92rem !important;
        margin: 4px 0 8px 0 !important;
    }

    .product-card-actions .btn-buy-now,
    .product-card-actions .button,
    .woocommerce ul.products li.product .button {
        padding: 8px 6px !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* 9. Каталог користувачів / друзів (Members) */
    .members-grid-container {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .member-card {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .member-avatar-wrap {
        width: 48px !important;
        height: 48px !important;
    }

    /* 10. Каталог груп (Groups) */
    .groups-cards-grid,
    .groups-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .group-card {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    /* 11. Шапка профілю (Profile Header) */
    .profile-header-card {
        border-radius: 16px !important;
        overflow: hidden !important;
        margin-bottom: 16px !important;
    }

    .profile-cover-wrap {
        height: 130px !important;
    }

    .profile-header-content {
        padding: 0 14px 16px 14px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .profile-main-avatar-wrap {
        width: 76px !important;
        height: 76px !important;
        margin-top: -38px !important;
        border-width: 3px !important;
        margin-bottom: 8px !important;
    }

    .profile-header-titles {
        align-items: center !important;
    }

    .profile-display-name {
        font-size: 1.25rem !important;
    }

    .profile-meta-chips-wrap {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .profile-stats-bar {
        justify-content: center !important;
        gap: 16px !important;
        width: 100% !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .profile-header-actions {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 10px !important;
    }

    .profile-header-actions .btn {
        flex: 1 !important;
        justify-content: center !important;
    }

    /* Навігаційні вкладки профілю з горизонтальним скролом */
    .profile-nav-tabs-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 4px !important;
    }

    .profile-nav-tabs-wrap::-webkit-scrollbar {
        display: none !important;
    }

    .profile-nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        gap: 6px !important;
    }

    /* 12. Плаваючий рекомендований банер товару */
    .gnozis-recommended-shop-widget,
    .gnozis-floating-shop-widget {
        bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
        right: 10px !important;
        left: 10px !important;
        max-width: calc(100vw - 20px) !important;
        width: auto !important;
        border-radius: 14px !important;
        padding: 10px 12px !important;
        z-index: 998 !important;
    }

    .rec-widget-inner {
        gap: 10px !important;
    }

    .rec-widget-thumb {
        width: 44px !important;
        height: 44px !important;
        border-radius: 8px !important;
    }

    .rec-widget-title {
        font-size: 0.82rem !important;
        max-width: 140px !important;
    }

    .rec-widget-price {
        font-size: 0.85rem !important;
    }

    .rec-widget-btn {
        padding: 7px 12px !important;
        font-size: 0.78rem !important;
    }

    /* 13. Модальні вікна (Створення групи, Редагування профілю, Купівля в 1 клік) */
    .gnozis-modal-dialog,
    .modal-dialog-card,
    .group-modal-content,
    .gnozis-quick-buy-card {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: 86vh !important;
        border-radius: 18px !important;
        padding: 18px 16px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .modal-header h3 {
        font-size: 1.15rem !important;
    }

    /* 14. Висувний кошик (Cart Drawer) */
    .gnozis-cart-drawer {
        z-index: 1000005 !important;
    }

    .gnozis-cart-drawer-inner {
        width: 100% !important;
        max-width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .gnozis-drawer-header {
        padding: 14px 16px !important;
        flex-shrink: 0 !important;
    }

    .gnozis-drawer-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 14px 16px !important;
    }

    .gnozis-drawer-footer {
        flex-shrink: 0 !important;
        padding: 16px !important;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
        background: #111827 !important;
        border-top: 1px solid #1e293b !important;
    }

    .drawer-checkout-btn {
        padding: 14px 20px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   Екстра-малі екрани (< 380px)
   ========================================================================== */
@media (max-width: 380px) {
    .products-grid,
    .woocommerce ul.products,
    .gnozis-shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .product-card {
        padding: 8px !important;
    }

    .product-card-title {
        font-size: 0.78rem !important;
    }

    .rec-widget-title {
        max-width: 100px !important;
    }
}

/* =============================================================================
   MASTER RESPONSIVE & ANTI-OVERFLOW HARMONIZATION (ГЛОБАЛЬНИЙ ЗАХИСТ ВІД ЗЛІТАННЯ БЛОКІВ)
   ============================================================================= */

/* 1. Глобальний захист вікна перегляду та кореня */
html {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    position: relative !important;
    box-sizing: border-box !important;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

/* Універсальний захист від розриву довгих слів без пошкодження flex/grid розмітки */
p, h1, h2, h3, h4, h5, h6, blockquote, figcaption, .post-text, .comment-text, .user-bio-text {
    overflow-wrap: break-word;
    word-break: break-word;
}
a, span, li, td, th, label {
    overflow-wrap: break-word;
}

img, video, iframe, embed, object, canvas {
    max-width: 100% !important;
    height: auto;
}

svg:not([width]):not([height]) {
    max-width: 100%;
    height: auto;
}

pre, code, kbd, samp {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    max-width: 100% !important;
    overflow-x: auto !important;
}

table {
    max-width: 100% !important;
}

/* 2. Запобігання виходу карток та контейнерів за межі екрана (зі збереженням sticky і dropdowns) */
.gnozis-page-shell {
    width: 100% !important;
    max-width: 1440px !important;
    min-width: 0 !important;
    overflow-x: visible !important;
}

/* 3. Адаптація сіток та макетів для планшетів (до 992px) */
@media (max-width: 992px) {
    .gnozis-subpage-2col-layout,
    .profile-2col-layout,
    .gnozis-shop-layout,
    .gnozis-checkout-layout-grid,
    .gnozis-messages-card,
    .gnozis-product-hero,
    .gnozis-auth-card {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .subpage-side-col,
    .profile-side-col,
    .gnozis-col-left,
    .gnozis-col-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* 4. Адаптація для мобільних екранів (до 768px) */
@media (max-width: 768px) {
    .group-card-banner {
        height: 115px !important;
    }

    .gnozis-page-shell {
        padding-top: 8px !important;
        padding-bottom: 75px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .gnozis-subpage-viewport,
    .gnozis-profile-viewport,
    .gnozis-messages-viewport,
    .single-group-viewport,
    .gnozis-shop-container {
        padding-top: 0 !important;
        padding-bottom: 75px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .gnozis-layout-3col,
    .gnozis-stream-layout {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .stream-composer {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }

    /* Усі картки та контейнери адаптуються під повну ширину екрана */
    .gnozis-layout-3col,
    .gnozis-stream-layout,
    .gnozis-feed-column,
    .gnozis-col-center,
    .gnozis-card,
    .gnozis-post-card,
    .stream-composer,
    .profile-settings-card,
    .gnozis-product-summary,
    .gnozis-product-gallery-wrap,
    .gnozis-subpage-viewport,
    .gnozis-profile-viewport,
    .gnozis-messages-viewport,
    .checkout-step-card,
    .checkout-summary-card,
    .checkout-coupon-card,
    .filter-card,
    .member-card,
    .group-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Вкладки профілю: горизонтальний плавний скрол */
    .gnozis-profile-viewport {
        gap: 12px !important;
    }

    .profile-hero-card {
        margin-bottom: 0 !important;
    }

    .profile-avatar-row {
        margin-bottom: 0 !important;
    }

    .profile-hero-content {
        padding: 0 16px 14px !important;
    }

    .profile-2col-layout {
        gap: 12px !important;
    }

    .profile-tabs-nav {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        white-space: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 3px !important;
        gap: 4px !important;
        margin-bottom: 8px !important;
        border-radius: 12px !important;
    }

    .profile-tabs-nav::-webkit-scrollbar {
        display: none !important;
    }

    .profile-tab-btn {
        flex: 0 0 auto !important;
        padding: 6px 10px !important;
        font-size: 0.79rem !important;
        white-space: nowrap !important;
        gap: 5px !important;
        border-radius: 8px !important;
    }

    .profile-tab-btn .tab-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .profile-orders-header-bar {
        padding: 12px 14px !important;
    }

    .orders-count-badge {
        font-size: 0.74rem !important;
        padding: 3px 9px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Повідомлення та чат */
    .gnozis-messages-viewport {
        padding: 10px 0 80px !important;
        width: 100% !important;
    }

    .gnozis-messages-card {
        border-radius: 16px !important;
        height: auto !important;
        min-height: 500px !important;
        width: 100% !important;
    }

    /* Форми та сітки інпутів */
    .form-grid-2col,
    .gnozis-card-input-grid,
    .settings-form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* Каталог товарів */
    .products-grid,
    .woocommerce ul.products,
    .gnozis-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Каталог груп та користувачів */
    .members-grid-container,
    .groups-grid-container,
    .groups-catalog-grid,
    .members-catalog-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* Коментарі */
    .comment-item {
        width: 100% !important;
        min-width: 0 !important;
    }

    .comment-bubble {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .comment-footer-bar {
        gap: 4px 8px !important;
        flex-wrap: wrap !important;
    }

    .btn-reply-comment,
    .btn-comment-action-link {
        font-size: 0.72rem !important;
        padding: 2px 5px !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
    }

    .comment-author-name {
        white-space: nowrap !important;
        word-break: keep-all !important;
    }

    .comment-text {
        min-width: 0 !important;
        word-break: break-word !important;
    }

    /* Таблиці замовлень та кошика */
    .woocommerce-table,
    .shop_table,
    .shop_table_responsive {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Нативна фіксована нижня панель на мобільних */
    .fb-topbar-center {
        display: none !important;
    }

    .gnozis-mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: 58px !important;
        height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        background: rgba(11, 16, 27, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-bottom: none !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        z-index: 999999 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6) !important;
        user-select: none !important;
    }

    .mobile-bottom-tab {
        flex: 1 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        color: #64748b !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
        padding: 4px 0 !important;
    }

    .mobile-bottom-tab.active {
        color: #cbd5e1 !important;
    }

    .mobile-bottom-tab:hover {
        color: #94a3b8 !important;
    }

    .mobile-tab-icon-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-tab-icon-wrap svg {
        width: 22px !important;
        height: 22px !important;
        stroke: currentColor !important;
    }

    .mobile-bottom-tab.active .mobile-tab-icon-wrap svg {
        stroke: #cbd5e1 !important;
        filter: drop-shadow(0 0 4px rgba(203, 213, 225, 0.25)) !important;
    }

    .mobile-tab-label {
        font-size: 0.68rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.01em !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .mobile-bottom-tab.active .mobile-tab-label {
        font-weight: 600 !important;
        color: #cbd5e1 !important;
    }
}

/* 5. Екстра-малі мобільні екрани (до 480px) */
@media (max-width: 480px) {
    .gnozis-page-shell {
        padding-left: 4px !important;
        padding-right: 4px !important;
        padding-top: 6px !important;
    }

    .subpage-header-card {
        padding: 16px 12px !important;
        border-radius: 14px !important;
    }

    .subpage-main-title {
        font-size: 1.4rem !important;
    }

    .subpage-description {
        font-size: 0.86rem !important;
    }

    .members-search-toolbar {
        padding: 8px 10px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
    }

    .profile-hero-content {
        padding: 0 8px 16px !important;
    }

    .member-card {
        padding: 10px !important;
    }

    .products-grid,
    .woocommerce ul.products,
    .gnozis-shop-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .gnozis-post-card {
        padding: 10px 10px !important;
    }

    .author-name {
        max-width: 110px !important;
    }
}

/* ==========================================================================
   FILE: components/modals.css
   ========================================================================== */
/* ==========================================================================
   8. МОДАЛЬНЕ ВІКНО «КУПИТИ В 1 КЛІК» ТА DRAWER CART
   ========================================================================== */

.gnozis-modal {
    position: fixed;
    inset: 0;
    z-index: 1000010 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.gnozis-modal.open {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.gnozis-modal:not(.open) {
    display: none !important;
}

.gnozis-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1;
}

/* Modal dialog — cobalt border, very dark bg */
.gnozis-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #102030;
    border: 1px solid rgba(96, 120, 144, 0.35);
    border-radius: var(--gnozis-radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(96, 120, 144, 0.18);
    padding: 26px;
    margin: auto;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gnozis-modal.open .gnozis-modal-dialog {
    transform: translateY(0) scale(1);
}

.gnozis-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-sigil {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
}

.gnozis-modal-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 50 !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 50% !important;
    color: #e2e8f0 !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.gnozis-modal-close:hover {
    color: #ffffff !important;
    background: rgba(239, 68, 68, 0.3) !important;
    border-color: rgba(239, 68, 68, 0.65) !important;
    transform: rotate(90deg) scale(1.08) !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5) !important;
}

.gnozis-modal-close:active {
    transform: rotate(90deg) scale(0.95) !important;
}

.gnozis-modal-header,
.bug-report-header,
.report-modal-header,
.wall-publish-prompt-header {
    padding-right: 46px !important;
}

/* Modal product notice — cobalt */
.modal-product-notice {
    padding: 10px 14px;
    background: rgba(96, 120, 144, 0.12);
    border: 1px solid rgba(96, 120, 144, 0.32);
    border-radius: var(--gnozis-radius-md);
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.modal-product-notice .notice-label {
    font-size: 0.72rem;
    color: var(--gnozis-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-product-notice strong {
    font-size: 0.88rem;
    color: #C0D0E0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gnozis-text-secondary);
}

.gnozis-input-modal {
    width: 100%;
    background: rgba(16, 26, 38, 0.8);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-md);
    padding: 10px 14px;
    color: var(--gnozis-text-primary);
    font-family: var(--gnozis-font-body);
    font-size: 0.88rem;
    outline: none;
    transition: var(--gnozis-transition);
}

/* Modal input focus — cobalt */
.gnozis-input-modal:focus {
    border-color: rgba(96, 120, 144, 0.55);
    box-shadow: 0 0 12px rgba(96, 120, 144, 0.22);
}

/* Drawer Cart (Висувний кошик) */
.gnozis-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000005 !important;
    pointer-events: none;
    visibility: hidden;
    display: none;
    transition: visibility 0.25s ease;
}

.gnozis-cart-drawer.open {
    display: block !important;
    pointer-events: auto;
    visibility: visible;
}

.gnozis-cart-drawer:not(.open) {
    display: none !important;
}

.gnozis-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gnozis-cart-drawer.open .gnozis-drawer-overlay {
    opacity: 1;
}

/* Drawer panel — стильна висувна панель */
.gnozis-cart-drawer-inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: #0f172a;
    border-left: 1px solid #1e293b;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.gnozis-cart-drawer.open .gnozis-cart-drawer-inner {
    transform: translateX(0);
}

.gnozis-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #111827;
    border-bottom: 1px solid #1e293b;
}

.drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-sigil {
    font-size: 1.2rem;
}

.drawer-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.drawer-badge {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.gnozis-drawer-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.gnozis-drawer-close:hover {
    color: #f1f5f9;
    background: #1e293b;
}

.gnozis-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

.gnozis-drawer-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gnozis-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 10px;
    transition: border-color 0.15s ease;
}

.gnozis-drawer-item:hover {
    border-color: #334155;
}

.item-thumb {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background: #0b101b;
    border: 1px solid #1e293b;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-thumb img {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    object-fit: cover !important;
    display: block !important;
}

.item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-price {
    font-size: 0.84rem;
    font-weight: 600;
    color: #94a3b8;
}

.item-qty {
    font-size: 0.78rem;
    color: #64748b;
}

.btn-drawer-remove-item {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.btn-drawer-remove-item:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}

/* =========================================================================
   GNOZIS Quantity Stepper (+ / -) (Steel Abyss Aesthetic)
   ========================================================================= */
.gnozis-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #0B1420;
    border: 1px solid #1F3247;
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
    user-select: none;
    transition: var(--gnozis-transition, all 0.2s ease);
}

.gnozis-qty-stepper:hover {
    border-color: #2D4866;
}

.gnozis-qty-stepper.is-updating {
    opacity: 0.6;
    pointer-events: none;
}

.gnozis-qty-stepper .btn-qty-step {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #112033;
    border: 1px solid #1C2E42;
    color: #94A3B8;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 0;
}

.gnozis-qty-stepper .btn-qty-step:hover {
    background: #1A3250;
    color: #38BDF8;
    border-color: #38BDF8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

.gnozis-qty-stepper .btn-qty-step:active {
    transform: scale(0.92);
}

.gnozis-qty-stepper .qty-step-value {
    min-width: 20px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #F1F5F9;
    padding: 0 4px;
    font-variant-numeric: tabular-nums;
}

/* Степер на чекауті (Checkout Review Item) */
.review-item-meta-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.gnozis-checkout-qty-stepper {
    background: #09101A;
    border: 1px solid #1A2C3F;
}

.gnozis-checkout-qty-stepper .btn-qty-step {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
}

.gnozis-checkout-qty-stepper .qty-step-value {
    min-width: 18px;
    font-size: 0.78rem;
}

.btn-checkout-remove-item {
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-checkout-remove-item:hover {
    color: #F87171;
    background: rgba(239, 68, 68, 0.12);
}

.gnozis-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 200px;
    gap: 10px;
    color: #64748b;
}

.empty-sigil {
    font-size: 2.2rem;
}

.gnozis-drawer-empty h5 {
    color: #e2e8f0;
    font-size: 1rem;
    margin: 0;
}

.gnozis-drawer-empty p {
    font-size: 0.85rem;
    max-width: 260px;
    margin: 0 auto;
}

.gnozis-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #1e293b;
    background: #111827;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    color: #94a3b8;
}

.drawer-total-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
}

.drawer-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.drawer-checkout-btn:hover {
    background: #24344d;
    border-color: #475569;
    color: #ffffff;
}

/* ==========================================================================
   ПЛАВАЮЧА КНОПКА ЗВОРОТНОГО ЗВ'ЯЗКУ ТА БАГ-РЕПОРТУ
   ========================================================================== */
.btn-floating-bug-report {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    z-index: 99990 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 999px !important;
    color: #e2e8f0 !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 14px rgba(56, 189, 248, 0.18) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    cursor: pointer !important;
    user-select: none !important;
    outline: none !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease !important;
}

.btn-floating-bug-report:hover {
    background: rgba(15, 23, 42, 0.96) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 22px rgba(56, 189, 248, 0.45) !important;
}

.btn-floating-bug-report:active {
    transform: translateY(0) scale(0.98) !important;
}

.btn-floating-bug-report .bug-float-icon {
    font-size: 1rem !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.btn-floating-bug-report .bug-float-label {
    display: inline-block !important;
    white-space: nowrap !important;
}

/* На мобільних пристроях: кнопка піднімається над нижнім мобільним баром */
@media (max-width: 991px) {
    .btn-floating-bug-report {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
        left: 14px !important;
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .btn-floating-bug-report .bug-float-label {
        display: none !important;
    }

    .btn-floating-bug-report {
        padding: 9px !important;
        width: 38px !important;
        height: 38px !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
}



/* ==========================================================================
   GNOZIS CORE MODAL ENGINE, INPUTS, FORMS & ACTIONS
   ========================================================================== */

/* 1. Глобальний Z-index та безпечні стани модальних вікон Gnozis */
.gnozis-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000005 !important;
    padding: 60px 16px 24px !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.gnozis-modal.open,
.gnozis-modal.is-active,
.gnozis-modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.gnozis-modal:not(.open):not(.is-active):not(.active) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.gnozis-modal .gnozis-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(3, 7, 18, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 1 !important;
}

/* 2. Універсальні темні стилі для полів textarea та input у модалках */
.gnozis-textarea,
textarea.gnozis-textarea,
.gnozis-modal textarea,
.gnozis-modal-dialog textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(8, 14, 26, 0.92) !important;
    border: 1px solid rgba(56, 189, 248, 0.26) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    font-family: inherit !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    padding: 10px 14px !important;
    outline: none !important;
    resize: vertical !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.gnozis-textarea:focus,
textarea.gnozis-textarea:focus,
.gnozis-modal textarea:focus,
.gnozis-modal-dialog textarea:focus {
    background: rgba(10, 18, 34, 0.98) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.32), inset 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

.gnozis-textarea::placeholder,
textarea.gnozis-textarea::placeholder,
.gnozis-modal textarea::placeholder,
.gnozis-modal-dialog textarea::placeholder {
    color: rgba(148, 163, 184, 0.45) !important;
}

/* Інпути в модальних вікнах */
.gnozis-modal input.gnozis-input,
.gnozis-modal-dialog input.gnozis-input,
.gnozis-modal input[type="text"],
.gnozis-modal input[type="number"],
.gnozis-modal-dialog input[type="text"],
.gnozis-modal-dialog input[type="number"] {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(8, 14, 26, 0.92) !important;
    border: 1px solid rgba(56, 189, 248, 0.26) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    font-family: inherit !important;
    font-size: 0.88rem !important;
    padding: 9px 14px !important;
    outline: none !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.gnozis-modal input.gnozis-input:focus,
.gnozis-modal-dialog input.gnozis-input:focus,
.gnozis-modal input[type="text"]:focus,
.gnozis-modal input[type="number"]:focus,
.gnozis-modal-dialog input[type="text"]:focus,
.gnozis-modal-dialog input[type="number"]:focus {
    background: rgba(10, 18, 34, 0.98) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.32), inset 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

/* Селекти в модальних вікнах */
.gnozis-modal select.gnozis-select,
.gnozis-modal-dialog select.gnozis-select {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(8, 14, 26, 0.92) !important;
    border: 1px solid rgba(56, 189, 248, 0.26) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    font-family: inherit !important;
    font-size: 0.88rem !important;
    padding: 9px 14px !important;
    outline: none !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.gnozis-modal select.gnozis-select:focus,
.gnozis-modal-dialog select.gnozis-select:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3) !important;
}

/* 3. Шапки модалок (заголовок + підзаголовок без розриву слів та без flex-колонок) */
.gnozis-modal-shop-banner .gnozis-modal-header,
.gnozis-modal-product-editor .gnozis-modal-header,
#modal-add-product .gnozis-modal-header,
#gnozis-modal-edit-shop-banner .gnozis-modal-header,
.gnozis-modal-bug-report .gnozis-modal-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 6px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
}

.gnozis-modal-shop-banner .modal-title-wrap,
.gnozis-modal-product-editor .modal-title-wrap,
#modal-add-product .modal-title-wrap,
#gnozis-modal-edit-shop-banner .modal-title-wrap,
.gnozis-modal-bug-report .modal-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.gnozis-modal-shop-banner .gnozis-modal-title,
.gnozis-modal-product-editor .gnozis-modal-title,
#modal-add-product .gnozis-modal-title,
#gnozis-modal-edit-shop-banner .gnozis-modal-title,
.gnozis-modal-bug-report .gnozis-modal-title {
    font-size: 1.28rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    flex-grow: 1 !important;
}

.gnozis-modal-shop-banner .modal-sigil,
.gnozis-modal-product-editor .modal-sigil-icon,
#modal-add-product .modal-sigil-icon,
#gnozis-modal-edit-shop-banner .modal-sigil,
.gnozis-modal-bug-report .modal-sigil-icon {
    font-size: 1.4rem !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.gnozis-modal-shop-banner .gnozis-modal-subtitle,
.gnozis-modal-product-editor .gnozis-modal-subtitle,
#modal-add-product .gnozis-modal-subtitle,
#gnozis-modal-edit-shop-banner .gnozis-modal-subtitle,
.gnozis-modal-bug-report .gnozis-modal-subtitle {
    font-size: 0.84rem !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    line-height: 1.45 !important;
    width: 100% !important;
}

/* 4. Стилі діалогу модалки створення / редагування товару */
.gnozis-modal-add-product,
#modal-add-product .gnozis-modal-dialog {
    position: relative !important;
    z-index: 2 !important;
    max-width: 660px !important;
    width: 100% !important;
    max-height: calc(100vh - 100px) !important;
    max-height: calc(100dvh - 100px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: linear-gradient(180deg, #0e172a 0%, #080d1a 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.16) !important;
    padding: 24px 28px !important;
    box-sizing: border-box !important;
    margin: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent !important;
}

/* Діалог модалки баг-репорту */
.gnozis-modal-bug-dialog,
#modal-bug-report .gnozis-modal-dialog {
    position: relative !important;
    z-index: 2 !important;
    max-width: 580px !important;
    width: 100% !important;
    max-height: calc(100vh - 100px) !important;
    max-height: calc(100dvh - 100px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: linear-gradient(180deg, #0e172a 0%, #080d1a 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.16) !important;
    padding: 24px 28px !important;
    box-sizing: border-box !important;
    margin: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent !important;
}

/* 5. Дропзона завантаження зображень */
.image-uploader-box {
    display: block !important;
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1.5px dashed rgba(56, 189, 248, 0.35) !important;
    border-radius: 12px !important;
    padding: 20px 16px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.image-uploader-box:hover {
    background: rgba(15, 23, 42, 0.88) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.22) !important;
}

.image-upload-prompt {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}

.image-upload-prompt .prompt-icon {
    font-size: 1.8rem !important;
    line-height: 1 !important;
}

.image-upload-prompt .prompt-main-text {
    color: #f1f5f9 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.image-upload-prompt .prompt-sub-text {
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
}

.btn-uploader-browse {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    transition: all 0.2s ease !important;
}

.image-uploader-box:hover .btn-uploader-browse {
    background: rgba(56, 189, 248, 0.28) !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
}

/* 5.1. Прев'ю галереї фотографій товару */
.product-gallery-previews-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    background: rgba(15, 23, 42, 0.45) !important;
    padding: 10px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
}

.product-preview-thumb-card {
    position: relative !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    background: #0f172a !important;
    transition: all 0.2s ease !important;
}

.product-preview-thumb-card.is-main-photo {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35) !important;
}

.product-preview-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.product-preview-badge {
    position: absolute !important;
    bottom: 3px !important;
    left: 3px !important;
    right: 3px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(4px) !important;
    color: #38bdf8 !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.product-preview-thumb-card.is-main-photo .product-preview-badge {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.92), rgba(37, 99, 235, 0.92)) !important;
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4) !important;
}

.product-preview-make-main-btn {
    position: absolute !important;
    bottom: 3px !important;
    left: 3px !important;
    right: 3px !important;
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    backdrop-filter: blur(4px) !important;
    color: #94a3b8 !important;
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}

.product-preview-make-main-btn:hover {
    background: rgba(56, 189, 248, 0.35) !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
}

.product-preview-remove-btn {
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: rgba(239, 68, 68, 0.85) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 13px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
    z-index: 5 !important;
}

.product-preview-remove-btn:hover {
    background: #ef4444 !important;
    transform: scale(1.15) !important;
}

/* 6. Сітка форми модалок та кнопки дій */
.modal-form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

.modal-form-grid .full-width {
    grid-column: 1 / -1 !important;
}

.modal-form-grid .half-width {
    grid-column: span 1 !important;
}

.modal-form-grid .align-center-group {
    display: flex !important;
    align-items: center !important;
    padding-top: 24px !important;
}

.modal-actions-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-top: 22px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.btn-gnozis-ghost {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-gnozis-ghost:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.btn-gnozis-primary {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    border: 1px solid rgba(56, 189, 248, 0.5) !important;
    color: #ffffff !important;
    padding: 9px 20px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-gnozis-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.65) !important;
}

/* Пілюля автора баг-репорту */
.bug-reporter-info-pill {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
}

.bug-reporter-info-pill strong {
    color: #f1f5f9 !important;
}

/* 7. Модальне вікно реакцій та репостів */
.interactions-modal-dialog {
    max-width: 480px !important;
    width: 95% !important;
    background: linear-gradient(180deg, #0e172a 0%, #080d1a 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.16) !important;
    padding: 20px 24px 24px !important;
    box-sizing: border-box !important;
}

.interaction-user-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.interaction-user-row:hover {
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    transform: translateX(2px) !important;
}

.interaction-user-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1.5px solid rgba(56, 189, 248, 0.28) !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.interaction-user-name {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.interaction-user-status {
    font-size: 0.78rem !important;
    color: #38bdf8 !important;
    display: block !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 8. Радіокнопки модалки скарг */
.report-reasons-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 14px 0 18px !important;
}

.report-reason-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.report-reason-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

.report-reason-item input[type="radio"] {
    accent-color: #38bdf8 !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
}

/* ==========================================================================
   9. МОДАЛЬНЕ ВІКНО ПОПЕРЕДЖЕННЯ ПРО ЗОВНІШНІЙ РЕСУРС (EXTERNAL LINK MODAL)
   ========================================================================== */
.gnozis-modal-external-warning .external-warning-dialog {
    max-width: 480px !important;
    width: 95% !important;
    background: linear-gradient(180deg, #0e172a 0%, #0a0f1d 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(56, 189, 248, 0.15) !important;
    padding: 24px 24px 28px !important;
    box-sizing: border-box !important;
}

.external-warning-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
}

.external-warning-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 12px;
    position: relative;
    font-size: 1.3rem;
}

.external-shield-icon {
    line-height: 1;
}

.external-exit-arrow {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1;
}

.external-warning-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    margin-bottom: 8px;
}

.external-warning-title {
    font-size: 1.22rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

.external-warning-subtitle {
    font-size: 0.88rem !important;
    color: #94a3b8 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

.external-destination-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 16px 0 14px;
    box-sizing: border-box;
    width: 100%;
}

.destination-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.destination-label {
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-copy-external-url {
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
    padding: 5px 11px !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

.btn-copy-external-url:hover {
    background: rgba(56, 189, 248, 0.22) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.destination-domain {
    font-size: 0.95rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 6px;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 6px;
}

.destination-url-box {
    font-size: 0.80rem;
    color: #cbd5e1;
    word-break: break-all;
    line-height: 1.45;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 80px;
    overflow-y: auto;
}

.external-warning-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.80rem;
    color: #fbbf24;
    line-height: 1.45;
    box-sizing: border-box;
}

.external-warning-disclaimer .disclaimer-icon {
    font-size: 1rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.external-modal-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#btn-cancel-external-redirect,
button.btn-external-cancel,
.btn-external-cancel {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex: 1 1 50% !important;
    min-height: 44px !important;
    padding: 10px 16px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
    color: #f1f5f9 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
}

#btn-cancel-external-redirect:hover,
button.btn-external-cancel:hover,
.btn-external-cancel:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    background-color: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.btn-external-proceed {
    flex: 1 1 50% !important;
    min-height: 44px !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.btn-external-proceed:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35) !important;
}

@media (max-width: 480px) {
    .external-modal-actions {
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }

    .btn-external-cancel,
    .btn-external-proceed {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

/* ==========================================================================
   Універсальне модальне вікно «Поділитися» (#gnozis-modal-share)
   ========================================================================== */
#gnozis-modal-share {
    overflow-x: hidden !important;
}

#gnozis-modal-share .gnozis-modal-dialog,
.share-modal-dialog {
    max-width: 520px !important;
    width: 100% !important;
    margin: auto !important;
    background: linear-gradient(180deg, #0e172a 0%, #080d1a 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.15) !important;
    box-sizing: border-box !important;
    padding: 22px 24px !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.2) transparent;
}

#gnozis-modal-share .gnozis-modal-dialog::-webkit-scrollbar {
    width: 4px;
    height: 0px !important;
    display: none;
}
#gnozis-modal-share .gnozis-modal-dialog::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.2);
    border-radius: 4px;
}

#gnozis-modal-share .gnozis-modal-header {
    margin-bottom: 16px !important;
}

#gnozis-modal-share .gnozis-modal-body,
.share-modal-body {
    padding: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.share-platform-actions {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-quick-action-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.share-quick-action-grid .btn-share-to-wall-btn,
.share-quick-action-grid .btn-share-to-group-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 42px !important;
    padding: 8px 14px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.share-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.share-preview-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.share-preview-text {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.share-preview-text strong {
    display: block;
    font-size: 0.92rem;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-preview-text span {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.share-socials-block {
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.share-section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 8px;
}

/* Сітка кнопок соцмереж */
.share-social-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.share-social-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 4px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.share-social-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.share-social-btn svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease;
}

.share-social-btn:hover svg {
    transform: scale(1.08);
}

.share-social-btn span {
    display: block !important;
    font-size: 0.72rem !important;
    margin-top: 5px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    text-align: center !important;
    line-height: 1.15 !important;
}

.share-btn-telegram {
    background: rgba(36, 161, 222, 0.12) !important;
    border: 1px solid rgba(36, 161, 222, 0.28) !important;
    color: #38bdf8 !important;
}
.share-btn-telegram:hover {
    background: rgba(36, 161, 222, 0.22) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
}

.share-btn-whatsapp {
    background: rgba(37, 211, 102, 0.12) !important;
    border: 1px solid rgba(37, 211, 102, 0.28) !important;
    color: #4ade80 !important;
}
.share-btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.22) !important;
    border-color: rgba(74, 222, 128, 0.5) !important;
}

.share-btn-facebook {
    background: rgba(24, 119, 242, 0.12) !important;
    border: 1px solid rgba(24, 119, 242, 0.28) !important;
    color: #60a5fa !important;
}
.share-btn-facebook:hover {
    background: rgba(24, 119, 242, 0.22) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
}

.share-btn-viber {
    background: rgba(115, 96, 242, 0.12) !important;
    border: 1px solid rgba(115, 96, 242, 0.28) !important;
    color: #c084fc !important;
}
.share-btn-viber:hover {
    background: rgba(115, 96, 242, 0.22) !important;
    border-color: rgba(192, 132, 252, 0.5) !important;
}

.share-btn-x {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #f8fafc !important;
}
.share-btn-x:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.share-copy-box {
    width: 100%;
    box-sizing: border-box;
}

.share-copy-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.share-copy-input-row input {
    min-width: 0 !important;
}

/* ==========================================================================
   Адаптивність для телефонів (Mobile Share Modal)
   ========================================================================== */
@media (max-width: 768px) {
    #gnozis-modal-share {
        padding: 10px !important;
        overflow-x: hidden !important;
    }

    #gnozis-modal-share .gnozis-modal-dialog,
    .share-modal-dialog {
        max-width: 100% !important;
        width: 100% !important;
        margin: auto !important;
        padding: 14px 12px 14px 12px !important;
        border-radius: 16px !important;
        overflow-x: hidden !important;
        max-height: calc(100dvh - 20px) !important;
    }

    #gnozis-modal-share .gnozis-modal-dialog::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    #gnozis-modal-share .gnozis-modal-dialog {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    #gnozis-modal-share .gnozis-modal-header {
        margin-bottom: 10px !important;
    }

    #gnozis-modal-share .modal-title {
        font-size: 1.05rem !important;
    }

    .share-platform-actions {
        margin-bottom: 10px !important;
        gap: 6px !important;
    }

    .share-quick-action-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .share-quick-action-grid .btn-share-to-wall-btn,
    .share-quick-action-grid .btn-share-to-group-toggle {
        min-height: 36px !important;
        padding: 6px 6px !important;
        font-size: 0.78rem !important;
        border-radius: 10px !important;
    }

    .share-preview-card {
        padding: 7px 10px !important;
        margin-bottom: 10px !important;
        gap: 10px !important;
        border-radius: 10px !important;
    }

    .share-preview-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
    }

    #share-preview-title {
        font-size: 0.85rem !important;
    }

    #share-preview-subtitle {
        font-size: 0.72rem !important;
    }

    .share-socials-block {
        margin-bottom: 10px !important;
    }

    .share-section-label {
        font-size: 0.68rem !important;
        margin-bottom: 5px !important;
        letter-spacing: 0.03em !important;
    }

    /* Компактні кнопки соцмереж для телефонів */
    .share-social-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    .share-social-btn {
        padding: 7px 2px !important;
        border-radius: 9px !important;
    }

    .share-social-btn svg {
        width: 19px !important;
        height: 19px !important;
    }

    .share-social-btn span {
        font-size: 0.65rem !important;
        margin-top: 3px !important;
    }

    .share-copy-input-row {
        gap: 6px !important;
    }

    #share-copy-input {
        font-size: 0.78rem !important;
        padding: 6px 8px !important;
        height: 36px !important;
    }

    #btn-copy-share-url {
        padding: 0 10px !important;
        font-size: 0.78rem !important;
        height: 36px !important;
    }

    .gnozis-modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 380px) {
    .share-quick-action-grid {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }

    .share-social-grid {
        gap: 3px !important;
    }

    .share-social-btn {
        padding: 6px 1px !important;
        border-radius: 8px !important;
    }

    .share-social-btn svg {
        width: 17px !important;
        height: 17px !important;
    }

    .share-social-btn span {
        font-size: 0.60rem !important;
    }
}

/* ==========================================================================
   Модальне вікно скарги на допис (#gnozis-modal-report-post)
   ========================================================================== */
#gnozis-modal-report-post .gnozis-modal-dialog,
.report-modal-dialog {
    max-width: 520px !important;
    width: 100% !important;
    margin: auto !important;
    background: linear-gradient(180deg, #0e172a 0%, #080d1a 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(239, 68, 68, 0.15) !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    #gnozis-modal-report-post .gnozis-modal-dialog,
    .report-modal-dialog {
        max-width: calc(100% - 20px) !important;
        width: calc(100% - 20px) !important;
        margin: 12px auto !important;
        padding: 18px 14px !important;
    }
}


/* ==========================================================================
   МОДАЛЬНЕ ВІКНО ПЕРЕГЛЯДУ РЕАКЦІЙ ТА РЕПОСТІВ (Interactions Modal)
   ========================================================================== */
.interactions-modal-dialog {
    max-width: 480px !important;
    width: 95% !important;
    background: linear-gradient(180deg, #0e172a 0%, #080d1a 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.16) !important;
    padding: 20px 24px 24px !important;
    box-sizing: border-box !important;
}

.interaction-user-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.interaction-user-row:hover {
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    transform: translateX(2px) !important;
}

.interaction-user-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1.5px solid rgba(56, 189, 248, 0.28) !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.interaction-user-name {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.interaction-user-status {
    font-size: 0.78rem !important;
    color: #38bdf8 !important;
    display: block !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.interaction-tab-btn {
    transition: all 0.2s ease !important;
}

.interaction-tab-btn.active {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

/* ==========================================================================
   МОДАЛЬНЕ ВІКНО СКАРГИ (Report Post / Comment Modal) - Радіокнопки
   ========================================================================== */
.report-reasons-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.report-reason-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    min-height: 46px !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
}

.report-reason-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    transform: translateX(2px) !important;
}

.report-reason-item input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
}

.reason-custom-radio {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(148, 163, 184, 0.5) !important;
    background: rgba(15, 23, 42, 0.95) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.reason-custom-radio .radio-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.9) !important;
    display: block !important;
    transform: scale(0) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.report-reason-item input[type="radio"]:checked + .reason-custom-radio {
    border-color: #38bdf8 !important;
    background: rgba(14, 28, 48, 0.98) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45) !important;
}

.report-reason-item input[type="radio"]:checked + .reason-custom-radio .radio-dot {
    transform: scale(1) !important;
}

.report-reason-item:has(input[type="radio"]:checked),
.report-reason-item.is-selected {
    background: rgba(56, 189, 248, 0.09) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.12) !important;
}

.reason-text {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.88rem !important;
    color: #e2e8f0 !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.reason-emoji {
    font-size: 1.05rem !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   ЦЕНТР МОДЕРАЦІЇ ТА СКАРГ (Moderation Dashboard Modal)
   ========================================================================== */
.reports-dashboard-dialog {
    max-width: 820px !important;
    width: 95% !important;
    background: linear-gradient(180deg, #0e172a 0%, #090e1c 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.15) !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    color: #f1f5f9 !important;
}

.reports-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 16px !important;
    margin-bottom: 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.reports-nav-tabs {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
    background: rgba(15, 23, 42, 0.6) !important;
    padding: 6px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.reports-nav-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
}

.reports-nav-tab:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.reports-nav-tab.active {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2) !important;
}

.reports-badge-count {
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 1px 7px !important;
    border-radius: 999px !important;
    margin-left: 4px !important;
}

/* Статистика */
.reports-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}

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

.stat-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-1px) !important;
}

.stat-ico {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.35rem !important;
    flex-shrink: 0 !important;
}

.stat-total .stat-ico {
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.stat-pending .stat-ico {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.stat-resolved .stat-ico {
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.stat-data {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.stat-number {
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    line-height: 1.2 !important;
    font-family: inherit !important;
}

.stat-label {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.reports-stats-sections-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
}

@media (max-width: 700px) {
    .reports-stats-sections-row {
        grid-template-columns: 1fr !important;
    }
}

.stats-panel-box {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.stats-panel-title {
    margin: 0 !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Смужки причин скарг */
.reason-bar-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.reason-bar-label-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.8rem !important;
    color: #cbd5e1 !important;
}

.reason-bar-track {
    width: 100% !important;
    height: 7px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}

.reason-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #38bdf8, #818cf8) !important;
    border-radius: 999px !important;
    transition: width 0.4s ease !important;
}

/* Фільтри черги */
.filter-pills-group {
    display: flex !important;
    gap: 6px !important;
}

.filter-pill {
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.filter-pill.active {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Картка скарги в черзі */
.report-card-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    transition: all 0.2s ease !important;
}

.report-card-item:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.report-card-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.report-badge-reason {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.report-target-box {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    color: #cbd5e1 !important;
}

.report-actions-row {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin-top: 4px !important;
}

.btn-report-action {
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-report-action:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.btn-report-approve:hover {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #86efac !important;
}

.btn-report-delete:hover,
.btn-report-ban:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}

.btn-report-warn:hover {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #fde047 !important;
}

.btn-report-shadowban:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    color: #d8b4fe !important;
}

/* Авто-модерація */
.automod-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 16px !important;
}

.automod-radio-group {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 10px !important;
}

.automod-radio-card {
    flex: 1 1 200px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.automod-radio-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.automod-textareas-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
}

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

.automod-textarea {
    width: 100% !important;
    min-height: 90px !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    color: #f8fafc !important;
    font-size: 0.84rem !important;
    box-sizing: border-box !important;
    resize: vertical !important;
}

.automod-textarea:focus {
    border-color: #38bdf8 !important;
    outline: none !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
}

.automod-actions-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    align-items: center !important;
    margin-top: 10px !important;
}

.btn-automod-reset,
.btn-automod-save {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-automod-reset {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

.btn-automod-save {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
}

/* ==========================================================================
   Omni-Search Живий Пошук по сайту (Ultra-Premium Glassmorphism)
   Глобальне універсальне модальне вікно пошуку (#gnozis-modal-omni-search)
   ========================================================================== */
.gnozis-omni-search-modal {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 70px 16px 20px !important;
    z-index: 1000050 !important;
    box-sizing: border-box !important;
}

.gnozis-omni-search-modal.open {
    display: flex !important;
}

.gnozis-omni-search-modal .gnozis-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(4, 8, 16, 0.78) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    z-index: 1 !important;
}

.gnozis-omni-search-modal .omni-search-dialog {
    position: relative !important;
    z-index: 2 !important;
    max-width: 680px !important;
    width: 100% !important;
    margin: 0 auto !important;
    background: rgba(11, 18, 32, 0.95) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 80px -10px rgba(0, 0, 0, 0.95), 0 0 45px rgba(56, 189, 248, 0.14) !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 85vh !important;
    animation: omniModalScale 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    box-sizing: border-box !important;
}

@keyframes omniModalScale {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.omni-search-input-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.omni-search-icon {
    color: #38bdf8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6)) !important;
    line-height: 1 !important;
}

.omni-search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #f8fafc !important;
    font-size: 1.12rem !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.omni-search-input:focus {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.omni-search-input::placeholder {
    color: #64748b !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.omni-search-clear-btn {
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.omni-search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.omni-modal-close-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex-shrink: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.omni-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
    transform: rotate(90deg) !important;
}

.omni-search-filter-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    background: rgba(0, 0, 0, 0.25) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
}

.omni-search-filter-tabs::-webkit-scrollbar {
    display: none !important;
}

.omni-filter-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    margin: 0 !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.omni-filter-pill span {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

.omni-filter-pill:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.omni-filter-pill.active {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2) !important;
}

.omni-filter-pill .pill-badge {
    background: #38bdf8 !important;
    color: #0f172a !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    padding: 1px 6px !important;
    border-radius: 10px !important;
    line-height: 1.2 !important;
    margin-left: 2px !important;
}

.omni-search-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 18px 20px !important;
    max-height: 480px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(56, 189, 248, 0.3) rgba(0, 0, 0, 0.2) !important;
    box-sizing: border-box !important;
}

.omni-search-body::-webkit-scrollbar {
    width: 6px !important;
}

.omni-search-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
}

.omni-search-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3) !important;
    border-radius: 8px !important;
}

.omni-search-body::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.6) !important;
}

.omni-section-label {
    font-size: 0.80rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 12px !important;
    display: block !important;
}

.omni-quick-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.omni-quick-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 13px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    color: #cbd5e1 !important;
    font-size: 0.84rem !important;
    font-family: inherit !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: all 0.2s ease !important;
}

.omni-quick-tag:hover {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    transform: translateY(-1px) !important;
}

.omni-quick-nav-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.omni-nav-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.omni-nav-card:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    transform: translateY(-1px) !important;
}

.omni-nav-icon {
    font-size: 1.4rem !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.omni-nav-card strong {
    display: block !important;
    font-size: 0.88rem !important;
    color: #f1f5f9 !important;
    font-weight: 600 !important;
}

.omni-nav-card small {
    display: block !important;
    font-size: 0.76rem !important;
    color: #64748b !important;
    margin-top: 2px !important;
}

/* Результати пошуку (AJAX) */
.omni-result-group {
    margin-bottom: 22px !important;
}

.omni-result-group:last-child {
    margin-bottom: 0 !important;
}

.omni-group-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin-bottom: 10px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.omni-group-count {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    font-size: 0.70rem !important;
    padding: 1px 7px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

.omni-item-row {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    margin-bottom: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.omni-item-row:hover {
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    transform: translateX(3px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.omni-item-thumb {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.omni-item-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.omni-item-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
    background: #0f172a !important;
    flex-shrink: 0 !important;
}

.omni-item-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.omni-group-icon-frame {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: rgba(56, 189, 248, 0.08) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.3rem !important;
    flex-shrink: 0 !important;
}

.omni-item-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.omni-item-title {
    display: block !important;
    font-size: 0.94rem !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.omni-item-category,
.omni-item-desc,
.omni-item-meta {
    display: block !important;
    font-size: 0.78rem !important;
    color: #64748b !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.omni-item-action {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.omni-item-price {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3) !important;
}

.btn-search-quick-add,
.btn-mini-add-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
    cursor: pointer !important;
    font-size: 0.80rem !important;
    font-weight: 600 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-search-quick-add:hover,
.btn-mini-add-cart:hover {
    background: #38bdf8 !important;
    color: #0b101b !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4) !important;
    transform: scale(1.05) !important;
}

.omni-member-name-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.omni-member-name-row .rank-badge {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    padding: 1px 6px !important;
    border-radius: 6px !important;
}

.omni-group-members-badge {
    font-size: 0.74rem !important;
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

.omni-search-loading {
    display: none;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 40px 0 !important;
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
}

.omni-loader-ring {
    width: 32px !important;
    height: 32px !important;
    border: 3px solid rgba(56, 189, 248, 0.2) !important;
    border-top-color: #38bdf8 !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
}

.omni-no-results {
    text-align: center !important;
    padding: 40px 10px !important;
    color: #94a3b8 !important;
}

.omni-no-results-icon {
    font-size: 2.4rem !important;
    display: block !important;
    margin-bottom: 8px !important;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3)) !important;
}

.omni-no-results h4 {
    color: #f1f5f9 !important;
    font-size: 1.15rem !important;
    margin-bottom: 6px !important;
}

.omni-no-results p {
    font-size: 0.88rem !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    color: #64748b !important;
}

.omni-search-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    font-size: 0.74rem !important;
    color: #64748b !important;
    box-sizing: border-box !important;
}

.omni-search-footer kbd {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    color: #cbd5e1 !important;
    font-family: inherit !important;
    font-size: 0.70rem !important;
    margin-right: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 768px) {
    .gnozis-omni-search-modal {
        padding: 15px 10px !important;
    }
    .gnozis-omni-search-modal .omni-search-dialog {
        max-height: 92vh !important;
        border-radius: 16px !important;
        width: 100% !important;
    }
    .omni-search-input-header {
        padding: 12px 14px !important;
        gap: 10px !important;
    }
    .omni-search-input {
        font-size: 1rem !important;
    }
    .omni-search-filter-tabs {
        padding: 8px 12px !important;
        gap: 6px !important;
    }
    .omni-filter-pill {
        padding: 5px 11px !important;
        font-size: 0.78rem !important;
    }
    .omni-quick-nav-grid {
        grid-template-columns: 1fr !important;
    }
    .omni-search-footer {
        display: none !important;
    }
}

/* ==========================================================================
   FILE: components/toasts.css
   ========================================================================== */
/* ==========================================================================
   10. FEED FILTER TABS, BOOKMARKS & ASTRAL TOAST NOTIFICATIONS
   ========================================================================== */

/* Вкладки фільтрації Стрічки Одкровень */
.gnozis-feed-filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(16, 24, 32, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.feed-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--gnozis-radius-md);
    color: var(--gnozis-text-muted);
    font-family: var(--gnozis-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gnozis-transition);
    outline: none;
    white-space: nowrap;
}

.feed-tab-btn span {
    white-space: nowrap;
}

.feed-tab-btn:hover {
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Feed tab active — subtle cobalt (Deep Abyss) */
.feed-tab-btn.active {
    background: rgba(96, 120, 144, 0.14);
    border-color: rgba(96, 120, 144, 0.32);
    color: var(--gnozis-text-primary);
    font-weight: 600;
    box-shadow: none;
}

/* Дії шапки допису (Закладка / Зберегти) */
.post-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-bookmark-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gnozis-border-subtle);
    border-radius: var(--gnozis-radius-sm);
    color: var(--gnozis-text-muted);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--gnozis-transition);
}

.post-bookmark-btn:hover {
    color: var(--accent-cyan);
    border-color: rgba(120, 152, 184, 0.3);
    background: rgba(120, 152, 184, 0.08);
}

/* Bookmark active — cobalt (Deep Abyss) */
.post-bookmark-btn.active {
    color: #7898B8;
    background: rgba(96, 120, 144, 0.20);
    border-color: rgba(96, 120, 144, 0.50);
    box-shadow: 0 0 10px rgba(96, 120, 144, 0.28);
}

/* Спливаючі Астральні Сповіщення (Toast Notifications) */
.gnozis-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Toast notification — cobalt (Deep Abyss) */
.gnozis-toast-item {
    pointer-events: auto;
    background: rgba(16, 32, 48, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 120, 144, 0.50);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 24px rgba(96, 120, 144, 0.22);
    color: #E0E8F0;
    padding: 13px 22px;
    font-family: var(--gnozis-font-body);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transform-origin: bottom right;
    animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gnozis-toast-item.toast-fadeout {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   FILE: navigation/header.css
   ========================================================================== */
/* ==========================================================================
   FACEBOOK-STYLE UNIFIED TOPBAR (MUTED SLATE & STEEL THEME)
   ========================================================================== */

.gnozis-fb-topbar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 56px;
    background: rgba(11, 16, 27, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid #1e293b;
    z-index: 99999 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.fb-topbar-inner {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    align-items: center;
}

/* 1. Ліва частина: Круглий фірмовий знак + Пошук */
.fb-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-brand-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fb-brand-circle:hover {
    transform: scale(1.08);
}

.fb-brand-logo-img {
    width: 38px;
    height: 38px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
    transition: filter 0.25s ease;
}

.fb-brand-circle:hover .fb-brand-logo-img {
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 4px rgba(129, 140, 248, 0.8));
}

.fb-brand-symbol {
    display: none;
}

/* Універсальна кнопка пошуку GNOZIS (Десктоп & Мобільний) */
.fb-search-trigger-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 38px !important;
    width: 230px !important;
    padding: 0 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: left !important;
    outline: none !important;
    user-select: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent !important;
}

.fb-search-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2) !important;
}

.fb-search-trigger-btn .fb-search-ico {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #38bdf8 !important;
    flex-shrink: 0 !important;
}

.fb-search-trigger-btn .fb-search-placeholder-txt {
    flex: 1 !important;
    font-size: 0.86rem !important;
    font-weight: 400 !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.fb-search-trigger-btn:hover .fb-search-placeholder-txt {
    color: #e2e8f0 !important;
}

.fb-search-trigger-btn .fb-search-shortcut-badge {
    font-size: 0.70rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0 !important;
}

@media (max-width: 900px) {
    .fb-search-trigger-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        flex-shrink: 0 !important;
    }
    .fb-search-trigger-btn .fb-search-placeholder-txt,
    .fb-search-trigger-btn .fb-search-shortcut-badge {
        display: none !important;
    }
    .fb-search-trigger-btn:hover,
    .fb-search-trigger-btn:active {
        background: rgba(56, 189, 248, 0.18) !important;
        border-color: rgba(56, 189, 248, 0.5) !important;
        color: #38bdf8 !important;
        transform: scale(1.05) !important;
    }
}

/* 2. Центральна частина: 5 іконок Facebook-стилю */
.fb-topbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 56px;
    gap: 4px;
}

.fb-nav-tab {
    flex: 0 1 110px;
    max-width: 110px;
    min-width: 65px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.fb-nav-tab:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
}

.fb-tab-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding-bottom: 2px;
}

.fb-nav-tab svg {
    transition: transform 0.15s ease, stroke 0.15s ease;
}

.fb-nav-tab.active {
    color: #cbd5e1;
}

.fb-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: 3px 3px 0 0;
    transition: background 0.2s ease;
}

.fb-nav-tab.active .fb-tab-indicator {
    background: #607890;
}

/* Floating Tooltip при hover на таб */
.fb-nav-tab[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #1e293b;
    z-index: 100000;
}

.fb-nav-tab:hover[data-tooltip]::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 3. Права частина: 4 круглі кнопки дій */
.fb-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.fb-round-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #111827;
    border: 1px solid #1e293b;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    outline: none;
    flex-shrink: 0;
    text-decoration: none;
}

.fb-round-btn:hover {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

.fb-round-btn:active {
    transform: translateY(0);
}

.fb-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #881337;
    color: #fecdd3;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    text-align: center;
    border: 1.5px solid #0b101b;
}

.fb-notif-badge.is-empty,
.fb-notif-badge:empty,
.popover-unread-badge.is-empty,
.popover-unread-badge:empty,
.chat-bubble-badge.is-empty,
.chat-bubble-badge:empty,
.drawer-badge.is-empty,
.drawer-badge:empty {
    display: none !important;
}

/* Аватар кнопка */
.fb-profile-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.fb-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.fb-avatar-frame {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #0f172a;
    border: 1.5px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.fb-user-avatar-img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fb-avatar-arrow-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1e293b;
    border: 1.5px solid #0b101b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: transform 0.2s ease, color 0.2s ease;
}

.fb-profile-wrap.open .fb-avatar-arrow-badge {
    transform: rotate(180deg);
    color: #cbd5e1;
}

/* Дропдаун меню профілю */
.fb-profile-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    margin-top: 8px !important;
    right: 0 !important;
    width: 280px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
    z-index: 100001;
    display: none;
    animation: fbMenuAnim 0.14s ease forwards;
}

.fb-profile-dropdown-menu.active {
    display: block;
}

@keyframes fbMenuAnim {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fb-dropdown-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #111827;
    border: 1px solid #1e293b;
}

.fb-dropdown-avatar-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid #334155;
}

.fb-dropdown-avatar-img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.fb-dropdown-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fb-dropdown-name {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.fb-dropdown-status {
    color: #64748b;
    font-size: 0.74rem;
    margin-top: 1px;
}

.fb-dropdown-divider {
    height: 1px;
    background: #1e293b;
    margin: 6px 0;
}

.fb-dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fb-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    width: 100%;
}

.fb-dropdown-link:hover {
    background: #1e293b;
    color: #e2e8f0;
}

.fb-dropdown-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.fb-link-danger {
    color: #f87171;
}

.fb-link-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

/* ==========================================================================
   Language Switcher (Topbar & Profile Menu)
   ========================================================================== */
.fb-lang-topbar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-lang-code {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #38bdf8;
    text-transform: uppercase;
    font-family: inherit;
    line-height: 1;
    user-select: none;
}

.btn-trigger-lang-popover:hover .topbar-lang-code {
    color: #7dd3fc;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.gnozis-lang-topbar-popover {
    position: absolute !important;
    top: 100% !important;
    margin-top: 8px !important;
    right: 0 !important;
    width: 190px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 16px rgba(56, 189, 248, 0.08);
    z-index: 100002;
    display: none;
    animation: fbMenuAnim 0.14s ease forwards;
}

.gnozis-lang-topbar-popover.active {
    display: block;
}

.lang-popover-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 4px 8px 6px 8px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 4px;
}

.lang-popover-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-popover-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.lang-popover-item:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
}

.lang-popover-item.is-active {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-weight: 600;
}

.lang-popover-code {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    background: #1e293b;
    color: #cbd5e1;
    min-width: 24px;
    text-align: center;
}

.lang-popover-item.is-active .lang-popover-code {
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}

.lang-popover-name {
    flex: 1;
}

.lang-popover-check {
    font-size: 0.8rem;
    font-weight: bold;
    color: #38bdf8;
}

/* Профільне меню: вибір мови */
.fb-dropdown-lang-section {
    padding: 8px 10px;
}

.fb-dropdown-lang-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 8px;
}

.fb-dropdown-lang-chips {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.fb-lang-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    border-radius: 6px;
    background: #111827;
    border: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    user-select: none;
}

.fb-lang-chip:hover {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

.fb-lang-chip.is-active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

/* Адаптивність Facebook Topbar */
@media (max-width: 992px) {
    .fb-topbar-inner {
        grid-template-columns: 240px 1fr 240px;
    }
    .fb-search-box {
        width: 170px;
    }
    .fb-search-input:focus {
        width: 190px;
    }
    .fb-nav-tab {
        flex: 0 1 80px;
        min-width: 50px;
    }
}

@media (max-width: 768px) {
    /* Верхня шапка: Логотип, Пошук, Кошик, Повідомлення, Сповіщення, Аватар */
    .gnozis-fb-topbar {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 54px !important;
        background: rgba(11, 16, 27, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid #1e293b !important;
        z-index: 99999 !important;
    }
    .fb-topbar-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 54px !important;
        padding: 0 12px !important;
    }
    .fb-topbar-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .fb-topbar-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Приховуємо центральні десктопні таби у верхній шапці на мобільних */
    .fb-topbar-center {
        display: none !important;
    }

    /* Нижня панель навігації: 5 головних табів нативно зафіксовані внизу екрана */
    .gnozis-mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 58px !important;
        height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
        background: rgba(11, 16, 27, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-bottom: none !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 4px !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        z-index: 99998 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6) !important;
        user-select: none !important;
    }

    .mobile-bottom-tab {
        flex: 1 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        color: #64748b !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
        padding: 4px 0 !important;
    }

    .mobile-bottom-tab.active {
        color: #cbd5e1 !important;
    }

    .mobile-bottom-tab:hover {
        color: #94a3b8 !important;
    }

    .mobile-tab-icon-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-tab-icon-wrap svg {
        width: 22px !important;
        height: 22px !important;
        stroke: currentColor !important;
    }

    .mobile-bottom-tab.active .mobile-tab-icon-wrap svg {
        stroke: #cbd5e1 !important;
        filter: drop-shadow(0 0 4px rgba(203, 213, 225, 0.25)) !important;
    }

    .mobile-tab-label {
        font-size: 0.68rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.01em !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .mobile-bottom-tab.active .mobile-tab-label {
        font-weight: 600 !important;
        color: #cbd5e1 !important;
    }
    
    /* Відступи для вмісту сайту на мобільних */
    .gnozis-page-shell {
        padding-top: 10px !important;
        padding-bottom: 75px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Плаваючий чат і плеєр вище нижнього меню на мобільних */
    .gnozis-chat-heads-dock {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
        right: 14px !important;
        z-index: 99999 !important;
    }
    .gnozis-mini-chat-window {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
        right: 14px !important;
        z-index: 100000 !important;
    }
    .gnozis-floating-audio-fab {
        display: none !important;
    }
    .gnozis-floating-chat-bubble {
        display: flex !important;
    }
}

/* ==========================================================================
   FILE: navigation/sidebar-left.css
   ========================================================================== */
/* ==========================================================================
   5. ЛІВИЙ САЙДБАР (Navigation & Identity)
   ========================================================================== */

/* Брендинг платформи */
.gnozis-brand-box {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gnozis-border-subtle);
}

.gnozis-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.gnozis-brand-sigil-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gnozis-sigil-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(96, 120, 144, 0.45));
}

.sigil-glow {
    position: absolute;
    inset: 4px;
    background: radial-gradient(circle, rgba(96, 120, 144, 0.30) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(6px);
}

.gnozis-brand-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.gnozis-brand-titles .gnozis-title {
    font-family: var(--gnozis-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gnozis-text-primary);
    line-height: 1.2;
}

.gnozis-brand-titles .gnozis-slogan {
    font-size: 0.67rem;
    color: var(--gnozis-text-muted);
    letter-spacing: 0.01em;
    margin-top: 3px;
    line-height: 1.3;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Меню навігації */
.gnozis-nav-menu .nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gnozis-nav-menu .nav-item {
    position: relative;
}

.gnozis-nav-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--gnozis-radius-md);
    color: var(--gnozis-text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--gnozis-transition);
    position: relative;
    border: 1px solid transparent;
}

.gnozis-nav-menu .nav-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: inherit;
    flex-shrink: 0;
}

.gnozis-nav-menu .nav-label {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gnozis-nav-menu .nav-link:hover {
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

/* Активний стан навігації — subtle cobalt */
.gnozis-nav-menu .nav-item.active .nav-link {
    color: var(--gnozis-text-primary);
    background: rgba(96, 120, 144, 0.10);
    border: 1px solid rgba(96, 120, 144, 0.28);
    box-shadow: none;
}

.gnozis-nav-menu .nav-item.active .nav-active-glow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 4px 4px 0;
    background: var(--accent-cobalt);
    box-shadow: 0 0 8px var(--accent-cobalt-glow);
}

/* Бейджики навігації */
.nav-badge-pill {
    background: rgba(120, 152, 184, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(120, 152, 184, 0.35);
    border-radius: var(--gnozis-radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    box-shadow: 0 0 8px rgba(120, 152, 184, 0.2);
}

.nav-badge-count {
    background: rgba(120, 152, 184, 0.18);
    color: var(--accent-cyan);
    border: 1px solid rgba(120, 152, 184, 0.4);
    border-radius: var(--gnozis-radius-full);
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0 6px;
    box-shadow: 0 0 8px rgba(120, 152, 184, 0.25);
}

.nav-badge-count.is-empty,
.nav-badge-count:empty {
    display: none !important;
}

/* Нижній блок сайдбара */
.gnozis-sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--gnozis-border-subtle);
}

.gnozis-section-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--gnozis-text-tertiary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Мовний перемикач (5 мов) */
.gnozis-lang-switcher {
    position: relative;
    width: 100%;
}

.gnozis-lang-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(16, 26, 38, 0.85);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-md);
    color: var(--gnozis-text-secondary);
    font-family: var(--gnozis-font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gnozis-transition);
}

.gnozis-lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--gnozis-text-primary);
}

.gnozis-lang-btn .lang-flag,
.gnozis-lang-list li .flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.gnozis-flag-svg {
    display: block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    object-fit: cover;
}

.gnozis-lang-btn .lang-code {
    font-weight: 600;
    color: var(--gnozis-text-primary);
    flex-grow: 1;
    text-align: left;
    margin-left: 4px;
}

.gnozis-lang-btn .lang-arrow-icon {
    color: var(--gnozis-text-muted);
    transition: transform 0.2s;
}

.gnozis-lang-switcher.open {
    z-index: 100;
}

.gnozis-lang-switcher.open .lang-arrow-icon {
    transform: rotate(180deg);
}

.gnozis-lang-list {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0C1322;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-card);
    border-radius: var(--gnozis-radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(96, 120, 144, 0.15);
    list-style: none;
    padding: 6px;
    display: none;
    z-index: 100;
}

.gnozis-lang-switcher.open .gnozis-lang-list {
    display: block;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gnozis-lang-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--gnozis-radius-sm);
    color: var(--gnozis-text-secondary);
    font-size: 0.82rem;
    transition: var(--gnozis-transition-fast);
}

.gnozis-lang-list li a:hover,
.gnozis-lang-list li.active a {
    background: rgba(96, 120, 144, 0.16);
    color: var(--gnozis-text-primary);
}

.gnozis-lang-list li .code {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--gnozis-text-muted);
    font-weight: 600;
}

/* Компактна картка користувача */
.gnozis-current-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gnozis-border-subtle);
    border-radius: var(--gnozis-radius-md);
}

.user-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-card);
}

/* Universal User Online Status Indicators */
.user-status-badge {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    box-sizing: content-box;
}

.user-status-badge.online {
    background-color: #10B981 !important;
    border: 2px solid #0b131e !important;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4), 0 0 8px rgba(16, 185, 129, 0.7) !important;
}

.user-status-badge.offline {
    background-color: #64748b !important;
    border: 2px solid #0b131e !important;
    box-shadow: none !important;
    opacity: 0.85 !important;
}

.member-avatar-wrap,
.author-avatar-wrap,
.comment-avatar-wrap,
.dialog-avatar-wrap,
.interlocutor-avatar-wrap,
.omni-item-avatar,
.friend-mini-avatar-wrap,
.profile-avatar-wrap,
.user-avatar-wrap {
    position: relative !important;
    overflow: visible !important;
}

.author-avatar-wrap .user-status-badge,
.comment-avatar-wrap .user-status-badge,
.omni-item-avatar .user-status-badge,
.friend-mini-avatar-wrap .user-status-badge {
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-width: 1.5px;
}

.dialog-avatar-wrap .user-status-badge {
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    border-width: 2px;
}

.profile-avatar-wrap .user-status-badge {
    width: 16px;
    height: 16px;
    bottom: 6px;
    right: 6px;
    border-width: 2.5px;
}

.user-status-dot,
.dialog-status,
.friend-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--gnozis-bg-deep, #0b131e);
    box-sizing: content-box;
}

.user-status-dot.online,
.dialog-status.online,
.friend-online-dot.online,
.friend-online-dot:not(.offline) {
    background: #10B981 !important;
    background-color: #10B981 !important;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4), 0 0 8px rgba(16, 185, 129, 0.7) !important;
}

.user-status-dot.offline,
.dialog-status.offline,
.friend-online-dot.offline {
    background: #64748b !important;
    background-color: #64748b !important;
    box-shadow: none !important;
    opacity: 0.85 !important;
}

/* Бейджі-пігулки статусу (Профіль, Учасники, Модерація, Пошук тощо) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 500;
    line-height: 1.2;
}

.status-pill.status-online,
.interlocutor-rank.status-online,
.interaction-user-status.status-online {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.status-pill.status-offline,
.interlocutor-rank.status-offline,
.interaction-user-status.status-offline {
    color: #94a3b8 !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.user-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-rank {
    font-size: 0.72rem;
    color: var(--gnozis-text-muted);
}

.btn-login-quick {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    padding: 5px 12px;
    border-radius: var(--gnozis-radius-sm);
    background: rgba(120, 152, 184, 0.1);
    border: 1px solid rgba(120, 152, 184, 0.3);
    transition: var(--gnozis-transition);
}

.btn-login-quick:hover {
    background: rgba(120, 152, 184, 0.2);
    box-shadow: 0 0 10px rgba(120, 152, 184, 0.3);
    color: #E0E8F0;
}

.btn-logout {
    color: var(--gnozis-text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--gnozis-radius-sm);
    transition: var(--gnozis-transition);
}

.btn-logout:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   FILE: navigation/sidebar-right.css
   ========================================================================== */
/* ==========================================================================
   7. ПРАВИЙ САЙДБАР (Enhanced E-Commerce Showcase + Celestial Widgets)
   ========================================================================== */

.gnozis-right-sticky {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Головна картка Артефакту Дня (Компактний вигляд для збереження висоти сайдбару) */
.gnozis-shop-showcase-card {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0d1522;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--gnozis-radius-lg, 16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.shop-widget-header {
    margin-bottom: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.shop-widget-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    width: 100%;
}

.shop-header-title-box {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 0;
}

.shop-header-sigil {
    color: #38bdf8;
    font-size: 0.82rem;
    line-height: 1;
    flex-shrink: 0;
}

.shop-header-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.shop-hit-badge,
.badge-rarity {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    font-size: 0.60rem;
    font-weight: 700;
    padding: 1px 6px;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
}

.shop-header-link-all,
.link-view-all {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    transition: all 0.2s ease;
}

.shop-header-link-all:hover,
.link-view-all:hover {
    color: #38bdf8;
    transform: translateX(2px);
}

/* Компактний фрейм зображення товару */
.featured-artifact-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.artifact-svg-frame {
    position: relative;
    width: 100%;
    min-height: 135px;
    max-height: 155px;
    border-radius: var(--gnozis-radius-md, 12px);
    overflow: hidden;
    background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.1) 0%, rgba(15, 23, 42, 0.6) 60%, rgba(10, 15, 26, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.artifact-svg-frame .card-badge-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.3;
}

.artifact-showcase-img {
    max-width: 100%;
    max-height: 135px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
    transition: transform 0.3s ease;
}

.featured-img-link:hover .artifact-showcase-img {
    transform: scale(1.05);
}

/* Ambient glow */
.artifact-ambient-cobalt-glow,
.artifact-ambient-violet-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.artifact-meta-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.artifact-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
    line-height: 1.25;
    margin: 0;
}

.artifact-description {
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--gnozis-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Ціна та мультивалютний перемикач */
.artifact-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 4px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--gnozis-border-subtle);
    border-radius: var(--gnozis-radius-md);
    flex-wrap: nowrap;
    overflow: hidden;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    min-width: 0;
    flex-shrink: 1;
}

.price-label {
    font-size: 0.72rem;
    color: var(--gnozis-text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}

.price-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-val.price-sale {
    color: #ef4444;
}

.price-val-old {
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-discount-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    padding: 2px 5px;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.currency-pills-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 16, 32, 0.6);
    padding: 2px;
    border-radius: var(--gnozis-radius-sm);
    border: 1px solid var(--gnozis-border-subtle);
    flex-shrink: 0;
    white-space: nowrap;
}

.currency-pill {
    background: transparent;
    border: none;
    color: var(--gnozis-text-tertiary);
    font-size: 0.64rem;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    transition: var(--gnozis-transition-fast);
}

/* Currency pill active — cobalt */
.currency-pill.active {
    background: rgba(96, 120, 144, 0.35);
    color: #E0E8F0;
    box-shadow: 0 0 8px rgba(96, 120, 144, 0.45);
}

/* Секція кнопок CTA артефакту */
.artifact-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 2px;
}

.artifact-cta-grid .btn-buy-instant {
    padding: 6px 8px;
    font-size: 0.76rem;
}

.artifact-cta-grid .btn-add-cart {
    padding: 6px 8px;
    font-size: 0.76rem;
}

/* Міні-вітрина додаткових артефактів (Компактні картки 2 & 3) */
.shop-secondary-artifacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--gnozis-border-subtle);
}

.artifact-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gnozis-border-subtle);
    border-radius: var(--gnozis-radius-md);
    transition: var(--gnozis-transition);
}

.artifact-mini-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.mini-thumb {
    width: 38px;
    height: 38px;
    border-radius: var(--gnozis-radius-sm);
    overflow: hidden;
    background: #101820;
    border: 1px solid var(--gnozis-border-card);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-thumb img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.mini-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mini-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-price {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.btn-mini-add {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-sm);
    color: var(--gnozis-text-secondary);
    padding: 6px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--gnozis-transition);
}

/* Mini cart button hover — cobalt */
.btn-mini-add:hover {
    background: rgba(96, 120, 144, 0.20);
    border-color: rgba(96, 120, 144, 0.45);
    color: #E0E8F0;
}

/* Віджети: Фаза Ефіру та Провідники Знання */
.gnozis-mystic-widget {
    padding: 18px 20px;
}

.widget-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.widget-chevron {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    line-height: 1;
}

.widget-sigil {
    color: var(--accent-violet-light);
    font-size: 0.9rem;
}

.widget-title-glow {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(120, 152, 184, 0.35);
}

.widget-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
}

/* Віджет Місяця */
.lunar-content-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lunar-moon-visual {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lunar-crescent-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(120, 152, 184, 0.5));
}

.lunar-cyan-aura {
    position: absolute;
    inset: 4px;
    background: radial-gradient(circle, rgba(120, 152, 184, 0.3) 0%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.lunar-info-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lunar-phase-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
}

.lunar-phase-text {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--gnozis-text-muted);
}

/* Віджет Провідників Знання */
.mentors-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mentor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--gnozis-radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gnozis-border-subtle);
    transition: var(--gnozis-transition);
}

.mentor-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.mentor-avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mentor-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mentor-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mentor-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
}

.mentor-role {
    font-size: 0.72rem;
    color: var(--gnozis-text-muted);
}

.btn-mentor-connect {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-sm);
    color: var(--accent-cyan);
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gnozis-transition);
}

.btn-mentor-connect:hover {
    background: rgba(120, 152, 184, 0.15);
    border-color: rgba(120, 152, 184, 0.4);
    box-shadow: 0 0 10px rgba(120, 152, 184, 0.25);
}

/* ==========================================================================
   FILE: navigation/popovers.css
   ========================================================================== */
/* ==========================================================================
   НОВІ СТИЛІ: Спливаючі сповіщення (Top Notifications Popover)
   ========================================================================== */
.gnozis-notifications-popover {
    position: fixed;
    top: 60px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    z-index: 100005;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: popoverSlideIn 0.2s ease;
}

.gnozis-notifications-popover.open {
    display: flex;
}

@keyframes popoverSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notif-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.popover-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popover-title-row h5 {
    font-size: 0.95rem;
    color: var(--gnozis-text-primary);
    margin: 0;
}

.popover-unread-badge {
    background: var(--accent-gradient-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.btn-popover-mark-read {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gnozis-text-secondary);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-popover-mark-read:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.08);
}

.notif-popover-body {
    padding: 8px 0;
    overflow-y: auto;
    max-height: 380px;
}

.gnozis-dropdown-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
    position: relative;
}

.gnozis-dropdown-notif-item:hover {
    background: rgba(56, 189, 248, 0.06);
}

.gnozis-dropdown-notif-item.unread {
    background: rgba(56, 189, 248, 0.04);
}

.gnozis-dropdown-notif-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-cyan);
}

.notif-sigil-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notif-sigil-icon.sigil-cyan {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.notif-sigil-icon.sigil-steel {
    background: rgba(96, 120, 144, 0.15);
    border-color: rgba(96, 120, 144, 0.3);
    color: #7898b8;
}

.notif-sigil-icon.sigil-amber {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.notif-sigil-icon.sigil-emerald {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.notif-details {
    flex: 1;
}

.notif-details .notif-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--gnozis-text-primary);
    margin-bottom: 4px;
}

.notif-details .notif-text strong {
    color: #fff;
}

.notif-details .notif-timestamp {
    font-size: 0.7rem;
    color: var(--gnozis-text-tertiary);
}

/* Friend Request Inline Action Buttons in Notifications & Cards */
.notif-actions-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 6px 0 4px;
    flex-wrap: wrap;
}

.btn-notif-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.2;
    z-index: 2;
    position: relative;
}

.btn-notif-action.btn-notif-accept {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
    border-color: rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.btn-notif-action.btn-notif-accept:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(5, 150, 105, 0.6));
    border-color: rgba(16, 185, 129, 0.7);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

.btn-notif-action.btn-notif-decline {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--gnozis-text-secondary);
}

.btn-notif-action.btn-notif-decline:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    transform: translateY(-1px);
}

.badge-notif-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
}

.badge-notif-status.badge-status-accepted {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-notif-status.badge-status-handled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gnozis-text-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-toggle-friend.is-pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.btn-toggle-friend.is-pending:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.notif-popover-footer {
    padding: 10px 18px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.popover-view-all-link {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

.popover-view-all-link:hover {
    color: #7dd3fc;
}

.empty-notifs-box {
    padding: 30px 20px;
    text-align: center;
    color: var(--gnozis-text-tertiary);
    font-size: 0.85rem;
}

/* ==========================================================================
   FACEBOOK MESSENGER STYLE CHATS POPOVER (.gnozis-messages-popover)
   ========================================================================== */
.gnozis-messages-popover {
    position: fixed;
    top: 62px;
    right: 70px;
    width: 375px;
    max-width: calc(100vw - 24px);
    height: 540px;
    max-height: calc(100vh - 84px);
    background: linear-gradient(180deg, #090e18 0%, #060a12 100%);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 20px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.92), 0 0 30px rgba(56, 189, 248, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 100004;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: popoverSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.gnozis-messages-popover.open {
    display: flex;
}

.chats-popover-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 16px 12px;
    background: rgba(15, 23, 42, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.chats-popover-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chats-popover-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chats-brand-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 0.9rem;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
    flex-shrink: 0;
}

.chats-brand-meta {
    display: flex;
    flex-direction: column;
}

.chats-popover-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.chats-brand-sub {
    font-size: 0.68rem;
    color: #64748b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

.chats-popover-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chats-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.chats-action-btn:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.chats-popover-search-wrap {
    position: relative;
    width: 100%;
}

.chats-popover-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.chats-popover-search-input {
    width: 100%;
    height: 35px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 12px 0 34px;
    color: #f8fafc;
    font-size: 0.82rem;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.chats-popover-search-input:focus {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.chats-popover-search-input::placeholder {
    color: #475569;
}

.chats-popover-filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.35);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chats-filter-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 7px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chats-filter-tab:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.chats-filter-tab.active {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.chats-filter-tab .tab-glyph {
    font-size: 0.72rem;
    opacity: 0.85;
}

.chats-popover-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.chats-popover-body::-webkit-scrollbar {
    width: 5px;
}

.chats-popover-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 10px;
}

.chats-popover-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    margin: 2px 4px;
    cursor: pointer;
    position: relative;
    background: transparent;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.chats-popover-item:hover {
    background: rgba(56, 189, 248, 0.08);
    border-left-color: #38bdf8;
    transform: translateX(2px);
}

.chats-popover-item.is-unread {
    background: rgba(56, 189, 248, 0.05);
    border-left-color: rgba(56, 189, 248, 0.75);
}

.chats-item-avatar-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.chats-item-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.chats-item-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #090e18;
    box-shadow: 0 0 8px #10b981;
}

.chats-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chats-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chats-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chats-item-time {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
}

.chats-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chats-item-snippet {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.chats-item-unread-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.chats-empty-state {
    padding: 36px 16px;
    text-align: center;
    color: #64748b;
}

.chats-empty-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.chats-empty-state p {
    margin: 0;
    font-size: 0.86rem;
}

.chats-popover-footer {
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.25);
    text-align: center;
}

.chats-popover-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.chats-popover-view-all:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.45);
    color: #f8fafc;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.18);
    transform: translateY(-1px);
    text-decoration: none;
}

.chats-popover-view-all .btn-sparkle {
    font-size: 0.85rem;
    color: #38bdf8;
    transition: transform 0.2s ease;
}

.chats-popover-view-all:hover .btn-sparkle {
    transform: rotate(15deg) scale(1.15);
    color: #7dd3fc;
}

.chats-popover-view-all svg {
    transition: transform 0.2s ease;
}

.chats-popover-view-all:hover svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .gnozis-messages-popover {
        right: 12px !important;
        top: 56px !important;
        width: calc(100vw - 24px) !important;
        max-width: none !important;
        height: 480px !important;
    }
}

/* ==========================================================================
   FILE: modules/composer.css
   ========================================================================== */
/* ==========================================================================
   COMPOSER DESTINATION & WALL BADGES
   ========================================================================== */
.composer-destination-select-wrap {
    margin-left: 8px;
}

.composer-destination-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 12px;
    color: var(--gnozis-text-secondary);
    font-size: 0.78rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.composer-destination-select:hover,
.composer-destination-select:focus {
    border-color: var(--accent-cyan);
    color: var(--gnozis-text-primary);
    background: rgba(56, 189, 248, 0.08);
}

.composer-destination-select option,
.composer-destination-select optgroup {
    background: #0d1424;
    color: #e2e8f0;
}

.wall-target-arrow {
    color: var(--accent-cyan);
    font-size: 0.75rem;
    margin: 0 4px;
}

.wall-target-link {
    text-decoration: none;
}

.wall-target-name {
    color: var(--accent-cyan);
    font-size: 0.95rem;
}

.group-target-pill {
    margin-left: 6px;
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 2px 8px;
    border-radius: 12px;
}

.group-target-pill a {
    color: #7dd3fc;
    text-decoration: none;
}

.wall-dest-badge {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   CART DRAWER (MODERN SLIDE-OUT PANEL & ITEM MANAGEMENT)
   ========================================================================== */
.gnozis-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000005 !important;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s ease;
}

.gnozis-cart-drawer.open {
    visibility: visible;
    pointer-events: auto;
}

.gnozis-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 16, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gnozis-cart-drawer.open .gnozis-drawer-overlay {
    opacity: 1;
}

.gnozis-cart-drawer-inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 92vw;
    background: #0b121e;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.gnozis-cart-drawer.open .gnozis-cart-drawer-inner {
    transform: translateX(0);
}

.gnozis-drawer-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-sigil {
    font-size: 1.25rem;
}

.drawer-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.drawer-badge {
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gnozis-drawer-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.gnozis-drawer-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: scale(1.05);
}

.gnozis-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.gnozis-drawer-body::-webkit-scrollbar {
    width: 5px;
}
.gnozis-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}
.gnozis-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.gnozis-drawer-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gnozis-drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
    transition: all 0.25s ease;
    position: relative;
}

.gnozis-drawer-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.gnozis-drawer-item.removing {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

.item-thumb {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #141e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.item-thumb img,
.item-thumb svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-title {
    margin: 0 0 4px 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.item-price {
    color: #38bdf8;
    font-weight: 700;
}

.item-qty {
    color: #64748b;
    font-size: 0.76rem;
}

.btn-drawer-remove-item {
    background: transparent;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.btn-drawer-remove-item:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    transform: scale(1.08);
}

.btn-drawer-remove-item:active {
    transform: scale(0.95);
}

.gnozis-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px;
    gap: 10px;
    color: #64748b;
}

.gnozis-drawer-empty .empty-sigil {
    font-size: 2.8rem;
    margin-bottom: 6px;
    opacity: 0.6;
}

.gnozis-drawer-empty h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 600;
}

.gnozis-drawer-empty p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 260px;
}

.gnozis-drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 16, 26, 0.95);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.drawer-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #94a3b8;
}

.drawer-total-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.drawer-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.drawer-checkout-btn:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}


/* ==========================================================================
   POST TEXT BACKGROUNDS & COMPOSER PALETTE
   ========================================================================== */

/* Панель вибору фону допису */
.composer-bg-palette {
    background: rgba(14, 22, 34, 0.95);
    border: 1px solid var(--border-card, #2A3B4C);
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 12px;
    animation: gnozisBgPaletteFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.bg-palette-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bg-palette-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-close-bg-palette {
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.btn-close-bg-palette:hover {
    color: #F1F5F9;
}

.bg-palette-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bg-palette-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding: 4px 2px;
}

.bg-palette-item {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    outline: none;
    padding: 0;
}

.bg-palette-item:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.bg-palette-item.active {
    border-color: #38bdf8 !important;
    transform: scale(1.18);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    z-index: 3;
}

.bg-palette-item.bg-item-none {
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

/* Визначення фонових пресетів для кнопок */
.bg-item-sky {
    background: #f0f9ff url('../images/post-backgrounds/sky.webp') center/cover no-repeat;
    border-color: rgba(255, 255, 255, 0.35);
}
.bg-item-parchment {
    background: radial-gradient(circle at 50% 30%, #fffdf8 0%, #f7f1e5 55%, #ede2ce 100%);
    border-color: rgba(255, 255, 255, 0.35);
}
.bg-item-cotton {
    background: radial-gradient(circle at 50% 30%, #ffffff 0%, #fef3c7 45%, #fed7aa 100%);
    border-color: rgba(255, 255, 255, 0.35);
}
.bg-item-celebration {
    background: #120c04 url('../images/post-backgrounds/celebration.webp') center/cover no-repeat;
}
.bg-item-gold {
    background: #1c1404 url('../images/post-backgrounds/gold.webp') center/cover no-repeat;
}
.bg-item-sunset {
    background: radial-gradient(circle at 50% 30%, #831843 0%, #4c0519 50%, #1a030c 100%);
}
.bg-item-aurora {
    background: radial-gradient(circle at 50% 30%, #065f46 0%, #064e3b 50%, #022c22 100%);
}
.bg-item-nebula {
    background: #0d081e url('../images/post-backgrounds/nebula.webp') center/cover no-repeat;
}
.bg-item-emerald {
    background: #041a12 url('../images/post-backgrounds/emerald.webp') center/cover no-repeat;
}
.bg-item-eclipse {
    background: #1a0508 url('../images/post-backgrounds/eclipse.webp') center/cover no-repeat;
}
.bg-item-amethyst {
    background: radial-gradient(circle at 50% 35%, #581c60 0%, #240a2a 55%, #0e0212 100%);
}
.bg-item-cyber {
    background: radial-gradient(circle at 50% 35%, #0b5570 0%, #062030 55%, #020d14 100%);
}
.bg-item-abyss {
    background: radial-gradient(circle at 50% 40%, #1e3a5f 0%, #0c1827 55%, #050b12 100%);
}
.bg-item-sacred {
    background: radial-gradient(circle at 50% 50%, #2b243b 0%, #13101c 60%, #08060c 100%);
}
.bg-item-minimal {
    background: radial-gradient(circle at 50% 40%, #334155 0%, #1e293b 60%, #0f172a 100%);
}

/* Стан поля створення допису при увімкненому фоні */
.composer-input-wrap.has-bg {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.composer-input-wrap.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    pointer-events: none;
    z-index: 1;
}

.composer-input-wrap.has-bg .composer-textarea {
    min-height: 170px;
    padding: 36px 48px 36px 24px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.9);
    z-index: 2;
    position: relative;
    line-height: 1.45;
}

.composer-input-wrap.has-bg .composer-textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
    text-shadow: none;
}

.composer-input-wrap.has-bg .gnozis-emoji-btn {
    z-index: 3;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

/* ==========================================================================
   ПОЛОТНО ДОПИСУ В СТРІЧЦІ (Post Background Canvas)
   ========================================================================== */
.post-bg-canvas {
    min-height: 220px;
    border-radius: 14px;
    padding: 38px 30px;
    margin: 10px 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08);
}

.post-bg-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    z-index: 1;
}

.post-bg-text-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    font-size: 1.32rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.9);
    word-break: break-word;
}

.post-bg-text-content a {
    color: #93C5FD;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    transition: color 0.15s ease;
}

.post-bg-text-content a:hover {
    color: #FFFFFF;
}

/* Класи для фонів (для composer і для post-bg-canvas) */
.gnozis-bg-abyss {
    background: radial-gradient(circle at 50% 40%, #1e3a5f 0%, #0c1827 55%, #050b12 100%) !important;
}
.gnozis-bg-nebula {
    background: #0d081e url('../images/post-backgrounds/nebula.webp') center/cover no-repeat !important;
}
.gnozis-bg-emerald {
    background: #041a12 url('../images/post-backgrounds/emerald.webp') center/cover no-repeat !important;
}
.gnozis-bg-eclipse {
    background: #1a0508 url('../images/post-backgrounds/eclipse.webp') center/cover no-repeat !important;
}
.gnozis-bg-gold {
    background: #1c1404 url('../images/post-backgrounds/gold.webp') center/cover no-repeat !important;
}
.gnozis-bg-amethyst {
    background: radial-gradient(circle at 50% 35%, #581c60 0%, #240a2a 55%, #0e0212 100%) !important;
}
.gnozis-bg-cyber {
    background: radial-gradient(circle at 50% 35%, #0b5570 0%, #062030 55%, #020d14 100%) !important;
}
.gnozis-bg-sacred {
    background: radial-gradient(circle at 50% 50%, #2b243b 0%, #13101c 60%, #08060c 100%) !important;
}
.gnozis-bg-celebration {
    background: #120c04 url('../images/post-backgrounds/celebration.webp') center/cover no-repeat !important;
}
.gnozis-bg-sunset {
    background: radial-gradient(circle at 50% 30%, #831843 0%, #4c0519 50%, #1a030c 100%) !important;
}
.gnozis-bg-aurora {
    background: radial-gradient(circle at 50% 30%, #065f46 0%, #064e3b 50%, #022c22 100%) !important;
}
.gnozis-bg-minimal {
    background: radial-gradient(circle at 50% 40%, #334155 0%, #1e293b 60%, #0f172a 100%) !important;
}
.gnozis-bg-sky {
    background: #f0f9ff url('../images/post-backgrounds/sky.webp') center/cover no-repeat !important;
}
.gnozis-bg-parchment {
    background: radial-gradient(circle at 50% 30%, #fffdf8 0%, #f7f1e5 55%, #ede2ce 100%) !important;
}
.gnozis-bg-cotton {
    background: radial-gradient(circle at 50% 30%, #ffffff 0%, #fef3c7 45%, #fed7aa 100%) !important;
}

/* ==========================================================================
   СВІТЛІ ФОНИ: Контрастний темний шрифт та оформлення
   ========================================================================== */
.post-bg-canvas.gnozis-bg-is-light::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
}

.post-bg-canvas.gnozis-bg-is-light .post-bg-text-content {
    color: #1c1917 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

.post-bg-canvas.gnozis-bg-is-light .post-bg-text-content a {
    color: #b45309 !important;
    text-shadow: none !important;
}

.composer-input-wrap.has-bg.gnozis-bg-is-light::before {
    background: rgba(255, 255, 255, 0.35) !important;
}

.composer-input-wrap.has-bg.gnozis-bg-is-light .composer-textarea {
    color: #1c1917 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9) !important;
}

.composer-input-wrap.has-bg.gnozis-bg-is-light .composer-textarea::placeholder {
    color: rgba(28, 25, 23, 0.6) !important;
    text-shadow: none !important;
}

.composer-input-wrap.has-bg.gnozis-bg-is-light .gnozis-emoji-btn {
    color: #1c1917 !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   FILE: modules/post-card.css
   ========================================================================== */
/* ==========================================================================
   6. ЦЕНТРАЛЬНА КОЛОНКА (Community Feed & Interactive Core)
   ========================================================================== */

.gnozis-col-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Блок створення допису (Composer) */
.gnozis-composer-card {
    padding: 18px 20px;
}

.composer-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.composer-avatar-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-card);
}

.composer-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.composer-input-wrap {
    position: relative;
    flex-grow: 1;
    width: 100%;
}

.composer-textarea {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--gnozis-text-primary);
    font-family: var(--gnozis-font-body);
    font-size: 0.92rem;
    line-height: 1.5;
    resize: none;
    min-height: 44px;
    padding-top: 8px;
    padding-right: 48px !important;
    width: 100%;
    box-sizing: border-box;
}

.composer-textarea::placeholder {
    color: #506070;
}

.composer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--gnozis-border-subtle);
}

.composer-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.composer-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--gnozis-radius-md);
    color: var(--gnozis-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--gnozis-transition);
}

.composer-tool-btn:hover {
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-card);
}

.composer-privacy-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-full);
    color: var(--gnozis-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--gnozis-transition);
}

.composer-privacy-pill:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--gnozis-text-primary);
}

.btn-publish-post,
.btn-publish-wall-post,
.btn-publish-group-post {
    padding: 8px 18px;
    font-size: 0.84rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-publish-post .btn-plus {
    font-size: 1.1rem;
    line-height: 1;
    margin-left: 2px;
}

/* ==========================================================================
   Панель створення опитування в Composer (Cyber-Mystic Poll Creator)
   ========================================================================== */
.composer-poll-box {
    margin-top: 14px;
    padding: 14px 16px;
    background: linear-gradient(145deg, rgba(14, 22, 38, 0.75) 0%, rgba(8, 13, 24, 0.9) 100%);
    border: 1px solid rgba(120, 152, 184, 0.22);
    border-radius: var(--gnozis-radius-md, 12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeInPollDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInPollDrawer {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.poll-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(120, 152, 184, 0.12);
}

.poll-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.poll-icon-wrap {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(120, 152, 184, 0.12);
    border: 1px solid rgba(120, 152, 184, 0.28);
    color: var(--accent-cyan, #7898b8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(120, 152, 184, 0.15);
}

.poll-box-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--gnozis-text-primary, #e2e8f0);
    margin: 0;
    letter-spacing: 0.02em;
}

.btn-close-poll {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-close-poll:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
    transform: rotate(90deg);
}

.poll-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    animation: fadeInPollDrawer 0.2s ease-out;
}

.poll-option-idx {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(120, 152, 184, 0.1);
    border: 1px solid rgba(120, 152, 184, 0.25);
    color: var(--accent-cyan, #7898b8);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.poll-option-input-wrap .poll-input {
    flex-grow: 1;
    height: 38px;
    background: #090e1a;
    border: 1px solid rgba(120, 152, 184, 0.22);
    border-radius: var(--gnozis-radius-sm, 8px);
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 0 12px;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.poll-option-input-wrap .poll-input:focus {
    border-color: rgba(120, 152, 184, 0.6);
    box-shadow: 0 0 12px rgba(120, 152, 184, 0.25);
    background: #0d1527;
}

.poll-option-input-wrap .poll-input::placeholder {
    color: #475569;
}

.btn-remove-poll-option {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.btn-remove-poll-option:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.poll-box-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(120, 152, 184, 0.15);
}

.btn-add-poll-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(120, 152, 184, 0.08);
    border: 1px dashed rgba(120, 152, 184, 0.35);
    border-radius: var(--gnozis-radius-sm, 8px);
    color: var(--accent-cyan, #7898b8);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-poll-option:hover {
    background: rgba(120, 152, 184, 0.18);
    border-color: rgba(120, 152, 184, 0.6);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(120, 152, 184, 0.2);
}

.btn-add-poll-option .plus-icon {
    font-size: 0.95rem;
    font-weight: 700;
}

.poll-options-limit-hint {
    font-size: 0.72rem;
    color: #64748b;
    user-select: none;
}

/* Активна кнопка виклику опитування в панелі інструментів */
.composer-tool-btn.active {
    color: var(--accent-cyan, #7898b8);
    background: rgba(120, 152, 184, 0.15);
    border-color: rgba(120, 152, 184, 0.35);
    box-shadow: 0 0 8px rgba(120, 152, 184, 0.2);
}

/* ==========================================================================
   Guest Composer Banner (Заклик до авторизації на головній стрічці)
   ========================================================================== */
.gnozis-guest-composer-banner {
    padding: 20px 24px !important;
    margin-bottom: 20px !important;
    background: linear-gradient(135deg, rgba(16, 24, 38, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    border-radius: var(--gnozis-radius-lg, 16px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.05) !important;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.gnozis-guest-composer-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
    pointer-events: none;
}

.guest-composer-banner-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.guest-composer-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
}

.guest-composer-icon {
    font-size: 1.45rem;
    line-height: 1;
}

.guest-composer-body {
    flex: 1;
    min-width: 0;
}

.guest-composer-title {
    margin: 0 0 5px 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.guest-composer-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #94a3b8;
}

.guest-composer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-guest-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
    font-family: inherit;
}

.btn-guest-login {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-guest-login:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-guest-register {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn-guest-register:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8 !important;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .guest-composer-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .guest-composer-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .btn-guest-action {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gnozis-guest-composer-banner {
        padding: 16px !important;
        margin-bottom: 16px !important;
    }

    .guest-composer-icon-wrap {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .guest-composer-icon {
        font-size: 1.25rem;
    }

    .guest-composer-title {
        font-size: 1rem;
    }

    .guest-composer-desc {
        font-size: 0.82rem;
    }

    .guest-composer-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .btn-guest-action {
        padding: 9px 12px;
        font-size: 0.84rem;
    }
}

/* ==========================================================================
   Прев'ю медіафайлів у Composer (Фото / Відео)
   ========================================================================== */
.composer-media-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(14, 22, 38, 0.75) 0%, rgba(8, 13, 24, 0.9) 100%);
    border: 1px solid rgba(120, 152, 184, 0.22);
    border-radius: var(--gnozis-radius-md, 12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    animation: fadeInPollDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.composer-media-preview-item {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    background: #090e1a;
    border: 1px solid rgba(120, 152, 184, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.composer-media-preview-item.item-is-audio {
    width: auto;
    height: auto;
    min-width: 200px;
    max-width: 280px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.composer-media-preview-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-cyan, #7898b8);
}

.preview-media-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.preview-media-inner img,
.preview-media-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-video-tag {
    position: absolute;
    bottom: 4px;
    left: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.75);
    color: #38bdf8;
    padding: 1px 4px;
    border-radius: 4px;
    pointer-events: none;
}

.btn-remove-media-item {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    z-index: 10;
}

.btn-remove-media-item:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.media-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 9px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #ffffff;
    margin-left: 2px;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

/* ==========================================================================
   Медіа галерея у постах (Post Media Gallery & Videos)
   ========================================================================== */
.post-media-gallery {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    gap: 8px;
}

.post-media-gallery.media-grid-1 {
    display: block;
}

.post-media-gallery.media-grid-1 .post-media-item {
    max-height: 520px;
    border-radius: 10px;
    overflow: hidden;
    background: #090e1a;
}

.post-media-gallery.media-grid-1 .post-media-img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #050912;
    display: block;
}

.post-media-gallery.media-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.post-media-gallery.media-grid-2 .post-media-item {
    height: 240px;
}

.post-media-gallery.media-grid-3 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, 140px);
}

.post-media-gallery.media-grid-3 .post-media-item:first-child {
    grid-row: span 2;
    height: 100%;
}

.post-media-gallery.media-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 180px);
}

.post-media-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #090e1a;
    border: 1px solid rgba(120, 152, 184, 0.15);
}

.post-media-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.post-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.post-media-item:hover .post-media-img {
    transform: scale(1.025);
    filter: brightness(1.06);
}

/* Оверлей на 4-му фото при кількості більше 4 (+N) */
.post-media-item.has-more-overlay .post-media-link {
    position: relative;
}

.post-media-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 18, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 2;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.post-media-item:hover .post-media-more-overlay {
    background: rgba(8, 16, 28, 0.58);
    border-color: rgba(56, 189, 248, 0.6);
}

.more-count-badge {
    font-size: 1.85rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 16px rgba(56, 189, 248, 0.45);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-media-item:hover .more-count-badge {
    transform: scale(1.08);
}

.post-media-videos {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-video-item {
    border-radius: 12px;
    overflow: hidden;
    background: #050912;
    border: 1px solid rgba(120, 152, 184, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.post-video-player {
    width: 100%;
    max-height: 480px;
    display: block;
    background: #000;
    outline: none;
}

/* Вбудовані відео YouTube у дописах та коментарях */
.post-media-youtube-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.post-youtube-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #050912;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.post-youtube-embed:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.15);
}

.post-youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.comment-youtube-embed {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #050912;
    margin-top: 8px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.comment-youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Лайтбокс перегляду повнорозмірних фото з навігацією */
.gnozis-media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gnozis-media-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 16, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 86vw;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.75), 0 0 24px rgba(14, 165, 233, 0.25);
    border: 1px solid rgba(120, 152, 184, 0.3);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.lightbox-image.is-changing {
    opacity: 0.35;
    transform: scale(0.98);
}

/* Кнопки перегортання (Previous / Next) */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(11, 20, 34, 0.78);
    border: 1px solid rgba(120, 152, 184, 0.3);
    color: #FFFFFF;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    user-select: none;
    outline: none;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-nav-btn:hover {
    background: #112033;
    border-color: #38BDF8;
    color: #38BDF8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn:active {
    transform: translateY(-50%) scale(0.94);
}

/* Лічильник поточної фотографії (1 / 7) */
.lightbox-counter {
    position: absolute;
    top: 22px;
    left: 24px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #E2E8F0;
    background: rgba(11, 20, 34, 0.78);
    border: 1px solid rgba(120, 152, 184, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.04em;
    z-index: 10;
}

.lightbox-close {
    position: absolute;
    top: -42px;
    right: -10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .tab-label-desktop {
        display: none !important;
    }

    .tab-label-mobile {
        display: inline !important;
    }

    .lightbox-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        top: 14px;
        left: 14px;
        font-size: 0.78rem;
        padding: 4px 10px;
    }

    .lightbox-close {
        top: -36px;
        right: 0;
    }
}

/* Стрічка дописів */
.gnozis-feed-stream {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Картка допису (Post Card) */
.gnozis-post-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-author-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.author-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0d1527;
}

.author-ethereal-halo {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 43, 60, 0.4) 0%, transparent 70%);
    filter: blur(4px);
    pointer-events: none;
}

.author-ethereal-halo.halo-cyan {
    background: radial-gradient(circle, rgba(120, 152, 184, 0.4) 0%, transparent 70%);
}

.author-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.author-name {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
}

.rank-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: var(--gnozis-radius-xs);
    text-transform: uppercase;
}

.rank-admin,
.rank-magister {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.rank-moderator,
.rank-adept {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.post-time {
    font-size: 0.78rem;
    color: var(--gnozis-text-tertiary);
}

/* ==========================================================================
   Опції допису (3 крапки, Редагування, Видалення)
   ========================================================================== */
.post-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.post-card-header,
.post-header-row {
    position: relative;
    z-index: 5;
}

/* Підвищуємо рівень картки допису над наступними дописами при відкритому меню */
.gnozis-card:has(.post-options-dropdown-wrap.active),
.gnozis-post-card:has(.post-options-dropdown-wrap.active),
.revelation-post-card:has(.post-options-dropdown-wrap.active),
article:has(.post-options-dropdown-wrap.active),
.gnozis-card.menu-open,
.gnozis-post-card.menu-open,
.revelation-post-card.menu-open,
article.menu-open {
    position: relative !important;
    z-index: 99999 !important;
    overflow: visible !important;
}

.gnozis-card:has(.post-options-dropdown-wrap.active) .post-card-header,
.gnozis-post-card:has(.post-options-dropdown-wrap.active) .post-card-header,
.gnozis-card.menu-open .post-card-header,
.gnozis-post-card.menu-open .post-card-header,
.revelation-post-card.menu-open .post-card-header,
.post-card-header:has(.post-options-dropdown-wrap.active),
.post-card-header:has(.active) {
    position: relative !important;
    z-index: 99999 !important;
    overflow: visible !important;
}

.post-options-dropdown-wrap {
    position: relative;
    z-index: 10;
}

.post-options-dropdown-wrap.active {
    position: relative !important;
    z-index: 99999 !important;
}

.post-options-btn {
    background: transparent;
    border: none;
    color: var(--gnozis-text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--gnozis-radius-sm, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gnozis-transition);
}

.post-options-btn:hover,
.post-options-dropdown-wrap.active .post-options-btn {
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.post-options-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 215px;
    background: #0c1424 !important;
    border: 1px solid rgba(120, 152, 184, 0.35) !important;
    border-radius: var(--gnozis-radius-md, 12px) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 0, 0, 0.75) !important;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-options-dropdown-wrap.active .post-options-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    display: flex !important;
}

.post-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--gnozis-text-primary, #e2e8f0);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    font-family: inherit;
}

.post-menu-item:hover {
    background: rgba(120, 152, 184, 0.14);
    color: var(--accent-cyan, #7898b8);
}

.post-menu-item.item-danger {
    color: #f87171;
}

.post-menu-item.item-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* Індикатор редагування допису */
.post-edited-indicator {
    font-size: 0.74rem;
    color: var(--gnozis-text-muted, #64748b);
    font-style: italic;
    margin-left: 2px;
}

/* Інлайн редактор допису */
.post-inline-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 12px;
    animation: fadeInPollDrawer 0.2s ease;
}

.post-edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 14px;
    background: rgba(10, 16, 30, 0.95);
    border: 1px solid rgba(120, 152, 184, 0.35);
    border-radius: var(--gnozis-radius-md, 10px);
    color: var(--gnozis-text-primary, #f1f5f9);
    font-size: 0.94rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-edit-textarea:focus {
    border-color: rgba(120, 152, 184, 0.7);
    box-shadow: 0 0 12px rgba(120, 152, 184, 0.25);
}

.post-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.post-edit-actions button {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: var(--gnozis-radius-sm, 8px);
    cursor: pointer;
}

/* Бейдж поширеного допису */
.post-shared-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-bottom: 10px;
    background: rgba(120, 152, 184, 0.12);
    border: 1px solid rgba(120, 152, 184, 0.25);
    border-radius: var(--gnozis-radius-full, 20px);
    color: var(--accent-cyan, #7898b8);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--gnozis-transition);
}

.post-shared-badge svg {
    color: var(--accent-cyan, #7898b8);
    flex-shrink: 0;
}

.post-shared-badge .shared-author-link {
    color: #A8C8E8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease, text-decoration 0.18s ease;
}

.post-shared-badge .shared-author-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.post-text-body {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--gnozis-text-secondary);
}

.post-text-body:not(.is-expanded) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.post-text-body.is-expanded {
    display: block;
}

.btn-post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 2px 0;
    background: transparent;
    border: none;
    color: #60a5fa;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s ease, opacity 0.18s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-post-read-more:hover {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gnozis-post-card.has-truncatable-text .post-content {
    cursor: pointer;
}

/* Інтерактивне Опитування (Poll Widget) */
.gnozis-poll-widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 4px;
}

.poll-option-row {
    position: relative;
    border-radius: var(--gnozis-radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gnozis-border-subtle);
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--gnozis-transition);
}

.poll-option-row:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

/* Poll selected — cobalt glow */
.poll-option-row.selected-glow {
    border-color: rgba(96, 120, 144, 0.50);
    box-shadow: 0 0 20px -5px rgba(96, 120, 144, 0.30);
}

.poll-bar-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    border-radius: var(--gnozis-radius-md) 0 0 var(--gnozis-radius-md);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Провідна смуга опитування: Electric Cobalt */
.fill-glow-violet {
    background: linear-gradient(90deg, rgba(96, 120, 144, 0.65) 0%, rgba(56, 130, 246, 0.38) 100%);
    box-shadow: inset 0 0 12px rgba(96, 120, 144, 0.30);
}

.fill-dark-indigo {
    background: rgba(96, 120, 144, 0.16);
}

.fill-dark-cyan {
    background: rgba(120, 152, 184, 0.14);
}

.poll-content-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 500;
}

.poll-content-inner .poll-text {
    color: var(--gnozis-text-primary);
}

.poll-content-inner .poll-stat {
    color: var(--gnozis-text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

/* Медіа-фрейм допису (Обсидіанове дзеркало) */
.post-media-frame {
    position: relative;
    border-radius: var(--gnozis-radius-md);
    overflow: hidden;
    max-height: 260px;
    border: 1px solid var(--gnozis-border-card);
    background: #001020;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-media-img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.media-ambient-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(120, 152, 184, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 1;
}

/* Панель реакцій та статистики */
.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--gnozis-border-subtle);
}

.post-reactions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    width: auto;
}

@media (max-width: 768px) {
    .post-card-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .post-reactions-bar {
        justify-content: flex-start !important;
        align-self: flex-start !important;
        margin-right: auto !important;
    }
}

.reaction-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: var(--gnozis-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
    width: auto;
    max-width: fit-content;
}

.reaction-pill-btn:hover {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    transform: translateY(-1px);
}

/* Reaction pill active — Flame Aura (делікатна ненав'язлива підсвітка вогню) */
.reaction-pill-btn.active,
.reaction-pill-super.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.reaction-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.reaction-emoji {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reaction-pill-btn:hover .reaction-emoji {
    transform: scale(1.2) rotate(6deg);
}

.post-stats-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-stats-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--gnozis-text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--gnozis-transition);
}

.post-stats-link:hover {
    color: var(--gnozis-text-primary);
}

/* Comment thread border — cobalt */
.post-comments-thread {
    margin-top: 14px;
    padding-left: 16px;
    border-left: 1px solid rgba(96, 120, 144, 0.28);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.btn-show-all-comments {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-show-all-comments:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.btn-show-all-comments.is-expanded {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

.btn-show-all-comments.is-expanded:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

@keyframes hashGlowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
        border-color: #38bdf8;
    }

    50% {
        box-shadow: 0 0 24px 6px rgba(56, 189, 248, 0.45);
        border-color: #7dd3fc;
    }

    100% {
        box-shadow: none;
    }
}

.gnozis-hash-highlight {
    animation: hashGlowPulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 0;
}

.comment-avatar-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-card);
}

.comment-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-bubble {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--gnozis-border-subtle);
    border-radius: var(--gnozis-radius-md);
    padding: 10px 14px;
    flex-grow: 1;
}

.comment-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    min-width: 0;
}

.comment-author-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
    white-space: nowrap;
    word-break: keep-all;
}

.comment-time {
    font-size: 0.72rem;
    color: var(--gnozis-text-tertiary);
}

.comment-text {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--gnozis-text-secondary);
    margin: 0;
}

/* Кнопка та бар дій коментаря (Відповісти) */
.comment-footer-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 6px;
    padding-top: 2px;
}

.btn-reply-comment,
.btn-comment-action-link {
    background: transparent;
    border: none;
    color: var(--gnozis-text-muted, #7898B8);
    font-size: 0.76rem;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    flex-shrink: 0;
}

.btn-reply-comment svg,
.btn-comment-action-link svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.btn-reply-comment:hover,
.btn-comment-action-link:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-1px);
}

/* Реакція «Супер» (вогник 🔥) для коментарів */
.btn-comment-action-link.btn-like-comment {
    gap: 4px;
}

.btn-comment-action-link.btn-like-comment .comment-reaction-emoji {
    font-size: 0.85rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-comment-action-link.btn-like-comment:hover .comment-reaction-emoji {
    transform: scale(1.2);
}

.btn-comment-action-link.btn-like-comment.is-liked,
.btn-comment-action-link.btn-like-comment.active {
    color: #FDE68A;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.btn-comment-action-link.btn-like-comment:hover {
    color: #FDE68A;
    background: rgba(245, 158, 11, 0.12);
}

.comment-likes-count {
    font-weight: 700;
    font-size: 0.76rem;
    margin-left: 2px;
    pointer-events: none;
    user-select: none;
}

/* Міні-аватарки тих, хто відреагував на допис або коментар */
.reaction-avatars-pile,
.comment-reaction-avatars-pile {
    cursor: pointer;
    vertical-align: middle;
    align-items: center;
    display: inline-flex;
    margin-left: 6px;
}

.reaction-avatars-pile .reaction-mini-avatar,
.comment-reaction-avatars-pile .reaction-mini-avatar {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    border-radius: 50% !important;
    border: 1.5px solid #111a2e !important;
    margin-left: -6px !important;
    object-fit: cover !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    background: #1e293b !important;
    transition: transform 0.15s ease !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.reaction-avatars-pile .reaction-mini-avatar:first-child,
.comment-reaction-avatars-pile .reaction-mini-avatar:first-child {
    margin-left: 0 !important;
}

.reaction-avatars-pile:hover .reaction-mini-avatar,
.comment-reaction-avatars-pile:hover .reaction-mini-avatar {
    transform: scale(1.15);
}

/* Кнопка скарги на коментар */
.btn-comment-action-link.btn-open-report-comment-modal:hover {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}

/* Лічильник поширень біля кнопки поділитися */
.btn-share-post .share-count-val {
    margin-left: 3px;
    font-weight: 600;
    font-size: 0.82rem;
    color: inherit;
    opacity: 0.9;
}

/* Дерево коментарів та вкладених відповідей */
.comment-thread {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 6px !important;
}

.comment-replies-section {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Кнопка розгортання/згортання гілки відповідей */
.btn-toggle-replies {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-left: 42px;
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 4px 12px;
    border-radius: var(--gnozis-radius-full, 9999px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    align-self: flex-start;
}

.btn-toggle-replies:hover {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.btn-toggle-replies .reply-toggle-arrow {
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    stroke: currentColor;
}

.btn-toggle-replies.is-open .reply-toggle-arrow {
    transform: rotate(180deg);
}

/* Контейнер вкладених відповідей */
.comment-replies-wrap {
    margin-left: 42px;
    padding-left: 14px;
    border-left: 2px solid rgba(56, 189, 248, 0.25);
    margin-top: 6px;
    margin-bottom: 6px;
    width: calc(100% - 42px);
    box-sizing: border-box;
}

.comment-replies-wrap .replies-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.comment-item.is-reply-item {
    margin-top: 2px;
    gap: 8px;
    width: 100%;
}

.comment-item.is-reply-item .comment-avatar-wrap {
    width: 26px;
    height: 26px;
}

.comment-item.is-reply-item .comment-bubble {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.018);
    border-color: rgba(96, 120, 144, 0.2);
}

.comment-item.is-reply-item .comment-text {
    font-size: 0.82rem;
}

/* Поле вводу коментаря та плашка активної відповіді */
.comment-input-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 14px !important;
    padding-top: 2px;
    width: 100% !important;
    box-sizing: border-box !important;
}

.comment-replying-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 8px;
    font-size: 0.78rem;
    color: #7dd3fc;
    animation: replyBannerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes replyBannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-replying-info {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.replying-icon {
    color: #38bdf8;
    font-size: 0.9rem;
}

.replying-target-name {
    color: #38bdf8;
    font-weight: 600;
}

.btn-cancel-reply-mode {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.18s ease;
}

.btn-cancel-reply-mode:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
}

.comment-input-bottom-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.comment-input-wrap {
    position: relative !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.comment-input-field {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    background: rgba(16, 26, 38, 0.7);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-full);
    padding: 8px 68px 8px 16px !important;
    color: var(--gnozis-text-primary);
    font-family: var(--gnozis-font-body);
    font-size: 0.84rem;
    outline: none;
    box-sizing: border-box !important;
    transition: var(--gnozis-transition);
}

.comment-input-tools {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 2 !important;
}

.comment-input-tools .btn-attach-comment-media,
.comment-input-tools .gnozis-emoji-btn {
    position: static !important;
    transform: none !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    color: var(--gnozis-text-muted, #94a3b8) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.15s ease !important;
}

.comment-input-tools .btn-attach-comment-media:hover,
.comment-input-tools .gnozis-emoji-btn:hover {
    color: var(--accent-cyan, #38bdf8) !important;
    background: rgba(56, 189, 248, 0.12) !important;
}

.comment-input-tools .btn-attach-comment-media.has-files {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.18) !important;
}

.comment-input-wrap .gnozis-emoji-btn {
    position: static !important;
    transform: none !important;
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    z-index: 2 !important;
}

/* Прев'ю прикріплених файлів у коментарі */
.comment-media-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(13, 22, 35, 0.7);
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    margin-bottom: 4px;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(19, 31, 48, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.comment-preview-item.is-image {
    width: 62px;
    height: 62px;
}

.comment-preview-item.is-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-preview-item.is-video {
    width: 74px;
    height: 62px;
    background: #000;
}

.comment-preview-item.is-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-preview-item.is-video .video-tag {
    position: absolute;
    bottom: 2px;
    left: 2px;
    font-size: 0.58rem;
    background: rgba(0, 0, 0, 0.75);
    color: #38bdf8;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 700;
    pointer-events: none;
}

.comment-preview-item.is-audio,
.comment-preview-item.is-file {
    height: 44px;
    padding: 4px 28px 4px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
}

.comment-preview-item .preview-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.comment-preview-item .preview-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.comment-preview-item .preview-name {
    font-size: 0.76rem;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    font-weight: 500;
}

.comment-preview-item .preview-size {
    font-size: 0.65rem;
    color: #94a3b8;
}

.comment-preview-item .btn-remove-preview {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: none;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease;
    z-index: 3;
}

.comment-preview-item .btn-remove-preview:hover {
    background: #ef4444;
}

/* Comment input focus — cobalt */
.comment-input-field:focus {
    border-color: rgba(96, 120, 144, 0.50);
    box-shadow: 0 0 12px rgba(96, 120, 144, 0.22);
}

.comment-input-field::placeholder {
    color: #506070;
}

/* Send comment btn — cobalt */
.btn-send-comment {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(96, 120, 144, 0.20);
    border: 1px solid rgba(96, 120, 144, 0.45);
    color: var(--gnozis-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--gnozis-transition);
}

.btn-send-comment:hover,
.btn-send-comment.is-active {
    background: #0284c7 !important;
    border-color: #38bdf8 !important;
    color: #E0E8F0 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45) !important;
}

/* Відображення медіа в коментарях */
.comment-media-container {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-media-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}

.comment-media-image-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-media-image-link:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.comment-media-img {
    display: block;
    max-height: 220px;
    max-width: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
}

.comment-media-gallery.count-1 .comment-media-img {
    max-height: 260px;
}

.comment-media-gallery.count-2 .comment-media-image-link,
.comment-media-gallery.count-3 .comment-media-image-link,
.comment-media-gallery.count-4 .comment-media-image-link {
    flex: 1 1 calc(50% - 6px);
    max-width: calc(50% - 3px);
}

.comment-media-gallery.count-2 .comment-media-img,
.comment-media-gallery.count-3 .comment-media-img,
.comment-media-gallery.count-4 .comment-media-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.comment-media-videos {
    max-width: 380px;
    width: 100%;
}

.comment-video-wrap {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-video-player {
    width: 100%;
    max-height: 240px;
    display: block;
}

.comment-media-audios {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 360px;
    width: 100%;
}

.comment-audio-player {
    background: rgba(16, 26, 38, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-audio-header {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.comment-audio-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.comment-audio-title {
    font-size: 0.78rem;
    color: #e2e8f0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-audio-element {
    width: 100%;
    height: 32px;
    outline: none;
    border-radius: 4px;
}

.comment-media-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 360px;
    width: 100%;
}

.comment-file-download-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    background: rgba(16, 26, 38, 0.85);
    border: 1px solid rgba(96, 120, 144, 0.3);
    border-radius: 8px;
    color: var(--gnozis-text-primary, #e2e8f0);
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.comment-file-download-badge:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
    color: #38bdf8;
}

.comment-file-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.comment-file-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.comment-file-name {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-file-size {
    font-size: 0.68rem;
    color: var(--text-muted, #94a3b8);
}

.comment-file-action {
    font-size: 0.88rem;
    opacity: 0.75;
    flex-shrink: 0;
}

.comment-file-download-badge:hover .comment-file-action {
    opacity: 1;
}


/* ==========================================================================
   Згортання довгих коментарів та відгуків (Comment & Review Truncation)
   ========================================================================== */
.comment-text.is-clamped:not(.is-expanded),
.gnozis-review-text.is-clamped:not(.is-expanded),
.comment-text-content.is-clamped:not(.is-expanded) {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    overflow: hidden !important;
    position: relative !important;
    word-break: break-word !important;
}

.comment-text.is-expanded,
.gnozis-review-text.is-expanded,
.comment-text-content.is-expanded {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
}

.btn-comment-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 4px;
    padding: 2px 0;
    background: transparent;
    border: none;
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s ease, opacity 0.18s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-comment-read-more:hover {
    color: #7dd3fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==========================================================================
   Поширений товар у стрічці (Shared Product Embed Card)
   ========================================================================== */
.feed-shared-product-card {
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-shared-product-card .screen-reader-text {
    display: none !important;
}

.feed-shared-product-card:hover {
    border-color: rgba(56, 189, 248, 0.4) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}

.feed-shared-product-card a img {
    transition: transform 0.3s ease;
}

.feed-shared-product-card:hover a img {
    transform: scale(1.05);
}

.btn-share-product {
    transition: all 0.2s ease;
}

.btn-share-product:hover {
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   FILE: modules/chat-messenger.css
   ========================================================================== */
/* ==========================================================================
   FACEBOOK-STYLE FLOATING CHAT HEADS & DOCKED MINI-CHAT
   ========================================================================== */
.gnozis-chat-heads-dock {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9980;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

/* Приховати плаваючий чат і міні-вікна на сторінці чекауту та окремій сторінці повідомлень */
body.woocommerce-checkout .gnozis-chat-heads-dock,
body.woocommerce-checkout .gnozis-mini-chat-window,
body.page-template-page-checkout .gnozis-chat-heads-dock,
body.page-template-page-checkout .gnozis-mini-chat-window,
.gnozis-checkout-page-wrapper~.gnozis-chat-heads-dock,
.gnozis-checkout-page-wrapper~.gnozis-mini-chat-window,
.woocommerce-checkout #gnozis-chat-heads-dock,
body.page-template-template-messages .gnozis-chat-heads-dock,
body.page-template-template-messages .gnozis-mini-chat-window,
.gnozis-messages-page-wrapper~.gnozis-chat-heads-dock,
.gnozis-messages-page-wrapper~.gnozis-mini-chat-window {
    display: none !important;
}

.chat-heads-list {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
    pointer-events: auto;
}

.chat-head-item {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    pointer-events: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.chat-head-item:hover {
    transform: scale(1.08);
}

.chat-head-item.active {
    box-shadow: 0 0 0 2.5px var(--accent-cyan), 0 8px 25px rgba(56, 189, 248, 0.4);
}

.chat-head-avatar-wrap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: #0d1424;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-head-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-head-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #0a0f1d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.chat-head-online {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0a0f1d;
}

.chat-head-dismiss {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    font-size: 0.65rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-head-item:hover .chat-head-dismiss {
    display: flex;
}

.chat-head-dismiss:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.chat-head-more-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(20, 32, 48, 0.92);
    backdrop-filter: blur(16px);
    border: 2px solid rgba(56, 189, 248, 0.4);
    color: var(--accent-cyan);
    font-family: var(--gnozis-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s ease, background 0.2s ease;
    pointer-events: auto;
}

.chat-head-more-btn:hover {
    transform: scale(1.08);
    background: rgba(26, 43, 60, 0.98);
    border-color: var(--accent-cyan);
}

.chat-heads-more-popup {
    position: absolute;
    right: 65px;
    bottom: 0;
    width: 260px;
    background: rgba(13, 20, 36, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    pointer-events: auto;
    z-index: 9990;
    animation: popoverSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.more-popup-header {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gnozis-text-secondary);
}

.more-popup-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 0;
}

.more-popup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.more-popup-item:hover {
    background: rgba(56, 189, 248, 0.08);
}

.more-popup-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.more-popup-info {
    flex: 1;
    min-width: 0;
}

.more-popup-name {
    display: block;
    font-size: 0.82rem;
    color: var(--gnozis-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-popup-status {
    font-size: 0.68rem;
    color: var(--gnozis-text-tertiary);
}

.more-popup-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
}

/* Головна кругла кнопка швидкого запуску повідомлень */
/* Головна кругла кнопка швидкого запуску повідомлень (тусклий матовий стиль) */
.gnozis-floating-chat-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #141e30;
    border: 1px solid #24344d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    transition: all 0.2s ease;
}

.gnozis-floating-chat-bubble:hover {
    background: #1e2d42;
    border-color: #334866;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.chat-bubble-icon {
    font-size: 1.25rem;
    color: #94a3b8;
}

.chat-bubble-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #881337;
    color: #fecdd3;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 1.5px solid #0b101b;
}

/* ==========================================================================
   MINI-CHAT WINDOW (FACEBOOK STYLE DOCKED)
   ========================================================================== */
.gnozis-mini-chat-window {
    position: fixed;
    bottom: 24px;
    right: 80px;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 440px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    z-index: 100005;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: miniChatSlideUp 0.2s ease;
}

.gnozis-mini-chat-window.open {
    display: flex;
}

.gnozis-mini-chat-window.minimized {
    height: 52px;
    overflow: hidden;
}

.gnozis-mini-chat-window.minimized .mini-chat-body,
.gnozis-mini-chat-window.minimized .mini-chat-footer {
    display: none;
}

@keyframes miniChatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mini-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.mini-chat-interlocutor-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mini-chat-avatar-wrap {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.mini-chat-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-cyan);
}

.mini-chat-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid #0d1424;
}

.mini-chat-details {
    min-width: 0;
}

.mini-chat-name {
    font-size: 0.85rem;
    color: var(--gnozis-text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-chat-status-txt {
    font-size: 0.68rem;
    color: var(--gnozis-text-tertiary);
    display: block;
}

.mini-chat-header-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-chat-btn {
    background: transparent;
    border: none;
    color: var(--gnozis-text-tertiary);
    font-size: 0.85rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mini-chat-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mini-chat-body {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.mini-chat-msg-wrap {
    display: flex;
    flex-direction: column;
    max-width: 84%;
    min-width: 0;
    box-sizing: border-box;
}

.mini-chat-msg-wrap.incoming {
    align-self: flex-start;
}

.mini-chat-msg-wrap.outgoing {
    align-self: flex-end;
}

.mini-msg-bubble {
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    position: relative;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.mini-msg-text {
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mini-chat-msg-wrap.incoming .mini-msg-bubble {
    background: rgba(255, 255, 255, 0.07);
    color: var(--gnozis-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 4px;
}

.mini-chat-msg-wrap.outgoing .mini-msg-bubble {
    background: linear-gradient(135deg, #1e3a5f 0%, #0284c7 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.mini-msg-time {
    display: block;
    font-size: 0.65rem;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}

.mini-chat-footer {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 8px 14px;
    color: var(--gnozis-text-primary);
    font-size: 0.82rem;
    outline: none;
    transition: all 0.2s ease;
}

.mini-chat-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.btn-mini-chat-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f 0%, #0284c7 100%);
    border: none;
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-mini-chat-send:hover {
    transform: scale(1.08);
}

/* ==========================================================================
   ВКЛАДЕННЯ ТА МЕДІА В ОСОБИСТИХ ПОВІДОМЛЕННЯХ (Mini-Chat & Messages Page)
   ========================================================================== */

.mini-chat-input-wrap .btn-mini-chat-attach {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
    outline: none;
    flex-shrink: 0;
    z-index: 3;
}

.mini-chat-input-wrap .btn-mini-chat-attach:hover {
    color: var(--accent-cyan, #38bdf8);
    background: rgba(56, 189, 248, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.mini-chat-input-wrap .mini-chat-input {
    width: 100%;
    padding-left: 36px;
    padding-right: 36px;
}

.btn-chat-attach-media {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background-color 0.2s, transform 0.2s;
    outline: none;
    flex-shrink: 0;
}

.btn-chat-attach-media:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    transform: scale(1.08);
}

/* Прев'ю файлів у чаті перед відправкою */
.mini-chat-media-previews,
.messages-media-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(13, 22, 35, 0.85);
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    margin-bottom: 6px;
    max-width: 100%;
    box-sizing: border-box;
}

.chat-preview-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(19, 31, 48, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.chat-preview-item.is-image {
    width: 52px;
    height: 52px;
}

.chat-preview-item.is-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-preview-item.is-video {
    width: 64px;
    height: 52px;
    background: #000;
}

.chat-preview-item.is-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-preview-item.is-video .video-tag {
    position: absolute;
    bottom: 2px;
    left: 2px;
    font-size: 0.55rem;
    background: rgba(0, 0, 0, 0.8);
    color: #38bdf8;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 700;
    pointer-events: none;
}

.chat-preview-item.is-audio,
.chat-preview-item.is-file {
    padding: 4px 24px 4px 8px;
    max-width: 150px;
    height: 38px;
    gap: 6px;
}

.chat-preview-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chat-preview-filename {
    font-size: 0.72rem;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-remove-chat-media {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f87171;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.15s ease;
}

.btn-remove-chat-media:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: scale(1.1);
}

/* Медіавкладення у повідомленнях (бульбашках) */
.chat-msg-media-container {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

.chat-media-gallery {
    display: grid;
    gap: 4px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 240px;
}

.chat-media-gallery.count-1 {
    grid-template-columns: 1fr;
}

.chat-media-gallery.count-1 .chat-media-img {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.chat-media-gallery.count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.chat-media-gallery.count-3 {
    grid-template-columns: repeat(3, 1fr);
}

.chat-media-gallery.count-4 {
    grid-template-columns: repeat(2, 1fr);
}

.chat-media-gallery.count-2 .chat-media-img,
.chat-media-gallery.count-3 .chat-media-img,
.chat-media-gallery.count-4 .chat-media-img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    display: block;
}

.chat-media-img-link {
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 6px;
    overflow: hidden;
}

.chat-media-img-link:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

.chat-video-wrap {
    max-width: 240px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.chat-video-player {
    width: 100%;
    max-height: 180px;
    display: block;
    outline: none;
}

.chat-audio-player-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
    max-width: 240px;
}

.chat-audio-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.chat-audio-icon {
    font-size: 0.85rem;
}

.chat-audio-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-audio-native-player {
    width: 100%;
    height: 32px;
    outline: none;
}

.chat-file-download-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    max-width: 240px;
}

.chat-file-download-badge:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
}

.chat-file-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-file-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.chat-file-name {
    font-size: 0.76rem;
    font-weight: 500;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-file-size {
    font-size: 0.65rem;
    color: #94a3b8;
}

.chat-file-action {
    font-size: 0.85rem;
    color: #38bdf8;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.chat-file-download-badge:hover .chat-file-action {
    transform: translateY(2px);
}

/* ==========================================================================
   ДІЇ, РЕАКЦІЇ ТА ДРОПДАУН-МЕНЮ В ОСОБИСТИХ ПОВІДОМЛЕННЯХ
   ========================================================================== */
.mini-msg-footer,
.msg-bubble-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 5px !important;
    position: relative !important;
}

.msg-author-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
}

.mini-msg-meta-right,
.msg-meta-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.mini-msg-time,
.msg-time {
    font-size: 0.68rem !important;
    opacity: 0.75 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

/* Кнопка реакції 🔥 на повідомлення */
.btn-msg-reaction {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 999px !important;
    padding: 2px 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    color: #ffffff !important;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
    outline: none !important;
    user-select: none !important;
}

.btn-msg-reaction:hover {
    transform: scale(1.1) !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.btn-msg-reaction.is-liked {
    background: rgba(249, 115, 22, 0.28) !important;
    border-color: rgba(249, 115, 22, 0.55) !important;
}

.btn-msg-reaction .reaction-flame {
    font-size: 0.8rem !important;
    display: inline-block !important;
}

.btn-msg-reaction .reaction-count {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #fdba74 !important;
}

/* Обгортка меню трьох крапок "..." для повідомлення */
.msg-more-dropdown-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.btn-msg-action.btn-msg-more {
    background: transparent !important;
    border: none !important;
    padding: 3px 5px !important;
    border-radius: 5px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.15s ease, background 0.15s ease !important;
    outline: none !important;
}

.btn-msg-action.btn-msg-more:hover,
.msg-more-dropdown-wrap.is-open .btn-msg-more {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
}

/* Випадаюче меню дій з повідомленням */
.msg-more-menu {
    display: none !important;
    position: absolute !important;
    z-index: 1000 !important;
    min-width: 140px !important;
    background: rgba(15, 23, 42, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 15px rgba(56, 189, 248, 0.15) !important;
    padding: 4px !important;
    flex-direction: column !important;
    gap: 2px !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    white-space: nowrap !important;
}

.msg-more-dropdown-wrap.is-open .msg-more-menu {
    display: flex !important;
}

.msg-more-menu.open-up {
    bottom: 100% !important;
    margin-bottom: 6px !important;
}

.msg-more-menu.open-down {
    top: 100% !important;
    margin-top: 6px !important;
}

/* Горизонтальне позиціонування: кнопка дій завжди розташована зліва у футері,
   тому меню розкривається вправо всередину чату, не обрізаючись стінкою контейнера */
.mini-chat-msg-wrap .msg-more-menu,
.msg-bubble-wrap .msg-more-menu {
    left: 0 !important;
    right: auto !important;
}

.mini-chat-msg-wrap .msg-more-menu.align-right,
.msg-bubble-wrap .msg-more-menu.align-right {
    left: auto !important;
    right: 0 !important;
}

/* Кнопки всередині меню дій */
.msg-more-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 7px 11px !important;
    border: none !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #e2e8f0 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    outline: none !important;
    line-height: 1.2 !important;
}

.msg-more-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.msg-more-item svg {
    flex-shrink: 0 !important;
}

.msg-more-item.text-danger {
    color: #f87171 !important;
}

.msg-more-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #ef4444 !important;
}

/* Цитата / Відповідь на повідомлення */
.chat-msg-quoted-reply {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 5px 9px !important;
    margin-bottom: 6px !important;
    background: rgba(0, 0, 0, 0.22) !important;
    border-left: 3px solid var(--accent-cyan, #38bdf8) !important;
    border-radius: 4px !important;
    font-size: 0.74rem !important;
    cursor: pointer !important;
}

.chat-msg-quoted-author {
    font-weight: 700 !important;
    color: var(--accent-cyan, #38bdf8) !important;
}

.chat-msg-quoted-text {
    color: rgba(255, 255, 255, 0.82) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 240px !important;
}

/* Інлайн-редактор повідомлення */
.msg-inline-editor {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 4px !important;
}

.msg-edit-textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 6px 8px !important;
    font-size: 0.82rem !important;
    resize: none !important;
    outline: none !important;
    font-family: inherit !important;
}

.msg-edit-textarea:focus {
    border-color: var(--accent-cyan, #38bdf8) !important;
}

.msg-edit-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
}

.btn-msg-edit-cancel,
.btn-msg-edit-save {
    border: none !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: opacity 0.15s ease, background 0.15s ease !important;
}

.btn-msg-edit-cancel {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

.btn-msg-edit-cancel:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.btn-msg-edit-save {
    background: #0284c7 !important;
    color: #ffffff !important;
}

.btn-msg-edit-save:hover {
    background: #0369a1 !important;
}

/* Панель цитування / попереднього перегляду відповіді перед відправкою у чаті */
#mini-chat-reply-preview,
#messages-page-reply-preview,
.chat-reply-preview-wrap {
    display: none;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 7px 12px !important;
    background: rgba(15, 23, 42, 0.96) !important;
    border-left: 3px solid var(--accent-cyan, #38bdf8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.chat-reply-preview-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.chat-reply-preview-header {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.74rem !important;
    color: var(--accent-cyan, #38bdf8) !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.chat-reply-preview-header svg {
    flex-shrink: 0 !important;
}

.chat-reply-preview-text {
    font-size: 0.76rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
}

/* Кнопка скасування режиму відповіді у чаті */
.btn-cancel-chat-reply {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    outline: none !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}

.btn-cancel-chat-reply:hover {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.15) !important;
}

/* ==========================================================================
   FILE: modules/audio-player.css
   ========================================================================== */
/* ==========================================================================
   ПЛАВАЮЧИЙ НЕОНОВИЙ АУДІО-СИГІЛ (FAB) ТА МОБІЛЬНА ШТОРКА ПЛЕЄРА
   ========================================================================== */
.gnozis-floating-audio-fab {
    display: none;
    position: fixed;
    bottom: calc(160px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    z-index: 99999;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #0b1120;
    border: 2px solid rgba(56, 189, 248, 0.65);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(56, 189, 248, 0.35);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease,
                border-color 0.25s ease,
                opacity 0.35s ease,
                scale 0.35s ease,
                translate 0.35s ease,
                filter 0.35s ease;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity, scale, translate;
}

@media (max-width: 991px) {
    .gnozis-floating-audio-fab {
        display: none !important;
    }
}

.gnozis-floating-audio-fab:hover {
    border-color: #38bdf8;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(56, 189, 248, 0.55);
    transform: scale(1.05);
}

/* Стан бездіяльності (Idle State) та Edge Peek */
.gnozis-floating-audio-fab.is-idle {
    opacity: 0.35 !important;
    scale: 0.85;
    filter: grayscale(30%);
}

.gnozis-floating-audio-fab.is-idle.is-peek-left {
    translate: -45% 0;
}

.gnozis-floating-audio-fab.is-idle.is-peek-right {
    translate: 45% 0;
}

@supports not (scale: 1) {
    .gnozis-floating-audio-fab.is-idle {
        transform: scale(0.85);
    }
    .gnozis-floating-audio-fab.is-idle.is-peek-left {
        transform: translateX(-45%) scale(0.85);
    }
    .gnozis-floating-audio-fab.is-idle.is-peek-right {
        transform: translateX(45%) scale(0.85);
    }
}

.gnozis-floating-audio-fab.is-dragging {
    cursor: grabbing !important;
    transform: scale(1.1) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7), 0 0 28px rgba(56, 189, 248, 0.65) !important;
    transition: none !important;
    touch-action: none !important;
}

/* Пульсуюче кільце навколо кнопки під час відтворення */
.fab-pulse-aura {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.65);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.gnozis-floating-audio-fab.is-playing .fab-pulse-aura {
    animation: fabAuraPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes fabAuraPulse {
    0% {
        transform: scale(0.96);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.38);
        opacity: 0;
    }
}

/* Внутрішній вініловий диск */
.fab-inner-disc {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.fab-inner-disc.is-spinning {
    animation: fabSpinVinyl 12s linear infinite;
}

@keyframes fabSpinVinyl {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Обкладинка треку всередині кнопки */
.fab-cover-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    pointer-events: none !important;
}

/* Центр вінілової платівки */
.fab-vinyl-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #0b1120;
    border: 1.5px solid rgba(56, 189, 248, 0.75);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.85);
    pointer-events: none;
    z-index: 2;
}

/* Міні-бейдж індикатор у правому нижньому кутку кнопки */
.fab-badge-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(11, 17, 32, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fab-sigil-icon {
    font-size: 11px;
    line-height: 1;
    display: block;
}

.gnozis-floating-audio-fab.is-playing .fab-sigil-icon {
    display: none !important;
}

/* Міні-еквалайзер у бейджі */
.fab-mini-eq {
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5px;
    height: 10px;
    width: 12px;
}

.gnozis-floating-audio-fab.is-playing .fab-mini-eq,
.fab-mini-eq.is-active {
    display: flex !important;
}

.feq-bar {
    width: 2px;
    background: #38bdf8;
    border-radius: 1px;
    height: 3px;
}

.gnozis-floating-audio-fab.is-playing .feq-1 {
    animation: feqAnim1 0.7s ease-in-out infinite alternate;
}

.gnozis-floating-audio-fab.is-playing .feq-2 {
    animation: feqAnim2 0.5s ease-in-out infinite alternate;
}

.gnozis-floating-audio-fab.is-playing .feq-3 {
    animation: feqAnim3 0.6s ease-in-out infinite alternate;
}

@keyframes feqAnim1 {
    0% {
        height: 3px;
    }

    100% {
        height: 9px;
    }
}

@keyframes feqAnim2 {
    0% {
        height: 7px;
    }

    100% {
        height: 3px;
    }
}

@keyframes feqAnim3 {
    0% {
        height: 2px;
    }

    100% {
        height: 10px;
    }
}

/* ==========================================================================
   МОБІЛЬНА ШТОРКА АУДІОПЛЕЄРА (Bottom Sheet)
   ========================================================================== */
.gnozis-mobile-audio-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000005;
}

.gnozis-mobile-audio-sheet.open,
.gnozis-mobile-audio-sheet.is-open {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
}

.mobile-audio-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 20, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.mobile-audio-sheet-panel {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(14, 20, 34, 0.98) 0%, rgba(10, 15, 26, 0.99) 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px 20px 0 0;
    padding: 12px 16px calc(28px + env(safe-area-inset-bottom, 0px));
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
}

.sheet-grab-bar-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 0 10px;
    cursor: pointer;
}

.sheet-grab-bar {
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.mobile-audio-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sheet-header-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sheet-header-sigil {
    font-size: 1.2rem;
}

.sheet-title-group {
    display: flex;
    flex-direction: column;
}

.sheet-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.sheet-author-pill {
    font-size: 0.75rem;
    color: #38bdf8;
    font-weight: 500;
}

.sheet-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sheet-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-sheet-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.sheet-cover-container {
    display: flex;
    justify-content: center;
    margin: 8px 0 14px;
}

.sheet-cover-frame {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    background: #0f172a;
}

.sheet-cover-frame.is-spinning {
    animation: fabSpinVinyl 12s linear infinite;
}

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

.sheet-vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #0b1120;
    border: 2px solid rgba(56, 189, 248, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.sheet-track-details {
    text-align: center;
    margin-bottom: 12px;
}

.sheet-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sheet-active-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

.sheet-active-artist {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 3px;
}

.sheet-scrubber-box {
    margin: 12px 4px;
}

.sheet-timeline-track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    margin-bottom: 6px;
}

.sheet-timeline-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.sheet-timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    pointer-events: none;
}

.sheet-timeline-handle {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.sheet-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
}

.sheet-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 14px 0 18px;
}

.sheet-ctrl-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sheet-ctrl-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    transform: scale(1.05);
}

.sheet-ctrl-btn.is-active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
}

.sheet-play-main-btn {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border: none;
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transition: all 0.2s ease;
}

.sheet-play-main-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.65);
}

.sheet-playlist-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.sheet-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
}

.sheet-playlist-count {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
}

.sheet-track-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
}

/* ==========================================================================
   ВІДЖЕТ МУЗИЧНОГО ПЛЕЄРА У САЙДБАРІ (Desktop Widget) ТА ЗАГАЛЬНІ СТИЛІ ПЛЕЙЛИСТА
   ========================================================================== */
.gnozis-audio-widget {
    background: linear-gradient(180deg, rgba(14, 20, 34, 0.95) 0%, rgba(10, 15, 26, 0.98) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    margin-bottom: 20px !important;
}

/* Кнопка «+ Додати трек» */
.btn-audio-admin-add {
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1.2 !important;
}

.btn-audio-admin-add:hover {
    background: rgba(56, 189, 248, 0.25) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.btn-audio-admin-add .btn-plus-icon {
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

/* Шапка сайдбар-віджета */
.audio-widget-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 14px !important;
}

.audio-header-title-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.audio-header-sigil-wrap {
    position: relative !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.audio-header-sigil {
    font-size: 15px !important;
    line-height: 1 !important;
}

.audio-title-group {
    display: flex !important;
    flex-direction: column !important;
}

.audio-header-title {
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.audio-author-pill {
    font-size: 0.75rem !important;
    color: #38bdf8 !important;
    font-weight: 500 !important;
}

/* Активна панель відтворення у віджеті */
.audio-player-deck {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 12px !important;
    margin-bottom: 14px !important;
}

.audio-deck-main {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}

.audio-cover-frame {
    position: relative !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid rgba(56, 189, 248, 0.45) !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    background: #0f172a !important;
}

.audio-cover-frame.is-spinning {
    animation: fabSpinVinyl 12s linear infinite !important;
}

.audio-cover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.audio-vinyl-center {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 10px !important;
    height: 10px !important;
    background: #0b1120 !important;
    border: 1.5px solid rgba(56, 189, 248, 0.75) !important;
    border-radius: 50% !important;
}

.audio-track-details {
    flex: 1 !important;
    min-width: 0 !important;
}

.audio-track-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.audio-active-title {
    display: block !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.audio-active-artist {
    display: block !important;
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    margin-top: 2px !important;
}

/* Еквалайзер активного треку */
.audio-visualizer-bars {
    display: inline-flex !important;
    align-items: flex-end !important;
    gap: 2px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
}

.audio-visualizer-bars .vbar {
    width: 2px !important;
    background: #38bdf8 !important;
    border-radius: 1px !important;
    height: 3px !important;
    display: inline-block !important;
}

.audio-visualizer-bars.is-active .vbar-1 {
    animation: feqAnim1 0.7s infinite alternate !important;
}

.audio-visualizer-bars.is-active .vbar-2 {
    animation: feqAnim2 0.5s infinite alternate !important;
}

.audio-visualizer-bars.is-active .vbar-3 {
    animation: feqAnim3 0.6s infinite alternate !important;
}

.audio-visualizer-bars.is-active .vbar-4 {
    animation: feqAnim1 0.8s infinite alternate !important;
}

.audio-visualizer-bars.is-active .vbar-5 {
    animation: feqAnim2 0.55s infinite alternate !important;
}

/* Таймлайн віджета */
.audio-scrubber-box {
    margin: 8px 0 !important;
}

.audio-timeline-track {
    position: relative !important;
    height: 5px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
    margin-bottom: 6px !important;
}

.audio-timeline-buffered {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    pointer-events: none !important;
}

.audio-timeline-progress {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
    pointer-events: none !important;
}

.audio-timeline-handle {
    position: absolute !important;
    top: 50% !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8) !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
}

.audio-time-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
}

/* Кнопки керування сайдбар-віджета */
.audio-controls-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

.audio-ctrl-btn {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.audio-ctrl-btn:hover {
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    background: rgba(56, 189, 248, 0.1) !important;
    transform: scale(1.08) !important;
}

.audio-ctrl-btn.is-active {
    color: #38bdf8 !important;
    border-color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.18) !important;
}

.audio-play-main-btn {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    border: none !important;
    color: #ffffff !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.audio-play-main-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.7) !important;
}

.audio-volume-pop-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.audio-volume-slider-box {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 8px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
    z-index: 10;
}

.audio-volume-pop-wrap:hover .audio-volume-slider-box,
.audio-volume-slider-box:hover {
    display: block !important;
}

.audio-volume-slider {
    width: 75px !important;
    accent-color: #38bdf8 !important;
    cursor: pointer !important;
}

/* ==========================================================================
   СПИСОК ТРЕКІВ ПЛЕЙЛИСТА (І для сайдбару, і для мобільної шторки)
   ========================================================================== */
.audio-playlist-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 12px !important;
}

.audio-playlist-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
}

.playlist-count-badge {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    font-size: 0.72rem !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
}

.audio-playlist-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    max-height: 280px !important;
    overflow-y: auto !important;
}

/* Рядок треку в плейлисті (СКИДАННЯ БІЛОГО ФОНУ БРАУЗЕРА) */
.audio-track-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 6px 8px !important;
    transition: all 0.15s ease !important;
    position: relative !important;
}

.audio-track-item:hover {
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
}

.audio-track-item.is-active {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
}

/* Кнопка запуску треку (СКИДАННЯ ДЕФОЛТНОГО BUTTON СТИЛЮ) */
.audio-track-play-btn {
    background: transparent !important;
    border: none !important;
    color: #f1f5f9 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: left !important;
    cursor: pointer !important;
    flex: 1 !important;
    min-width: 0 !important;
    font-family: inherit !important;
    outline: none !important;
}

.audio-track-play-indicator {
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
}

.audio-track-num {
    font-weight: 600 !important;
    line-height: 1 !important;
}

.audio-track-bars-mini {
    display: none;
    align-items: flex-end;
    gap: 1.5px;
    height: 10px;
    width: 10px;
}

.audio-track-bars-mini i {
    width: 2px;
    height: 3px;
    background: #38bdf8;
    border-radius: 1px;
    display: inline-block;
}

.audio-track-item.is-playing .audio-track-num {
    display: none !important;
}

.audio-track-item.is-playing .audio-track-bars-mini {
    display: flex !important;
}

.audio-track-item.is-playing .audio-track-bars-mini i:nth-child(1) {
    animation: feqAnim1 0.6s infinite alternate !important;
}

.audio-track-item.is-playing .audio-track-bars-mini i:nth-child(2) {
    animation: feqAnim2 0.45s infinite alternate !important;
}

.audio-track-item.is-playing .audio-track-bars-mini i:nth-child(3) {
    animation: feqAnim3 0.55s infinite alternate !important;
}

.audio-track-meta {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.track-row-title {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
}

.track-row-artist {
    font-size: 0.7rem !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.audio-track-item.is-active .track-row-title {
    color: #38bdf8 !important;
}

/* Дії з треком (поділитись, завантажити, видалити) */
.audio-track-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    margin-left: 6px !important;
}

.audio-track-duration {
    font-size: 0.72rem !important;
    color: #64748b !important;
    margin-right: 2px !important;
}

.btn-audio-action {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.15s ease !important;
}

.btn-audio-action:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    transform: scale(1.05) !important;
}

.btn-audio-delete:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

/* ==========================================================================
   МОДАЛЬНЕ ВІКНО ДОДАВАННЯ АУДІОТРЕКУ: КОМПАКТНИЙ ДИЗАЙН БЕЗ СКРОЛУ
   ========================================================================== */
.gnozis-audio-modal .gnozis-modal-dialog {
    max-width: 480px !important;
    background: linear-gradient(180deg, #0e1422 0%, #0a0f1a 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.15) !important;
    border-radius: 16px !important;
    padding: 12px 16px 14px !important;
    max-height: 94vh !important;
    overflow-y: auto !important;
}

@media (max-width: 768px) {
    .gnozis-audio-modal .gnozis-modal-dialog {
        padding: 10px 12px 12px !important;
        width: calc(100% - 20px) !important;
        margin: 10px auto !important;
    }
}

/* Прибираємо точку/ромбик над заголовком */
.gnozis-audio-modal .modal-sigil {
    display: none !important;
}

/* Компактна шапка */
.gnozis-audio-modal .gnozis-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.gnozis-audio-modal .modal-title {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.gnozis-audio-modal .gnozis-modal-close {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.gnozis-audio-modal .gnozis-modal-close:hover {
    color: #ffffff !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    background: rgba(239, 68, 68, 0.2) !important;
}

/* Двоколонковий блок (Назва + Автор) для економії вертикального простору */
.gnozis-audio-modal .form-row-2col {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
}

.gnozis-audio-modal .form-group-title {
    flex: 1.35 !important;
    margin-bottom: 0 !important;
}

.gnozis-audio-modal .form-group-artist {
    flex: 1 !important;
    margin-bottom: 0 !important;
}

/* Компактні поля форми */
.gnozis-audio-modal .form-group {
    margin-bottom: 6px !important;
}

.gnozis-audio-modal .form-label {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
}

.gnozis-audio-modal .gnozis-input-modal,
.gnozis-audio-modal .gnozis-input {
    width: 100% !important;
    height: 34px !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    color: #f8fafc !important;
    font-size: 0.8rem !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}

.gnozis-audio-modal .gnozis-input-modal:focus,
.gnozis-audio-modal .gnozis-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
}

/* Компактна дропзона аудіофайлу в один горизонтальний рядок */
.audio-file-dropzone,
.audio-file-dropzone-compact {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1.5px dashed rgba(56, 189, 248, 0.4) !important;
    border-radius: 10px !important;
    padding: 7px 12px !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    min-height: auto !important;
}

.audio-file-dropzone:hover,
.audio-file-dropzone.is-dragover {
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: #38bdf8 !important;
    border-style: solid !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
}

.dropzone-content-inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    pointer-events: none !important;
    width: 100% !important;
}

.dropzone-content-inline .dropzone-icon {
    font-size: 20px !important;
    line-height: 1 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5)) !important;
}

.dropzone-text-group {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.dropzone-text-group .dropzone-title {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.dropzone-text-group .dropzone-hint {
    font-size: 0.68rem !important;
    color: #94a3b8 !important;
    line-height: 1.2 !important;
}

/* Компактний блок обкладинки */
.audio-custom-cover-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.btn-cover-select-custom {
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    flex-shrink: 0 !important;
    height: 32px !important;
    box-sizing: border-box !important;
}

.btn-cover-select-custom:hover {
    background: rgba(56, 189, 248, 0.22) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35) !important;
}

.audio-cover-name-badge {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    flex: 1 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    box-sizing: border-box !important;
}

.audio-cover-name-badge.has-file {
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    background: rgba(56, 189, 248, 0.08) !important;
}

/* Компактний прогрес завантаження */
.audio-upload-progress {
    margin-top: 8px !important;
    padding: 8px 10px !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 8px !important;
}

.progress-bar-track {
    height: 5px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
}

.progress-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
    border-radius: 999px !important;
    transition: width 0.2s ease !important;
}

.progress-text {
    font-size: 0.72rem !important;
    color: #38bdf8 !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
}

/* Компактний підвал модального вікна */
.gnozis-audio-modal .gnozis-modal-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.gnozis-audio-modal .btn-outline-glass {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.gnozis-audio-modal .btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.gnozis-audio-modal .btn-gradient-primary {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
    transition: all 0.2s ease !important;
}

.gnozis-audio-modal .btn-gradient-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.65) !important;
}

/* ==========================================================================
   SAFETY OVERRIDES: RESTRICT SIZES FOR FLOATING AUDIO FAB & COVERS
   ========================================================================== */
.gnozis-floating-audio-fab {
    display: none;
    position: fixed !important;
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) {
    .gnozis-floating-audio-fab {
        display: none !important;
    }
}

.fab-inner-disc {
    width: 100% !important;
    height: 100% !important;
    max-width: 54px !important;
    max-height: 54px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    position: absolute !important;
    inset: 0 !important;
}

.fab-cover-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 54px !important;
    max-height: 54px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.audio-cover-frame {
    position: relative !important;
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.audio-cover-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 52px !important;
    max-height: 52px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.sheet-cover-frame {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    max-height: 110px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.sheet-cover-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 110px !important;
    max-height: 110px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* ==========================================================================
   FILE: modules/emoji-picker.css
   ========================================================================== */
.gnozis-mention-item.is-mention-all {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.28);
    margin-bottom: 6px;
}

.gnozis-mention-item.is-mention-all:hover,
.gnozis-mention-item.is-mention-all.is-selected {
    background: rgba(168, 85, 247, 0.22);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.gnozis-mention-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.gnozis-mention-avatar-wrap.is-all {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.gnozis-mention-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.gnozis-mention-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gnozis-mention-handle {
    font-size: 0.74rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gnozis-mention-special-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.4);
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
}

.gnozis-mention-special-badge.badge-global-admin {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.3), rgba(239, 68, 68, 0.25));
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.6);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gnozis-mention-avatar-wrap.is-all.is-global {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(249, 115, 22, 0.25));
    border: 1px solid rgba(234, 179, 8, 0.5);
}

.gnozis-mention-role-pill {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-left: auto;
    flex-shrink: 0;
}

.gnozis-mention-tag {
    color: #38bdf8;
    font-weight: 600;
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline;
}

.gnozis-mention-tag:hover {
    background: none;
    color: #7dd3fc;
    text-decoration: underline;
}

.gnozis-mention-tag.mention-all-tag {
    color: #c084fc;
    background: none;
    border: none;
    box-shadow: none;
    font-weight: 600;
}

.gnozis-mention-tag.mention-all-tag:hover {
    background: none;
    color: #e9d5ff;
    text-decoration: underline;
}

.gnozis-mention-tag.mention-global-tag {
    color: #fde047;
    background: none;
    border: none;
    box-shadow: none;
    font-weight: 700;
}

.gnozis-mention-tag.mention-global-tag:hover {
    background: none;
    color: #fef08a;
    box-shadow: none;
    text-decoration: underline;
}

/* ==========================================================================
   3. МОДАЛЬНЕ ВІКНО МОДЕРАЦІЇ ТА CONFIRMATION DIALOGS
   ========================================================================== */
.gnozis-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: gnozisFadeIn 0.2s ease-out;
}

.gnozis-modal-backdrop.is-open {
    display: flex !important;
}

.gnozis-modal-box {
    position: relative;
    background: linear-gradient(145deg, #0d131f 0%, #080c14 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.12);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    animation: gnozisModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gnozis-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.gnozis-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gnozis-modal-title-wrap .modal-icon {
    font-size: 1.3rem;
}

.gnozis-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.gnozis-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.gnozis-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.gnozis-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 75vh;
    overflow-y: auto;
}

.mod-target-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.mod-target-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(56, 189, 248, 0.4);
}

.mod-target-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mod-target-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
}

.mod-target-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
}

.mod-target-status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.mod-target-status-badge.status-clean {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.mod-target-status-badge.status-warning {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.mod-target-status-badge.status-banned {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

.mod-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mod-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mod-action-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mod-action-radio-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mod-action-radio-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.4);
}

.mod-action-radio-card input[type="radio"] {
    display: none;
}

.mod-action-radio-card.is-checked {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.mod-action-radio-card.is-checked.action-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

.mod-radio-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
}

.mod-radio-desc {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.35;
}

.mod-restrictions-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.mod-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #cbd5e1;
    cursor: pointer;
}

.mod-checkbox-label input[type="checkbox"] {
    accent-color: #38bdf8;
    width: 16px;
    height: 16px;
}

.mod-select,
.mod-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.mod-select:focus,
.mod-textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.mod-textarea {
    min-height: 70px;
    resize: vertical;
}

.gnozis-modal-footer {
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.btn-mod-cancel {
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mod-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-mod-submit {
    padding: 8px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border: none;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-mod-submit:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
}

.btn-mod-submit.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.btn-mod-submit.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

/* Animations */
@keyframes gnozisFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes gnozisModalPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes gnozisFadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   Система згадувань @ (Mentions Dropdown & Autocomplete)
   ========================================================================= */
.gnozis-mention-dropdown {
    position: fixed;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.12);
    padding: 6px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: gnozisFadeSlideDown 0.15s ease-out;
}

.gnozis-mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.gnozis-mention-item:hover,
.gnozis-mention-item.is-selected {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.gnozis-mention-item.is-mention-all {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.gnozis-mention-item.is-mention-all:hover,
.gnozis-mention-item.is-mention-all.is-selected {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.1));
    border-color: rgba(245, 158, 11, 0.5);
}

.gnozis-mention-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.gnozis-mention-avatar-wrap.is-all {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.gnozis-mention-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.gnozis-mention-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gnozis-mention-handle {
    font-size: 0.73rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gnozis-mention-role-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.gnozis-mention-special-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* =========================================================================
   Модальне вікно модерації користувача (User Moderation & Visible Checkboxes)
   ========================================================================= */
.gnozis-moderation-modal .moderation-modal-dialog {
    max-width: 540px !important;
    max-height: 90vh;
    overflow-y: auto;
    background: #0d1527 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15) !important;
    padding: 24px !important;
}

.gnozis-moderation-modal .gnozis-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.gnozis-moderation-modal .modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gnozis-moderation-modal .modal-sigil {
    font-size: 1.3rem;
}

.gnozis-moderation-modal .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Картка користувача в модалці */
.mod-user-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.mod-user-avatar-wrap {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.mod-user-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mod-user-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mod-user-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Заголовки полів */
.gnozis-moderation-modal .form-label-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}

/* Список радіо-карток дій */
.mod-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.gnozis-moderation-modal .mod-action-card,
.mod-actions-grid .mod-action-card,
.gnozis-modal .form-group label.mod-action-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 11px 14px !important;
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative !important;
    user-select: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
}

.gnozis-moderation-modal .mod-action-card[style*="display: none"],
.mod-actions-grid .mod-action-card[style*="display: none"] {
    display: none !important;
}

.mod-action-card:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

/* Активний стан картки дії */
.mod-action-card.active,
.mod-action-card:has(input[type="radio"]:checked) {
    background: rgba(14, 165, 233, 0.12) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.22) !important;
}

/* Небезпечна дія (Повне блокування) */
.mod-action-card.item-danger-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
}

.mod-action-card.item-danger-card.active,
.mod-action-card.item-danger-card:has(input[type="radio"]:checked) {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.3) !important;
}

/* Успішна дія (Розблокувати) */
.mod-action-card.item-success-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.mod-action-card.item-success-card.active,
.mod-action-card.item-success-card:has(input[type="radio"]:checked) {
    background: rgba(16, 185, 129, 0.14) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.3) !important;
}

/* Дія модератора (Надати права) */
.mod-action-card.item-moderator-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
}

.mod-action-card.item-moderator-card.active,
.mod-action-card.item-moderator-card:has(input[type="radio"]:checked) {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.35) !important;
}

/* Дія модератора (Зняти права) */
.mod-action-card.item-moderator-revoke-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

.mod-action-card.item-moderator-revoke-card.active,
.mod-action-card.item-moderator-revoke-card:has(input[type="radio"]:checked) {
    background: rgba(245, 158, 11, 0.14) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.35) !important;
}

.mod-action-card.item-moderator-revoke-card .mod-radio-input {
    accent-color: #f59e0b !important;
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.4));
}

/* Великі помітні радіокнопки */
.mod-radio-input {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    accent-color: #38bdf8 !important;
    cursor: pointer !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.4));
}

.mod-action-card.item-danger-card .mod-radio-input {
    accent-color: #ef4444 !important;
    filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.4));
}

.mod-action-card.item-success-card .mod-radio-input {
    accent-color: #10b981 !important;
    filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.4));
}

.mod-card-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mod-act-icon {
    font-size: 1.25rem !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

.mod-act-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mod-act-info strong {
    display: block !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.mod-act-info p {
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    margin: 2px 0 0 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/* =========================================================================
   ЧЕКБОКСИ ОБМЕЖЕНЬ (ВИСОКОКОНТРАСТНІ ТА ПОМІТНІ)
   ========================================================================= */
.mod-checkboxes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .mod-checkboxes-grid {
        grid-template-columns: 1fr;
    }
}

.mod-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.mod-checkbox-item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
}

.mod-checkbox-item:has(input[type="checkbox"]:checked) {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
}

.mod-checkbox-item:has(input[type="checkbox"]:checked) span {
    color: #ffffff !important;
    font-weight: 600;
}

/* Великі помітні чекбокси */
.mod-checkbox-item input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    accent-color: #38bdf8 !important;
    cursor: pointer !important;
    margin: 0 !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
}

.mod-checkbox-item span {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.3;
    transition: color 0.15s ease;
}

/* Селект тривалості та текстова область причини */
.gnozis-moderation-modal .gnozis-select-modal,
.gnozis-moderation-modal .gnozis-textarea-modal {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #f1f5f9;
    padding: 10px 14px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gnozis-moderation-modal .gnozis-select-modal:focus,
.gnozis-moderation-modal .gnozis-textarea-modal:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.gnozis-moderation-modal .gnozis-textarea-modal {
    resize: vertical;
    min-height: 80px;
}

/* ==========================================================================
   25. GNOZIS AUDIO ENGINE & CYBER-MYSTIC PLAYERS
   ========================================================================== */

/* Прев'ю аудіо в композері публікацій */
.preview-media-inner.is-audio {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 10px 42px 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 210px;
    max-width: 290px;
    height: 56px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.preview-media-inner.is-audio .btn-remove-media-item {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 700;
}

.preview-media-inner.is-audio .btn-remove-media-item:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.preview-audio-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.preview-audio-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.preview-audio-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-audio-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #38bdf8;
}

/* Контейнер аудіотреків у дописі стрічки */
.post-audio-list,
.post-media-audios {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 8px;
    width: 100%;
}

.post-media-audios>.gnozis-audio-player+.gnozis-audio-player,
.post-audio-list>.gnozis-audio-player+.gnozis-audio-player {
    margin-top: 12px;
}

@supports (gap: 12px) {

    .post-media-audios>.gnozis-audio-player+.gnozis-audio-player,
    .post-audio-list>.gnozis-audio-player+.gnozis-audio-player {
        margin-top: 0;
    }
}

/* Головний Cyber-Mystic плеєр у стрічці */
.gnozis-audio-player {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 41, 59, 0.88) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}

.gnozis-audio-player:hover,
.gnozis-audio-player.is-playing {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

/* Кругла неонова кнопка Play/Pause */
.btn-audio-play-pause {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    outline: none;
}

.btn-audio-play-pause:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.55);
}

.btn-audio-play-pause:active {
    transform: scale(0.95);
}

/* Активний стан кнопки при відтворенні */
.gnozis-audio-player.is-playing .btn-audio-play-pause {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.65), 0 4px 14px rgba(2, 132, 199, 0.4);
    border-color: #38bdf8;
    animation: audioPlayPulse 2.2s ease-in-out infinite;
}

@keyframes audioPlayPulse {

    0%,
    100% {
        box-shadow: 0 0 14px rgba(14, 165, 233, 0.5), 0 4px 12px rgba(2, 132, 199, 0.4);
    }

    50% {
        box-shadow: 0 0 24px rgba(56, 189, 248, 0.85), 0 4px 16px rgba(2, 132, 199, 0.6);
    }
}

.audio-icon-play,
.audio-icon-pause {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

/* Тіло плеєра */
.audio-player-body,
.audio-track-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audio-header-row,
.audio-track-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.audio-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.audio-sigil-badge {
    font-size: 1rem;
    flex-shrink: 0;
}

.audio-title,
.audio-track-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}

.audio-meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.audio-size-pill,
.audio-track-size {
    font-size: 0.72rem;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 500;
    flex-shrink: 0;
}

.audio-time-counter,
.audio-time-row {
    font-size: 0.74rem;
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.audio-time-total {
    color: #94a3b8;
    font-weight: 400;
}

.audio-waveform-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-progress-bar-wrap,
.audio-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.audio-progress-bar-rail {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 999px;
    cursor: pointer;
    overflow: visible;
}

.audio-progress-bar-rail:hover {
    height: 8px;
}

.audio-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    pointer-events: none;
    transition: width 0.05s linear;
}

.audio-progress-bar-pin {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 13px;
    height: 13px;
    background: #ffffff;
    border: 2.5px solid #38bdf8;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
    pointer-events: none;
    transition: left 0.05s linear;
}

/* Блок регулювання гучності */
.audio-player-volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-audio-volume {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-audio-volume:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.audio-volume-slider-wrap {
    width: 65px;
    display: flex;
    align-items: center;
}

.audio-volume-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(51, 65, 85, 0.8);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.audio-volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.audio-volume-range::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.audio-volume-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
    cursor: pointer;
}

/* Анімація звукових стовпчиків (Soundwave bars) */
.soundwave-anim-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 14px;
    flex-shrink: 0;
}

.soundwave-anim-bars span {
    width: 2.5px;
    height: 4px;
    background: rgba(56, 189, 248, 0.35);
    border-radius: 2px;
    transition: height 0.2s ease, background-color 0.2s ease;
}

.gnozis-audio-player.is-playing .soundwave-anim-bars span {
    background: #38bdf8;
    animation: soundwaveBars 1.2s ease-in-out infinite alternate;
}

.soundwave-anim-bars span:nth-child(1) {
    animation-delay: 0.0s;
}

.soundwave-anim-bars span:nth-child(2) {
    animation-delay: 0.2s;
}

.soundwave-anim-bars span:nth-child(3) {
    animation-delay: 0.4s;
}

.soundwave-anim-bars span:nth-child(4) {
    animation-delay: 0.1s;
}

.soundwave-anim-bars span:nth-child(5) {
    animation-delay: 0.35s;
}

.soundwave-anim-bars span:nth-child(6) {
    animation-delay: 0.15s;
}

.soundwave-anim-bars span:nth-child(7) {
    animation-delay: 0.45s;
}

.soundwave-anim-bars span:nth-child(8) {
    animation-delay: 0.25s;
}

.soundwave-anim-bars span:nth-child(9) {
    animation-delay: 0.5s;
}

@keyframes soundwaveBars {
    0% {
        height: 4px;
    }

    50% {
        height: 14px;
    }

    100% {
        height: 6px;
    }
}

/* Компактний аудіоплеєр для чату */
.chat-audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 8px 12px;
    margin: 6px 0;
    min-width: 220px;
    max-width: 320px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.msg-bubble-wrap.outgoing .chat-audio-player {
    background: rgba(2, 132, 199, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
}

.chat-audio-player .btn-audio-play-pause {
    width: 34px;
    height: 34px;
    min-width: 34px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.chat-audio-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-audio-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-audio-scrubber-rail {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    cursor: pointer;
}

.chat-audio-scrubber-fill {
    height: 100%;
    background: #38bdf8;
    border-radius: 999px;
    pointer-events: none;
    transition: width 0.08s linear;
}

.chat-audio-duration {
    font-size: 0.7rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Кнопка та прев'ю аудіо в формі повідомлень */
.btn-chat-attach-audio {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background-color 0.2s;
    outline: none;
}

.btn-chat-attach-audio:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.chat-attached-audio-preview {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 6px 12px;
    margin: 8px 12px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.chat-audio-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #38bdf8;
    font-weight: 500;
    min-width: 0;
}

.chat-audio-pill span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-cancel-chat-audio {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s;
}

.btn-cancel-chat-audio:hover {
    color: #ef4444;
}

/* Клікабельні картки груп та учасників */
[data-card-url],
.filterable-group-card,
.filterable-member-card,
.group-card {
    cursor: pointer;
}

[data-card-url] a,
[data-card-url] button,
[data-card-url] input,
.filterable-group-card button,
.filterable-group-card a,
.filterable-member-card button,
.filterable-member-card a {
    cursor: pointer;
}

/* ==========================================================================
   GNOZIS EMOJI PICKER & INPUT INTEGRATION
   ========================================================================== */
.composer-input-wrap {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.composer-input-wrap .composer-textarea {
    width: 100%;
    padding-right: 48px !important;
    box-sizing: border-box;
}

.chat-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

.chat-input-wrap .chat-input-field {
    width: 100%;
    padding-right: 44px;
}

.mini-chat-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}

.mini-chat-input-wrap .mini-chat-input {
    width: 100%;
    padding-right: 38px;
}

/* Кнопка виклику смайликів */
.gnozis-emoji-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gnozis-text-muted, #7898B8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
    outline: none;
    flex-shrink: 0;
    z-index: 3;
}

.composer-input-wrap .gnozis-emoji-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 5;
}

.chat-input-wrap .gnozis-emoji-btn,
.mini-chat-input-wrap .gnozis-emoji-btn,
.comment-input-wrap .gnozis-emoji-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
}

.gnozis-emoji-btn:hover,
.gnozis-emoji-btn.is-active {
    color: #FFFFFF;
    background: rgba(96, 120, 144, 0.22);
}

.chat-input-wrap .gnozis-emoji-btn:hover,
.mini-chat-input-wrap .gnozis-emoji-btn:hover,
.comment-input-wrap .gnozis-emoji-btn:hover,
.chat-input-wrap .gnozis-emoji-btn.is-active,
.mini-chat-input-wrap .gnozis-emoji-btn.is-active,
.comment-input-wrap .gnozis-emoji-btn.is-active {
    transform: translateY(-50%) scale(1.1);
}

.composer-input-wrap .gnozis-emoji-btn:hover,
.composer-input-wrap .gnozis-emoji-btn.is-active {
    transform: scale(1.1);
}

.gnozis-emoji-btn svg {
    display: block;
    pointer-events: none;
}

/* Поповер вибору смайликів */
.gnozis-emoji-popover {
    position: absolute;
    z-index: 100020;
    width: 328px;
    max-width: calc(100vw - 28px);
    height: 330px;
    background: #142030;
    background: rgba(20, 32, 48, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card, #2A3B4C);
    border-radius: 14px;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(96, 120, 144, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: gnozisEmojiFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

@keyframes gnozisEmojiFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(6px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.gnozis-emoji-tabs {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(96, 120, 144, 0.15);
    background: rgba(10, 18, 28, 0.75);
    flex-shrink: 0;
}

.gnozis-emoji-tab {
    background: none;
    border: none;
    font-size: 1.15rem;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
    outline: none;
}

.gnozis-emoji-tab:hover,
.gnozis-emoji-tab.active {
    opacity: 1;
    background: rgba(96, 120, 144, 0.2);
    transform: scale(1.12);
}

.gnozis-emoji-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 120, 144, 0.35) transparent;
}

.gnozis-emoji-body::-webkit-scrollbar {
    width: 5px;
}

.gnozis-emoji-body::-webkit-scrollbar-thumb {
    background: rgba(96, 120, 144, 0.35);
    border-radius: 4px;
}

.gnozis-emoji-section-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7898B8;
    margin: 8px 0 6px 4px;
}

.gnozis-emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.gnozis-emoji-item {
    background: none;
    border: none;
    font-size: 1.35rem;
    line-height: 1;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease;
    outline: none;
    padding: 0;
}

.gnozis-emoji-item:hover {
    background: rgba(96, 120, 144, 0.25);
    transform: scale(1.22);
}

.gnozis-emoji-item:active {
    transform: scale(0.94);
}

/* ==========================================================================
   FILE: modules/moderation.css
   ========================================================================== */
/* ==========================================================================
   FRONTEND ADMIN & MODERATION STYLES
   ========================================================================== */
.btn-admin-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-admin-action-pill:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}

.btn-admin-action-pill.is-paused {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.btn-admin-action-pill.item-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-admin-action-pill.item-danger:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: #ef4444;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.btn-admin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gnozis-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.88rem;
}

.btn-admin-icon-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}



.group-badge-paused {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 600;
}

.group-paused-notice-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--gnozis-radius-lg, 14px);
    margin-bottom: 20px;
}

.group-paused-notice-card .paused-notice-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.group-paused-notice-card strong {
    display: block;
    color: #fbbf24;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.group-paused-notice-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gnozis-text-muted, #94a3b8);
    line-height: 1.4;
}

.comment-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.comment-author-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    min-width: 0;
}

.comment-actions-btns {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
}

.btn-comment-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: var(--gnozis-text-muted, #94a3b8);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    opacity: 0.65;
}

.comment-item:hover .btn-comment-action {
    opacity: 1;
}

.btn-comment-action.btn-edit-comment:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    transform: scale(1.1);
}

.btn-comment-action.btn-admin-delete-comment:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.1);
}

/* Інлайн редактор коментарів */
.comment-inline-editor {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 6px;
    width: 100%;
}

.comment-edit-textarea {
    width: 100%;
    min-height: 52px;
    padding: 7px 10px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.86rem;
    line-height: 1.4;
    resize: vertical;
    font-family: inherit;
    outline: none;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.12);
}

.comment-edit-textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.comment-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.btn-comment-edit-cancel,
.btn-comment-edit-save {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-comment-edit-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-comment-edit-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
}

.btn-comment-edit-save {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.btn-comment-edit-save:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.rank-banned {
    background: rgba(239, 68, 68, 0.18) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #f87171 !important;
    font-weight: 700;
}

.member-card.is-banned-card {
    opacity: 0.65;
    border-color: rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   1. САКРАЛЬНИЙ HERO-БАНЕР МАГАЗИНУ "ЛАВКА ВІДЬМИ"
   ========================================================================== */
.gnozis-shop-hero-banner {
    position: relative;
    border-radius: var(--gnozis-radius-xl, 24px);
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid rgba(220, 38, 38, 0.35);
    background: radial-gradient(ellipse at 85% 50%, rgba(185, 28, 28, 0.18) 0%, rgba(15, 23, 42, 0.95) 60%, #06070b 100%), #06070b;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(220, 38, 38, 0.18);
    min-height: 290px;
}

.shop-hero-bg-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shop-hero-ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.shop-hero-glow-left {
    top: -30%;
    left: 10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.18) 0%, transparent 70%);
}

.shop-hero-glow-right {
    top: 10%;
    right: 5%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
}

.shop-hero-stars-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
}

.shop-hero-inner {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 40px;
}

.shop-hero-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 680px;
}

.shop-hero-sigil-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 9999px;
    width: fit-content;
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.25);
}

.shop-hero-sigil-icon {
    color: #f87171;
    font-size: 0.82rem;
    letter-spacing: 2px;
}

.shop-hero-tag {
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.shop-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8), 0 0 24px rgba(220, 38, 38, 0.35);
}

.shop-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
    max-width: 580px;
}

.shop-hero-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.shop-hero-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 0.84rem;
    color: #e2e8f0;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.shop-hero-meta-pill:hover {
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.2);
}

.shop-hero-meta-pill .pill-icon {
    font-size: 0.95rem;
}

/* Права колонка з чітким та виразним відображенням арту */
.shop-hero-visual-side {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-hero-art-card {
    position: relative;
    width: 230px;
    height: 230px;
    border-radius: 20px;
    overflow: hidden;
    background: #000000;
    border: 2px solid rgba(220, 38, 38, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 35px rgba(220, 38, 38, 0.35);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.shop-hero-art-card:hover {
    transform: scale(1.04) rotate(0.5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 45px rgba(239, 68, 68, 0.5);
    border-color: rgba(239, 68, 68, 0.8);
}

.shop-hero-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.05) contrast(1.1);
    display: block;
    transition: transform 0.6s ease;
}

.shop-hero-art-card:hover .shop-hero-art-img {
    transform: scale(1.06);
}

.shop-hero-art-border-glow {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 20px rgba(220, 38, 38, 0.4);
    pointer-events: none;
    z-index: 2;
    border-radius: 18px;
}

/* Кнопки редагування банеру магазину для адміністратора */
.shop-hero-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.btn-edit-shop-banner {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 6px 14px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    border-radius: 20px !important;
    color: #fca5a5 !important;
    font-family: inherit !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 12px rgba(220, 38, 38, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    outline: none !important;
}

.btn-edit-shop-banner:hover {
    background: rgba(220, 38, 38, 0.25) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45) !important;
    transform: translateY(-1px) !important;
}

.btn-edit-shop-banner svg {
    color: #ef4444 !important;
    flex-shrink: 0 !important;
}

.is-admin-art-card {
    position: relative;
    cursor: pointer;
}

.btn-shop-art-edit-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(10, 10, 15, 0.88);
    border: 1px solid rgba(220, 38, 38, 0.45);
    border-radius: 16px;
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    opacity: 0.85;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-family: inherit;
    white-space: nowrap;
}

.shop-hero-art-card:hover .btn-shop-art-edit-overlay {
    opacity: 1;
    background: rgba(220, 38, 38, 0.25);
    border-color: #ef4444;
    color: #fff;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

/* Модальне вікно редагування банеру магазину */
.gnozis-modal-shop-banner {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.gnozis-modal-shop-banner.open,
.gnozis-modal-shop-banner.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.gnozis-modal-shop-banner .gnozis-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1;
}

.gnozis-modal-dialog.gnozis-modal-shop-banner-dialog {
    position: relative;
    z-index: 2;
    background: radial-gradient(130% 130% at 50% 0%, #16121e 0%, #0a0710 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 20px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(220, 38, 38, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 68, 68, 0.3) transparent;
}

.gnozis-modal-shop-banner.open .gnozis-modal-dialog,
.gnozis-modal-shop-banner.active .gnozis-modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-banner-image-upload-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: rgba(10, 8, 15, 0.7);
    border: 1px dashed rgba(239, 68, 68, 0.35);
    border-radius: 12px;
}

.banner-img-preview-box {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: #000;
}

.banner-img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-file-input-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.btn-upload-banner-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-upload-banner-file:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
}

.banner-filename-display {
    font-size: 0.76rem;
    color: var(--text-muted, #94a3b8);
    word-break: break-all;
}

@media (max-width: 900px) {
    .shop-hero-inner {
        padding: 24px 24px;
        gap: 20px;
    }

    .shop-hero-art-card {
        width: 180px;
        height: 180px;
        border-radius: 16px;
    }

    .shop-hero-title {
        font-size: 2rem;
    }

    .shop-hero-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 680px) {
    .shop-hero-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 20px 18px;
    }

    .shop-hero-visual-side {
        width: 100%;
        justify-content: center;
        margin-bottom: 4px;
    }

    .shop-hero-art-card {
        width: 190px;
        height: 190px;
    }

    .shop-hero-title {
        font-size: 1.7rem;
    }

    .shop-hero-meta-pill {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    .shop-hero-top-row {
        gap: 8px;
    }
}

/* ==========================================================================
   2. ВІДМІТКИ КОРИСТУВАЧІВ @ ТА АВТОКОМПЛІТ ЗГАДОК
   ========================================================================== */
.gnozis-mention-dropdown {
    position: absolute;
    z-index: 99999;
    background: rgba(10, 15, 29, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.2);
    max-height: 280px;
    overflow-y: auto;
    width: 320px;
    padding: 8px;
    display: none;
}

.gnozis-mention-dropdown.is-active {
    display: block;
    animation: gnozisFadeSlideDown 0.18s ease-out;
}

.gnozis-mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: #e2e8f0;
    user-select: none;
}

.gnozis-mention-item:hover,
.gnozis-mention-item.is-selected {
    background: rgba(56, 189, 248, 0.16);
    color: #ffffff;
    transform: translateX(2px);
}


/* ==========================================================================
   ЦЕНТР МОДЕРАЦІЇ ТА СКАРГ (Moderation Dashboard Modal)
   ========================================================================== */
.reports-dashboard-dialog {
    max-width: 820px !important;
    width: 95% !important;
    background: linear-gradient(180deg, #0e172a 0%, #090e1c 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.15) !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    color: #f1f5f9 !important;
}

.reports-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 16px !important;
    margin-bottom: 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.reports-nav-tabs {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
    background: rgba(15, 23, 42, 0.6) !important;
    padding: 6px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.reports-nav-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
}

.reports-nav-tab:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.reports-nav-tab.active {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2) !important;
}

.reports-badge-count {
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 1px 7px !important;
    border-radius: 999px !important;
    margin-left: 4px !important;
}

/* Статистика */
.reports-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}

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

.stat-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-1px) !important;
}

.stat-ico {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.35rem !important;
    flex-shrink: 0 !important;
}

.stat-total .stat-ico {
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.stat-pending .stat-ico {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.stat-resolved .stat-ico {
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.stat-data {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.stat-number {
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    line-height: 1.2 !important;
    font-family: inherit !important;
}

.stat-label {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.reports-stats-sections-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
}

@media (max-width: 700px) {
    .reports-stats-sections-row {
        grid-template-columns: 1fr !important;
    }
}

.stats-panel-box {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.stats-panel-title {
    margin: 0 !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Смужки причин скарг */
.reason-bar-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.reason-bar-label-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.8rem !important;
    color: #cbd5e1 !important;
}

.reason-bar-track {
    width: 100% !important;
    height: 7px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}

.reason-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #38bdf8, #818cf8) !important;
    border-radius: 999px !important;
    transition: width 0.4s ease !important;
}

/* Фільтри черги */
.filter-pills-group {
    display: flex !important;
    gap: 6px !important;
}

.filter-pill {
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.filter-pill.active {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Картка скарги в черзі */
.report-card-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    transition: all 0.2s ease !important;
}

.report-card-item:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.report-card-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.report-badge-reason {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.report-target-box {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    color: #cbd5e1 !important;
}

.report-actions-row {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin-top: 4px !important;
}

.btn-report-action {
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-report-action:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.btn-report-approve:hover {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #86efac !important;
}

.btn-report-delete:hover,
.btn-report-ban:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}

.btn-report-warn:hover {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #fde047 !important;
}

.btn-report-shadowban:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    color: #d8b4fe !important;
}

/* Авто-модерація */
.automod-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 16px !important;
}

.automod-radio-group {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 10px !important;
}

.automod-radio-card {
    flex: 1 1 200px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.automod-radio-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.automod-textareas-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
}

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

.automod-textarea {
    width: 100% !important;
    min-height: 90px !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    color: #f8fafc !important;
    font-size: 0.84rem !important;
    box-sizing: border-box !important;
    resize: vertical !important;
}

.automod-textarea:focus {
    border-color: #38bdf8 !important;
    outline: none !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
}

.automod-actions-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    align-items: center !important;
    margin-top: 10px !important;
}

.btn-automod-reset,
.btn-automod-save {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-automod-reset {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

.btn-automod-save {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
}


/* ==========================================================================
   МОДЕРАТОРИ ПЛАТФОРМИ (Site Moderators Cards & Caps)
   ========================================================================== */
.site-mod-card-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    margin-bottom: 12px !important;
}

.site-mod-card-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.site-mod-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.site-mod-profile-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 200px !important;
}

.site-mod-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15) !important;
    display: block !important;
}

.site-mod-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    line-height: 1.2 !important;
}

.site-mod-email {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    margin-top: 2px !important;
}

.site-mod-role-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.site-mod-caps-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.site-mod-caps-title {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
}

.mod-caps-checkboxes {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.mod-cap-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: #cbd5e1 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

.mod-cap-label:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.mod-cap-label input[type="checkbox"] {
    accent-color: #38bdf8 !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.mod-cap-label:has(input:checked),
.mod-cap-label.is-checked {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.16) !important;
}

.site-mod-actions-row {
    display: flex !important;
    justify-content: flex-end !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.btn-save-site-mod-caps {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
}

.btn-save-site-mod-caps:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5) !important;
    background: linear-gradient(135deg, #0ea5e9, #1d4ed8) !important;
}

.btn-save-site-mod-caps:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}



/* Strict guarantee that reports dashboard modal is hidden when closed */
#gnozis-modal-reports-dashboard:not(.open) {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

#gnozis-modal-reports-dashboard.open {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}


/* ==========================================================================
   МОДЕРАТОРИ ПЛАТФОРМИ (Site Moderators Cards & Caps)
   ========================================================================== */
.moderators-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    margin-top: 14px !important;
}

.moderator-card {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    transition: all 0.2s ease !important;
}

.moderator-card:hover {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.moderator-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #38bdf8 !important;
    flex-shrink: 0 !important;
}

.moderator-meta {
    flex-grow: 1 !important;
    min-width: 0 !important;
}

.moderator-name {
    font-size: 0.94rem !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
    margin: 0 0 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.moderator-role-badge {
    display: inline-block !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

/* ==========================================================================
   FILE: pages/shop.css
   ========================================================================== */
/* ==========================================================================
   9. СТОРІНКА КАТАЛОГУ КРАМНИЦІ (/shop/) ТА НАВІГАЦІЯ
   ========================================================================== */

/* Верхня навігаційна панель повернення до соцмережі */
/* Shop navbar — very dark, barely visible */
.gnozis-shop-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(0, 16, 32, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
    border-radius: var(--gnozis-radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    position: sticky;
    top: 20px;
    z-index: 40;
}

.shop-nav-left {
    display: flex;
    align-items: center;
}

.btn-back-to-network {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-md);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--gnozis-transition);
}

/* Shop back button hover — cobalt */
.btn-back-to-network:hover {
    background: rgba(96, 120, 144, 0.16);
    border-color: rgba(96, 120, 144, 0.48);
    color: #E0E8F0;
    box-shadow: 0 0 16px rgba(96, 120, 144, 0.30);
    transform: translateX(-3px);
}

.btn-back-to-network svg {
    transition: transform 0.2s;
}

.btn-back-to-network:hover svg {
    transform: translateX(-2px);
}

.shop-nav-center {
    display: flex;
    align-items: center;
}

.shop-nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.shop-nav-brand .brand-sigil {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(120, 152, 184, 0.4);
}

.shop-nav-brand .brand-name {
    font-family: var(--gnozis-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gnozis-text-primary);
}

.shop-nav-brand .brand-badge {
    background: rgba(120, 152, 184, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(120, 152, 184, 0.35);
    border-radius: var(--gnozis-radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    margin-left: 4px;
}

.shop-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--gnozis-radius-md);
    color: var(--gnozis-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: var(--gnozis-transition);
}

.nav-link-pill:hover {
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-card);
}

.btn-shop-cart-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(120, 152, 184, 0.1);
    border: 1px solid rgba(120, 152, 184, 0.3);
    border-radius: var(--gnozis-radius-md);
    padding: 7px 14px;
    color: var(--gnozis-text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gnozis-transition);
}

.btn-shop-cart-trigger:hover {
    background: rgba(120, 152, 184, 0.2);
    box-shadow: 0 0 12px rgba(120, 152, 184, 0.3);
    color: #E0E8F0;
}

/* Хлібні крихти (Breadcrumbs) */
.shop-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gnozis-border-subtle);
    border-radius: var(--gnozis-radius-full);
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.crumb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gnozis-text-muted);
    transition: color 0.2s;
}

.crumb-link:hover {
    color: var(--accent-cyan);
}

.crumb-sep {
    color: var(--gnozis-text-tertiary);
}

.crumb-current {
    color: var(--gnozis-text-secondary);
    font-weight: 600;
}

.gnozis-shop-container {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gnozis-shop-header {
    text-align: center;
    padding: 10px 20px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shop-sigil {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(120, 152, 184, 0.4);
}

.shop-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gnozis-text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.shop-subtitle {
    font-size: 0.95rem;
    color: var(--gnozis-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.gnozis-shop-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.gnozis-shop-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
}

.filter-card {
    background: var(--gnozis-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
    border-bottom: 1px solid var(--gnozis-border-subtle);
    padding-bottom: 10px;
}

.filter-categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-categories-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--gnozis-radius-md);
    color: var(--gnozis-text-muted);
    font-size: 0.85rem;
    transition: var(--gnozis-transition);
}

/* Filter category active — cobalt */
.filter-categories-list li a:hover,
.filter-categories-list li.active a {
    background: rgba(96, 120, 144, 0.16);
    color: var(--gnozis-text-primary);
    border: 1px solid rgba(96, 120, 144, 0.38);
}

.filter-categories-list .count {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 9999px;
}

.price-slider-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Range slider — cobalt accent */
.gnozis-range-slider {
    width: 100%;
    accent-color: var(--accent-cobalt);
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--gnozis-text-muted);
}

.current-price-val {
    color: var(--accent-cyan);
    font-weight: 600;
}

.gnozis-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--gnozis-text-secondary);
    cursor: pointer;
}

/* Checkbox — cobalt */
.gnozis-checkbox-label input {
    accent-color: var(--accent-cobalt);
}

.gnozis-shop-catalog {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--gnozis-bg-card);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-md);
    font-size: 0.85rem;
    color: var(--gnozis-text-muted);
}

.gnozis-select {
    background: rgba(0, 16, 32, 0.8);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-sm);
    color: var(--gnozis-text-primary);
    padding: 6px 12px;
    font-size: 0.82rem;
    outline: none;
}

.gnozis-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gnozis-product-card {
    background: var(--gnozis-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--gnozis-transition);
    cursor: pointer;
}

.card-thumb-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    outline: none;
}

.gnozis-product-card .card-actions-row,
.gnozis-product-card .card-admin-bar {
    cursor: default;
}

/* Product card hover — cobalt glow (Deep Abyss) */
.gnozis-product-card:hover {
    border-color: rgba(96, 120, 144, 0.50);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -10px rgba(96, 120, 144, 0.28);
}

.gnozis-product-card:hover .card-title a,
.gnozis-product-card:hover .card-title {
    color: #38bdf8 !important;
}

.gnozis-product-card .card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(120, 152, 184, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(120, 152, 184, 0.35);
    border-radius: var(--gnozis-radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    z-index: 5;
}

.card-thumb-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 190px;
    background: radial-gradient(circle at 50% 50%, #0d1728 0%, #060a12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gnozis-product-card:hover .card-thumb-img {
    transform: scale(1.06);
}

/* Product image aura — cobalt */
.card-thumb-aura {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(96, 120, 144, 0.22) 0%, transparent 70%);
    filter: blur(15px);
    z-index: 1;
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.card-category {
    font-size: 0.72rem;
    color: var(--gnozis-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
    line-height: 1.35;
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: var(--accent-cyan);
}

.card-desc {
    font-size: 0.8rem;
    color: var(--gnozis-text-muted);
    line-height: 1.45;
    flex-grow: 1;
}

.gnozis-product-card.has-discount {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.15);
}

.gnozis-product-card.has-discount:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.3);
}

.card-badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #f97316 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    z-index: 6;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
    animation: pulseDiscountGlow 2.8s infinite ease-in-out;
}

@keyframes pulseDiscountGlow {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 22px rgba(249, 115, 22, 0.8);
        transform: scale(1.05);
    }
}

.card-price-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-price-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.card-price-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.card-price.price-sale strong {
    color: #38bdf8;
    font-size: 1.3rem;
    font-weight: 800;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.card-price-old {
    font-size: 0.96rem;
    color: #cbd5e1;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
    font-weight: 600;
    opacity: 0.95;
    letter-spacing: -0.01em;
}

.card-price-old .price-val-old {
    color: #cbd5e1;
}

.card-discount-economy-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.card-discount-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 2px 7px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.card-economy-text {
    font-size: 0.75rem;
    color: #34d399;
    font-weight: 600;
}

.card-economy-text strong {
    color: #6ee7b7;
    font-weight: 700;
}

.card-actions-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

/* Product card Cart button — prominent cyber action button */
.btn-gnozis-card-cart {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(59, 130, 246, 0.22) 100%);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--gnozis-radius-sm, 10px);
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gnozis-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.btn-gnozis-card-cart:hover {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

/* Панель адміністратора на картці товару */
.card-admin-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.btn-admin-card-edit,
.btn-admin-card-delete {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: var(--gnozis-radius-sm);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gnozis-transition);
    text-decoration: none;
}

.btn-admin-card-edit {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.btn-admin-card-edit:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.btn-admin-card-delete {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.btn-admin-card-delete:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Кнопка скидання фільтрів у сайдбарі */
.btn-reset-shop-filters {
    width: 100%;
    padding: 10px 14px;
    background: rgba(96, 120, 144, 0.08);
    border: 1px dashed rgba(96, 120, 144, 0.3);
    border-radius: var(--gnozis-radius-md);
    color: var(--gnozis-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gnozis-transition);
    text-align: center;
}

.btn-reset-shop-filters:hover {
    background: rgba(96, 120, 144, 0.18);
    border-color: rgba(96, 120, 144, 0.55);
    color: var(--gnozis-text-primary);
}

/* Стан порожніх результатів пошуку/фільтрації */
.gnozis-no-products {
    background: var(--gnozis-bg-card);
    border: 1px dashed var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-lg);
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    grid-column: 1 / -1;
}

.no-products-icon {
    font-size: 2.8rem;
    margin-bottom: 4px;
    animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-8px);
    }
}

.no-products-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gnozis-text-primary);
}

.no-products-desc {
    font-size: 0.88rem;
    color: var(--gnozis-text-muted);
    max-width: 380px;
    line-height: 1.5;
}

.btn-reset-filters-inline {
    margin-top: 8px;
    padding: 9px 18px;
    font-size: 0.85rem;
    cursor: pointer;
}


/* ==========================================================================
   GNOZIS SHOP TOOLBAR & ACTIONS
   ========================================================================== */
.catalog-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
    background: rgba(13, 22, 38, 0.72) !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.catalog-toolbar-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* Кнопка відкриття мобільних фільтрів (прихована на десктопі) */
.btn-toggle-shop-filters-mobile {
    display: none !important;
}

@media (max-width: 991px) {
    .gnozis-shop-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 16px !important;
        box-sizing: border-box !important;
    }

    .gnozis-shop-filters {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        display: none !important;
        flex-direction: column !important;
        gap: 14px !important;
        order: 1 !important;
        background: #0d1522 !important;
        border: 1px solid rgba(56, 189, 248, 0.25) !important;
        border-radius: 16px !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    .gnozis-shop-filters.is-open {
        display: flex !important;
    }

    .gnozis-shop-catalog {
        width: 100% !important;
        max-width: 100% !important;
        order: 2 !important;
    }

    .catalog-toolbar {
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .catalog-toolbar-actions {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .catalog-sorting {
        flex: 1 1 auto !important;
        min-width: 140px !important;
    }

    .catalog-sorting .gnozis-select {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .btn-toggle-shop-filters-mobile {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: rgba(15, 23, 42, 0.85) !important;
        border: 1px solid rgba(56, 189, 248, 0.3) !important;
        color: #e2e8f0 !important;
        padding: 7px 14px !important;
        border-radius: 8px !important;
        font-size: 0.84rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        font-family: inherit !important;
    }

    .btn-toggle-shop-filters-mobile:hover,
    .btn-toggle-shop-filters-mobile.active {
        background: rgba(56, 189, 248, 0.22) !important;
        border-color: #38bdf8 !important;
        color: #ffffff !important;
    }

    .shop-hero-inner {
        flex-direction: column !important;
        padding: 24px 16px !important;
        gap: 20px !important;
    }

    .shop-hero-content {
        max-width: 100% !important;
    }

    .shop-hero-meta-row {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .shop-hero-visual-side {
        width: 100% !important;
        max-width: 260px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 768px) {

    .products-grid,
    .woocommerce ul.products,
    .gnozis-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .product-card,
    .woocommerce ul.products li.product {
        padding: 10px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    .product-card-thumb,
    .woocommerce ul.products li.product img {
        border-radius: 8px !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
        width: 100% !important;
    }

    .product-card-title,
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.84rem !important;
        line-height: 1.35 !important;
    }

    .btn-add-to-cart,
    .btn-notify-expected,
    .btn-quick-view,
    .woocommerce ul.products li.product .button {
        padding: 8px 10px !important;
        font-size: 0.78rem !important;
    }
}

/* Кнопка адміністратора «Додати товар» */
.btn-gnozis-add-product {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.35)) !important;
    border: 1px solid rgba(245, 158, 11, 0.55) !important;
    color: #fef3c7 !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2) !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    white-space: nowrap !important;
}

.btn-gnozis-add-product:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(217, 119, 6, 0.52)) !important;
    border-color: #fbbf24 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.38) !important;
}

.btn-gnozis-add-product .btn-sigil {
    font-size: 0.95rem !important;
    line-height: 1 !important;
}

/* Селект сортування товарів */
.catalog-sorting .gnozis-select {
    background: rgba(10, 18, 34, 0.9) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    color: #f1f5f9 !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    font-size: 0.84rem !important;
    outline: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.catalog-sorting .gnozis-select:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3) !important;
}

/* Діалог редагування банеру магазину */
.gnozis-modal-shop-banner-dialog,
#gnozis-modal-edit-shop-banner .gnozis-modal-dialog {
    position: relative !important;
    z-index: 2 !important;
    max-width: 580px !important;
    width: 100% !important;
    max-height: calc(100vh - 100px) !important;
    max-height: calc(100dvh - 100px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: linear-gradient(180deg, #0f172a 0%, #080d1a 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(220, 38, 38, 0.22) !important;
    padding: 24px 28px !important;
    box-sizing: border-box !important;
    margin: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(239, 68, 68, 0.3) transparent !important;
}

/* ==========================================================================
   FILE: pages/cart-checkout.css
   ========================================================================== */
.gnozis-sticky-summary-box {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 15.3. Картки чекауту (Cards) */
.gnozis-card.checkout-step-card,
.gnozis-card.checkout-summary-card,
.gnozis-card.checkout-coupon-card,
.gnozis-card.checkout-empty-card,
.gnozis-card.thankyou-success-card,
.gnozis-card.thankyou-failed-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--gnozis-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--gnozis-transition);
    position: relative;
}

.checkout-step-card {
    padding: 24px 28px;
}

.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.header-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--gnozis-radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-num-pill {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-fill-medium);
    color: var(--accent-bright);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-primary);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* 15.4. Поля введення WooCommerce (Forms, Inputs, Blocks & Select2) */
.gnozis-checkout-page-wrapper,
.woocommerce-checkout,
.wp-block-woocommerce-checkout,
.wc-block-checkout {
    color: var(--text-primary);
}

/* Грід для класичних полів */
.gnozis-checkout-form .woocommerce-billing-fields__field-wrapper,
.gnozis-checkout-form .woocommerce-shipping-fields__field-wrapper,
.gnozis-checkout-form .woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gnozis-checkout-form .woocommerce-additional-fields {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.gnozis-checkout-form .form-row,
.woocommerce-checkout .form-row {
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gnozis-checkout-form .form-row-wide,
.gnozis-checkout-form .notes,
.gnozis-checkout-form #billing_address_1_field,
.gnozis-checkout-form #billing_address_2_field,
.gnozis-checkout-form #billing_country_field,
.gnozis-checkout-form #shipping_address_1_field,
.gnozis-checkout-form #shipping_address_2_field,
.gnozis-checkout-form #shipping_country_field {
    grid-column: 1 / -1;
}

.gnozis-checkout-form label,
.woocommerce-checkout label,
.wc-block-components-checkout-step__title,
.wc-block-components-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.gnozis-checkout-form .required,
.woocommerce-checkout .required {
    color: var(--accent-bright);
    font-weight: 700;
    text-decoration: none;
}

/* 15.4.1. Універсальні темні поля введення (Класичні + Блоки) */
.gnozis-checkout-page-wrapper input[type="text"],
.gnozis-checkout-page-wrapper input[type="email"],
.gnozis-checkout-page-wrapper input[type="tel"],
.gnozis-checkout-page-wrapper input[type="password"],
.gnozis-checkout-page-wrapper input[type="number"],
.gnozis-checkout-page-wrapper textarea,
.gnozis-checkout-page-wrapper select,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.wc-block-checkout__main input,
.wc-block-checkout__main select,
.wc-block-checkout__main textarea,
.wc-block-checkout__sidebar input,
.wc-block-checkout__sidebar select,
.wc-block-components-text-input,
.wc-block-components-combobox,
.wc-block-components-combobox-control,
.wc-block-components-select__select,
.wc-block-components-totals-coupon-input-form .wc-block-components-text-input,
.gnozis-coupon-input,
.gnozis-input-coupon {
    width: 100%;
    background: var(--bg-input) !important;
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-input) !important;
    border-radius: var(--gnozis-radius-sm) !important;
    color: var(--text-primary) !important;
    font-family: var(--gnozis-font-body);
    font-size: 0.92rem;
    padding: 12px 14px;
    outline: none;
    transition: var(--gnozis-transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Внутрішній input усередині WooCommerce Block wrappers */
.wc-block-components-text-input input,
.wc-block-components-combobox-control input,
.wc-block-components-combobox-control__input,
.wc-block-components-combobox input,
.wc-block-components-textarea textarea,
.wc-block-checkout__main .wc-block-components-text-input input,
.wc-block-checkout__main .wc-block-components-combobox-control input {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--text-primary) !important;
    font-family: var(--gnozis-font-body) !important;
    font-size: 0.92rem !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Стрілочки та суфікси у combobox */
.wc-block-components-combobox-control__toggle,
.wc-block-components-combobox-control__suffix,
.wc-block-components-combobox-control__toggle svg,
.wc-block-components-combobox-control__suffix svg {
    color: var(--accent-bright) !important;
    fill: var(--accent-bright) !important;
}

/* Запобігання білому фону автозаповнення браузера (Chrome / Edge / Safari) */
.gnozis-checkout-page-wrapper input:-webkit-autofill,
.gnozis-checkout-page-wrapper input:-webkit-autofill:hover,
.gnozis-checkout-page-wrapper input:-webkit-autofill:focus,
.gnozis-checkout-page-wrapper textarea:-webkit-autofill,
.gnozis-checkout-page-wrapper select:-webkit-autofill,
.woocommerce-checkout input:-webkit-autofill,
.wc-block-components-text-input input:-webkit-autofill,
.wc-block-components-combobox-control input:-webkit-autofill {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-input) inset !important;
    box-shadow: 0 0 0px 1000px var(--bg-input) inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Floating labels у WooCommerce Blocks */
.wc-block-components-text-input label,
.wc-block-components-combobox label {
    color: var(--text-muted) !important;
    background: transparent !important;
    font-size: 0.88rem !important;
    transition: var(--gnozis-transition) !important;
}

.wc-block-components-text-input.is-active label,
.wc-block-components-text-input:focus-within label,
.wc-block-components-combobox.is-active label,
.wc-block-components-combobox:focus-within label {
    color: var(--accent-bright) !important;
    background: var(--bg-input) !important;
    padding: 0 6px !important;
    border-radius: 3px !important;
}

/* Активний фокусний стан полів */
.gnozis-checkout-page-wrapper input:focus,
.gnozis-checkout-page-wrapper textarea:focus,
.gnozis-checkout-page-wrapper select:focus,
.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus,
.wc-block-components-text-input:focus-within,
.wc-block-components-combobox:focus-within,
.wc-block-components-combobox-control:focus-within,
.wc-block-components-select__select:focus,
.gnozis-coupon-input:focus,
.gnozis-input-coupon:focus {
    background: var(--bg-input-focus) !important;
    border-color: var(--accent-bright) !important;
    box-shadow: 0 0 0 3px var(--accent-glow), inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.gnozis-checkout-page-wrapper textarea,
.woocommerce-checkout textarea {
    min-height: 90px;
    resize: vertical;
}

.gnozis-checkout-page-wrapper select,
.woocommerce-checkout select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237898B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 38px !important;
}

/* 15.4.2. Випадаючі списки Combobox & Select2 */
.wc-block-components-combobox-list,
.select2-dropdown {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-hover) !important;
    border-radius: var(--gnozis-radius-md) !important;
    box-shadow: var(--shadow-card-elevated) !important;
    color: var(--text-primary) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

.wc-block-components-combobox-list__option,
.select2-results__option {
    color: var(--text-primary) !important;
    background: transparent !important;
    padding: 10px 14px !important;
    cursor: pointer !important;
    transition: var(--gnozis-transition) !important;
}

.wc-block-components-combobox-list__option:hover,
.wc-block-components-combobox-list__option--is-active,
.wc-block-components-combobox-list__option[aria-selected="true"],
.select2-results__option--highlighted[aria-selected],
.select2-results__option[aria-selected="true"] {
    background: var(--bg-elevated) !important;
    color: var(--accent-bright) !important;
}

.select2-container--default .select2-selection--single {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-input) !important;
    border-radius: var(--gnozis-radius-sm) !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary) !important;
    line-height: 48px !important;
    padding-left: 14px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.select2-search--dropdown .select2-search__field {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-input) !important;
    color: var(--text-primary) !important;
    border-radius: var(--gnozis-radius-xs) !important;
    padding: 8px 12px !important;
}

/* 15.4.3. Блоки кроків та панелі WooCommerce Blocks */
.wc-block-components-checkout-step,
.wc-block-components-panel,
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper {
    background: var(--gnozis-bg-card) !important;
    border: 1px solid var(--gnozis-border-card) !important;
    border-radius: var(--gnozis-radius-lg) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: var(--shadow-card) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.wc-block-components-checkout-step__title,
.wc-block-components-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 16px !important;
    font-family: var(--gnozis-font-heading) !important;
}

.wc-block-components-radio-control-accordion-option {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--gnozis-radius-md) !important;
    padding: 14px 18px !important;
    margin-bottom: 10px !important;
    transition: var(--gnozis-transition) !important;
}

.wc-block-components-radio-control-accordion-option:hover,
.wc-block-components-radio-control-accordion-option.is-selected {
    border-color: var(--accent-bright) !important;
    background: var(--bg-elevated) !important;
}

.wc-block-components-radio-control__label {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.wc-block-components-radio-control__description {
    color: var(--text-secondary) !important;
}

.wc-block-components-totals-item {
    color: var(--text-secondary) !important;
    border-color: var(--border-subtle) !important;
    font-size: 0.95rem !important;
}

.wc-block-components-totals-item .wc-block-components-totals-item__value {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.wc-block-components-totals-item.wc-block-components-totals-footer {
    border-top: 1px solid var(--border-hover) !important;
    padding-top: 14px !important;
    margin-top: 8px !important;
}

.wc-block-components-totals-footer .wc-block-components-totals-item__value {
    color: var(--accent-bright) !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    text-shadow: 0 0 12px var(--accent-glow);
}

/* Кнопка оформлення замовлення у WooCommerce Blocks */
.wc-block-components-checkout-place-order-button,
.wc-block-components-button {
    background: var(--accent-primary) !important;
    color: var(--text-primary) !important;
    font-family: var(--gnozis-font-heading) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    border-radius: var(--gnozis-radius-md) !important;
    border: 1px solid rgba(96, 120, 144, 0.55) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.40) !important;
    transition: var(--gnozis-transition) !important;
    width: 100% !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button:hover {
    background: var(--accent-bright) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.50) !important;
    transform: translateY(-1px) !important;
}

/* Чекбокси створення акаунта або іншої адреси */
.gnozis-checkout-form .woocommerce-form__label-for-checkbox,
.wc-block-components-checkbox__label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary) !important;
    margin-top: 8px;
}

.gnozis-checkout-form input[type="checkbox"],
.wc-block-components-checkbox__input {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: var(--gnozis-radius-xs);
    background: var(--bg-input) !important;
    border: 1px solid var(--border-input) !important;
    cursor: pointer;
    position: relative;
    transition: var(--gnozis-transition);
}

.gnozis-checkout-form input[type="checkbox"]:checked,
.wc-block-components-checkbox__input:checked {
    background: var(--accent-primary) !important;
    border-color: var(--accent-bright) !important;
}

.gnozis-checkout-form input[type="checkbox"]:checked::after,
.wc-block-components-checkbox__input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
}

/* 15.5. Способи оплати (Payment Methods) */
.gnozis-checkout-payment-box {
    margin-top: 10px;
}

.gnozis-payment-methods-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0 0 20px;
}

.gnozis-payment-method-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--gnozis-radius-md);
    padding: 16px 18px;
    cursor: pointer;
    transition: var(--gnozis-transition);
    position: relative;
}

.gnozis-payment-method-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.gnozis-payment-method-item.is-selected {
    border-color: var(--accent-bright);
    background: var(--bg-elevated);
    box-shadow: 0 0 16px var(--accent-glow);
}

.gnozis-payment-radio {
    display: none;
}

.gnozis-payment-method-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.custom-radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-input);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gnozis-transition);
}

.gnozis-payment-method-item.is-selected .custom-radio-circle {
    border-color: var(--accent-bright);
    background: var(--accent-bright);
    box-shadow: 0 0 8px var(--accent-glow);
}

.gateway-icon-badge {
    font-size: 1.25rem;
    line-height: 1;
}

.gateway-title-text {
    flex: 1;
}

.gateway-img-icons img {
    max-height: 24px;
    width: auto;
    object-fit: contain;
}

.gnozis-payment-desc-box {
    margin-top: 12px;
    padding: 14px 16px;
    background: #142232 !important;
    border: 1px solid #283C50 !important;
    border-radius: 8px !important;
    font-size: 0.88rem;
    color: #9AB0C8 !important;
    line-height: 1.55;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.woocommerce-checkout #payment div.payment_box {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px !important;
    margin: 12px 0 6px !important;
    font-size: 0.88rem !important;
    border-radius: 8px !important;
    line-height: 1.55 !important;
    background-color: #142232 !important;
    color: #9AB0C8 !important;
    border: 1px solid #283C50 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.woocommerce-checkout #payment div.payment_box p {
    margin: 0 !important;
    color: #9AB0C8 !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    content: "" !important;
    display: block !important;
    border: 8px solid transparent !important;
    border-bottom-color: #283C50 !important;
    position: absolute !important;
    top: -16px !important;
    left: 24px !important;
    margin: 0 !important;
}

.woocommerce-checkout #payment div.payment_box::after {
    content: "" !important;
    display: block !important;
    border: 7px solid transparent !important;
    border-bottom-color: #142232 !important;
    position: absolute !important;
    top: -14px !important;
    left: 25px !important;
    margin: 0 !important;
}

/* Бейджі брендів біля назви методу */
.gateway-brand-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.svg-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
    background: transparent;
    border: none;
    line-height: 1;
    transition: var(--gnozis-transition);
}

.svg-brand-badge svg {
    display: block;
    height: 24px;
    width: auto;
}

.svg-brand-badge:hover {
    transform: translateY(-1px);
}

.badge-svg-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #0E1A28;
    border: 1px solid #223448;
}

.badge-svg-apple {
    background: #000000;
    color: #FFFFFF;
}

.badge-svg-google {
    background: #182230;
}

.brand-logo-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
}

.brand-logo-pill.visa-pill {
    background: #1A1F71;
    color: #FFFFFF;
    font-style: italic;
    font-family: Arial, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-logo-pill.mc-pill {
    background: #252525;
    color: #EB001B;
    border: 1px solid rgba(235, 0, 27, 0.4);
}

.brand-logo-pill.apple-pill {
    background: #000000;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-logo-pill.gpay-pill {
    background: #3c4043;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Форма введення картки */
.gnozis-card-payment-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gnozis-express-pay-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.btn-express-applepay,
.btn-express-gpay,
.btn-applepay-direct,
.btn-gpay-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--gnozis-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--gnozis-transition);
    border: 1px solid var(--border-hover);
}

.btn-express-applepay,
.btn-applepay-direct {
    background: #000000;
    color: #FFFFFF;
}

.btn-express-applepay:hover,
.btn-applepay-direct:hover {
    background: #1c1c1e;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.btn-express-gpay,
.btn-gpay-direct {
    background: #1f1f1f;
    color: #FFFFFF;
}

.btn-express-gpay:hover,
.btn-gpay-direct:hover {
    background: #2d2d2d;
    box-shadow: 0 0 12px rgba(66, 133, 244, 0.25);
}

.gnozis-payment-separator {
    text-align: center;
    position: relative;
    margin: 6px 0;
}

.gnozis-payment-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-subtle);
    z-index: 0;
}

.gnozis-payment-separator span {
    position: relative;
    background: var(--bg-card);
    padding: 0 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.gnozis-card-input-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gnozis-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.gnozis-field-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.card-input-with-badges {
    position: relative;
}

.card-input-with-badges input {
    padding-right: 90px !important;
}

.input-card-logos {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    pointer-events: none;
}

.logo-badge-visa {
    font-size: 0.7rem;
    font-weight: 800;
    font-style: italic;
    background: #1A1F71;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
}

.logo-badge-mc {
    font-size: 0.7rem;
    font-weight: 800;
    background: #EB001B;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
}

.gnozis-field-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gnozis-payment-secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--accent-fill-soft);
    border: 1px solid var(--border-subtle);
    padding: 8px 12px;
    border-radius: var(--gnozis-radius-xs);
}

.gnozis-applepay-preview-badge,
.gnozis-gpay-preview-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--gnozis-radius-sm);
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.gnozis-applepay-preview-badge .pay-icon {
    font-weight: 800;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

.gnozis-gpay-preview-badge .pay-icon {
    font-weight: 800;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

/* =========================================================================
   15.5.3. Спеціальна інтеграція Stripe (GNOZIS Steel Abyss Edition)
   ========================================================================= */

/* Експрес-оплата Stripe (Google Pay / Apple Pay / Link) у блоці Спосіб оплати */
#customer_details~#wc-stripe-payment-request-wrapper,
#customer_details~#wc-stripe-payment-request-button-separator,
.gnozis-checkout-col-main>#wc-stripe-payment-request-wrapper,
.gnozis-checkout-col-main>#wc-stripe-payment-request-button-separator,
.gnozis-checkout-col-main>#wc-stripe-express-checkout-element,
.gnozis-checkout-form>#wc-stripe-payment-request-wrapper,
.gnozis-checkout-form>#wc-stripe-payment-request-button-separator {
    display: none !important;
}

/* =========================================================================
   15.5.4. GNOZIS Express Checkout Accordion (Apple Pay / Google Pay)
   ========================================================================= */
.gnozis-express-accordion-item {
    background: var(--bg-card, #0E1A29);
    border: 1px solid var(--border-card, #1F3247);
    border-radius: var(--gnozis-radius-md, 12px);
    margin-bottom: 14px;
    transition: var(--gnozis-transition, all 0.25s cubic-bezier(0.4, 0, 0.2, 1));
    overflow: hidden;
    position: relative;
}

.gnozis-express-accordion-item:hover {
    border-color: var(--border-hover, #2A4360);
    background: var(--bg-elevated, #112033);
}

.gnozis-express-accordion-item.is-selected {
    border-color: var(--accent-bright, #38BDF8) !important;
    background: #112033 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.22) !important;
}

.gnozis-express-accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    outline: none;
}

.gnozis-express-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.gnozis-express-title-group .gateway-title-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #F1F5F9);
    line-height: 1.3;
}

.gnozis-express-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted, #7E95AD);
    line-height: 1.3;
    transition: color 0.25s ease;
}

.gnozis-express-accordion-item.is-selected .gnozis-express-subtitle {
    color: #94A3B8;
}

/* Радіо коло вибору */
.gnozis-express-accordion-header .custom-radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-input, #283C50);
    background: var(--bg-input, #060C14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gnozis-transition, all 0.25s ease);
    flex-shrink: 0;
    position: relative;
}

.gnozis-express-accordion-item.is-selected .gnozis-express-accordion-header .custom-radio-circle {
    border-color: var(--accent-bright, #38BDF8) !important;
    background: var(--accent-bright, #38BDF8) !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5) !important;
}

.gnozis-express-accordion-item.is-selected .gnozis-express-accordion-header .custom-radio-circle::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0B1420;
    display: block;
}

/* Іконка блискавки */
.badge-express-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(251, 191, 36, 0.12);
    color: #FBBF24;
    font-size: 0.85rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Шеврон акордеону */
.gnozis-express-chevron {
    font-size: 0.72rem;
    color: var(--text-muted, #64748B);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
    margin-left: 6px;
    line-height: 1;
    display: inline-block;
}

.gnozis-express-accordion-item.is-selected .gnozis-express-chevron {
    transform: rotate(180deg);
    color: var(--accent-bright, #38BDF8);
}

/* Тіло акордеону з кнопками */
.gnozis-express-accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.3s ease;
}

.gnozis-express-accordion-item.is-selected .gnozis-express-accordion-body {
    max-height: 450px;
    opacity: 1;
    pointer-events: auto;
    padding: 4px 18px 18px;
    border-top: 1px solid rgba(56, 189, 248, 0.12);
}

.gnozis-express-hint-text {
    font-size: 0.82rem;
    color: var(--text-muted, #8A9EB5);
    margin: 12px 0 14px;
    line-height: 1.4;
}

/* Збільшені відступи між кнопками Google Pay та Apple Pay */
.gnozis-express-buttons-holder {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#payment #wc-stripe-payment-request-wrapper,
#payment #wc-stripe-express-checkout-element,
.gnozis-express-buttons-holder #wc-stripe-express-checkout-element,
.gnozis-express-buttons-holder #wc-stripe-payment-request-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#payment #wc-stripe-payment-request-wrapper::before {
    display: none !important;
}

#wc-stripe-payment-request-button-separator {
    display: none !important;
}

/* Відступи між конкретними кнопками та iframe плагіна Stripe */
#wc-stripe-express-checkout-element>div,
#wc-stripe-express-checkout-element>iframe,
#wc-stripe-payment-request-wrapper>div,
#wc-stripe-payment-request-wrapper>iframe,
.gnozis-express-buttons-holder>div,
.gnozis-express-buttons-holder iframe {
    margin-bottom: 14px !important;
    border-radius: 8px !important;
    transition: filter 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, opacity 0.2s ease !important;
    cursor: pointer !important;
}

#wc-stripe-express-checkout-element>div:last-child,
#wc-stripe-express-checkout-element>iframe:last-child,
#wc-stripe-payment-request-wrapper>div:last-child,
#wc-stripe-payment-request-wrapper>iframe:last-child,
.gnozis-express-buttons-holder>div:last-child,
.gnozis-express-buttons-holder iframe:last-child {
    margin-bottom: 0 !important;
}

/* Інтерактивний hover-ефект для Apple Pay та Google Pay */
#wc-stripe-express-checkout-element>div:hover,
#wc-stripe-express-checkout-element>iframe:hover,
#wc-stripe-payment-request-wrapper>div:hover,
#wc-stripe-payment-request-wrapper>iframe:hover,
.gnozis-express-buttons-holder>div:hover,
.gnozis-express-buttons-holder iframe:hover,
.gnozis-express-buttons-holder .is-btn-hovered {
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.28), 0 4px 14px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* Збереження глибокого преміального чорного тону для кнопки Google Pay без висвітлення */
#wc-stripe-express-checkout-element>div:last-child:hover,
#wc-stripe-express-checkout-element>div:nth-child(2):hover,
#wc-stripe-express-checkout-element>iframe:last-child:hover,
#wc-stripe-express-checkout-element>iframe:nth-child(2):hover,
.gnozis-express-buttons-holder>div:last-child:hover,
.gnozis-express-buttons-holder>div:nth-child(2):hover,
.gnozis-express-buttons-holder iframe:last-child:hover,
.gnozis-express-buttons-holder iframe:nth-child(2):hover,
.gnozis-express-buttons-holder>div:last-child.is-btn-hovered,
.gnozis-express-buttons-holder>div:nth-child(2).is-btn-hovered {
    filter: contrast(1.85) brightness(0.82) !important;
}

#wc-stripe-express-checkout-element>div:active,
#wc-stripe-express-checkout-element>iframe:active,
#wc-stripe-payment-request-wrapper>div:active,
#wc-stripe-payment-request-wrapper>iframe:active,
.gnozis-express-buttons-holder>div:active,
.gnozis-express-buttons-holder iframe:active {
    transform: translateY(0) scale(0.99) !important;
}

/* Пункт списку способу оплати Stripe */
.woocommerce-checkout #payment ul.payment_methods li.payment_method_stripe,
.woocommerce-checkout #payment ul.payment_methods li.payment_method_stripe_cc {
    background: var(--bg-card, #0E1A29) !important;
    border: 1px solid var(--border-card, #1F3247) !important;
    border-radius: var(--gnozis-radius-md, 12px) !important;
    padding: 16px 20px !important;
    margin-bottom: 12px !important;
    transition: var(--gnozis-transition, all 0.25s cubic-bezier(0.4, 0, 0.2, 1)) !important;
}

.woocommerce-checkout #payment ul.payment_methods li.payment_method_stripe:hover,
.woocommerce-checkout #payment ul.payment_methods li.payment_method_stripe.is-selected,
.woocommerce-checkout #payment ul.payment_methods li.payment_method_stripe_cc:hover,
.woocommerce-checkout #payment ul.payment_methods li.payment_method_stripe_cc.is-selected {
    border-color: #3B82F6 !important;
    background: #112033 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2) !important;
}

/* Контейнер форми картки Stripe Universal Payment Element */
.woocommerce-checkout #payment div.payment_box.payment_method_stripe,
.woocommerce-checkout #payment div.payment_box.payment_method_stripe_cc {
    background: #0B1420 !important;
    border: 1px solid #1C2E42 !important;
    border-radius: 10px !important;
    padding: 18px 20px !important;
    margin-top: 14px !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.woocommerce-checkout #payment div.payment_box.payment_method_stripe::before,
.woocommerce-checkout #payment div.payment_box.payment_method_stripe::after {
    display: none !important;
}

/* Поля вводу Stripe (номери карток, CVC, експірація) */
.wc-stripe-elements-field,
.wc-stripe-upe-element,
.wc-stripe-elements-field iframe,
#stripe-card-element,
#stripe-exp-element,
#stripe-cvc-element {
    background: #060B12 !important;
    border: 1px solid #1E334A !important;
    border-radius: 8px !important;
    color: #F1F5F9 !important;
    padding: 10px 14px !important;
    transition: all 0.25s ease !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

.wc-stripe-elements-field:focus-within,
.wc-stripe-elements-field.focused,
.wc-stripe-upe-element:focus-within,
#stripe-card-element.focused {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.35), inset 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

/* Запобігання дублюванню виводу оплати в правій колонці */
#order_review #payment,
#order_review .woocommerce-checkout-payment,
#order_review .gnozis-checkout-payment-box {
    display: none !important;
}

/* 15.6. Картка підсумку замовлення (Summary Card) */
.checkout-summary-card {
    padding: 22px 24px;
}

.summary-header {
    justify-content: space-between;
}

.summary-items-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-bright);
    background: var(--accent-fill-medium);
    padding: 4px 10px;
    border-radius: var(--gnozis-radius-full);
    border: 1px solid var(--accent-primary);
}

/* Список товарів у чеку */
.gnozis-review-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}

.gnozis-review-items-list::-webkit-scrollbar {
    width: 4px;
}

.gnozis-review-items-list::-webkit-scrollbar-track {
    background: transparent;
}

.gnozis-review-items-list::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

.gnozis-review-items-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-bright);
}

.gnozis-review-items-list .gnozis-review-item,
.woocommerce-checkout-review-order .gnozis-review-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--gnozis-radius-sm) !important;
    transition: var(--gnozis-transition) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.gnozis-review-items-list .gnozis-review-item:hover,
.woocommerce-checkout-review-order .gnozis-review-item:hover {
    border-color: var(--border-card) !important;
    background: var(--bg-elevated) !important;
}

.review-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--gnozis-radius-xs);
    background: var(--bg-elevated);
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.review-item-thumb img,
.review-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--gnozis-radius-xs);
}

.review-item-qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    box-shadow: var(--shadow-xs);
}

.review-item-details {
    flex: 1;
    min-width: 0;
}

.review-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.review-item-total {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

.gnozis-review-divider {
    height: 1px;
    background: var(--border-card);
    margin: 18px 0;
}

.gnozis-review-divider.total-divider {
    background: var(--border-active);
    opacity: 0.5;
    margin: 14px 0;
}

/* Підсумки сум */
.gnozis-review-totals-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.review-total-row .row-val {
    font-weight: 600;
    color: var(--text-primary);
}

.review-total-row .discount-val {
    color: #10B981;
}

.grand-total-row {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-top: 4px;
}

.grand-total-row .row-label {
    font-weight: 700;
}

.grand-total-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-bright) !important;
    text-shadow: 0 0 12px var(--accent-glow);
}

/* 15.7. Кнопка підтвердження замовлення */
.gnozis-place-order-box {
    margin-top: 20px;
}

.btn-gnozis-place-order {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--gnozis-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px var(--accent-glow-strong);
    transition: var(--gnozis-transition);
    border: none;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-primary) 100%);
}

.btn-gnozis-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow-strong);
}

.btn-gnozis-place-order:active {
    transform: translateY(0);
}

.btn-spinner-ring {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: gnozisSpin 0.7s linear infinite;
}

.btn-gnozis-place-order.is-loading .btn-spinner-ring {
    display: inline-block;
}

.btn-gnozis-place-order.is-loading .btn-arrow {
    display: none;
}

@keyframes gnozisSpin {
    to {
        transform: rotate(360deg);
    }
}

/* 15.8. Сакральний блок купонів та промокодів (GNOZIS Dark Luxury) */
.woocommerce-form-coupon-toggle.gnozis-coupon-toggle-wrap,
.woocommerce-form-coupon-toggle {
    display: none !important;
    margin-bottom: 20px !important;
}

.gnozis-coupon-notice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(14, 26, 41, 0.7) !important;
    border: 1px dashed rgba(56, 189, 248, 0.35) !important;
    border-radius: var(--gnozis-radius-md, 12px) !important;
    padding: 14px 20px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    transition: var(--gnozis-transition);
}

.gnozis-coupon-notice-bar:hover {
    border-color: rgba(56, 189, 248, 0.6) !important;
    background: rgba(17, 32, 51, 0.85) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.15) !important;
}

.coupon-notice-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-tag-icon {
    font-size: 1.15rem;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

.coupon-prompt-text {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary, #F1F5F9);
}

.gnozis-showcoupon-link,
.woocommerce-form-coupon-toggle .showcoupon {
    color: var(--accent-bright, #38BDF8) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 6px 12px;
    border-radius: var(--gnozis-radius-xs, 6px);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gnozis-showcoupon-link:hover,
.woocommerce-form-coupon-toggle .showcoupon:hover {
    color: #ffffff !important;
    background: rgba(56, 189, 248, 0.25) !important;
    border-color: rgba(56, 189, 248, 0.6) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35) !important;
}

/* Форма введення купона (розгорнута) */
form.checkout_coupon.woocommerce-form-coupon,
form.checkout_coupon.gnozis-checkout-coupon-form,
.woocommerce form.checkout_coupon {
    background: #0E1A29 !important;
    background-color: #0E1A29 !important;
    border: 1px solid #1F3247 !important;
    border-radius: var(--gnozis-radius-md, 12px) !important;
    padding: 16px 20px !important;
    margin: 0 0 24px 0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    position: relative;
    box-sizing: border-box !important;
}

.coupon-input-group,
form.checkout_coupon .coupon-input-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Поле вводу купона */
.gnozis-coupon-input,
form.checkout_coupon input#coupon_code.input-text,
.woocommerce form.checkout_coupon input.input-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    background: #060C14 !important;
    background-color: #060C14 !important;
    border: 1px solid #283C50 !important;
    border-radius: var(--gnozis-radius-sm, 8px) !important;
    color: #F1F5F9 !important;
    font-family: var(--gnozis-font-body, inherit) !important;
    font-size: 0.95rem !important;
    padding: 0 16px !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.gnozis-coupon-input:focus,
form.checkout_coupon input#coupon_code.input-text:focus {
    border-color: #38BDF8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    background-color: #0B1420 !important;
}

/* Кнопка "Застосувати" */
.btn-coupon-submit,
.woocommerce form.checkout_coupon button.button,
.woocommerce form.checkout_coupon button[name="apply_coupon"],
.woocommerce .checkout_coupon button.button,
.woocommerce-checkout form.checkout_coupon button.button,
.btn-apply-gnozis-coupon {
    flex: 0 0 auto !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 26px !important;
    background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 50%, #2563EB 100%) !important;
    background-color: #1D4ED8 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    border-radius: var(--gnozis-radius-sm, 8px) !important;
    font-family: var(--gnozis-font-heading, inherit) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    margin: 0 !important;
    float: none !important;
    white-space: nowrap !important;
}

.btn-coupon-submit:hover,
.woocommerce form.checkout_coupon button.button:hover,
.woocommerce form.checkout_coupon button[name="apply_coupon"]:hover,
.woocommerce .checkout_coupon button.button:hover,
.woocommerce-checkout form.checkout_coupon button.button:hover,
.btn-apply-gnozis-coupon:hover {
    background: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%) !important;
    border-color: rgba(125, 211, 252, 0.7) !important;
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.5) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
}

.btn-coupon-submit:active,
.woocommerce form.checkout_coupon button.button:active,
.woocommerce form.checkout_coupon button[name="apply_coupon"]:active,
.btn-apply-gnozis-coupon:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

.gnozis-coupon-message {
    margin-top: 8px;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: var(--gnozis-radius-xs);
}

.gnozis-coupon-message.is-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.gnozis-coupon-message.is-error {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 15.8.1. Картка промокоду у бічній колонці оформлення замовлення */
.checkout-coupon-card {
    padding: 22px 24px !important;
    margin-bottom: 24px !important;
    background: rgba(14, 26, 41, 0.8) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    border-radius: var(--gnozis-radius-md, 14px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.checkout-coupon-card .coupon-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    border: none !important;
}

.checkout-coupon-card .coupon-icon {
    font-size: 1.15rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

.checkout-coupon-card .coupon-title {
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    color: #F1F5F9 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.checkout-coupon-form-inline {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

.checkout-coupon-form-inline .gnozis-input-coupon {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 16px !important;
    background: #060C14 !important;
    border: 1px solid #283C50 !important;
    border-radius: 8px !important;
    color: #F1F5F9 !important;
    font-size: 0.92rem !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.checkout-coupon-form-inline .gnozis-input-coupon:focus {
    border-color: #38BDF8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    background-color: #0B1420 !important;
}

.checkout-coupon-form-inline .btn-apply-gnozis-coupon {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 24px !important;
    border-radius: 8px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
}

/* 15.9. Блок сакральних гарантій (Trust Badges) */
.checkout-trust-badges {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-card);
    flex-shrink: 0;
}

.trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.trust-text strong {
    font-size: 0.82rem;
    color: var(--text-primary);
}

.trust-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 15.10. Стан порожнього кошика та вітрина товарів (Steel Abyss / Cyber-Mystic) */
.gnozis-checkout-empty-view-wrapper {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.checkout-empty-card {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 40px 28px;
    text-align: center;
    background: var(--bg-surface, #0b1420);
    border: 1px solid var(--border-card, #1f3247);
    border-radius: var(--gnozis-radius-lg, 16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.empty-state-sigil {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: inline-block;
    animation: gnozisFloat 3s ease-in-out infinite;
}

@keyframes gnozisFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.empty-state-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.55;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.checkout-empty-recommended-wrap {
    width: 100%;
    max-width: 1060px;
    margin: 16px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rec-section-badge {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-bright, #38bdf8);
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.checkout-rec-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.checkout-rec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.rec-card-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    background: rgba(14, 22, 33, 0.75);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: var(--gnozis-radius-md, 12px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
    box-sizing: border-box;
    position: relative;
}

.rec-card-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 243, 255, 0.18);
}

.rec-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 180px;
    border-radius: var(--gnozis-radius-sm, 8px);
    background: var(--bg-elevated, #080d14);
    flex-shrink: 0;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.rec-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.rec-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rec-card-item:hover .rec-thumb img {
    transform: scale(1.05);
}

.rec-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff1a53, #ff6b3d);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(255, 26, 83, 0.45);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.rec-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.rec-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0 0 6px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.rec-title a:hover {
    color: var(--accent-bright, #00f3ff);
}

.rec-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.rec-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-bright, #00f3ff);
    white-space: nowrap;
}

.rec-price.rec-sale-price {
    color: #ff3366;
    font-size: 1.05rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.rec-old-price {
    font-size: 0.85rem;
    color: #8da4b8;
    text-decoration: line-through;
    opacity: 0.8;
    white-space: nowrap;
}

.rec-card-item .btn-ajax-add-to-cart {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 9px 12px;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

/* 15.10.1. Глобальні сповіщення WooCommerce (Steel Abyss Dark Glass) */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.woocommerce-NoticeGroup .woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-message,
.wc-block-components-notice-banner {
    background: rgba(14, 22, 33, 0.95) !important;
    border-radius: 12px !important;
    padding: 16px 20px 16px 48px !important;
    position: relative !important;
    margin: 0 0 24px 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4) !important;
    list-style: none !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    position: absolute !important;
    left: 18px !important;
    top: 16px !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
}

.woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-error {
    border-color: rgba(239, 68, 68, 0.4) !important;
    border-left: 4px solid #ef4444 !important;
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.12) !important;
}

.woocommerce-error::before {
    content: '⚠️' !important;
}

.woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-info {
    border-color: rgba(56, 189, 248, 0.4) !important;
    border-left: 4px solid #38bdf8 !important;
    box-shadow: 0 8px 28px rgba(56, 189, 248, 0.12) !important;
}

.woocommerce-info::before {
    content: 'ℹ️' !important;
}

.woocommerce-message,
.woocommerce-NoticeGroup .woocommerce-message {
    border-color: rgba(52, 211, 153, 0.4) !important;
    border-left: 4px solid #34d399 !important;
    box-shadow: 0 8px 28px rgba(52, 211, 153, 0.12) !important;
}

.woocommerce-message::before {
    content: '✓' !important;
}

.woocommerce-error a,
.woocommerce-info a,
.woocommerce-message a {
    color: var(--accent-bright, #38bdf8) !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    transition: var(--gnozis-transition) !important;
}

.woocommerce-error a:hover,
.woocommerce-info a:hover,
.woocommerce-message a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px var(--accent-glow) !important;
}

.woocommerce-error .button,
.woocommerce-info .button,
.woocommerce-message .button,
.woocommerce-error a.button,
.woocommerce-info a.button,
.woocommerce-message a.button {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, var(--accent-primary, #0284c7) 0%, var(--accent-bright, #38bdf8) 100%) !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-left: 12px !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3) !important;
}

/* 15.11. Сторінка підтвердження замовлення (Thank you page) */
.gnozis-thankyou-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.thankyou-success-card {
    padding: 36px 32px;
    text-align: center;
    position: relative;
    margin-bottom: 24px;
}

.success-ambient-aura {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--accent-glow-strong) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    filter: blur(40px);
}

.thankyou-sigil-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-primary) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 24px var(--accent-glow-strong);
}

.thankyou-sigil-badge .sigil-icon {
    font-size: 2rem;
    color: #ffffff;
}

.thankyou-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.thankyou-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.thankyou-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--gnozis-radius-md);
    padding: 16px;
    text-align: left;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-value {
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 600;
}

.meta-value.text-accent {
    color: var(--accent-bright);
    font-weight: 700;
}

.thankyou-footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

/* 15.12. Адаптивність чекауту для планшетів та мобільних */
@media (max-width: 1024px) {
    .gnozis-checkout-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gnozis-sticky-summary-box {
        position: static;
    }

    .thankyou-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .gnozis-checkout-page-wrapper {
        padding-top: 14px !important;
        padding-bottom: calc(95px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .gnozis-checkout-container {
        padding: 0 12px !important;
    }

    .gnozis-checkout-header {
        margin-bottom: 20px !important;
    }

    .checkout-main-title {
        font-size: 1.6rem !important;
        margin-bottom: 6px !important;
    }

    .checkout-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 18px !important;
        line-height: 1.45 !important;
        padding: 0 6px !important;
    }

    .gnozis-checkout-stepper {
        padding: 8px 12px !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }

    .stepper-item {
        font-size: 0.74rem !important;
        gap: 6px !important;
    }

    .stepper-line {
        width: 16px !important;
        margin: 0 4px !important;
    }

    .step-badge {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.7rem !important;
    }

    .gnozis-checkout-form .woocommerce-billing-fields__field-wrapper,
    .gnozis-checkout-form .woocommerce-shipping-fields__field-wrapper,
    .gnozis-checkout-form .woocommerce-additional-fields__field-wrapper {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .gnozis-checkout-form .form-row {
        margin-bottom: 12px !important;
    }

    /* Запобігання авто-масштабуванню в iOS Safari та зручний тач */
    .gnozis-checkout-page-wrapper input[type="text"],
    .gnozis-checkout-page-wrapper input[type="email"],
    .gnozis-checkout-page-wrapper input[type="tel"],
    .gnozis-checkout-page-wrapper input[type="password"],
    .gnozis-checkout-page-wrapper input[type="number"],
    .gnozis-checkout-page-wrapper textarea,
    .gnozis-checkout-page-wrapper select,
    .wc-block-components-text-input input {
        font-size: 16px !important;
        min-height: 48px !important;
        padding: 11px 14px !important;
        border-radius: 8px !important;
    }

    .checkout-step-card {
        padding: 16px 14px !important;
        margin-bottom: 16px !important;
        border-radius: 14px !important;
    }

    .checkout-summary-card {
        padding: 16px 14px !important;
        margin-bottom: 16px !important;
        border-radius: 14px !important;
    }

    .step-header {
        margin-bottom: 16px !important;
    }

    .step-title {
        font-size: 1.05rem !important;
    }

    .btn-gnozis-place-order {
        padding: 15px 20px !important;
        font-size: 1.02rem !important;
        border-radius: 10px !important;
        width: 100% !important;
    }

    .checkout-rec-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .rec-card-item {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .rec-thumb {
        margin-bottom: 8px !important;
        border-radius: 6px !important;
    }

    .rec-discount-badge {
        font-size: 0.68rem !important;
        padding: 2px 5px !important;
        top: 6px !important;
        left: 6px !important;
    }

    .rec-title {
        font-size: 0.82rem !important;
        min-height: 2.2em !important;
        margin-bottom: 4px !important;
    }

    .rec-price {
        font-size: 0.92rem !important;
    }

    .rec-price.rec-sale-price {
        font-size: 0.95rem !important;
    }

    .rec-old-price {
        font-size: 0.76rem !important;
    }

    .rec-card-item .btn-ajax-add-to-cart {
        padding: 8px 6px !important;
        font-size: 0.78rem !important;
        border-radius: 6px !important;
    }

    .thankyou-meta-grid {
        grid-template-columns: 1fr !important;
    }

    .thankyou-success-card {
        padding: 24px 16px !important;
    }

    .gnozis-order-item-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 12px 14px !important;
    }

    .order-item-price-wrap {
        width: 100% !important;
        text-align: left !important;
        margin-left: 0 !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .gnozis-order-details-card {
        padding: 18px 14px !important;
    }
}

/* 15.13. Сакральні подробиці замовлення (Order Details) */
.gnozis-order-details-section {
    margin-top: 24px;
    margin-bottom: 24px;
}

.gnozis-order-details-card {
    background: var(--bg-surface, #152030);
    border: 1px solid var(--border-card, #2A3B4C);
    border-radius: var(--radius-lg, 16px);
    padding: 28px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.order-details-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-details-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.order-details-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-details-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #E0E8F0);
    margin: 0;
    letter-spacing: -0.01em;
}

.order-details-card-sub {
    font-size: 0.82rem;
    color: var(--text-muted, #708090);
    font-family: var(--font-mono, monospace);
}

/* Список товарів у замовленні */
.gnozis-order-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.gnozis-order-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(16, 24, 32, 0.65);
    border: 1px solid rgba(96, 120, 144, 0.18);
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.gnozis-order-item-row:hover {
    border-color: rgba(96, 120, 144, 0.35);
    background: rgba(16, 24, 32, 0.85);
}

.order-item-media {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    overflow: hidden;
    background: #0d1520;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.order-item-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.order-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-item-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-item-name-link,
.order-item-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary, #E0E8F0);
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.15s ease;
}

.order-item-name-link:hover {
    color: var(--accent-cyan, #38bdf8);
}

.order-item-qty-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-cyan, #38bdf8);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    letter-spacing: 0.02em;
}

/* Скидання дефолтного WooCommerce списку метаданих товару (ul.wc-item-meta) */
.wc-item-meta,
.gnozis-order-item-row .wc-item-meta,
.woocommerce-table--order-details .wc-item-meta {
    list-style: none !important;
    padding: 0 !important;
    margin: 6px 0 0 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 10px !important;
}

.wc-item-meta li,
.gnozis-order-item-row .wc-item-meta li {
    list-style: none !important;
    padding: 3px 8px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    font-size: 0.78rem !important;
    color: var(--text-secondary, #A0B0C0) !important;
    line-height: 1.3 !important;
}

.wc-item-meta li::before,
.gnozis-order-item-row .wc-item-meta li::before {
    display: none !important;
    content: none !important;
}

.wc-item-meta li p,
.gnozis-order-item-row .wc-item-meta li p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text-primary, #E0E8F0) !important;
    font-weight: 500 !important;
}

.wc-item-meta strong,
.wc-item-meta .wc-item-meta-label {
    color: var(--text-muted, #708090) !important;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.order-item-price-wrap {
    flex-shrink: 0;
    text-align: right;
    margin-left: 12px;
}

.order-item-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-cyan, #38bdf8);
    font-family: var(--font-heading, sans-serif);
    letter-spacing: -0.01em;
}

/* Підсумкова плашка сум замовлення */
.gnozis-order-totals-box {
    background: rgba(16, 24, 32, 0.8);
    border: 1px solid rgba(96, 120, 144, 0.2);
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--text-secondary, #A0B0C0);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.order-total-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-total-row .total-label {
    font-weight: 500;
}

.order-total-row .total-value {
    color: var(--text-primary, #E0E8F0);
    font-weight: 600;
}

.order-total-row.total-row-order_total {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.12rem;
    color: var(--text-primary, #E0E8F0);
    font-weight: 700;
}

.order-total-row.total-row-order_total .total-value {
    color: var(--accent-cyan, #38bdf8);
    font-size: 1.25rem;
    font-family: var(--font-heading, sans-serif);
}

.order-customer-note-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.order-customer-note-row .note-label {
    font-size: 0.8rem;
    color: var(--text-muted, #708090);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.order-customer-note-row .note-content {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary, #A0B0C0);
    line-height: 1.45;
}

.order-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 15.14. Інформація про клієнта та адреси доставки/оплати */
.gnozis-customer-details-section {
    margin-top: 24px;
    margin-bottom: 24px;
}

.gnozis-customer-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.address-card {
    background: var(--bg-surface, #152030);
    border: 1px solid var(--border-card, #2A3B4C);
    border-radius: var(--radius-lg, 16px);
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.address-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.address-card-icon {
    font-size: 1.25rem;
}

.address-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #E0E8F0);
    margin: 0;
}

.address-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.address-formatted-text {
    font-style: normal;
    color: var(--text-secondary, #A0B0C0);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.address-formatted-text address {
    font-style: normal;
    margin: 0;
    padding: 0;
    color: inherit;
    line-height: inherit;
}

.address-contacts-list {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.address-contact-item .contact-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.address-contact-item .contact-link {
    color: var(--accent-cyan, #38bdf8);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.address-contact-item .contact-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* ==========================================================================
   16. GNOZIS SINGLE PRODUCT (Преміальний дизайн сторінки товару)
   Occult Tech / Steel Abyss Dark Mode
   ========================================================================== */

/* 16.0. КРИТИЧНИЙ СКИД СТАРИХ FLOATS ТА ОБМЕЖЕНЬ ШИРИНИ WOOCOMMERCE */
.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary,
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .entry-summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.gnozis-single-product-container {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 0 60px;
}

/* 16.1. Верхній навігаційний бар (Breadcrumbs + Back Button) */
.gnozis-product-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--gnozis-radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.product-topbar-breadcrumbs .woocommerce-breadcrumb,
.product-topbar-breadcrumbs .gnozis-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.product-topbar-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--gnozis-transition);
}

.product-topbar-breadcrumbs a:hover {
    color: var(--accent-bright);
    text-shadow: 0 0 10px var(--accent-glow);
}

.crumb-separator {
    color: var(--accent-dim);
    font-size: 0.68rem;
    margin: 0 4px;
    opacity: 0.8;
}

.btn-back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(96, 120, 144, 0.14);
    border: 1px solid var(--border-card);
    border-radius: var(--gnozis-radius-md);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--gnozis-transition);
    white-space: nowrap;
}

.btn-back-to-shop:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-bright);
    color: #ffffff;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* 16.2. Головний Hero-блок товару (Галерея + Панель артефакту) */
.gnozis-single-product-card {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gnozis-product-hero {
    display: grid;
    grid-template-columns: 500px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* Ліва колонка: Галерея артефакту */
.gnozis-product-gallery-wrap {
    position: relative;
    border-radius: var(--gnozis-radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card-elevated);
    overflow: hidden;
}

.product-gallery-ambient-glow {
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, rgba(96, 120, 144, 0.16) 0%, rgba(0, 16, 32, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Права колонка: Панель артефакту (Product Details Summary Card) */
.gnozis-product-summary {
    position: relative;
    border-radius: var(--gnozis-radius-xl, 20px);
    background: var(--bg-card, rgba(15, 23, 42, 0.7));
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    padding: 32px 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card-elevated, 0 8px 32px rgba(0, 0, 0, 0.35));
    display: flex;
    flex-direction: column;
}

/* Верхня стрічка: Категорія + Артикул */
.gnozis-product-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.badge-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-sigil-lead {
    color: #a855f7;
    font-size: 1rem;
    line-height: 1;
}

.product-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.product-cat-pill:hover {
    background: rgba(168, 85, 247, 0.22);
    color: #e9d5ff;
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

.product-sku-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 3px 8px;
}

.sku-label {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.sku-val {
    color: #cbd5e1;
    font-family: monospace;
    font-weight: 500;
}

/* Адмін-тулбар товару */
.single-product-admin-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.single-product-admin-toolbar button {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.single-product-admin-toolbar .btn-admin-single-edit:hover {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.1);
}

.single-product-admin-toolbar .btn-admin-single-delete:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.1);
}

/* Заголовок товару */
.gnozis-product-summary .product_title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    color: #f8fafc;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

/* Блок ціни та наявності */
.gnozis-price-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.single-price-discount-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.single-price-main-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.single-price-current,
.gnozis-product-summary .price .amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #38bdf8;
}

.single-price-regular del,
.gnozis-product-summary .price del .amount {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

.single-discount-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.single-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.single-savings-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.single-savings-pill strong {
    color: #4ade80;
}

.product-stock-box .stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
}

.stock-badge.is-in-stock {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.stock-badge.is-out-of-stock {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.stock-badge.is-expected {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* Короткий опис товару */
.woocommerce-product-details__short-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 22px;
}

/* Додавання в кошик */
.gnozis-purchase-action-wrap {
    margin-bottom: 16px;
}

.gnozis-purchase-action-wrap form.cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    margin: 10px 0 16px 0 !important;
    width: 100% !important;
}

.gnozis-purchase-action-wrap .single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    flex-shrink: 0 !important;
    min-width: 180px;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 24px !important;
    border-radius: 12px !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #38bdf8, #818cf8) !important;
    border: none !important;
    color: #0b1120 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3) !important;
    transition: all 0.2s ease !important;
}

.gnozis-purchase-action-wrap .single_add_to_cart_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

/* Блок гарантій та переваг (3 колонки плашок) */
.gnozis-product-features-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
    .gnozis-product-features-box {
        grid-template-columns: 1fr;
    }
}

.product-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.product-feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateY(-1px);
}

.product-feature-item .feature-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.product-feature-item .feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.product-feature-item .feature-text strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
}

.product-feature-item .feature-text span {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.35;
}

/* ==========================================================================
   17. МОБІЛЬНА АДАПТАЦІЯ СТОРІНКИ ТОВАРУ (Single Product Responsive)
   ========================================================================== */
@media (max-width: 991px) {
    .gnozis-single-product-container {
        padding: 6px 0 60px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .gnozis-product-topbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        margin-bottom: 16px !important;
        border-radius: 14px !important;
    }

    .product-topbar-breadcrumbs {
        width: 100% !important;
    }

    .btn-back-to-shop {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .gnozis-product-hero {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gnozis-product-gallery-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
    }

    .gnozis-main-art-frame,
    .product-main-gallery-frame {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 400px !important;
        aspect-ratio: 1/1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .gnozis-main-art-frame img,
    .product-main-gallery-frame img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .gnozis-product-panel,
    .gnozis-product-summary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
    }

    .gnozis-product-summary .product_title {
        font-size: 1.5rem !important;
    }

    .product-title-row .product-title {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }

    .product-purchase-box {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .product-purchase-box .quantity,
    .product-purchase-box .btn-gradient-primary,
    .product-purchase-box button,
    .product-purchase-box a {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .product-tabs-nav {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   18. СТИЛІЗАЦІЯ SINGLE PRODUCT WOOCOMMERCE (Кнопки, Кількість, Вкладки)
   ========================================================================== */

/* 18.1. Форма додавання в кошик та кнопка */
.woocommerce div.product form.cart,
.gnozis-single-product-card form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    margin: 20px 0 24px !important;
}

/* Інпут кількості товару Single Product */
.woocommerce div.product form.cart .quantity,
.gnozis-single-product-card form.cart .quantity,
.gnozis-quantity-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(16, 24, 32, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 3px 4px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
    flex: 0 0 136px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    gap: 4px !important;
}

.woocommerce div.product form.cart .quantity:focus-within,
.gnozis-single-product-card form.cart .quantity:focus-within,
.gnozis-quantity-wrapper:focus-within {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

/* Кнопки плюс / мінус (+ -) */
.woocommerce div.product form.cart .quantity .btn-qty-minus,
.woocommerce div.product form.cart .quantity .btn-qty-plus,
.gnozis-single-product-card form.cart .quantity .btn-qty-minus,
.gnozis-single-product-card form.cart .quantity .btn-qty-plus,
.gnozis-quantity-wrapper .btn-qty-minus,
.gnozis-quantity-wrapper .btn-qty-plus {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.woocommerce div.product form.cart .quantity .btn-qty-minus:hover,
.woocommerce div.product form.cart .quantity .btn-qty-plus:hover,
.gnozis-single-product-card form.cart .quantity .btn-qty-minus:hover,
.gnozis-single-product-card form.cart .quantity .btn-qty-plus:hover,
.gnozis-quantity-wrapper .btn-qty-minus:hover,
.gnozis-quantity-wrapper .btn-qty-plus:hover {
    background: rgba(56, 189, 248, 0.16) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
}

.woocommerce div.product form.cart .quantity .btn-qty-minus:active,
.woocommerce div.product form.cart .quantity .btn-qty-plus:active,
.gnozis-single-product-card form.cart .quantity .btn-qty-minus:active,
.gnozis-single-product-card form.cart .quantity .btn-qty-plus:active,
.gnozis-quantity-wrapper .btn-qty-minus:active,
.gnozis-quantity-wrapper .btn-qty-plus:active {
    transform: scale(0.92) !important;
}

/* Інпут кількості товару */
.woocommerce div.product form.cart .quantity input.qty,
.gnozis-single-product-card form.cart .quantity input.qty,
.gnozis-quantity-wrapper input.gnozis-qty-input {
    width: 44px !important;
    height: 36px !important;
    background: transparent !important;
    border: none !important;
    color: #f1f5f9 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0 2px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    font-variant-numeric: tabular-nums !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

.woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button,
.gnozis-quantity-wrapper input.gnozis-qty-input::-webkit-outer-spin-button,
.gnozis-quantity-wrapper input.gnozis-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ==========================================================================
   Бейдж знижки товару (Sale Badge як у каталозі товарів /shop/)
   ========================================================================== */
.woocommerce span.onsale,
.woocommerce div.product span.onsale,
.woocommerce div.product div.onsale,
.gnozis-single-product-card span.onsale,
.gnozis-single-product-card div.onsale,
.gnozis-product-gallery-wrap .card-badge-discount,
.gnozis-product-gallery-wrap .onsale,
.woocommerce-product-gallery .card-badge-discount,
.woocommerce-product-gallery .onsale {
    position: absolute !important;
    top: 36px !important;
    left: 36px !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #f97316 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    padding: 5px 12px !important;
    z-index: 10 !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.2 !important;
    text-shadow: none !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    animation: pulseDiscountGlow 2.8s infinite ease-in-out !important;
}

.woocommerce span.onsale .discount-sigil,
.card-badge-discount .discount-sigil {
    font-size: 0.9rem !important;
    line-height: 1 !important;
}

.woocommerce span.onsale .discount-pct,
.card-badge-discount .discount-pct {
    font-weight: 800 !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {

    .woocommerce span.onsale,
    .woocommerce div.product span.onsale,
    .woocommerce div.product div.onsale,
    .gnozis-single-product-card span.onsale,
    .gnozis-single-product-card div.onsale,
    .gnozis-product-gallery-wrap .card-badge-discount,
    .gnozis-product-gallery-wrap .onsale,
    .woocommerce-product-gallery .card-badge-discount,
    .woocommerce-product-gallery .onsale {
        top: 24px !important;
        left: 24px !important;
        font-size: 0.78rem !important;
        padding: 4px 10px !important;
    }
}

/* Фірмова кнопка «Додати в кошик» GNOZIS */
.woocommerce div.product form.cart .single_add_to_cart_button.button,
.gnozis-single-product-card form.cart .single_add_to_cart_button.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    flex-shrink: 0 !important;
    padding: 0 28px !important;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #0b1120 !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button.button:hover,
.gnozis-single-product-card form.cart .single_add_to_cart_button.button:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%) !important;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5) !important;
    transform: translateY(-1px) !important;
    color: #000000 !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button.button:active,
.gnozis-single-product-card form.cart .single_add_to_cart_button.button:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3) !important;
}

@media (max-width: 768px) {
    .gnozis-purchase-action-wrap form.cart,
    .woocommerce div.product form.cart,
    .gnozis-single-product-card form.cart {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 10px 0 16px 0 !important;
    }

    .gnozis-purchase-action-wrap form.cart .quantity,
    .gnozis-purchase-action-wrap form.cart .gnozis-quantity-wrapper,
    .woocommerce div.product form.cart .quantity,
    .gnozis-single-product-card form.cart .quantity,
    .gnozis-quantity-wrapper {
        width: 106px !important;
        min-width: 106px !important;
        max-width: 106px !important;
        flex: 0 0 106px !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        padding: 2px !important;
        border-radius: 10px !important;
        gap: 2px !important;
        box-sizing: border-box !important;
    }

    .gnozis-purchase-action-wrap form.cart .quantity .btn-qty-minus,
    .gnozis-purchase-action-wrap form.cart .quantity .btn-qty-plus,
    .woocommerce div.product form.cart .quantity .btn-qty-minus,
    .woocommerce div.product form.cart .quantity .btn-qty-plus,
    .gnozis-single-product-card form.cart .quantity .btn-qty-minus,
    .gnozis-single-product-card form.cart .quantity .btn-qty-plus,
    .btn-qty-minus,
    .btn-qty-plus {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 100% !important;
        min-height: 38px !important;
        font-size: 1.15rem !important;
        padding: 0 !important;
    }

    .gnozis-purchase-action-wrap form.cart .quantity input.qty,
    .woocommerce div.product form.cart .quantity input.qty,
    .gnozis-single-product-card form.cart .quantity input.qty,
    .gnozis-quantity-wrapper input.qty,
    .gnozis-quantity-wrapper input.gnozis-qty-input {
        width: 36px !important;
        min-width: 30px !important;
        max-width: 40px !important;
        height: 100% !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        padding: 0 !important;
    }

    button.single_add_to_cart_button,
    .woocommerce button.button.alt.single_add_to_cart_button,
    .woocommerce-page button.button.alt.single_add_to_cart_button,
    .woocommerce div.product form.cart .single_add_to_cart_button.button,
    .gnozis-single-product-card form.cart .single_add_to_cart_button.button,
    .gnozis-purchase-action-wrap .single_add_to_cart_button {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        padding: 0 12px !important;
        font-size: 0.86rem !important;
        font-weight: 700 !important;
        gap: 6px !important;
        white-space: nowrap !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    button.single_add_to_cart_button::before,
    .woocommerce div.product form.cart .single_add_to_cart_button.button::before,
    .gnozis-single-product-card form.cart .single_add_to_cart_button.button::before {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 360px) {
    .gnozis-purchase-action-wrap form.cart,
    .woocommerce div.product form.cart,
    .gnozis-single-product-card form.cart {
        gap: 6px !important;
    }

    .gnozis-purchase-action-wrap form.cart .quantity,
    .gnozis-purchase-action-wrap form.cart .gnozis-quantity-wrapper,
    .woocommerce div.product form.cart .quantity,
    .gnozis-single-product-card form.cart .quantity,
    .gnozis-quantity-wrapper {
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        flex: 0 0 96px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }

    .gnozis-purchase-action-wrap form.cart .quantity .btn-qty-minus,
    .gnozis-purchase-action-wrap form.cart .quantity .btn-qty-plus,
    .woocommerce div.product form.cart .quantity .btn-qty-minus,
    .woocommerce div.product form.cart .quantity .btn-qty-plus,
    .gnozis-single-product-card form.cart .quantity .btn-qty-minus,
    .gnozis-single-product-card form.cart .quantity .btn-qty-plus,
    .btn-qty-minus,
    .btn-qty-plus {
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        font-size: 1rem !important;
    }

    .gnozis-purchase-action-wrap form.cart .quantity input.qty,
    .woocommerce div.product form.cart .quantity input.qty,
    .gnozis-quantity-wrapper input.qty,
    .gnozis-quantity-wrapper input.gnozis-qty-input {
        width: 30px !important;
        min-width: 24px !important;
        max-width: 34px !important;
        font-size: 0.88rem !important;
    }

    button.single_add_to_cart_button,
    .woocommerce button.button.alt.single_add_to_cart_button,
    .woocommerce-page button.button.alt.single_add_to_cart_button,
    .woocommerce div.product form.cart .single_add_to_cart_button.button,
    .gnozis-single-product-card form.cart .single_add_to_cart_button.button,
    .gnozis-purchase-action-wrap .single_add_to_cart_button {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 0 8px !important;
        font-size: 0.78rem !important;
        gap: 4px !important;
    }

    button.single_add_to_cart_button::before,
    .woocommerce div.product form.cart .single_add_to_cart_button.button::before {
        font-size: 0.88rem !important;
    }
}

/* 18.2. Вкладки опису, характеристик та відгуків (WooCommerce Tabs) */
.woocommerce div.product .woocommerce-tabs,
.gnozis-product-bottom-section .woocommerce-tabs {
    margin-top: 40px !important;
    padding: 28px 32px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Приховування старих дефолтних стилів WooCommerce */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 0 16px 0 !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
    list-style: none !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    overflow: hidden !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: inline-block !important;
    padding: 10px 20px !important;
    color: #94a3b8 !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:hover a {
    color: #ffffff !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #38bdf8 !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.3) !important;
}

/* Вміст вкладок (Панелі) */
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-tabs .panel {
    margin-top: 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    color: #cbd5e1 !important;
    line-height: 1.7 !important;
    font-size: 0.95rem !important;
    font-size: 0.95rem !important;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2:first-child,
.woocommerce div.product .woocommerce-tabs .panel h2:first-child {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.01em !important;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel p,
.woocommerce div.product .woocommerce-tabs .panel p {
    color: #94a3b8 !important;
    margin-bottom: 14px !important;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel p:last-child,
.woocommerce div.product .woocommerce-tabs .panel p:last-child {
    margin-bottom: 0 !important;
}

/* 18.3. Секція відгуків (Gnozis Single Product Reviews) */
.gnozis-reviews-container,
.woocommerce-Reviews {
    margin-top: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gnozis-reviews-header {
    margin-bottom: 22px !important;
}

.woocommerce-Reviews-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

.woocommerce-Reviews-title .reviews-sigil {
    color: #38bdf8 !important;
    font-size: 1rem !important;
}

/* Список карток відгуків */
.commentlist.gnozis-review-list,
#reviews #comments ol.commentlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 32px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
}

.gnozis-review-item,
#reviews #comments ol.commentlist li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.gnozis-review-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gnozis-review-card:hover {
    border-color: rgba(56, 189, 248, 0.25) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

/* Фіксований акуратний аватар автора відгуку (без гігантського розтягування) */
.gnozis-review-avatar-wrap {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50% !important;
    position: relative !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2) !important;
    background: #0d1522 !important;
}

.gnozis-review-avatar-link {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    position: relative !important;
}

.gnozis-review-avatar,
.gnozis-review-avatar-wrap img,
.gnozis-review-avatar-wrap img.avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Тіло відгуку */
.gnozis-review-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.gnozis-review-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.gnozis-review-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.gnozis-review-author-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.gnozis-review-author-name {
    color: #f1f5f9 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.gnozis-review-author-name:hover {
    color: #38bdf8 !important;
}

.gnozis-verified-buyer-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 6px !important;
    padding: 2px 7px !important;
}

.gnozis-review-date {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
}

.gnozis-review-stars-display {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
}

.gnozis-review-stars-display .star-icon {
    font-size: 0.95rem !important;
    line-height: 1 !important;
}

.gnozis-review-stars-display .star-filled {
    color: #fbbf24 !important;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5) !important;
}

.gnozis-review-stars-display .star-empty {
    color: rgba(255, 255, 255, 0.15) !important;
}

.gnozis-review-text {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    color: #cbd5e1 !important;
    word-break: break-word !important;
    margin: 4px 0 0 !important;
}

.gnozis-review-text p {
    margin: 0 !important;
    color: #cbd5e1 !important;
}

/* Форма написання / редагування відгуку */
.gnozis-review-form-wrap {
    margin-top: 28px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#review_form.review-form-card,
#review_form_wrapper #review_form {
    background: rgba(13, 21, 34, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    padding: 24px 28px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#review_form .comment-reply-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin: 0 0 18px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#review_form .comment-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

#review_form .form-group,
#review_form p.comment-form-comment,
#review_form p.comment-form-author,
#review_form p.comment-form-email,
#review_form p.comment-form-rating {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#review_form label {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    margin: 0 !important;
}

#review_form label .required {
    color: #ef4444 !important;
}

/* Інтерактивні зірочки форми відгуку */
.comment-form-rating {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.gnozis-star-rating-picker {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    width: fit-content !important;
}

.gnozis-star-rating-picker .star-picker-item {
    font-size: 1.6rem !important;
    line-height: 1 !important;
    color: rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    user-select: none !important;
}

.gnozis-star-rating-picker .star-picker-item.active,
.gnozis-star-rating-picker .star-picker-item.hover {
    color: #fbbf24 !important;
    transform: scale(1.15) !important;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.6) !important;
}

/* Текстове поле відгуку */
#review_form textarea,
#review_form textarea#comment,
.gnozis-textarea-modal {
    width: 100% !important;
    min-height: 110px !important;
    background: rgba(16, 24, 32, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: #f1f5f9 !important;
    font-family: inherit !important;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    outline: none !important;
    resize: vertical !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

#review_form textarea:focus,
#review_form textarea#comment:focus,
.gnozis-textarea-modal:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25) !important;
    background: rgba(16, 24, 32, 0.95) !important;
}

/* Поля для імені та email (якщо гість) */
#review_form input[type="text"],
#review_form input[type="email"],
.gnozis-input-modal {
    width: 100% !important;
    height: 44px !important;
    background: rgba(16, 24, 32, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 0 14px !important;
    color: #f1f5f9 !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

#review_form input[type="text"]:focus,
#review_form input[type="email"]:focus,
.gnozis-input-modal:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

/* Кнопка відправки форми відгуку (Оновити відгук / Надіслати відгук) */
#review_form .form-submit,
#review_form p.form-submit {
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
}

#review_form input[type="submit"],
#review_form button[type="submit"],
#review_form .submit,
#review_form .btn-submit-review,
#commentform #submit {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 10px 28px !important;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #0b1120 !important;
    font-family: inherit !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
}

#review_form input[type="submit"]:hover,
#review_form button[type="submit"]:hover,
#review_form .submit:hover,
#review_form .btn-submit-review:hover,
#commentform #submit:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%) !important;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5) !important;
    transform: translateY(-1px) !important;
    color: #000000 !important;
}

#review_form input[type="submit"]:active,
#review_form button[type="submit"]:active,
#review_form .submit:active,
#review_form .btn-submit-review:active,
#commentform #submit:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3) !important;
}

/* Зірочки рейтингу WooCommerce */
.woocommerce .star-rating {
    color: #fbbf24 !important;
}

/* ==========================================================================
   FILE: pages/auth.css
   ========================================================================== */
/* =============================================================================
   12. СТИЛІ АВТОРИЗАЦІЇ ТА ПОСВЯТИ (Linear & Vercel Occult Tech Aesthetic)
   ============================================================================= */
.gnozis-auth-viewport {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(85vh - 60px);
    padding: 30px 16px 70px;
    position: relative;
    z-index: 2;
}

/* Auth card — very dark bg, subtle cobalt border */
.gnozis-auth-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    max-width: 920px;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(0, 16, 32, 0.90);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(96, 120, 144, 0.28);
    box-shadow: 0 24px 65px -12px rgba(0, 0, 0, 0.90), 0 0 50px rgba(96, 120, 144, 0.10);
    position: relative;
}

.auth-card-visual {
    padding: 44px 36px;
    background: linear-gradient(145deg, rgba(16, 26, 38, 0.98) 0%, rgba(0, 10, 20, 0.99) 100%);
    border-right: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-back-to-feed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gnozis-text-muted);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    transition: var(--gnozis-transition);
    width: fit-content;
    margin-bottom: 24px;
}

.auth-back-to-feed:hover {
    color: var(--accent-cyan);
    border-color: rgba(120, 152, 184, 0.4);
    background: rgba(120, 152, 184, 0.08);
    transform: translateX(-3px);
}

.visual-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto 0;
}

.auth-sigil-rotating {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-sigil-rotating .sacred-seal-svg {
    width: 100%;
    height: 100%;
    animation: spinSlowSigil 36s linear infinite;
    filter: drop-shadow(0 0 18px rgba(26, 43, 60, 0.5));
}

@keyframes spinSlowSigil {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.auth-sigil-glow {
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 43, 60, 0.45) 0%, rgba(120, 152, 184, 0.2) 50%, transparent 70%);
    filter: blur(24px);
    pointer-events: none;
}

.auth-brand-title {
    font-family: var(--font-primary);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #E0E8F0;
    margin: 0 0 6px;
    text-shadow: 0 0 25px rgba(26, 43, 60, 0.6);
}

.auth-slogan {
    font-size: 0.88rem;
    color: var(--accent-cyan);
    font-style: italic;
    margin-bottom: 16px;
    opacity: 0.95;
    letter-spacing: 0.02em;
}

.auth-manifesto {
    font-size: 0.84rem;
    color: var(--gnozis-text-secondary);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

.auth-card-forms {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-tabs-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-card);
    margin-bottom: 26px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 11px 16px;
    border: none;
    background: transparent;
    color: var(--gnozis-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--gnozis-transition);
    text-align: center;
    outline: none;
}

/* Auth tab active — cobalt */
.auth-tab-btn.active {
    background: rgba(96, 120, 144, 0.28);
    color: #E0E8F0;
    border: 1px solid rgba(96, 120, 144, 0.48);
    box-shadow: 0 4px 14px rgba(96, 120, 144, 0.22);
}

.auth-tab-btn:hover:not(.active) {
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.gnozis-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gnozis-auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gnozis-auth-form .form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gnozis-text-secondary);
}

.gnozis-auth-form .label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gnozis-auth-form .link-lostpass {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--gnozis-transition);
}

.gnozis-auth-form .link-lostpass:hover {
    color: #A0B0C0;
    text-decoration: underline;
}

.gnozis-auth-form .gnozis-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(16, 24, 32, 0.85);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    color: #E0E8F0;
    font-size: 0.92rem;
    font-family: inherit;
    transition: var(--gnozis-transition);
    outline: none;
    box-sizing: border-box;
}

/* Auth input focus — cobalt */
.gnozis-auth-form .gnozis-input:focus {
    border-color: var(--accent-cobalt);
    box-shadow: 0 0 0 3px rgba(96, 120, 144, 0.22);
    background: rgba(26, 43, 60, 0.95);
}

.gnozis-auth-form .gnozis-input::placeholder {
    color: rgba(148, 163, 184, 0.45);
}

.gnozis-auth-form .form-check-row {
    flex-direction: row;
    align-items: center;
}

.gnozis-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 0.83rem;
    color: var(--gnozis-text-secondary);
    line-height: 1.4;
}

/* Auth checkbox — cobalt */
.gnozis-checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-cobalt);
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

.gnozis-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.86rem;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gnozis-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
}

.gnozis-alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6EE7B7;
}

@media (max-width: 860px) {
    .gnozis-auth-card {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-card-visual {
        border-right: none;
        border-bottom: 1px solid var(--border-default);
        padding: 32px 24px;
    }

    .auth-card-forms {
        padding: 32px 24px;
    }
}

/* ==========================================================================
   FILE: pages/profile.css
   ========================================================================== */
/* ==========================================================================
   11. СТОРІНКА ПРОФІЛЮ АДЕПТА (Adept Profile View)
   ========================================================================== */

.gnozis-profile-viewport {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-top-bar {
    display: flex;
    align-items: center;
}

.profile-hero-card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.profile-hero-banner {
    height: 280px;
    background: linear-gradient(135deg, rgba(16, 26, 38, 0.95) 0%, rgba(0, 16, 32, 0.98) 100%);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.banner-nebula-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 30%, rgba(26, 43, 60, 0.35) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(120, 152, 184, 0.25) 0%, transparent 50%);
    filter: blur(25px);
}

.profile-hero-content {
    padding: 0 32px 28px;
    position: relative;
    z-index: 2;
}

.profile-avatar-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: -50px;
    margin-bottom: 22px;
}

.profile-avatar-wrap {
    position: relative;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #101820;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.avatar-aura-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 43, 60, 0.7), rgba(120, 152, 184, 0.7));
    filter: blur(8px);
    z-index: 1;
}

.profile-identity {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 58px;
    padding-bottom: 0;
}

.identity-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.identity-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-display-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #E0E8F0;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
}

.profile-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-header-actions-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.profile-meta-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 500;
    line-height: 1.2;
}

.status-pill.status-online {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.status-pill.status-offline {
    color: #94a3b8 !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.status-pill.status-astral {
    background: rgba(120, 152, 184, 0.12);
    border: 1px solid rgba(120, 152, 184, 0.3);
    color: var(--accent-cyan);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--gnozis-radius-full);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--gnozis-border-subtle);
}

.profile-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gnozis-border-subtle);
    border-radius: var(--gnozis-radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    transition: var(--gnozis-transition);
}

.profile-stat-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-stat-box .stat-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -0.01em;
}

.profile-stat-box .stat-lbl {
    font-size: 0.75rem;
    color: var(--gnozis-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.profile-main-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Двоколонкова сітка профілю (Контент + Правий сайдбар віджетів) */
.profile-2col-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    width: 100%;
}

.profile-main-col {
    min-width: 0;
    width: 100%;
}

.profile-side-col {
    width: 100%;
}

.profile-sticky-sidebar {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-tabs-nav {
    display: flex;
    background: rgba(16, 24, 32, 0.6);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-lg);
    padding: 5px;
    gap: 6px;
}

.profile-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--gnozis-radius-md);
    color: var(--gnozis-text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gnozis-transition);
}

.profile-tab-btn .tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex-shrink: 0;
}

.profile-tab-btn .tab-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 7px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-left: 3px;
}

.profile-tab-btn:hover {
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Profile tab active — subtle cobalt */
.profile-tab-btn.active {
    background: rgba(96, 120, 144, 0.14);
    border-color: rgba(96, 120, 144, 0.32);
    color: var(--gnozis-text-primary);
    font-weight: 600;
    box-shadow: none;
}

.profile-tab-pane {
    display: block;
}

.profile-wall-composer {
    margin-bottom: 22px !important;
}

.profile-orders-card,
.profile-keys-card {
    padding: 26px;
}

.gnozis-empty-card {
    padding: 36px 24px;
    text-align: center;
    color: var(--gnozis-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   Вкладка Друзів у Профілі (Profile Friends Tab)
   ========================================================================== */
.profile-friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.friend-mini-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(16, 24, 36, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.friend-mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 16px rgba(96, 165, 250, 0.08);
}

.friend-mini-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.friend-mini-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
}

.friend-mini-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s ease;
}

.friend-mini-card:hover .friend-mini-avatar {
    border-color: rgba(96, 165, 250, 0.5);
}

.friend-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    background: #10B981;
    border: 2px solid #0B132B;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.friend-mini-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.friend-mini-name {
    color: var(--gnozis-text-primary, #F8FAFC);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s ease;
}

.friend-mini-name:hover {
    color: #60A5FA;
}

.friend-mini-rank {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #93C5FD;
    background: rgba(59, 130, 246, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.friend-mini-meta {
    font-size: 0.78rem;
    color: var(--gnozis-text-muted, #94A3B8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-mini-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.btn-mini-view {
    flex: 1;
    text-align: center;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gnozis-text-primary, #F8FAFC);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-mini-view:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

.btn-mini-msg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 8px;
    color: #93C5FD;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mini-msg:hover {
    background: rgba(96, 165, 250, 0.22);
    border-color: rgba(96, 165, 250, 0.45);
    transform: scale(1.05);
}

.btn-mini-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--gnozis-text-primary, #F8FAFC);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mini-action-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.btn-mini-action-icon.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10B981;
}

.btn-mini-action-icon.is-pending {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #F59E0B;
}

.profile-stat-clickable {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-stat-clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(16, 24, 36, 0.9);
}

.friend-empty-card {
    padding: 42px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(16, 24, 36, 0.45);
}

.friend-empty-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
    opacity: 0.8;
}

.friend-empty-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--gnozis-text-primary, #F8FAFC);
}

.friend-empty-text {
    max-width: 420px;
    margin: 0 0 18px;
    font-size: 0.88rem;
    color: var(--gnozis-text-muted, #94A3B8);
    line-height: 1.5;
}

.friend-empty-btn {
    display: inline-block;
    text-decoration: none;
    padding: 9px 20px;
    font-size: 0.88rem;
    border-radius: 10px;
}

/* ==========================================================================
   ВКЛАДКА ЗАМОВЛЕНЬ У ПРОФІЛІ (Profile Orders Tab)
   ========================================================================== */

.profile-orders-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.profile-orders-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(16, 24, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(14px);
}

.orders-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.orders-header-icon-wrap {
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    flex-shrink: 0;
}

.orders-header-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.orders-header-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-header-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gnozis-text-primary, #f8fafc);
}

.orders-count-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.orders-header-sub {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gnozis-text-muted, #94a3b8);
}

.profile-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.profile-order-card {
    background: rgba(16, 24, 36, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    backdrop-filter: blur(12px) !important;
    transition: border-color 0.2s ease, transform 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.profile-order-card:hover {
    border-color: rgba(56, 189, 248, 0.3) !important;
}

.profile-order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.order-main-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-number-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.order-number-badge:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.order-number-badge .sigil-bullet {
    color: #38bdf8;
    font-size: 0.85rem;
}

.order-date-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.82rem;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.order-status-badge.status-completed {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.order-status-badge.status-processing {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.order-status-badge.status-on-hold,
.order-status-badge.status-pending {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.order-status-badge.status-cancelled,
.order-status-badge.status-failed {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.order-status-badge.status-refunded {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

.profile-order-card-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-order-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.order-item-media {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item-thumb {
    width: 100% !important;
    height: 100% !important;
    max-width: 52px !important;
    max-height: 52px !important;
    object-fit: cover !important;
    display: block !important;
}

.order-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-item-title-link,
.order-item-title {
    color: var(--gnozis-text-primary, #f1f5f9);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    transition: color 0.15s ease;
}

.order-item-title-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.order-item-qty-tag {
    color: var(--gnozis-text-muted, #94a3b8);
    font-size: 0.8rem;
    font-weight: 500;
}

.order-item-subtotal {
    font-weight: 600;
    color: var(--gnozis-text-primary, #f8fafc);
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-left: auto;
}

.profile-order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

.order-footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-payment-method {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.payment-title-tag {
    color: #e2e8f0;
    font-weight: 500;
}

.order-footer-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.order-total-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.total-caption {
    font-size: 0.82rem;
    color: #94a3b8;
}

.total-amount-glow {
    font-size: 1.15rem;
    font-weight: 700;
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.order-details-btn {
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.profile-orders-empty-card {
    text-align: center;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
}

.empty-orders-sigil {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-orders-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #f8fafc;
}

/* ==========================================================================
   12. МОБІЛЬНА АДАПТАЦІЯ ПРОФІЛЮ (Profile Mobile Responsive)
   ========================================================================== */
@media (max-width: 768px) {
    .gnozis-profile-viewport {
        padding: 6px 0 80px !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    .profile-hero-card {
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 8px !important;
    }

    .profile-hero-banner {
        height: 160px !important;
        width: 100% !important;
    }

    .btn-change-hero-banner {
        top: 10px !important;
        right: 10px !important;
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    .profile-hero-content {
        padding: 0 14px 20px !important;
        box-sizing: border-box !important;
    }

    .profile-avatar-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
        margin-top: -46px !important;
        margin-bottom: 12px !important;
    }

    .profile-avatar-wrap {
        width: 86px !important;
        height: 86px !important;
        margin: 0 auto !important;
    }

    .profile-name-col {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .profile-name {
        font-size: 1.35rem !important;
        text-align: center !important;
        margin: 4px 0 !important;
    }

    .profile-badges-row {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .profile-meta-tags-grid {
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        margin: 10px 0 !important;
    }

    .profile-actions-bar {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 12px !important;
        box-sizing: border-box !important;
    }

    .profile-actions-bar .btn-gradient-primary,
    .profile-actions-bar .btn-outline-glass,
    .profile-actions-bar button,
    .profile-actions-bar a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
    }

    .profile-pinned-track-card,
    .profile-pinned-audio {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 14px !important;
    }

    .profile-tabs-nav {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 5px !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        justify-content: flex-start !important;
    }

    .profile-tabs-nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .profile-tab-btn {
        flex: 0 0 auto !important;
        min-width: auto !important;
        white-space: nowrap !important;
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 7px !important;
    }

    .profile-2col-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .profile-main-col,
    .profile-side-col {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Налаштування профілю на мобільному */
    .profile-settings-card {
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }

    .settings-subtabs-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        padding-bottom: 8px !important;
        margin-bottom: 18px !important;
    }

    .settings-subtabs-nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .btn-settings-subtab {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 7px 14px !important;
        font-size: 0.82rem !important;
    }

    .settings-form-grid .form-grid-2col,
    .settings-subpane .form-grid-2col,
    .settings-subpane .form-row-2col,
    .settings-notifs-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .notif-settings-col {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   СТИЛІ НАЛАШТУВАНЬ ПРОФІЛЮ (Profile Settings Card & Subtabs)
   ========================================================================== */
.profile-settings-card {
    padding: 24px 28px;
}

.settings-notifs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.notif-settings-col {
    padding: 16px;
    border-radius: 12px;
}

.notif-col-site {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-col-email {
    background: rgba(56, 189, 248, 0.02);
    border: 1px solid rgba(56, 189, 248, 0.18);
}

.notif-col-title {
    margin: 0 0 14px 0;
    color: #38bdf8;
    font-size: 0.94rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #cbd5e1;
    cursor: pointer;
    line-height: 1.45;
}

.notif-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #38bdf8;
    cursor: pointer;
}

.notif-item-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.notif-sound-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Чорний список (Blacklist rows)
   ========================================================================== */
.blacklist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: var(--gnozis-transition);
}

.blacklist-row:hover {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(15, 23, 42, 0.8);
}

.blacklist-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.blacklist-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.blacklist-user-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.btn-unblock-from-settings {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.78rem !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    background: rgba(56, 189, 248, 0.08) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-unblock-from-settings:hover {
    background: rgba(56, 189, 248, 0.18) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3) !important;
}

/* ==========================================================================
   11. СТОРІНКА ПРОФІЛЮ АДЕПТА (Adept Profile View)
   ========================================================================== */

.gnozis-profile-viewport {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-top-bar {
    display: flex;
    align-items: center;
}

.profile-hero-card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.profile-hero-banner {
    height: 280px;
    background: linear-gradient(135deg, rgba(16, 26, 38, 0.95) 0%, rgba(0, 16, 32, 0.98) 100%);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.banner-nebula-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 30%, rgba(26, 43, 60, 0.35) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(120, 152, 184, 0.25) 0%, transparent 50%);
    filter: blur(25px);
}

.profile-hero-content {
    padding: 0 32px 28px;
    position: relative;
    z-index: 2;
}

.profile-avatar-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: -50px;
    margin-bottom: 22px;
}

.profile-avatar-wrap {
    position: relative;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #101820;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.avatar-aura-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 43, 60, 0.7), rgba(120, 152, 184, 0.7));
    filter: blur(8px);
    z-index: 1;
}

.profile-identity {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 58px;
    padding-bottom: 0;
}

.identity-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.identity-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-display-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #E0E8F0;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
}

.profile-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-header-actions-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.profile-meta-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 500;
    line-height: 1.2;
}

.status-pill.status-online {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.status-pill.status-offline {
    color: #94a3b8 !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.status-pill.status-astral {
    background: rgba(120, 152, 184, 0.12);
    border: 1px solid rgba(120, 152, 184, 0.3);
    color: var(--accent-cyan);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--gnozis-radius-full);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--gnozis-border-subtle);
}

.profile-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gnozis-border-subtle);
    border-radius: var(--gnozis-radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    transition: var(--gnozis-transition);
}

.profile-stat-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-stat-box .stat-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -0.01em;
}

.profile-stat-box .stat-lbl {
    font-size: 0.75rem;
    color: var(--gnozis-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.profile-main-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-tabs-nav {
    display: flex;
    background: rgba(16, 24, 32, 0.6);
    border: 1px solid var(--gnozis-border-card);
    border-radius: var(--gnozis-radius-lg);
    padding: 5px;
    gap: 6px;
}

.profile-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--gnozis-radius-md);
    color: var(--gnozis-text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gnozis-transition);
}

.profile-tab-btn:hover {
    color: var(--gnozis-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Profile tab active — subtle cobalt */
.profile-tab-btn.active {
    background: rgba(96, 120, 144, 0.14);
    border-color: rgba(96, 120, 144, 0.32);
    color: var(--gnozis-text-primary);
    font-weight: 600;
    box-shadow: none;
}

.profile-tab-pane {
    display: block;
}

.profile-wall-composer {
    margin-bottom: 22px !important;
}

.profile-orders-card,
.profile-keys-card {
    padding: 26px;
}

.gnozis-empty-card {
    padding: 36px 24px;
    text-align: center;
    color: var(--gnozis-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   Вкладка Друзів у Профілі (Profile Friends Tab)
   ========================================================================== */
.profile-friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.friend-mini-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(16, 24, 36, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.friend-mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 16px rgba(96, 165, 250, 0.08);
}

.friend-mini-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.friend-mini-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
}

.friend-mini-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s ease;
}

.friend-mini-card:hover .friend-mini-avatar {
    border-color: rgba(96, 165, 250, 0.5);
}

.friend-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    background: #10B981;
    border: 2px solid #0B132B;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.friend-mini-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.friend-mini-name {
    color: var(--gnozis-text-primary, #F8FAFC);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s ease;
}

.friend-mini-name:hover {
    color: #60A5FA;
}

.friend-mini-rank {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #93C5FD;
    background: rgba(59, 130, 246, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.friend-mini-meta {
    font-size: 0.78rem;
    color: var(--gnozis-text-muted, #94A3B8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-mini-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.btn-mini-view {
    flex: 1;
    text-align: center;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gnozis-text-primary, #F8FAFC);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-mini-view:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

.btn-mini-msg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 8px;
    color: #93C5FD;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mini-msg:hover {
    background: rgba(96, 165, 250, 0.22);
    border-color: rgba(96, 165, 250, 0.45);
    transform: scale(1.05);
}

.btn-mini-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--gnozis-text-primary, #F8FAFC);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mini-action-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.btn-mini-action-icon.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10B981;
}

.btn-mini-action-icon.is-pending {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #F59E0B;
}

.profile-stat-clickable {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-stat-clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(16, 24, 36, 0.9);
}

.friend-empty-card {
    padding: 42px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(16, 24, 36, 0.45);
}

.friend-empty-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
    opacity: 0.8;
}

.friend-empty-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--gnozis-text-primary, #F8FAFC);
}

.friend-empty-text {
    max-width: 420px;
    margin: 0 0 18px;
    font-size: 0.88rem;
    color: var(--gnozis-text-muted, #94A3B8);
    line-height: 1.5;
}

.friend-empty-btn {
    display: inline-block;
    text-decoration: none;
    padding: 9px 20px;
    font-size: 0.88rem;
    border-radius: 10px;
}

/* ==========================================================================
   27. Шапка профілю: Мета-дані, Про себе, Інтереси
   ========================================================================== */
.profile-meta-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.profile-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.profile-meta-chip .meta-icon {
    font-size: 0.9rem;
}

.profile-meta-link {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-meta-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.profile-bio-box {
    margin-top: 10px;
    max-width: 680px;
    position: relative;
}

.profile-bio-text {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-bio-text.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-bio-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    outline: none;
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 0;
    margin-top: 5px;
    transition: color 0.15s ease, opacity 0.15s ease;
    user-select: none;
}

.profile-bio-toggle-btn:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.profile-bio-toggle-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-bio-toggle-btn[aria-expanded="true"] .btn-icon {
    transform: rotate(180deg);
}

.profile-interests-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.profile-interests-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-interest-tag {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 500;
}

.btn-avatar-camera-overlay {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0284c7;
    border: 2px solid #080e18;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 5;
}

.btn-avatar-camera-overlay:hover {
    transform: scale(1.1);
    background: #38bdf8;
}

/* ==========================================================================
   28. Модальне вікно редагування профілю
   ========================================================================== */
.edit-profile-modal-dialog {
    max-width: 580px;
    width: 90%;
    background: #0b1326;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.15);
    overflow: hidden;
}

.avatar-edit-preview-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.avatar-edit-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #38bdf8;
    flex-shrink: 0;
}

.avatar-edit-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-upload-avatar-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.btn-upload-avatar-trigger:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}

.form-input-tip {
    font-size: 0.72rem;
    color: #64748b;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 580px) {
    .form-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   3. ВКЛАДКА "МОЇ ЗАМОВЛЕННЯ" У ПРОФІЛІ (PROFILE ORDERS TAB)
   ========================================================================== */

.profile-orders-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-orders-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: rgba(14, 21, 32, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.orders-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.orders-header-text-wrap {
    flex: 1;
    min-width: 0;
}

.orders-header-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.orders-header-icon-wrap {
    font-size: 26px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
    flex-shrink: 0;
}

.orders-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    letter-spacing: -0.01em;
}

.orders-header-sub {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.orders-count-badge {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
}

/* Список карток замовлень у профілі */
.profile-orders-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-order-card {
    background: rgba(14, 21, 32, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 20px 22px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.profile-order-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.28) !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 20px -4px rgba(56, 189, 248, 0.12) !important;
}

/* Верхній блок картки замовлення */
.profile-order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-main-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.order-number-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.order-number-badge:hover {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.order-number-badge .sigil-bullet {
    color: #38bdf8;
    font-size: 0.9rem;
}

.order-date-text {
    font-size: 0.85rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.order-date-text .date-icon {
    opacity: 0.8;
}

/* Статус бейджі */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* В обробці - теплий золотавий або бірюзовий */
.order-status-badge.status-processing {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

/* Завершено - смарагдовий зелений */
.order-status-badge.status-completed {
    background: rgba(16, 185, 129, 0.12);
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.order-status-badge.status-cancelled,
.order-status-badge.status-failed {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}



/* ==========================================================================
   GNOZIS MASTER HARMONIZATION - PROFILE, MEMBERS & GROUPS PERFECTION
   ========================================================================== */

/* 1. СТОРІНКА ПРОФІЛЮ (Profile Page Layout & Tabs) */
.gnozis-profile-viewport {
    max-width: 1280px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 30px 20px 80px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    box-sizing: border-box !important;
}

.profile-2col-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 350px !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
}

.profile-main-col {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.profile-sidebar-col {
    width: 100% !important;
}

.profile-tabs-nav {
    display: flex !important;
    background: rgba(16, 24, 32, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 4px !important;
    gap: 5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 12px !important;
}

.profile-tab-btn {
    flex: 1 1 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 13px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.profile-tab-btn:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.profile-tab-btn.active {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
    font-weight: 600 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.15) !important;
}

.profile-tab-btn .badge-tab-count {
    background: rgba(56, 189, 248, 0.25) !important;
    color: #38bdf8 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
}

.profile-bio-card,
.profile-bio-box,
.profile-bio-text {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
}

/* 2. СТОРІНКА ДРУЗІВ ТА ГРУП: ДВОКОЛОНКОВИЙ МАКЕТ (2-Column Subpage Layout) */
.gnozis-subpage-viewport {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 30px 20px 80px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gnozis-subpage-2col-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 350px !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
}

.subpage-main-col {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.subpage-side-col {
    width: 100% !important;
}

.subpage-sticky-sidebar {
    position: sticky !important;
    top: 90px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* 3. ШАПКА РОЗДІЛІВ (Subpage Header Card) */
.subpage-header-card {
    padding: 36px 32px !important;
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(145deg, rgba(16, 26, 38, 0.98) 0%, rgba(8, 14, 24, 0.99) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

.subpage-header-glow {
    position: absolute !important;
    top: -50px !important;
    right: -50px !important;
    width: 280px !important;
    height: 280px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0.06) 50%, transparent 70%) !important;
    filter: blur(40px) !important;
    pointer-events: none !important;
}

.subpage-header-content {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 760px !important;
}

.subpage-main-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
}

.subpage-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important;
    margin: 0 !important;
}

.subpage-badge-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 2px !important;
}

/* 4. ТУЛБАР ПОШУКУ (Search Toolbar on Members & Groups) */
.members-search-toolbar {
    background: rgba(16, 24, 38, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 12px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
    margin-bottom: 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.members-search-toolbar:focus-within {
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.14) !important;
}

.members-search-icon {
    font-size: 1.15rem !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
}

.members-search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    background: rgba(11, 16, 28, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    font-size: 0.92rem !important;
    padding: 10px 16px !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.members-search-input:focus {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 0 16px rgba(56, 189, 248, 0.15) !important;
    color: #ffffff !important;
}

/* 5. КАТАЛОГ ГРУП ТА БАНЕРИ (Groups Grid & Banners) */
.groups-catalog-grid,
.groups-cards-grid,
.groups-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
}

.group-card {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.group-card:hover {
    border-color: rgba(56, 189, 248, 0.35) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1) !important;
}

.group-card-banner {
    height: 130px !important;
    width: 100% !important;
    position: relative !important;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    overflow: visible !important;
}

.group-card-banner.has-custom-banner {
    background-color: #0f172a !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.group-card-banner.banner-slate {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #162638 100%) !important;
}
.group-card-banner.banner-cyan {
    background: linear-gradient(135deg, #0e3d54 0%, #0b1e2c 100%) !important;
}
.group-card-banner.banner-amber {
    background: linear-gradient(135deg, #422d0d 0%, #1a150c 100%) !important;
}
.group-card-banner.banner-indigo {
    background: linear-gradient(135deg, #2b1f54 0%, #120e24 100%) !important;
}

.group-card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(10, 16, 28, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.group-card-avatar-wrap {
    position: absolute !important;
    bottom: -18px !important;
    left: 16px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    border-radius: 12px !important;
    z-index: 4 !important;
    overflow: hidden !important;
    border: 2px solid #0f172a !important;
    background: #1e293b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.group-card-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 10px !important;
}

.group-card-body {
    padding: 24px 16px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1 !important;
}

/* Банер героя окремої спільноти (Single Group Hero) */
.group-hero-banner {
    height: 280px !important;
    width: 100% !important;
    position: relative !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c1a2e 100%);
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* 6. СІТКА ДРУЗІВ ТА УЧАСНИКІВ (Members & Friends Grid) */
.friends-cards-grid,
.members-grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
}

.member-card {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.member-card:hover {
    border-color: rgba(56, 189, 248, 0.35) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1) !important;
}

.member-avatar-wrap {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    border-radius: 50% !important;
    position: relative !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
}

.member-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

/* 7. АДАПТИВНІСТЬ ДЛЯ ПЛАНШЕТІВ ТА МОБІЛЬНИХ ПРИСТРОЇВ */
@media (max-width: 1024px) {
    .gnozis-subpage-2col-layout,
    .profile-2col-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .group-card-banner {
        height: 115px !important;
    }

    /* 1. Повна ширина сторінки без обрізань */
    .gnozis-profile-viewport,
    .gnozis-subpage-viewport,
    .single-group-viewport {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 4px !important;
        padding-bottom: 75px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        gap: 10px !important;
    }

    .gnozis-subpage-2col-layout,
    .profile-2col-layout {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .subpage-main-col,
    .profile-main-col,
    .subpage-side-col,
    .profile-side-col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* 2. Шапка підсторінок (Друзі / Групи) */
    .subpage-header-card {
        padding: 18px 14px !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 4px !important;
    }

    .subpage-header-content {
        max-width: 100% !important;
        gap: 8px !important;
    }

    .subpage-main-title {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
    }

    .subpage-description {
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
    }

    /* 3. Картка профілю Hero */
    .profile-hero-card {
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 4px !important;
    }

    .profile-hero-banner {
        border-radius: 14px 14px 0 0 !important;
    }

    .profile-hero-content {
        padding: 0 10px 18px !important;
        box-sizing: border-box !important;
    }

    /* 4. Пошук та фільтри */
    .members-search-toolbar {
        padding: 8px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. Сітка карток друзів та груп */
    .friends-cards-grid,
    .members-grid-container,
    .groups-catalog-grid,
    .groups-cards-grid,
    .groups-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .member-card,
    .group-card {
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .member-card {
        padding: 12px 10px !important;
    }

    .group-card-body {
        padding: 18px 12px 14px !important;
    }

    /* 6. Навігаційні таби */
    .profile-tabs-nav,
    .subpage-filter-tabs {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        white-space: nowrap !important;
        padding: 3px !important;
        gap: 4px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    .profile-tabs-nav::-webkit-scrollbar,
    .subpage-filter-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .profile-tab-btn,
    .filter-tab-btn {
        flex: 0 0 auto !important;
        padding: 6px 10px !important;
        font-size: 0.79rem !important;
        gap: 5px !important;
        border-radius: 8px !important;
    }

    .profile-tab-btn .tab-icon svg,
    .filter-tab-btn .tab-icon svg {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-width: 480px) {
    .profile-tab-btn,
    .filter-tab-btn {
        padding: 5px 8px !important;
        font-size: 0.77rem !important;
        gap: 4px !important;
    }

    .subpage-header-card {
        padding: 15px 10px !important;
    }

    .subpage-main-title {
        font-size: 1.35rem !important;
    }

    .members-search-toolbar {
        padding: 6px 10px !important;
    }

    .profile-hero-content {
        padding: 0 8px 16px !important;
    }

    .member-card {
        padding: 10px !important;
    }
}


/* Group Card Banner Custom Image Support */
.group-card-banner {
    position: relative !important;
    overflow: visible !important;
    height: 130px !important;
}

.group-card-banner.has-custom-banner {
    background-color: #0f172a !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.group-card-banner-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
    pointer-events: none !important;
    display: block !important;
}

.group-card-banner.has-custom-banner::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(10, 16, 28, 0.4) 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.group-card-avatar-wrap {
    z-index: 4 !important;
}

