body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background-color: #141433; 
  color: #e0e0e0; 
  overflow-x: hidden; 
}

body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body::-webkit-scrollbar-track {
  background: #141433;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  border-radius: 4px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #6a00f4 #141433;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: #141433;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  border-radius: 4px;
}

.navbar {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
}
@keyframes navLogoLightAnim {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes navBarGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a.active {
  color: #00ff9c;
  border-bottom: 2px solid #00bf72;
}

.nav-links a:hover {
  color: #00ff9c; 
}

.nav-links a.active {
  color: #00ff9c;
  border-bottom: 2px solid #00ff9c;
  font-weight: 600;
}

.mobile-nav a.active {
  color: #00ff9c;
  background: linear-gradient(135deg, #6a00f4aa, #00bf72aa);
  border-radius: 8px;
  padding: 0.4rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-user span {
  font-size: 0.9rem;
  color: #fff;
}

.nav-user a {
  color: #fff;
  text-decoration: underline;
  font-size: 0.9rem;
}

.contact-button {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: contactPulse 2.5s infinite;
}

@keyframes contactPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 0, 244, 0.6), 0 0 0 0 rgba(0, 191, 114, 0.6);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 20px 0 rgba(106, 0, 244, 0.6), 0 0 10px 0 rgba(0, 191, 114, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 0, 244, 0.6), 0 0 0 0 rgba(0, 191, 114, 0.6);
  }
}

.scroll-top-button {
  position: fixed;
  bottom: 9rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 1.4rem;
  display: none; 
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Admin panel styling */
.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* Card for grouping forms and sections */
.form-card {
  background: #1e1e4d;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.form-card h3, .form-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.form-card label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-weight: 500;
}

.form-card input,
.form-card textarea,
.form-card select,
.form-card button {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #444;
  background: #221f3f;
  color: #e0e0e0;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.form-card textarea {
  resize: vertical;
}

.form-card button {
  cursor: pointer;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  border: none;
  color: #fff;
  transition: background 0.2s ease;
}

.form-card button.btn-danger {
  background: #d9534f;
}

.form-card button.btn-secondary {
  background: #6c757d;
}

.form-card button:hover {
  filter: brightness(1.1);
}

/* -------- Collapsible sections for admin panel -------- */
/* Wrap long admin forms inside details/summary to reduce visual clutter */
.form-card details {
  margin-top: 0.5rem;
}
.form-card summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  user-select: none;
  outline: none;
  list-style: none;
}
.form-card summary::-webkit-details-marker {
  display: none;
}
.form-card details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.form-card .details-content {
  border: 1px solid #444;
  border-top: none;
  padding: 0.75rem;
  background: #221f3f;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  margin-bottom: 0.5rem;
}

/* Flash message for form success/error feedback */
.flash-message {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #1e1e3f;
  color: #00ff9c;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
  pointer-events: none;
}
.flash-message.visible {
  opacity: 1;
  transform: translateY(0);
}
.flash-message.error {
  color: #ff6b6b;
}

/* Limit width of multi-select in assign manager form so it doesn't stretch too wide */
select[multiple] {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  min-height: 6rem;
  overflow-y: auto;
}

/* Кнопка «назад» в шапке */
/* Базовое оформление кнопки «назад» */
.back-button {
  position: fixed;
  top: 50%;
  left: max(0.25rem, env(safe-area-inset-left));
  transform: translateY(-50%);
  z-index: 5000;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  border: none;
  border-radius: 0 10px 10px 0;
  padding: 0.65rem 0.45rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  opacity: .88;
  transition: opacity .2s ease, transform .12s ease;
  pointer-events: auto;
}

.back-button:hover { opacity: 1; }
.back-button:active { transform: translateY(-50%) scale(.98); }

/* чуть больше левый отступ у крупных заголовков, чтобы кнопка их не касалась */
.policy-hero { padding-left: 2.5rem; }

/* Улучшаем дизайн шапки на мобильных устройствах */
@media (max-width: 800px) {
  .navbar .nav-container {
    justify-content: center;
    padding: 0.8rem 1rem;
    position: relative;
  }
  .nav-logo {
    font-size: 1.5rem;
    text-align: center;
  }
}

/* Добавляем отступ слева в геро‑блоке, чтобы фиксированная кнопка «назад» не перекрывала заголовок */
.policy-hero {
  padding-left: 2.5rem;
}

.contact-popup {
  position: fixed;
  bottom: 9rem;
  right: 1rem;
  background: #1e1e3f;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  padding: 1rem;
  min-width: 260px;
  z-index: 500;
}
.contact-popup h4 {
  margin: 0 0 0.5rem 0;
  color: #9d4edd;
  font-size: 1rem;
}
.contact-row {
  margin-bottom: 0.5rem;
}
.contact-row span {
  display: block;
  color: #cfcfe7;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}
.contact-row a {
  color: #00ff9c;
  text-decoration: none;
  font-size: 0.85rem;
}
.contact-row a:hover {
  text-decoration: underline;
}

.mobile-nav {
  display: none;
}
.mobile-nav a {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.4rem;
}
.mobile-nav a:hover {
  color: #00ff9c;
}

.mobile-nav a.active {
  color: #00ff9c;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  border-radius: 8px;
}

.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.container > h1 {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.org-info h2,
.personal-card h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
}
.org-info {
  background: #1e1e3f;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .org-info {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}
.org-info h2 {
  margin-top: 0;
  color: #9d4edd;
  text-align: center;
}
.org-info p {
  margin: 0.4rem 0;
  color: #cfcfe7;
  text-align: center;
}

.org-description {
  white-space: pre-line;
}

.org-info p:last-child {
  color: #00ff9c;
  font-weight: 500;
  margin-top: 0.8rem;
}

.event-carousel {
  overflow-x: auto;
  display: flex;
  gap: 0.5rem;
  scroll-snap-type: x mandatory;
}
.event-carousel img {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
  border: 1px solid #333;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
}

.login-container {
  background: #1e1e3f;
  padding: 2rem;
  border-radius: 12px;
  color: #e0e0e0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  min-width: 320px;
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #6a00f4, #00bf72) 1;
  position: relative;
  box-sizing: border-box;
}

.login-container input,
.login-container button,
.login-form input,
.login-form button {
  box-sizing: border-box;
}

.login-container h1 {
  margin-top: 0;
  text-align: center;
  margin-bottom: 1.2rem;
}

.login-form input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #444;
  background: #141433;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
}

.login-form button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.login-form button:hover {
  opacity: 0.9;
}

.forgot-link {
  display: block;
  margin-top: 1rem;
  text-align: center;
  color: #9d4edd;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.8);
  z-index: 4000;     
}

.modal-content {
  background: #1e1e3f;
  padding: 1.5rem;
  border-radius: 8px;
  color: #e0e0e0;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #6a00f4, #00bf72) 1;
}
.modal-close {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.modal-close:hover {
  opacity: 0.9;
}
.modal.show{ display: flex; }

.login-container h1 {
  margin-top: 0;
  text-align: center;
  margin-bottom: 1rem;
}

.login-container input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #444;
  background: #141433;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
}

.login-container button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  background-color: #6a00f4;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-container button:hover {
  background-color: #5500c7;
}

.error {
  color: #ff5370;
  margin-bottom: 1rem;
  text-align: center;
}

.message {
  color: #8ef49b;
  margin-bottom: 1rem;
  text-align: center;
}

.events {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.event-card {
  background: #1e1e3f;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  width: calc(45% - 1rem);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 2rem; /* место для даты */
}

.event-card h3 {
  margin: 0.5rem 0;
  color: #9d4edd;
}

.event-card p {
  flex-grow: 1;
  margin: 0;
  color: #cfcfe7;
}

.event-photos img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  object-fit: cover;
  border: 1px solid #333;
}

.event-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.event-slider img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #333;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #6a00f4aa, #00bf72aa);
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.event-date {
  font-size: 0.8rem;
  color: #cfcfe7;
  opacity: 0.7;
  position: absolute;
  bottom: 0.4rem;
  right: 0.6rem;
}

.event-id {
  opacity: 0.5;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.events-title {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #e0e0e0;
}
.slider-arrow.prev {
  left: 0.5rem;
}
.slider-arrow.next {
  right: 0.5rem;
}

.overlay-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #6a00f4aa, #00bf72aa);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.overlay-arrow.prev { left: 1rem; }
.overlay-arrow.next { right: 1rem; }

.personal-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  justify-content: center;

  align-items: start;
}

.personal-card {
  background: #1e1e3f;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  box-sizing: border-box;

  align-self: start;
  height: auto;
  min-height: unset;
}

.personal-card { margin-bottom: 0; }
.personal-info-card,
.personal-arrears-card {
  width: 100%;
  max-width: 420px;
}
.personal-settings-card {
  width: 100%;
  max-width: 860px;
  grid-column: span 2;
}
@media (max-width: 900px) {
  .personal-settings-card {
    grid-column: span 1;
  }
}
.personal-card h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #9d4edd;
  text-align: center;
}
.personal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.personal-item span {
  color: #cfcfe7;
  font-weight: 500;
}
.personal-item strong {
  color: #e0e0e0;
}

.personal-card input[type="password"] {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 0.8rem;
  border: 1px solid #444;
  background: #141433;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}
.personal-card button[type="submit"] {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.personal-card button[type="submit"]:hover {
  opacity: 0.9;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 0.6rem;
  column-gap: 1rem;
}
.info-grid .label {
  color: #cfcfe7;
  opacity: 0.85;
}
.info-grid .value {
  color: #e0e0e0;
  font-weight: 600;
}

.debt-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.debt-line .name {
  color: #cfcfe7;
}

.debt-line .amount {
  color: #e0e0e0;
  font-weight: 600;
}
.debt-line .amount {
  font-weight: 600;
  color: #e0e0ff;
  background: linear-gradient(135deg, rgba(106,0,244,0.25), rgba(0,191,114,0.25));
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-pay {
  margin-top: 0.8rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.8;
}
.btn-pay:disabled {
  opacity: 0.5;
}

.employees {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.employee-card {
  background: #1e1e3f;
  border-left: 4px solid #9d4edd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 720px;
}

.employee-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.employee-info h3 {
  margin: 0;
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
  color: #9d4edd;
}

.employee-info p {
  margin: 0;
  color: #cfcfe7;
  font-size: 0.95rem;
}

.personal-info p {
  margin: 0.3rem 0;
  font-size: 1rem;
  color: #cfcfe7;
}

.arrears-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.arrears-table th,
.arrears-table td {
  border: 1px solid #ddd;
  padding: 0.6rem;
  text-align: left;
}

.arrears-table th {
  background-color: #2e2e58;
  color: #e0e0e0;
}

.btn-pay {
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  background-color: #6a00f4;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  cursor: not-allowed;
  opacity: 0.6;
}

.contact-card {
  background: #1e1e3f;
  padding: 1rem;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.contact-card a {
  color: #00ff9c;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .event-card {
    width: calc(50% - 1rem);
  }
  .employee-card {
    width: calc(100% - 1rem);
  }
}

@media (max-width: 600px) {
  .event-card {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
  .nav-user {
    display: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #6a00f4, #00bf72);
    border-top: 1px solid #333;
    justify-content: space-around;
    z-index: 200;
  }

  body {
    padding-bottom: 60px;
  }
}

:root{
  --wm-size: 220px;  
  --wm-opacity: .05; 
}

body{
  position: relative; 
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background-image: url("/images/watermark.png");
  background-repeat: repeat;
  background-size: var(--wm-size) var(--wm-size);
  background-position: 0 0;
  opacity: var(--wm-opacity);

  mask: repeating-conic-gradient(#000 0 25%, transparent 0 50%)
        0 0 / calc(var(--wm-size) * 2) calc(var(--wm-size) * 2) repeat;
  -webkit-mask: repeating-conic-gradient(#000 0 25%, transparent 0 50%)
        0 0 / calc(var(--wm-size) * 2) calc(var(--wm-size) * 2) repeat;
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(80% 60% at 50% 40%,
              rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
}

body > *{
  position: relative;
  z-index: 1;
}

@media (max-width: 600px){
  :root{
    --wm-size: 140px;
    --wm-opacity: .045;
  }
}

.neon-label{
  display:block;
  margin: .2rem 0 .4rem;
  color:#cfcfe7;
  font-size:.95rem;
}

.neon-input,
.neon-select{
  width: 100%;
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #3a3a66;
  background: #141433;
  color: #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: box-shadow .2s, border-color .2s, transform .08s;
  box-shadow: 0 0 0 0 rgba(106,0,244,0), 0 0 0 0 rgba(0,191,114,0);
}

.neon-input:focus,
.neon-select:focus{
  border-color: #6a00f4;
  box-shadow: 0 0 12px 0 rgba(106,0,244,.4), 0 0 22px 0 rgba(0,191,114,.25);
}

.neon-input:disabled,
.neon-select:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.neon-select{
  appearance:none;
  background-image:
    linear-gradient(135deg, rgba(106,0,244,.18), rgba(0,191,114,.18));
  background-origin: border-box;
  position: relative;
}

.neon-select{
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 12px;
}
.neon-select::-ms-expand{ display:none; }

.neon-button{
  width:100%;
  padding: .9rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.neon-button:hover{ box-shadow: 0 16px 32px rgba(0,0,0,.45); }
.neon-button:active{ transform: translateY(1px); }
.neon-button:disabled{ opacity:.55; cursor:not-allowed; }

.neo-select{
  position: relative;
  width: 100%;
  background: #141433;
  border: 1px solid #3a3a66;
  border-radius: 12px;
  padding: .9rem 2.4rem .9rem 1rem;
  color: #e0e0e0;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: box-shadow .2s, border-color .2s, transform .08s;
  box-shadow: 0 0 0 0 rgba(106,0,244,0), 0 0 0 0 rgba(0,191,114,0);
}
.neo-select:focus,
.neo-select[aria-expanded="true"]{
  border-color:#6a00f4;
  box-shadow: 0 0 12px rgba(106,0,244,.4), 0 0 22px rgba(0,191,114,.25);
}

.neo-select-value{
  display:block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .95;
}
.neo-select[data-empty="true"] .neo-select-value{ opacity:.7; }

.neo-select-caret{
  position:absolute;
  right:.9rem;
  top:50%;
  transform: translateY(-50%);
  font-size:1rem;
  opacity:.85;
  pointer-events:none;
}

.neo-select-list{
  position: absolute;
  left:0; right:0; top:calc(100% + 8px);
  background: #0f0f29;
  border: 1px solid #3a3a66;
  border-radius: 12px;
  padding: .4rem;
  margin: 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 22px 44px rgba(0,0,0,.5),
              0 0 18px rgba(106,0,244,.25),
              0 0 26px rgba(0,191,114,.18);
  display:none;
  z-index: 30;
}
.neo-select[aria-expanded="true"] .neo-select-list{ display:block; }

.neo-option{
  padding:.65rem .75rem;
  border-radius:10px;
  line-height:1.2;
  transition: background .12s, color .12s;
  cursor:pointer;
}
.neo-option:hover,
.neo-option[aria-selected="true"]{
  background: linear-gradient(135deg, rgba(106,0,244,.18), rgba(0,191,114,.18));
}
.neo-option:active{ transform: translateY(1px); }

@media (hover:none){
  .neo-option:hover{ background: transparent; }
}

.neo-select.invalid{
  border-color:#e25757;
  box-shadow: 0 0 12px rgba(226,87,87,.35);
}

.neo-select { position: relative; }
.neo-select-list {
  inset-inline: 0;               
  min-width: 100%;
  max-width: 100%;
  overflow: auto;
}

.neo-select.drop-up .neo-select-list{
  top: auto;
  bottom: calc(100% + 8px);
}

.login-container { overflow: visible; }

.neo-select-list { z-index: 2001; }

.neo-select {
  width: 100%;
  box-sizing: border-box;
  background: #141433;
  border: 1px solid #444;         
  border-radius: 4px;              
  padding: .8rem 2.2rem .8rem 1rem;
  color: #e0e0e0;
  cursor: pointer;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
  box-shadow: none;              
}

.neo-select:focus,
.neo-select[aria-expanded="true"]{
  border-color: #6a00f4;
  box-shadow: 0 0 8px rgba(106,0,244,.25);
}

.neo-select-caret{
  position:absolute; right:.8rem; top:50%;
  transform:translateY(-50%);
  opacity:.85; pointer-events:none;
}

.neo-select-list{
  position:absolute;
  left:-1px;                       
  right:-1px;                      
  top:calc(100% + 6px);
  width: calc(100% + 2px);         
  box-sizing: border-box;
  background:#0f0f29;
  border:1px solid #444;           
  border-radius: 4px;              
  padding:.35rem;
  margin:0;
  list-style:none;
  max-height: 220px;
  overflow-y:auto;
  z-index: 2001;

  box-shadow: 0 10px 22px rgba(0,0,0,.45);
}

.neo-select.drop-up .neo-select-list{
  top:auto;
  bottom: calc(100% + 6px);
}

.neo-option{
  padding:.6rem .7rem;
  border-radius: 6px;
  line-height:1.2;
  transition: background .12s;
}
.neo-option:hover,
.neo-option[aria-selected="true"]{
  background: linear-gradient(135deg, rgba(106,0,244,.16), rgba(0,191,114,.16));
}

.login-container{ overflow: visible; }


.neo-select {
  margin-bottom: 1rem;  
}


.price-hero {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  padding: 2.2rem 0;
  text-align: center;
}
.price-cta { display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap; margin-top:1rem; }
.btn { display:inline-block; padding:.7rem 1.1rem; border-radius:8px; text-decoration:none; font-weight:600; }
.btn-primary { background:#141433; color:#fff; }
.btn-outline { border:2px solid #fff; color:#fff; }
.btn:hover { opacity:.9; }

.price-grid {
  display:grid; gap:1rem; grid-template-columns:1fr; margin-top:1.2rem;
}
@media (min-width: 900px){ .price-grid { grid-template-columns: 1fr 1fr; } }

.price-card {
  background:#1e1e3f; border-radius:12px; padding:1rem; box-shadow:0 6px 18px rgba(0,0,0,.35);
  border: 2px solid transparent; border-image: linear-gradient(135deg, #6a00f4, #00bf72) 1;
}
.price-card__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:.6rem; }
.badge { background:#141433; color:#00ff9c; padding:.25rem .5rem; border-radius:6px; font-size:.8rem; }

.price-card__row {
  display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin:.6rem 0;
}
.price { font-weight:700; color:#00ff9c; white-space:nowrap; }
.feature-list { margin:.3rem 0 .6rem; padding-left:1.1rem; }
.muted { color:#cfcfe7; opacity:.8; font-size:.9rem; }

.price-perks { display:grid; gap:.6rem; grid-template-columns:1fr; margin-top:1rem; }
.price-perks .perk { background:#1e1e3f; border-radius:10px; padding:.8rem; text-align:center; }
@media (min-width: 900px){ .price-perks { grid-template-columns:repeat(3,1fr); } }

.price-faq h3 { text-align:center; margin-top:1.8rem; }
.price-faq details { background:#1e1e3f; border-radius:10px; padding:.8rem 1rem; margin:.6rem 0; }
.price-faq summary { cursor:pointer; font-weight:600; color:#9d4edd; }

.cta-bar {
  background:#141433; padding:1.2rem 0; border-top:1px solid #2a2a52; margin-top:1.2rem;
}
.cta-bar__inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
@media (max-width: 700px){ .cta-bar__inner { flex-direction:column; text-align:center; } }

/* активное меню на price */
.nav-links a[href="/price"].active, .mobile-nav a[href="/price"].active { color:#00ff9c; }

/* Административные формы: стилизация поля выбора файлов (фото/видео, Excel) */
.form-card input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.45rem 0.5rem;
  background: #221f3f;
  border: 1px solid #444;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.form-card input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  border: none;
  border-radius: 4px;
  color: #fff;
  padding: 0.4rem 0.8rem;
  margin-right: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.form-card input[type="file"]::file-selector-button:hover {
  opacity: 0.9;
}

/* ===== Compact Admin & Layout enhancements ===== */

/* Двухколоночный макет: слева оглавление, справа контент */
@media (min-width: 1100px) {
  .admin-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
  }
  .admin-container > .admin-toc {
    grid-column: 1;
    align-self: start;
    position: sticky;
    top: 12px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: .5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
  .admin-container > .admin-toc h4 {
    margin: .25rem .5rem .5rem;
    font-size: .95rem;
    color: #666;
    font-weight: 600;
  }
  .admin-container > .admin-toc a {
    display: block;
    font-size: .95rem;
    padding: .35rem .5rem;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
  }
  .admin-container > .admin-toc a:hover { background: #f7f7f7; }
  .admin-container > .admin-toc a.active { background: #f2fbf7; color: #00bf72; }
  /* Контентные элементы идут во вторую колонку автоматически */
  .admin-container > *:not(.admin-toc) { grid-column: 2; }
}

/* Компактный режим: меньше отступов, чуть меньшая типографика */
.admin-container.compact .form-card { padding: .75rem 1rem; margin: .75rem 0; }
.admin-container.compact .form-card label { margin-bottom: .35rem; }
.admin-container.compact input,
.admin-container.compact select,
.admin-container.compact textarea { padding: .35rem .6rem; font-size: .95rem; }
.admin-container.compact .form-card button { padding: .45rem .8rem; }

/* Более компактные summary */
.admin-container .form-card details > summary { font-size: 1rem; padding: .6rem .85rem; }
.admin-container.compact .form-card details > summary { font-size: .95rem; padding: .45rem .7rem; }

/* Многоэлементные формы можно включать в многоколоночный поток */
.details-columns { column-width: 340px; column-gap: 1rem; }
.details-columns > * { break-inside: avoid; }

/* Мини-панель инструментов сверху страницы (кнопка «Компактно») */
.admin-toolbar { display: flex; justify-content: flex-end; gap: .5rem; margin: .25rem 0 1rem; }
.btn-compact {
  font-size: .9rem; padding: .35rem .6rem;
  border: 1px solid #dcdcdc; border-radius: 10px; background: #fff; cursor: pointer;
}
.btn-compact:hover { background: #f7f7f7; }

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background-color: #141433; 
  color: #e0e0e0; 
  overflow-x: hidden; 
}

body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body::-webkit-scrollbar-track {
  background: #141433;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  border-radius: 4px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #6a00f4 #141433;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: #141433;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  border-radius: 4px;
}

.navbar {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
}
@keyframes navLogoLightAnim {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes navBarGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a.active {
  color: #00ff9c;
  border-bottom: 2px solid #00bf72;
}

.nav-links a:hover {
  color: #00ff9c; 
}

.nav-links a.active {
  color: #00ff9c;
  border-bottom: 2px solid #00ff9c;
  font-weight: 600;
}

.mobile-nav a.active {
  color: #00ff9c;
  background: linear-gradient(135deg, #6a00f4aa, #00bf72aa);
  border-radius: 8px;
  padding: 0.4rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-user span {
  font-size: 0.9rem;
  color: #fff;
}

.nav-user a {
  color: #fff;
  text-decoration: underline;
  font-size: 0.9rem;
}

.contact-button {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: contactPulse 2.5s infinite;
}

@keyframes contactPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 0, 244, 0.6), 0 0 0 0 rgba(0, 191, 114, 0.6);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 20px 0 rgba(106, 0, 244, 0.6), 0 0 10px 0 rgba(0, 191, 114, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 0, 244, 0.6), 0 0 0 0 rgba(0, 191, 114, 0.6);
  }
}

.scroll-top-button {
  position: fixed;
  bottom: 9rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 1.4rem;
  display: none; 
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Admin panel styling */
.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* Card for grouping forms and sections */
.form-card {
  background: #1e1e4d;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.form-card h3, .form-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.form-card label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-weight: 500;
}

.form-card input,
.form-card textarea,
.form-card select,
.form-card button {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #444;
  background: #221f3f;
  color: #e0e0e0;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.form-card textarea {
  resize: vertical;
}

.form-card button {
  cursor: pointer;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  border: none;
  color: #fff;
  transition: background 0.2s ease;
}

.form-card button.btn-danger {
  background: #d9534f;
}

.form-card button.btn-secondary {
  background: #6c757d;
}

.form-card button:hover {
  filter: brightness(1.1);
}

/* -------- Collapsible sections for admin panel -------- */
/* Wrap long admin forms inside details/summary to reduce visual clutter */
.form-card details {
  margin-top: 0.5rem;
}
.form-card summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  user-select: none;
  outline: none;
  list-style: none;
}
.form-card summary::-webkit-details-marker {
  display: none;
}
.form-card details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.form-card .details-content {
  border: 1px solid #444;
  border-top: none;
  padding: 0.75rem;
  background: #221f3f;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  margin-bottom: 0.5rem;
}

/* Flash message for form success/error feedback */
.flash-message {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #1e1e3f;
  color: #00ff9c;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
  pointer-events: none;
}
.flash-message.visible {
  opacity: 1;
  transform: translateY(0);
}
.flash-message.error {
  color: #ff6b6b;
}

/* Limit width of multi-select in assign manager form so it doesn't stretch too wide */
select[multiple] {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  min-height: 6rem;
  overflow-y: auto;
}

/* Кнопка «назад» в шапке */
/* Базовое оформление кнопки «назад» */
.back-button {
  position: fixed;
  top: 50%;
  left: max(0.25rem, env(safe-area-inset-left));
  transform: translateY(-50%);
  z-index: 5000;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  border: none;
  border-radius: 0 10px 10px 0;
  padding: 0.65rem 0.45rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  opacity: .88;
  transition: opacity .2s ease, transform .12s ease;
  pointer-events: auto;
}

.back-button:hover { opacity: 1; }
.back-button:active { transform: translateY(-50%) scale(.98); }

/* чуть больше левый отступ у крупных заголовков, чтобы кнопка их не касалась */
.policy-hero { padding-left: 2.5rem; }

/* Улучшаем дизайн шапки на мобильных устройствах */
@media (max-width: 800px) {
  .navbar .nav-container {
    justify-content: center;
    padding: 0.8rem 1rem;
    position: relative;
  }
  .nav-logo {
    font-size: 1.5rem;
    text-align: center;
  }
}

/* Добавляем отступ слева в геро‑блоке, чтобы фиксированная кнопка «назад» не перекрывала заголовок */
.policy-hero {
  padding-left: 2.5rem;
}

.contact-popup {
  position: fixed;
  bottom: 9rem;
  right: 1rem;
  background: #1e1e3f;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  padding: 1rem;
  min-width: 260px;
  z-index: 500;
}
.contact-popup h4 {
  margin: 0 0 0.5rem 0;
  color: #9d4edd;
  font-size: 1rem;
}
.contact-row {
  margin-bottom: 0.5rem;
}
.contact-row span {
  display: block;
  color: #cfcfe7;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}
.contact-row a {
  color: #00ff9c;
  text-decoration: none;
  font-size: 0.85rem;
}
.contact-row a:hover {
  text-decoration: underline;
}

.mobile-nav {
  display: none;
}
.mobile-nav a {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.4rem;
}
.mobile-nav a:hover {
  color: #00ff9c;
}

.mobile-nav a.active {
  color: #00ff9c;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  border-radius: 8px;
}

.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.container > h1 {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.org-info h2,
.personal-card h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
}
.org-info {
  background: #1e1e3f;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .org-info {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}
.org-info h2 {
  margin-top: 0;
  color: #9d4edd;
  text-align: center;
}
.org-info p {
  margin: 0.4rem 0;
  color: #cfcfe7;
  text-align: center;
}

.org-description {
  white-space: pre-line;
}

.org-info p:last-child {
  color: #00ff9c;
  font-weight: 500;
  margin-top: 0.8rem;
}

.event-carousel {
  overflow-x: auto;
  display: flex;
  gap: 0.5rem;
  scroll-snap-type: x mandatory;
}
.event-carousel img {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
  border: 1px solid #333;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
}

.login-container {
  background: #1e1e3f;
  padding: 2rem;
  border-radius: 12px;
  color: #e0e0e0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  min-width: 320px;
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #6a00f4, #00bf72) 1;
  position: relative;
  box-sizing: border-box;
}

.login-container input,
.login-container button,
.login-form input,
.login-form button {
  box-sizing: border-box;
}

.login-container h1 {
  margin-top: 0;
  text-align: center;
  margin-bottom: 1.2rem;
}

.login-form input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #444;
  background: #141433;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
}

.login-form button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.login-form button:hover {
  opacity: 0.9;
}

.forgot-link {
  display: block;
  margin-top: 1rem;
  text-align: center;
  color: #9d4edd;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.8);
  z-index: 4000;     
}

.modal-content {
  background: #1e1e3f;
  padding: 1.5rem;
  border-radius: 8px;
  color: #e0e0e0;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #6a00f4, #00bf72) 1;
}
.modal-close {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.modal-close:hover {
  opacity: 0.9;
}
.modal.show{ display: flex; }

.login-container h1 {
  margin-top: 0;
  text-align: center;
  margin-bottom: 1rem;
}

.login-container input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #444;
  background: #141433;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
}

.login-container button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  background-color: #6a00f4;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-container button:hover {
  background-color: #5500c7;
}

.error {
  color: #ff5370;
  margin-bottom: 1rem;
  text-align: center;
}

.message {
  color: #8ef49b;
  margin-bottom: 1rem;
  text-align: center;
}

.events {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.event-card {
  background: #1e1e3f;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  width: calc(45% - 1rem);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 2rem; /* место для даты */
}

.event-card h3 {
  margin: 0.5rem 0;
  color: #9d4edd;
}

.event-card p {
  flex-grow: 1;
  margin: 0;
  color: #cfcfe7;
}

.event-photos img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  object-fit: cover;
  border: 1px solid #333;
}

.event-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.event-slider img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #333;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #6a00f4aa, #00bf72aa);
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.event-date {
  font-size: 0.8rem;
  color: #cfcfe7;
  opacity: 0.7;
  position: absolute;
  bottom: 0.4rem;
  right: 0.6rem;
}

.event-id {
  opacity: 0.5;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.events-title {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #e0e0e0;
}
.slider-arrow.prev {
  left: 0.5rem;
}
.slider-arrow.next {
  right: 0.5rem;
}

.overlay-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #6a00f4aa, #00bf72aa);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.overlay-arrow.prev { left: 1rem; }
.overlay-arrow.next { right: 1rem; }

.personal-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  justify-content: center;

  align-items: start;
}

.personal-card {
  background: #1e1e3f;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  box-sizing: border-box;

  align-self: start;
  height: auto;
  min-height: unset;
}

.personal-card { margin-bottom: 0; }
.personal-info-card,
.personal-arrears-card {
  width: 100%;
  max-width: 420px;
}
.personal-settings-card {
  width: 100%;
  max-width: 860px;
  grid-column: span 2;
}
@media (max-width: 900px) {
  .personal-settings-card {
    grid-column: span 1;
  }
}
.personal-card h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #9d4edd;
  text-align: center;
}
.personal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.personal-item span {
  color: #cfcfe7;
  font-weight: 500;
}
.personal-item strong {
  color: #e0e0e0;
}

.personal-card input[type="password"] {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 0.8rem;
  border: 1px solid #444;
  background: #141433;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}
.personal-card button[type="submit"] {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.personal-card button[type="submit"]:hover {
  opacity: 0.9;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 0.6rem;
  column-gap: 1rem;
}
.info-grid .label {
  color: #cfcfe7;
  opacity: 0.85;
}
.info-grid .value {
  color: #e0e0e0;
  font-weight: 600;
}

.debt-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.debt-line .name {
  color: #cfcfe7;
}

.debt-line .amount {
  color: #e0e0e0;
  font-weight: 600;
}
.debt-line .amount {
  font-weight: 600;
  color: #e0e0ff;
  background: linear-gradient(135deg, rgba(106,0,244,0.25), rgba(0,191,114,0.25));
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-pay {
  margin-top: 0.8rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.8;
}
.btn-pay:disabled {
  opacity: 0.5;
}

.employees {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.employee-card {
  background: #1e1e3f;
  border-left: 4px solid #9d4edd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 720px;
}

.employee-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.employee-info h3 {
  margin: 0;
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
  color: #9d4edd;
}

.employee-info p {
  margin: 0;
  color: #cfcfe7;
  font-size: 0.95rem;
}

.personal-info p {
  margin: 0.3rem 0;
  font-size: 1rem;
  color: #cfcfe7;
}

.arrears-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.arrears-table th,
.arrears-table td {
  border: 1px solid #ddd;
  padding: 0.6rem;
  text-align: left;
}

.arrears-table th {
  background-color: #2e2e58;
  color: #e0e0e0;
}

.btn-pay {
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  background-color: #6a00f4;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  cursor: not-allowed;
  opacity: 0.6;
}

.contact-card {
  background: #1e1e3f;
  padding: 1rem;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.contact-card a {
  color: #00ff9c;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .event-card {
    width: calc(50% - 1rem);
  }
  .employee-card {
    width: calc(100% - 1rem);
  }
}

@media (max-width: 600px) {
  .event-card {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
  .nav-user {
    display: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #6a00f4, #00bf72);
    border-top: 1px solid #333;
    justify-content: space-around;
    z-index: 200;
  }

  body {
    padding-bottom: 60px;
  }
}

:root{
  --wm-size: 220px;  
  --wm-opacity: .05; 
}

body{
  position: relative; 
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background-image: url("/images/watermark.png");
  background-repeat: repeat;
  background-size: var(--wm-size) var(--wm-size);
  background-position: 0 0;
  opacity: var(--wm-opacity);

  mask: repeating-conic-gradient(#000 0 25%, transparent 0 50%)
        0 0 / calc(var(--wm-size) * 2) calc(var(--wm-size) * 2) repeat;
  -webkit-mask: repeating-conic-gradient(#000 0 25%, transparent 0 50%)
        0 0 / calc(var(--wm-size) * 2) calc(var(--wm-size) * 2) repeat;
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(80% 60% at 50% 40%,
              rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
}

body > *{
  position: relative;
  z-index: 1;
}

@media (max-width: 600px){
  :root{
    --wm-size: 140px;
    --wm-opacity: .045;
  }
}

.neon-label{
  display:block;
  margin: .2rem 0 .4rem;
  color:#cfcfe7;
  font-size:.95rem;
}

.neon-input,
.neon-select{
  width: 100%;
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #3a3a66;
  background: #141433;
  color: #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: box-shadow .2s, border-color .2s, transform .08s;
  box-shadow: 0 0 0 0 rgba(106,0,244,0), 0 0 0 0 rgba(0,191,114,0);
}

.neon-input:focus,
.neon-select:focus{
  border-color: #6a00f4;
  box-shadow: 0 0 12px 0 rgba(106,0,244,.4), 0 0 22px 0 rgba(0,191,114,.25);
}

.neon-input:disabled,
.neon-select:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.neon-select{
  appearance:none;
  background-image:
    linear-gradient(135deg, rgba(106,0,244,.18), rgba(0,191,114,.18));
  background-origin: border-box;
  position: relative;
}

.neon-select{
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 12px;
}
.neon-select::-ms-expand{ display:none; }

.neon-button{
  width:100%;
  padding: .9rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.neon-button:hover{ box-shadow: 0 16px 32px rgba(0,0,0,.45); }
.neon-button:active{ transform: translateY(1px); }
.neon-button:disabled{ opacity:.55; cursor:not-allowed; }

.neo-select{
  position: relative;
  width: 100%;
  background: #141433;
  border: 1px solid #3a3a66;
  border-radius: 12px;
  padding: .9rem 2.4rem .9rem 1rem;
  color: #e0e0e0;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: box-shadow .2s, border-color .2s, transform .08s;
  box-shadow: 0 0 0 0 rgba(106,0,244,0), 0 0 0 0 rgba(0,191,114,0);
}
.neo-select:focus,
.neo-select[aria-expanded="true"]{
  border-color:#6a00f4;
  box-shadow: 0 0 12px rgba(106,0,244,.4), 0 0 22px rgba(0,191,114,.25);
}

.neo-select-value{
  display:block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .95;
}
.neo-select[data-empty="true"] .neo-select-value{ opacity:.7; }

.neo-select-caret{
  position:absolute;
  right:.9rem;
  top:50%;
  transform: translateY(-50%);
  font-size:1rem;
  opacity:.85;
  pointer-events:none;
}

.neo-select-list{
  position: absolute;
  left:0; right:0; top:calc(100% + 8px);
  background: #0f0f29;
  border: 1px solid #3a3a66;
  border-radius: 12px;
  padding: .4rem;
  margin: 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 22px 44px rgba(0,0,0,.5),
              0 0 18px rgba(106,0,244,.25),
              0 0 26px rgba(0,191,114,.18);
  display:none;
  z-index: 30;
}
.neo-select[aria-expanded="true"] .neo-select-list{ display:block; }

.neo-option{
  padding:.65rem .75rem;
  border-radius:10px;
  line-height:1.2;
  transition: background .12s, color .12s;
  cursor:pointer;
}
.neo-option:hover,
.neo-option[aria-selected="true"]{
  background: linear-gradient(135deg, rgba(106,0,244,.18), rgba(0,191,114,.18));
}
.neo-option:active{ transform: translateY(1px); }

@media (hover:none){
  .neo-option:hover{ background: transparent; }
}

.neo-select.invalid{
  border-color:#e25757;
  box-shadow: 0 0 12px rgba(226,87,87,.35);
}

.neo-select { position: relative; }
.neo-select-list {
  inset-inline: 0;               
  min-width: 100%;
  max-width: 100%;
  overflow: auto;
}

.neo-select.drop-up .neo-select-list{
  top: auto;
  bottom: calc(100% + 8px);
}

.login-container { overflow: visible; }

.neo-select-list { z-index: 2001; }

.neo-select {
  width: 100%;
  box-sizing: border-box;
  background: #141433;
  border: 1px solid #444;         
  border-radius: 4px;              
  padding: .8rem 2.2rem .8rem 1rem;
  color: #e0e0e0;
  cursor: pointer;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
  box-shadow: none;              
}

.neo-select:focus,
.neo-select[aria-expanded="true"]{
  border-color: #6a00f4;
  box-shadow: 0 0 8px rgba(106,0,244,.25);
}

.neo-select-caret{
  position:absolute; right:.8rem; top:50%;
  transform:translateY(-50%);
  opacity:.85; pointer-events:none;
}

.neo-select-list{
  position:absolute;
  left:-1px;                       
  right:-1px;                      
  top:calc(100% + 6px);
  width: calc(100% + 2px);         
  box-sizing: border-box;
  background:#0f0f29;
  border:1px solid #444;           
  border-radius: 4px;              
  padding:.35rem;
  margin:0;
  list-style:none;
  max-height: 220px;
  overflow-y:auto;
  z-index: 2001;

  box-shadow: 0 10px 22px rgba(0,0,0,.45);
}

.neo-select.drop-up .neo-select-list{
  top:auto;
  bottom: calc(100% + 6px);
}

.neo-option{
  padding:.6rem .7rem;
  border-radius: 6px;
  line-height:1.2;
  transition: background .12s;
}
.neo-option:hover,
.neo-option[aria-selected="true"]{
  background: linear-gradient(135deg, rgba(106,0,244,.16), rgba(0,191,114,.16));
}

.login-container{ overflow: visible; }


.neo-select {
  margin-bottom: 1rem;  
}


.price-hero {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  padding: 2.2rem 0;
  text-align: center;
}
.price-cta { display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap; margin-top:1rem; }
.btn { display:inline-block; padding:.7rem 1.1rem; border-radius:8px; text-decoration:none; font-weight:600; }
.btn-primary { background:#141433; color:#fff; }
.btn-outline { border:2px solid #fff; color:#fff; }
.btn:hover { opacity:.9; }

.price-grid {
  display:grid; gap:1rem; grid-template-columns:1fr; margin-top:1.2rem;
}
@media (min-width: 900px){ .price-grid { grid-template-columns: 1fr 1fr; } }

.price-card {
  background:#1e1e3f; border-radius:12px; padding:1rem; box-shadow:0 6px 18px rgba(0,0,0,.35);
  border: 2px solid transparent; border-image: linear-gradient(135deg, #6a00f4, #00bf72) 1;
}
.price-card__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:.6rem; }
.badge { background:#141433; color:#00ff9c; padding:.25rem .5rem; border-radius:6px; font-size:.8rem; }

.price-card__row {
  display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin:.6rem 0;
}
.price { font-weight:700; color:#00ff9c; white-space:nowrap; }
.feature-list { margin:.3rem 0 .6rem; padding-left:1.1rem; }
.muted { color:#cfcfe7; opacity:.8; font-size:.9rem; }

.price-perks { display:grid; gap:.6rem; grid-template-columns:1fr; margin-top:1rem; }
.price-perks .perk { background:#1e1e3f; border-radius:10px; padding:.8rem; text-align:center; }
@media (min-width: 900px){ .price-perks { grid-template-columns:repeat(3,1fr); } }

.price-faq h3 { text-align:center; margin-top:1.8rem; }
.price-faq details { background:#1e1e3f; border-radius:10px; padding:.8rem 1rem; margin:.6rem 0; }
.price-faq summary { cursor:pointer; font-weight:600; color:#9d4edd; }

.cta-bar {
  background:#141433; padding:1.2rem 0; border-top:1px solid #2a2a52; margin-top:1.2rem;
}
.cta-bar__inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
@media (max-width: 700px){ .cta-bar__inner { flex-direction:column; text-align:center; } }

/* активное меню на price */
.nav-links a[href="/price"].active, .mobile-nav a[href="/price"].active { color:#00ff9c; }

/* Административные формы: стилизация поля выбора файлов (фото/видео, Excel) */
.form-card input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.45rem 0.5rem;
  background: #221f3f;
  border: 1px solid #444;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.form-card input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  border: none;
  border-radius: 4px;
  color: #fff;
  padding: 0.4rem 0.8rem;
  margin-right: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.form-card input[type="file"]::file-selector-button:hover {
  opacity: 0.9;
}


/* === Admin Tabs & Section Styling (compact by default) === */
.admin-container.container.compact .form-card { padding: .75rem 1rem; margin: .75rem 0; }
.admin-container.container.compact .form-card label { margin-bottom: .35rem; }
.admin-container.container.compact input,
.admin-container.container.compact select,
.admin-container.container.compact textarea { padding: .35rem .6rem; font-size: .95rem; }
.admin-container.container.compact .form-card button { padding: .45rem .8rem; }

@media (min-width: 1100px) {
  .admin-container.container { display: grid; grid-template-columns: 260px 1fr; gap: 1rem; } 
}

/* Tabs */

.admin-tabs .tab-btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .5rem .6rem;
  border-radius: 8px;
  font-size: .95rem;
  cursor: pointer;
}
.admin-tabs .tab-btn:hover { background: #f7f7f7; }
.admin-tabs .tab-btn.active {
  background: linear-gradient(135deg, #6a00f4aa, #00bf72aa);
  color: #fff;
}

/* Gradient summaries (section accent) */
.admin-container details[data-section] > summary {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: .6rem .85rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.admin-container details[data-section] > summary::-webkit-details-marker { color: #fff; }

/* Card body remains white for readability */
/* Контент карточек разделов */
.admin-container details[data-section] > .details-content {
  background: linear-gradient(180deg, #161a3f 0%, #14193a 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 20px rgba(0,0,0,.20);
}


/* Two-column flow inside long forms */
.admin-container .details-content.details-columns { column-width: 340px; column-gap: 1rem; }
.admin-container .details-content.details-columns > * { break-inside: avoid; }


/* ---- Fix layout & "lines" (seams) ---- */

.admin-tabs .tab-btn { display:inline-flex; align-items:center; }

/* Hide empty cards cleanly */
.form-card[hidden] { display: none !important; }

/* Make summary flush with card (no seams) */



@media (min-width: 1100px) {
  /* widen admin area and enable two-column grid */
  .admin-container.container { max-width: 1200px; display:grid; grid-template-columns: 260px 1fr; gap: 1rem; align-items:start; }
}

.form-card { overflow: hidden; }
.form-card details > summary {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  border: none;
  border-radius: 12px 12px 0 0;
  padding: .65rem .9rem;
  font-weight: 600;
}
.form-card details > .details-content {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  margin: 0;
  padding: .75rem 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

/* Buttons inside forms: full width without overflow */
.form-card button[type="submit"],
.form-card .btn,
.form-card button {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
}

@media (min-width: 1100px) {
  .admin-container.container { display:grid; grid-template-columns: 260px 1fr; gap: 1rem; align-items:start; max-width: 1200px; }
  .admin-container 
  .admin-container .form-card { grid-column: 2; }
}

/* --- Vertical tabs (no horizontal scroll) --- */
.admin-tabs {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: #ffffff0d;
  border: 1px solid #2b2b4a;
  border-radius: 12px;
  padding: .5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  overflow: visible;
}
.admin-tabs .tab-btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: #0e1030;
  color: #dfe6ff;
  padding: .55rem .65rem;
  border-radius: 10px;
  font-size: .95rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #2e3470;
}
.admin-tabs .tab-btn:hover { background: #151a3f; }
.admin-tabs .tab-btn.active {
  background: linear-gradient(135deg, #6a00f4, #00bf72);
  color: #fff;
  box-shadow: none;
}

/* Desktop layout: tabs left, content right */
@media (min-width: 1100px) {
  .admin-container.container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
    align-items: start;
    max-width: 1200px;
  }
  .admin-container .admin-tabs { grid-column: 1; position: sticky; top: 12px; }
  .admin-container .form-card { grid-column: 2; }
}

/* --- Inputs contrast & labels --- */
.form-card label {
  color: #eaf1ff;
  font-weight: 600;
}
.form-card input,
.form-card textarea,
.form-card select {
  background: #151a2f;
  color: #f5f7ff;
  border: 1px solid #5a6ecf;
}
.form-card input::placeholder,
.form-card textarea::placeholder {
  color: #b9c6ff;
  opacity: .95;
}
.form-card select option {
  color: #111; /* native dropdowns prefer dark text over light for readability */
}
/* Summary gradient kept; ensure text strong */
.form-card details > summary {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}

/* Admin: убрать фон/паддинги у карточек, чтобы не было пустых «коробок» */
.admin-container .form-card{
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 1rem 0 !important;
}
.admin-container .form-card:first-of-type{ margin-top: 0 !important; }

/* Визуал — на summary и .details-content */
.admin-container details > summary{ margin: 0; }

/* Выровнять меню и контент по верху на десктопе */
@media (min-width:1100px){
  .admin-container.container{ align-items:flex-start; }
  .admin-container .admin-tabs{ margin-top: 0; }
}


/* === ADMIN FINAL OVERRIDES (fix big gaps, align columns, readable content) === */
@media (min-width: 1100px){
  .admin-container.container{
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 1rem !important;
    align-items: flex-start !important;
    max-width: 1200px !important;
  }
  .admin-container .admin-tabs{
    grid-column: 1 !important;
    position: sticky !important;
    top: 12px !important;
    margin-top: 0 !important;
  }
}
.admin-container .form-card{
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: .9rem 0 !important;
  overflow: visible !important;
}
.admin-container .form-card:first-of-type{ margin-top: 0 !important; }
.admin-container .form-card > details{ margin: 0 !important; }

/* Summary (gradient header) */
.admin-container details[data-section] > summary{
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: .65rem .9rem !important;
  background: linear-gradient(135deg, #6a00f4, #00bf72) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.16) !important;
}

/* Content body: dark indigo card for readability */
.admin-container details[data-section] > .details-content{
  display: block;
  margin: .45rem 0 0 !important;
  padding: .9rem 1rem !important;
  background: linear-gradient(180deg, #161a3f 0%, #14193a 100%) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.22) !important;
  color: #eaf1ff !important;
}
/* When collapsed ensure no leftover space */
.admin-container details:not([open]) > .details-content{ display: none !important; }

/* Inputs contrast inside admin */
.admin-container .details-content input,
.admin-container .details-content textarea,
.admin-container .details-content select{
  background: #151a2f !important;
  border: 1px solid #5a6ecf !important;
  color: #f5f7ff !important;
}
.admin-container .details-content input::placeholder,
.admin-container .details-content textarea::placeholder{ color:#b9c6ff !important; }

/* Hidden cards should not keep space */
.admin-container .form-card[hidden]{ display: none !important; }

/* Vertical tabs look */
.admin-tabs{
  background: #0e1030 !important;
  border: 1px solid #2b2b4a !important;
  border-radius: 12px !important;
  padding: .5rem !important;
}
.admin-tabs .tab-btn{
  background: #0e1030 !important;
  color: #dfe6ff !important;
  box-shadow: inset 0 0 0 1px #2e3470 !important;
  border-radius: 10px !important;
  padding: .55rem .65rem !important;
  font-size: .95rem !important;
  text-align: left !important;
}
.admin-tabs .tab-btn:hover{ background: #151a3f !important; }
.admin-tabs .tab-btn.active{
  background: linear-gradient(135deg, #6a00f4, #00bf72) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* === Admin: единый контейнер контента и аккуратные отступы через gap === */
@media (min-width: 1100px){
  .admin-container.container{
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 16px !important;
    align-items: flex-start !important;
    max-width: 1200px !important;
  }
  .admin-container .admin-tabs{ grid-column: 1 !important; position: sticky; top: 12px; }
  .admin-container .admin-content{ grid-column: 2 !important; display: flex; flex-direction: column; gap: 14px; }
}

/* Глушим внешние margin/padding у карточек — расстояния дает .admin-content { gap } */
.admin-container .form-card{ margin: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }

/* Заголовок секции */
.admin-container details[data-section] > summary{
  margin: 0 !important;
  border-radius: 12px !important;
  padding: .65rem .9rem !important;
  background: linear-gradient(135deg, #6a00f4, #00bf72) !important;
  color: #fff !important;
}

/* Тело секции — читаемый тёмный фон */
.admin-container details[data-section] > .details-content{
  display: block;
  padding: .9rem 1rem !important;
  background: linear-gradient(180deg, #161a3f 0%, #14193a 100%) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px !important;
  color: #eaf1ff !important;
}

/* Свернули — контента нет => вообще без места */
.admin-container details:not([open]) > .details-content{ display: none !important; }

/* Карточки без нужного раздела прячем полностью (не занимают места) */
.admin-container .form-card[hidden]{ display: none !important; }

/* Отступы между разделами (внутри правой колонки) */
.admin-container .admin-content .form-card > details {
  margin: 0 0 18px !important;   /* расстояние между «полосками» разделов */
}
.admin-container .admin-content .form-card > details:last-of-type {
  margin-bottom: 0 !important;   /* у последнего раздела в карточке отступ убираем */
}

/* Если где-то ещё нет .admin-content, подстрахуем отступы между карточками */
.admin-container .form-card + .form-card {
  margin-top: 18px !important;
}

/* Можно управлять общим зазором между карточками через gap */
@media (min-width:1100px){
  .admin-container .admin-content {
    display: flex;
    flex-direction: column;
    gap: 18px !important;        /* увеличить/уменьшить по вкусу */
  }
}

/* Сам select (когда он закрыт) */
.admin-container .details-content select {
  color: #fff !important;
  background: #151a2f !important;
  border: 1px solid #5a6ecf !important;
}

/* Пункты в выпадающем списке (работает в большинстве браузеров) */
.admin-container .details-content select option {
  color: #fff !important;
  background: #0f1331 !important;
}

/* «Плейсхолдер»-опция, если используешь disabled как заглушку */
.admin-container .details-content select option[disabled] {
  color: #9aa4d4 !important;
}

/* ===== Arrears Settings (beauty only) ===== */
.arrears-form .field-row{
  display:flex; align-items:center; gap:.6rem; margin-bottom:.8rem;
}
.arrears-form .label-inline{
  min-width:5.5rem; color:#cfcfe7; opacity:.85;
}

/* лёгкая подсказка над чекбоксами */
.arrears-note{
  margin:.25rem 0 .6rem; font-size:.92rem; color:#cfcfe7; opacity:.8;
}



/* выравнивание кнопки */
.btn-row{ margin-top:.4rem; }

/* более читаемые options у селекта в тёмной теме (точечно, без глобальных побочек) */
.select-dark option{
  color:#e0e0e0; background:#0f0f29;
}

/* ===== Arrears (только этот раздел) ===== */
.arrears-form .field-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.arrears-form .label-inline{min-width:56px;color:#cfcfe7;opacity:.9}

.arrears-note{margin:.2rem 0 .6rem;font-size:.92rem;color:#cfcfe7;opacity:.8}


.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.6rem;margin:.2rem 0 .6rem}
.settings-grid label{display:flex;align-items:center;gap:8px;padding:.55rem .65rem;background:#0f1331;border:1px solid #2e3470;border-radius:10px}
.settings-grid label > span{white-space:nowrap;color:#eaf1ff;opacity:.95}
.settings-grid select{flex:1 1 auto;min-width:0;background:#151a2f;color:#f5f7ff;border:1px solid #5a6ecf}

.select-dark option{color:#e0e0e0;background:#0f0f29}

/* Дом: (лейбл сверху, селект ниже) — только в блоке настроек задолженности */
.arrears-form .field-row { 
  display: block;
  margin-bottom: 10px;
}
.arrears-form .field-row .label-inline {
  display: block;
  margin: 0 0 6px;
}