/* SOURCE: variables.css */
/**
 * CSS Variables / Design Tokens
 * DLE 2026 Modern Template
 * Mobile-first, Dark theme default
 */

:root {
  /* ========================================
     COLOR PALETTE
     ======================================== */
  
  /* Background colors */
  --color-bg-primary: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-bg-tertiary: #1a1a25;
  --color-bg-elevated: #222230;
  
  /* Surface colors */
  --color-surface: #1e1e2e;
  --color-surface-hover: #252538;
  --color-surface-active: #2d2d42;
  
  /* Border colors */
  --color-border: #2a2a3a;
  --color-border-hover: #3a3a50;
  --color-border-focus: #6366f1;
  
  /* Text colors */
  --color-text-primary: #f1f1f4;
  --color-text-secondary: #a0a0b0;
  --color-text-tertiary: #6b6b7b;
  --color-text-muted: #4a4a5a;
  
  /* Accent colors */
  --color-accent: #6366f1;
  --color-accent-hover: #818cf8;
  --color-accent-active: #4f46e5;
  --color-accent-subtle: rgba(99, 102, 241, 0.1);
  
  /* Semantic colors */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* Rating colors */
  --color-rating-high: #22c55e;
  --color-rating-medium: #f59e0b;
  --color-rating-low: #ef4444;
  
  /* ========================================
     TYPOGRAPHY
     ======================================== */
  
  /* Font families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  /* Font sizes - Major Third scale (1.25) */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  
  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Letter spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  
  /* ========================================
     SPACING
     ======================================== */
  
  /* Space scale - 4px base */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */
  
  /* ========================================
     LAYOUT
     ======================================== */
  
  /* Container */
  --container-max: 1400px;
  --container-padding: var(--space-4);
  
  /* Grid gaps */
  --gap-xs: var(--space-2);
  --gap-sm: var(--space-3);
  --gap-md: var(--space-4);
  --gap-lg: var(--space-6);
  --gap-xl: var(--space-8);
  
  /* ========================================
     BORDERS & SHADOWS
     ======================================== */
  
  /* Border radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  
  /* ========================================
     TRANSITIONS
     ======================================== */
  
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* ========================================
     Z-INDEX SCALE
     ======================================== */
  
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* ========================================
   LIGHT THEME (optional toggle)
   ======================================== */

[data-theme="light"] {
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #f1f3f4;
  --color-bg-elevated: #ffffff;
  
  --color-surface: #ffffff;
  --color-surface-hover: #f8f9fa;
  --color-surface-active: #e8eaed;
  
  --color-border: #dadce0;
  --color-border-hover: #bdc1c6;
  --color-border-focus: #6366f1;
  
  --color-text-primary: #202124;
  --color-text-secondary: #5f6368;
  --color-text-tertiary: #80868b;
  --color-text-muted: #9aa0a6;
  
  --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(60, 64, 67, 0.15), 0 2px 4px -2px rgba(60, 64, 67, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(60, 64, 67, 0.2), 0 4px 6px -4px rgba(60, 64, 67, 0.15);
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-bounce: 0ms;
  }
}


/* SOURCE: reset.css */
/**
 * Modern CSS Reset
 * DLE 2025 Template
 * Based on Josh Comeau's custom reset + modern best practices
 */

/* ========================================
   BASE RESET
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove default margin and padding from common elements */
html,
body,
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

/* ========================================
   HTML & BODY
   ======================================== */

html {
  /* Smooth scrolling */
  scroll-behavior: smooth;
  
  /* Better text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Prevent font size inflation on mobile */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  
  /* Enable percentage-based heights */
  height: 100%;
}

body {
  /* Minimum height for full viewport coverage */
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  
  /* Line height for readability */
  line-height: var(--leading-normal);
  
  /* Font stack */
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  
  /* Colors */
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  
  /* Text rendering */
  text-rendering: optimizeLegibility;
}

/* ========================================
   TYPOGRAPHY RESET
   ======================================== */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: var(--leading-tight);
}

/* Paragraphs */
p {
  overflow-wrap: break-word;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* ========================================
   MEDIA ELEMENTS
   ======================================== */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  /* Prevent layout shift */
  height: auto;
  
  /* Better image rendering */
  image-rendering: -webkit-optimize-contrast;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Remove default button styles */
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ========================================
   SELECTION STYLES
   ======================================== */

::selection {
  background-color: var(--color-accent);
  color: white;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

/* Webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-hover);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-hover) var(--color-bg-secondary);
}

/* ========================================
   FOCUS STYLES
   ======================================== */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   ANIMATION REDUCTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 500ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
  }
}


/* SOURCE: typography.css */
/**
 * Typography Styles
 * DLE 2025 Template
 * Modern, readable, accessible typography
 */

/* ========================================
   HEADING STYLES
   ======================================== */

.heading {
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

.heading--1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
}

.heading--2 {
  font-size: var(--text-3xl);
}

.heading--3 {
  font-size: var(--text-2xl);
}

.heading--4 {
  font-size: var(--text-xl);
}

.heading--5 {
  font-size: var(--text-lg);
}

.heading--6 {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-secondary);
}

/* ========================================
   BODY TEXT
   ======================================== */

.text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.text--large {
  font-size: var(--text-lg);
}

.text--small {
  font-size: var(--text-sm);
}

.text--muted {
  color: var(--color-text-tertiary);
}

/* ========================================
   LINK STYLES
   ======================================== */

.link {
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

.link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.link--subtle {
  color: var(--color-text-secondary);
}

.link--subtle:hover {
  color: var(--color-text-primary);
}

/* ========================================
   UTILITY TEXT
   ======================================== */

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.truncate--2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate--3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   CODE & PRE
   ======================================== */

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.125em 0.375em;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: var(--space-4);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
}

/* ========================================
   BLOCKQUOTE
   ======================================== */

blockquote {
  padding-left: var(--space-6);
  border-left: 3px solid var(--color-accent);
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ========================================
   LISTS
   ======================================== */

.list {
  padding-left: var(--space-6);
}

.list--unordered {
  list-style-type: disc;
}

.list--ordered {
  list-style-type: decimal;
}

.list li + li {
  margin-top: var(--space-2);
}

/* ========================================
   ARTICLE CONTENT (for fullstory)
   ======================================== */

.article-content h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.article-content h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.article-content p {
  margin-bottom: var(--space-4);
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--color-accent-hover);
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.article-content li + li {
  margin-top: var(--space-2);
}


/* SOURCE: layout.css */
/**
 * Layout Styles
 * DLE 2025 Template
 * Grid system, containers, page structure
 */

/* ========================================
   CONTAINER
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1600px;
}

/* ========================================
   PAGE STRUCTURE
   ======================================== */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page__header {
  flex-shrink: 0;
}

.page__main {
  flex: 1;
  padding-top: var(--space-6);
  padding-bottom: var(--space-12);
}

.page__footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* ========================================
   MAIN LAYOUT GRID
   ======================================== */

.layout {
  display: grid;
  gap: var(--gap-lg);
}

/* Mobile: single column */
.layout--with-sidebar {
  grid-template-columns: 1fr;
}

/* Desktop: content + sidebar */
@media (min-width: 1024px) {
  .layout--with-sidebar {
    grid-template-columns: 1fr 320px;
  }
}

@media (min-width: 1280px) {
  .layout--with-sidebar {
    grid-template-columns: 1fr 360px;
  }
}

/* ========================================
   CONTENT GRID (for cards)
   ======================================== */

.content-grid {
  display: grid;
  gap: var(--gap-md);
  align-items: stretch;
}

.content-grid--cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .content-grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .content-grid--cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .content-grid--cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }
}

.sidebar__section {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.sidebar__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

/* ========================================
   SECTION SPACING
   ======================================== */

.section {
  margin-bottom: var(--space-10);
}

.section:last-child {
  margin-bottom: 0;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.section__title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.section__link {
  font-size: var(--text-sm);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.section__link:hover {
  color: var(--color-accent-hover);
}

.section__link svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   FLEX UTILITIES
   ======================================== */

.flex {
  display: flex;
}

.flex--col {
  flex-direction: column;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  justify-content: space-between;
}

.flex--gap-sm {
  gap: var(--gap-sm);
}

.flex--gap-md {
  gap: var(--gap-md);
}

.flex--gap-lg {
  gap: var(--gap-lg);
}

/* ========================================
   SPACING UTILITIES
   ======================================== */

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ========================================
   VISIBILITY UTILITIES
   ======================================== */

@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}

@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}


/* SOURCE: header.css */
/**
 * Header Styles
 * DLE 2025 Template
 * Sticky header with backdrop blur
 */

/* ========================================
   HEADER BASE
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .header__inner {
    height: 72px;
  }
}

/* ========================================
   LOGO
   ======================================== */

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.logo__icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .logo__icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 767px) {
  .logo__icon {
    width: 32px;
    height: 32px;
  }
}

.logo__text {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
}

.section--category-description {
  margin-top: var(--space-8);
}

.section--category-description > h1:first-child {
  display: none;
}

.section--category-description > h1:first-child + br {
  display: none;
}

.section--category-description p {
  margin-bottom: var(--space-6);
  text-indent: 2.2rem;
  line-height: var(--leading-relaxed);
}

.section--category-description p:last-child {
  margin-bottom: 0;
}

.section--category-description ul,
.section--category-description ol {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-8);
  padding: 0;
  list-style: none;
}

.section--category-description li {
  position: relative;
  min-height: 2.75rem;
  padding: 0.9rem 1rem 0.9rem 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
  text-indent: 0;
}

.section--category-description li + li {
  margin-top: 0;
}

.section--category-description li::marker {
  content: '';
}

.section--category-description ul > li::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 1.2rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-secondary);
  box-shadow: 0 0 0 0.35rem rgba(244, 183, 64, 0.12);
}

.section--category-description ol {
  counter-reset: category-list;
}

.section--category-description ol > li {
  counter-increment: category-list;
}

.section--category-description ol > li::before {
  content: counter(category-list);
  position: absolute;
  top: 0.8rem;
  left: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: var(--radius-full);
  background: rgba(109, 74, 255, 0.18);
  color: var(--color-text-primary);
  font-size: 0.82rem;
  font-weight: var(--font-bold);
  box-shadow: inset 0 0 0 1px rgba(109, 74, 255, 0.32);
}

.section--category-description li > ul,
.section--category-description li > ol {
  margin: var(--space-3) 0 0;
}

.section--category-description li > ul > li,
.section--category-description li > ol > li {
  background: rgba(15, 20, 32, 0.45);
}

@media (max-width: 479px) {
  .logo__text {
    display: none;
  }
}

@media (max-width: 767px) {
  .header__inner {
    gap: var(--space-2);
  }
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }
}

.nav__link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

.nav__link--active {
  color: var(--color-text-primary);
  background: var(--color-accent-subtle);
}

body.has-fullstory .nav__link--active {
  background: rgba(124, 58, 237, 0.08);
  color: #d9cdfa;
}

body.has-fullstory .nav__link--active:hover {
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-text-primary);
}

.nav__link--ongoing {
  color: var(--color-text-primary);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.18);
}

.nav__link--ongoing:hover {
  color: var(--color-text-primary);
  background: rgba(124, 58, 237, 0.12);
}

.btn--top {
  color: white;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.btn--top:hover {
  color: white;
  background: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%);
}

/* ========================================
   SEARCH
   ======================================== */

.search {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search form {
  position: relative;
}

@media (max-width: 767px) {
  .search {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-width: none;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .search.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

.search .search__input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 var(--space-4) 0 var(--space-10);
  background: var(--color-bg-tertiary) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-primary) !important;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  color-scheme: dark;
  transition: all var(--transition-fast);
}

.search .search__input::placeholder {
  color: var(--color-text-tertiary);
  opacity: 1;
}

.search .search__input:hover {
  border-color: var(--color-border-hover) !important;
}

.search .search__input:focus {
  border-color: var(--color-accent) !important;
  background: var(--color-surface) !important;
}

.search__icon {
  position: absolute;
  left: calc(var(--space-3) + 4px);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.search .search__input:focus + .search__icon {
  color: var(--color-accent);
}

.search .search__input::-webkit-search-decoration,
.search .search__input::-webkit-search-cancel-button,
.search .search__input::-webkit-search-results-button,
.search .search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search .search__input:-webkit-autofill,
.search .search__input:-webkit-autofill:hover,
.search .search__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--color-bg-tertiary) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* ========================================
   HEADER ACTIONS
   ======================================== */

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 767px) {
  .header__actions {
    gap: var(--space-1);
    flex-shrink: 0;
  }
}

.header__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.header__btn:hover {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

.header__btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 767px) {
  .header__btn {
    width: 36px;
    height: 36px;
  }

  .header__btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 1024px) {
  .header__btn--search-mobile {
    display: none;
  }
}

/* Login button */
.header__btn--login {
  width: auto;
  padding: 0 var(--space-4);
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

@media (max-width: 479px) {
  .header__btn--login span {
    display: none;
  }
}

@media (max-width: 767px) {
  .header__btn--login {
    width: 40px;
    padding: 0;
    gap: 0;
  }

  .header__btn--login span {
    display: none;
  }
}

/* ========================================
   MOBILE MENU BUTTON
   ======================================== */

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
}

@media (max-width: 767px) {
  .menu-btn {
    width: 36px;
    height: 36px;
  }

  .menu-btn__lines {
    width: 18px;
  }
}

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn__lines {
  position: relative;
  width: 20px;
  height: 14px;
}

.menu-btn__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.menu-btn__line:nth-child(1) { top: 0; }
.menu-btn__line:nth-child(2) { top: 6px; }
.menu-btn__line:nth-child(3) { top: 12px; }

.menu-btn.is-active .menu-btn__line:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-btn.is-active .menu-btn__line:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-active .menu-btn__line:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* ========================================
   MOBILE NAVIGATION OVERLAY
   ======================================== */

.mobile-nav {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--color-bg-primary);
  padding: var(--space-4);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  z-index: var(--z-fixed);
  overflow-y: auto;
}

@media (min-width: 768px) {
  .mobile-nav {
    inset: 72px 0 0 0;
  }
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

/* ========================================
   SUB-NAV (Category menu)
   ======================================== */

.sub-nav {
  display: none;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .sub-nav {
    display: block;
  }
}

.sub-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 48px;
  overflow: visible;
  scrollbar-width: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.sub-nav__inner::-webkit-scrollbar {
  display: none;
}

.sub-nav__item {
  position: relative;
  flex-shrink: 0;
}

.sub-nav__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.sub-nav__button:hover,
.sub-nav__item:hover > .sub-nav__button {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

.sub-nav__button--ongoing {
  color: white;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.24);
}

.sub-nav__button--ongoing:hover {
  color: white;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.sub-nav__caret {
  font-size: 10px;
  line-height: 1;
  color: currentColor;
}

.sub-nav__dropdown {
  position: absolute;
  top: calc(100% + var(--space-3));
  left: 0;
  min-width: 240px;
  padding: var(--space-5);
  background: rgba(24, 24, 34, 0.98);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: calc(var(--z-dropdown) + 1);
}

.sub-nav__item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--space-3);
}

.sub-nav__item:hover .sub-nav__dropdown,
.sub-nav__item:focus-within .sub-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-nav__dropdown--wide {
  width: min(880px, calc(100vw - 80px));
}

.sub-nav__dropdown--narrow {
  width: 280px;
}

.sub-nav__dropdown-grid {
  display: grid;
  gap: var(--space-3) var(--space-5);
}

.sub-nav__dropdown-grid--single {
  grid-template-columns: 1fr;
}

.sub-nav__dropdown-grid--genres {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sub-nav__dropdown--years {
  width: min(720px, calc(100vw - 80px));
}

.sub-nav__dropdown-grid--years {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2);
  max-height: min(60vh, 520px);
  overflow-y: auto;
  padding-right: var(--space-1);
}

.sub-nav__dropdown-grid--years .sub-nav__dropdown-link {
  text-align: center;
  padding: var(--space-2);
}

.sub-nav__dropdown-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.sub-nav__dropdown-link:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
}

.mobile-nav__link--highlight {
  color: white;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.mobile-nav__link--highlight:hover {
  color: white;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.mobile-nav__group {
  margin-top: var(--space-2);
}

.mobile-nav__details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.mobile-nav__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
}

.mobile-nav__summary::-webkit-details-marker {
  display: none;
}

.mobile-nav__summary::after {
  content: "▾";
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.mobile-nav__details[open] .mobile-nav__summary::after {
  transform: rotate(180deg);
  color: var(--color-text-primary);
}

.mobile-nav__sublist {
  display: grid;
  gap: 0.35rem;
  padding: 0 var(--space-3) var(--space-3);
  border-top: 1px solid var(--color-border);
}

.mobile-nav__sublist--years {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.mobile-nav__sublist--years .mobile-nav__sublink {
  text-align: center;
  padding: 0.625rem var(--space-2);
}

.mobile-nav__sublink {
  display: block;
  padding: 0.75rem var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav__sublink:hover {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

@media (max-width: 1279px) {
  .sub-nav__dropdown--wide {
    width: min(720px, calc(100vw - 80px));
  }

  .sub-nav__dropdown--years {
    width: min(640px, calc(100vw - 80px));
  }

  .sub-nav__dropdown-grid--genres {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sub-nav__dropdown-grid--years {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


/* SOURCE: cards.css */
/**
 * Card Styles
 * DLE 2025 Template
 * Modern content cards with hover effects
 */

/* ========================================
   CARD BASE
   ======================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: visible;
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 220ms ease;
  height: 100%;
  align-self: stretch;
  min-width: 0;
  will-change: transform;
  backface-visibility: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* ========================================
   CARD POSTER
   ======================================== */

.card__poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card__poster-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
}

.card__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1), filter 420ms ease;
}

.card:hover .card__poster img {
  transform: scale(1.012);
  filter: saturate(1.02);
}

/* Poster overlay gradient */
.card__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.9) 0%,
    rgba(10, 10, 15, 0.4) 40%,
    transparent 70%
  );
  opacity: 0.6;
  border-radius: inherit;
  transition: opacity 340ms ease;
}

.card:hover .card__poster::after {
  opacity: 0.66;
}

/* ========================================
   CARD BADGES
   ======================================== */

.card__badge {
  position: absolute;
  z-index: 4;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  pointer-events: none;
  transition: opacity 220ms ease, background-color 220ms ease;
}

.card__badge--rating {
  top: 0.5rem;
  left: -0.4rem;
  z-index: 10;
  display: none;
  width: 2.8rem;
  height: 1.6rem;
  padding: 0;
  border-radius: 0.25rem;
  background: #777;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.card__badge--rating.is-ready {
  display: inline-flex;
}

.card__badge--rating[data-rating-state="high"] {
  background: #3bb33b;
}

.card__badge--rating[data-rating-state="mixed"] {
  background: #f59e0b;
}

.card__badge--rating[data-rating-state="low"] {
  background: #dc3545;
}

.card__badge--rating[data-rating-state="neutral"] {
  background: #777;
}

.card__rating-value {
  display: block;
  line-height: 1;
}

.card__rating-source,
.card__rating-likes,
.card__rating-votes,
.card__rating-score {
  display: none !important;
}

.card__badge--episode {
  top: var(--space-2);
  right: var(--space-2);
  background: var(--color-accent);
  color: white;
}

.card__badge--status {
  bottom: var(--space-2);
  left: var(--space-2);
  background: var(--color-success);
  color: white;
}

.card__badge--status--ongoing {
  background: var(--color-success);
}

.card__badge--status--completed {
  background: var(--color-text-tertiary);
}

/* ========================================
   CARD CONTENT
   ======================================== */

.card__content {
  position: relative;
  padding: var(--space-3);
  background: var(--color-surface);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 0;
  transition: background 220ms ease, border-color 220ms ease;
  min-width: 0;
}

.card__content > * {
  min-width: 0;
}

.card:hover .card__content {
  background: color-mix(in srgb, var(--color-surface) 88%, white 12%);
}

/* ========================================
   CARD TITLE
   ======================================== */

.card__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1.55;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3rem;
}

.card__title a {
  display: block;
  min-width: 0;
  position: relative;
  z-index: 2;
  color: inherit;
  text-decoration: none;
}

/* ========================================
   CARD META
   ======================================== */

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  min-width: 0;
}

.card__meta:empty {
  display: none;
}

.card__meta-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.card__meta-item,
.card__meta-item a {
  color: inherit;
  text-decoration: none;
}

.card__meta--secondary .card__meta-item {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card__description {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.35;
  color: var(--color-text-tertiary);
  min-width: 0;
  margin-top: auto;
}

.card__description:empty {
  display: none;
}

.card__description-text {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta,
.card__meta--secondary,
.card__description {
  min-height: 1.25rem;
}

@media (max-width: 767px) {
  .card {
    transition: transform 300ms ease, box-shadow 300ms ease, background-color 240ms ease;
  }

  .card:hover {
    transform: translateY(-1px);
  }

  .card__content {
    gap: 6px;
  }

  .card__title {
    min-height: 2.6rem;
  }

  .card__meta--secondary .card__meta-item {
    -webkit-line-clamp: 1;
  }
}

/* ========================================
   CARD ACTIONS
   ======================================== */

.card__actions {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  z-index: 5;
  display: flex;
  gap: var(--space-1);
  opacity: 1;
  transform: none;
}

@media (max-width: 767px) {
  .card__actions {
    opacity: 1;
    transform: none;
  }
}

.card__actions a {
  display: flex;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.card__actions--hidden {
  display: none;
}

.card__actions button {
  padding: 0;
  margin: 0;
}

.card__action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  appearance: none;
  transition: all var(--transition-fast);
}

.card__actions a:hover .card__action,
.card__actions a:focus-visible .card__action,
.card__action:hover {
  background: var(--color-accent);
  color: white;
}

.card__action svg {
  width: 16px;
  height: 16px;
}

.card__action--active {
  color: var(--color-accent);
}

.card__action--active:hover {
  color: white;
}

/* ========================================
   CARD SKELETON (loading state)
   ======================================== */

.card--skeleton {
  pointer-events: none;
}

.card--skeleton .card__poster {
  background: linear-gradient(
    90deg,
    var(--color-bg-tertiary) 25%,
    var(--color-surface) 50%,
    var(--color-bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.card--skeleton .card__content {
  position: relative;
  background: var(--color-surface);
}

.card--skeleton .card__title {
  height: 20px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.card--skeleton .card__meta {
  height: 14px;
  width: 60%;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========================================
   HORIZONTAL CARD (for lists)
   ======================================== */

.card--horizontal {
  flex-direction: row;
  gap: var(--space-4);
  padding: var(--space-3);
}

.card--horizontal .card__poster {
  width: 80px;
  min-width: 80px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
}

.card--horizontal .card__content {
  position: static;
  transform: none;
  opacity: 1;
  padding: 0;
  flex: 1;
}

.card--horizontal .card__title {
  font-size: var(--text-base);
}

.card--horizontal:hover {
  background: var(--color-surface-hover);
}

/* ========================================
   FEATURED CARD (hero section)
   ======================================== */

.card--featured {
  grid-column: span 1;
  grid-row: span 1;
}

.card--featured .card__poster {
  aspect-ratio: 2 / 3;
}

.card--featured .card__title {
  font-size: var(--text-sm);
}

@media (max-width: 767px) {
  .card--featured {
    grid-column: span 1;
    grid-row: span 1;
  }
}


/* SOURCE: fullstory.css */
/**
 * Fullstory Styles
 * DLE 2025 Template
 * Single content page layout
 */

/* ========================================
   FULLSTORY HEADER
   ======================================== */

.fullstory__header {
  margin-bottom: var(--space-8);
}

.fullstory__hero {
  position: relative;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-2);
}

/* Backdrop image */
.fullstory__backdrop {
  position: relative;
  width: 100%;
  height: 300px;
  min-height: 200px;
  max-height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-tertiary);
}

@media (max-width: 767px) {
  .fullstory__backdrop {
    height: 200px;
  }
}

.fullstory__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.08);
  filter: blur(4px);
  opacity: 0.55;
}

.fullstory__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-bg-primary) 0%,
    rgba(10, 10, 15, 0.95) 24%,
    rgba(10, 10, 15, 0.32) 72%,
    rgba(10, 10, 15, 0.12) 100%
  );
}

/* Poster floating over backdrop */
.fullstory__poster {
  position: absolute;
  bottom: -40px;
  left: var(--space-6);
  width: 172px;
  height: 258px;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-xl);
  border: 3px solid var(--color-surface);
  background: var(--color-bg-tertiary);
  z-index: 2;
}

.fullstory__poster .card__badge--rating {
  top: 0.5rem;
  left: -0.4rem;
  z-index: 10;
}

.fullstory__poster .card__badge--rating[data-rating-state="high"] {
  background: #b89a6a;
  color: #16100a;
}

.fullstory__poster .card__badge--rating[data-rating-state="mixed"] {
  background: #6a667d;
  color: #f3f0ff;
}

.fullstory__poster .card__badge--rating[data-rating-state="low"] {
  background: #b84757;
  color: #fff1f2;
}

.fullstory__poster .card__badge--rating[data-rating-state="neutral"] {
  background: rgba(20, 20, 30, 0.92);
  color: var(--color-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 767px) {
  .fullstory__poster {
    width: 124px;
    height: 186px;
    bottom: -12px;
    left: var(--space-4);
  }
}

.fullstory__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius-lg) - 3px);
}

@media (max-width: 1023px) {
  .fullstory__hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding-bottom: 0;
  }

  .fullstory__poster {
    position: relative;
    left: auto;
    bottom: auto;
    align-self: center;
    width: min(100%, 420px);
    height: auto;
    aspect-ratio: 2 / 3;
    margin-top: -84px;
  }

  .fullstory__meta {
    min-height: 0;
    max-width: none;
    padding-left: 0;
    padding-top: 0;
    align-items: center;
    text-align: center;
  }

  .fullstory__badges {
    justify-content: center;
  }
}

/* ========================================
   FULLSTORY META
   ======================================== */

.fullstory__meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 168px;
  padding-left: calc(172px + var(--space-10));
  padding-top: var(--space-4);
  position: relative;
  z-index: 3;
  max-width: 820px;
}

@media (max-width: 767px) {
  .fullstory__hero {
    gap: var(--space-4);
  }

  .fullstory__meta {
    min-height: 0;
    padding-left: 0;
    padding-top: var(--space-2);
  }
}

.fullstory__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}

@media (max-width: 767px) {
  .fullstory__title {
    font-size: var(--text-xl);
  }
}

.fullstory__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.fullstory__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
}

.badge--rating {
  background: rgba(184, 154, 106, 0.18);
  color: #ddc08b;
  border: 1px solid rgba(184, 154, 106, 0.3);
}

.badge--status {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  border: 1px solid transparent;
}

.badge--status-live {
  background: var(--color-success);
  color: white;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.18);
}

.badge--status-completed {
  border-color: var(--color-border);
}

.badge--year {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.badge--age {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

/* ========================================
   FULLSTORY INFO GRID
   ======================================== */

.fullstory__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.info-item--full {
  grid-column: 1 / -1;
}

.info-item--voices {
  padding-top: 0;
  border-top: 0;
}

.info-item--voices .info-item__value {
  display: block;
  max-width: none;
  line-height: 1.8;
}

.info-item__label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.info-item__value {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}

.info-item__value--live {
  color: #90d7ab;
  font-weight: var(--font-medium);
}

.info-item__value a {
  color: #b7acf6;
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.info-item__value a:hover,
.info-item__value a:focus-visible {
  color: var(--color-accent);
  text-decoration-color: currentColor;
}

/* ========================================
   FULLSTORY CONTENT
   ======================================== */

@media (min-width: 1200px) {
}

.fullstory__description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.fullstory__description strong {
  color: var(--color-text-primary);
  font-weight: var(--font-semibold);
}

.fullstory__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.fullstory__text p + p {
  margin-top: var(--space-4);
}

.watch-order {
  margin-top: var(--space-8);
  padding: var(--space-5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.005) 100%), var(--color-bg-secondary);
  border: 1px solid color-mix(in srgb, var(--color-border) 88%, rgba(255, 255, 255, 0.04));
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.watch-order__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: 0;
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
}

.watch-order__title::-webkit-details-marker {
  display: none;
}

.watch-order__title::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: color-mix(in srgb, var(--color-text-tertiary) 82%, rgba(255, 255, 255, 0.12));
  opacity: 0.78;
  transition: transform var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

.watch-order[open] .watch-order__title::after {
  content: "−";
  transform: none;
  color: var(--color-text-tertiary);
  opacity: 0.92;
}

.watch-order__content {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.watch-order__subtitle {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
}

.watch-order__content p + p {
  margin-top: var(--space-4);
}

.watch-order__content ul,
.watch-order__content ol {
  margin: 0;
  padding-left: 0;
}

.watch-order__content li + li {
  margin-top: 0.55rem;
}

.watch-order__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.watch-order__list > li + li {
  margin-top: 0;
}

.watch-order__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.95rem 1.15rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-bg-primary) 42%, var(--color-bg-tertiary) 58%);
  border: 1px solid color-mix(in srgb, var(--color-border) 92%, rgba(255, 255, 255, 0.03));
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.watch-order__card--link {
  cursor: pointer;
}

.watch-order__card--link:hover,
.watch-order__card--link:focus-within {
  background: color-mix(in srgb, var(--color-bg-primary) 25%, var(--color-surface-hover) 75%);
  border-color: color-mix(in srgb, var(--color-border-hover) 78%, rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.watch-order__overlay,
.watch-order__content.article-content a.watch-order__overlay,
.watch-order__overlay:link,
.watch-order__overlay:visited,
.watch-order__overlay:hover,
.watch-order__overlay:focus-visible {
  all: unset;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  cursor: pointer;
}

.watch-order__card--link .watch-order__index,
.watch-order__card--link .watch-order__body {
  pointer-events: none;
}

.watch-order__overlay:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 80%, #ffffff 20%);
  outline-offset: -2px;
}

.watch-order__index {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.55rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-bg-primary) 55%, var(--color-surface) 45%);
  border: 1px solid color-mix(in srgb, var(--color-border) 90%, rgba(255, 255, 255, 0.04));
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1;
}

.watch-order__body {
  position: relative;
  z-index: 2;
  min-width: 0;
  flex: 1 1 auto;
}

.watch-order__item-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.watch-order__textline {
  min-width: 0;
  flex: 1 1 auto;
  display: inline;
}

.watch-order__name {
  color: color-mix(in srgb, var(--color-text-primary) 92%, #ffffff 8%);
  font-weight: var(--font-semibold);
  line-height: 1.35;
}

.watch-order__inline-meta {
  color: color-mix(in srgb, var(--color-text-secondary) 74%, var(--color-text-primary) 26%);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.watch-order__card--link:hover .watch-order__name,
.watch-order__card--link:focus-within .watch-order__name {
  color: #b7acf6;
}

.watch-order__card--link:hover .watch-order__inline-meta,
.watch-order__card--link:focus-within .watch-order__inline-meta {
  color: #b7acf6;
}

.watch-order__meta {
  margin-top: 0.28rem;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.watch-order__status {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.18);
  color: color-mix(in srgb, var(--color-accent-hover) 58%, var(--color-text-secondary) 42%);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.watch-order__item.is-current .watch-order__card {
  border-color: color-mix(in srgb, var(--color-accent) 34%, var(--color-border));
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-bg-primary) 92%);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--color-accent) 88%, transparent);
}

.watch-order__item.is-current .watch-order__name {
  color: var(--color-text-primary);
}

.watch-order__item.is-current .watch-order__index {
  background: color-mix(in srgb, var(--color-accent) 22%, var(--color-bg-primary) 78%);
  border-color: color-mix(in srgb, var(--color-accent) 48%, var(--color-border));
  color: var(--color-text-primary);
}

.watch-order__item.is-current .watch-order__status {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.24);
  color: color-mix(in srgb, var(--color-accent-hover) 82%, var(--color-text-primary) 18%);
}

.watch-order__list--legacy {
  padding-left: 1.4rem;
  list-style: decimal;
}

.watch-order__list--legacy > li {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.watch-order__legacy-current {
  color: var(--color-accent);
  font-weight: var(--font-semibold);
}

.watch-order__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: var(--space-4) auto;
  border-radius: var(--radius-lg);
}

/* ========================================
   PLAYER SECTION
   ======================================== */

.player-section {
  margin: var(--space-8) 0;
}

.player-section__title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.player-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.player-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   SCREENSHOTS
   ======================================== */

.screenshots {
  margin: var(--space-8) 0;
}

.screenshots__title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.screenshots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}

@media (max-width: 767px) {
  .screenshots__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.screenshots__item {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.screenshots__item:hover {
  transform: scale(1.02);
}

.screenshots__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   RELATED CONTENT
   ======================================== */

.related-section {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.related-section__title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-5);
}

/* ========================================
   FULLSTORY ACTIONS
   ======================================== */

.fullstory__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  margin-bottom: 15px;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.fullstory__actions a {
  display: inline-flex;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 0;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn--primary {
  background: var(--color-accent);
  color: white;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.btn--secondary:hover {
  background: var(--color-surface-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn--ghost:hover {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.btn svg {
  width: 18px;
  height: 18px;
}


/* SOURCE: sidebar.css */
/**
 * Sidebar Styles
 * DLE 2025 Template
 */

/* ========================================
   SIDEBAR WIDGETS
   ======================================== */

.widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.widget__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-secondary);
}

.widget__link {
  font-size: var(--text-xs);
  color: var(--color-accent);
}

.widget__link:hover {
  text-decoration: underline;
}

/* ========================================
   TOP NEWS WIDGET
   ======================================== */

.top-news__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.widget--top-news {
  display: grid;
  gap: var(--space-4);
}

.top-news__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.top-news__tab {
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.top-news__tab:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
}

.top-news__tab.is-active {
  color: white;
  background: var(--color-accent);
}

.top-news__pane[hidden] {
  display: none !important;
}

.top-news__item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.top-news__item:hover {
  background: var(--color-surface-hover);
}

.top-news__poster {
  position: relative;
  display: block;
  width: 56px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-tertiary);
}

.top-news__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-news__content {
  flex: 1;
  min-width: 0;
}

.top-news__title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-1);
}

.top-news__title a {
  display: block;
}

.top-news__title a:hover {
  color: var(--color-accent);
}

.top-news__meta {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* ========================================
   SERIES UPDATES WIDGET
   ======================================== */

.widget--series-updates {
  display: grid;
  gap: var(--space-4);
}

.series-updates__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.series-update {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.series-update:hover {
  background: var(--color-surface-hover);
}

.series-update__poster {
  display: block;
  width: 48px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-tertiary);
}

.series-update__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-update__body {
  min-width: 0;
}

.series-update__title {
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
}

.series-update__title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.series-update__title a:hover {
  color: var(--color-accent);
}

.series-update__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.series-update__year {
  color: var(--color-text-secondary);
}

.series-update__episode {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 58px;
  text-align: right;
}

.series-update__episode-number {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: #ff9d6c;
  white-space: nowrap;
}

.series-update__voice {
  max-width: 76px;
  overflow: hidden;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--color-text-tertiary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   SIDEBAR AD
   ======================================== */

.sidebar_rek {
  padding: var(--space-4);
}

.sidebar_rek--sticky {
  position: sticky;
  top: 104px;
  z-index: 1;
  align-self: stretch;
}

.sidebar_rek a {
  display: block;
}

.sidebar_rek img {
  display: block;
  width: 90%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 4px;
  background: rgb(255, 255, 255);
  box-shadow: rgb(0, 0, 0) 0px 0px 2px;
  overflow: hidden;
  transition: transform 0.8s, box-shadow var(--transition-fast);
}

.sidebar_rek a:hover img,
.sidebar_rek a:focus-visible img {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* ========================================
   CATEGORIES WIDGET
   ======================================== */

.categories__list {
  display: flex;
  flex-direction: column;
}

.categories__list .category-tree {
  display: flex;
  flex-direction: column;
}

.categories__list .category-tree__item {
  display: block;
  border-bottom: 1px solid var(--color-border);
}

.categories__list .category-tree__item:last-child {
  border-bottom: none;
}

.categories__list .category-tree__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.categories__list .category-tree__link:hover,
.categories__list .category-tree__item.is-active > .category-tree__link {
  color: var(--color-text-primary);
}

.categories__list .category-tree__count {
  flex-shrink: 0;
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  background: var(--color-bg-tertiary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
}

.categories__list .category-tree__sublist {
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
}

.categories__list .category-tree__sublist .category-tree__link {
  padding: var(--space-2) 0;
  font-size: var(--text-xs);
}

.categories__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.categories__item:last-child {
  border-bottom: none;
}

.categories__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.categories__link:hover {
  color: var(--color-text-primary);
}

.categories__count {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  background: var(--color-bg-tertiary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
}

/* ========================================
   TAGS CLOUD
   ======================================== */

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: flex-start;
}

.tags-cloud a,
.tags-cloud__item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 2rem;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: 1.2;
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%),
    var(--color-bg-tertiary);
  border: 1px solid color-mix(in srgb, var(--color-border) 76%, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-full);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 10px rgba(2, 6, 23, 0.1);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tags-cloud a:hover,
.tags-cloud a:focus-visible,
.tags-cloud__item:hover,
.tags-cloud__item:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 100%),
    color-mix(in srgb, var(--color-surface-hover) 90%, var(--color-accent) 10%);
  color: var(--color-text-primary);
  border-color: color-mix(in srgb, var(--color-accent) 28%, var(--color-border));
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 16px rgba(2, 6, 23, 0.14);
}

.tags-cloud a:focus-visible,
.tags-cloud__item:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--color-accent) 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 16px rgba(2, 6, 23, 0.14);
}

.tags-cloud .tags_more {
  display: inline-flex;
}

.tags-cloud .tags_more a {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.018) 100%),
    #3b456f;
  border-color: #4e6aa3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(10, 20, 40, 0.24);
  color: #f3f6ff;
}

.tags-cloud .tags_more a:hover,
.tags-cloud .tags_more a:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.025) 100%),
    #4a5688;
  border-color: #6280bc;
  color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(98, 128, 188, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 24px rgba(10, 20, 40, 0.28);
}

/* ========================================
   SEARCH WIDGET
   ======================================== */

.widget-search {
  position: relative;
}

.widget-search__input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-4) 0 var(--space-10);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

.widget-search__input:focus {
  border-color: var(--color-accent);
  background: var(--color-surface);
}

.widget-search__icon {
  position: absolute;
  margin-left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-tertiary);
}

/* ========================================
   CALENDAR WIDGET
   ======================================== */

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.calendar__month {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.calendar__nav {
  display: flex;
  gap: var(--space-1);
}

.calendar__btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.calendar__btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.calendar__btn svg {
  width: 16px;
  height: 16px;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
  text-align: center;
}

.calendar__day-name {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  padding: var(--space-2) 0;
}

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calendar__day:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.calendar__day--today {
  background: var(--color-accent);
  color: white;
  font-weight: var(--font-semibold);
}

.calendar__day--has-event {
  position: relative;
}

.calendar__day--has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}

.calendar__day--other-month {
  color: var(--color-text-muted);
}


/* SOURCE: footer.css */
/**
 * Footer Styles
 * DLE 2025 Template
 */

/* ========================================
   FOOTER BASE
   ======================================== */

.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: auto;
}

/* ========================================
   FOOTER GRID
   ======================================== */

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

/* ========================================
   FOOTER BRAND
   ======================================== */

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__logo-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.footer__logo-text {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
}

.footer__description {
  font-size: var(--text-sm);
  color: #b3b3c3;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

/* ========================================
   FOOTER SOCIALS
   ======================================== */

.footer__socials {
  display: flex;
  gap: var(--space-3);
}

.footer__social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.footer__social:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   FOOTER LINKS
   ======================================== */

.footer__column {
  display: flex;
  flex-direction: column;
}

.footer__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: #b0b0c0;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent);
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__copyright {
  font-size: var(--text-sm);
  color: #8f8fa1;
}

.footer__copyright a {
  color: #b0b0c0;
}

.footer__copyright a:hover {
  color: var(--color-accent);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  font-size: var(--text-sm);
  color: #9191a3;
}

.footer__legal-link:hover {
  color: var(--color-text-secondary);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  color: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-lg);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}


/* SOURCE: components.css */
/**
 * Additional Components Styles
 * DLE 2025 Modern Template
 * Login, breadcrumbs, pagination, comments
 */

/* ========================================
   USER MENU (Login)
   ======================================== */

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 0;
}

.user-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  cursor: pointer;
  appearance: none;
  transition: background var(--transition-fast);
}

.user-menu__toggle:hover {
  background: var(--color-surface-hover);
}

.user-menu__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.user-menu__name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__arrow {
  width: 16px;
  height: 16px;
  color: var(--color-text-tertiary);
  transition: transform var(--transition-fast);
}

.user-menu__toggle[aria-expanded="true"] .user-menu__arrow {
  transform: rotate(180deg);
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
}

.user-menu__dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: calc(var(--space-2) + 6px);
}

.user-menu__toggle[aria-expanded="true"] + .user-menu__dropdown,
.user-menu.is-open .user-menu__dropdown,
.user-menu:hover .user-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.user-menu__item:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.user-menu__item svg {
  width: 18px;
  height: 18px;
}

.user-menu__item--danger {
  color: var(--color-error);
}

.user-menu__item--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

.user-menu__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-2) 0;
}

.user-menu__badge {
  margin-left: auto;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-full);
}

/* ========================================
   AUTH MODAL
   ======================================== */

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 10, 15, 0.82);
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.auth-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-tertiary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__close:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.auth-modal__header {
  margin-bottom: var(--space-5);
}

.auth-modal__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.auth-modal__subtitle,
.auth-modal__footer {
  color: var(--color-text-secondary);
}

.auth-form {
  display: grid;
  gap: var(--space-4);
}

.auth-form__field {
  display: grid;
  gap: var(--space-2);
}

.auth-form__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.auth-form__input {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.auth-form__input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.auth-form__checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.auth-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.auth-modal__submit,
.auth-modal__link {
  min-height: 46px;
}

.auth-modal__footer {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
}

.auth-modal__footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.auth-modal__footer a:hover {
  color: var(--color-accent-hover);
}

/* ========================================
   PAGE FORMS, STATIC PAGES, SEARCH
   ======================================== */

.page-form,
.static-page,
.search-page {
  width: 100%;
}

.page_form__inner,
.page-form__inner,
.static-page__card,
.tags-page__card {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(1.25rem, 1.8vw, 2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.search-panel {
  margin: 0 auto;
  padding: clamp(1.25rem, 1.8vw, 2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.search-panel--extended,
.static-page__card,
.tags-page__card {
  width: 100%;
}

.tags-page__card {
  display: grid;
  gap: var(--space-6);
}

.tags-page__header {
  display: grid;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.tags-page__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
}

.tags-page__title,
.tags-page__description {
  margin: 0;
}

.tags-page__description {
  max-width: 42rem;
}

.tags-page__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3);
}

.tags-page__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%),
    var(--color-bg-tertiary);
  border: 1px solid color-mix(in srgb, var(--color-border) 74%, rgba(255, 255, 255, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 16px rgba(2, 6, 23, 0.12);
  color: var(--color-text-secondary);
  font-size: var(--text-sm) !important;
  font-weight: var(--font-medium);
  line-height: 1.3;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tags-page__list a:hover,
.tags-page__list a:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 100%),
    color-mix(in srgb, var(--color-surface-hover) 88%, var(--color-accent) 12%);
  color: var(--color-text-primary);
  border-color: color-mix(in srgb, var(--color-accent) 26%, var(--color-border));
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(2, 6, 23, 0.14);
}

.tags-page__list a:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--color-accent) 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(2, 6, 23, 0.14);
}

.page-form__intro,
.search-page__header,
.static-page__header {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.page-form__title,
.search-page__title,
.static-page__title {
  font-size: clamp(1.75rem, 2vw, 2.375rem);
  line-height: 1.15;
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.page-form__text,
.search-page__summary,
.static-page__content {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.page-form__text a,
.static-page__content a,
.search-page__summary a {
  color: var(--color-accent);
}

.page-form__form {
  display: grid;
  gap: var(--space-5);
}

.ui-form {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.ui-form--stack {
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.form-group label,
.search-panel__group label,
.search-fieldset legend {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
}

.wide,
.ui-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ui-form textarea,
.ui-form select,
.search-page input:not([type="checkbox"]):not([type="radio"]),
.search-page textarea,
.search-page select,
.search-page .textin {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.search-page input:not([type="checkbox"]):not([type="radio"]),
.search-page textarea,
.search-page select,
.search-page .textin {
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
}

.search-page input::placeholder,
.search-page textarea::placeholder,
.search-page .textin::placeholder {
  color: var(--color-text-tertiary);
  opacity: 1;
}

.ui-form textarea,
.search-page textarea,
.search-page select[multiple],
.ui-form select[multiple] {
  min-height: 140px;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.wide:focus,
.ui-form input:focus,
.ui-form textarea:focus,
.ui-form select:focus,
.search-page input:focus,
.search-page textarea:focus,
.search-page select:focus,
.search-page .textin:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.ui-form input[type="file"] {
  min-height: auto;
  padding: var(--space-3);
}

.file-control {
  width: 100%;
}

.file-control__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-control__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.file-control__label:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface);
}

.file-control__input:focus + .file-control__label {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.file-control__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  flex: 0 0 auto;
}

.file-control__name {
  min-width: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  word-break: break-word;
}

.ui-form input[type="file"],
.profile-page input[type="file"] {
  width: 100% !important;
  padding: var(--space-3) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
  box-sizing: border-box;
}

.ui-form input[type="file"]::file-selector-button,
.profile-page input[type="file"]::file-selector-button {
  margin-right: var(--space-3);
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.ui-form input[type="file"]::file-selector-button:hover,
.profile-page input[type="file"]::file-selector-button:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
}

.ui-form input[type="file"]::-webkit-file-upload-button,
.profile-page input[type="file"]::-webkit-file-upload-button {
  margin-right: var(--space-3);
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.ui-form input[type="file"]::-webkit-file-upload-button:hover,
.profile-page input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
}

.login_check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
}

#result-registration:empty,
.static-page__actions:empty,
.static-page__pagination:empty {
  display: none;
}

#result-registration {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.user_fields {
  display: grid;
  gap: var(--space-4);
}

/* ========================================
   PROFILE PAGE
   ======================================== */

.profile-page {
  overflow: hidden;
}

.profile-page__hero {
  display: grid;
  gap: var(--space-5);
  margin-bottom: 10px;
}

.profile-page__hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}

.profile-page__avatar-wrap {
  flex-shrink: 0;
}

.profile-page__avatar {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: var(--radius-xl);
  background-color: var(--color-bg-tertiary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.profile-page__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.05));
}

.profile-page__avatar-name {
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 1;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.profile-page__intro {
  display: grid;
  gap: var(--space-3);
}

.profile-page__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--font-bold);
  line-height: 1.1;
  color: var(--color-text-primary);
}

.profile-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.profile-page__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.profile-page__action:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
}

.profile-page__body {
  display: grid;
  gap: var(--space-5);
}

.profile-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: 10px;
}

.profile-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.profile-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.profile-table {
  display: grid;
  gap: 0;
}

.profile-table__row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.profile-table__row:last-child {
  border-bottom: none;
}

.profile-table__label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-tertiary);
}

.profile-table__value {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  min-width: 0;
}

.profile-table__muted {
  color: var(--color-text-secondary);
}

.profile-table__inline-action {
  display: inline-block;
  margin-left: var(--space-2);
  color: var(--color-accent);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.profile-badge--online {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.18);
}

.profile-badge--offline {
  color: var(--color-text-secondary);
  background: var(--color-bg-tertiary);
}

.profile-card__text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.profile-card__text:empty::before {
  content: 'Пользователь пока не заполнил информацию о себе.';
  color: var(--color-text-tertiary);
}

.profile-card--settings {
  gap: var(--space-5);
}

@media (max-width: 899px) {
  .profile-page__grid {
    grid-template-columns: 1fr;
  }

  .profile-table__row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

@media (max-width: 639px) {
  .profile-page__hero-main {
    grid-template-columns: 1fr;
  }

  .profile-page__avatar {
    width: 96px;
    height: 96px;
  }
}

.form_submit {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.c-captcha {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  width: 100%;
}

.c-captcha > a {
  display: block;
  flex: 0 0 auto;
  margin-right: 0;
}

.c-captcha img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.c-captcha input,
.c-captcha > input,
.dle-captcha > input {
  flex: 1 1 220px;
  float: none !important;
  width: min(100%, 320px);
  min-height: 52px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
  box-shadow: none;
}

.c-captcha input::placeholder,
.c-captcha > input::placeholder,
.dle-captcha > input::placeholder {
  color: var(--color-text-tertiary);
  opacity: 1;
}

.c-captcha input:focus,
.c-captcha > input:focus,
.dle-captcha > input:focus {
  outline: none;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.combo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.combo_field {
  min-width: 0;
}

.combo_field > * {
  width: 100%;
}

.page-form__note {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-tertiary);
}

.page-form__action-link,
.comments-image-uploader-area a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  text-decoration: none;
}

.page-form__action-link:hover,
.comments-image-uploader-area a:hover {
  color: var(--color-accent-hover);
}

.admin_checkboxs,
.comments-image-uploader-area {
  display: grid;
  gap: var(--space-3);
}

.comment-form {
  width: 100%;
}

.comment-form__card {
  width: 100%;
  padding: clamp(1.25rem, 1.8vw, 2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.comment-form__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.comment-form__toggle:has(.sr-only:only-child),
.comment-form__toggle:empty {
  display: none;
  margin-bottom: 0;
}

/* ========================================
   STATS PAGE
   ======================================== */

.stats-page {
  overflow: hidden;
}

.stats-page__hero,
.stats-page__body {
  display: grid;
  gap: var(--space-6);
  margin-bottom: 15px;
}

.stats-page__title {
  margin: 0;
}

.stats-page__card {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  min-width: 0;
}

.stats-page__heading {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--color-text-primary);
}

.stats-page__table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.02);
  -webkit-overflow-scrolling: touch;
}

.stats-page__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.stats-page__table th,
.stats-page__table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.stats-page__table thead th {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.stats-page__table tbody th {
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}

.stats-page__table tbody td {
  color: var(--color-text-secondary);
}

.stats-page__table--details thead th:last-child,
.stats-page__table--details tbody td {
  text-align: right;
}

.stats-page__table tbody tr:last-child th,
.stats-page__table tbody tr:last-child td {
  border-bottom: none;
}

.stats-page__table tbody tr:nth-child(even):not(.stats-page__section-row) {
  background: rgba(255, 255, 255, 0.015);
}

.stats-page__section-row th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: var(--color-accent);
  background: rgba(99, 102, 241, 0.08);
  border-bottom-color: rgba(99, 102, 241, 0.16);
}

.stats-page__link {
  color: var(--color-accent);
  text-decoration: none;
}

.stats-page__link:hover {
  color: var(--color-accent-hover);
}

.stats-page__users-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.stats-page__users-table td,
.stats-page__users-table th,
.stats-page__table th,
.stats-page__table td {
  word-break: break-word;
}

.stats-page__users-table td,
.stats-page__users-table th {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  background: transparent;
}

.stats-page__users-table tr:first-child td,
.stats-page__users-table tr:first-child th {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.stats-page__users-table tr:last-child td,
.stats-page__users-table tr:last-child th {
  border-bottom: none;
}

.stats-page__users-table tr:nth-child(even) td,
.stats-page__users-table tr:nth-child(even) th {
  background: rgba(255, 255, 255, 0.015);
}

@media (max-width: 767px) {
  .stats-page__card {
    padding: var(--space-4);
  }

  .stats-page__table {
    min-width: 520px;
  }

  .stats-page__users-table {
    min-width: 640px;
  }
}

@media (max-width: 639px) {
  .stats-page__hero,
  .stats-page__body {
    gap: var(--space-4);
  }

  .stats-page__title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    line-height: 1.15;
  }

  .stats-page__heading {
    font-size: clamp(1.125rem, 5.2vw, 1.5rem);
  }

  .stats-page__table th,
  .stats-page__table td,
  .stats-page__users-table th,
  .stats-page__users-table td {
    padding: 0.85rem 0.9rem;
  }

  .stats-page__table thead th,
  .stats-page__users-table tr:first-child td,
  .stats-page__users-table tr:first-child th {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .stats-page__table--details {
    min-width: 0;
  }

  .stats-page__table--details th,
  .stats-page__table--details td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .stats-page__table--details thead {
    display: none;
  }

  .stats-page__table--details tbody tr {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--color-border);
  }

  .stats-page__table--details tbody tr:last-child {
    border-bottom: none;
  }

  .stats-page__table--details tbody tr th,
  .stats-page__table--details tbody tr td {
    padding: 0;
    border: 0;
  }

  .stats-page__table--details tbody td {
    color: var(--color-text-primary);
    text-align: left;
  }

  .stats-page__section-row {
    gap: 0;
    padding: 0;
  }

  .stats-page__section-row th {
    padding: 0.85rem 0.9rem !important;
  }

  .stats-page__table--summary {
    min-width: 420px;
  }
}

.comment-form__body {
  display: grid;
  gap: var(--space-5);
}

.comment-form__body > h3 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

.comment-form__editor {
  min-width: 0;
}

.comment-form__editor .bb-editor,
.comment-form__editor .dlecomments-editor,
.comment-form__editor .wseditor,
.comment-form__editor .mobilewseditor {
  width: 100%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.comment-form__editor .bb-pane {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.comment-form__editor .bb-editor textarea {
  min-height: 260px;
  margin-top: 0;
  padding: 1rem 1.1rem;
  background: var(--color-bg-tertiary);
  border: 0;
  color: var(--color-text-primary);
  box-shadow: none;
  resize: vertical;
}

.comment-form__editor .tox.tox-tinymce {
  display: flex !important;
  flex-direction: column;
  min-height: 320px;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--color-bg-secondary) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.comment-form__editor .tox .tox-editor-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

.comment-form__editor .tox .tox-toolbar-overlord,
.comment-form__editor .tox .tox-toolbar__primary,
.comment-form__editor .tox .tox-toolbar__group,
.comment-form__editor .tox .tox-anchorbar {
  background: transparent !important;
  border-color: transparent !important;
}

.comment-form__editor .tox .tox-toolbar__group {
  gap: 0.2rem;
  padding: 0.35rem;
}

.comment-form__editor .tox .tox-tbtn,
.comment-form__editor .tox .tox-mbtn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  cursor: pointer;
  border-radius: var(--radius-md) !important;
  color: var(--color-text-secondary) !important;
  fill: currentColor !important;
  background: transparent !important;
  box-shadow: none !important;
}

.comment-form__editor .tox .tox-tbtn svg,
.comment-form__editor .tox .tox-mbtn svg,
.comment-form__editor .tox .tox-mbtn__select-chevron svg {
  fill: currentColor !important;
  filter: none !important;
}

.comment-form__editor .tox .tox-tbtn:hover,
.comment-form__editor .tox .tox-tbtn:focus,
.comment-form__editor .tox .tox-mbtn:hover,
.comment-form__editor .tox .tox-mbtn:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--color-text-primary) !important;
}

.comment-form__editor .tox .tox-tbtn--enabled,
.comment-form__editor .tox .tox-tbtn--enabled:hover {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #c7d2fe !important;
}

.comment-form__editor .tox .tox-tbtn--disabled {
  opacity: 0.45 !important;
}

.comment-form__editor .tox .tox-edit-area,
.comment-form__editor .tox .tox-sidebar-wrap,
.comment-form__editor .tox .tox-editor-container,
.comment-form__editor .tox .tox-edit-area__iframe {
  background: var(--color-bg-tertiary) !important;
}

.comment-form__editor .tox .tox-statusbar {
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1px solid var(--color-border) !important;
  color: var(--color-text-tertiary) !important;
}

.comment-form__editor .tox .tox-statusbar a,
.comment-form__editor .tox .tox-statusbar__path,
.comment-form__editor .tox .tox-statusbar__wordcount {
  color: var(--color-text-tertiary) !important;
}

.comments-image-uploader-area {
  margin-top: var(--space-4);
}

.comments-image-uploader-area a {
  width: fit-content;
  min-height: 42px;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.08);
  color: #c7d2fe;
}

.comments-image-uploader-area a:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.45);
}

#hidden-image-uploader {
  margin-top: var(--space-3);
}

.comments-image-uploader,
.comments-image-uploader .plupload_wrapper,
.comments-image-uploader .plupload_container {
  width: min(100%, 960px) !important;
  background: var(--color-bg-secondary) !important;
  border: 1px dashed var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  color: #d6dbeb !important;
  box-shadow: none !important;
}

.comments-image-uploader .plupload_header,
.comments-image-uploader .plupload_filelist_header,
.comments-image-uploader .plupload_filelist_footer {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: var(--color-border) !important;
  color: #d6dbeb !important;
}

.comments-image-uploader .plupload_droptext,
.comments-image-uploader .plupload_file_status,
.comments-image-uploader .plupload_file_name span,
.comments-image-uploader .plupload_file_size,
.comments-image-uploader .plupload_filelist li {
  color: #dfe4f4 !important;
}

#dlefastreplycomments {
  margin-top: var(--space-5);
  padding: 0 !important;
}

#dlefastreplycomments > form {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1rem, 1.6vw, 1.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

#dlefastreplycomments .comments-edit-area,
#dlefastreplycomments .wseditor,
#dlefastreplycomments .mobilewseditor,
#dlefastreplycomments .dlecomments-editor,
#dlefastreplycomments .bb-editor {
  width: 100%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

#dlefastreplycomments .bb-editor textarea {
  min-height: 240px;
  margin-top: 0;
  padding: 1rem 1.1rem;
  background: var(--color-bg-tertiary);
  border: 0;
  color: var(--color-text-primary);
  resize: vertical;
}

#dlefastreplycomments .tox.tox-tinymce {
  display: flex !important;
  flex-direction: column;
  min-height: 300px;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--color-bg-secondary) !important;
  overflow: hidden;
}

#dlefastreplycomments .tox .tox-editor-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

#dlefastreplycomments .tox .tox-toolbar-overlord,
#dlefastreplycomments .tox .tox-toolbar__primary,
#dlefastreplycomments .tox .tox-toolbar__group,
#dlefastreplycomments .tox .tox-anchorbar {
  background: transparent !important;
  border-color: transparent !important;
}

#dlefastreplycomments .tox .tox-tbtn,
#dlefastreplycomments .tox .tox-mbtn {
  width: 36px !important;
  height: 36px !important;
  cursor: pointer;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: var(--radius-md) !important;
  color: var(--color-text-secondary) !important;
  background: transparent !important;
  box-shadow: none !important;
}

#dlefastreplycomments .tox .tox-tbtn svg,
#dlefastreplycomments .tox .tox-mbtn svg,
#dlefastreplycomments .tox .tox-mbtn__select-chevron svg {
  fill: currentColor !important;
  filter: none !important;
}

#dlefastreplycomments .tox .tox-tbtn:hover,
#dlefastreplycomments .tox .tox-tbtn:focus,
#dlefastreplycomments .tox .tox-mbtn:hover,
#dlefastreplycomments .tox .tox-mbtn:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--color-text-primary) !important;
}

#dlefastreplycomments .tox .tox-tbtn--enabled,
#dlefastreplycomments .tox .tox-tbtn--enabled:hover {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #c7d2fe !important;
}

#dlefastreplycomments .tox .tox-edit-area,
#dlefastreplycomments .tox .tox-sidebar-wrap,
#dlefastreplycomments .tox .tox-editor-container,
#dlefastreplycomments .tox .tox-edit-area__iframe {
  background: var(--color-bg-tertiary) !important;
}

#dlefastreplycomments .comments-image-uploader-area {
  margin-top: 0;
}

#dlefastreplycomments #hidden-comments-image-uploader-reply {
  margin-top: var(--space-3);
}

#dlefastreplycomments .commentsreplyname,
#dlefastreplycomments .commentsreplymail {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}

#dlefastreplycomments .quick-edit-text,
#dlefastreplycomments .sec-code {
  width: 100%;
  min-height: 46px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
}

#dlefastreplycomments .save-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-2);
  text-align: left !important;
}

#dlefastreplycomments .save-buttons .bbcodes {
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-md);
  text-shadow: none;
}

#dlefastreplycomments .save-buttons .applychanges {
  background: var(--color-accent);
  color: #fff;
}

#dlefastreplycomments .save-buttons .applychanges:hover {
  background: var(--color-accent-hover);
}

#dlefastreplycomments .save-buttons .cancelchanges {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-primary);
}

#dlefastreplycomments .save-buttons .cancelchanges:hover {
  background: rgba(255, 255, 255, 0.12);
}

.static-page__header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.static-page__content {
  color: var(--color-text-secondary);
}

.static-page__content > * + * {
  margin-top: var(--space-4);
}

.static-page__content form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.static-page__content .bbcodes {
  min-height: 46px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.static-page__content input[type="submit"].bbcodes {
  background: var(--color-accent);
  color: white;
}

.static-page__content .bbcodes:hover {
  transform: translateY(-1px);
}

.static-page__pagination {
  margin-top: var(--space-5);
}

.search-page {
  display: grid;
  gap: var(--space-5);
}

.search-page__header {
  margin-bottom: 0;
}

.search-panel {
  display: grid;
  gap: var(--space-5);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.search-fieldset {
  min-width: 0;
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.search-fieldset__content {
  display: grid;
  gap: var(--space-4);
}

.search-fieldset__hint {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.search-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.content-grid--search > form,
.content-grid--search > .pagination {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.content-grid--search > .card,
.content-grid--search > .box,
.content-grid--search > .comment {
  min-width: 0;
}

@media (max-width: 767px) {
  .page_form__inner,
  .page-form__inner,
  .static-page__card,
  .tags-page__card,
  .search-panel {
    padding: var(--space-4);
  }

  .login_check,
  .combo,
  .static-page__header,
  .search-grid {
    grid-template-columns: 1fr;
  }

  .form_submit,
  .search-panel__actions,
  .static-page__content form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
}

.breadcrumbs__link {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumbs__link:hover {
  color: var(--color-accent);
}

.breadcrumbs__current {
  color: var(--color-text-primary);
  font-weight: var(--font-medium);
}

.breadcrumbs__separator {
  color: var(--color-text-tertiary);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  grid-column: 1 / -1;
  width: 100%;
}

@media (min-width: 640px) {
  .pagination {
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 639px) {
  .pagination {
    align-items: flex-start;
  }
}

.pagination__info {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.pagination__controls {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  row-gap: var(--space-2);
  width: 100%;
  max-width: 100%;
}

.pagination__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  align-self: center;
  margin: calc(-1 * var(--space-1)) auto 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  line-height: 1.2;
  user-select: none;
  pointer-events: none;
}

.pagination__hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1;
}

.pagination__hint-text {
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.pagination__hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-width: 3px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(31, 41, 60, 0.95), rgba(15, 20, 32, 0.92));
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: var(--font-semibold);
  line-height: 1;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  transition: transform 120ms ease, border-bottom-width 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.pagination__hint kbd.is-pressed {
  border-bottom-width: 1px;
  background: linear-gradient(180deg, rgba(109, 74, 255, 0.34), rgba(31, 41, 60, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(1px);
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .pagination__hint {
    display: none;
  }
}

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  overflow: hidden;
  flex-shrink: 0;
}

.pagination__btn:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}

.pagination__btn > a,
.pagination__btn > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pagination__btn > span {
  opacity: 0.45;
}

.pagination__btn svg {
  width: 18px;
  height: 18px;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 768px) {
  .pagination__pages {
    justify-content: flex-start;
  }
}

.pagination__pages > a,
.pagination__pages > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 32px;
  padding: 0;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.pagination__pages > a:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}

.pagination__pages > span {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.pagination__pages > .nav_ext {
  width: 28px;
  min-width: 28px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-text-tertiary);
}

.pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.pagination__page:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}

.pagination__page--current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.pagination__page--current:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* ========================================
   COMMENTS
   ======================================== */

.comments-section {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.comments-section__title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-6);
}

.comments-count {
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  color: #9191a3;
  margin-left: var(--space-2);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.comment {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  margin-top: 30px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.comment__avatar {
  flex-shrink: 0;
}

.comment__avatar img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.comment__content {
  flex: 1;
  min-width: 0;
}

.comment__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.comment__author {
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.comment__date {
  font-size: var(--text-xs);
  color: #8f8fa1;
}

.comment__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.comment__actions a {
  display: inline-flex;
  text-decoration: none;
}

.comment__action {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  color: #9191a3;
  line-height: 1.2;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.comment__action:hover {
  color: var(--color-accent);
}

.comment__text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.mass_comments_action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
}

.mass_comments_action select[name="mass_action"] {
  min-width: clamp(220px, 24vw, 380px);
  min-height: 46px;
  padding: 0 var(--space-3);
  padding-right: 2.75rem;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-primary);
  background-image: linear-gradient(45deg, transparent 50%, #c7d2fe 50%), linear-gradient(135deg, #c7d2fe 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #eef2ff;
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  line-height: 1.2;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.mass_comments_action select[name="mass_action"]:focus {
  border-color: var(--color-accent-hover);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.mass_comments_action select[name="mass_action"] option {
  background: #141420;
  color: #eef2ff;
}

.mass_comments_action input[type="submit"],
.mass_comments_action .bbcodes {
  min-height: 46px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: 1;
  box-shadow: 0 16px 28px rgba(99, 102, 241, 0.24);
  text-shadow: none;
}

.mass_comments_action input[type="submit"]:hover,
.mass_comments_action .bbcodes:hover {
  background: var(--color-accent-hover);
}

/* ========================================
   META (Views, Comments, Date)
   ======================================== */

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: #8f8fa1;
}

.meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.meta svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   HOME SEO SECTION
   ======================================== */

.home-seo {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.home-intro {
  margin-bottom: var(--space-8);
}

.home-intro__card {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.25rem, 2vw, 2rem);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.home-intro__eyebrow {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.home-intro__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--color-text-primary);
}

.home-intro__lead {
  margin: 0;
  width: 100%;
  max-width: none;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.home-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.section__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.section__lead {
  margin: var(--space-3) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.section--category-heading {
  display: grid;
  gap: var(--space-2);
}

.section--category-heading .heading {
  margin: 0;
}

.home-intro__action {
  min-height: 44px;
}

.home-intro__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-accent);
  font-weight: var(--font-medium);
}

.home-intro__link:hover {
  color: var(--color-accent-hover);
}

.home-seo__grid {
  display: block;
  width: 100%;
}

.home-seo__card {
  padding: clamp(1.25rem, 2vw, 2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.home-seo__card--content {
  width: 100%;
}

.home-seo__eyebrow {
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.home-seo__card--content h1 {
  margin: 0 0 15px 0;
  font-size: clamp(1.625rem, 2.2vw, 2.375rem);
  line-height: 1.15;
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.home-seo__card--content h2 {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
}

.home-seo__card--content h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
}

.home-seo__card--content p {
  color: var(--color-text-secondary);
}

.home-seo__benefits {
  margin-top: var(--space-5);
}

.home-seo__grid ul,
.home-seo__grid ol {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-8);
  padding: 0;
  list-style: none;
}

.home-seo__grid li {
  position: relative;
  min-height: 2.75rem;
  padding: 0.9rem 1rem 0.9rem 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
}

.home-seo__grid li + li {
  margin-top: 0;
}

.home-seo__grid li::marker {
  content: '';
}

.home-seo__grid ul > li::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 1.2rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-secondary);
  box-shadow: 0 0 0 0.35rem rgba(244, 183, 64, 0.12);
}

.home-seo__grid ol {
  counter-reset: home-seo-list;
}

.home-seo__grid ol > li {
  counter-increment: home-seo-list;
}

.home-seo__grid ol > li::before {
  content: counter(home-seo-list);
  position: absolute;
  top: 0.8rem;
  left: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: var(--radius-full);
  background: rgba(109, 74, 255, 0.18);
  color: var(--color-text-primary);
  font-size: 0.82rem;
  font-weight: var(--font-bold);
  box-shadow: inset 0 0 0 1px rgba(109, 74, 255, 0.32);
}

.home-seo__grid li > ul,
.home-seo__grid li > ol {
  margin: var(--space-3) 0 0;
}

.home-seo__grid li > ul > li,
.home-seo__grid li > ol > li {
  background: rgba(15, 20, 32, 0.45);
}

.home-seo__benefits li::marker {
  content: '';
}

.home-seo__faq-block {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-seo .home-seo__faq-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  line-height: 1.2;
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.home-seo__faq-summary {
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.home-seo__faq-list {
  display: grid;
  gap: var(--space-4);
}

.home-seo__faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  height: 100%;
  overflow: hidden;
}

.home-seo__faq-item[open] {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.home-seo__faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-lg);
  line-height: 1.35;
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.home-seo__faq-toggle::-webkit-details-marker {
  display: none;
}

.home-seo__faq-toggle::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-accent);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.home-seo__faq-item[open] > .home-seo__faq-toggle::after {
  content: "−";
}

.home-seo__faq-body {
  padding: 0 var(--space-5) var(--space-5);
}

.home-seo__faq-answer {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.home-seo__details {
  margin-top: var(--space-5);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.home-seo__details--static {
  margin-top: var(--space-5);
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.home-seo__details--static .home-seo__details-body {
  padding: 0;
}

.home-seo__details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.home-seo__details-summary::-webkit-details-marker {
  display: none;
}

.home-seo__details-summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-accent);
}

.home-seo__details[open] > .home-seo__details-summary::after {
  content: "−";
}

.home-seo__details-body {
  padding: 0 var(--space-5) var(--space-5);
}

.home-seo__details-body > :first-child {
  margin-top: 0;
}

@media (max-width: 767px) {
  .home-intro__card,
  .home-seo__card,
  .home-seo__details-summary,
  .home-seo__details-body,
  .home-seo__faq-toggle,
  .home-seo__faq-body {
    padding: var(--space-4);
  }

  .home-seo__faq-toggle {
    font-size: var(--text-base);
  }

  .home-seo__faq-body {
    padding-top: 0;
  }

  .home-intro__actions {
    align-items: stretch;
  }
}

/* ========================================
   PERSONAL MESSAGES
   ======================================== */

.pm-page__card,
.pm-dialog__card {
  width: 100%;
  padding: clamp(1.25rem, 2vw, 2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.pm-page__header,
.pm-page__status-card,
.pm-page__section,
.pm-page__section-head,
.pm-page__composer,
.pm-dialog__header,
.pm-dialog__header-main,
.pm-dialog__reply,
.pm-dialog__reply-actions {
  display: grid;
  gap: var(--space-4);
}

.pm-page__header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: var(--space-8);
  gap: var(--space-5) clamp(1rem, 1.8vw, 2rem);
}

.pm-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: flex-end;
}

.pm-page__title {
  margin: 0;
  text-align: left;
  line-height: 1.08;
}

.pm-page__nav a,
.pm-page__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(180px, 14vw, 240px);
  min-height: 54px;
  padding: 0 clamp(1.15rem, 1.6vw, 1.75rem);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--transition-fast), color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pm-page__nav a:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.pm-page__nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
}

.pm-page__nav-link--active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 28px rgba(0, 0, 0, 0.16);
}

.pm-page__status-card {
  grid-column: 1 / -1;
  width: 100%;
  padding: clamp(1rem, 1.4vw, 1.5rem) clamp(1.25rem, 1.8vw, 2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pm-page__progress {
  width: 100%;
}

.pm-page__status-label,
.pm-page__limit {
  margin: 0;
}

.pm-page__status-label {
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  line-height: 1.45;
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}

.pm-page__section-text,
.pm-dialog__subtitle {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.pm-page__limit {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.4;
  color: var(--color-text-primary);
}

.pm-page__section + .pm-page__section,
.pm-dialog__reply {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.pm-page__section-title,
.pm-dialog__title,
.pm-dialog__reply-title {
  margin: 0;
  font-size: var(--text-xl);
  line-height: 1.2;
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.pm-page__list {
  min-width: 0;
}

.pm-page__list form {
  display: grid;
  gap: var(--space-4);
}

.pm-page__list--table form {
  display: block;
}

.pm-page__list table.pm {
  width: 100% !important;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pm-page__list--table table.pm {
  table-layout: fixed;
  background: transparent;
}

.pm-page__list table.pm thead tr {
  background: rgba(255, 255, 255, 0.04);
}

.pm-page__list table.pm th,
.pm-page__list table.pm td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  vertical-align: top;
  color: var(--color-text-secondary);
}

.pm-page__list table.pm tbody tr:last-child td {
  border-bottom: 0;
}

.pm-page__list table.pm th {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  text-align: left;
}

.pm-page__list--table table.pm th.pm_head.pm_icon,
.pm-page__list--table table.pm td.pm_icon {
  width: 46px;
  text-align: center;
}

.pm-page__list--table table.pm th.pm_head.pm_last_user,
.pm-page__list--table table.pm td.pm_last_user {
  width: 180px;
}

.pm-page__list--table table.pm th.pm_head.pm_checkbox,
.pm-page__list--table table.pm td.pm_checkbox {
  width: 54px;
  text-align: center;
}

.pm-page__list table.pm td.pm_icon {
  width: 44px;
  text-align: center;
  color: #c7c7d4;
}

.pm-page__list table.pm td.pm_last_user {
  width: 180px;
}

.pm-page__list table.pm td.pm_checkbox {
  width: 56px;
}

.pm-page__list table.pm td.pm_subj,
.pm-page__list table.pm td.pm_last_user,
.pm-page__list table.pm td.pm_icon {
  cursor: pointer;
}

.pm-page__list table.pm tbody tr {
  transition: background var(--transition-fast);
}

.pm-page__list table.pm tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pm-page__list--table table.pm tbody tr {
  background: transparent;
}

.pm-page__list--table table.pm tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.pm-page__list .pm_list a,
.pm-page__list .pm_subj a,
.pm-page__list .pm_last_user a,
.pm-page__list .pm-page__list a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.pm-page__list .pm_list a:hover,
.pm-page__list .pm_subj a:hover,
.pm-page__list .pm_last_user a:hover {
  color: var(--color-accent);
}

.pm-page__list .pm_subj > a {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: var(--text-base);
  line-height: 1.35;
}

.pm-page__list--table .pm_subj > a {
  display: block;
  font-weight: var(--font-semibold);
}

.pm-page__list .pm_last_message {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.pm-page__list--table .pm_last_message {
  display: block;
  margin-top: 0.25rem;
}

.pm-page__list .pm_with_user {
  margin-top: 0.35rem;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.pm-page__list--table .pm_with_user {
  display: block;
  margin-top: 0.5rem;
}

.pm-page__list .pm_with_user a {
  color: var(--color-accent);
}

.pm-page__list .pm_last_user .pm_last_user {
  margin-bottom: 0.25rem;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: 1.3;
  color: var(--color-text-primary);
}

.pm-page__list .pm_last_date {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.pm-page__list .pm_checkbox {
  text-align: center;
}

.pm-page__list .pm_checkbox .form-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pm-page__list .pm_checkbox .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.pm-page__list--table .pm_checkbox .form-check-label {
  width: 100%;
}

.pm-page__progress .pm_progress_bar,
.pm-page__list .pm_progress_bar {
  width: 100%;
  height: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.28);
}

.pm-page__progress .pm_progress_bar span,
.pm-page__list .pm_progress_bar span {
  display: block;
  height: 100%;
  color: transparent;
  background: linear-gradient(90deg, #ff7a59 0%, #ff9b54 100%);
}

.pm-page__list table.pm_navigation {
  width: 100% !important;
  margin-top: var(--space-4);
  border-collapse: collapse;
}

.pm-page__list--table table.pm_navigation {
  background: transparent;
}

.pm-page__list table.pm_navigation td {
  padding-top: var(--space-3);
  vertical-align: middle;
}

.pm-page__list--table table.pm_navigation td {
  width: auto !important;
}

.pm-page__list #pmlist_doaction {
  min-height: 42px;
  padding: 0 var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
}

.pm-page__list input[type="submit"],
.pm-page__list .bbcodes {
  min-height: 42px;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  color: #fff;
}

.pm-page__list .navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pm-page__list .navigation a,
.pm-page__list .navigation span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-decoration: none;
}

.pm-page__list .navigation a {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.pm-page__list .navigation a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pm-page__list .navigation span {
  color: #fff;
  background: var(--color-accent);
}

.pm-no-messages {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: var(--space-6);
  background: var(--color-bg-secondary);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  text-align: center;
}

.pm-page__editor,
.pm-dialog__editor {
  min-width: 0;
}

.pm-page__sec-code {
  width: 100%;
}

.pm-dialog__header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.pm-dialog__header-actions {
  display: flex;
  justify-content: flex-end;
}

.pm-dialog__delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-bottom: 10px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.pm-dialog__messages {
  display: grid;
  gap: var(--space-4);
}

.pm-dialog__message {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.pm-dialog__avatar {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.pm-dialog__avatar-image {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--color-bg-tertiary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  color: transparent;
}

.pm-dialog__online {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  color: #86efac;
}

.pm-dialog__online::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.pm-dialog__message-content {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.pm-dialog__message-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: var(--space-3);
}

.pm-dialog__message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
}

.pm-dialog__message-header {
  align-items: start;
}

.pm-dialog__message-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.pm-dialog__message-actions a {
  text-decoration: none;
}

.pm-dialog__message-actions .comment__action {
  min-height: 32px;
}

.comment__action--danger {
  color: #f87171;
}

.comment__text .quote.dlehidden,
.comment__text .dlehidden.quote,
.comment__text .quote.dlehidden p,
.comment__text .dlehidden.quote p {
  background: rgba(99, 102, 241, 0.08) !important;
  border: 1px solid rgba(99, 102, 241, 0.22) !important;
  border-left: 3px solid var(--color-accent) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--color-text-secondary) !important;
  box-shadow: none !important;
}

.comment__text .quote.dlehidden,
.comment__text .dlehidden.quote {
  padding: 0.875rem 1rem !important;
  margin: 0 0 var(--space-4) !important;
}

.comment__text .quote.dlehidden p:last-child,
.comment__text .dlehidden.quote p:last-child {
  margin-bottom: 0;
}

.comment__text .quote_block {
  margin: 0 0 var(--space-4);
}

.comment__text .title_quote {
  display: block;
  margin: 0;
  padding: 0.875rem 1rem 0.5rem;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(99, 102, 241, 0.12);
  color: #eef2ff;
  font-weight: var(--font-semibold) !important;
  box-shadow: none;
}

.comment__text .quote,
.comment__text blockquote {
  margin: 0;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: rgba(99, 102, 241, 0.08);
  color: var(--color-text-primary);
  box-shadow: none;
}

.comment__text .quote p:last-child,
.comment__text blockquote p:last-child {
  margin-bottom: 0;
}

.comment__text .dleshowhidden {
  padding: 0.875rem 1rem !important;
  border: 1px solid rgba(99, 102, 241, 0.22) !important;
  border-left: 3px solid var(--color-accent) !important;
  border-radius: var(--radius-lg) !important;
  background: rgba(99, 102, 241, 0.08) !important;
  color: var(--color-text-primary) !important;
  box-shadow: none !important;
}

.comment__text .dleshowhidden > .contenteditable,
.comment__text .dleshowhidden .contenteditable {
  background: transparent !important;
  color: inherit !important;
}

.comment__text .dleshowhidden p:last-child {
  margin-bottom: 0;
}

.comment__rating,
.fullstory__rating-box {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
}

.comment__rating {
  margin-left: auto;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.comment__rating-controls,
.fullstory__rating-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.comment__rating-value,
.fullstory__rating-value {
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.comment__rating-action,
.fullstory__rating-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 0.625rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.comment__rating-action svg,
.fullstory__rating-action svg {
  width: 16px;
  height: 16px;
}

.comment__rating-action:hover,
.fullstory__rating-action:hover {
  background: var(--color-surface-hover);
  color: var(--color-accent);
}

.comment__rating-action--like {
  color: var(--color-text-secondary);
}

.comment__rating-action--like:hover {
  color: var(--color-accent);
}

.fullstory__rating-action--like {
  color: #c4b5fd;
}

.fullstory__rating-action--like:hover {
  color: #e2d9ff;
}

.comment__rating-action--dislike {
  color: #fca5a5;
}

.comment__rating-action--dislike:hover {
  color: #fecaca;
}

.fullstory__rating-action--dislike {
  color: #fca5a5;
}

.fullstory__rating-action--dislike:hover {
  color: #fecaca;
}

.comment__rating .ratingplus {
  color: var(--color-text-primary);
}

.comment__rating .ratingminus {
  color: #fca5a5;
}

.fullstory__rating {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.fullstory__rating-box {
  padding: 0.625rem 1rem;
  color: var(--color-text-secondary);
}

.fullstory__rating-box--score {
  gap: var(--space-3);
}

.fullstory__rating-box--inline {
  flex-wrap: wrap;
}

.fullstory__rating-label {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.fullstory__rating-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
}

.fullstory__rating-box--score[data-rating-state="high"] .fullstory__rating-score {
  background: rgba(184, 154, 106, 0.16);
  color: #e8cb95;
}

.fullstory__rating-box--score[data-rating-state="mixed"] .fullstory__rating-score {
  background: rgba(106, 102, 125, 0.18);
  color: #dbd4f8;
}

.fullstory__rating-box--score[data-rating-state="low"] .fullstory__rating-score {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

.fullstory__rating-controls--like-dislike {
  gap: 0.75rem;
}

.fullstory__rating-controls--like-dislike .ratingplus {
  color: #d2c2ff;
}

.fullstory__rating-controls--like-dislike .ratingminus {
  color: #fca5a5;
}

.pm-dialog__text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.pm-dialog__text .quote_block {
  margin: 0;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: rgba(255, 255, 255, 0.03);
}

.pm-dialog__text .quote_block + .quote_block {
  margin-top: var(--space-3);
}

.pm-dialog__text .title_quote {
  display: block;
  margin: 0 0 var(--space-3) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--color-text-primary) !important;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1.4;
}

.pm-dialog__text .quote,
.pm-dialog__text blockquote {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--color-text-secondary) !important;
  font-family: inherit;
  font-size: var(--text-base);
  font-style: normal;
  line-height: 1.7;
}

.pm-dialog__text .quote p,
.pm-dialog__text blockquote p {
  margin: 0 0 var(--space-3);
}

.pm-dialog__text .quote p:last-child,
.pm-dialog__text blockquote p:last-child {
  margin-bottom: 0;
}

.pm-dialog__text .quote_link {
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-2);
  color: var(--color-text-secondary);
}

.pm-dialog__text .quote_link svg {
  color: currentColor;
}

.pm-dialog__signature {
  padding-top: var(--space-3);
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.pm-dialog__editor {
  display: grid;
  gap: var(--space-4);
}

.pm-edit-area .dlepm-editor > textarea.ajaxwysiwygeditor {
  display: none !important;
}

.pm-dialog__editor .bb-editor,
.pm-dialog__editor .dlepm-editor,
.pm-dialog__editor .wseditor,
.pm-dialog__editor .mobilewseditor {
  width: 100%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pm-dialog__editor .bb-pane {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--color-border);
  color: #f3f4f6;
}

.pm-dialog__editor .bb-btn,
.pm-dialog__editor .bb-pane > b,
.pm-dialog__editor .bb-sel {
  float: none;
}

.pm-dialog__editor .bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: #f3f4f6 !important;
  text-shadow: none !important;
  box-shadow: none;
}

.pm-dialog__editor .bb-pane > b,
.pm-dialog__editor [class^="bb-btn"],
.pm-dialog__editor [class*=" bb-btn"] {
  color: #f3f4f6 !important;
  opacity: 1 !important;
}

.pm-dialog__editor .bb-btn::before,
.pm-dialog__editor .bb-pane > b::before,
.pm-dialog__editor [class^="bb-btn"]::before,
.pm-dialog__editor [class*=" bb-btn"]::before {
  color: currentColor !important;
  opacity: 1 !important;
}

.pm-dialog__editor .bb-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pm-dialog__editor .bb-sel {
  padding: 0;
}

.pm-dialog__editor .bb-sel select {
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.pm-dialog__editor .bb-editor textarea {
  min-height: 240px;
  margin-top: 0;
  padding: 1rem 1.1rem;
  background: #0f1018;
  border: 0;
  color: var(--color-text-primary);
  box-shadow: none;
  resize: vertical;
}

.pm-dialog__editor .bb-editor textarea:focus {
  border-color: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35), 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.pm-dialog__editor .tox-tinymce {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  background: var(--color-bg-secondary) !important;
}

.pm-dialog__editor .tox .tox-editor-header,
.pm-dialog__editor .tox .tox-toolbar__primary,
.pm-dialog__editor .tox .tox-toolbar-overlord {
  background: rgba(255, 255, 255, 0.03) !important;
}

.pm-dialog__editor .tox .tox-tbtn,
.pm-dialog__editor .tox .tox-mbtn {
  color: #f3f4f6 !important;
}

.pm-dialog__editor .tox .tox-tbtn:hover,
.pm-dialog__editor .tox .tox-tbtn:focus,
.pm-dialog__editor .tox .tox-tbtn--enabled,
.pm-dialog__editor .tox .tox-mbtn:hover,
.pm-dialog__editor .tox .tox-mbtn:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.pm-dialog__editor .tox .tox-tbtn svg,
.pm-dialog__editor .tox .tox-mbtn__select-chevron svg,
.pm-dialog__editor .tox .tox-mbtn svg {
  filter: brightness(0) invert(1) opacity(0.96);
}

.pm-dialog__editor .tox .tox-collection__item,
.pm-dialog__editor .tox .tox-collection__item-label,
.pm-dialog__editor .tox .tox-mbtn__select-label {
  color: #f3f4f6 !important;
}

/* TinyMCE редактор PM - тёмная тема */
.pm-dialog__editor .tox.tox-tinymce {
  background: var(--color-bg-secondary) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
}

.pm-dialog__editor .tox .tox-editor-header {
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

.pm-dialog__editor .tox .tox-toolbar-overlord,
.pm-dialog__editor .tox .tox-toolbar__primary,
.pm-dialog__editor .tox .tox-toolbar__group {
  background: transparent !important;
  border-color: transparent !important;
}

.pm-dialog__editor .tox .tox-tbtn {
  color: var(--color-text-secondary) !important;
  fill: var(--color-text-secondary) !important;
}

.pm-dialog__editor .tox .tox-tbtn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--color-text-primary) !important;
}

.pm-dialog__editor .tox .tox-tbtn--enabled {
  background: rgba(99, 102, 241, 0.15) !important;
  color: var(--color-accent) !important;
}

.pm-dialog__editor .tox .tox-tbtn--enabled:hover {
  background: rgba(99, 102, 241, 0.2) !important;
}

.pm-dialog__editor .tox .tox-tbtn svg {
  fill: currentColor !important;
}

.pm-dialog__editor .tox .tox-edit-area__iframe {
  background: var(--color-bg-tertiary) !important;
}

/* Тёмная тема для содержимого редактора */
.pm-dialog__editor .tox .tox-edit-area {
  background: var(--color-bg-tertiary) !important;
}

.pm-dialog__editor .tox .mce-content-body {
  background: var(--color-bg-tertiary) !important;
  color: var(--color-text-primary) !important;
}

.pm-dialog__editor .tox .mce-content-body br {
  color: var(--color-text-primary) !important;
}

.pm-dialog__editor .tox .tox-statusbar {
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1px solid var(--color-border) !important;
  color: var(--color-text-tertiary) !important;
}

.pm-dialog__editor .tox .tox-statusbar__path {
  color: var(--color-text-tertiary) !important;
}

.tox.tox-silver-sink .tox-dialog-wrap__backdrop {
  background: rgba(2, 6, 23, 0.78) !important;
  backdrop-filter: blur(6px);
  z-index: 6200 !important;
}

.tox.tox-silver-sink,
.tox.tox-silver-sink .tox-dialog-wrap {
  z-index: 6201 !important;
}

.tox.tox-silver-sink .tox-dialog {
  position: relative;
  z-index: 6201 !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-xl) !important;
  background: var(--color-surface) !important;
  color: var(--color-text-primary) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden;
}

.tox.tox-silver-sink .tox-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 1rem 1.25rem !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid var(--color-border) !important;
  color: var(--color-text-primary) !important;
}

.tox.tox-silver-sink .tox-dialog__title {
  margin: 0;
  color: var(--color-text-primary) !important;
  font-size: var(--text-lg) !important;
  font-weight: var(--font-semibold) !important;
}

.tox.tox-silver-sink .tox-dialog__header .tox-button--naked,
.tox.tox-silver-sink .tox-dialog__header .tox-button--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-md) !important;
  background: transparent !important;
  color: var(--color-text-secondary) !important;
  box-shadow: none !important;
  font-size: 0 !important;
  text-shadow: none !important;
}

.tox.tox-silver-sink .tox-dialog__header .tox-button--naked:hover,
.tox.tox-silver-sink .tox-dialog__header .tox-button--naked:focus,
.tox.tox-silver-sink .tox-dialog__header .tox-button--icon:hover,
.tox.tox-silver-sink .tox-dialog__header .tox-button--icon:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--color-text-primary) !important;
}

.tox.tox-silver-sink .tox-dialog__header .tox-button--naked svg,
.tox.tox-silver-sink .tox-dialog__header .tox-button--icon svg {
  filter: brightness(0) invert(1) opacity(0.92);
}

.tox.tox-silver-sink .tox-dialog__body-content {
  padding: 1.125rem 1.25rem !important;
  color: var(--color-text-secondary) !important;
}

.tox.tox-silver-sink .tox-dialog__body-content,
.tox.tox-silver-sink .tox-dialog__body-content p,
.tox.tox-silver-sink .tox-dialog__body-content div {
  color: var(--color-text-secondary) !important;
}

.tox.tox-silver-sink .tox-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1px solid var(--color-border) !important;
}

.tox.tox-silver-sink .tox-dialog__footer-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
}

.tox.tox-silver-sink .tox-dialog__footer .tox-button {
  min-height: 42px;
  padding: 0 1rem !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.tox.tox-silver-sink .tox-dialog__footer .tox-button--secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--color-text-primary) !important;
}

.tox.tox-silver-sink .tox-dialog__footer .tox-button:not(.tox-button--secondary) {
  background: var(--color-accent) !important;
  border: 1px solid var(--color-accent) !important;
  color: #fff !important;
}

.pm-dialog__reply-submit {
  min-height: 46px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.2);
}

.pm-dialog__reply-submit:hover {
  background: var(--color-accent-hover);
}

.pm-dialog__reply-actions {
  justify-content: start;
}

/* Кнопки редактирования PM */
/* Кнопки редактирования PM */
.save-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-4);
}

.save-buttons .bbcodes,
.save-buttons input[type="button"],
.save-buttons input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 120px;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1;
  cursor: pointer !important;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.save-buttons .bbcodes:hover,
.save-buttons input[type="button"]:hover,
.save-buttons input[type="submit"]:hover {
  transform: translateY(-1px);
}

.save-buttons .bbcodes.cancelchanges,
.save-buttons input[type="button"]:not(.applychanges) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-text-primary);
}

.save-buttons .bbcodes.cancelchanges:hover,
.save-buttons input[type="button"]:not(.applychanges):hover {
  background: rgba(255, 255, 255, 0.1);
}

.save-buttons .bbcodes.applychanges,
.save-buttons input[type="button"].applychanges,
.save-buttons input[type="submit"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.save-buttons .bbcodes.applychanges:hover,
.save-buttons input[type="button"].applychanges:hover,
.save-buttons input[type="submit"]:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.pm-dialog__editor .save-buttons,
.pm-dialog__editor .save-buttons input[type="button"],
.pm-dialog__editor .save-buttons input[type="submit"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-4);
}

.pm-dialog__editor .save-buttons .bbcodes,
.pm-dialog__editor .save-buttons input[type="button"],
.pm-dialog__editor .save-buttons input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 120px;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1;
  cursor: pointer !important;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.pm-dialog__editor .save-buttons .bbcodes:hover,
.pm-dialog__editor .save-buttons input[type="button"]:hover,
.pm-dialog__editor .save-buttons input[type="submit"]:hover {
  transform: translateY(-1px);
}

.pm-dialog__editor .save-buttons .bbcodes.cancelchanges,
.pm-dialog__editor .save-buttons input[type="button"]:not(.applychanges) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-text-primary);
}

.pm-dialog__editor .save-buttons .bbcodes.cancelchanges:hover,
.pm-dialog__editor .save-buttons input[type="button"]:not(.applychanges):hover {
  background: rgba(255, 255, 255, 0.1);
}

.pm-dialog__editor .save-buttons .bbcodes.applychanges,
.pm-dialog__editor .save-buttons input[type="button"].applychanges,
.pm-dialog__editor .save-buttons input[type="submit"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.pm-dialog__editor .save-buttons .bbcodes.applychanges:hover,
.pm-dialog__editor .save-buttons input[type="button"].applychanges:hover,
.pm-dialog__editor .save-buttons input[type="submit"]:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

@media (max-width: 900px) {
  .pm-page__header,
  .pm-dialog__header {
    grid-template-columns: 1fr;
  }

  .pm-page__title {
    text-align: center;
  }

  .pm-page__nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
  }

  .pm-page__nav a,
  .pm-page__nav-link {
    min-width: 0;
    width: 100%;
  }

  .pm-dialog__message {
    grid-template-columns: 1fr;
  }

  .pm-dialog__avatar {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
  }

  .pm-dialog__avatar-image {
    width: 56px;
    height: 56px;
  }

  .pm-dialog__message-actions {
    margin-left: 0;
    justify-content: flex-start;
  }

  .pm-page__list table.pm,
  .pm-page__list table.pm thead,
  .pm-page__list table.pm tbody,
  .pm-page__list table.pm tr,
  .pm-page__list table.pm th,
  .pm-page__list table.pm td {
    display: block;
    width: 100% !important;
  }

  .pm-page__list table.pm thead {
    display: none;
  }

  .pm-page__list table.pm tbody tr {
    border-bottom: 1px solid var(--color-border);
  }

  .pm-page__list table.pm tbody tr:last-child {
    border-bottom: 0;
  }

  .pm-page__list table.pm td {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .pm-page__list table.pm_navigation,
  .pm-page__list table.pm_navigation tbody,
  .pm-page__list table.pm_navigation tr,
  .pm-page__list table.pm_navigation td {
    display: block;
    width: 100% !important;
    text-align: left !important;
  }

  .pm-page__list table.pm_navigation td + td {
    margin-top: var(--space-4);
  }
}

/* ========================================
   jQuery UI Dialog - тёмная тема
   ======================================== */

.ui-widget-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  z-index: 5000 !important;
  background: rgba(2, 6, 23, 0.78) !important;
  opacity: 1 !important;
  backdrop-filter: blur(6px);
}

.ui-dialog.ui-widget.ui-widget-content {
  position: fixed !important;
  z-index: 5001 !important;
  padding: 0 !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-xl) !important;
  background: var(--color-surface) !important;
  color: var(--color-text-primary) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden !important;
}

.ui-dialog.ui-widget.ui-widget-content,
.ui-dialog.ui-widget.ui-widget-content .ui-dialog-titlebar,
.ui-dialog.ui-widget.ui-widget-content .ui-dialog-content,
.ui-dialog.ui-widget.ui-widget-content .ui-dialog-buttonpane {
  isolation: isolate;
}

.ui-dialog .ui-dialog-titlebar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 1rem 1.25rem !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

.ui-dialog .ui-dialog-title {
  float: none !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  color: var(--color-text-primary) !important;
  font-size: var(--text-lg) !important;
  font-weight: var(--font-semibold) !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
}

.ui-dialog .ui-dialog-titlebar-close {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-md) !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.ui-dialog .ui-dialog-titlebar-close .ui-button-icon-space {
  display: none !important;
}

.ui-dialog .ui-dialog-titlebar-close .ui-button-text,
.ui-dialog .ui-dialog-titlebar-close .ui-button-text-only,
.ui-dialog .ui-dialog-titlebar-close {
  font-size: 0 !important;
  color: transparent !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  text-shadow: none !important;
  white-space: nowrap !important;
}

.ui-dialog .ui-dialog-titlebar-close .ui-icon,
.ui-dialog .ui-dialog-titlebar-close .ui-button-icon {
  position: static !important;
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  opacity: 1 !important;
  background-size: 14px 14px !important;
}

.ui-dialog .ui-dialog-titlebar-close::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  font-size: 1.25rem;
  line-height: 1;
  text-indent: 0;
  pointer-events: none;
}

.ui-dialog .ui-dialog-titlebar-close:hover::before {
  color: #fff;
}

.ui-dialog .ui-dialog-content {
  padding: 1.125rem 1.25rem !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--color-text-secondary) !important;
}

#dlepopup,
#dlepopup .dle-confirm-message {
  color: var(--color-text-secondary) !important;
  font-size: var(--text-base) !important;
  line-height: 1.6 !important;
}

.ui-dialog .ui-dialog-buttonpane {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 1rem 1.25rem !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1px solid var(--color-border) !important;
  text-align: left !important;
}

.ui-dialog .ui-dialog-buttonset {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  margin-left: auto !important;
}

.ui-dialog .ui-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 120px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 1rem !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
}

.ui-dialog .ui-dialog-buttonset button:first-child {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--color-text-primary) !important;
}

.ui-dialog .ui-dialog-buttonset button:last-child,
.ui-dialog .ui-dialog-buttonset .ui-button-delete {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

.ui-dialog .ui-dialog-buttonset button:last-child:hover,
.ui-dialog .ui-dialog-buttonset .ui-button-delete:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

#dropmenudiv {
  padding: 0.5rem !important;
  min-width: 240px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--color-surface) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32) !important;
  z-index: 5100 !important;
  overflow: hidden !important;
}

#dropmenudiv a {
  display: flex !important;
  align-items: center !important;
  min-height: 42px !important;
  padding: 0.7rem 0.9rem !important;
  border-radius: var(--radius-md) !important;
  color: var(--color-text-secondary) !important;
  font-size: var(--text-sm) !important;
  font-weight: var(--font-medium) !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background-color var(--transition-fast), color var(--transition-fast) !important;
}

#dropmenudiv a:hover,
#dropmenudiv a:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--color-text-primary) !important;
}

#dropmenudiv a + a {
  margin-top: 0.2rem;
}

#dropmenudiv a:last-child {
  color: #fca5a5 !important;
}

#dropmenudiv a:last-child:hover,
#dropmenudiv a:last-child:focus {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fecaca !important;
}

.dle-popup-quickedit.ui-dialog,
.ui-dialog.dle-popup-quickedit,
.ui-dialog[aria-describedby="dlepopup-news-edit"] {
  padding: 0 !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-xl) !important;
  background: var(--color-surface) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden !important;
}

.dle-popup-quickedit .ui-dialog-titlebar,
.ui-dialog[aria-describedby="dlepopup-news-edit"] .ui-dialog-titlebar {
  padding: 1rem 1.5rem !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

.dle-popup-quickedit .ui-dialog-title,
.ui-dialog[aria-describedby="dlepopup-news-edit"] .ui-dialog-title {
  color: var(--color-text-primary) !important;
  font-size: var(--text-2xl) !important;
  font-weight: var(--font-semibold) !important;
}

.dle-popup-quickedit .ui-dialog-content,
.ui-dialog[aria-describedby="dlepopup-news-edit"] .ui-dialog-content {
  padding: 1.5rem !important;
  color: var(--color-text-secondary) !important;
}

#dlepopup-news-edit {
  color: var(--color-text-secondary);
}

#dlepopup-news-edit form[id^="ajaxnews"] {
  display: grid;
  gap: var(--space-4);
}

#dlepopup-news-edit > script + form,
#dlepopup-news-edit > form {
  margin: 0;
}

#dlepopup-news-edit > form > div:first-child .quick-edit-text {
  min-height: 52px;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

#dlepopup-news-edit .xfieldsrow {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding-top: 0;
  margin: 0;
  clear: none;
}

#dlepopup-news-edit .xfieldsrow + .xfieldsrow {
  margin-top: var(--space-4);
}

#dlepopup-news-edit .xfieldsrow > b,
#dlepopup-news-edit .xfieldscolleft {
  float: none;
  width: auto;
  margin: 0;
  padding: 0.85rem 0 0;
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1.45;
}

#dlepopup-news-edit .xfieldscolright {
  float: none;
  width: auto;
  min-width: 0;
}

#dlepopup-news-edit .xfieldsrow .form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text-primary);
}

#dlepopup-news-edit .xfieldsrow .form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

#dlepopup-news-edit .quick-edit-text,
#dlepopup-news-edit .quick-edit-datetime,
#dlepopup-news-edit input[type="text"],
#dlepopup-news-edit input[type="email"],
#dlepopup-news-edit input[type="url"],
#dlepopup-news-edit input[type="search"],
#dlepopup-news-edit input[type="number"],
#dlepopup-news-edit select,
#dlepopup-news-edit textarea.quick-edit-textarea {
  width: 100% !important;
  min-height: 46px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  box-shadow: none;
}

#dlepopup-news-edit .quick-edit-text::placeholder,
#dlepopup-news-edit .quick-edit-datetime::placeholder,
#dlepopup-news-edit textarea.quick-edit-textarea::placeholder {
  color: var(--color-text-tertiary);
}

#dlepopup-news-edit textarea.quick-edit-textarea {
  min-height: 140px;
  padding: 1rem 1.1rem;
  resize: vertical;
}

#dlepopup-news-edit select,
#dlepopup-news-edit select#category {
  min-height: 46px;
  max-width: none !important;
  background-color: var(--color-bg-secondary);
  background-image: linear-gradient(45deg, transparent 50%, #cbd5e1 50%), linear-gradient(135deg, #cbd5e1 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--color-text-primary);
}

#dlepopup-news-edit select[multiple],
#dlepopup-news-edit select#category[multiple] {
  min-height: 180px;
  padding: 0.5rem;
  background-image: none;
}

#dlepopup-news-edit select option {
  background: #171824;
  color: var(--color-text-primary);
}

#dlepopup-news-edit select[multiple] option,
#dlepopup-news-edit select#category[multiple] option {
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
}

#dlepopup-news-edit select[multiple] option:checked,
#dlepopup-news-edit select#category[multiple] option:checked {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.72), rgba(79, 70, 229, 0.72)) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 9999px rgba(99, 102, 241, 0.72);
}

#dlepopup-news-edit select[multiple] option:hover,
#dlepopup-news-edit select#category[multiple] option:hover {
  background: rgba(255, 255, 255, 0.08);
}

#dlepopup-news-edit .quick-edit-text:focus,
#dlepopup-news-edit .quick-edit-datetime:focus,
#dlepopup-news-edit input[type="text"]:focus,
#dlepopup-news-edit select:focus,
#dlepopup-news-edit textarea.quick-edit-textarea:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

#dlepopup-news-edit .bb-editor,
#dlepopup-news-edit .wseditor,
#dlepopup-news-edit .mobilewseditor,
#dlepopup-news-edit .dlecomments-editor {
  width: 100%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

#dlepopup-news-edit .bb-pane {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

#dlepopup-news-edit .bb-editor textarea {
  min-height: 220px;
  margin-top: 0;
  padding: 1rem 1.1rem;
  background: var(--color-bg-tertiary);
  border: 0;
  color: var(--color-text-primary);
}

#dlepopup-news-edit .tox.tox-tinymce {
  display: flex !important;
  flex-direction: column;
  min-height: 300px;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--color-bg-secondary) !important;
  overflow: hidden;
}

#dlepopup-news-edit .tox .tox-editor-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

#dlepopup-news-edit .tox .tox-toolbar-overlord,
#dlepopup-news-edit .tox .tox-toolbar__primary,
#dlepopup-news-edit .tox .tox-toolbar__group,
#dlepopup-news-edit .tox .tox-anchorbar {
  background: transparent !important;
  border-color: transparent !important;
}

#dlepopup-news-edit .tox .tox-tbtn,
#dlepopup-news-edit .tox .tox-mbtn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: var(--radius-md) !important;
  color: var(--color-text-secondary) !important;
  background: transparent !important;
  box-shadow: none !important;
}

#dlepopup-news-edit .tox .tox-tbtn svg,
#dlepopup-news-edit .tox .tox-mbtn svg,
#dlepopup-news-edit .tox .tox-mbtn__select-chevron svg {
  fill: currentColor !important;
  filter: none !important;
}

#dlepopup-news-edit .tox .tox-tbtn:hover,
#dlepopup-news-edit .tox .tox-tbtn:focus,
#dlepopup-news-edit .tox .tox-mbtn:hover,
#dlepopup-news-edit .tox .tox-mbtn:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--color-text-primary) !important;
}

#dlepopup-news-edit .tox .tox-tbtn--enabled,
#dlepopup-news-edit .tox .tox-tbtn--enabled:hover {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #c7d2fe !important;
}

#dlepopup-news-edit .tox .tox-edit-area,
#dlepopup-news-edit .tox .tox-sidebar-wrap,
#dlepopup-news-edit .tox .tox-editor-container,
#dlepopup-news-edit .tox .tox-edit-area__iframe {
  background: var(--color-bg-tertiary) !important;
}

#dlepopup-news-edit .xfieldsnote,
#dlepopup-news-edit .xfieldsrow .hint,
#dlepopup-news-edit .xfieldsrow small,
#dlepopup-news-edit .xfieldsrow .xfieldnote,
#dlepopup-news-edit .xfieldsrow .field-note {
  display: block;
  margin-top: 0.5rem;
  color: var(--color-text-tertiary) !important;
  font-size: var(--text-xs);
  line-height: 1.5;
}

#dlepopup-news-edit [id^="xfupload_"] {
  width: 100%;
  padding: 1rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

#dlepopup-news-edit .qq-uploader {
  width: 100%;
}

#dlepopup-news-edit .qq-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1) !important;
  color: #c7d2fe !important;
  box-shadow: none !important;
}

#dlepopup-news-edit .qq-upload-button:hover {
  background: rgba(99, 102, 241, 0.16) !important;
}

#dlepopup-news-edit [id^="uploadedfile_"] {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

#dlepopup-news-edit .file-box,
#dlepopup-news-edit .uploadedfile {
  width: 100%;
  max-width: none;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
}

#dlepopup-news-edit .xfieldimagegallery,
#dlepopup-news-edit .xfieldimagegallery li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#dlepopup-news-edit .xfieldimagegallery li img {
  float: none;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
}

.dle-popup-quickedit .ui-dialog-buttonpane,
.ui-dialog[aria-describedby="dlepopup-news-edit"] .ui-dialog-buttonpane {
  padding: 1rem 1.5rem !important;
}

.dle-popup-quickedit .ui-dialog-buttonset,
.ui-dialog[aria-describedby="dlepopup-news-edit"] .ui-dialog-buttonset {
  width: 100%;
  justify-content: flex-end;
}

@media (max-width: 767px) {
  #dlepopup-news-edit .xfieldsrow {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  #dlepopup-news-edit .xfieldsrow > b,
  #dlepopup-news-edit .xfieldscolleft {
    padding-top: 0;
  }

  .dle-popup-quickedit .ui-dialog-content,
  .ui-dialog[aria-describedby="dlepopup-news-edit"] .ui-dialog-content,
  .dle-popup-quickedit .ui-dialog-buttonpane,
  .ui-dialog[aria-describedby="dlepopup-news-edit"] .ui-dialog-buttonpane {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .home-seo__card {
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
  }
}

@media (min-width: 1280px) {
  .home-seo__card {
    padding: clamp(2rem, 2.2vw, 2.75rem);
  }

  .home-seo__faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .home-seo__faq-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ========================================
   PM COMPOSE EDITOR THEME
   ======================================== */

.pm-page__editor .dlepm-editor > textarea.ajaxwysiwygeditor {
  display: none !important;
}

.pm-page__editor .bb-editor,
.pm-page__editor .dlepm-editor,
.pm-page__editor .wseditor,
.pm-page__editor .mobilewseditor {
  width: 100%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.pm-page__editor .bb-pane {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.pm-page__editor .bb-editor textarea {
  min-height: 260px;
  margin-top: 0;
  padding: 1rem 1.1rem;
  background: var(--color-bg-tertiary);
  border: 0;
  color: var(--color-text-primary);
  box-shadow: none;
  resize: vertical;
}

.pm-page__editor .tox.tox-tinymce {
  display: flex !important;
  flex-direction: column;
  min-height: 320px;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--color-bg-secondary) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.pm-page__editor .tox .tox-editor-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

.pm-page__editor .tox .tox-toolbar-overlord,
.pm-page__editor .tox .tox-toolbar__primary,
.pm-page__editor .tox .tox-toolbar__group,
.pm-page__editor .tox .tox-anchorbar {
  background: transparent !important;
  border-color: transparent !important;
}

.pm-page__editor .tox .tox-toolbar__group {
  gap: 0.2rem;
  padding: 0.35rem;
}

.pm-page__editor .tox .tox-tbtn,
.pm-page__editor .tox .tox-mbtn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: var(--radius-md) !important;
  color: var(--color-text-secondary) !important;
  fill: currentColor !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pm-page__editor .tox .tox-tbtn svg,
.pm-page__editor .tox .tox-mbtn svg,
.pm-page__editor .tox .tox-mbtn__select-chevron svg {
  fill: currentColor !important;
  filter: none !important;
}

.pm-page__editor .tox .tox-tbtn:hover,
.pm-page__editor .tox .tox-tbtn:focus,
.pm-page__editor .tox .tox-mbtn:hover,
.pm-page__editor .tox .tox-mbtn:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--color-text-primary) !important;
}

.pm-page__editor .tox .tox-tbtn--enabled,
.pm-page__editor .tox .tox-tbtn--enabled:hover {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #c7d2fe !important;
}

.pm-page__editor .tox .tox-tbtn--disabled {
  opacity: 0.45 !important;
}

.pm-page__editor .tox .tox-edit-area,
.pm-page__editor .tox .tox-sidebar-wrap,
.pm-page__editor .tox .tox-editor-container {
  background: var(--color-bg-tertiary) !important;
}

.pm-page__editor .tox .tox-edit-area__iframe {
  background: var(--color-bg-tertiary) !important;
}

.pm-page__editor .tox .tox-statusbar {
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1px solid var(--color-border) !important;
  color: var(--color-text-tertiary) !important;
}

.pm-page__editor .tox .tox-statusbar a,
.pm-page__editor .tox .tox-statusbar__path,
.pm-page__editor .tox .tox-statusbar__wordcount {
  color: var(--color-text-tertiary) !important;
}

/* ========================================
   PM COMPOSE FORM BUTTONS
   ======================================== */

.pm-page__actions .btn,
.pm-page__actions .btn-border {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border: 0;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--transition-fast);
  outline: none;
}

.pm-page__actions .btn {
  background: var(--color-accent);
  color: white;
}

.pm-page__actions .btn:hover {
  background: var(--color-accent-hover);
}

.pm-page__actions .btn-border {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  line-height: 1.5;
}

.pm-page__actions .btn-border:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-accent-hover);
}


/* SOURCE: schedule.css */
/**
 * Home schedule widget
 */

.home-schedule {
  margin-bottom: var(--space-8);
}

.home-schedule__inner {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(18, 18, 26, 0.98) 0%, rgba(12, 12, 18, 0.98) 100%);
  box-shadow: var(--shadow-lg);
}

.home-schedule__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.home-schedule__heading {
  flex: 1 1 auto;
  display: grid;
  gap: var(--space-2);
}

.home-schedule__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: #c4b5fd;
}

.home-schedule__title {
  font-size: clamp(var(--text-2xl), 2.5vw, var(--text-4xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.home-schedule__subtitle {
  max-width: 72ch;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.home-schedule__all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.08);
  color: #ddd6fe;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.home-schedule__all-link:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.32);
  background: rgba(124, 58, 237, 0.14);
}

.home-schedule__tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-2);
}

.home-schedule__tab {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.home-schedule__tab:hover,
.home-schedule__tab:focus-visible {
  border-color: rgba(124, 58, 237, 0.22);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.home-schedule__tab.is-active {
  border-color: rgba(124, 58, 237, 0.26);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(124, 58, 237, 0.04) 100%);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.1);
}

.home-schedule__tab-day {
  min-width: 0;
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-schedule__tab-meta {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.home-schedule__tab.is-active .home-schedule__tab-meta {
  color: rgba(241, 241, 244, 0.92);
}

.home-schedule__tab-count {
  justify-self: start;
  margin-top: var(--space-1);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
}

.home-schedule__tab.is-active .home-schedule__tab-count {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.home-schedule__panel[hidden] {
  display: none !important;
}

.home-schedule__panel {
  display: grid;
  gap: var(--space-4);
}

.home-schedule__panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}

.home-schedule__panel-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
}

.home-schedule__panel-meta,
.home-schedule__panel-count {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.home-schedule__list {
  display: grid;
  gap: var(--space-3);
  max-height: 38rem;
  overflow: auto;
  padding-right: var(--space-1);
}

.home-schedule__item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.home-schedule__item:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.18);
  background: rgba(255, 255, 255, 0.045);
}

.home-schedule__item-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3);
  color: inherit;
}

.home-schedule__poster {
  position: relative;
  display: block;
  width: 72px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.home-schedule__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-schedule__content {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
}

.home-schedule__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-schedule__summary {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.home-schedule__time {
  display: grid;
  justify-items: center;
  gap: 0.125rem;
  min-width: 74px;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(99, 102, 241, 0.12);
  color: #fff;
}

.home-schedule__time strong {
  font-size: var(--text-base);
  line-height: 1;
}

.home-schedule__time small {
  font-size: 0.6875rem;
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.72);
}

.home-schedule__empty {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.02);
}

.home-schedule__empty-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.home-schedule__empty-text {
  max-width: 60ch;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

@media (max-width: 1024px) {
  .home-schedule__header,
  .home-schedule__panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-schedule__tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: var(--space-1);
    scrollbar-width: thin;
  }

  .home-schedule__tab {
    flex: 0 0 150px;
  }
}

@media (max-width: 768px) {
  .home-schedule__inner {
    padding: var(--space-5);
  }

  .home-schedule__item-link {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
  }

  .home-schedule__time {
    grid-column: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
  }

  .home-schedule__time small {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .home-schedule {
    margin-bottom: var(--space-6);
  }

  .home-schedule__inner {
    padding: var(--space-4);
    border-radius: var(--radius-xl);
  }

  .home-schedule__tab {
    flex-basis: 138px;
    padding: 0.75rem 0.875rem;
  }

  .home-schedule__item-link {
    gap: var(--space-3);
    padding: 0.875rem;
  }

  .home-schedule__poster {
    width: 56px;
  }

  .home-schedule__name {
    font-size: var(--text-base);
  }
}


/* SOURCE: tree-comments.css */
/* ========================================
   TREE COMMENTS
   ======================================== */

.comments-tree-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comments-tree-list .comments-tree-item {
  margin: 0;
  padding: 0;
}

.comments-tree-list > .comments-tree-item + .comments-tree-item {
  margin-top: var(--space-4);
}

.comments-tree-list .comments-tree-list {
  margin-top: var(--space-3);
  margin-left: var(--space-6);
  padding-left: var(--space-5);
  border-left: 2px solid var(--color-border);
}

.comments-tree-list .comments-tree-list > .comments-tree-item + .comments-tree-item {
  margin-top: var(--space-3);
}

.comment-tree-node {
  position: relative;
}

.comments-tree-list .comments-tree-list > .comments-tree-item > .comment-tree-node::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-5) - 2px);
  top: 24px;
  width: calc(var(--space-5) + 2px);
  height: 2px;
  background: var(--color-border);
}

.comment-tree-node--child .comment {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.comment__reply-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.comment__replycount {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-tertiary);
  font-size: 0.75rem;
  line-height: 1;
}

.comment__mass-action {
  display: inline-flex;
  align-items: center;
}

.comment__mass-action:empty {
  display: none;
}

.comment__mass-action .form-check-input {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-primary);
  cursor: pointer;
  accent-color: var(--color-accent);
}

.comment__action--edit {
  color: var(--color-text-tertiary);
}

.comment__action--edit:hover {
  color: var(--color-accent);
}

.comment-tree-node .comments-edit-area {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: clamp(1rem, 1.6vw, 1.5rem);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.comment-tree-node .comments-edit-area .wseditor,
.comment-tree-node .comments-edit-area .mobilewseditor,
.comment-tree-node .comments-edit-area .dlecomments-editor,
.comment-tree-node .comments-edit-area .bb-editor {
  width: 100%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comment-tree-node .comments-edit-area .bb-editor textarea {
  min-height: 220px;
  margin-top: 0;
  padding: 1rem 1.1rem;
  background: var(--color-bg-tertiary);
  border: 0;
  color: var(--color-text-primary);
  resize: vertical;
}

.comment-tree-node .comments-edit-area .tox.tox-tinymce {
  display: flex !important;
  flex-direction: column;
  min-height: 300px;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--color-bg-secondary) !important;
  overflow: hidden;
}

.comment-tree-node .comments-edit-area .tox .tox-editor-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

.comment-tree-node .comments-edit-area .tox .tox-toolbar-overlord,
.comment-tree-node .comments-edit-area .tox .tox-toolbar__primary,
.comment-tree-node .comments-edit-area .tox .tox-toolbar__group,
.comment-tree-node .comments-edit-area .tox .tox-anchorbar {
  background: transparent !important;
  border-color: transparent !important;
}

.comment-tree-node .comments-edit-area .tox .tox-tbtn,
.comment-tree-node .comments-edit-area .tox .tox-mbtn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: var(--radius-md) !important;
  color: var(--color-text-secondary) !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.comment-tree-node .comments-edit-area .tox .tox-tbtn svg,
.comment-tree-node .comments-edit-area .tox .tox-mbtn svg,
.comment-tree-node .comments-edit-area .tox .tox-mbtn__select-chevron svg {
  fill: currentColor !important;
  filter: none !important;
}

.comment-tree-node .comments-edit-area .tox .tox-tbtn:hover,
.comment-tree-node .comments-edit-area .tox .tox-tbtn:focus,
.comment-tree-node .comments-edit-area .tox .tox-mbtn:hover,
.comment-tree-node .comments-edit-area .tox .tox-mbtn:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--color-text-primary) !important;
}

.comment-tree-node .comments-edit-area .tox .tox-tbtn--enabled,
.comment-tree-node .comments-edit-area .tox .tox-tbtn--enabled:hover {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #c7d2fe !important;
}

.comment-tree-node .comments-edit-area .tox .tox-edit-area,
.comment-tree-node .comments-edit-area .tox .tox-sidebar-wrap,
.comment-tree-node .comments-edit-area .tox .tox-editor-container,
.comment-tree-node .comments-edit-area .tox .tox-edit-area__iframe {
  background: var(--color-bg-tertiary) !important;
}

.comment-tree-node .comments-edit-area .comments-image-uploader-area {
  margin-top: 0;
}

.comment-tree-node .comments-edit-area #hidden-comments-image-uploader-edit {
  margin-top: var(--space-3);
}

.comment-tree-node .comments-edit-area .save-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-3);
  width: 100% !important;
  padding-top: var(--space-2) !important;
  text-align: left !important;
}

.comment-tree-node .comments-edit-area .save-buttons .bbcodes,
.comment-tree-node .comments-edit-area .save-buttons input[type="button"],
.comment-tree-node .comments-edit-area .save-buttons input[type="submit"] {
  min-height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
}

