/*
Theme Name: VK Social
Theme URI: https://bl.lftv.ru
Author: LIFE TV
Author URI: https://bl.lftv.ru
Description: VKontakte-styled social network theme for WordPress with BuddyPress support
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vk-social
Tags: social-networking, buddypress, custom-header, custom-menu, featured-images, threaded-comments
*/

/* ==========================================================================
   0. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Page backgrounds */
  --vk-page-bg: #EDEEF0;
  --vk-content-bg: #FFFFFF;
  --vk-secondary-bg: #F0F2F5;
  --vk-header-bg: #FFFFFF;
  --vk-field-bg: #F7F8FA;
  --vk-search-field-bg: #EDEEF0;

  /* Accent colors */
  --vk-accent: #447BBA;
  --vk-accent-hover: #4177B5;
  --vk-accent-alt: #2688EB;
  --vk-accent-blue: #5181B8;
  --vk-accent-azure: #3F8AE0;
  --vk-green: #4BB34B;
  --vk-red: #FF3347;
  --vk-orange: #FFA000;

  /* Text */
  --vk-text-primary: #000000;
  --vk-text-secondary: #818C99;
  --vk-text-tertiary: #99A2AD;
  --vk-text-subhead: #626D7A;
  --vk-text-link: #2A5885;
  --vk-text-link-hover: #285582;
  --vk-text-link-visited: #4986CC;

  /* Icons */
  --vk-icon-primary: #2C2D2E;
  --vk-icon-medium: #6F7985;
  --vk-icon-secondary: #99A2AD;
  --vk-icon-tertiary: #AEB7C2;

  /* Separators */
  --vk-separator: #DCE1E6;
  --vk-separator-secondary: #E7E8EC;
  --vk-separator-alpha: rgba(0, 0, 0, 0.12);

  /* Buttons */
  --vk-btn-text: #346297;
  --vk-btn-text-hover: #325F93;
  --vk-btn-primary-bg: #447BBA;
  --vk-btn-secondary-bg: rgba(68, 123, 186, 0.12);
  --vk-btn-tertiary-hover: rgba(0, 16, 61, 0.04);

  /* Like states */
  --vk-like-active: #E64646;
  --vk-like-active-bg: #FAEBEB;

  /* Elevation */
  --vk-elevation-1: 0px 0px 2px rgba(0, 0, 0, 0.03), 0px 2px 2px rgba(0, 0, 0, 0.06);
  --vk-elevation-2: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 4px rgba(0, 0, 0, 0.06);

  /* Layout */
  --vk-page-width: 984px;
  --vk-sidebar-width: 230px;
  --vk-feed-width: 590px;
  --vk-header-height: 48px;
  --vk-column-gap: 16px;

  /* Border radius */
  --vk-radius-s: 4px;
  --vk-radius-m: 8px;
  --vk-radius-paper: 12px;
  --vk-radius-rounded: 48px;

  /* Typography */
  --vk-font-accent: "VK Sans Display", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", arial, Tahoma, verdana, sans-serif;
  --vk-font-base: -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", arial, Tahoma, verdana, sans-serif;

  /* Animation */
  --vk-duration-s: 0.1s;
  --vk-duration-m: 0.2s;
  --vk-easing: cubic-bezier(0.3, 0.3, 0.5, 1);
}

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

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

html,
body,
div,
span,
applet,
object,
iframe,
h1, h2, h3, h4, h5, h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

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

body {
  font-family: var(--vk-font-base);
  font-size: 15px;
  line-height: 20px;
  color: var(--vk-text-primary);
  background: var(--vk-page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--vk-text-link);
  text-decoration: none;
  transition: color var(--vk-duration-s) var(--vk-easing);
}

a:hover {
  color: var(--vk-text-link-hover);
}

a:visited {
  color: var(--vk-text-link-visited);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==========================================================================
   2. LAYOUT
   ========================================================================== */

.vk-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vk-layout {
  max-width: var(--vk-page-width);
  margin: 0 auto;
  padding-top: calc(var(--vk-header-height) + 16px);
  display: flex;
  gap: var(--vk-column-gap);
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 32px;
}

.vk-sidebar {
  width: var(--vk-sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--vk-header-height) + 16px);
  max-height: calc(100vh - var(--vk-header-height) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--vk-icon-tertiary) transparent;
}

.vk-content {
  flex: 1;
  min-width: 0;
  max-width: var(--vk-feed-width);
}

.vk-right-sidebar {
  width: var(--vk-sidebar-width);
  flex-shrink: 0;
}

/* ==========================================================================
   3. FIXED HEADER
   ========================================================================== */

.vk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--vk-header-height);
  background: var(--vk-header-bg);
  border-bottom: 1px solid var(--vk-separator);
  z-index: 100;
  display: flex;
  align-items: center;
}

.vk-header__inner {
  max-width: var(--vk-page-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.vk-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.vk-header__logo a {
  display: flex;
  text-decoration: none;
}

.vk-header__logo svg {
  width: 32px;
  height: 32px;
}

.vk-header__logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vk-accent-azure);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--vk-font-accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.vk-header__search {
  flex: 1;
  max-width: 320px;
  position: relative;
}

.vk-header__search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.vk-header__search-input input {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: var(--vk-radius-m);
  background: var(--vk-search-field-bg);
  padding: 0 12px 0 36px;
  font-size: 14px;
  color: var(--vk-text-primary);
  outline: none;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

.vk-header__search-input input:focus {
  background: var(--vk-secondary-bg);
}

.vk-header__search-input input::placeholder {
  color: var(--vk-text-tertiary);
}

.vk-header__search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vk-icon-secondary);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.vk-header__search-icon svg {
  width: 16px;
  height: 16px;
}

.vk-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.vk-header__nav-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--vk-radius-m);
  cursor: pointer;
  color: var(--vk-icon-medium);
  transition: background var(--vk-duration-s) var(--vk-easing),
              color var(--vk-duration-s) var(--vk-easing);
  position: relative;
}

.vk-header__nav-item:hover {
  background: var(--vk-btn-tertiary-hover);
}

.vk-header__nav-item.active {
  color: var(--vk-accent);
}

.vk-header__nav-item svg {
  width: 24px;
  height: 24px;
}

.vk-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.vk-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   4. LEFT SIDEBAR
   ========================================================================== */

.vk-sidebar-menu {
  background: transparent;
}

.vk-sidebar-profile {
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  padding: 16px;
  margin-bottom: 8px;
  box-shadow: var(--vk-elevation-1);
}

.vk-sidebar-profile__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 8px;
}

.vk-sidebar-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-sidebar-profile__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--vk-text-primary);
  line-height: 18px;
}

.vk-sidebar-profile__name a {
  color: var(--vk-text-primary);
  text-decoration: none;
}

.vk-sidebar-profile__name a:hover {
  text-decoration: underline;
}

.vk-sidebar-profile__status {
  font-size: 13px;
  color: var(--vk-text-secondary);
  line-height: 16px;
  margin-top: 2px;
}

.vk-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vk-sidebar-nav__item a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--vk-radius-m);
  color: var(--vk-text-primary);
  text-decoration: none;
  font-size: 14px;
  line-height: 18px;
  gap: 12px;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

.vk-sidebar-nav__item a:hover {
  background: var(--vk-secondary-bg);
}

.vk-sidebar-nav__item.active a {
  background: rgba(68, 123, 186, 0.12);
  color: var(--vk-accent);
}

.vk-sidebar-nav__item.active a .vk-sidebar-nav__icon {
  color: var(--vk-accent);
}

.vk-sidebar-nav__icon {
  width: 20px;
  height: 20px;
  color: var(--vk-accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vk-sidebar-nav__icon svg {
  width: 20px;
  height: 20px;
}

.vk-sidebar-nav__badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  background: var(--vk-accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 500;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.vk-sidebar-separator {
  height: 1px;
  background: var(--vk-separator-secondary);
  margin: 4px 0;
}

/* ==========================================================================
   5. POST CARDS
   ========================================================================== */

.vk-post-card {
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  margin-bottom: 16px;
  overflow: hidden;
}

.vk-post-header {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px 0;
  gap: 12px;
}

.vk-post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.vk-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-post-info {
  flex: 1;
  min-width: 0;
}

.vk-post-author {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.vk-post-author a {
  color: var(--vk-text-link);
  text-decoration: none;
}

.vk-post-author a:hover {
  text-decoration: underline;
}

.vk-post-date {
  font-size: 13px;
  line-height: 16px;
  color: var(--vk-text-secondary);
  margin-top: 2px;
}

.vk-post-date a {
  color: var(--vk-text-secondary);
  text-decoration: none;
}

.vk-post-date a:hover {
  text-decoration: underline;
}

.vk-post-menu {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--vk-radius-m);
  cursor: pointer;
  color: var(--vk-icon-secondary);
  margin-left: auto;
  flex-shrink: 0;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

.vk-post-menu:hover {
  background: var(--vk-btn-tertiary-hover);
}

.vk-post-menu svg {
  width: 24px;
  height: 24px;
}

.vk-post-text {
  padding: 8px 16px 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--vk-text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.vk-post-text a {
  color: var(--vk-text-link);
}

.vk-post-text a:hover {
  text-decoration: underline;
}

.vk-post-text p {
  margin-bottom: 8px;
}

.vk-post-text p:last-child {
  margin-bottom: 0;
}

.vk-post-text--expandable {
  max-height: 300px;
  overflow: hidden;
  position: relative;
}

.vk-post-text--expandable::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--vk-content-bg));
}

.vk-post-expand {
  padding: 4px 16px 0;
  font-size: 14px;
  color: var(--vk-text-link);
  cursor: pointer;
}

.vk-post-expand:hover {
  text-decoration: underline;
}

.vk-post-media {
  margin-top: 8px;
}

.vk-post-media img {
  width: 100%;
  display: block;
}

.vk-post-media-grid {
  margin-top: 8px;
  display: grid;
  gap: 2px;
}

.vk-post-media-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.vk-post-media-grid--3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.vk-post-media-grid--3 .vk-post-media-grid__item:first-child {
  grid-row: 1 / 3;
}

.vk-post-media-grid--4 {
  grid-template-columns: 1fr 1fr;
}

.vk-post-media-grid__item {
  overflow: hidden;
}

.vk-post-media-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-post-link-preview {
  margin: 8px 16px 0;
  border: 1px solid var(--vk-separator-secondary);
  border-radius: var(--vk-radius-m);
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

.vk-post-link-preview:hover {
  background: var(--vk-secondary-bg);
}

.vk-post-link-preview__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.vk-post-link-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vk-post-link-preview__body {
  padding: 12px;
}

.vk-post-link-preview__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--vk-text-primary);
  line-height: 18px;
  margin-bottom: 4px;
}

.vk-post-link-preview__domain {
  font-size: 12px;
  color: var(--vk-text-secondary);
  line-height: 16px;
}

.vk-post-actions {
  display: flex;
  align-items: center;
  padding: 0 8px;
  height: 44px;
}

.vk-post-action {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--vk-radius-m);
  cursor: pointer;
  font-size: 13px;
  color: var(--vk-text-secondary);
  transition: all var(--vk-duration-s) var(--vk-easing);
  background: transparent;
  border: none;
  user-select: none;
  text-decoration: none;
  line-height: 1;
}

.vk-post-action:hover {
  background: var(--vk-btn-tertiary-hover);
}

.vk-post-action svg {
  width: 24px;
  height: 24px;
  color: var(--vk-icon-secondary);
  flex-shrink: 0;
}

.vk-post-action.liked {
  color: var(--vk-like-active);
}

.vk-post-action.liked svg {
  color: var(--vk-like-active);
}

.vk-post-action.liked:hover {
  background: var(--vk-like-active-bg);
}

.vk-post-action__spacer {
  margin-left: auto;
}

.vk-post-action__views {
  margin-left: auto;
  cursor: default;
}

.vk-post-action__views:hover {
  background: transparent;
}

.vk-post-repost {
  margin: 8px 16px 0;
  padding: 12px;
  border: 1px solid var(--vk-separator-secondary);
  border-radius: var(--vk-radius-m);
}

.vk-post-repost .vk-post-header {
  padding: 0;
}

.vk-post-repost .vk-post-text {
  padding: 8px 0 0;
}

.vk-post-repost .vk-post-avatar {
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   6. POST COMPOSER
   ========================================================================== */

.vk-composer {
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vk-composer__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.vk-composer__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-composer__input {
  flex: 1;
  height: 36px;
  background: var(--vk-search-field-bg);
  border-radius: var(--vk-radius-rounded);
  border: none;
  padding: 0 16px;
  font-size: 14px;
  color: var(--vk-text-primary);
  cursor: text;
  outline: none;
  display: flex;
  align-items: center;
  line-height: 36px;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

.vk-composer__input:focus {
  background: var(--vk-secondary-bg);
}

.vk-composer__input::placeholder {
  color: var(--vk-text-tertiary);
}

.vk-composer__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vk-composer__action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--vk-radius-m);
  cursor: pointer;
  color: var(--vk-icon-secondary);
  transition: background var(--vk-duration-s) var(--vk-easing);
}

.vk-composer__action-btn:hover {
  background: var(--vk-btn-tertiary-hover);
}

.vk-composer__action-btn svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   7. STORY STRIP
   ========================================================================== */

.vk-stories {
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vk-stories::-webkit-scrollbar {
  display: none;
}

.vk-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  width: 64px;
}

.vk-story__avatar-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--vk-accent-azure), var(--vk-accent-alt));
}

.vk-story__avatar-ring--seen {
  background: var(--vk-separator);
}

.vk-story__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--vk-content-bg);
  overflow: hidden;
}

.vk-story__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-story__name {
  font-size: 11px;
  line-height: 14px;
  color: var(--vk-text-primary);
  text-align: center;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vk-story__add {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--vk-secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vk-story__add-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--vk-accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
}

/* ==========================================================================
   8. COMMENTS
   ========================================================================== */

.vk-comments {
  padding: 0 16px 12px;
}

.vk-comments-separator {
  height: 1px;
  background: var(--vk-separator-secondary);
  margin: 0 16px;
}

.vk-comments-count {
  padding: 8px 0;
  font-size: 13px;
  color: var(--vk-text-secondary);
  cursor: pointer;
}

.vk-comments-count:hover {
  color: var(--vk-text-link);
}

.vk-comment {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.vk-comment__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.vk-comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-comment__body {
  flex: 1;
  min-width: 0;
}

.vk-comment__author {
  font-size: 13px;
  font-weight: 600;
  color: var(--vk-text-link);
  line-height: 16px;
}

.vk-comment__author a {
  color: var(--vk-text-link);
  text-decoration: none;
}

.vk-comment__author a:hover {
  text-decoration: underline;
}

.vk-comment__text {
  font-size: 14px;
  line-height: 18px;
  color: var(--vk-text-primary);
  margin-top: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.vk-comment__meta {
  font-size: 12px;
  color: var(--vk-text-secondary);
  margin-top: 4px;
  display: flex;
  gap: 12px;
}

.vk-comment__meta a {
  color: var(--vk-text-secondary);
  text-decoration: none;
}

.vk-comment__meta a:hover {
  text-decoration: underline;
}

.vk-comment__reply {
  display: flex;
  gap: 12px;
  padding: 8px 0 8px 44px;
}

.vk-comment-form {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  align-items: flex-start;
}

.vk-comment-form__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.vk-comment-form__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-comment-form__input {
  flex: 1;
  min-height: 36px;
  background: var(--vk-field-bg);
  border: 1px solid var(--vk-separator);
  border-radius: var(--vk-radius-m);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--vk-text-primary);
  resize: vertical;
  outline: none;
  font-family: var(--vk-font-base);
  transition: border-color var(--vk-duration-s) var(--vk-easing);
}

.vk-comment-form__input::placeholder {
  color: var(--vk-text-tertiary);
}

.vk-comment-form__input:focus {
  border-color: var(--vk-accent);
}

.vk-comment-form__submit {
  height: 36px;
  padding: 0 16px;
  background: var(--vk-btn-primary-bg);
  color: #FFFFFF;
  border: none;
  border-radius: var(--vk-radius-m);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--vk-duration-s) var(--vk-easing);
  white-space: nowrap;
  flex-shrink: 0;
}

.vk-comment-form__submit:hover {
  background: var(--vk-accent-hover);
}

/* ==========================================================================
   9. SEARCH DROPDOWN
   ========================================================================== */

.vk-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--vk-content-bg);
  border-radius: 0 0 var(--vk-radius-m) var(--vk-radius-m);
  box-shadow: var(--vk-elevation-2);
  z-index: 200;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.vk-search-dropdown.active {
  display: block;
}

.vk-search-dropdown__header {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vk-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.vk-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background var(--vk-duration-s) var(--vk-easing);
  text-decoration: none;
}

.vk-search-item:hover {
  background: var(--vk-secondary-bg);
}

.vk-search-item__thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.vk-search-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-search-item__info {
  flex: 1;
  min-width: 0;
}

.vk-search-item__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--vk-text-primary);
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vk-search-item__type {
  font-size: 12px;
  color: var(--vk-text-secondary);
  line-height: 16px;
}

/* ==========================================================================
   10. NOTIFICATION BELL & BADGES
   ========================================================================== */

.vk-notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: var(--vk-red);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid var(--vk-header-bg);
}

.vk-notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--vk-red);
  border-radius: 50%;
  border: 2px solid var(--vk-header-bg);
}

/* ==========================================================================
   11. BUTTONS
   ========================================================================== */

.vk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--vk-radius-m);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--vk-duration-s) var(--vk-easing);
  border: none;
  text-decoration: none;
  font-family: var(--vk-font-base);
  line-height: 1;
  gap: 6px;
  white-space: nowrap;
}

.vk-btn--primary {
  background: var(--vk-btn-primary-bg);
  color: #FFFFFF;
  padding: 0 16px;
  height: 36px;
}

.vk-btn--primary:hover {
  background: var(--vk-accent-hover);
  color: #FFFFFF;
}

.vk-btn--primary:active {
  background: #3D72AD;
}

.vk-btn--secondary {
  background: var(--vk-btn-secondary-bg);
  color: var(--vk-btn-text);
  padding: 0 16px;
  height: 36px;
}

.vk-btn--secondary:hover {
  background: rgba(68, 123, 186, 0.16);
  color: var(--vk-btn-text-hover);
}

.vk-btn--tertiary {
  background: transparent;
  color: var(--vk-btn-text);
  padding: 0 16px;
  height: 36px;
}

.vk-btn--tertiary:hover {
  background: var(--vk-btn-tertiary-hover);
}

.vk-btn--danger {
  background: var(--vk-red);
  color: #FFFFFF;
  padding: 0 16px;
  height: 36px;
}

.vk-btn--danger:hover {
  background: #E62E3E;
}

.vk-btn--small {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.vk-btn--large {
  height: 44px;
  padding: 0 20px;
}

.vk-btn--full {
  width: 100%;
}

.vk-btn--rounded {
  border-radius: var(--vk-radius-rounded);
}

.vk-btn:disabled,
.vk-btn--disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.vk-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   12. AVATARS
   ========================================================================== */

.vk-avatar {
  border-radius: 50%;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

.vk-avatar--xs {
  width: 24px;
  height: 24px;
}

.vk-avatar--s {
  width: 32px;
  height: 32px;
}

.vk-avatar--m {
  width: 48px;
  height: 48px;
}

.vk-avatar--l {
  width: 96px;
  height: 96px;
}

.vk-avatar--xl {
  width: 128px;
  height: 128px;
}

.vk-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-avatar--online {
  position: relative;
}

.vk-avatar--online::after {
  content: "";
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--vk-green);
  border-radius: 50%;
  border: 2px solid var(--vk-content-bg);
}

.vk-avatar-stack {
  display: flex;
}

.vk-avatar-stack .vk-avatar {
  margin-left: -8px;
  border: 2px solid var(--vk-content-bg);
}

.vk-avatar-stack .vk-avatar:first-child {
  margin-left: 0;
}

/* ==========================================================================
   13. MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .vk-layout {
    flex-direction: column;
    padding: 0 8px;
    padding-top: calc(var(--vk-header-height) + 8px);
    padding-bottom: 16px;
  }

  .vk-sidebar {
    display: none;
  }

  .vk-right-sidebar {
    display: none;
  }

  .vk-content {
    max-width: 100%;
  }

  .vk-header__search {
    max-width: none;
    flex: 1;
  }

  .vk-header__inner {
    padding: 0 8px;
    gap: 8px;
  }

  .vk-post-card {
    border-radius: var(--vk-radius-m);
  }

  .vk-stories {
    border-radius: var(--vk-radius-m);
  }

  .vk-composer {
    border-radius: var(--vk-radius-m);
  }

  .vk-sidebar-profile {
    border-radius: var(--vk-radius-m);
  }
}

@media (max-width: 480px) {
  .vk-header__nav-item span.label {
    display: none;
  }

  .vk-post-header {
    padding: 8px 12px 0;
  }

  .vk-post-text {
    padding: 6px 12px 0;
  }

  .vk-post-actions {
    padding: 0 4px;
  }

  .vk-post-action {
    padding: 0 8px;
    font-size: 12px;
  }

  .vk-comments {
    padding: 0 12px 8px;
  }

  .vk-comments-separator {
    margin: 0 12px;
  }

  .vk-post-link-preview {
    margin: 8px 12px 0;
  }

  .vk-header__logo-circle {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* ==========================================================================
   14. BUDDYPRESS OVERRIDES
   ========================================================================== */

#buddypress {
  width: 100%;
}

#buddypress .activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#buddypress .activity-list > li {
  margin-bottom: 16px;
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  overflow: hidden;
  padding: 0;
  border: none;
}

#buddypress .activity-avatar {
  float: none;
  margin: 0;
  width: 48px;
  height: 48px;
}

#buddypress .activity-avatar a {
  display: block;
}

#buddypress .activity-avatar a img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

#buddypress .activity-content {
  overflow: visible;
  margin-left: 0;
  padding: 0;
  border: none;
}

#buddypress .activity-header {
  font-size: 14px;
  line-height: 18px;
  padding: 12px 16px 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

#buddypress .activity-header a {
  color: var(--vk-text-link);
  font-weight: 600;
  text-decoration: none;
}

#buddypress .activity-header a:hover {
  text-decoration: underline;
}

#buddypress .activity-header .time-since {
  color: var(--vk-text-secondary);
  font-size: 13px;
}

#buddypress .activity-inner {
  padding: 8px 16px;
  font-size: 15px;
  line-height: 20px;
}

#buddypress .activity-meta {
  display: flex;
  align-items: center;
  padding: 0 8px;
  height: 44px;
  margin: 0;
  border: none;
}

#buddypress .activity-meta a {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--vk-radius-m);
  color: var(--vk-text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

#buddypress .activity-meta a:hover {
  background: var(--vk-btn-tertiary-hover);
}

#buddypress .activity-meta a.fav,
#buddypress .activity-meta a.unfav {
  color: var(--vk-like-active);
}

#buddypress .activity-meta a.fav:hover,
#buddypress .activity-meta a.unfav:hover {
  background: var(--vk-like-active-bg);
}

#buddypress #whats-new-form {
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  padding: 12px 16px;
  margin-bottom: 16px;
  border: none;
}

#buddypress #whats-new-form #whats-new {
  width: 100%;
  min-height: 60px;
  background: var(--vk-field-bg);
  border: 1px solid var(--vk-separator);
  border-radius: var(--vk-radius-m);
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--vk-font-base);
  color: var(--vk-text-primary);
  resize: vertical;
  outline: none;
  transition: border-color var(--vk-duration-s) var(--vk-easing);
}

#buddypress #whats-new-form #whats-new:focus {
  border-color: var(--vk-accent);
}

#buddypress #whats-new-form #whats-new-submit input[type="submit"] {
  background: var(--vk-btn-primary-bg);
  color: #FFFFFF;
  border: none;
  border-radius: var(--vk-radius-m);
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

#buddypress #whats-new-form #whats-new-submit input[type="submit"]:hover {
  background: var(--vk-accent-hover);
}

#buddypress .item-list-tabs,
#buddypress #subnav {
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  margin-bottom: 16px;
  overflow: hidden;
}

#buddypress .item-list-tabs ul,
#buddypress #subnav ul {
  list-style: none;
  padding: 4px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

#buddypress .item-list-tabs ul li,
#buddypress #subnav ul li {
  margin: 0;
  padding: 0;
}

#buddypress .item-list-tabs ul li a,
#buddypress #subnav ul li a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--vk-radius-m);
  color: var(--vk-text-primary);
  text-decoration: none;
  font-size: 14px;
  line-height: 18px;
  gap: 8px;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

#buddypress .item-list-tabs ul li a:hover,
#buddypress #subnav ul li a:hover {
  background: var(--vk-secondary-bg);
}

#buddypress .item-list-tabs ul li.current a,
#buddypress .item-list-tabs ul li.selected a,
#buddypress #subnav ul li.current a,
#buddypress #subnav ul li.selected a {
  background: rgba(68, 123, 186, 0.12);
  color: var(--vk-accent);
  font-weight: 500;
}

#buddypress .item-list-tabs ul li a span,
#buddypress #subnav ul li a span {
  font-size: 12px;
  background: var(--vk-secondary-bg);
  color: var(--vk-text-secondary);
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

#buddypress button,
#buddypress a.button,
#buddypress input[type="submit"],
#buddypress input[type="button"],
#buddypress input[type="reset"],
#buddypress ul.button-nav li a {
  background: var(--vk-btn-secondary-bg);
  color: var(--vk-btn-text);
  border: none;
  border-radius: var(--vk-radius-m);
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--vk-duration-s) var(--vk-easing);
  text-decoration: none;
  line-height: 1;
}

#buddypress button:hover,
#buddypress a.button:hover,
#buddypress input[type="submit"]:hover,
#buddypress input[type="button"]:hover,
#buddypress input[type="reset"]:hover,
#buddypress ul.button-nav li a:hover {
  background: rgba(68, 123, 186, 0.16);
  color: var(--vk-btn-text-hover);
}

#buddypress button.accept,
#buddypress input[type="submit"].accept {
  background: var(--vk-btn-primary-bg);
  color: #FFFFFF;
}

#buddypress button.accept:hover,
#buddypress input[type="submit"].accept:hover {
  background: var(--vk-accent-hover);
}

#buddypress #members-list,
#buddypress #groups-list,
#buddypress #friend-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#buddypress #members-list > li,
#buddypress #groups-list > li,
#buddypress #friend-list > li {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--vk-separator-secondary);
}

#buddypress #members-list > li:last-child,
#buddypress #groups-list > li:last-child,
#buddypress #friend-list > li:last-child {
  border-bottom: none;
}

#buddypress .acomment-meta {
  font-size: 13px;
  color: var(--vk-text-secondary);
}

#buddypress .acomment-content {
  font-size: 14px;
  line-height: 18px;
  margin-top: 4px;
}

#buddypress div.pagination {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 16px 0;
}

#buddypress div.pagination .pag-count {
  color: var(--vk-text-secondary);
  font-size: 13px;
}

#buddypress div.pagination .pagination-links a,
#buddypress div.pagination .pagination-links span {
  background: var(--vk-content-bg);
  color: var(--vk-text-primary);
  border-radius: var(--vk-radius-m);
  padding: 6px 12px;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

#buddypress div.pagination .pagination-links a:hover {
  background: var(--vk-secondary-bg);
}

#buddypress div.pagination .pagination-links span.current {
  background: var(--vk-btn-primary-bg);
  color: #FFFFFF;
}

/* ==========================================================================
   15. WORDPRESS SPECIFICS
   ========================================================================== */

.wp-block-image,
.wp-block-gallery {
  margin: 0;
  max-width: 100%;
}

.alignfull,
.alignwide {
  margin-left: 0;
  margin-right: 0;
}

.alignfull {
  width: 100%;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 16px;
  margin-bottom: 8px;
}

.alignright {
  float: right;
  margin-left: 16px;
  margin-bottom: 8px;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--vk-text-secondary);
  margin-top: 4px;
  text-align: center;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 13px;
  color: var(--vk-text-secondary);
  margin-top: 4px;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px;
  margin: 8px 0;
}

.gallery-item {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  font-size: 12px;
  color: var(--vk-text-secondary);
  padding: 4px;
  text-align: center;
}

.sticky .vk-post-card {
  border-left: 3px solid var(--vk-accent);
}

.bypostauthor .vk-comment__author::after {
  content: "author";
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--vk-accent);
  background: rgba(68, 123, 186, 0.12);
  padding: 1px 6px;
  border-radius: var(--vk-radius-s);
  text-transform: uppercase;
}

.vk-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
}

.vk-pagination a,
.vk-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--vk-radius-m);
  font-size: 14px;
  color: var(--vk-text-primary);
  text-decoration: none;
  background: var(--vk-content-bg);
  box-shadow: var(--vk-elevation-1);
  transition: all var(--vk-duration-s) var(--vk-easing);
}

.vk-pagination a:hover {
  background: var(--vk-secondary-bg);
}

.vk-pagination .current,
.vk-pagination span.current {
  background: var(--vk-btn-primary-bg);
  color: #FFFFFF;
  box-shadow: none;
}

.vk-pagination .dots {
  background: transparent;
  box-shadow: none;
  color: var(--vk-text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--vk-radius-m);
  font-size: 14px;
  color: var(--vk-text-primary);
  text-decoration: none;
  background: var(--vk-content-bg);
  box-shadow: var(--vk-elevation-1);
  transition: all var(--vk-duration-s) var(--vk-easing);
}

.nav-links .page-numbers:hover {
  background: var(--vk-secondary-bg);
}

.nav-links .page-numbers.current {
  background: var(--vk-btn-primary-bg);
  color: #FFFFFF;
  box-shadow: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.screen-reader-text:focus {
  background-color: var(--vk-content-bg);
  border-radius: var(--vk-radius-s);
  box-shadow: var(--vk-elevation-2);
  clip: auto;
  -webkit-clip-path: none;
  clip-path: none;
  color: var(--vk-accent);
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 12px 16px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 10000;
}

body.admin-bar .vk-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .vk-header {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .vk-header {
    top: 0;
  }
}

body.admin-bar .vk-layout {
  padding-top: calc(var(--vk-header-height) + 32px + 16px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .vk-layout {
    padding-top: calc(var(--vk-header-height) + 46px + 8px);
  }
}

body.admin-bar .vk-sidebar {
  top: calc(var(--vk-header-height) + 32px + 16px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .vk-sidebar {
    top: calc(var(--vk-header-height) + 46px + 8px);
  }
}

/* ==========================================================================
   16. SCROLLBAR STYLING
   ========================================================================== */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--vk-icon-tertiary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--vk-icon-secondary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--vk-icon-tertiary) transparent;
}

/* ==========================================================================
   17. SINGLE POST PAGE
   ========================================================================== */

.vk-single-content {
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  padding: 20px;
  margin-bottom: 16px;
  overflow: hidden;
}

.vk-single-content h1 {
  font-family: var(--vk-font-accent);
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  color: var(--vk-text-primary);
  margin-bottom: 16px;
}

.vk-single-content h2 {
  font-family: var(--vk-font-accent);
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  color: var(--vk-text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

.vk-single-content h3 {
  font-family: var(--vk-font-accent);
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  color: var(--vk-text-primary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.vk-single-content h4 {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--vk-text-primary);
  margin-top: 16px;
  margin-bottom: 8px;
}

.vk-single-content h5,
.vk-single-content h6 {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: var(--vk-text-subhead);
  margin-top: 16px;
  margin-bottom: 8px;
}

.vk-single-content p {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 22px;
}

.vk-single-content p:last-child {
  margin-bottom: 0;
}

.vk-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--vk-radius-m);
  margin: 8px 0;
}

.vk-single-content a {
  color: var(--vk-text-link);
}

.vk-single-content a:hover {
  text-decoration: underline;
}

.vk-single-content blockquote {
  border-left: 3px solid var(--vk-accent);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--vk-text-subhead);
  font-size: 15px;
  line-height: 22px;
}

.vk-single-content blockquote p {
  margin-bottom: 8px;
}

.vk-single-content blockquote p:last-child {
  margin-bottom: 0;
}

.vk-single-content ul,
.vk-single-content ol {
  margin: 8px 0 12px 20px;
  padding: 0;
}

.vk-single-content ul {
  list-style-type: disc;
}

.vk-single-content ol {
  list-style-type: decimal;
}

.vk-single-content li {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 22px;
}

.vk-single-content pre {
  background: var(--vk-secondary-bg);
  border-radius: var(--vk-radius-m);
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 13px;
  line-height: 18px;
}

.vk-single-content code {
  background: var(--vk-secondary-bg);
  padding: 2px 6px;
  border-radius: var(--vk-radius-s);
  font-size: 13px;
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
}

.vk-single-content pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.vk-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.vk-single-content th,
.vk-single-content td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--vk-separator-secondary);
  font-size: 14px;
  line-height: 18px;
}

.vk-single-content th {
  font-weight: 600;
  color: var(--vk-text-subhead);
  background: var(--vk-secondary-bg);
}

.vk-single-content hr {
  border: none;
  height: 1px;
  background: var(--vk-separator-secondary);
  margin: 20px 0;
}

.vk-single-content .wp-block-embed {
  margin: 16px 0;
}

.vk-single-content .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--vk-radius-m);
}

.vk-single-content .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vk-single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vk-separator-secondary);
}

.vk-single-meta__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.vk-single-meta__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vk-single-meta__info {
  flex: 1;
}

.vk-single-meta__author {
  font-size: 14px;
  font-weight: 600;
  color: var(--vk-text-link);
  line-height: 18px;
}

.vk-single-meta__author a {
  color: var(--vk-text-link);
  text-decoration: none;
}

.vk-single-meta__author a:hover {
  text-decoration: underline;
}

.vk-single-meta__date {
  font-size: 13px;
  color: var(--vk-text-secondary);
  line-height: 16px;
  margin-top: 2px;
}

.vk-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--vk-separator-secondary);
}

.vk-single-tags a {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  background: var(--vk-secondary-bg);
  border-radius: var(--vk-radius-s);
  color: var(--vk-text-link);
  font-size: 13px;
  text-decoration: none;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

.vk-single-tags a:hover {
  background: var(--vk-btn-secondary-bg);
}

.vk-post-navigation {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.vk-post-navigation a {
  flex: 1;
  display: block;
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  padding: 16px;
  text-decoration: none;
  transition: box-shadow var(--vk-duration-m) var(--vk-easing);
}

.vk-post-navigation a:hover {
  box-shadow: var(--vk-elevation-2);
}

.vk-post-navigation__label {
  font-size: 12px;
  color: var(--vk-text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.vk-post-navigation__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--vk-text-link);
  line-height: 18px;
}

/* ==========================================================================
   18. FORMS (GENERAL)
   ========================================================================== */

.vk-form-group {
  margin-bottom: 16px;
}

.vk-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--vk-text-primary);
  margin-bottom: 6px;
  line-height: 18px;
}

.vk-form-input,
.vk-form-textarea,
.vk-form-select {
  width: 100%;
  height: 40px;
  background: var(--vk-field-bg);
  border: 1px solid var(--vk-separator);
  border-radius: var(--vk-radius-m);
  padding: 0 12px;
  font-size: 14px;
  color: var(--vk-text-primary);
  outline: none;
  font-family: var(--vk-font-base);
  transition: border-color var(--vk-duration-s) var(--vk-easing);
}

.vk-form-textarea {
  height: auto;
  min-height: 80px;
  padding: 10px 12px;
  resize: vertical;
}

.vk-form-input:focus,
.vk-form-textarea:focus,
.vk-form-select:focus {
  border-color: var(--vk-accent);
}

.vk-form-input::placeholder,
.vk-form-textarea::placeholder {
  color: var(--vk-text-tertiary);
}

.vk-form-hint {
  font-size: 12px;
  color: var(--vk-text-secondary);
  margin-top: 4px;
}

.vk-form-error {
  font-size: 12px;
  color: var(--vk-red);
  margin-top: 4px;
}

.vk-form-input--error {
  border-color: var(--vk-red);
}

/* ==========================================================================
   19. DROPDOWN / POPUP MENUS
   ========================================================================== */

.vk-dropdown {
  position: absolute;
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-m);
  box-shadow: var(--vk-elevation-2);
  z-index: 300;
  min-width: 180px;
  padding: 4px 0;
  display: none;
}

.vk-dropdown.active {
  display: block;
}

.vk-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--vk-text-primary);
  cursor: pointer;
  transition: background var(--vk-duration-s) var(--vk-easing);
  text-decoration: none;
  white-space: nowrap;
}

.vk-dropdown__item:hover {
  background: var(--vk-secondary-bg);
}

.vk-dropdown__item--danger {
  color: var(--vk-red);
}

.vk-dropdown__item svg {
  width: 20px;
  height: 20px;
  color: var(--vk-icon-secondary);
  flex-shrink: 0;
}

.vk-dropdown__item--danger svg {
  color: var(--vk-red);
}

.vk-dropdown__separator {
  height: 1px;
  background: var(--vk-separator-secondary);
  margin: 4px 0;
}

/* ==========================================================================
   20. TOOLTIP
   ========================================================================== */

.vk-tooltip {
  position: absolute;
  background: #2C2D2E;
  color: #FFFFFF;
  font-size: 12px;
  line-height: 16px;
  padding: 6px 10px;
  border-radius: var(--vk-radius-s);
  white-space: nowrap;
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  transition: opacity var(--vk-duration-s) var(--vk-easing);
}

.vk-tooltip.active {
  opacity: 1;
}

.vk-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #2C2D2E;
}

/* ==========================================================================
   21. SNACKBAR / TOAST
   ========================================================================== */

.vk-snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2C2D2E;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  padding: 12px 20px;
  border-radius: var(--vk-radius-m);
  box-shadow: var(--vk-elevation-2);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--vk-duration-m) var(--vk-easing),
              transform var(--vk-duration-m) var(--vk-easing);
}

.vk-snackbar.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vk-snackbar__action {
  color: var(--vk-accent-alt);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

/* ==========================================================================
   22. PROFILE CARD / BANNER
   ========================================================================== */

.vk-profile-card {
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  overflow: hidden;
  margin-bottom: 16px;
}

.vk-profile-card__cover {
  height: 180px;
  background: linear-gradient(135deg, var(--vk-accent-azure), var(--vk-accent-alt));
  overflow: hidden;
}

.vk-profile-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vk-profile-card__info {
  padding: 0 20px 20px;
  position: relative;
}

.vk-profile-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--vk-content-bg);
  overflow: hidden;
  margin-top: -48px;
  position: relative;
  z-index: 1;
}

.vk-profile-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vk-profile-card__name {
  font-family: var(--vk-font-accent);
  font-size: 21px;
  font-weight: 700;
  color: var(--vk-text-primary);
  margin-top: 8px;
  line-height: 26px;
}

.vk-profile-card__status {
  font-size: 14px;
  color: var(--vk-text-secondary);
  margin-top: 4px;
  line-height: 18px;
}

.vk-profile-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.vk-profile-card__stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--vk-separator-secondary);
}

.vk-profile-card__stat {
  text-align: center;
}

.vk-profile-card__stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--vk-text-primary);
  line-height: 20px;
}

.vk-profile-card__stat-label {
  font-size: 12px;
  color: var(--vk-text-secondary);
  line-height: 16px;
  margin-top: 2px;
}

/* ==========================================================================
   23. WIDGET / INFO BLOCK
   ========================================================================== */

.vk-widget {
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  margin-bottom: 16px;
  overflow: hidden;
}

.vk-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--vk-separator-secondary);
}

.vk-widget__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--vk-text-primary);
  line-height: 18px;
}

.vk-widget__link {
  font-size: 13px;
  color: var(--vk-text-link);
}

.vk-widget__link:hover {
  text-decoration: underline;
}

.vk-widget__body {
  padding: 12px 16px;
}

.vk-widget__footer {
  padding: 8px 16px;
  border-top: 1px solid var(--vk-separator-secondary);
  text-align: center;
}

.vk-widget__footer a {
  font-size: 13px;
  color: var(--vk-text-link);
}

.vk-widget__footer a:hover {
  text-decoration: underline;
}

/* Friends grid widget */
.vk-friends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vk-friends-grid__item {
  text-align: center;
  text-decoration: none;
}

.vk-friends-grid__item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 4px;
}

.vk-friends-grid__item span {
  font-size: 11px;
  color: var(--vk-text-primary);
  line-height: 14px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   24. TABS (GENERAL)
   ========================================================================== */

.vk-tabs {
  display: flex;
  border-bottom: 1px solid var(--vk-separator-secondary);
  overflow-x: auto;
  scrollbar-width: none;
}

.vk-tabs::-webkit-scrollbar {
  display: none;
}

.vk-tabs__item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--vk-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--vk-duration-s) var(--vk-easing),
              border-color var(--vk-duration-s) var(--vk-easing);
  text-decoration: none;
}

.vk-tabs__item:hover {
  color: var(--vk-text-primary);
}

.vk-tabs__item.active {
  color: var(--vk-accent);
  border-bottom-color: var(--vk-accent);
  font-weight: 500;
}

.vk-tabs__item span {
  margin-left: 6px;
  font-size: 12px;
  color: var(--vk-text-tertiary);
}

/* ==========================================================================
   25. LOADING / SPINNER
   ========================================================================== */

.vk-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vk-spinner__circle {
  width: 24px;
  height: 24px;
  border: 2px solid var(--vk-separator);
  border-top-color: var(--vk-accent);
  border-radius: 50%;
  animation: vk-spin 0.6s linear infinite;
}

.vk-spinner--large .vk-spinner__circle {
  width: 36px;
  height: 36px;
  border-width: 3px;
}

@keyframes vk-spin {
  to {
    transform: rotate(360deg);
  }
}

.vk-skeleton {
  background: linear-gradient(90deg, var(--vk-secondary-bg) 25%, var(--vk-field-bg) 50%, var(--vk-secondary-bg) 75%);
  background-size: 200% 100%;
  animation: vk-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--vk-radius-s);
}

@keyframes vk-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.vk-skeleton--text {
  height: 14px;
  margin-bottom: 8px;
}

.vk-skeleton--avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.vk-skeleton--image {
  width: 100%;
  height: 200px;
}

/* ==========================================================================
   26. FOOTER
   ========================================================================== */

.vk-footer {
  margin-top: auto;
  padding: 20px 16px;
  text-align: center;
}

.vk-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.vk-footer__links a {
  font-size: 13px;
  color: var(--vk-text-secondary);
  text-decoration: none;
}

.vk-footer__links a:hover {
  text-decoration: underline;
}

.vk-footer__copy {
  font-size: 12px;
  color: var(--vk-text-tertiary);
}

/* ==========================================================================
   27. WORDPRESS WIDGET AREAS
   ========================================================================== */

.widget {
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  margin-bottom: 16px;
  overflow: hidden;
}

.widget-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--vk-text-primary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--vk-separator-secondary);
  margin: 0;
  line-height: 18px;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  border-bottom: 1px solid var(--vk-separator-secondary);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--vk-text-primary);
  text-decoration: none;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

.widget ul li a:hover {
  background: var(--vk-secondary-bg);
}

.widget select {
  width: calc(100% - 32px);
  margin: 12px 16px;
  height: 36px;
  background: var(--vk-field-bg);
  border: 1px solid var(--vk-separator);
  border-radius: var(--vk-radius-m);
  padding: 0 12px;
  font-size: 14px;
  color: var(--vk-text-primary);
  outline: none;
}

.widget_search .search-form {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.widget_search .search-field {
  flex: 1;
  height: 36px;
  background: var(--vk-field-bg);
  border: 1px solid var(--vk-separator);
  border-radius: var(--vk-radius-m);
  padding: 0 12px;
  font-size: 14px;
  color: var(--vk-text-primary);
  outline: none;
}

.widget_search .search-field:focus {
  border-color: var(--vk-accent);
}

.widget_search .search-submit {
  height: 36px;
  padding: 0 16px;
  background: var(--vk-btn-primary-bg);
  color: #FFFFFF;
  border: none;
  border-radius: var(--vk-radius-m);
  font-size: 14px;
  cursor: pointer;
}

.widget_search .search-submit:hover {
  background: var(--vk-accent-hover);
}

.tagcloud a {
  display: inline-block;
  padding: 4px 10px;
  margin: 2px;
  background: var(--vk-secondary-bg);
  border-radius: var(--vk-radius-s);
  font-size: 13px !important;
  color: var(--vk-text-link);
  text-decoration: none;
  transition: background var(--vk-duration-s) var(--vk-easing);
}

.tagcloud a:hover {
  background: var(--vk-btn-secondary-bg);
}

.widget_calendar table {
  width: 100%;
  text-align: center;
}

.widget_calendar th,
.widget_calendar td {
  padding: 4px;
  font-size: 13px;
}

.widget_calendar th {
  color: var(--vk-text-secondary);
  font-weight: 500;
}

.widget_calendar td a {
  color: var(--vk-accent);
  font-weight: 600;
}

/* ==========================================================================
   28. 404 / ERROR PAGE
   ========================================================================== */

.vk-error-page {
  background: var(--vk-content-bg);
  border-radius: var(--vk-radius-paper);
  box-shadow: var(--vk-elevation-1);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 16px;
}

.vk-error-page__code {
  font-family: var(--vk-font-accent);
  font-size: 72px;
  font-weight: 700;
  color: var(--vk-text-tertiary);
  line-height: 1;
  margin-bottom: 16px;
}

.vk-error-page__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--vk-text-primary);
  margin-bottom: 8px;
}

.vk-error-page__text {
  font-size: 15px;
  color: var(--vk-text-secondary);
  margin-bottom: 24px;
}

/* ==========================================================================
   29. PRINT STYLES
   ========================================================================== */

@media print {
  .vk-header,
  .vk-sidebar,
  .vk-right-sidebar,
  .vk-composer,
  .vk-stories,
  .vk-post-actions,
  .vk-comment-form,
  .vk-footer,
  .vk-post-menu {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 12pt;
  }

  .vk-layout {
    padding-top: 0;
    max-width: 100%;
  }

  .vk-content {
    max-width: 100%;
  }

  .vk-post-card,
  .vk-single-content,
  .vk-widget {
    box-shadow: none;
    border: 1px solid #DDD;
    break-inside: avoid;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}

/* ==========================================================================
   30. UTILITY CLASSES
   ========================================================================== */

.vk-clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.vk-hidden {
  display: none !important;
}

.vk-visually-hidden {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.vk-text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vk-text-center {
  text-align: center;
}

.vk-text-secondary {
  color: var(--vk-text-secondary);
}

.vk-text-small {
  font-size: 13px;
  line-height: 16px;
}

.vk-mt-0 { margin-top: 0; }
.vk-mt-8 { margin-top: 8px; }
.vk-mt-16 { margin-top: 16px; }
.vk-mb-0 { margin-bottom: 0; }
.vk-mb-8 { margin-bottom: 8px; }
.vk-mb-16 { margin-bottom: 16px; }

.vk-flex {
  display: flex;
}

.vk-flex--center {
  align-items: center;
  justify-content: center;
}

.vk-flex--between {
  align-items: center;
  justify-content: space-between;
}

.vk-gap-4 { gap: 4px; }
.vk-gap-8 { gap: 8px; }
.vk-gap-12 { gap: 12px; }
.vk-gap-16 { gap: 16px; }

/* ============================================= */
/* WordPress Comment Form - VK Style Overrides   */
/* ============================================= */
#respond {
  padding: 0;
}
#respond .comment-reply-title {
  display: none;
}
#commentform {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#commentform label {
  font-size: 13px;
  color: var(--vk-text-secondary);
  font-weight: 500;
}
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  background: var(--vk-field-bg);
  border: 1px solid var(--vk-separator);
  border-radius: var(--vk-radius-m);
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--vk-font-base);
  color: var(--vk-text-primary);
  outline: none;
  transition: border-color var(--vk-duration-s);
  box-sizing: border-box;
}
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
  border-color: var(--vk-accent);
}
#commentform textarea {
  min-height: 36px;
  resize: vertical;
}
#commentform .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--vk-text-secondary);
}
#commentform .comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--vk-accent);
}
#commentform .form-submit {
  margin: 4px 0 0;
}
#commentform .form-submit input[type="submit"],
#commentform .vk-comment-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: var(--vk-btn-primary-bg);
  color: #fff;
  border: none;
  border-radius: var(--vk-radius-m);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--vk-font-base);
  cursor: pointer;
  transition: background var(--vk-duration-s);
}
#commentform .form-submit input[type="submit"]:hover,
#commentform .vk-comment-form__submit:hover {
  background: var(--vk-accent-hover);
}
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Hide "logged in as" and notes */
.logged-in-as,
.comment-notes {
  display: none;
}
/* VK-style search form inline */
.vk-search-form-inline {
  display: flex;
  align-items: center;
}
/* Page title styling */
.vk-page-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  color: var(--vk-text-primary);
  margin: 0;
}
/* Post tags */
.vk-post-tags {
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vk-tag {
  display: inline-block;
  font-size: 14px;
  color: var(--vk-text-link);
  text-decoration: none;
}
.vk-tag:hover {
  text-decoration: underline;
}
/* Show more link */
.vk-show-more {
  display: inline-block;
  font-size: 14px;
  color: var(--vk-accent);
  text-decoration: none;
  margin-top: 4px;
}
.vk-show-more:hover {
  text-decoration: underline;
}

/* ============================================= */
/* Admin Bar Offset Fix                          */
/* ============================================= */
body.admin-bar .vk-header {
  top: 32px;
}
body.admin-bar .vk-layout {
  padding-top: calc(var(--vk-header-height) + 32px + 16px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .vk-header {
    top: 46px;
  }
  body.admin-bar .vk-layout {
    padding-top: calc(var(--vk-header-height) + 46px + 8px);
  }
}

/* ===============================================
   VK VISUAL MATCH — PRECISION FIXES (2026-03-29)
   =============================================== */

/* 1. Hide WordPress admin bar on frontend */
#wpadminbar {
  display: none !important;
}
html {
  margin-top: 0 !important;
}
body.admin-bar .vk-header {
  top: 0;
}

/* 2. Search input — exact VK styling */
#vk-search-input,
.vk-search-wrapper input[type="text"] {
  width: 100%;
  height: 32px;
  border: none !important;
  border-radius: 8px;
  background: #EDEEF0 !important;
  padding: 0 12px 0 36px;
  font-size: 14px;
  color: #000;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  font-family: var(--vk-font-base);
  transition: background 0.1s ease;
}
#vk-search-input:focus,
.vk-search-wrapper input[type="text"]:focus {
  background: #F0F2F5 !important;
}
#vk-search-input::placeholder,
.vk-search-wrapper input[type="text"]::placeholder {
  color: #99A2AD;
}

/* 3. Site name next to logo */
.vk-header__site-name {
  font-size: 20px;
  font-weight: 700;
  color: #2C2D2E;
  margin-left: 10px;
  letter-spacing: -0.3px;
  font-family: var(--vk-font-accent);
  white-space: nowrap;
}

/* 4. Hide home/people icons from header (they are in sidebar) */
a.vk-header__nav-item[title="Новости"],
a.vk-header__nav-item[title="Люди"] {
  display: none;
}

/* 5. Sidebar nav — VK-compact style */
.vk-sidebar-nav__item a {
  font-size: 13px;
  line-height: 15px;
  padding: 7px 10px;
  color: #2A5885;
  font-weight: 400;
  border-radius: 8px;
  gap: 10px;
}
.vk-sidebar-nav__item a:visited,
.vk-sidebar-nav__item a:link {
  color: #2A5885;
}
.vk-sidebar-nav__item a:hover {
  background: rgba(0, 16, 61, 0.04);
  color: #2A5885;
}

/* 6. Sidebar icons — gray like VK, not blue */
.vk-sidebar-nav__icon,
.vk-sidebar-nav__icon svg {
  color: #818C99;
}

/* 7. Active sidebar item — subtle, no blue bg */
.vk-sidebar-nav__item.active a {
  background: transparent;
  color: #2A5885;
  font-weight: 500;
}
.vk-sidebar-nav__item.active .vk-sidebar-nav__icon,
.vk-sidebar-nav__item.active .vk-sidebar-nav__icon svg {
  color: #447BBA;
}

/* 8. Header nav icon color — muted gray like VK */
.vk-header__nav-item {
  color: #818C99;
}
.vk-header__nav-item svg {
  color: #818C99;
}
.vk-header__nav-item:hover {
  color: #6F7985;
}
.vk-header__nav-item:hover svg {
  color: #6F7985;
}
.vk-header__nav-item.active,
.vk-header__nav-item.active svg {
  color: #447BBA;
}

/* 9. Login button — VK rounded style */
.vk-btn--primary.vk-btn--small {
  border-radius: 8px;
  height: 32px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  background: #447BBA;
}

/* 10. Show-more link */
.vk-show-more {
  color: #2A5885;
  font-size: 14px;
}
.vk-show-more:visited {
  color: #2A5885;
}

/* ===== VK Stories — tall rectangular cards ===== */
.vk-stories {
  padding: 0;
  gap: 8px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 12px;
}

.vk-story {
  width: 108px;
  height: auto;
}

.vk-story__avatar-ring {
  width: 108px;
  height: 150px;
  border-radius: 12px;
  padding: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%), var(--vk-accent);
  position: relative;
  overflow: hidden;
}

.vk-story__avatar-ring.vk-story__add-ring {
  background: var(--vk-secondary-bg);
}

.vk-story__avatar {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
  overflow: hidden;
}

.vk-story__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.vk-story__name {
  font-size: 12px;
  line-height: 14px;
  max-width: 108px;
  margin-top: 6px;
  color: var(--vk-text-primary);
}

/* Post menu dots — horizontal */
.vk-post-menu svg {
  width: 24px;
  height: 24px;
}
