.history {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0));
  border: none;
  border-radius: 16px;
  padding: 8px 16px;
}
.history__list { list-style: none; padding: 0; margin: 0; }
.history__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1200px) { .history__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .history__grid { grid-template-columns: repeat(1, minmax(0, 1fr)); } }

.history__card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0)); border: none; border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.history__top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.history__items { display: grid; gap: 4px; font-size: 14px; }
.history__items b { color: var(--muted); font-weight: 700; margin-right: 4px; }
.history__meta { color: var(--muted); font-size: 12px; }
.history__actions { display: flex; gap: 6px; justify-content: flex-end; }
:root {
  --bg: #0b0f14;
  --surface: #131a21;
  --surface-2: #0f151c;
  --text: #eaf2ff;
  --muted: #90a4b8;
  --primary: #5cc8ff;
  --primary-2: #7bffec;
  --accent: #a17bff;
  --danger: #ff6b6b;
  --success: #2ee59d;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --body-background: radial-gradient(1200px 600px at 20% -10%, rgba(92,200,255,0.08), transparent 50%),
                      radial-gradient(900px 500px at 120% 10%, rgba(161,123,255,0.10), transparent 55%),
                      linear-gradient(180deg, var(--bg), #080b10);
  --slot-bg: #060607;
  --slot-border: rgba(255,255,255,0.04);
  --slot-item-bg: #000000;
  --card-border: rgba(255,255,255,0.06);
  --card-overlay-start: rgba(255,255,255,0.02);
  --card-overlay-end: rgba(255,255,255,0.00);
  --ghost-border: rgba(255,255,255,0.15);
  --btn-text: #001018;
  --panel-border: rgba(255,255,255,0.10);
}

body.theme-neoglass {
  --bg: #0b0f14;
  --surface: #131a21;
  --surface-2: #0f151c;
  --text: #eaf2ff;
  --muted: #90a4b8;
  --primary: #5cc8ff;
  --primary-2: #7bffec;
  --accent: #a17bff;
  --danger: #ff6b6b;
  --success: #2ee59d;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --slot-bg: #060607;
  --slot-border: rgba(255,255,255,0.04);
  --slot-item-bg: #000000;
  --card-border: rgba(255,255,255,0.06);
  --card-overlay-start: rgba(255,255,255,0.02);
  --card-overlay-end: rgba(255,255,255,0);
  --ghost-border: rgba(255,255,255,0.15);
  --btn-text: #001018;
  --panel-border: rgba(255,255,255,0.10);
  --body-background: radial-gradient(1200px 600px at 20% -10%, rgba(92,200,255,0.08), transparent 50%),
                     radial-gradient(900px 500px at 120% 10%, rgba(161,123,255,0.10), transparent 55%),
                     linear-gradient(180deg, var(--bg), #080b10);
}

body.theme-cyber-noir {
  --bg: #05060f;
  --surface: #0e1422;
  --surface-2: #080c18;
  --text: #e6f3ff;
  --muted: #7f8fb0;
  --primary: #00f0ff;
  --primary-2: #884dff;
  --accent: #ff3399;
  --danger: #ff4f7b;
  --success: #24e5aa;
  --shadow: 0 14px 36px rgba(0,0,0,0.6);
  --slot-bg: #050814;
  --slot-border: rgba(0,240,255,0.2);
  --slot-item-bg: #091124;
  --card-border: rgba(0,240,255,0.18);
  --card-overlay-start: rgba(0,240,255,0.06);
  --card-overlay-end: rgba(255,51,153,0.05);
  --ghost-border: rgba(0,240,255,0.28);
  --btn-text: #01060a;
  --panel-border: rgba(0,240,255,0.22);
  --body-background: radial-gradient(900px 480px at 12% -8%, rgba(0,240,255,0.18), transparent 55%),
                     radial-gradient(820px 520px at 120% 0%, rgba(255,51,153,0.20), transparent 60%),
                     linear-gradient(190deg, #040510, #010206 70%);
}

body.theme-retrowave {
  --bg: #160016;
  --surface: #240223;
  --surface-2: #1a001a;
  --text: #ffe6fb;
  --muted: #f5a6d8;
  --primary: #ff6ec4;
  --primary-2: #fcae3b;
  --accent: #826dff;
  --danger: #ff2d60;
  --success: #4dedc4;
  --shadow: 0 18px 40px rgba(16,0,32,0.55);
  --slot-bg: #23002c;
  --slot-border: rgba(255,110,196,0.26);
  --slot-item-bg: #33003f;
  --card-border: rgba(255,110,196,0.22);
  --card-overlay-start: rgba(255,110,196,0.10);
  --card-overlay-end: rgba(252,174,59,0.08);
  --ghost-border: rgba(252,174,59,0.28);
  --btn-text: #2f082f;
  --panel-border: rgba(255,110,196,0.24);
  --body-background: radial-gradient(1100px 540px at 20% -10%, rgba(255,110,196,0.22), transparent 55%),
                     radial-gradient(1000px 520px at 110% 0%, rgba(252,174,59,0.18), transparent 58%),
                     linear-gradient(185deg, #1a001d, #060009 80%);
}

body.theme-aurora {
  --bg: #041524;
  --surface: #0a2133;
  --surface-2: #071a28;
  --text: #e8f7ff;
  --muted: #8fb5ca;
  --primary: #2dd6ff;
  --primary-2: #7af3c5;
  --accent: #ad7bff;
  --danger: #ff7890;
  --success: #58f0a9;
  --shadow: 0 16px 40px rgba(2,18,28,0.55);
  --slot-bg: #072235;
  --slot-border: rgba(45,214,255,0.2);
  --slot-item-bg: #0d3248;
  --card-border: rgba(45,214,255,0.18);
  --card-overlay-start: rgba(45,214,255,0.08);
  --card-overlay-end: rgba(173,123,255,0.08);
  --ghost-border: rgba(122,243,197,0.26);
  --btn-text: #01232c;
  --panel-border: rgba(45,214,255,0.22);
  --body-background: radial-gradient(940px 520px at 10% -15%, rgba(45,214,255,0.22), transparent 58%),
                     radial-gradient(1000px 520px at 120% 10%, rgba(173,123,255,0.16), transparent 60%),
                     linear-gradient(188deg, #041524, #020b13 80%);
}

body.theme-solaris {
  --bg: #1a0e02;
  --surface: #261404;
  --surface-2: #1d0f02;
  --text: #fff5dd;
  --muted: #e1c7a2;
  --primary: #ff9b4a;
  --primary-2: #ffd55c;
  --accent: #ff6f91;
  --danger: #ff4f4f;
  --success: #7fe0a6;
  --shadow: 0 18px 40px rgba(26,9,0,0.6);
  --slot-bg: #211104;
  --slot-border: rgba(255,155,74,0.28);
  --slot-item-bg: #2a1405;
  --card-border: rgba(255,155,74,0.24);
  --card-overlay-start: rgba(255,155,74,0.12);
  --card-overlay-end: rgba(255,111,145,0.10);
  --ghost-border: rgba(255,213,92,0.34);
  --btn-text: #2a1605;
  --panel-border: rgba(255,155,74,0.28);
  --body-background: radial-gradient(1020px 520px at 18% -12%, rgba(255,155,74,0.24), transparent 56%),
                     radial-gradient(900px 500px at 118% 0%, rgba(255,111,145,0.18), transparent 58%),
                     linear-gradient(186deg, #241103, #110601 82%);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--body-background);
  color: var(--text);
}

.app {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.app__header {
  padding: 16px 24px 0;
  text-align: center;
}

.top-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.top-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.top-link__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.top-link__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-link--twitch { color: #9146FF; }
.top-link--vk { color: #4A76A8; }
.top-link--donate { color: #FF9B4A; }

.app__header > div { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }

.title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(92,200,255,0.25));
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.app__main {
  padding: 20px 24px 40px;
  display: grid;
  gap: 28px;
}

.subtitle {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.tier-switch .btn {
  min-width: 80px !important;
  height: 48px !important;
  font-size: 1.25rem !important;
  border-radius: 12px !important;
  padding: 0 24px !important;
  box-shadow: 0 2px 12px rgba(92,200,255,0.08) !important;
}

.slots {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .slots { grid-template-columns: 1fr; }
}

.slot-card {
  background: linear-gradient(180deg, var(--card-overlay-start), var(--card-overlay-end)), var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.slot-card::before { display: none; }

.slot-card__label {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
  text-align: center;
}

.slot-card__label .slot-card__spin {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  color: #001018;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.slot {
  background: var(--slot-bg);
  border: 1px solid var(--slot-border);
  border-radius: 12px;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1; /* квадратный слот */
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  contain: content;
  margin: 0 auto; /* центрирование */
}

.slot__window {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  will-change: transform;
  transition: transform 5s cubic-bezier(.12,.8,.12,1);
}

.slot__item {
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  padding: 8px;
  background: var(--slot-item-bg);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  transform: translateZ(0);
}

.slot__item img {
  background: #060607;
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slot__item > div { display: none; }

.slot-card__name { text-align: center; font-weight: 800; margin-top: 8px; }

/* Тиры */
.tiers {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.tier-btn {
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
  transition: all 0.2s ease;
}

.tier-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.tier-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(103,80,164,0.4);
}

/* Опции */
.options {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

/* Кнопки управления */
.controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 24px;
}

.btn {
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 0;
  color: var(--btn-text);
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(92,200,255,0.35), inset 0 -4px 10px rgba(0,0,0,0.15);
  transition: transform .1s ease, filter .2s ease;
}

.btn--small {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 10px;
}

/* Ensure the main spin button keeps a stable width to avoid layout shifts */
#spinBtn {
  min-width: 220px;
  max-width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 720px) {
  .tiers { 
    flex-wrap: wrap;
    gap: 8px;
  }
  .controls {
    flex-direction: column;
    width: 100%;
  }
  #spinBtn { min-width: auto; width: 100%; }
}

.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }

.btn--seg {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}

.btn--seg.active {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #001018;
  border-color: transparent;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--ghost-border);
  box-shadow: none;
}

.theme-switcher {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.theme-switcher__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 14px;
  width: min(320px, 90vw);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  display: none;
  z-index: 40;
}

@media (max-width: 720px) {
  .theme-switcher {
    align-items: stretch;
  }
  .theme-switcher__panel {
    left: 0;
    right: auto;
  }
}

.theme-switcher__panel--open {
  display: block;
}

.theme-switcher__grid {
  display: grid;
  gap: 10px;
}

.theme-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--preview-from, #5cc8ff), var(--preview-to, #a17bff));
  color: var(--preview-text, #fdfdfd);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border .2s ease;
}

.theme-choice strong {
  font-size: 15px;
}

.theme-choice span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

.theme-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.25);
}

.theme-choice.active {
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 18px 36px rgba(0,0,0,0.35);
}

.theme-choice:focus-visible {
  outline: 2px solid rgba(255,255,255,0.85);
  outline-offset: 2px;
}

.app__footer {
  padding: 12px 24px 32px;
  text-align: center;
}

.hint { color: var(--muted); }

/* Анимации */
@keyframes slot-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

@keyframes reveal-pop {
  0% { transform: scale(0.6) rotateX(30deg); opacity: 0; }
  60% { transform: scale(1.06) rotateX(0deg); opacity: 1; }
  100% { transform: scale(1) rotateX(0deg); opacity: 1; }
}

.reveal {
  animation: reveal-pop .6s cubic-bezier(.2,1,.2,1) both;
}

/* усиление эффекта пролистывания */
.slot.scrolling::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}

/* Конфетти canvas */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* Lock overlay */
.lock { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: none; z-index: 10000; }
.lock[aria-hidden="false"] { display: grid; place-items: center; }
.lock__inner { text-align: center; display: grid; gap: 10px; background: var(--surface); border: 1px solid rgba(255,255,255,0.1); padding: 20px; border-radius: 16px; }
.lock__actions { display: flex; gap: 10px; justify-content: center; }

/* Settings */
.settings {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 8px 16px;
}

.admin__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}

/* Скрываем секции, доступные только администратору */
.admin-only { display: none; }

.admin__row input[type="password"] {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
}

.item-form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.item-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.item-form__row input,
.item-form__row select {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
}

.item-form__row--flags {
  gap: 24px;
}

.flag { color: var(--muted); }

/* Server items */
.server-items {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 8px 16px;
}

.server-items__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .server-items__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .server-items__grid { grid-template-columns: 1fr; }
}

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

.server-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

.server-list img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
}

/* Modal */
.modal { position: fixed; inset: 0; display: none; pointer-events: none; z-index: 9999; }
.modal[aria-hidden="false"] { display: block; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(3px); z-index: 0; }
.modal__dialog {
  position: relative;
  width: min(520px, 94vw);
  margin: 10vh auto;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 1;
}
.modal__header, .modal__footer { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.modal__body { padding: 8px 16px 16px; }
.modal input[type="password"] { width: 100%; background: var(--surface-2); border: 1px solid rgba(255,255,255,0.12); color: var(--text); padding: 12px; border-radius: 10px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }
.steps li.done { border-color: rgba(46,229,157,0.6); background: rgba(46,229,157,0.12); }
.steps li.error { border-color: rgba(255,107,107,0.6); background: rgba(255,107,107,0.12); }

/* Edit modal specific */
.modal--edit .modal__dialog { width: min(640px, 96vw); }
.edit-form { display: grid; gap: 12px; }
.edit-form__preview { display: grid; place-items: center; }
.edit-form__preview img { width: 160px; height: 160px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }
.edit-form__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.edit-form__grid input, .edit-form__grid select { background: var(--surface-2); border: 1px solid rgba(255,255,255,0.12); color: var(--text); padding: 10px 12px; border-radius: 10px; }

.server-list .actions { display: flex; gap: 6px; }
.server-right { display: flex; align-items: center; gap: 8px; justify-self: end; }

.tag {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn--edit { color: #7bffec; }
.icon-btn--del { color: #ff6b6b; }

.edit-row { width: 100%; display: grid; grid-template-columns: 1.2fr 1fr 0.8fr auto; gap: 8px; align-items: center; }
.edit-row input[type="text"],
.edit-row input[type="url"],
.edit-row select {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
}
.edit-row .flags { display: flex; gap: 8px; color: var(--muted); }
.edit-row .btn { padding: 10px 14px; }

/* Auth Modal */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.auth-modal__content {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(78, 205, 196, 0.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

.auth-modal__content h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(45deg, #4ecdc4, #5cc8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.auth-modal__close:hover {
  background: rgba(255, 107, 107, 0.3);
  border-color: #ff6b6b;
}

.auth-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.auth-btn--vk {
  background: linear-gradient(135deg, #0077FF 0%, #0055CC 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
}

.auth-btn--vk:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.5);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 25px 0;
  color: #aaa;
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

/* Unauthorized Overlay */
.unauthorized-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unauthorized-message {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
  border: 2px solid rgba(78, 205, 196, 0.2);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
}

.unauthorized-message h2 {
  margin: 0 0 15px 0;
  font-size: 32px;
  font-weight: 800;
  color: #4ecdc4;
}

.unauthorized-message p {
  color: #aaa;
  font-size: 16px;
  margin: 0;
}

