/* ==========================================================================
   UKRop Platform v3.1 — Modern, Minimalist, Practical & Premium Design System
   8 Distinct Curated Themes:
   1. Aurora Light (Nordic Clean & Airy)
   2. Midnight Dark (Deep Carbon OLED)
   3. Glass (Spatial Translucent Frosted UI)
   4. Neo Minimal (Swiss Editorial Monochrome)
   5. Sunset Gradient (Velvet Dusk & Warm Coral-Amber)
   6. Cyber Neon (High-Tech Synth Matrix)
   7. Forest Calm (Botanical Nordic Emerald)
   8. Royal Gold (Executive Onyx & Champagne Gold)
   ========================================================================== */

:root,
html[data-theme="aurora_light"],
body[data-theme="aurora_light"] {
    --bg-main: #f6f8fb;
    --bg-ambient: radial-gradient(ellipse 80% 50% at 50% -15%, rgba(37, 99, 235, 0.08), transparent 70%);
    --bg-surface: #ffffff;
    --bg-elevated: #f1f5f9;
    --bg-header: rgba(255, 255, 255, 0.86);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.10);
    --btn-bg: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --btn-text: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 8px 24px -4px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.05), 0 14px 32px -6px rgba(15, 23, 42, 0.08);
    --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="midnight_dark"],
body[data-theme="midnight_dark"] {
    --bg-main: #060911;
    --bg-ambient: radial-gradient(ellipse 80% 50% at 50% -15%, rgba(56, 189, 248, 0.10), transparent 70%);
    --bg-surface: #0d1322;
    --bg-elevated: #151e32;
    --bg-header: rgba(13, 19, 34, 0.84);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --btn-bg: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    --btn-text: #ffffff;
    --border: rgba(148, 163, 184, 0.11);
    --border-strong: rgba(148, 163, 184, 0.20);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 16px 38px -6px rgba(0, 0, 0, 0.75);
    --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="glass"],
body[data-theme="glass"] {
    --bg-main: #eef2ff;
    --bg-ambient:
        radial-gradient(at 0% 0%, rgba(199, 210, 254, 0.75) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 208, 254, 0.65) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(186, 230, 253, 0.65) 0px, transparent 50%);
    --bg-surface: rgba(255, 255, 255, 0.72);
    --bg-elevated: rgba(255, 255, 255, 0.88);
    --bg-header: rgba(255, 255, 255, 0.68);
    --text-main: #1e1b4b;
    --text-muted: #4f46e5;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-soft: rgba(99, 102, 241, 0.12);
    --btn-bg: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --btn-text: #ffffff;
    --border: rgba(255, 255, 255, 0.65);
    --border-strong: rgba(99, 102, 241, 0.22);
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 12px 32px -4px rgba(99, 102, 241, 0.10);
    --shadow-hover: 0 18px 40px -4px rgba(99, 102, 241, 0.16);
    --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="neo_minimal"],
body[data-theme="neo_minimal"] {
    --bg-main: #fafafa;
    --bg-ambient: none;
    --bg-surface: #ffffff;
    --bg-elevated: #f4f4f5;
    --bg-header: rgba(255, 255, 255, 0.92);
    --text-main: #09090b;
    --text-muted: #71717a;
    --accent: #18181b;
    --accent-hover: #3f3f46;
    --accent-soft: rgba(24, 24, 27, 0.07);
    --btn-bg: #09090b;
    --btn-text: #ffffff;
    --border: #e4e4e7;
    --border-strong: #d4d4d8;
    --radius: 8px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06);
    --card-inset: none;
}

html[data-theme="sunset_gradient"],
body[data-theme="sunset_gradient"] {
    --bg-main: #120b14;
    --bg-ambient:
        radial-gradient(ellipse 75% 50% at 15% -10%, rgba(249, 115, 22, 0.16), transparent 65%),
        radial-gradient(ellipse 75% 50% at 85% 0%, rgba(236, 72, 153, 0.14), transparent 65%);
    --bg-surface: #1c111f;
    --bg-elevated: #28182c;
    --bg-header: rgba(28, 17, 31, 0.85);
    --text-main: #fff1f2;
    --text-muted: #f4a8b8;
    --accent: #f97316;
    --accent-hover: #fb923c;
    --accent-soft: rgba(249, 115, 22, 0.15);
    --btn-bg: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --btn-text: #ffffff;
    --border: rgba(249, 115, 22, 0.16);
    --border-strong: rgba(236, 72, 153, 0.28);
    --radius: 18px;
    --radius-sm: 11px;
    --shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.55);
    --shadow-hover: 0 16px 40px -6px rgba(249, 115, 22, 0.20);
    --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="cyber_neon"],
body[data-theme="cyber_neon"] {
    --bg-main: #050711;
    --bg-ambient:
        radial-gradient(circle at 50% -20%, rgba(6, 182, 212, 0.15), transparent 65%),
        linear-gradient(rgba(6, 182, 212, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.025) 1px, transparent 1px);
    --bg-surface: #0b1021;
    --bg-elevated: #131b36;
    --bg-header: rgba(11, 16, 33, 0.86);
    --text-main: #e2e8f0;
    --text-muted: #818cf8;
    --accent: #06b6d4;
    --accent-hover: #22d3ee;
    --accent-soft: rgba(6, 182, 212, 0.14);
    --btn-bg: linear-gradient(135deg, #0891b2 0%, #4f46e5 100%);
    --btn-text: #ffffff;
    --border: rgba(6, 182, 212, 0.22);
    --border-strong: rgba(6, 182, 212, 0.40);
    --radius: 10px;
    --radius-sm: 7px;
    --shadow: 0 0 24px rgba(6, 182, 212, 0.10);
    --shadow-hover: 0 0 30px rgba(6, 182, 212, 0.20);
    --card-inset: inset 0 1px 0 rgba(6, 182, 212, 0.15);
}

html[data-theme="forest_calm"],
body[data-theme="forest_calm"] {
    --bg-main: #06110d;
    --bg-ambient: radial-gradient(ellipse 80% 50% at 50% -15%, rgba(16, 185, 129, 0.14), transparent 70%);
    --bg-surface: #0c1d17;
    --bg-elevated: #132c23;
    --bg-header: rgba(12, 29, 23, 0.86);
    --text-main: #ecfdf5;
    --text-muted: #6ee7b7;
    --accent: #10b981;
    --accent-hover: #34d399;
    --accent-soft: rgba(16, 185, 129, 0.14);
    --btn-bg: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --btn-text: #ffffff;
    --border: rgba(16, 185, 129, 0.16);
    --border-strong: rgba(16, 185, 129, 0.30);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 16px 36px -6px rgba(0, 0, 0, 0.65);
    --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="royal_gold"],
body[data-theme="royal_gold"] {
    --bg-main: #0a0907;
    --bg-ambient: radial-gradient(ellipse 80% 50% at 50% -15%, rgba(234, 179, 8, 0.14), transparent 70%);
    --bg-surface: #14120e;
    --bg-elevated: #1f1b14;
    --bg-header: rgba(20, 18, 14, 0.88);
    --text-main: #fef9c3;
    --text-muted: #ca8a04;
    --accent: #eab308;
    --accent-hover: #facc15;
    --accent-soft: rgba(234, 179, 8, 0.14);
    --btn-bg: linear-gradient(135deg, #ca8a04 0%, #eab308 100%);
    --btn-text: #0a0907;
    --border: rgba(234, 179, 8, 0.18);
    --border-strong: rgba(234, 179, 8, 0.34);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 16px 40px -6px rgba(234, 179, 8, 0.15);
    --card-inset: inset 0 1px 0 rgba(254, 240, 138, 0.08);
}

/* ==========================================================================
   БАЗОВА ТИПОГРАФІКА ТА СКИДАННЯ СТИЛІВ
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0 0 76px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background-color: var(--bg-main);
    background-image: var(--bg-ambient);
    background-attachment: fixed;
    color: var(--text-main);
    transition: background-color 0.25s ease, color 0.2s ease;
}
body[data-theme="cyber_neon"] {
    background-size: 100% 100%, 32px 32px, 32px 32px;
}

h1, h2, h3, h4 {
    letter-spacing: -0.022em;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-main);
}
h1 { font-size: 22px; margin: 0 0 10px 0; }
h2 { font-size: 18px; margin: 0 0 8px 0; }
h3 { font-size: 15.5px; margin: 0 0 8px 0; }
h4 { font-size: 14px; margin: 0 0 8px 0; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
    color: var(--accent-hover);
}
code, pre {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}
code {
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 12px;
    border: 1px solid var(--border);
}
.hidden { display: none !important; }
.uk-muted { color: var(--text-muted); }

/* Витончені кастомні скролбари */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Прогрес-бар AJAX-переходів */
#uk-progress-bar {
    position: fixed; top: 0; left: 0; height: 2.5px; width: 0%;
    background: var(--btn-bg);
    box-shadow: 0 0 10px var(--accent);
    z-index: 2500;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   ВЕРХНЯ НАВІГАЦІЙНА ПАНЕЛЬ (TOPBAR)
   ========================================================================== */
.uk-topbar {
    position: sticky;
    top: 0;
    z-index: 600;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 9px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.uk-brand {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.uk-brand span {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--border-strong);
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.uk-topbar-search {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 300px;
    margin: 0;
    position: relative;
}
.uk-topbar-search input[type="text"] {
    border-radius: 999px;
    padding: 6px 14px !important;
    font-size: 12.5px !important;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: all 0.18s ease;
}
.uk-topbar-search input[type="text"]:focus {
    background: var(--bg-surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Іконки та перемикачі верхньої панелі */
.uk-topbar-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.uk-icon-btn, .uk-top-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    color: var(--text-main) !important;
    border: 1px solid var(--border);
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
}
.uk-icon-btn:hover, .uk-top-icon:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent) !important;
    transform: translateY(-1px);
}
.uk-icon-badge, .uk-top-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5.5px;
    border-radius: 999px;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}
.uk-theme-select, .uk-theme-switcher-select {
    width: auto !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
    font-weight: 600;
    background: var(--bg-elevated);
}

/* ==========================================================================
   КОМПАКТНИЙ МУЗИЧНИЙ ПЛЕЄР У ХЕДЕРІ (МІНІ-КАПСУЛА)
   ========================================================================== */
.uk-vk-player {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    padding: 3px 9px;
    border-radius: 999px;
    height: 32px;
    max-width: 250px;
    min-width: 175px;
    box-shadow: var(--shadow);
    transition: border-color 0.16s ease;
}
.uk-vk-player:hover {
    border-color: var(--accent);
}
.uk-vk-btn, .uk-vk-player-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 11px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.14s ease;
}
.uk-vk-btn:hover, .uk-vk-player-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
#uk-play-btn {
    background: var(--btn-bg);
    color: var(--btn-text) !important;
    width: 23px;
    height: 23px;
    font-size: 10px;
}
.uk-vk-track, .uk-vk-track-info {
    flex: 1;
    min-width: 75px;
    max-width: 130px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    padding: 0 4px;
}
.uk-vk-track-title {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    color: var(--text-main);
}
.uk-vk-mini-progress {
    width: 100%;
    height: 2.5px;
    background: var(--border);
    border-radius: 99px;
    margin-top: 3px;
    overflow: hidden;
}
.uk-vk-mini-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.2s linear;
}
.uk-vk-drawer, .uk-vk-playlist-drawer {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 340px;
    max-width: 92vw;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
    z-index: 950;
    max-height: 360px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}
.uk-vk-seek {
    width: 100%;
    height: 4px;
    accent-color: var(--accent);
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   ОСНОВНА СІТКА ПЛАТФОРМИ ТА КАРТКИ (BENTO / MINIMALIST SHELL)
   ========================================================================== */
.uk-shell {
    max-width: 1440px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr) 288px;
    gap: 20px;
    align-items: start;
}
#uk-left-sidebar-wrap {
    position: sticky;
    top: 72px;
    padding: 14px;
}
@media (max-width: 1140px) {
    .uk-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .uk-right-col { grid-column: 1 / -1; }
}

.uk-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow), var(--card-inset, 0 0 0 transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.uk-surface-box {
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.uk-module-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow), var(--card-inset, 0 0 0 transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.uk-module-bar h2 {
    margin: 0 0 3px 0;
    font-size: 18.5px;
    font-weight: 800;
}
.uk-module-bar p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
}

/* Навігаційне меню лівої панелі */
.uk-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.uk-menu-link {
    position: relative;
    padding: 8.5px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 13.2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s ease;
}
.uk-menu-link:hover {
    background: var(--bg-elevated);
    color: var(--accent) !important;
    transform: translateX(2px);
}
.uk-menu-link.active {
    background: var(--accent-soft);
    color: var(--accent) !important;
    font-weight: 700;
}
.uk-menu-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--accent);
}

/* ==========================================================================
   ФОРМИ, КНОПКИ ТА ІНТЕРАКТИВНІ ЕЛЕМЕНТИ
   ========================================================================== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--bg-surface);
}
textarea {
    resize: vertical;
    line-height: 1.55;
}

.uk-btn {
    background: var(--btn-bg);
    color: var(--btn-text) !important;
    border: 1px solid transparent;
    padding: 8.5px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.16s ease;
    box-shadow: 0 2px 8px var(--accent-soft);
    white-space: nowrap;
}
.uk-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 6px 16px var(--accent-soft);
}
.uk-btn:active {
    transform: translateY(0);
}

.uk-btn-outline {
    background: transparent;
    color: var(--text-main) !important;
    border: 1px solid var(--border-strong);
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.uk-btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent) !important;
}

.uk-btn-sm {
    background: var(--bg-elevated);
    color: var(--text-main) !important;
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: calc(var(--radius-sm) - 2px);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.uk-btn-sm:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    background: var(--accent-soft);
}

.uk-btn-liked {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #ef4444 !important;
    font-weight: 700;
}
.uk-btn-bookmarked {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #f59e0b !important;
    font-weight: 700;
}

.uk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.uk-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; }
@media (max-width: 640px) { .uk-grid-2 { grid-template-columns: 1fr; } }
.uk-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Бейджі та індикатори */
.uk-badge {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--border-strong);
    padding: 2.5px 8.5px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.uk-badge-gold {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 2.5px 8.5px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.uk-badge-subtle {
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 2.5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.uk-badge-adult {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.uk-verified-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    margin-left: 4px;
    vertical-align: middle;
}

/* Аватари та банери профілю */
.uk-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}
.uk-avatar-xl {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-surface);
    margin-top: -54px;
    background: var(--bg-elevated);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.uk-avatar-vip {
    border: 2.5px solid #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.20) !important;
}
.uk-cover-banner {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-bottom: none;
}

/* ==========================================================================
   П'ЄДЕСТАЛ ЛІДЕРІВ САЙТУ (SPOTLIGHT)
   ========================================================================== */
.uk-spotlight-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.uk-spotlight-wrap::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #f59e0b, var(--accent), #ec4899);
}
.uk-spotlight-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 2px 4px 2px;
    scrollbar-width: thin;
}
.uk-spotlight-item {
    min-width: 146px;
    max-width: 164px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.18s ease;
}
.uk-spotlight-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   ПРОГРЕС-БАР ЗАВАНТАЖЕННЯ ФАЙЛІВ ТА BBCODE-РЕДАКТОР
   ========================================================================== */
.uk-upload-progress-wrap {
    margin: 10px 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--accent);
}
.uk-upload-progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-surface);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid var(--border);
}
.uk-upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #10b981);
    transition: width 0.12s linear;
}

.uk-editor-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    padding: 10px;
    margin-bottom: 10px;
    transition: border-color 0.16s ease;
}
.uk-editor-box:focus-within {
    border-color: var(--accent);
}
.uk-bb-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.uk-bb-btn {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.14s ease;
}
.uk-bb-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.uk-smiles-popover {
    position: absolute;
    top: 36px;
    left: 0;
    z-index: 400;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    width: 288px;
}
.uk-smile-item {
    background: transparent;
    border: none;
    font-size: 17px;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.12s ease, background 0.12s ease;
}
.uk-smile-item:hover {
    background: var(--bg-elevated);
    transform: scale(1.18);
}
.uk-upload-preview {
    margin-top: 8px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px dashed var(--accent);
}

/* ==========================================================================
   МЕДІА, ФОТОГАЛЕРЕЯ ТА ВБУДОВАНІ ДОКУМЕНТИ
   ========================================================================== */
.uk-media-embed { margin: 10px 0; }
.uk-embed-img {
    max-width: 100%;
    max-height: 420px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: zoom-in;
    border: 1px solid var(--border);
    transition: opacity 0.15s ease;
}
.uk-embed-img:hover { opacity: 0.96; }

.uk-photo-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.uk-photo-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.uk-photo-thumb-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--bg-elevated);
    overflow: hidden;
    cursor: zoom-in;
}
.uk-photo-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.uk-photo-card:hover .uk-photo-thumb-wrap img {
    transform: scale(1.04);
}

.uk-embed-video {
    width: 100%;
    max-width: 100%;
    max-height: 480px;
    border-radius: var(--radius-sm);
    background: #000;
    display: block;
    box-sizing: border-box;
}
.uk-video-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 10px 0;
    background: #000;
    border: 1px solid var(--border);
    box-sizing: border-box;
}
.uk-video-wrap iframe,
.uk-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    border: 0;
    display: block;
}
.uk-audio-embed {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    margin: 8px 0;
    border: 1px solid var(--border);
}

/* Вбудований переглядач документів */
.uk-doc-paper {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 8px;
}
.uk-doc-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(6, 9, 17, 0.84);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.uk-doc-modal-box {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    width: 960px;
    max-width: 96vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}
.uk-doc-modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-elevated);
}
.uk-doc-modal-body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
}

/* Форматування цитат, коду, спойлерів та таблиць */
.uk-quote {
    margin: 10px 0;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13.2px;
}
.uk-quote-author {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
    font-size: 12px;
}
.uk-code-block {
    background: var(--bg-elevated);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow-x: auto;
    font-size: 12.5px;
}
.uk-spoiler {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    margin: 8px 0;
}
.uk-spoiler summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}
.uk-spoiler-body {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.uk-mention {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 1.5px 6px;
    border-radius: 6px;
    font-weight: 600;
}
.uk-hidden-box {
    background: rgba(16, 185, 129, 0.10);
    border: 1px dashed rgba(16, 185, 129, 0.45);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin: 8px 0;
}
.uk-locked-box {
    background: rgba(245, 158, 11, 0.10);
    border: 1px dashed rgba(245, 158, 11, 0.45);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin: 8px 0;
    font-size: 13px;
}

.uk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.uk-table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-strong);
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.uk-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}
.uk-table tr:last-child td {
    border-bottom: none;
}

.uk-alert {
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 13.5px;
}

/* ==========================================================================
   ПОВНОЕКРАННИЙ ПЕРЕГЛЯДАЧ ФОТО (LIGHTBOX) ТА СПОВІЩЕННЯ
   ========================================================================== */
.uk-lightbox-fs-exit {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9600;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.35;
    transition: opacity 0.2s ease, background 0.2s ease;
}
.uk-lightbox-fs-exit:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.9);
}
/* Режим «На весь екран» — ТІЛЬКИ фото, масштабоване на весь екран без панелей */
.uk-lightbox.is-pure-fullscreen,
.uk-lightbox:fullscreen {
    padding: 0 !important;
    background: #000 !important;
}
.uk-lightbox.is-pure-fullscreen .uk-lightbox-topbar,
.uk-lightbox.is-pure-fullscreen .uk-lightbox-bottom,
.uk-lightbox:fullscreen .uk-lightbox-topbar,
.uk-lightbox:fullscreen .uk-lightbox-bottom {
    display: none !important;
}
.uk-lightbox.is-pure-fullscreen .uk-lightbox-stage,
.uk-lightbox:fullscreen .uk-lightbox-stage {
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}
.uk-lightbox.is-pure-fullscreen #uk-lightbox-img,
.uk-lightbox:fullscreen #uk-lightbox-img {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.uk-lightbox.is-pure-fullscreen .uk-lightbox-fs-exit,
.uk-lightbox:fullscreen .uk-lightbox-fs-exit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.uk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.94) 0%, rgba(4, 7, 15, 0.98) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #fff;
    user-select: none;
    touch-action: none;
}
.uk-lightbox-topbar {
    width: 100%;
    max-width: 1320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 20;
}
.uk-lightbox-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}
.uk-lightbox-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    white-space: nowrap;
}
.uk-lightbox-chip.muted {
    font-weight: 600;
    font-size: 11.5px;
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
}
.uk-lightbox-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    min-width: 0;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uk-lightbox-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.uk-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.uk-lb-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.09);
    color: #f8fafc;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.16s ease;
    padding: 0;
}
.uk-lb-icon-btn:hover, .uk-lb-icon-btn.active {
    background: var(--accent, #10b981);
    border-color: var(--accent, #10b981);
    color: #fff;
    transform: translateY(-1px);
}
.uk-lb-icon-btn.close:hover {
    background: #ef4444;
    border-color: #ef4444;
}
.uk-lb-pill-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, var(--accent, #10b981), #059669);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.16s ease;
}
.uk-lb-pill-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.uk-lightbox-stage {
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 6px 0;
}
.uk-lightbox-spinner {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--accent, #10b981);
    border-radius: 50%;
    animation: ukLbSpin 0.75s linear infinite;
    z-index: 5;
    pointer-events: none;
}
@keyframes ukLbSpin {
    to { transform: rotate(360deg); }
}
#uk-lightbox-img {
    max-width: 92vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.82);
    transition: transform 0.18s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.18s ease;
    cursor: zoom-in;
    will-change: transform;
}
#uk-lightbox-img.is-dragging {
    transition: none !important;
    cursor: grabbing !important;
}
#uk-lightbox-img.is-zoomed {
    cursor: grab;
}
.uk-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.16s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.uk-lightbox-nav:hover {
    background: var(--accent, #10b981);
    border-color: var(--accent, #10b981);
    transform: translateY(-50%) scale(1.06);
}
.uk-lightbox-nav.prev { left: 14px; }
.uk-lightbox-nav.next { right: 14px; }
.uk-lightbox-bottom {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
}
.uk-lightbox-dock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    flex-wrap: nowrap;
    max-width: 96vw;
    overflow-x: auto;
}
.uk-lb-dock-btn {
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
    white-space: nowrap;
}
.uk-lb-dock-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.uk-lb-dock-btn.zoom-label {
    min-width: 54px;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, 0.08);
}
.uk-lb-dock-btn.like-btn {
    background: rgba(249, 115, 22, 0.18);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.35);
    padding: 0 11px;
}
.uk-lb-dock-btn.like-btn.voted, .uk-lb-dock-btn.like-btn:hover {
    background: #f97316;
    color: #fff;
}
.uk-lb-dock-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.16);
    margin: 0 3px;
    flex-shrink: 0;
}
.uk-lightbox-caption {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
    text-align: center;
    max-width: 88vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.uk-lightbox-thumbs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    max-width: 92vw;
    padding: 4px 8px;
    scrollbar-width: thin;
}
.uk-lightbox-thumbs img {
    width: 54px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.48;
    border: 2px solid transparent;
    transition: all 0.16s ease;
    flex-shrink: 0;
}
.uk-lightbox-thumbs img.active, .uk-lightbox-thumbs img:hover {
    opacity: 1;
    border-color: var(--accent, #10b981);
    transform: translateY(-2px);
}
@media (max-width: 640px) {
    .uk-lightbox { padding: 8px 8px 12px 8px; }
    .uk-lightbox-topbar { padding: 6px 10px; }
    .uk-hide-mobile { display: none !important; }
    .uk-lightbox-dims, #uk-lightbox-dims { display: none !important; }
    .uk-lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
    .uk-lightbox-nav.prev { left: 8px; }
    .uk-lightbox-nav.next { right: 8px; }
    #uk-lightbox-img { max-width: 96vw; max-height: 72vh; }
}

.uk-toast-container {
    position: fixed;
    bottom: 74px;
    right: 20px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
    width: calc(100vw - 40px);
    pointer-events: none;
}
.uk-footer-toast {
    pointer-events: auto;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--accent);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    backdrop-filter: blur(16px);
}

/* ==========================================================================
   МОБІЛЬНА НАВІГАЦІЯ ТА PWA-БАНЕР
   ========================================================================== */
.uk-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1100;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.uk-mob-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted) !important;
    font-size: 10.5px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    gap: 2px;
    min-width: 52px;
    transition: all 0.15s ease;
}
.uk-mob-nav-item .uk-mob-icon {
    font-size: 18px;
    line-height: 1.1;
}
.uk-mob-nav-item:hover, .uk-mob-nav-item.active {
    color: var(--accent) !important;
    background: var(--accent-soft);
}
.uk-mob-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4.5px;
    border-radius: 99px;
    line-height: 1.2;
}

.uk-mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    bottom: 62px;
    z-index: 1080;
    background: rgba(6, 9, 17, 0.70);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.uk-mobile-drawer-sheet {
    background: var(--bg-surface);
    color: var(--text-main);
    border-top: 1px solid var(--border-strong);
    border-radius: 22px 22px 0 0;
    max-height: 82vh;
    overflow-y: auto;
    padding: 18px;
    box-shadow: 0 -16px 44px rgba(0, 0, 0, 0.45);
}

.uk-pwa-banner {
    position: fixed;
    bottom: 70px;
    left: 14px;
    right: 14px;
    max-width: 480px;
    margin: 0 auto;
    z-index: 1090;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 820px) {
    body { padding-bottom: 78px; }
    .uk-topbar { padding: 8px 12px; gap: 8px; }
    .uk-brand .uk-brand-sub { display: none; }
    .uk-desktop-only-icon { display: none !important; }
    .uk-topbar-search { max-width: none; flex: 1; min-width: 115px; }
    .uk-shell {
        grid-template-columns: 1fr !important;
        margin: 12px auto;
        padding: 0 12px;
    }
    #uk-left-sidebar-wrap,
    #uk-right-sidebar-wrap {
        display: none !important;
    }
    .uk-mobile-bottom-nav { display: flex; }
    .uk-messenger-grid { grid-template-columns: 1fr !important; }
}


/* ==========================================================================
   МІНІМАЛІСТИЧНИЙ РЕДАКТОР (BB-КОДИ ТА СМАЙЛИ ПРИХОВАНІ ЗА ЗАМОВЧУВАННЯМ)
   ========================================================================== */
.uk-editor-minimal {
    position: relative;
    padding: 8px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.uk-editor-minimal textarea {
    border: none !important;
    background: transparent !important;
    padding: 4px 2px !important;
    box-shadow: none !important;
    resize: vertical;
    min-height: 54px;
}
.uk-editor-mini-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 6px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.uk-editor-mini-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.uk-editor-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.14s ease;
    line-height: 1.3;
}
.uk-editor-chip:hover,
.uk-editor-chip.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.uk-editor-adult-chip {
    color: #ef4444;
}
.uk-editor-adult-chip input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #ef4444;
    cursor: pointer;
}
.uk-bb-drawer {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 8px;
    margin-top: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.uk-editor-box {
    position: relative;
}
.uk-editor-box .uk-smiles-popover {
    position: absolute;
    bottom: calc(100% + 6px);
    top: auto;
    left: 8px;
    z-index: 650;
    width: 280px;
    max-width: calc(100vw - 36px);
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.uk-editor-minimal .uk-smiles-popover {
    top: calc(100% - 4px);
    bottom: auto;
}

/* ==========================================================================
   СУЧАСНА ПРАКТИЧНА ПОШТА ТА МЕСЕНДЖЕР (ПОВНОРОЗМІРНЕ ВІКНО ЧАТУ)
   ========================================================================== */
.uk-messenger-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}
.uk-messenger-sidebar {
    padding: 12px !important;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 185px);
    min-height: 520px;
    max-height: 760px;
    overflow: hidden;
}
.uk-messenger-search-box {
    margin-bottom: 10px;
}
.uk-messenger-search-box input {
    padding: 7px 12px !important;
    font-size: 12.5px !important;
    border-radius: 999px !important;
}
.uk-conv-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 2px;
}
.uk-conv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid transparent;
    color: var(--text-main) !important;
    transition: all 0.15s ease;
    text-decoration: none;
}
.uk-conv-item:hover {
    border-color: var(--border-strong);
    transform: translateX(2px);
}
.uk-conv-item.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: inset 3px 0 0 var(--accent);
}
.uk-conv-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.uk-conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    display: block;
}
.uk-conv-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--bg-surface);
}
.uk-conv-body {
    flex: 1;
    min-width: 0;
}
.uk-conv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}
.uk-conv-name {
    font-weight: 700;
    font-size: 13.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uk-conv-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.uk-conv-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.uk-conv-snippet {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.uk-conv-unread {
    background: var(--accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 6.5px;
    border-radius: 999px;
    flex-shrink: 0;
}

.uk-quick-peers-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.uk-quick-peer-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px 5px 6px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-main) !important;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s ease;
}
.uk-quick-peer-chip:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.uk-quick-peer-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.uk-messenger-main {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 185px);
    min-height: 520px;
    max-height: 760px;
    overflow: hidden;
}
.uk-chat-header {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.uk-chat-header-peer {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.uk-chat-back-btn {
    display: none;
}
.uk-chat-peer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main) !important;
    min-width: 0;
}
.uk-chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-strong);
    flex-shrink: 0;
}
.uk-chat-peer-title {
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uk-chat-peer-sub {
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}
.uk-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.uk-chat-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-surface);
}
.uk-chat-empty {
    margin: auto;
    text-align: center;
    padding: 32px 16px;
}
.uk-chat-date-divider {
    text-align: center;
    margin: 6px 0;
}
.uk-chat-date-divider span {
    display: inline-block;
    padding: 2px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.uk-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 100%;
}
.uk-msg-row.mine {
    justify-content: flex-end;
}
.uk-msg-row.theirs {
    justify-content: flex-start;
}
.uk-msg-avatar-link {
    flex-shrink: 0;
}
.uk-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    display: block;
}
.uk-msg-bubble {
    max-width: min(76%, 560px);
    padding: 9px 13px;
    border-radius: 16px;
    line-height: 1.48;
    font-size: 13.5px;
    word-break: break-word;
    overflow-wrap: break-word;
    position: relative;
}
.uk-msg-bubble.theirs {
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.uk-msg-bubble.mine {
    background: var(--btn-bg);
    color: var(--btn-text);
    border-bottom-right-radius: 4px;
    box-shadow: 0 3px 12px var(--accent-soft);
}
.uk-msg-bubble.mine a {
    color: inherit;
    text-decoration: underline;
}
.uk-msg-bubble.mine .uk-quote {
    background: rgba(0, 0, 0, 0.18);
    border-left-color: rgba(255, 255, 255, 0.75);
    color: inherit;
}
.uk-msg-bubble.mine .uk-quote-author {
    color: inherit;
}
.uk-msg-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    opacity: 0.85;
    margin-bottom: 3px;
}
.uk-msg-author {
    font-weight: 700;
}
.uk-msg-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}
.uk-msg-bubble:hover .uk-msg-actions {
    opacity: 1;
}
.uk-msg-action-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 11px;
    padding: 0 3px;
    line-height: 1;
}
.uk-msg-text {
    line-height: 1.5;
}

.uk-chat-composer-box {
    margin: 0 !important;
    border: none !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 0 !important;
    padding: 9px 12px !important;
    background: var(--bg-elevated) !important;
    flex-shrink: 0;
}
.uk-chat-composer-box .uk-bb-drawer {
    margin-top: 0;
    margin-bottom: 8px;
}
.uk-chat-composer-box .uk-upload-preview {
    margin-top: 0;
    margin-bottom: 8px;
}
.uk-chat-composer-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.uk-composer-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.14s ease;
    user-select: none;
}
.uk-composer-icon-btn:hover,
.uk-composer-icon-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.uk-composer-adult.active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}
.uk-composer-textarea {
    flex: 1;
    min-width: 0;
    height: 36px;
    min-height: 36px !important;
    max-height: 110px;
    padding: 7px 13px !important;
    border-radius: 18px !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    resize: none;
    line-height: 1.4;
    font-size: 13.5px !important;
}
.uk-composer-ttl {
    width: auto !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    background: var(--bg-surface) !important;
    flex-shrink: 0;
    cursor: pointer;
}
.uk-composer-send-btn {
    width: 38px;
    height: 36px;
    padding: 0 !important;
    border-radius: 999px !important;
    justify-content: center;
    font-size: 15px !important;
    flex-shrink: 0;
}

/* ==========================================================================
   АДАПТАЦІЯ ПІД СМАРТФОНИ ТА ПЛАНШЕТИ (БЕЗ ВИХОДУ ЗА МЕЖІ ЕКРАНА)
   ========================================================================== */
.uk-shell > *,
main#content,
.uk-card,
.uk-grid-2 > *,
.uk-grid-3 > *,
.uk-messenger-shell > * {
    min-width: 0;
    max-width: 100%;
}
.uk-card {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.uk-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}
.uk-table td input[type="text"],
.uk-table td input[type="url"],
.uk-table td input[type="email"],
.uk-table td textarea {
    min-width: 180px;
    width: 100%;
    box-sizing: border-box;
}
.uk-table td input[type="number"] {
    min-width: 78px;
    box-sizing: border-box;
}
@media (max-width: 820px) {
    .uk-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Пропозицію завантажити PWA-додаток показуємо ТІЛЬКИ на смартфонах та планшетах (touch), ніколи на ПК */
@media (hover: hover) and (pointer: fine) {
    #uk-pwa-install-banner {
        display: none !important;
    }
}

@media (max-width: 820px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .uk-shell {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        max-width: 100vw;
        margin: 10px auto;
        padding: 0 10px;
        gap: 12px;
    }
    .uk-card {
        padding: 14px;
    }
    .uk-module-bar {
        padding: 12px 14px;
        margin-bottom: 12px;
    }
    .uk-module-bar h2 {
        font-size: 16.5px;
    }
    .uk-messenger-shell {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .uk-messenger-shell.uk-messenger-chat-active .uk-messenger-sidebar {
        display: none !important;
    }
    .uk-messenger-shell.uk-messenger-list-active .uk-messenger-main {
        display: none !important;
    }
    .uk-chat-back-btn {
        display: inline-flex !important;
    }
    .uk-messenger-sidebar,
    .uk-messenger-main {
        height: calc(100vh - 205px);
        min-height: 440px;
        max-height: none;
    }
    .uk-msg-bubble {
        max-width: 86%;
    }
    .uk-chat-peer-sub {
        max-width: 180px;
    }
}

@media (max-width: 540px) {
    .uk-topbar {
        padding: 7px 10px;
        gap: 6px;
    }
    .uk-brand {
        font-size: 15px;
    }
    .uk-topbar-search {
        min-width: 90px;
        flex: 1;
    }
    .uk-topbar-search input[type="text"] {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    .uk-theme-select, .uk-theme-switcher-select {
        max-width: 118px !important;
        padding: 5px 6px !important;
        font-size: 11px !important;
        text-overflow: ellipsis;
    }
    .uk-vk-player {
        max-width: 100%;
        width: 100%;
        order: 4;
        justify-content: space-between;
    }
    .uk-composer-ttl {
        max-width: 66px !important;
        padding: 4px 5px !important;
        font-size: 10.5px !important;
    }
    .uk-cover-banner {
        height: 150px;
    }
    .uk-avatar-xl {
        width: 84px;
        height: 84px;
        margin-top: -42px;
    }
}


/* ==========================================================================
   МІНІМАЛІСТИЧНІ ІКОНКИ ВКЛАДОК ПРОФІЛЮ, СТРІЧКИ ТА ДІЙ (v3.3)
   ========================================================================== */
.uk-icon-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
    scrollbar-width: none;
}
.uk-icon-tabs-bar::-webkit-scrollbar {
    display: none;
}
.uk-icon-tab {
    flex: 1;
    min-width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    color: var(--text-main) !important;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.16s ease;
    flex-shrink: 0;
    position: relative;
}
.uk-icon-tab:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}
.uk-icon-tab.active {
    background: var(--btn-bg);
    color: var(--btn-text) !important;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--accent-soft);
}
.uk-icon-tab-glyph {
    line-height: 1;
}

.uk-icon-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    color: var(--text-main) !important;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.16s ease;
    padding: 0;
    flex-shrink: 0;
}
.uk-icon-action-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}
.uk-icon-action-btn.primary {
    background: var(--btn-bg);
    color: var(--btn-text) !important;
    border-color: transparent;
    box-shadow: 0 3px 10px var(--accent-soft);
}
.uk-icon-action-btn.success {
    border-color: rgba(16, 185, 129, 0.45);
    color: #10b981 !important;
}
.uk-icon-action-btn.danger {
    border-color: rgba(239, 68, 68, 0.45);
    color: #ef4444 !important;
}

.uk-icon-pill {
    min-width: 34px;
    height: 30px;
    padding: 0 9px !important;
    border-radius: 999px !important;
    justify-content: center;
}

.uk-editor-chip {
    min-width: 32px;
    height: 30px;
    padding: 0 9px !important;
    border-radius: 999px !important;
    justify-content: center;
    font-size: 13px !important;
}
.uk-editor-adult-chip.active {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
}

/* ==========================================================================
   ДЕРЕВОВИДНІ КОМЕНТАРІ У СТИЛІ БУЛЬБАШОК (TREE BUBBLE COMMENTS v3.3)
   ========================================================================== */
.uk-wall-comments-wrap {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.uk-comment-tree {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}
.uk-comment-node {
    position: relative;
}
.uk-comment-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}
.uk-comment-avatar-link {
    flex-shrink: 0;
    margin-top: 2px;
}
.uk-comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-strong);
    display: block;
}
.uk-comment-children .uk-comment-avatar {
    width: 28px;
    height: 28px;
}
.uk-comment-bubble-wrap {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.uk-comment-bubble {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px 16px 16px 16px;
    padding: 8px 13px;
    max-width: 100%;
    min-width: 140px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: border-color 0.15s ease;
}
.uk-comment-bubble:hover {
    border-color: var(--border-strong);
}
.uk-comment-bubble.mine {
    background: var(--accent-soft);
    border-color: var(--border-strong);
}
.uk-comment-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}
.uk-comment-author-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.uk-comment-author {
    font-weight: 700;
    font-size: 12.5px;
    color: var(--text-main) !important;
}
.uk-comment-handle {
    font-size: 11px;
    color: var(--text-muted);
}
.uk-comment-reply-to {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0 6px;
    border-radius: 999px;
}
.uk-comment-time {
    font-size: 10.5px;
    color: var(--text-muted);
}
.uk-comment-text {
    font-size: 13.3px;
    line-height: 1.48;
    color: var(--text-main);
    word-break: break-word;
    overflow-wrap: break-word;
}
.uk-comment-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    padding-left: 4px;
    flex-wrap: wrap;
}
.uk-comment-footer .uk-btn-sm {
    padding: 1px 7px !important;
    font-size: 11px !important;
    height: 22px !important;
    border-radius: 999px !important;
}
.uk-comment-act-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 7px;
    border-radius: 999px;
    transition: all 0.14s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.uk-comment-act-btn:hover {
    color: var(--accent);
    background: var(--accent-soft);
}
.uk-comment-act-btn.danger:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

/* Деревовидна гілка вкладених відповідей із лініями зв'язку */
.uk-comment-children {
    margin-left: 16px;
    padding-left: 15px;
    border-left: 2px solid var(--border-strong);
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.uk-comment-node.is-reply::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 15px;
    width: 11px;
    height: 2px;
    background: var(--border-strong);
    border-radius: 2px;
}

.uk-comment-composer {
    margin-top: 8px;
}
.uk-comment-reply-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 10px;
    margin-bottom: 6px;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}
.uk-comment-composer-inner {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.uk-comment-composer-inner .uk-editor-minimal {
    margin-bottom: 0 !important;
    padding: 6px 9px !important;
}
.uk-comment-composer-inner .uk-editor-minimal textarea {
    min-height: 34px !important;
}
.uk-comment-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center;
    font-size: 15px !important;
    flex-shrink: 0;
}

@media (max-width: 540px) {
    .uk-icon-tab {
        min-width: 34px;
        height: 35px;
        font-size: 15.5px;
    }
    .uk-comment-children {
        margin-left: 10px;
        padding-left: 11px;
    }
    .uk-comment-node.is-reply::before {
        left: -11px;
        width: 8px;
    }
}


/* ==========================================================================
   V3.5 FACEBOOK + REDDIT ГІБРИД: СТОРІЗ, СПІЛЬНОТИ, ОПИТУВАННЯ, UPVOTE/DOWNVOTE, OP, НАЛАШТУВАННЯ
   ========================================================================== */

/* Панель сортування Reddit (Гаряче / Нове / Топ / Моя стрічка) */
.uk-feed-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.uk-sort-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted) !important;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.uk-sort-pill:hover {
    color: var(--text-main) !important;
    border-color: var(--border-strong);
}
.uk-sort-pill.active {
    background: var(--accent);
    color: #ffffff !important;
    border-color: var(--accent);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.25);
}

/* Флейри (Flairs) та позначка OP (Original Poster) */
.uk-flair-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--border-strong);
}
.uk-community-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    background: var(--bg-elevated);
    color: var(--text-main) !important;
    border: 1px solid var(--border-strong);
    text-decoration: none !important;
}
.uk-community-pill:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
}
.uk-op-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    height: 16px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: #2563eb;
    color: #ffffff;
    vertical-align: middle;
}

/* Капсула голосування Reddit (▲ Карма ▼) */
.uk-vote-capsule {
    display: inline-flex;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    height: 30px;
    padding: 0 3px;
    gap: 2px;
}
.uk-vote-capsule.compact {
    height: 22px;
    padding: 0 2px;
}
.uk-vote-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.14s ease;
    padding: 0;
}
.uk-vote-capsule.compact .uk-vote-btn {
    width: 18px;
    height: 18px;
    font-size: 9.5px;
}
.uk-vote-btn.up:hover,
.uk-vote-btn.up.active,
.uk-vote-btn.up.active-up {
    color: #f97316;
    background: rgba(249, 115, 22, 0.14);
}
.uk-vote-btn.down:hover,
.uk-vote-btn.down.active,
.uk-vote-btn.down.active-down {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.14);
}
.uk-vote-score {
    font-size: 12px;
    font-weight: 800;
    min-width: 22px;
    height: 24px;
    text-align: center;
    color: var(--text-main);
    padding: 0 6px;
    background: transparent;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.14s ease, transform 0.12s ease;
}
.uk-vote-score:hover {
    background: rgba(249, 115, 22, 0.12);
}
.uk-vote-avatars {
    display: inline-flex;
    align-items: center;
    padding-left: 4px;
}
.uk-vote-mini-ava {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--bg-elevated);
    margin-left: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8.5px;
    font-weight: 800;
    flex-shrink: 0;
}
.uk-vote-mini-ini {
    background: linear-gradient(135deg, var(--accent), #059669);
    color: #fff;
}
.uk-voter-row:hover {
    background: var(--bg-elevated);
}
.uk-vote-capsule.compact .uk-vote-score {
    font-size: 11px;
    min-width: 14px;
}
.uk-vote-score.pos {
    color: #f97316;
}
.uk-vote-score.neg {
    color: #6366f1;
}

/* Нагороди (Awards) */
.uk-award-pill {
    border-color: rgba(245, 158, 11, 0.35) !important;
}
.uk-award-pill:hover,
.uk-award-pill.has-awards {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
    border-color: rgba(245, 158, 11, 0.55) !important;
}

/* Живі опитування (Polls) */
.uk-poll-drawer {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
}
.uk-poll-card {
    margin: 10px 0;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
}
.uk-poll-question {
    font-weight: 800;
    font-size: 13.5px;
    margin-bottom: 8px;
    color: var(--text-main);
}
.uk-poll-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.uk-poll-opt-btn {
    position: relative;
    width: 100%;
    text-align: left;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 11px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: border-color 0.15s ease;
}
.uk-poll-opt-btn:hover {
    border-color: var(--accent);
}
.uk-poll-opt-btn.voted {
    border-color: var(--accent);
    font-weight: 700;
}
.uk-poll-opt-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--accent-soft);
    z-index: 0;
    transition: width 0.35s ease;
}
.uk-poll-opt-label,
.uk-poll-opt-pct {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    color: var(--text-main);
}
.uk-poll-opt-pct {
    font-weight: 800;
    font-size: 11.5px;
    color: var(--accent);
}

/* Згортання гілок коментарів Reddit [–] / [+] */
.uk-comment-collapse-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    line-height: 1;
}
.uk-comment-collapse-btn:hover {
    color: var(--accent);
    background: var(--accent-soft);
}
.uk-comment-node.collapsed > .uk-comment-children {
    display: none !important;
}
.uk-comment-node.collapsed .uk-comment-text,
.uk-comment-node.collapsed .uk-comment-footer {
    display: none !important;
}
.uk-comment-node.collapsed .uk-comment-bubble {
    opacity: 0.68;
    padding: 4px 10px;
}

/* Компактні згруповані налаштування (Профіль та Адмін-панель) */
.uk-settings-compact-card input[type="text"],
.uk-settings-compact-card input[type="date"],
.uk-settings-compact-card input[type="email"],
.uk-settings-compact-card input[type="password"],
.uk-settings-compact-card input[type="number"],
.uk-settings-compact-card select,
.uk-settings-compact-card textarea {
    padding: 7px 10px;
    font-size: 13px;
}
.uk-settings-subtabs .uk-btn-sm.active {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

/* Компактні картки та навігація спільнот у стилі Reddit (v3.6) */
.uk-comm-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 2px 10px 2px;
    margin-bottom: 6px;
    white-space: nowrap;
    scrollbar-width: thin;
}
.uk-reddit-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.uk-reddit-card:hover {
    border-color: var(--border-strong);
}
.uk-comm-nav-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

/* v3.9: Напівпрозора кнопка Наверх та Синя галочка верифікації */
.uk-scroll-top-btn {
    position: fixed;
    right: 16px;
    bottom: 74px;
    z-index: 880;
    background: rgba(15, 23, 42, 0.24) !important;
    color: var(--text-main, #ffffff) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    transition: opacity 0.22s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    opacity: 0.44;
}
.uk-scroll-top-btn:hover,
.uk-scroll-top-btn:focus-visible {
    opacity: 0.94;
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.62) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
}
.uk-verified-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 4px;
    line-height: 1;
}

/* ==========================================================================
   ЄДИНА ПАНЕЛЬ-КАПСУЛА НАБОРУ ПОВІДОМЛЕННЯ У СТИЛІ TELEGRAM / МЕСЕНДЖЕРА (v4.0.4)
   Всередині однієї бульбашки: зліва смайли, посередині поле «Повідомлення»,
   справа скріпка прикріплення файлів та синя кругла кнопка відправки
   ========================================================================== */
.uk-chat-composer-box {
    margin: 0 !important;
    border: none !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 0 !important;
    padding: 10px 14px !important;
    background: var(--bg-elevated) !important;
    flex-shrink: 0;
}
.uk-tg-pill-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    min-height: 54px;
    padding: 4px 5px 4px 14px;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-strong);
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.08);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
[data-theme="dark"] .uk-tg-pill-bar,
[data-theme="midnight"] .uk-tg-pill-bar,
[data-theme="cyberpunk"] .uk-tg-pill-bar {
    background: #1c242f;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}
.uk-tg-pill-bar:focus-within {
    border-color: #2aabee;
    box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.16), 0 4px 16px rgba(15, 23, 42, 0.12);
}
.uk-tg-pill-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none !important;
    background: transparent !important;
    color: #8a96a3 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    user-select: none;
}
.uk-tg-pill-icon-btn:hover,
.uk-tg-pill-icon-btn.active {
    color: #2aabee !important;
    background: rgba(42, 171, 238, 0.1) !important;
}
.uk-tg-pill-textarea {
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 40px !important;
    height: 40px;
    max-height: 150px;
    padding: 8px 6px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: var(--text-main) !important;
    resize: none;
}
.uk-tg-pill-textarea:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.uk-tg-pill-textarea::placeholder {
    color: #7f8c99;
    font-weight: 400;
    opacity: 1;
}
.uk-tg-pill-send-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(180deg, #35b6f2 0%, #229ed9 100%) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0 0 2px !important;
    margin: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(34, 158, 217, 0.38) !important;
    transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}
.uk-tg-pill-send-btn:hover {
    transform: scale(1.04);
    filter: brightness(1.06);
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.48) !important;
}
.uk-tg-pill-send-btn:active {
    transform: scale(0.97);
}
@media (max-width: 720px) {
    .uk-people-search-grid {
        grid-template-columns: 1fr !important;
    }
    .uk-tg-pill-bar {
        min-height: 50px;
        padding: 3px 4px 3px 11px;
        gap: 4px;
    }
    .uk-tg-pill-icon-btn {
        width: 34px;
        height: 34px;
    }
    .uk-tg-pill-textarea {
        font-size: 15.5px !important;
    }
    .uk-tg-pill-send-btn {
        width: 42px !important;
        height: 42px !important;
    }
}


/* ==========================================================================
   V4.1: ГАЛОЧКА ВЕРИФІКАЦІЇ, СТАТУСИ VIP / PRO (З СІРИМИ КРУЖЕЧКАМИ ДЛЯ АДМІНА),
   ШЕСТЕРНЯ НА ШПАЛЕРАХ АНКЕТИ, БУРГЕР-ВКЛАДКИ ГРУП ТА МОДАЛЬНІ ВІКНА
   ========================================================================== */
.uk-verified-tick {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 4px;
    width: 18px;
    height: 18px;
    line-height: 1;
    flex-shrink: 0;
}
.uk-verified-tick svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
}
.uk-status-circle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    padding: 0;
    border: none;
    background: transparent;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.uk-status-circle-badge:hover {
    transform: scale(1.1);
}
.uk-status-circle-badge.status-grey-admin {
    opacity: 0.72;
    cursor: pointer;
}
.uk-status-circle-badge.status-grey-admin:hover {
    opacity: 1;
    filter: brightness(1.08);
}
.uk-status-pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    border: none;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.uk-status-pill-badge.vip-active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.32);
}
.uk-status-pill-badge.pro-active {
    background: linear-gradient(135deg, #6366f1 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.32);
}
.uk-status-pill-badge.status-grey-admin {
    background: #94a3b8;
    color: #ffffff;
    opacity: 0.68;
    cursor: pointer;
}
.uk-status-pill-badge.status-grey-admin:hover {
    opacity: 1;
    transform: scale(1.06);
}
.uk-cover-banner {
    position: relative;
    height: 210px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius) var(--radius) 0 0;
    background-color: #1e293b;
}
.uk-cover-gear-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.15s ease, transform 0.15s ease;
}
.uk-cover-gear-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}
.uk-burger-comm-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}
.uk-burger-comm-tab {
    flex: 1;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    transition: all 0.14s ease;
}
.uk-burger-comm-tab:hover {
    color: var(--text-main);
    border-color: var(--border-strong);
}
.uk-burger-comm-tab.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}
.uk-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.uk-modal-backdrop.hidden {
    display: none !important;
}
.uk-modal-dialog {
    margin: 0 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
    animation: ukModalFadeIn 0.16s ease-out;
}
@keyframes ukModalFadeIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}


.uk-lang-switcher-select {
    font-weight: 700;
    cursor: pointer;
}
@media (max-width: 540px) {
    .uk-lang-switcher-select {
        max-width: 108px !important;
        padding: 5px 6px !important;
        font-size: 11px !important;
        text-overflow: ellipsis;
    }
}


/* ==========================================================================
   V4.3.0: ФІРМОВА ТЕМА «🌿 УКРоп (З МАЛЕНЬКИМИ УКРОПЧИКАМИ)» (ukrop_dill),
   ТОТАЛЬНИЙ BUBBLE UI («БУЛЬБАШКИ» ПО ВСЬОМУ САЙТУ),
   ПРЕВ’Ю ПЕРЕСИЛАННЯ ТА ВКЛАДКИ «👥 ДРУЗІ / 🟢 ДРУЗІ ОНЛАЙН»
   ========================================================================== */

/* 1. Фірмова тема «🌿 УКРоп (Фірмова з укропчиками)» */
html[data-theme="ukrop_dill"],
body[data-theme="ukrop_dill"] {
    --bg-main: #edf8ee;
    --bg-dill-pattern: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27 viewBox=%270 0 140 140%27%3E%3Cg fill=%27none%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cg transform=%27translate(28,32) rotate(-18)%27 opacity=%270.24%27%3E%3Cpath d=%27M0,22 Q2,8 0,-12%27 stroke=%27%2315803d%27 stroke-width=%271.8%27/%3E%3Cpath d=%27M0,14 L-9,6 M0,14 L9,6 M0,6 L-11,-3 M0,6 L11,-3 M0,-2 L-8,-10 M0,-2 L8,-10%27 stroke=%27%2316a34a%27 stroke-width=%271.3%27/%3E%3Cpath d=%27M-9,6 L-13,2 M-9,6 L-5,1 M9,6 L13,2 M9,6 L5,1 M-11,-3 L-15,-8 M-11,-3 L-7,-9 M11,-3 L15,-8 M11,-3 L7,-9%27 stroke=%27%2322c55e%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M0,-12 L-10,-21 M0,-12 L-4,-23 M0,-12 L4,-23 M0,-12 L10,-21%27 stroke=%27%2365a30d%27 stroke-width=%271.2%27/%3E%3Ccircle cx=%27-10%27 cy=%27-22%27 r=%271.9%27 fill=%27%23eab308%27/%3E%3Ccircle cx=%27-4%27 cy=%27-24%27 r=%272.1%27 fill=%27%2384cc16%27/%3E%3Ccircle cx=%274%27 cy=%27-24%27 r=%272.1%27 fill=%27%23eab308%27/%3E%3Ccircle cx=%2710%27 cy=%27-22%27 r=%271.9%27 fill=%27%2384cc16%27/%3E%3C/g%3E%3Cg transform=%27translate(104,42) rotate(24) scale(0.88)%27 opacity=%270.22%27%3E%3Cpath d=%27M0,22 Q-2,8 0,-12%27 stroke=%27%2315803d%27 stroke-width=%271.8%27/%3E%3Cpath d=%27M0,13 L-9,5 M0,13 L9,5 M0,4 L-11,-4 M0,4 L11,-4%27 stroke=%27%2316a34a%27 stroke-width=%271.3%27/%3E%3Cpath d=%27M-9,5 L-13,0 M9,5 L13,0 M-11,-4 L-15,-9 M11,-4 L15,-9%27 stroke=%27%2322c55e%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M0,-12 L-9,-20 M0,-12 L-3,-22 M0,-12 L3,-22 M0,-12 L9,-20%27 stroke=%27%2365a30d%27 stroke-width=%271.2%27/%3E%3Ccircle cx=%27-9%27 cy=%27-21%27 r=%271.8%27 fill=%27%2384cc16%27/%3E%3Ccircle cx=%27-3%27 cy=%27-23%27 r=%272%27 fill=%27%23eab308%27/%3E%3Ccircle cx=%273%27 cy=%27-23%27 r=%272%27 fill=%27%2384cc16%27/%3E%3Ccircle cx=%279%27 cy=%27-21%27 r=%271.8%27 fill=%27%23eab308%27/%3E%3C/g%3E%3Cg transform=%27translate(66,105) rotate(12) scale(0.92)%27 opacity=%270.23%27%3E%3Cpath d=%27M0,20 Q1,6 0,-11%27 stroke=%27%2315803d%27 stroke-width=%271.8%27/%3E%3Cpath d=%27M0,12 L-8,4 M0,12 L8,4 M0,3 L-10,-5 M0,3 L10,-5%27 stroke=%27%2316a34a%27 stroke-width=%271.3%27/%3E%3Cpath d=%27M-8,4 L-12,0 M8,4 L12,0 M-10,-5 L-14,-9 M10,-5 L14,-9%27 stroke=%27%2322c55e%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M0,-11 L-8,-19 M0,-11 L-2.5,-21 M0,-11 L2.5,-21 M0,-11 L8,-19%27 stroke=%27%2365a30d%27 stroke-width=%271.2%27/%3E%3Ccircle cx=%27-8%27 cy=%27-20%27 r=%271.8%27 fill=%27%23eab308%27/%3E%3Ccircle cx=%27-2.5%27 cy=%27-22%27 r=%272%27 fill=%27%2384cc16%27/%3E%3Ccircle cx=%272.5%27 cy=%27-22%27 r=%272%27 fill=%27%23eab308%27/%3E%3Ccircle cx=%278%27 cy=%27-20%27 r=%271.8%27 fill=%27%2384cc16%27/%3E%3C/g%3E%3Cg transform=%27translate(122,114) rotate(-28) scale(0.72)%27 opacity=%270.20%27%3E%3Cpath d=%27M0,16 L0,-8 M0,8 L-7,1 M0,8 L7,1 M0,0 L-8,-7 M0,0 L8,-7%27 stroke=%27%2316a34a%27 stroke-width=%271.4%27/%3E%3Ccircle cx=%270%27 cy=%27-10%27 r=%272.2%27 fill=%27%2384cc16%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --bg-ambient:
        var(--bg-dill-pattern),
        radial-gradient(ellipse 80% 55% at 15% -10%, rgba(34, 197, 94, 0.16), transparent 65%),
        radial-gradient(ellipse 75% 50% at 85% 0%, rgba(132, 204, 22, 0.15), transparent 65%);
    --bg-surface: rgba(255, 255, 255, 0.90);
    --bg-elevated: #e1f3e4;
    --bg-header: rgba(242, 252, 244, 0.88);
    --text-main: #0d2b18;
    --text-muted: #3b6e4c;
    --accent: #16a34a;
    --accent-hover: #15803d;
    --accent-soft: rgba(22, 163, 74, 0.13);
    --btn-bg: linear-gradient(135deg, #15803d 0%, #22c55e 68%, #65a30d 100%);
    --btn-text: #ffffff;
    --border: rgba(21, 128, 61, 0.16);
    --border-strong: rgba(21, 128, 61, 0.28);
    --radius: 26px;
    --radius-sm: 18px;
    --shadow: 0 4px 16px rgba(21, 128, 61, 0.06), 0 12px 28px -6px rgba(21, 128, 61, 0.09);
    --shadow-hover: 0 8px 22px rgba(21, 128, 61, 0.11), 0 18px 36px -6px rgba(21, 128, 61, 0.15);
    --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body[data-theme="ukrop_dill"] {
    background-image: var(--bg-ambient);
    background-repeat: repeat, no-repeat, no-repeat;
    background-size: 140px 140px, 100% 100%, 100% 100%;
}

body[data-theme="ukrop_dill"] .uk-module-bar,
body[data-theme="ukrop_dill"] .uk-spotlight-wrap {
    background-image: var(--bg-dill-pattern);
    background-size: 120px 120px;
}

/* 2. Глобальний Bubble UI («Бульбашки» де тільки можна по всьому сайту) */
:root {
    --radius: 24px;
    --radius-sm: 18px;
}

.uk-topbar {
    border-radius: 0 0 26px 26px;
    margin: 0 8px;
    box-shadow: var(--shadow);
}

.uk-card {
    border-radius: 26px !important;
    padding: 18px 22px;
    box-shadow: var(--shadow), var(--card-inset, 0 0 0 transparent);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.uk-module-bar,
.uk-spotlight-wrap,
.uk-photo-card,
.uk-modal-dialog {
    border-radius: 26px !important;
}

.uk-surface-box,
.uk-editor-box,
.uk-doc-paper,
.uk-quote,
.uk-spoiler,
.uk-audio-embed,
.uk-upload-preview,
.uk-upload-progress-wrap {
    border-radius: 22px !important;
}

/* Всі кнопки, бейджі, перемикачі та іконки як м’які капсули-бульбашки */
.uk-btn,
.uk-btn-outline,
.uk-btn-sm,
.uk-icon-btn,
.uk-top-icon,
.uk-bb-btn,
.uk-theme-select,
.uk-theme-switcher-select,
.uk-lang-switcher-select,
.uk-sort-pill,
.uk-community-pill,
.uk-flair-tag,
.uk-badge,
.uk-badge-gold,
.uk-badge-subtle,
.uk-badge-adult,
.uk-quick-peer-chip {
    border-radius: 999px !important;
}

.uk-btn {
    padding: 9px 18px;
    font-weight: 700;
}

.uk-btn-outline {
    padding: 7.5px 15px;
}

.uk-btn-sm {
    padding: 5.5px 12px;
}

/* Поля введення та селекти у формі бульбашок */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="search"],
select {
    border-radius: 999px !important;
    padding: 9.5px 16px;
}

textarea {
    border-radius: 20px !important;
    padding: 11px 16px;
}

/* Ліве меню — кожен пункт у власній бульбашці */
.uk-menu {
    gap: 5px;
}
.uk-menu-link {
    border-radius: 999px !important;
    padding: 9px 15px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid transparent;
}
.uk-menu-link:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    transform: translateX(3px);
}
.uk-menu-link.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 3px 10px var(--accent-soft);
}
.uk-menu-link.active::before {
    display: none;
}

/* Сповіщення та налаштування сповіщень у вигляді бульбашок */
.uk-notif-bubble-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.uk-notif-bubble-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 22px;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.uk-notif-bubble-item:hover {
    transform: translateY(-1.5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}
.uk-notif-bubble-item.is-unread {
    background: var(--accent-soft);
    border-color: var(--accent);
}
.uk-bubble-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.uk-bubble-check-label:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* Коментарі, картки людей, діалоги та елементи списків у бульбашках */
.uk-comment-node,
.uk-comment-item {
    border-radius: 22px !important;
}
.uk-conv-item {
    border-radius: 20px !important;
    margin-bottom: 5px;
}
.uk-spotlight-item {
    border-radius: 22px !important;
}
.uk-embed-img {
    border-radius: 20px !important;
}
.uk-cover-banner {
    border-radius: 26px 26px 0 0 !important;
}

/* 3. Стилі візуального прев’ю та вкладок «👥 Друзі / 🟢 Друзі онлайн» у вікні пересилання (#uk-share-modal) */
.uk-share-preview-bubble {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-strong);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), var(--shadow);
}
.uk-share-prev-thumb {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--bg-surface);
}
.uk-share-prev-content {
    flex: 1;
    min-width: 0;
}
.uk-share-prev-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.uk-share-prev-title {
    font-weight: 800;
    font-size: 13.8px;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.uk-share-prev-snippet {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.uk-share-prev-url {
    display: inline-block;
    font-size: 10.5px;
    font-family: monospace;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 1px 8px;
    border-radius: 999px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uk-share-tabs-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 9px;
    background: var(--bg-surface);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
}
.uk-share-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.16s ease;
}
.uk-share-tab-btn:hover {
    color: var(--text-main);
}
.uk-share-tab-btn.active {
    background: var(--btn-bg);
    color: var(--btn-text) !important;
    box-shadow: 0 3px 10px var(--accent-soft);
}
.uk-share-tab-cnt {
    background: rgba(255, 255, 255, 0.22);
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.uk-share-tab-btn:not(.active) .uk-share-tab-cnt {
    background: var(--bg-elevated);
    color: var(--text-main);
}

.uk-share-friends-list {
    max-height: 195px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px;
}
.uk-share-friend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.uk-share-friend-item:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateX(2px);
}
.uk-share-friend-item.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.uk-share-friend-av-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.uk-share-friend-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}
.uk-share-online-dot,
.uk-share-offline-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
}
.uk-share-online-dot {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}
.uk-share-offline-dot {
    background: #94a3b8;
}
.uk-share-friend-info {
    flex: 1;
    min-width: 0;
}
.uk-share-friend-name {
    font-size: 12.8px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uk-share-friend-sub {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uk-share-quick-send {
    flex-shrink: 0;
    background: var(--btn-bg) !important;
    color: var(--btn-text) !important;
    border: none !important;
    font-size: 11.5px !important;
    padding: 5px 11px !important;
}

/* 4. Картка-прев’ю пересланої публікації всередині Приватної пошти (.uk-msg-share-preview-card) */
.uk-msg-share-preview-card {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-strong);
    border-radius: 20px;
    color: var(--text-main);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.uk-msg-share-preview-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.uk-msg-share-preview-thumb {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.uk-msg-share-preview-body {
    flex: 1;
    min-width: 0;
}
.uk-msg-share-preview-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}
.uk-msg-share-preview-title {
    font-weight: 800;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 2px;
}
.uk-msg-share-preview-snippet {
    font-size: 11.8px;
    color: var(--text-muted);
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.uk-msg-share-preview-footer {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}
.uk-msg-share-open-btn {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    font-weight: 700 !important;
}


/* ==========================================================================
   V4.4.0: ІЛЮСТРОВАНІ ВЕКТОРНІ ТЕМИ ОФОРМЛЕННЯ («З КАРТИНКАМИ» У СТИЛІ УКРоп)
   ДЛЯ ВСІХ 9 ТЕМ ПЛАТФОРМИ
   ========================================================================== */

/* 2. ❄️ Aurora Light — Сніжинки, крижані кристали та полярні зірочки */
html[data-theme="aurora_light"],
body[data-theme="aurora_light"] {
    --bg-theme-pattern: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27 viewBox=%270 0 140 140%27%3E%3Cg fill=%27none%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cg transform=%27translate(30,30)%27 opacity=%270.20%27 stroke=%27%232563eb%27 stroke-width=%271.5%27%3E%3Cpath d=%27M0,-14 L0,14 M-12,-7 L12,7 M-12,7 L12,-7%27/%3E%3Cpath d=%27M-3,-10 L0,-7 L3,-10 M-3,10 L0,7 L3,10 M-9,-2 L-6,-3.5 L-7,-7 M9,2 L6,3.5 L7,7%27 stroke=%27%2306b6d4%27 stroke-width=%271.2%27/%3E%3Ccircle cx=%270%27 cy=%270%27 r=%272.2%27 fill=%27%2338bdf8%27 stroke=%27none%27/%3E%3C/g%3E%3Cg transform=%27translate(105,36) rotate(15)%27 opacity=%270.22%27%3E%3Cpath d=%27M0,-11 Q1,-1 11,0 Q1,1 0,11 Q-1,1 -11,0 Q-1,-1 0,-11 Z%27 fill=%27%2338bdf8%27 stroke=%27%232563eb%27 stroke-width=%271.1%27/%3E%3Ccircle cx=%2714%27 cy=%27-8%27 r=%271.6%27 fill=%27%236366f1%27/%3E%3C/g%3E%3Cg transform=%27translate(68,98)%27 opacity=%270.18%27 stroke=%27%230284c7%27 stroke-width=%271.4%27%3E%3Cpolygon points=%270,-12 8,0 0,12 -8,0%27 fill=%27%23e0f2fe%27/%3E%3Cpath d=%27M-16,16 Q-4,8 8,16 T32,16%27 stroke=%27%236366f1%27 stroke-width=%271.3%27/%3E%3C/g%3E%3Cg transform=%27translate(116,112) scale(0.8)%27 opacity=%270.19%27 stroke=%27%232563eb%27 stroke-width=%271.5%27%3E%3Cpath d=%27M0,-12 L0,12 M-10,-6 L10,6 M-10,6 L10,-6%27/%3E%3Ccircle cx=%270%27 cy=%270%27 r=%272%27 fill=%27%236366f1%27 stroke=%27none%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --bg-ambient:
        var(--bg-theme-pattern),
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(37, 99, 235, 0.12), transparent 65%),
        radial-gradient(ellipse 75% 50% at 85% 0%, rgba(6, 182, 212, 0.11), transparent 65%);
}

/* 3. 🌙 Midnight Dark — Космос, півмісяці, Сатурн із кільцями та зорі */
html[data-theme="midnight_dark"],
body[data-theme="midnight_dark"] {
    --bg-theme-pattern: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27 viewBox=%270 0 140 140%27%3E%3Cg fill=%27none%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cg transform=%27translate(28,32) rotate(-15)%27 opacity=%270.26%27%3E%3Cpath d=%27M6,-11 A12,12 0 1,0 14,9 A9.5,9.5 0 1,1 6,-11 Z%27 fill=%27%23fbbf24%27 stroke=%27%23f59e0b%27 stroke-width=%271.2%27/%3E%3Ccircle cx=%2716%27 cy=%27-6%27 r=%271.6%27 fill=%27%2338bdf8%27/%3E%3C/g%3E%3Cg transform=%27translate(102,42) rotate(-22)%27 opacity=%270.25%27%3E%3Ccircle cx=%270%27 cy=%270%27 r=%278.5%27 fill=%27%231e293b%27 stroke=%27%2338bdf8%27 stroke-width=%271.5%27/%3E%3Cellipse cx=%270%27 cy=%270%27 rx=%2717%27 ry=%275%27 stroke=%27%23818cf8%27 stroke-width=%271.5%27/%3E%3C/g%3E%3Cg transform=%27translate(64,104)%27 opacity=%270.24%27%3E%3Cpath d=%27M0,-9 L2.2,-2.2 L9,0 L2.2,2.2 L0,9 L-2.2,2.2 L-9,0 L-2.2,-2.2 Z%27 fill=%27%2338bdf8%27/%3E%3Cpath d=%27M-24,-12 L-10,-4%27 stroke=%27%237dd3fc%27 stroke-width=%271.4%27 stroke-dasharray=%272,3%27/%3E%3Ccircle cx=%2728%27 cy=%27-14%27 r=%271.8%27 fill=%27%23fbbf24%27/%3E%3Ccircle cx=%27-32%27 cy=%278%27 r=%271.5%27 fill=%27%23818cf8%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --bg-ambient:
        var(--bg-theme-pattern),
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(56, 189, 248, 0.14), transparent 70%);
}

/* 4. 🫧 Glass — Кришталеві мильні бульбашки з відблисками та перлини */
html[data-theme="glass"],
body[data-theme="glass"] {
    --bg-theme-pattern: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27 viewBox=%270 0 140 140%27%3E%3Cg fill=%27none%27 stroke-linecap=%27round%27%3E%3Cg transform=%27translate(32,34)%27 opacity=%270.28%27%3E%3Ccircle cx=%270%27 cy=%270%27 r=%2714%27 fill=%27%23ffffff%27 fill-opacity=%270.45%27 stroke=%27%236366f1%27 stroke-width=%271.5%27/%3E%3Cpath d=%27M-7,-6 A9,9 0 0,1 -1,-10%27 stroke=%27%23ec4899%27 stroke-width=%271.8%27/%3E%3Ccircle cx=%275%27 cy=%276%27 r=%271.8%27 fill=%27%236366f1%27/%3E%3C/g%3E%3Cg transform=%27translate(106,40)%27 opacity=%270.25%27%3E%3Ccircle cx=%270%27 cy=%270%27 r=%2710%27 fill=%27%23ffffff%27 fill-opacity=%270.4%27 stroke=%27%2306b6d4%27 stroke-width=%271.4%27/%3E%3Cpath d=%27M-5,-4 A6,6 0 0,1 0,-7%27 stroke=%27%236366f1%27 stroke-width=%271.5%27/%3E%3Ccircle cx=%27-14%27 cy=%2710%27 r=%274.5%27 stroke=%27%23ec4899%27 stroke-width=%271.2%27/%3E%3C/g%3E%3Cg transform=%27translate(70,104)%27 opacity=%270.26%27%3E%3Ccircle cx=%270%27 cy=%270%27 r=%2712%27 fill=%27%23ffffff%27 fill-opacity=%270.4%27 stroke=%27%238b5cf6%27 stroke-width=%271.4%27/%3E%3Cpath d=%27M-6,-5 A7,7 0 0,1 -1,-8%27 stroke=%27%2306b6d4%27 stroke-width=%271.6%27/%3E%3Ccircle cx=%2718%27 cy=%27-8%27 r=%273.5%27 stroke=%27%236366f1%27 stroke-width=%271.2%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --bg-ambient:
        var(--bg-theme-pattern),
        radial-gradient(at 0% 0%, rgba(199, 210, 254, 0.72) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 208, 254, 0.62) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(186, 230, 253, 0.62) 0px, transparent 50%);
}

/* 5. 🎨 Neo Minimal — Стильний дудл-арт: чашечки кави, котики, паперові літачки та нотки */
html[data-theme="neo_minimal"],
body[data-theme="neo_minimal"] {
    --bg-theme-pattern: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27 viewBox=%270 0 140 140%27%3E%3Cg fill=%27none%27 stroke=%27%2352525b%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cg transform=%27translate(28,34) rotate(-8)%27 opacity=%270.20%27%3E%3Crect x=%27-8%27 y=%27-4%27 width=%2716%27 height=%2713%27 rx=%274%27 fill=%27%23f4f4f5%27/%3E%3Cpath d=%27M8,-1 H11 A3,3 0 0,1 11,5 H8 M-11,9 H11%27/%3E%3Cpath d=%27M-3,-8 Q-1,-11 -3,-14 M3,-8 Q5,-11 3,-14%27 stroke=%27%23a1a1aa%27/%3E%3C/g%3E%3Cg transform=%27translate(104,36) rotate(12)%27 opacity=%270.20%27%3E%3Cpath d=%27M-9,4 L-9,-8 L-4,-3 L4,-3 L9,-8 L9,4 A9,8 0 0,1 -9,4 Z%27 fill=%27%23f4f4f5%27/%3E%3Ccircle cx=%27-3.5%27 cy=%271%27 r=%271%27 fill=%27%2318181b%27/%3E%3Ccircle cx=%273.5%27 cy=%271%27 r=%271%27 fill=%27%2318181b%27/%3E%3Cpath d=%27M-1.5,3.5 L0,5 L1.5,3.5%27/%3E%3C/g%3E%3Cg transform=%27translate(66,102) rotate(-14)%27 opacity=%270.19%27%3E%3Cpath d=%27M-12,2 L12,-8 L2,10 L-2,3 Z M-2,3 L12,-8%27/%3E%3Ccircle cx=%2732%27 cy=%27-6%27 r=%272.5%27 fill=%27%23e4e4e7%27/%3E%3Cpath d=%27M34.5,-6 V-16 L41,-14 V-4%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --bg-ambient: var(--bg-theme-pattern);
}

/* 6. 🌅 Sunset Gradient — Тропічний захід, пальми, сонце над хвилями та чайки */
html[data-theme="sunset_gradient"],
body[data-theme="sunset_gradient"] {
    --bg-theme-pattern: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27 viewBox=%270 0 140 140%27%3E%3Cg fill=%27none%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cg transform=%27translate(34,36)%27 opacity=%270.25%27%3E%3Cpath d=%27M-11,4 A11,11 0 0,1 11,4 Z%27 fill=%27%23f97316%27 stroke=%27%23fbbf24%27 stroke-width=%271.2%27/%3E%3Cpath d=%27M-15,8 Q-7,5 0,8 T15,8 M-11,12 Q-4,9 3,12 T13,12%27 stroke=%27%23ec4899%27 stroke-width=%271.4%27/%3E%3C/g%3E%3Cg transform=%27translate(104,40)%27 opacity=%270.24%27 stroke=%27%23fb923c%27 stroke-width=%271.5%27%3E%3Cpath d=%27M-12,-4 Q-6,-10 0,-3 Q6,-10 12,-4%27/%3E%3Cpath d=%27M0,4 Q6,-2 11,3 Q16,-2 22,4%27 stroke=%27%23f472b6%27 stroke-width=%271.3%27/%3E%3C/g%3E%3Cg transform=%27translate(68,106) rotate(-12)%27 opacity=%270.25%27 stroke=%27%23f97316%27 stroke-width=%271.5%27%3E%3Cpath d=%27M0,14 Q3,0 0,-12%27/%3E%3Cpath d=%27M0,-12 Q-12,-10 -15,-2 M0,-12 Q-10,-16 -16,-11 M0,-12 Q12,-10 15,-2 M0,-12 Q10,-16 16,-11%27 stroke=%27%23ec4899%27/%3E%3Ccircle cx=%27-2%27 cy=%27-9%27 r=%271.6%27 fill=%27%23fbbf24%27 stroke=%27none%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --bg-ambient:
        var(--bg-theme-pattern),
        radial-gradient(ellipse 75% 50% at 15% -10%, rgba(249, 115, 22, 0.18), transparent 65%),
        radial-gradient(ellipse 75% 50% at 85% 0%, rgba(236, 72, 153, 0.16), transparent 65%);
}

/* 7. ⚡ Cyber Neon — Кіберпанк, неонові мікрочипи, геймпади та блискавки */
html[data-theme="cyber_neon"],
body[data-theme="cyber_neon"] {
    --bg-theme-pattern: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27 viewBox=%270 0 140 140%27%3E%3Cg fill=%27none%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cg transform=%27translate(32,32)%27 opacity=%270.26%27 stroke=%27%2306b6d4%27 stroke-width=%271.4%27%3E%3Crect x=%27-9%27 y=%27-9%27 width=%2718%27 height=%2718%27 rx=%273%27 fill=%27%230b1021%27/%3E%3Crect x=%27-4%27 y=%27-4%27 width=%278%27 height=%278%27 fill=%27%23ec4899%27 stroke=%27none%27/%3E%3Cpath d=%27M-14,-4 H-9 M-14,4 H-9 M9,-4 H14 M9,4 H14 M-4,-14 V-9 M4,-14 V-9 M-4,9 V14 M4,9 V14%27/%3E%3C/g%3E%3Cg transform=%27translate(106,38) rotate(10)%27 opacity=%270.26%27%3E%3Cpath d=%27M2,-12 L-8,2 H1 L-2,12 L8,-2 H-1 Z%27 fill=%27%2322d3ee%27 stroke=%27%2306b6d4%27 stroke-width=%271.1%27/%3E%3C/g%3E%3Cg transform=%27translate(68,104)%27 opacity=%270.25%27 stroke=%27%23818cf8%27 stroke-width=%271.5%27%3E%3Crect x=%27-14%27 y=%27-7%27 width=%2728%27 height=%2714%27 rx=%277%27 fill=%27%230b1021%27/%3E%3Cpath d=%27M-9,0 H-5 M-7,-2 V2%27 stroke=%27%2306b6d4%27/%3E%3Ccircle cx=%276%27 cy=%27-1.5%27 r=%271.5%27 fill=%27%23ec4899%27 stroke=%27none%27/%3E%3Ccircle cx=%279.5%27 cy=%271.5%27 r=%271.5%27 fill=%27%2322d3ee%27 stroke=%27none%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --bg-ambient:
        var(--bg-theme-pattern),
        radial-gradient(circle at 50% -20%, rgba(6, 182, 212, 0.16), transparent 65%);
}

/* 8. 🌲 Forest Calm — Смарагдовий ліс, ялинки, папороть, грибочки та світлячки */
html[data-theme="forest_calm"],
body[data-theme="forest_calm"] {
    --bg-theme-pattern: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27 viewBox=%270 0 140 140%27%3E%3Cg fill=%27none%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cg transform=%27translate(30,34)%27 opacity=%270.26%27%3E%3Cpolygon points=%270,-15 -9,-3 -4,-3 -11,8 11,8 4,-3 9,-3%27 fill=%27%23064e3b%27 stroke=%27%2310b981%27 stroke-width=%271.4%27/%3E%3Cpath d=%27M0,8 V13%27 stroke=%27%23a7f3d0%27 stroke-width=%271.8%27/%3E%3Ccircle cx=%2714%27 cy=%27-8%27 r=%271.8%27 fill=%27%23fbbf24%27/%3E%3C/g%3E%3Cg transform=%27translate(104,40) rotate(16)%27 opacity=%270.25%27 stroke=%27%2334d399%27 stroke-width=%271.4%27%3E%3Cpath d=%27M0,12 C-9,6 -10,-6 0,-12 C10,-6 9,6 0,12 Z M0,15 V-10 M0,4 L-5,0 M0,-2 L5,-6%27 fill=%27%23064e3b%27/%3E%3C/g%3E%3Cg transform=%27translate(68,104)%27 opacity=%270.25%27%3E%3Cpath d=%27M-10,2 A10,9 0 0,1 10,2 Z%27 fill=%27%23059669%27 stroke=%27%2334d399%27 stroke-width=%271.4%27/%3E%3Cpath d=%27M-3,2 V10 H3 V2%27 stroke=%27%23a7f3d0%27 stroke-width=%271.4%27/%3E%3Ccircle cx=%27-4%27 cy=%27-2%27 r=%271.3%27 fill=%27%23ecfdf5%27/%3E%3Ccircle cx=%273%27 cy=%27-3%27 r=%271.5%27 fill=%27%23ecfdf5%27/%3E%3Ccircle cx=%27-22%27 cy=%27-6%27 r=%272%27 fill=%27%23fbbf24%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --bg-ambient:
        var(--bg-theme-pattern),
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(16, 185, 129, 0.16), transparent 70%);
}

/* 9. 👑 Royal Gold — Золоті корони, огранені діаманти та королівські зірки */
html[data-theme="royal_gold"],
body[data-theme="royal_gold"] {
    --bg-theme-pattern: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27 viewBox=%270 0 140 140%27%3E%3Cg fill=%27none%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cg transform=%27translate(32,34) rotate(-10)%27 opacity=%270.26%27%3E%3Cpath d=%27M-11,6 L-13,-6 L-5,0 L0,-9 L5,0 L13,-6 L11,6 Z%27 fill=%27%23422006%27 stroke=%27%23eab308%27 stroke-width=%271.5%27/%3E%3Ccircle cx=%27-13%27 cy=%27-8%27 r=%271.5%27 fill=%27%23facc15%27/%3E%3Ccircle cx=%270%27 cy=%27-11%27 r=%271.8%27 fill=%27%23fef08a%27/%3E%3Ccircle cx=%2713%27 cy=%27-8%27 r=%271.5%27 fill=%27%23facc15%27/%3E%3C/g%3E%3Cg transform=%27translate(104,40) rotate(14)%27 opacity=%270.25%27 stroke=%27%23facc15%27 stroke-width=%271.4%27%3E%3Cpolygon points=%27-7,-8 7,-8 12,-2 0,11 -12,-2%27 fill=%27%23422006%27/%3E%3Cpath d=%27M-12,-2 H12 M-7,-8 L-3,-2 L0,11 L3,-2 L7,-8%27 stroke=%27%23eab308%27 stroke-width=%271.1%27/%3E%3C/g%3E%3Cg transform=%27translate(68,104)%27 opacity=%270.24%27%3E%3Cpath d=%27M0,-10 L2.5,-2.5 L10,0 L2.5,2.5 L0,10 L-2.5,2.5 L-10,0 L-2.5,-2.5 Z%27 fill=%27%23eab308%27/%3E%3Ccircle cx=%2722%27 cy=%27-8%27 r=%271.8%27 fill=%27%23fef08a%27/%3E%3Ccircle cx=%27-22%27 cy=%276%27 r=%271.6%27 fill=%27%23ca8a04%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --bg-ambient:
        var(--bg-theme-pattern),
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(234, 179, 8, 0.16), transparent 70%);
}

/* Застосування фірмових ілюстрованих патернів на фоні, шапках модулів та блоках лідерів для всіх тем */
body[data-theme="aurora_light"],
body[data-theme="midnight_dark"],
body[data-theme="glass"],
body[data-theme="neo_minimal"],
body[data-theme="sunset_gradient"],
body[data-theme="cyber_neon"],
body[data-theme="forest_calm"],
body[data-theme="royal_gold"] {
    background-image: var(--bg-ambient);
    background-repeat: repeat, no-repeat, no-repeat;
    background-size: 140px 140px, 100% 100%, 100% 100%;
}

body[data-theme="aurora_light"] .uk-module-bar,
body[data-theme="aurora_light"] .uk-spotlight-wrap,
body[data-theme="midnight_dark"] .uk-module-bar,
body[data-theme="midnight_dark"] .uk-spotlight-wrap,
body[data-theme="glass"] .uk-module-bar,
body[data-theme="glass"] .uk-spotlight-wrap,
body[data-theme="neo_minimal"] .uk-module-bar,
body[data-theme="neo_minimal"] .uk-spotlight-wrap,
body[data-theme="sunset_gradient"] .uk-module-bar,
body[data-theme="sunset_gradient"] .uk-spotlight-wrap,
body[data-theme="cyber_neon"] .uk-module-bar,
body[data-theme="cyber_neon"] .uk-spotlight-wrap,
body[data-theme="forest_calm"] .uk-module-bar,
body[data-theme="forest_calm"] .uk-spotlight-wrap,
body[data-theme="royal_gold"] .uk-module-bar,
body[data-theme="royal_gold"] .uk-spotlight-wrap {
    background-image: var(--bg-theme-pattern);
    background-size: 120px 120px;
}


/* ==========================================================================
   БУЛЬБАШКИ ЖИВОГО ЧАТУ, ЗВАННЯ, МЕДАЛІ ТА ОНЛАЙН ПІД АВАТАРОМ (v4.5.0)
   ========================================================================== */
.uk-chat-msg-bubble {
    border-radius: 18px !important;
    padding: 10px 14px !important;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.uk-chat-msg-bubble:hover {
    transform: translateY(-1px);
}
.uk-avatar-online-under {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}


/* ============================================================================
   ПАГІНАЦІЯ СТОРІНОК ПО 20 ПУНКТІВ (← Назад | 1 2 3 ... | Далі → + Вибір сторінки)
   ============================================================================ */
.uk-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    margin-top: 14px;
    margin-bottom: 10px;
    border-radius: 20px;
}

.uk-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.uk-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.uk-page-nav-btn,
.uk-page-num-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-main);
    transition: all 0.18s ease;
    cursor: pointer;
}

.uk-page-num-btn {
    padding: 0 11px;
}

.uk-page-nav-btn:hover:not(.is-disabled),
.uk-page-num-btn:hover:not(.is-active) {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.uk-page-num-btn.is-active {
    background: var(--accent);
    color: #ffffff !important;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28);
    cursor: default;
}

.uk-page-nav-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.uk-page-ellipsis {
    padding: 0 4px;
    color: var(--text-muted);
    font-weight: 700;
}

.uk-pagination-jump {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.uk-page-select {
    width: auto !important;
    min-width: 155px;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    font-weight: 700;
    cursor: pointer;
}


/* ============================================================================
   БУЛЬБАШКА СТАТУСУ КОРИСТУВАЧА В АНКЕТІ (.uk-status-bubble)
   ============================================================================ */
.uk-status-bubble {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 18px 18px 18px 5px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.45;
    max-width: 100%;
}

.uk-status-bubble-sm {
    padding: 4px 11px;
    font-size: 12.5px;
    border-radius: 14px 14px 14px 4px;
}


/* ============================================================================
   ПАГІНАЦІЯ В ОДИН РЯДОК: ЗЛІВА «← Назад» | ПОСЕРЕДИНІ НОМЕР СТОРІНКИ | СПРАВА «Вперед →»
   ============================================================================ */
.uk-pagination-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 10px 14px;
    margin-top: 14px;
    margin-bottom: 10px;
    border-radius: 999px;
    width: 100%;
    box-sizing: border-box;
}

.uk-pagination-slot-left,
.uk-pagination-slot-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.uk-pagination-slot-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

@media (max-width: 640px) {
    .uk-pagination-bar {
        padding: 8px 10px;
        gap: 6px;
    }
    .uk-desktop-page-nums {
        display: none !important;
    }
    .uk-page-nav-btn {
        padding: 0 11px !important;
        font-size: 12px !important;
        height: 34px !important;
        white-space: nowrap;
    }
    .uk-page-select {
        min-width: 118px !important;
        max-width: 145px !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
        text-align: center;
    }
}


/* ============================================================================
   V4.6.6: ПРАКТИЧНІ ПОЛЯ ВВЕДЕННЯ, ВИСОКИЙ КОНТРАСТ ТА АДАПТИВНІ ФОРМИ НА МОБІЛЬНИХ
   ============================================================================ */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="search"],
select {
    border-radius: 12px !important;
    padding: 9px 12px !important;
    min-height: 40px;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-main) !important;
    background-color: var(--bg-surface) !important;
    border: 1.5px solid var(--border-strong) !important;
    box-sizing: border-box !important;
    min-width: 0;
    width: 100%;
    text-overflow: ellipsis;
}
textarea {
    border-radius: 14px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: var(--text-main) !important;
    background-color: var(--bg-surface) !important;
    border: 1.5px solid var(--border-strong) !important;
    box-sizing: border-box !important;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-soft) !important;
    background-color: var(--bg-surface) !important;
}
input::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.82 !important;
}
input[name="icon"],
.uk-input-icon {
    text-align: center !important;
    padding: 6px 4px !important;
    font-size: 18px !important;
    min-width: 56px !important;
}
.uk-field-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    line-height: 1.25;
}
.uk-filter-grid-ads {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr 1fr auto;
    gap: 10px;
    align-items: end;
}
.uk-filter-grid-market {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr 1fr 0.8fr 0.8fr 1.1fr auto;
    gap: 10px;
    align-items: end;
}
.uk-cat-edit-grid {
    display: grid;
    grid-template-columns: 76px 1.3fr 1.6fr 100px auto;
    gap: 10px;
    align-items: end;
}
.uk-cat-edit-grid-market {
    display: grid;
    grid-template-columns: 76px 1.2fr 1.5fr 110px 95px auto;
    gap: 10px;
    align-items: end;
}
.uk-order-edit-grid {
    display: grid;
    grid-template-columns: 1.4fr 115px 105px 135px 1.2fr auto;
    gap: 8px;
    align-items: end;
}
@media (max-width: 960px) {
    .uk-filter-grid-market {
        grid-template-columns: 1fr 1fr;
    }
    .uk-filter-grid-market > .uk-filter-search-col,
    .uk-filter-grid-market > .uk-filter-btn-col {
        grid-column: 1 / -1;
    }
    .uk-cat-edit-grid,
    .uk-cat-edit-grid-market,
    .uk-order-edit-grid {
        grid-template-columns: 78px 1fr;
    }
    .uk-cat-edit-grid > .uk-col-full,
    .uk-cat-edit-grid-market > .uk-col-full,
    .uk-order-edit-grid > .uk-col-full {
        grid-column: 1 / -1;
    }
}
@media (max-width: 720px) {
    .uk-filter-grid-ads {
        grid-template-columns: 1fr 1fr;
    }
    .uk-filter-grid-ads > .uk-filter-search-col,
    .uk-filter-grid-ads > .uk-filter-btn-col {
        grid-column: 1 / -1;
    }
    .uk-filter-grid-ads button[type="submit"],
    .uk-filter-grid-market button[type="submit"] {
        width: 100%;
        justify-content: center;
        min-height: 40px;
    }
}


/* ==========================================================================
   UKRop v4.6.7: ЧИСТА СТРІЧКА, КНОПКА ПЕРЕГЛЯНУТИ СПРАВА, ПОШТА ТА ТЕЛЕГРАМ-ПІДТРИМКА
   ========================================================================== */
.uk-feed-view-btn {
    margin-left: auto !important;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: var(--accent);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.uk-tg-support-btn {
    background: #229ED9;
    color: #ffffff !important;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 3px 10px rgba(34, 158, 217, 0.35);
    line-height: 1.35;
}
.uk-conv-row-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}
.uk-conv-row-wrap .uk-conv-item {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
}
.uk-conv-del-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.78;
    transition: all 0.15s ease;
    padding: 0;
}
.uk-conv-del-btn:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
}

/* === v4.7.1: Іконка укропу + "Написати..." зліва у формах введення та авто-розширення === */
.uk-dill-input-wrap {
    position: relative;
    width: 100%;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
}
.uk-dill-input-wrap > textarea {
    width: 100% !important;
    min-height: 42px;
    max-height: 320px;
    resize: none;
    overflow-y: hidden;
    line-height: 1.45;
}
.uk-dill-pill-wrap > textarea {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 9px 10px !important;
    min-height: 40px;
}
.uk-dill-placeholder {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    transition: opacity 0.12s ease, transform 0.12s ease;
}
.uk-dill-pill-wrap .uk-dill-placeholder {
    left: 8px;
}
.uk-dill-sprig-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.14);
    color: #16a34a;
    flex-shrink: 0;
}
.uk-dill-input-wrap:focus-within .uk-dill-placeholder,
.uk-dill-input-wrap.is-focused .uk-dill-placeholder,
.uk-dill-input-wrap.has-value .uk-dill-placeholder {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-50%) translateX(-6px) !important;
}

.uk-brand-dill-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.32);
    margin-right: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Приховуємо дублюючу веб-нижню навігацію та PWA-банер, коли сайт відкрито всередині нативного Android-додатку UKRop */
html.uk-in-native-app #uk-pwa-install-banner {
    display: none !important;
}
html.uk-in-native-app body {
    padding-bottom: 12px !important;
}


/* ==========================================================================
   UKRop v4.8.1 MESSENGER PRO: ГАЛОЧКИ ✓✓, ОНЛАЙН, ЦИТАТИ, РЕАКЦІЇ, ГОЛОСОВІ 🎤 ТА МОБІЛЬНА ВЕРСТКА
   ========================================================================== */
.uk-msg-read-tick {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-left: 4px;
    padding-right: 2px;
    vertical-align: baseline;
}
.uk-msg-read-tick.is-sent {
    opacity: 0.72;
}
.uk-msg-read-tick.is-read {
    opacity: 1;
    color: #a7f3d0;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.45);
}
.uk-conv-read-tick {
    font-weight: 800;
    font-size: 11px;
    color: var(--text-muted);
}
.uk-conv-read-tick.is-read {
    color: #10b981;
}
.uk-msg-edited-tag {
    font-size: 10px;
    font-style: italic;
    opacity: 0.78;
    margin-left: 3px;
}
.uk-conv-blocked-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 11px;
    line-height: 1;
    background: var(--bg-surface);
    border-radius: 50%;
    padding: 1px;
}

.uk-chat-typing-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    font-size: 11px;
    font-weight: 800;
    animation: ukPulseTyping 1.2s infinite ease-in-out;
}
@keyframes ukPulseTyping {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.97); }
}

.uk-msg-reply-card {
    margin: 4px 0 6px 0;
    padding: 5px 10px;
    border-left: 3px solid var(--accent);
    background: rgba(0, 0, 0, 0.14);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.35;
    transition: background 0.15s ease;
}
.uk-msg-bubble.mine .uk-msg-reply-card {
    border-left-color: #ffffff;
    background: rgba(0, 0, 0, 0.2);
}
.uk-msg-reply-card:hover {
    background: rgba(0, 0, 0, 0.26);
}
.uk-msg-reply-author {
    font-weight: 800;
    font-size: 11px;
    margin-bottom: 1px;
}
.uk-msg-reply-snippet {
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uk-msg-highlight-pulse {
    animation: ukMsgHighlightAnim 1.6s ease;
}
@keyframes ukMsgHighlightAnim {
    0%, 100% { box-shadow: none; }
    30% { box-shadow: 0 0 0 3px #10b981, 0 0 18px rgba(16, 185, 129, 0.6); }
}

.uk-msg-react-wrap {
    position: relative;
    display: inline-flex;
}
.uk-msg-react-popover {
    position: absolute;
    bottom: 125%;
    right: 0;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    white-space: nowrap;
}
.uk-msg-bubble.theirs .uk-msg-react-popover {
    right: auto;
    left: 0;
}
.uk-msg-react-pick-btn {
    background: none;
    border: none;
    font-size: 16px;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.12s ease;
}
.uk-msg-react-pick-btn:hover {
    transform: scale(1.28);
}

.uk-msg-reactions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}
.uk-msg-reactions-row:empty {
    display: none;
    margin-top: 0;
}
.uk-msg-reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.16);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: all 0.12s ease;
}
.uk-msg-bubble.theirs .uk-msg-reaction-pill {
    background: var(--bg-surface);
    border-color: var(--border);
}
.uk-msg-reaction-pill.active {
    border-color: #10b981;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4);
}
.uk-msg-reaction-cnt {
    font-size: 11px;
}

.uk-composer-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 12px;
    margin-bottom: 7px;
    border-radius: 10px;
    background: var(--bg-surface);
    border-left: 3px solid var(--accent);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.uk-composer-context-body {
    min-width: 0;
    flex: 1;
    font-size: 12px;
}
.uk-composer-context-body strong {
    display: block;
    color: var(--accent);
    font-size: 11.5px;
}
#uk-composer-context-snippet {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}
.uk-composer-context-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 2px 6px;
}

.uk-voice-recording-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 12px;
    margin-bottom: 7px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.38);
}
.uk-voice-rec-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    color: #ef4444;
}
.uk-voice-rec-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: ukPulseTyping 0.9s infinite;
}
.uk-voice-rec-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.uk-voice-mic-btn.is-recording {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.16) !important;
}

.uk-chat-blocked-composer-bar {
    padding: 12px 16px;
    border-top: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.uk-chat-blocked-text {
    font-size: 13px;
    color: var(--text-main);
}

/* Мобільна оптимізація вікна чату: ховаємо велику шапку папок при відкритому діалозі і фіксуємо поле вводу */
@media (max-width: 820px) {
    .uk-messenger-topbar.uk-messenger-topbar-chat-open {
        display: none !important;
    }
    .uk-messenger-shell.uk-messenger-chat-active .uk-messenger-main {
        height: calc(100dvh - 122px) !important;
        min-height: 360px !important;
        max-height: calc(100dvh - 122px) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .uk-chat-header {
        padding: 9px 11px !important;
        gap: 7px !important;
    }
    .uk-chat-header-actions {
        width: 100%;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .uk-chat-header-actions::-webkit-scrollbar {
        display: none;
    }
    .uk-chat-header-actions > * {
        flex-shrink: 0;
    }
    .uk-chat-viewport {
        padding: 11px !important;
        flex: 1 1 auto !important;
    }
    .uk-chat-composer-box {
        position: sticky;
        bottom: 0;
        z-index: 15;
        padding: 7px 9px !important;
    }
}


/* ==========================================================================
   UKRop v4.8.5: ПРЯМЕ ПОЛЕ ВВЕДЕННЯ НОМЕРА СТОРІНКИ У ПАГІНАЦІЇ ЗАМІСТЬ SELECT
   ========================================================================== */
.uk-page-jump-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 5px 3px 12px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--accent);
    margin: 0;
    height: 36px;
    box-sizing: border-box;
}
.uk-page-jump-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    user-select: none;
}
.uk-page-jump-input {
    width: 48px !important;
    min-width: 44px !important;
    max-width: 64px !important;
    height: 26px !important;
    padding: 2px 6px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1px solid var(--border-strong) !important;
    background: var(--bg-surface) !important;
    color: var(--text-main) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-align: center !important;
    outline: none !important;
    -moz-appearance: textfield;
}
.uk-page-jump-input::-webkit-outer-spin-button,
.uk-page-jump-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.uk-page-jump-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent-soft) !important;
}
.uk-page-jump-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.uk-page-jump-btn:hover {
    opacity: 0.92;
    transform: scale(1.05);
}
@media (max-width: 640px) {
    .uk-page-jump-form {
        height: 34px;
        padding: 2px 4px 2px 10px;
        gap: 5px;
    }
    .uk-page-jump-input {
        width: 42px !important;
        min-width: 38px !important;
        height: 24px !important;
        font-size: 12px !important;
    }
    .uk-page-jump-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}


/* ==========================================================================
   UKRop v4.8.6: БІЛЬША АВАТАРКА ПРОФІЛЮ ЗЛІВА ТА ІДЕАЛЬНЕ ПОЛЕ НОМЕРА СТОРІНКИ
   ========================================================================== */
.uk-profile-main-card {
    padding-left: 12px !important;
}
.uk-profile-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    margin-left: 0 !important;
}
.uk-profile-avatar-col .uk-avatar-xl {
    width: 128px !important;
    height: 128px !important;
    margin-top: -66px !important;
    margin-left: 0 !important;
}
@media (max-width: 540px) {
    .uk-profile-main-card {
        padding-left: 10px !important;
    }
    .uk-profile-avatar-col .uk-avatar-xl {
        width: 118px !important;
        height: 118px !important;
        margin-top: -60px !important;
        margin-left: 0 !important;
    }
}
input[type="number"].uk-page-jump-input,
.uk-page-jump-form .uk-page-jump-input {
    width: 42px !important;
    min-width: 38px !important;
    max-width: 54px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 4px !important;
    margin: 0 !important;
    line-height: 22px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   UKRop v5.0.1: АВТОПРИХОВУВАННЯ НИЖНЬОГО МЕНЮ ТА ЖЕСТ ОНОВЛЕННЯ (ТАНЦЮЮЧИЙ УКРОП 🇺🇦)
   ========================================================================== */
#uk-mobile-bottom-nav {
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease !important;
    will-change: transform, opacity;
}
#uk-mobile-bottom-nav.uk-bottom-nav-hidden {
    transform: translateY(115%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
#uk-ptr-dill-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
#uk-ptr-dill-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.uk-ptr-dill-card {
    background: var(--bg-surface, #ffffff);
    color: var(--text-main, #0f172a);
    border: 2px solid #16a34a;
    border-radius: 24px;
    padding: 18px 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: scale(0.85);
    transition: transform 0.18s ease;
}
#uk-ptr-dill-overlay.is-refreshing .uk-ptr-dill-card {
    transform: scale(1) !important;
}
.uk-dill-dancer-svg {
    width: 118px;
    height: 118px;
    overflow: visible;
    transform-origin: 50% 85%;
    animation: ukDillHopakDance 0.55s ease-in-out infinite alternate;
}
.uk-dill-flag-group {
    transform-origin: 78px 54px;
    animation: ukFlagWave 0.42s ease-in-out infinite alternate;
}
.uk-dill-left-arm {
    transform-origin: 42px 56px;
    animation: ukLeftArmWave 0.55s ease-in-out infinite alternate;
}
.uk-dill-leg-left {
    transform-origin: 52px 86px;
    animation: ukLegKickLeft 0.55s ease-in-out infinite alternate;
}
.uk-dill-leg-right {
    transform-origin: 68px 86px;
    animation: ukLegKickRight 0.55s ease-in-out infinite alternate;
}
@keyframes ukDillHopakDance {
    0%   { transform: translateY(0px) rotate(-6deg) scaleY(0.97); }
    50%  { transform: translateY(-10px) rotate(0deg) scaleY(1.04); }
    100% { transform: translateY(0px) rotate(6deg) scaleY(0.97); }
}
@keyframes ukFlagWave {
    0%   { transform: rotate(-14deg) scaleX(0.96); }
    100% { transform: rotate(16deg) scaleX(1.04); }
}
@keyframes ukLeftArmWave {
    0%   { transform: rotate(18deg); }
    100% { transform: rotate(-22deg); }
}
@keyframes ukLegKickLeft {
    0%   { transform: rotate(26deg) translateY(-3px); }
    100% { transform: rotate(-10deg) translateY(0px); }
}
@keyframes ukLegKickRight {
    0%   { transform: rotate(10deg) translateY(0px); }
    100% { transform: rotate(-26deg) translateY(-3px); }
}

/* ==========================================================================
   КОМПАКТНИЙ ДВОЯРУСНИЙ ПРЕМІУМ-ХЕДЕР (v5.2.1)
   1-й ярус (верх): Центроване Лого (+ десктопні іконки справа на ПК)
   2-й ярус (низ):  Зліва Флаг мови • Посередині Пошук • Справа Кнопка Теми
   ========================================================================== */
.uk-topbar.uk-topbar-v2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 8px 14px 10px 14px !important;
}
.uk-topbar-tier-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 30px;
}
.uk-topbar-tier-top .uk-brand {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-decoration: none !important;
    margin: 0 auto;
}
.uk-topbar-tier-top .uk-brand span.uk-brand-sub {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--border-strong);
    display: inline-flex !important;
}
.uk-topbar-desktop-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}
.uk-topbar-tier-bottom {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}
.uk-hdr-capsule {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-strong);
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
    flex-shrink: 0;
}
.uk-hdr-capsule:hover,
.uk-hdr-capsule:focus-within {
    border-color: var(--accent);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.uk-hdr-theme-capsule {
    border-color: var(--accent) !important;
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    padding: 0 12px;
}
.uk-hdr-capsule-flag,
.uk-hdr-capsule-emoji {
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.uk-hdr-capsule-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.uk-hdr-capsule-caret {
    font-size: 10px;
    opacity: 0.72;
    margin-left: 1px;
    line-height: 1;
}
.uk-hdr-overlay-select {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    min-height: 0 !important;
    z-index: 3;
    appearance: none;
    -webkit-appearance: none;
}
.uk-topbar-tier-bottom .uk-topbar-search {
    display: flex !important;
    align-items: center;
    position: relative;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    height: 36px;
}
.uk-hdr-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}
.uk-topbar-tier-bottom .uk-topbar-search input[type="text"] {
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px 0 34px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600;
    background: var(--bg-surface) !important;
    border: 1.5px solid var(--border-strong) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
.uk-topbar-tier-bottom .uk-topbar-search input[type="text"]:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-soft) !important;
}
@media (max-width: 820px) {
    .uk-topbar.uk-topbar-v2 {
        padding: 7px 10px 9px 10px !important;
        gap: 6px !important;
    }
    .uk-topbar-tier-top {
        min-height: 26px;
    }
    .uk-topbar-tier-top .uk-brand {
        font-size: 16.5px;
    }
    .uk-topbar-desktop-right #uk-topbar-icons-wrap {
        display: none !important;
    }
    .uk-topbar-desktop-right {
        position: static;
        transform: none;
    }
}
@media (max-width: 390px) {
    .uk-hdr-capsule-label {
        display: none;
    }
}

.uk-topbar-tier-top .uk-brand strong.uk-brand-logo-text {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.15;
    display: inline-block !important;
}
.uk-topbar-tier-top .uk-brand i.uk-brand-logo-emoji {
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    display: inline-flex !important;
    align-items: center;
}
.uk-topbar-tier-top .uk-brand img.uk-brand-logo-img {
    display: inline-block !important;
    vertical-align: middle;
    object-fit: contain;
}


/* v5.2.5: Компактний 2-колонковий вивід друзів у вікні «Поділитися» (по 4 бульбашки за замовчуванням) */
.uk-share-friends-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: 152px;
    overflow-y: auto;
    padding: 2px;
}
.uk-share-friend-item.uk-share-friend-compact {
    padding: 5px 8px !important;
    gap: 7px !important;
    border-radius: 999px !important;
    min-width: 0;
}
.uk-share-friend-item.uk-share-friend-compact .uk-share-friend-av-wrap,
.uk-share-friend-item.uk-share-friend-compact .uk-share-friend-av {
    width: 28px !important;
    height: 28px !important;
}
.uk-share-friend-item.uk-share-friend-compact .uk-share-friend-name {
    font-size: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uk-share-friend-item.uk-share-friend-compact .uk-share-friend-sub {
    font-size: 10.5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uk-share-friend-item.uk-share-friend-compact .uk-share-quick-send {
    padding: 3px 7px !important;
    font-size: 11px !important;
    border-radius: 999px !important;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .uk-share-friends-compact-grid {
        grid-template-columns: 1fr;
    }
}


@media (min-width: 821px) {
    .uk-topbar.uk-topbar-v2 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        padding: 8px max(18px, calc((100vw - 1400px) / 2)) !important;
        min-height: 54px !important;
    }
    .uk-topbar.uk-topbar-v2 .uk-topbar-tier-top,
    .uk-topbar.uk-topbar-v2 .uk-topbar-tier-bottom {
        display: contents !important;
    }
    .uk-topbar.uk-topbar-v2 .uk-brand {
        order: 1 !important;
        margin: 0 4px 0 0 !important;
        flex-shrink: 0 !important;
    }
    .uk-topbar.uk-topbar-v2 .uk-hdr-lang-capsule {
        order: 2 !important;
        flex-shrink: 0 !important;
    }
    .uk-topbar.uk-topbar-v2 .uk-topbar-search {
        order: 3 !important;
        flex: 1 1 240px !important;
        max-width: 460px !important;
        width: auto !important;
        margin: 0 4px !important;
    }
    .uk-topbar.uk-topbar-v2 .uk-hdr-theme-capsule {
        order: 4 !important;
        flex-shrink: 0 !important;
    }
    .uk-topbar.uk-topbar-v2 .uk-topbar-desktop-right {
        order: 5 !important;
        position: static !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
}

/* ==========================================================================
   UKRop v5.3.1: ПОВНОЕКРАННИЙ TELEGRAM-МЕСЕНДЖЕР (ЗІ ЗБЕРЕЖЕННЯМ НИЖНЬОЇ ПАНЕЛІ ТА РЕКЛАМИ)
   ========================================================================== */
.uk-tg-chat-header {
    padding: 8px 12px !important;
    min-height: 54px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    background: var(--bg-elevated) !important;
    border-bottom: 1px solid var(--border) !important;
    z-index: 20;
}
.uk-tg-back-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-main) !important;
    background: transparent;
    border: none;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.uk-tg-back-btn:hover {
    background: var(--bg-surface);
}
.uk-tg-header-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
}
.uk-tg-header-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--bg-elevated);
}
.uk-tg-peer-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.uk-tg-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    overflow: visible !important;
}
.uk-tg-hdr-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-main) !important;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.uk-tg-hdr-icon-btn:hover {
    background: var(--bg-surface);
}
.uk-tg-menu-wrap {
    position: relative;
    display: inline-flex;
}
.uk-tg-header-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 215px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    padding: 6px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.uk-tg-header-dropdown.hidden {
    display: none !important;
}
.uk-tg-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 9px;
    background: transparent;
    border: none;
    color: var(--text-main) !important;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.14s ease;
}
.uk-tg-menu-item:hover {
    background: var(--bg-surface);
}
.uk-messenger-main {
    position: relative !important;
}
.uk-tg-scroll-bottom-btn {
    position: absolute;
    right: 14px;
    bottom: 68px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1.5px solid var(--border-strong);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    z-index: 25;
    transition: transform 0.16s ease, opacity 0.16s ease;
}
.uk-tg-scroll-bottom-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.uk-tg-scroll-bottom-btn.hidden {
    display: none !important;
}
body.uk-tg-chat-mode #uk-mobile-bottom-nav,
body:has(.uk-messenger-shell.uk-messenger-chat-active) #uk-mobile-bottom-nav,
body:has(.uk-messenger-shell) #uk-mobile-bottom-nav {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 960 !important;
}
body.uk-tg-chat-mode header.uk-topbar,
body:has(.uk-messenger-shell.uk-messenger-chat-active) header.uk-topbar,
body.uk-tg-chat-mode .uk-messenger-topbar,
body:has(.uk-messenger-shell.uk-messenger-chat-active) .uk-messenger-topbar,
body.uk-tg-chat-mode #uk-left-sidebar-wrap,
body:has(.uk-messenger-shell.uk-messenger-chat-active) #uk-left-sidebar-wrap,
body.uk-tg-chat-mode #uk-right-sidebar-wrap,
body:has(.uk-messenger-shell.uk-messenger-chat-active) #uk-right-sidebar-wrap,
body.uk-tg-chat-mode #uk-scroll-top-btn,
body:has(.uk-messenger-shell.uk-messenger-chat-active) #uk-scroll-top-btn,
body.uk-tg-chat-mode .uk-messenger-shell.uk-messenger-chat-active .uk-messenger-sidebar,
body:has(.uk-messenger-shell.uk-messenger-chat-active) .uk-messenger-shell.uk-messenger-chat-active .uk-messenger-sidebar {
    display: none !important;
}
body.uk-tg-chat-mode footer > div:not(#uk-footer-ad-slot-wrap),
body:has(.uk-messenger-shell.uk-messenger-chat-active) footer > div:not(#uk-footer-ad-slot-wrap) {
    display: none !important;
}
body.uk-tg-chat-mode footer,
body:has(.uk-messenger-shell.uk-messenger-chat-active) footer {
    margin: 0 auto !important;
    padding: 0 0 calc(56px + env(safe-area-inset-bottom, 0px)) 0 !important;
    border: none !important;
}
body.uk-tg-chat-mode .uk-shell,
body:has(.uk-messenger-shell.uk-messenger-chat-active) .uk-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 920px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
}
body.uk-tg-chat-mode .uk-messenger-shell.uk-messenger-chat-active,
body:has(.uk-messenger-shell.uk-messenger-chat-active) .uk-messenger-shell.uk-messenger-chat-active {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    margin: 0 !important;
}
body.uk-tg-chat-mode .uk-messenger-shell.uk-messenger-chat-active .uk-messenger-main,
body:has(.uk-messenger-shell.uk-messenger-chat-active) .uk-messenger-shell.uk-messenger-chat-active .uk-messenger-main {
    height: var(--uk-tg-chat-height, calc(100dvh - 56px - env(safe-area-inset-bottom, 0px))) !important;
    min-height: 280px !important;
    max-height: var(--uk-tg-chat-height, calc(100dvh - 56px - env(safe-area-inset-bottom, 0px))) !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
body.uk-tg-chat-mode .uk-chat-viewport,
body:has(.uk-messenger-shell.uk-messenger-chat-active) .uk-chat-viewport {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 14px 12px !important;
}
body.uk-tg-chat-mode .uk-chat-composer-box,
body:has(.uk-messenger-shell.uk-messenger-chat-active) .uk-chat-composer-box {
    flex-shrink: 0 !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 22 !important;
    padding: 8px 10px !important;
    background: var(--bg-elevated) !important;
    border-top: 1px solid var(--border) !important;
}


/* Прогресивне підвантаження медіа по мірі прокручування (Turbo Lazy Engine v5.3.14) */
img.uk-lazy-media {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.10) 25%, rgba(148, 163, 184, 0.22) 50%, rgba(148, 163, 184, 0.10) 75%);
    background-size: 200% 100%;
    animation: ukLazyShimmer 1.4s infinite linear;
    opacity: 0.75;
    transition: opacity 0.24s ease;
}
img.uk-lazy-media.uk-lazy-loaded {
    background: transparent;
    animation: none;
    opacity: 1;
    min-height: 0 !important;
}
@keyframes ukLazyShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.uk-post-card {
    content-visibility: auto;
    contain-intrinsic-size: 0 280px;
}
