﻿@font-face {
    font-family: "e-Ukraine";
    src: url("/fonts/e-Ukraine-Regular.woff2") format("woff2"),
         url("/fonts/e-Ukraine-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "e-Ukraine";
    src: url("/fonts/e-Ukraine-Bold.woff2") format("woff2"),
         url("/fonts/e-Ukraine-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "e-UkraineHead";
    src: url("/fonts/e-UkraineHead-Medium.woff2") format("woff2"),
         url("/fonts/e-UkraineHead-Medium.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "e-UkraineHead";
    src: url("/fonts/e-UkraineHead-Bold.woff2") format("woff2"),
         url("/fonts/e-UkraineHead-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-0: #0b0d10;
    --bg-1: #11151c;
    --bg-2: #151a22;
    --surface: #161b24;
    --surface-2: #1c2330;
    --surface-3: #222b3b;
    --border: #2b3443;
    --text: #eef1f6;
    --muted: #98a2b3;
    --muted-2: #6b7280;
    --brand: #FCBD00;
    --brand-2: #e6aa00;
    --accent: #FCBD00;
    --success: #2ed573;
    --danger: #ff4757;
    --shadow-1: 0 20px 50px rgba(0, 0, 0, 0.45);
    --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.35);
    --radius-1: 10px;
    --radius-2: 16px;
    --radius-3: 24px;
    --glow: 0 0 30px rgba(252, 189, 0, 0.2);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "e-Ukraine", "Segoe UI", Tahoma, sans-serif;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(22, 27, 36, 0.95);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.25;
    z-index: -1;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
}

input[type="text"],
input[type="date"],
input[type="url"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(252, 189, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(252, 189, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page-admin-form .container:not(.gp-footer-inner),
.page-add-game .container:not(.gp-footer-inner),
.page-edit-game .container:not(.gp-footer-inner),
.page-news-add .container:not(.gp-footer-inner),
.page-news-edit .container:not(.gp-footer-inner),
.page-admin-gallery .container:not(.gp-footer-inner),
.page-admin-status .container:not(.gp-footer-inner) {
    max-width: 1200px;
    margin: 40px auto;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-2);
}

.admin-gallery {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-gallery-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-gallery-sub {
    color: var(--muted);
    font-size: 13px;
}

.admin-gallery-upload form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-gallery-upload .file-input {
    display: none;
}

.admin-gallery-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 12px;
    color: var(--muted);
}

.filter-input,
.filter-select {
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0b0f16;
    color: #e8eefb;
    padding: 0 12px;
}

.filter-actions {
    display: flex;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.admin-gallery-bulk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #0f141e;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
}

.bulk-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bulk-count {
    font-size: 13px;
    color: var(--muted);
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.admin-gallery-card {
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Admin game form enhancements */
.page-admin-form .admin-form form {
  column-count: 2;
  column-gap: 24px;
}

.admin-game-form {
  width: 100%;
}

.admin-game-layout {
  display: block;
  gap: 0;
  align-items: start;
}

.admin-game-main {
  min-width: 0;
}

.admin-section-title {
  margin: 34px 0 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.admin-game-main .admin-section-title:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.admin-game-form .admin-section-title:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.admin-form-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.admin-form-section > .form-group:last-child {
  margin-bottom: 0;
}

.page-add-game .admin-section-title,
.page-edit-game .admin-section-title {
  margin: 34px 0 14px;
  padding-top: 0;
  border-top: none;
}

.admin-section-subtitle {
  margin: -8px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}


.page-add-game .admin-form-section,
.page-edit-game .admin-form-section {
  margin-bottom: 18px;
  background: var(--surface);
}

.page-add-game .admin-form-section:nth-of-type(odd),
.page-edit-game .admin-form-section:nth-of-type(odd) {
  background: var(--surface);
}

.page-add-game .admin-form-section:nth-of-type(even),
.page-edit-game .admin-form-section:nth-of-type(even) {
  background: var(--surface-2);
}

.page-add-game .admin-form-section,
.page-edit-game .admin-form-section {
  margin-bottom: 38px;
}

.admin-game-summary {
  position: sticky;
  top: 90px;
}

.admin-summary-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.admin-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.admin-summary-poster-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0f141e;
}

.admin-summary-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.admin-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.admin-summary-line strong {
  color: var(--text);
  font-size: 12px;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-admin-form .admin-form form > .form-group,
.page-admin-form .admin-form form > .form-actions,
.page-admin-form .admin-form form > .shops-admin-grid,
.page-admin-form .admin-form form > .dates-grid,
.page-admin-form .admin-form form > .checkbox-wrapper {
  break-inside: avoid;
}
.page-admin-form .form-group {
  margin-bottom: 24px;
}
.page-admin-form h2 {
  font-size: 22px;
  text-transform: none;
}
.page-admin-form label {
  font-size: 13px;
  text-transform: none;
}
.page-admin-form .checkbox-wrapper {
  column-gap: 10px;
    row-gap: 10px;
}
.page-admin-form .checkbox-label {
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.page-admin-form .checkbox-label.is-checked {
  border-color: rgba(252, 189, 0, 0.65);
  background: rgba(252, 189, 0, 0.08);
  color: #f2f2f2;
}

.page-admin-form .checkbox-label input[type="checkbox"],
.page-admin-form .checkbox-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
  display: inline-grid;
  place-items: center;
  transition: all 0.18s ease;
  cursor: pointer;
}

.page-admin-form .checkbox-label input[type="checkbox"] {
  border-radius: 6px;
}

.page-admin-form .checkbox-label input[type="radio"] {
  border-radius: 999px;
}

.page-admin-form .checkbox-label input[type="checkbox"]:checked {
  border-color: #fcbd00;
  background-color: rgba(252, 189, 0, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fcbd00' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.6 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.page-admin-form .checkbox-label input[type="radio"]:checked {
  border-color: #fcbd00;
  background-color: rgba(252, 189, 0, 0.18);
  box-shadow: inset 0 0 0 4px #fcbd00;
}

.page-admin-form .checkbox-label input[type="checkbox"]:focus-visible,
.page-admin-form .checkbox-label input[type="radio"]:focus-visible {
  outline: 2px solid rgba(252, 189, 0, 0.55);
  outline-offset: 2px;
}
.page-admin-form .dates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}
.page-admin-form .dates-grid > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}
.page-admin-form .dates-grid > div.is-disabled {
  opacity: 0.5;
  filter: saturate(0.3);
}
.page-admin-form .dates-grid > div label {
  font-size: 12px;
  color: #a6a6a6;
  margin: 0;
  font-weight: 600;
}
.page-admin-form .date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}
.page-admin-form .date-row.is-disabled {
  opacity: 0.5;
  filter: saturate(0.3);
}
.page-admin-form .date-row .date-label {
  font-size: 12px;
  color: #a6a6a6;
}
.page-admin-form .date-row .date-field input {
  width: 100%;
}

.page-admin-form .dates-grid input[type="date"],
.page-admin-form input[type="date"][data-main="true"] {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--text);
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.page-admin-form .dates-grid input[type="date"]::-webkit-calendar-picker-indicator,
.page-admin-form input[type="date"][data-main="true"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(0.15) saturate(1.2);
  opacity: 0.9;
  cursor: pointer;
}

.page-admin-form .dates-grid input[type="date"]:hover,
.page-admin-form input[type="date"][data-main="true"]:hover {
  border-color: rgba(252, 189, 0, 0.42);
}

.page-admin-form .dates-grid input[type="date"]:focus,
.page-admin-form input[type="date"][data-main="true"]:focus {
  outline: none;
  border-color: rgba(252, 189, 0, 0.72);
  box-shadow: 0 0 0 3px rgba(252, 189, 0, 0.18);
  background: linear-gradient(180deg, rgba(252, 189, 0, 0.08), rgba(255, 255, 255, 0.02));
}
.page-admin-form .shops-admin-grid {
  margin-top: 8px;
}
.page-admin-form .form-actions {
  margin-top: 24px;
}
@media (max-width: 900px) {
  .page-admin-form .admin-form form {
    column-count: 1;
  }
  .page-admin-form .date-row,
  .page-admin-form .dates-grid > div {
    grid-template-columns: 1fr;
  }
  .admin-game-layout { display: block; }
}

@media (max-width: 720px) {
  .page-add-game .container:not(.gp-footer-inner),
  .page-edit-game .container:not(.gp-footer-inner) {
    background: transparent;
    padding: 10px;
    border: none;
    box-shadow: none;
  }
  .admin-summary-card {
    padding: 10px;
    border-radius: 12px;
  }
  .admin-summary-title {
    font-size: 12px;
  }
  .admin-summary-line {
    font-size: 11px;
  }
}

.admin-gallery-card:hover {
    border-color: rgba(252, 189, 0, 0.6);
    transform: translateY(-2px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-gallery-check {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.admin-gallery-check input {
    display: none;
}

.admin-gallery-check span {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.45);
    display: inline-block;
    position: relative;
}

.admin-gallery-check input:checked + span {
    background: var(--accent);
    border-color: var(--accent);
}

.admin-gallery-check input:checked + span::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: #0b0f16;
    border-radius: 4px;
}

.admin-gallery-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    height: 180px;
    background: #0b0f16;
    cursor: pointer;
}

.admin-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-gallery-actions {
    position: absolute;
    inset: auto 10px 10px 10px;
    display: flex;
    column-gap: 10px;
    row-gap: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-gallery-card:hover .admin-gallery-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-xs {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.admin-gallery-meta {
    display: flex;
    flex-direction: column;
    column-gap: 10px;
    row-gap: 10px;
    padding: 12px;
    flex: 1;
    overflow: hidden;
}

.admin-gallery-name {
    font-weight: 600;
    color: #eef3ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-gallery-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
}

.admin-gallery-usage {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.usage-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(252, 189, 0, 0.15);
    color: #fce6a6;
    border: 1px solid rgba(252, 189, 0, 0.4);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    width: fit-content;
}

.usage-badge.usage-empty {
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.12);
}

.usage-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.usage-link {
    font-size: 12px;
    color: #cfe0ff;
    text-decoration: none;
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.usage-link:hover {
    color: var(--accent);
}

.modal-date {
    color: #aaa;
    font-size: 14px;
}

.admin-gallery-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #111826;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e8eefb;
    padding: 10px 14px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.admin-gallery-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 720px) {
    .admin-gallery-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-gallery-filters {
        grid-template-columns: 1fr;
    }

    .admin-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .admin-gallery-actions {
        position: static;
        opacity: 1;
        transform: none;
        padding: 8px 12px 0 12px;
    }

    .filter-actions .btn,
    .filter-actions a {
        width: 100%;
        justify-content: center;
    }
    .page-admin-gallery .container:not(.gp-footer-inner) {
        padding: 10px 12px;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 20px auto;
    }
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 12px;
}

.checkbox-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    border-color: rgba(252, 189, 0, 0.6);
}

.file-upload {
    display: inline-flex;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    padding: 10px 16px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
}

.file-upload input {
    display: none;
}

.preview-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 10px;
    display: block;
    border: 1px solid var(--border);
}

.preview-img[src="#"],
.preview-img:not([src]) {
    display: none;
}

.btn-submit {
    background: var(--brand);
    color: #111;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

.alert {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: #ff8f9b;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.shops-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.shop-input-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-input-item img {
    width: 20px;
    height: 20px;
}

.selected-dlcs-list {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.selected-dlcs-list::-webkit-scrollbar {
    height: 8px;
}

.selected-dlcs-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.selected-dlcs-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.selected-dlcs-list::-webkit-scrollbar-thumb:hover {
    background: rgba(252, 189, 0, 0.5);
}

.selected-dlc-item {
    position: relative;
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 120px;
    aspect-ratio: 2 / 3;
}

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

.selected-dlc-item a,
.selected-dlc-item div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-dlc-item button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(255, 71, 87, 0.5);
    background: rgba(255, 71, 87, 0.15);
    color: #ff8f9b;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.media-videos-grid {
    display: grid;
    gap: 10px;
}

.media-preview-list .selected-dlc-item {
    flex-basis: 180px;
    aspect-ratio: 16 / 9;
}

.media-preview-list .selected-dlc-item button {
    background: rgba(255, 71, 87, 0.25);
}

.media-upload-trigger {
    width: 100%;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(252, 189, 0, 0.35);
    background: rgba(252, 189, 0, 0.06);
    min-height: 46px;
}

.media-upload-trigger:hover {
    border-color: rgba(252, 189, 0, 0.7);
    background: rgba(252, 189, 0, 0.1);
}


.taxonomy-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 12px;
    align-items: stretch;
    max-height: 180px;
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    margin-bottom: 14px;
}

.taxonomy-option {
    margin: 0;
}

.taxonomy-checkbox-list::-webkit-scrollbar {
    width: 8px;
}

.taxonomy-checkbox-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
}

.company-picker {
    position: relative;
}

.company-search-input {
    width: 100%;
}

.company-selected-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
    margin-top: 10px;
}

.company-chip {
    display: inline-flex;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 10px;
    font-size: 12px;
}

.company-chip.is-new {
    border-style: dashed;
    border-color: rgba(252, 189, 0, 0.45);
    background: rgba(252, 189, 0, 0.1);
}

.company-chip button {
    border: none;
    background: transparent;
    color: #ff9ea8;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.admin-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-2);
}

.news-editor {
    max-width: 1200px;
    margin: 30px auto 70px;
    padding: 0 18px;
}

.news-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.news-editor-kicker {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--muted);
}

.news-editor-title {
    font-family: "e-UkraineHead", "e-Ukraine", sans-serif;
    font-size: 30px;
    margin: 6px 0 0 0;
}

.news-editor-actions-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-editor-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.news-editor-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-2);
}

.news-editor-card + .news-editor-card {
    margin-top: 18px;
}

.news-editor-section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin: 0 0 12px 0;
}

.news-editor-side {
    position: sticky;
    top: 90px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-editor-side .checkbox-group {
    padding: 12px;
    column-gap: 10px;
    row-gap: 10px;
    border-radius: 12px;
}

.news-editor .image-preview-box {
    min-height: 220px;
}

.news-editor .main-image-preview {
    height: auto;
    aspect-ratio: 16 / 9;
}

.news-editor .main-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.news-editor .editor-toolbar {
    position: sticky;
    top: 86px;
    z-index: 20;
    background: var(--surface-2);
    border-color: var(--border);
    column-gap: 10px;
    row-gap: 10px;
}

.news-editor .editor-toolbar::-webkit-scrollbar {
    height: 6px;
}

.news-editor .add-buttons-wrapper {
    margin-top: 16px;
}

.news-editor-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 16px;
    z-index: 10;
    background: rgba(11, 13, 16, 0.85);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    backdrop-filter: blur(10px);
}

.news-editor-actions .btn-submit,
.news-editor-actions .btn-draft {
    margin: 0;
    width: 100%;
}

.news-editor-tip {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.news-editor-tip strong {
    color: var(--text);
}

.field-error {
    margin-top: 6px;
    font-size: 12px;
    color: #ff8f9b;
    display: none;
}

.field-error.show {
    display: block;
}

.image-preview-box {
    position: relative;
    width: 100%;
    height: 220px;
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview-box img {
    display: none;
}

.image-preview-box.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-preview-box.has-image span {
    display: none;
}

.btn-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.toolbar-btn {
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.toolbar-separator {
    width: 1px;
    height: 28px;
    background: var(--border);
}

.add-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.btn-control {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    cursor: pointer;
    font-weight: 700;
}

.actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-draft {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
}

.modal-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    max-width: 920px;
    width: 92%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-search {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    color: var(--text);
}

.modal-body {
    max-height: 520px;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .modal-window {
        width: 96vw;
        max-width: none;
        height: 92vh;
        max-height: 92vh;
        padding: 12px;
        border-radius: 12px;
    }

    .modal-body {
        max-height: calc(92vh - 120px);
    }
}
.modal-load-more {
    display: flex;
    justify-content: center;
    margin: 12px 0 6px;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.modal-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
}

.modal-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-item-name {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
    word-break: break-all;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#dynamicContentArea {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.content-block {
    margin: 0;
}

.block-type-badge {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
}

.block-controls {
    display: flex;
    gap: 6px;
}

.block-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.block-footer .btn-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 71, 87, 0.15);
    position: static;
}

.btn-mini {
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.btn-mini.btn-remove {
    color: #ff8f9b;
    border-color: rgba(255, 71, 87, 0.6);
    position: static;
}

.block-content {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    color: var(--text);
}

.spoiler-wrapper,
.quote-wrapper,
.review-grid,
.carousel-manager {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
}

.spoiler-label {
    font-size: 12px;
    color: var(--brand);
    font-weight: 700;
}

.quote-text-input,
.quote-author,
.pros-input,
.cons-input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    color: var(--text);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.review-col h4 {
    margin-top: 0;
}

.carousel-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    column-gap: 10px;
    row-gap: 10px;
    margin: 10px 0;
}

.carousel-thumb-item {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    position: relative;
}

.carousel-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-add-to-carousel,
.btn-remove-thumb {
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.upload-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-upload {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
}

.file-status {
    color: var(--muted);
    font-size: 13px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.gallery-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    border-color: rgba(252, 189, 0, 0.6);
}

.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    max-width: 700px;
    width: 92%;
}

.modal-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
    float: right;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-copy {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-delete {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.6);
    color: #ff8f9b;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.company-actions .btn-submit,
.company-actions .btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 18px 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.card-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.progress-bg {
    width: 100%;
    height: 8px;
    background: var(--surface-3);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--brand);
    width: 0%;
    transition: width 0.3s ease;
}

.status-ok { background: #2ed573; }
.status-warn { background: #f1c40f; }
.status-crit { background: #ff4757; }

.card-subtext {
    color: var(--muted);
    font-size: 12px;
}

.uptime-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

.page-shell {
    padding: 20px 0 20px;
}

body.page-company,
body.page-company-search {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.page-company .page-shell,
body.page-company-search .company-page-main {
    flex: 1;
}

.section {
    margin: 40px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.section-title {
    font-family: "e-UkraineHead", "e-Ukraine", sans-serif;
    font-weight: 700;
    font-size: 28px;
    margin: 0;
    letter-spacing: 0.3px;
}

.section-subtitle {
    color: var(--muted);
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(252, 189, 0, 0.6);
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #111;
    border: none;
    box-shadow: var(--glow);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2);
    box-shadow: var(--shadow-2);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2);
    box-shadow: var(--shadow-2);
    padding: 24px;
}

.panel-title {
    font-family: "e-UkraineHead", "e-Ukraine", sans-serif;
    font-size: 24px;
    margin: 0 0 12px 0;
}

.panel-subtitle {
    color: var(--muted);
    font-size: 14px;
}

.page-center {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-2);
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    column-gap: 10px;
    row-gap: 10px;
}

.label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    color: var(--text);
    outline: none;
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: rgba(252, 189, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(252, 189, 0, 0.1);
}

.textarea {
    resize: vertical;
    min-height: 120px;
}

.helper {
    font-size: 12px;
    color: var(--muted-2);
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 71, 87, 0.5);
    background: rgba(255, 71, 87, 0.08);
    color: #ff8f9b;
    font-weight: 600;
}

.btn-block {
    width: 100%;
}

.details-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-2);
}

.search-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    color: var(--text);
}

.search-input:focus {
    outline: none;
    border-color: rgba(252, 189, 0, 0.6);
}

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.user-row:hover {
    transform: translateY(-2px);
    border-color: rgba(252, 189, 0, 0.5);
}

.user-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.u-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.u-info {
    display: flex;
    flex-direction: column;
}

.u-name {
    font-weight: 700;
}

.u-login {
    color: var(--muted);
    font-size: 12px;
}

.actions-group {
    display: flex;
    gap: 10px;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 180px);
    gap: 18px;
}

.poster-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 320px;
}

.poster-card:hover {
    transform: translateY(-3px);
    border-color: rgba(252, 189, 0, 0.5);
}

.poster-media {
    aspect-ratio: 2 / 3;
    background: #111;
    overflow: hidden;
}

.poster-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.poster-card:hover .poster-media img {
    transform: scale(1.03);
}

.poster-info {
    padding: 12px;
    height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.poster-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poster-meta {
    font-size: 12px;
    color: var(--muted);
}

.page-user-list .poster-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

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

.page-user-list .page-shell {
    flex: 1;
}

.page-user-list .user-list-header {
    text-align: left;
    margin-bottom: 18px;
}

.page-user-list .back-btn {
    display: inline-flex;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-user-list .back-btn:hover {
    color: #111;
    background: var(--brand);
    border-color: transparent;
}

.page-user-list .user-list-title {
    font-size: 28px;
    margin: 12px 0 0;
}

.page-user-list .clear-list-form {
    margin-top: 8px;
}

.page-user-list .clear-list-link {
    border: none;
    background: transparent;
    padding: 0;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    font-size: 14px;
}

.page-user-list .clear-list-link:hover {
    color: var(--text);
}

.page-user-list .user-list-summary {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.page-user-list .poster-card {
    height: auto;
    border-radius: 14px;
}

.page-user-list .poster-media {
    aspect-ratio: 2 / 3;
    position: relative;
}

.page-user-list .poster-card:hover {
    transform: scale(1.02);
}

.page-user-list .review-score-badge {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    line-height: 1;
    color: #fff;
    font-weight: 700;
}

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

.page-public-friends .page-shell {
    flex: 1;
}

.page-public-friends .friends-list-container {
    max-width: 1000px;
}

.page-public-friends .public-friends-header {
    text-align: left;
    margin-bottom: 18px;
}

.page-public-friends .back-btn {
    display: inline-flex;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-public-friends .back-btn:hover {
    color: #111;
    background: var(--brand);
    border-color: transparent;
}

.page-public-friends .public-friends-title {
    font-size: 28px;
    margin: 12px 0 0;
}

.page-public-friends .friends-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.page-public-friends .friend-card {
    display: block;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
}

.page-public-friends .friend-card:hover {
    transform: scale(1.02);
}

.page-public-friends .fc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .page-user-list .poster-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .page-user-list .poster-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .page-user-list .poster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .page-public-friends .friends-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .page-user-list .poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-user-list .poster-card {
        max-width: none;
        margin: 0;
    }
    .page-user-list .user-list-title {
        font-size: 22px;
        line-height: 1.25;
    }
    .page-user-list .back-btn {
        padding: 7px 12px;
        font-size: 14px;
    }
    .page-public-friends .friends-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-public-friends .public-friends-title {
        font-size: 22px;
        line-height: 1.25;
    }
    .page-public-friends .back-btn {
        padding: 7px 12px;
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    .poster-grid {
        grid-template-columns: 1fr;
    }
    .poster-card {
        max-width: 360px;
        margin: 0 auto;
    }
}

.poster-meta {
    font-size: 12px;
    color: var(--muted);
}

.avatar-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface-2);
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 16px;
}

.avatar-preview img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.file-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.file-button input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 14px 14px;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 20;
}

.search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 64px;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.search-result-item img {
    width: 36px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
}

.search-result-item div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.bg-preview {
    margin-top: 12px;
    height: 140px;
    border-radius: 14px;
    border: 1px solid rgba(252, 189, 0, 0.6);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.bg-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.bg-preview-label {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #ff8f9b;
    border: 1px solid rgba(255, 71, 87, 0.6);
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 2;
    font-size: 12px;
    font-weight: 700;
}

.friend-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.friend-card:hover {
    transform: translateY(-2px);
    border-color: rgba(252, 189, 0, 0.5);
}

.fc-img {
    width: 80px;
    height: 100%;
    object-fit: cover;
    background: #111;
}

.fc-info {
    padding: 10px 12px;
}

.fc-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.fc-login {
    font-size: 12px;
    color: var(--muted);
}

.btn-action {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-3);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.btn-action.btn-add {
    background: var(--brand);
    color: #111;
    border-color: transparent;
}

.btn-action.btn-accept {
    background: #2ed573;
    color: #111;
    border-color: transparent;
}

.btn-action.btn-reject {
    background: rgba(255, 71, 87, 0.2);
    color: #ff8f9b;
    border-color: rgba(255, 71, 87, 0.5);
}

.btn-action.btn-remove {
    background: transparent;
    color: var(--muted);
}

.notfound-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 520px;
    box-shadow: var(--shadow-2);
}

.notfound-emoji {
    font-size: 120px;
    margin-bottom: 12px;
}

.admin-wrapper {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 18px;
}

.panel-header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    padding-bottom: 12px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-3px);
    border-color: rgba(252, 189, 0, 0.6);
}

.admin-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.admin-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.empty-state,
.empty-msg,
.empty-list {
    text-align: center;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px dashed var(--border);
    padding: 24px;
    border-radius: 12px;
}

.count-badge {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
}

.requests-section {
    border: 1px solid rgba(252, 189, 0, 0.4);
    background: rgba(252, 189, 0, 0.03);
}

.requests-header {
    color: var(--brand);
    border-bottom: 1px solid rgba(252, 189, 0, 0.3);
    padding-bottom: 12px;
}

/* Navbar */
.gp-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(10, 12, 16, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gp-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gp-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.gp-nav-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(252, 189, 0, 0.08);
    border: 1px solid rgba(252, 189, 0, 0.3);
    padding: 6px;
}

.gp-nav-title {
    font-family: "e-UkraineHead", "e-Ukraine", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.gp-nav-tag {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gp-nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gp-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.gp-nav-link:hover,
.gp-nav-link.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.gp-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0392b;
    display: inline-block;
    margin-left: 6px;
}

.gp-nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gp-btn-login {
    background: linear-gradient(135deg, #2b2f38, #1c2330);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.gp-btn-admin {
    background: transparent;
    color: var(--brand);
    border: 1px solid rgba(252, 189, 0, 0.5);
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}

.gp-btn-admin-desktop {
    display: inline-flex;
}

.gp-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gp-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.gp-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.gp-btn-logout {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted-2);
    text-decoration: none;
}

.gp-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 34px;
    background: none;
    border: none;
    cursor: pointer;
}

.gp-mobile-menu-btn span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.gp-mobile-menu-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gp-mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.gp-mobile-menu-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.gp-mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 14, 0.96);
    backdrop-filter: blur(16px);
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
    overflow-y: auto;
}

.gp-mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.gp-mobile-link {
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.gp-mobile-link.active {
    color: var(--brand);
}

.gp-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.gp-dropdown-menu {
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-1);
}

.gp-nav-dropdown:hover .gp-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.gp-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.gp-dropdown-item:hover {
    background: var(--surface-2);
    color: var(--brand);
}

.gp-menu-badge {
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
}

/* Footer */
.gp-footer {
    margin-top: 80px;
    padding: 50px 0;
    border-top: 1px solid var(--border);
    background: rgba(8, 10, 14, 0.7);
}

.gp-footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.gp-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gp-footer-logo {
    width: 44px;
    height: 44px;
}

.gp-footer-title {
    font-family: "e-UkraineHead", "e-Ukraine", sans-serif;
    font-weight: 700;
}

.gp-footer-text {
    color: var(--muted);
    font-size: 14px;
    margin: 6px 0 0 0;
}

.gp-footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.gp-footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
}

.gp-footer-links a:hover {
    color: var(--brand);
}

/* Shared grids */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-2);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    height: 360px;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(252, 189, 0, 0.6);
    box-shadow: var(--shadow-1);
}

.news-card.is-draft {
    border-style: dashed;
    border-color: rgba(252, 189, 0, 0.6);
}

.news-img-wrap {
    position: relative;
    padding-top: 56%;
    overflow: hidden;
}

.news-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.badges-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    column-gap: 10px;
    row-gap: 10px;
    z-index: 2;
}

.badge {
    background: rgba(10, 10, 10, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.badge-type {
    background: rgba(252, 189, 0, 0.9);
    color: #111;
    border-color: rgba(252, 189, 0, 0.6);
}

.badge-draft {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    border-color: rgba(231, 76, 60, 0.6);
}

.news-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 160px;
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}

.news-meta {
    color: var(--muted);
    font-size: 12px;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    column-gap: 10px;
    row-gap: 10px;
    flex-wrap: wrap;
}

.stats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-family: "e-UkraineHead", "e-Ukraine", sans-serif;
    font-size: 36px;
    margin: 0 0 16px 0;
}

.filter-bar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brand);
    color: #111;
    box-shadow: var(--glow);
}

.filter-mobile {
    display: none;
}

.filter-dropdown {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-1);
    color: var(--text);
    padding: 0 12px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .news-card {
        height: 360px;
    }

    .news-img-wrap {
        padding-top: 0;
        height: 180px;
    }

    .news-content {
        min-height: 0;
        padding-bottom: 12px;
    }

    .news-footer {
        font-size: 11px;
        padding-top: 8px;
        gap: 6px;
    }

    .page-news .filter-bar {
        display: block;
        width: 100%;
        border-radius: 0;
        padding: 0;
        background: transparent;
        border: none;
    }

    .page-news .filter-btn {
        display: none;
    }

    .page-news .filter-mobile {
        display: block;
        width: 100%;
    }

    .page-news .filter-dropdown {
        height: 48px;
        border-radius: 14px;
        background: #0f141e;
        border: 1px solid rgba(252, 189, 0, 0.35);
        color: #e8eefb;
        font-size: 14px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
        padding: 0 14px;
    }
}

@media (max-width: 700px) {
    .page-shell {
        padding: 10px 0 10px;
    }
}


@media (max-width: 600px) {
    .container:not(.gp-footer-inner) {
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 10px;
    }

    .page-admin-form .container:not(.gp-footer-inner),
    .page-add-game .container:not(.gp-footer-inner),
    .page-edit-game .container:not(.gp-footer-inner),
    .page-news-add .container:not(.gp-footer-inner),
    .page-news-edit .container:not(.gp-footer-inner),
    .page-admin-gallery .container:not(.gp-footer-inner),
    .page-admin-status .container:not(.gp-footer-inner) {
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 10px;
        margin: 0 auto;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    column-gap: 10px;
    row-gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: var(--text);
    border-radius: 10px;
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: rgba(252, 189, 0, 0.6);
    color: var(--brand);
}

.page-link.active {
    background: var(--brand);
    color: #111;
    border-color: transparent;
}

.page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.release-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.release-card:hover {
    transform: translateY(-4px);
    border-color: rgba(252, 189, 0, 0.6);
}

.release-poster-wrap {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
    background: #000;
}

.release-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.release-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(252, 189, 0, 0.95);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.release-info {
    padding: 12px 14px;
    text-align: center;
}

.release-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

/* Page hero */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
    padding: 36px 30px;
    border-radius: var(--radius-3);
    background: linear-gradient(135deg, rgba(252, 189, 0, 0.08), rgba(9, 12, 18, 0.9));
    border: 1px solid rgba(252, 189, 0, 0.2);
    box-shadow: var(--shadow-1);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -60px;
    top: -80px;
    background: radial-gradient(circle, rgba(252, 189, 0, 0.3), transparent 70%);
    filter: blur(20px);
    opacity: 0.6;
}

.hero-title {
    font-family: "e-UkraineHead", "e-Ukraine", sans-serif;
    font-size: 40px;
    margin: 0 0 12px 0;
    line-height: 1.1;
}

.hero-text {
    color: var(--muted);
    font-size: 16px;
    margin: 0 0 22px 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-panel {
    background: rgba(16, 20, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2);
    padding: 18px;
}

.hero-search {
    margin-top: 22px;
    padding: 22px 24px;
    border-radius: var(--radius-2);
    background: rgba(22, 27, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-2);
}

.hero-search-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: center;
}

.hero-search-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 6px;
}

.hero-search-title {
    font-size: 22px;
    margin: 0 0 6px 0;
    font-family: "e-UkraineHead", "e-Ukraine", sans-serif;
}

.hero-search-sub {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

.hero-search-box {
    position: relative;
}

.hero-search-input {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(252, 189, 0, 0.3);
    background: #0f141e;
    color: var(--text);
    padding: 0 14px;
    font-weight: 600;
}

.hero-search-input:focus {
    outline: none;
    border-color: rgba(252, 189, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(252, 189, 0, 0.12);
}

.hero-search .search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10;
}

.hero-panel-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero-panel h3 {
    margin: 0;
    font-size: 18px;
}

.hero-spotlight {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    margin-top: 12px;
}

.hero-spotlight img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-spotlight-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.hero-spotlight-meta {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-search-inner {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 24px;
    }
    .news-editor-columns {
        grid-template-columns: 1fr;
        width: 100%;
        min-width: 0;
    }
    .news-editor-side {
        position: static;
        top: auto;
        width: 100%;
        min-width: 0;
    }
    .news-editor .editor-toolbar {
        position: static;
        top: auto;
        width: 100%;
    }
    .news-editor-actions {
        position: static;
        bottom: auto;
        background: transparent;
        border: none;
        padding: 0;
        backdrop-filter: none;
    }

    .page-news-add,
    .page-news-edit {
        overflow-x: hidden;
    }

    .news-editor,
    .news-editor-main,
    .news-editor-card {
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .gp-nav-menu {
        display: none;
    }
    .gp-mobile-menu-btn {
        display: flex;
    }
    .gp-user-info {
        display: none;
    }
    .gp-btn-admin-desktop {
        display: none;
    }
    .gp-footer-inner {
        grid-template-columns: 1fr;
    }
    .gp-mobile-nav {
        display: flex;
    }
    .news-editor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .news-editor-actions-top {
        justify-content: center;
        width: 100%;
    }
    .news-editor-actions {
        position: sticky;
        bottom: 8px;
        flex-direction: column;
    }
    .news-editor .editor-toolbar {
        top: 70px;
        overflow-x: auto;
    }
    .news-editor-card {
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    .news-editor-card + .news-editor-card {
        margin-top: 14px;
    }
    .news-editor-section-title {
        text-align: left;
    }
}

@media (min-width: 769px) {
    .gp-mobile-nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .page-news .news-card {
        height: 360px;
    }

    .page-news .news-img-wrap {
        padding-top: 0;
        height: 180px;
    }

    .page-news .news-content {
        min-height: 0;
        padding-bottom: 6px;
    }

    .page-news .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .page-news .news-footer .stats {
        align-self: flex-end;
    }
}








.page-admin-form .dates-grid > .date-row-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

.page-admin-form .dates-grid > .date-row-card.main-date-row {
  grid-template-columns: 1fr;
  border-color: rgba(252,189,0,0.26);
  background: rgba(252,189,0,0.05);
}

.page-admin-form .dates-grid > .date-row-card select {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--text);
  padding: 10px 12px;
}

.page-admin-form .dates-grid > .date-row-card.is-disabled {
  opacity: 0.5;
  filter: saturate(0.3);
}

.media-dropzone {
  width: 100%;
  border: 1px dashed rgba(252, 189, 0, 0.45);
  border-radius: 14px;
  background: rgba(252, 189, 0, 0.06);
  min-height: 72px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.media-dropzone:hover,
.media-dropzone.is-dragover {
  border-color: rgba(252, 189, 0, 0.75);
  background: rgba(252, 189, 0, 0.12);
}

.media-dropzone input[type="file"] {
  display: none;
}

.media-dropzone-plus {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(252, 189, 0, 0.18);
  color: #fcbd00;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.media-dropzone-text {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.media-preview-list .selected-dlc-item {
  cursor: grab;
}

.media-preview-list .selected-dlc-item:active {
  cursor: grabbing;
}

.media-add-tile {
  width: 180px;
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(252, 189, 0, 0.4);
  border-radius: 12px;
  background: rgba(252, 189, 0, 0.06);
  color: #fcbd00;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.media-add-tile span {
  font-size: 36px;
  line-height: 1;
}

@media (max-width: 920px) {
  .page-admin-form .dates-grid > .date-row-card {
    grid-template-columns: 1fr;
  }
}

/* Date layout symmetric override */
.page-admin-form .dates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.page-admin-form .dates-grid > .date-row-card {
  display: flex;
  flex-direction: column;
  column-gap: 10px;
    row-gap: 10px;
  align-items: stretch;
}

.page-admin-form .dates-grid > .date-row-card.main-date-row {
  grid-column: 1 / -1;
}

.page-admin-form .dates-grid > .date-row-card .helper {
  margin: 2px 0 0;
}

@media (max-width: 920px) {
  .page-admin-form .dates-grid {
    grid-template-columns: 1fr;
  }
}

.page-admin-form select option {
  color: #111;
  background: #fff;
}




.taxonomy-checkbox-list + .company-picker {
    margin-top: 18px;
}

.taxonomy-checkbox-list .checkbox-label.taxonomy-option {
    margin: 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}


.page-admin-form .form-group > label + .taxonomy-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 12px;
    align-items: stretch;
    max-height: 180px;
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    margin-bottom: 14px;
}



.page-admin-form .taxonomy-checkbox-list + .company-picker {
  margin-top: 16px;
}



/* Taxonomy spacing fix */
.page-admin-form .form-group > label + .taxonomy-checkbox-list {
  column-gap: 10px;
  row-gap: 10px;
  margin-bottom: 18px;
}

.page-admin-form .company-picker[data-kind="genres"],
.page-admin-form .company-picker[data-kind="platforms"],
.page-admin-form .company-picker[data-kind="localizations"] {
  margin-top: 0;
}
