:root {
  --bg-dark: #0b0807;
  --card-bg: rgba(23, 19, 16, 0.92);
  --card-border: #33271e;
  --amber-glow: #e87a24;
  --amber-hover: #ff943d;
  --text-main: #ede6df;
  --text-muted: #9c8e82;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Manrope', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  padding: 22px 24px 50px;
  overflow-x: hidden;
  position: relative;
}

#wastelandBg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
}

.hazard-scale {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 22px;
  opacity: 0.85;
  text-transform: uppercase;
}

.hazard-scale .active-mark {
  color: var(--amber-glow);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(232, 122, 36, 0.6);
  animation: pulseRad 2.5s infinite ease-in-out;
}

@keyframes pulseRad {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(232, 122, 36, 0.08);
}

.banner-box {
  position: relative;
  height: 210px;
  background: #241911;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,19,16,0.1) 0%, #171310 100%);
}

.profile-info {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 28px;
  margin-top: -64px;
  position: relative;
}

.avatar-wrapper {
  width: 120px;
  height: 155px;
  border-radius: 8px;
  border: 2px solid var(--amber-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 18px rgba(232, 122, 36, 0.3);
  overflow: hidden;
  flex-shrink: 0;
  background: #1f1712;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.title-block { padding-bottom: 4px; }

.badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-glow);
  background: rgba(232, 122, 36, 0.12);
  border: 1px solid rgba(232, 122, 36, 0.35);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

h1.glitch-title {
  font-family: 'Russo One', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff5eb;
  text-shadow: 0 2px 14px rgba(232, 122, 36, 0.4);
  line-height: 1.1;
}

.description {
  padding: 20px 28px 10px;
  color: #dcd3ca;
  font-size: 0.96rem;
}

.description p { margin-bottom: 10px; }
.tagline { font-size: 1.06rem; font-weight: 700; color: #ffbe85; }
.muted { color: var(--text-muted); font-size: 0.88rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 28px 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #d96518 0%, #9e3d12 100%);
  color: #fff;
  border: 1px solid #f28538;
  box-shadow: 0 4px 16px rgba(217, 101, 24, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #eb7424 0%, #b54717 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(232, 122, 36, 0.5);
}

.btn-secondary {
  background: #211b17;
  color: var(--text-main);
  border: 1px solid #3d3026;
}

.btn-secondary:hover {
  background: #2b231d;
  border-color: var(--amber-glow);
  transform: translateY(-2px);
  color: #fff;
}

.roles-section { margin-top: 24px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header h2,
.faq-section h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-glow);
}

.status-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #82e082;
  background: rgba(60, 180, 60, 0.12);
  border: 1px solid rgba(60, 180, 60, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.count-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: #1d1713;
  border: 1px solid var(--card-border);
  padding: 2px 8px;
  border-radius: 4px;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.role-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.role-card:hover {
  border-color: rgba(232, 122, 36, 0.5);
  transform: translateY(-2px);
}

.role-card.priority { border-left: 3px solid var(--amber-glow); }

.role-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.role-top h3 { font-size: 1rem; font-weight: 700; color: #fff; }

.role-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: #241d18;
  color: var(--text-muted);
  border: 1px solid #3a2e25;
}

.role-badge.hot {
  background: rgba(232, 122, 36, 0.16);
  color: var(--amber-hover);
  border-color: rgba(232, 122, 36, 0.45);
}

.role-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }
.side-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.titles-section {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.catalog-triggers {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.folder-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, rgba(28, 22, 18, 0.95) 0%, rgba(18, 14, 11, 0.95) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--amber-glow);
  border-radius: 12px;
  padding: 24px 22px;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.folder-card.all-titles {
  border-left-color: #d6ccc2;
  background: linear-gradient(135deg, rgba(36, 27, 21, 0.95) 0%, rgba(20, 15, 12, 0.95) 100%);
}

.folder-card.completed { border-left-color: #62c462; }

.folder-num {
  position: absolute;
  right: 18px;
  bottom: -10px;
  font-family: 'Russo One', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  transition: color 0.25s, transform 0.25s;
}

.folder-card:hover .folder-num {
  color: rgba(232, 122, 36, 0.1);
  transform: translateX(-4px);
}

.folder-card:hover {
  background: linear-gradient(135deg, #241c17 0%, #17120e 100%);
  border-color: var(--amber-glow);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85), 0 0 20px rgba(232, 122, 36, 0.16);
}

.folder-card.all-titles:hover { border-color: #ede6df; }
.folder-card.completed:hover {
  border-color: #62c462;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85), 0 0 20px rgba(98, 196, 98, 0.14);
}

.folder-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.folder-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber-glow);
  background: rgba(232, 122, 36, 0.12);
  border: 1px solid rgba(232, 122, 36, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
}

.folder-tag.all {
  color: #ede6df;
  background: rgba(237, 230, 223, 0.09);
  border-color: rgba(237, 230, 223, 0.28);
}

.folder-tag.done {
  color: #82e082;
  background: rgba(60, 180, 60, 0.12);
  border-color: rgba(60, 180, 60, 0.35);
}

.folder-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}

.folder-card:hover .folder-arrow {
  color: #fff;
  transform: translate(3px, -3px);
}

.folder-card h3 { font-size: 1.15rem; font-weight: 700; color: #fff5eb; margin-bottom: 5px; }
.folder-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.45; max-width: 88%; }

.faq-section { width: 100%; }
.faq-section h2 { margin-bottom: 10px; }

.faq-item {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.faq-item:last-child { margin-bottom: 0; }
.faq-item[open] { border-color: rgba(232, 122, 36, 0.55); }

.faq-item summary {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.91rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  color: var(--amber-glow);
  font-size: 1.15rem;
}

.faq-item[open] summary::after { content: '−'; }

.faq-content {
  padding: 9px 16px 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer {
  margin-top: 38px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #5c5047;
  letter-spacing: 0.12em;
}

/* Модальные окна и Каталог */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 4, 3, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal-window {
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  overflow-y: auto;
  background: #14100d;
  border: 1px solid #3d2e23;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(232, 122, 36, 0.12);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--amber-glow);
  letter-spacing: 0.1em;
}

.modal-top h2 {
  font-family: 'Russo One', sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: #fff5eb;
  margin-top: 2px;
}

.modal-close {
  background: #211b17;
  border: 1px solid #3d3026;
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.modal-close:hover { border-color: var(--amber-glow); color: var(--amber-hover); }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #261d17;
}

.tab-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: 6px;
  background: #1c1612;
  border: 1px solid #33271e;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.2s;
}

.tab-btn:hover { color: #fff; border-color: #544032; }

.tab-btn.active {
  background: rgba(232, 122, 36, 0.18);
  border-color: var(--amber-glow);
  color: var(--amber-hover);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.catalog-item {
  display: flex;
  gap: 14px;
  background: #1a1511;
  border: 1px solid #2e231b;
  border-radius: 10px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

.catalog-item:hover { border-color: var(--amber-glow); transform: translateY(-2px); }

.catalog-item img {
  width: 72px;
  height: 102px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.catalog-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.title-status {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--amber-glow);
  background: rgba(232, 122, 36, 0.12);
  border: 1px solid rgba(232, 122, 36, 0.35);
  padding: 1px 7px;
  border-radius: 4px;
}

.title-status.done {
  color: #82e082;
  background: rgba(60, 180, 60, 0.12);
  border-color: rgba(60, 180, 60, 0.35);
}

.catalog-info h3 { font-size: 0.96rem; color: #fff5eb; }
.catalog-info p { font-size: 0.8rem; color: var(--text-muted); }

/* Админ-панель */
.admin-trigger {
  background: none;
  border: none;
  color: #4a3f37;
  font-family: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  margin-left: 8px;
  transition: color 0.2s;
}
.admin-trigger:hover { color: var(--amber-glow); }

.admin-window { max-width: 760px; }
.admin-auth p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.auth-row { display: flex; gap: 10px; }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #261d17;
}

.atab-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 6px;
  background: #1c1612;
  border: 1px solid #33271e;
  color: var(--text-muted);
  cursor: pointer;
}
.atab-btn.active { background: rgba(232, 122, 36, 0.18); border-color: var(--amber-glow); color: var(--amber-hover); }

.atab-panel { display: none; flex-direction: column; gap: 12px; }
.atab-panel.active { display: flex; }

.atab-panel label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-window input[type="text"],
.admin-window input[type="password"],
.admin-window textarea,
.admin-window select {
  width: 100%;
  background: #1b1511;
  border: 1px solid #382b21;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--text-main);
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
}

.admin-window input:focus,
.admin-window textarea:focus,
.admin-window select:focus {
  outline: none;
  border-color: var(--amber-glow);
}

.ed-list { display: flex; flex-direction: column; gap: 10px; }
.ed-card {
  background: #191410;
  border: 1px solid #2e231b;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ed-row { display: flex; gap: 8px; align-items: center; }
.chk { flex-direction: row !important; align-items: center; white-space: nowrap; cursor: pointer; }
.del-btn {
  background: #2b1815;
  border: 1px solid #592820;
  color: #ff7b6b;
  padding: 8px 11px;
  border-radius: 6px;
  cursor: pointer;
}

.admin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #261d17;
}
.status-msg { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--amber-hover); }

@media (max-width: 920px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .roles-grid, .catalog-grid { grid-template-columns: 1fr; }
  .profile-info { flex-direction: column; align-items: flex-start; margin-top: -80px; padding: 0 20px; }
  .avatar-wrapper { width: 100px; height: 130px; }
Use code with caution.
.description, .actions { padding-left: 20px; padding-right: 20px; }
.btn { width: 100%; justify-content: center; }
}