:root {
  --bg: #050607;
  --bg-alt: #11214;
  --text: #e4e4e4;
  --muted: #77787b;
  --accent: #18ff42;
  --accent-soft: rgba(24, 255, 66, 0.25);
  --border: #4c4d50;
  --error: #ff6b6b;
  --warning: #f39c12;
  --success: #2ecc71;
  --admin: #9b59b6;
	--tr: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
	--ch1: #05478a;
	--ch2: #0070e0;
	--cs1: #005e38;
	--cs2: #03a65a;
	--cw1: #c24914;
	--cw2: #fc8621;
	--ce1: #851d41;
	--ce2: #db3056;
	--shadow-soft: 0 0.25rem 1rem rgba(26, 31, 67, 0.25);
	--shadow-medium: 0 0.5rem 1.5rem rgba(26, 31, 67, 0.3);
	--shadow-strong: 0 0.75rem 2rem rgba(26, 31, 67, 0.35);
	--radius: 1rem;
	--radius-sm: 0.75rem;
	--radius-lg: 1.25rem;
	--toast-width: 18rem;
	--toast-height: auto;
	--icon-size: 3.5rem;
	--close-size: 1.5rem;
	--font-size-small: 0.85rem;
	--font-size-medium: 0.95rem;
	--font-size-large: 1.2rem;
	--font-weight-normal: 400;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
}

@property --bg-help {
	syntax: '<percentage>';
	inherits: false;
	initial-value: -10%;
}

@property --bg-success {
	syntax: '<percentage>';
	inherits: false;
	initial-value: 145%;
}

@property --bg-warning {
	syntax: '<percentage>';
	inherits: false;
	initial-value: -55%;
}

@property --bg-error {
	syntax: '<percentage>';
	inherits: false;
	initial-value: 112%;
}

@property --bsc {
	syntax: '<color>';
	inherits: false;
	initial-value: rgba(255, 255, 255, 0);
}

/* Стили для аудио уведомления о победе */
.sound-notification {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10000;
    animation: slideInRight 0.5s ease;
}

/* .sound-alert {
    background: linear-gradient(135deg, #000000 0%, #000201 100%);
    border: 2px solid #00e63a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(24, 255, 66, 0.3),
                0 0 20px rgba(24, 255, 66, 0.2) inset;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sound-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
} */

.sound-alert p {
    color: var(--text);
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 15px 0;
    text-shadow: 0 0 5px rgba(25, 255, 255, 0.5);
    z-index: 1;
    position: relative;
}

.sound-button {
    background: #000;
    color: #18ff42;
    border: 2px solid #18ff42;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.sound-button:hover {
    background: #18ff42;
    color: #000;
    box-shadow: 0 0 20px rgba(24, 255, 66, 0.5);
    transform: translateY(-2px);
}

.sound-button:active {
    transform: translateY(1px);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 10%;
    }
    100% {
        left: 100%;
    }
}

/* Стили для страницы победителей */
.winner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.winner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #00e63a, var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.winner-card:hover::before {
    transform: scaleX(1);
}

.winner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(24, 255, 66, 0.2);
}

.winner-place {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.place-badge {
    font-size: 1.8em;
}

.winner-name {
    margin: 0;
    font-size: 1.4em;
    color: var(--accent);
    font-family: "Russo One", system-ui;
}

.winner-description {
    margin: 10px 0;
    color: var(--muted);
    font-size: 1em;
}

.winner-image {
    text-align: center;
    margin: 15px 0;
}

.winner-image iframe {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.no-winner-info {
    text-align: center;
    padding: 20px 0;
    color: var(--muted);
    font-style: italic;
}
.winner-divider {
    border: none;
    height: 1px;
/* Стили для сообщений об отсутствии победителей */
.no-winner-info {
    text-align: center;
    padding: 20px 0;
    color: var(--muted);
    font-style: italic;
}

.winner-divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 15px 0;
}

/* Стили для страницы победителей */
    background: var(--border);
    margin: 15px 0;
}

/* Стили для страницы победителей */
.winner-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.winner-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.votes-count {
    margin: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1em;
}
/* Стили для интересных фактов */
.facts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.fact-item {
    margin-bottom: 20px;
}

/* Стили для кнопки Google OAuth */
.btn-google-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #025d13;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-family: 'Montserrat', system-ui;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px;
    border-radius: 4px;
    border: 1px solid #119728;
}

.btn-google-login:hover {
    background: #18ff42;
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 255, 2, 0.3);
}

.btn-logout {
    display: inline-block;
    background: transparent;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    padding: 10px 28px;
    font-size: 1rem;
    font-family: 'Montserrat', system-ui;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 10px;
    border-radius: 999px;
}

.btn-logout:hover {
    background: #ff6b6b;
    color: #000;
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
}

.btn-profile {
    display: inline-block;
    background: transparent;
    color: #18ff42;
    border: 1px solid #18ff42;
    padding: 10px 28px;
    font-size: 1rem;
    font-family: 'Montserrat', system-ui;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 10px;
    border-radius: 999px;
}

.btn-profile:hover {
    background: #18ff42;
    color: #000;
    box-shadow: 0 0 25px rgba(24, 255, 66, 0.4);
}

.btn-admin {
    display: inline-block;
    background: transparent;
    color: #9b59b6;
    border: 1px solid #9b59b6;
    padding: 10px 28px;
    font-size: 1rem;
    font-family: 'Montserrat', system-ui;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 10px;
    border-radius: 999px;
}

.btn-admin:hover {
    background: #9b59b6;
    color: #000;
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.4);
}

/* Убран неиспользуемый селектор .admin-panel */

/* Центрируем кнопки входа */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}
.hero {
  position: relative;
  padding: 40px 32px 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40px;
 right: -40px;
  bottom: -40px;
  left: -40px;
  inset: -40px;
  background:
    radial-gradient(circle at top, rgba(0,0,0) 0, #000 60%),
    repeating-radial-gradient(circle, #222 0 1px, #000 2px 3px);
  mix-blend-mode: screen;
  opacity: 0.3;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-text-block {
    max-width: 600px;
    display: inline-block;
}

.hero-tagline {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--muted);
}

.hero-title,
.hero-subtitle {
  font-family: "Russo One", system-ui;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.9;
  margin: 0;
}

.hero-subtitle {
  font-size: clamp(38px, 6vw, 64px);
  margin-top: 28px;
  margin-bottom: 30px;
}

.accent {
  color: var(--accent);
}
.decor-image {
    position: absolute;
    top: 40%;
    right: 15%;
    height: 300px;
    z-index: 3;
    filter: drop-shadow(0 0 5px #18ff42);
}

@media (max-width: 768px) {
    .decor-image {
        display: none;
    }
}

.fade {
  color: rgba(255,255,255,0.12);
}

.hero-actions {
  margin-top: 30px;
}

.btn-outline {
  border: 1px solid var(--accent);
  padding: 10px 28px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(0,0,0,0.2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  font-family: "Montserrat", system-ui;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 25px var(--accent-soft);
}

/* Навигационное меню */
.top-nav {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 16px 32px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    border-radius: 20px;
}

.top-nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-nav a:hover {
    color: var(--accent);
}

.section {
  padding: 40px 32px 80px;
  background: linear-gradient(to bottom, #050607 0, #000000 100%);
}

.section-header {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-family: "Russo One", system-ui;
  margin-bottom: 40px;
}

.green-glow {
  position: absolute;
  right: 18%;
  top: 335px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  filter: blur(12px);
}

.events-grid {
  grid-template-columns: 1.4fr 1.2fr;
  gap: 40px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 20px;
}

.event-card {
  border: 1px solid var(--border);
  padding: 18px 20px;
  background: radial-gradient(circle at top left, #191b1f 0, #0b0c0f 60%, #050607 100%);
  border-radius: 10px;
}

.event-card.dark {
  background: radial-gradient(circle at top, #101216 0, #050607 65%);
  margin-bottom: 20px;
}

.event-label {
  font-size: 20px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
  font-family: "Russo One", system-ui;
}

.event-title {
  text-transform: uppercase;
  font-size: 15px;
  color: var(--accent);
  margin: 10px 0;
}

.event-meta strong {
  font-size: 11px;
  text-transform: uppercase;
}

.event-description {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 16px;
}

.event-description ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: awards-counter;
}

.event-description ol > li {
    counter-increment: awards-counter;
    padding: 15px 20px;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid #4c4d50;
}

.event-description ol > li::before {
    font-weight: bold;
    font-size: 1.2em;
    color: #444;
    margin-right: 8px;
}

.event-description h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.event-description p {
    margin: 0;
    font-size: 0.95em;
}

.event-img-placeholder {
  width: 100%;
  height: 140px;
 background: repeating-linear-gradient(
    135deg,
    #202327 0 2px,
    #050607 2px 4px
  );
  margin-bottom: 12px;
  position: relative;
}

.event-img-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Скрываем радиокнопки */
.vote-radio {
    display: none;
}

.btn-card {
 border: 1px solid var(--border);
  padding: 7px 20px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  font-family: "Montserrat", system-ui;
  transition: all 0.3s ease;
}

/* Стили для кнопки подтверждения выбора */
.btn-confirm {
    background: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
    font-family: "Montserrat", system-ui;
}

.btn-confirm:hover {
    background: #00e63a;
    border-color: #00e63a;
    box-shadow: 0 0 20px var(--accent-soft);
}

.btn-confirm:disabled,
.btn-confirm.disabled {
    background: rgba(0, 0, 0, 0.3);
    color: var(--muted);
    border-color: var(--border);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Стили для сообщения о подтверждении выбора */
.confirmation-message {
    background: var(--accent);
    color: #000;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 15px;
    width: 100%;
    text-align: center;
    font-family: "Montserrat", system-ui;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.confirmation-message::before {
    content: "✓";
    font-weight: bold;
    font-size: 16px;
}

.btn-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-soft);
}

/* Стили для подсветки выбранной кнопки "Проголосовать" */
.btn-vote-label.voted {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-soft);
}

.btn-vote-label.voted:hover {
    box-shadow: 0 0 20px var(--accent-soft);
}

/* Стили для подсветки кнопки "Проголосовать" при выборе */
.btn-vote-label.selected {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 5px 5px var(--accent-soft)
}

/* Улучшенные стили для кнопки при наведении, чтобы не конфликтовали с подсветкой выбора */
.btn-vote-label:hover:not(.selected):not(.disabled) {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-soft);
}

/* Стили для заблокированных кнопок голосования */
.btn-vote-label.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
    color: var(--muted);
    border-color: var(--border);
    border-radius: 5px;
}

.bottom-note {
  margin-top: 40px;
  text-transform: uppercase;
  font-family: "Russo One", system-ui;
  color: var(--muted);
  text-align: center;
}

.bottom-note span {
  color: var(--accent);
}

.right-title {
  color: var(--accent);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

body {
 background: radial-gradient(circle at top, #202327 0, #050607 5%, #000 100%);
  color: var(--text);
  font-family: "Montserrat", system-ui;
  line-height: 1.5;
  min-height: 100vh;
}

.container {
 max-width: 1200px;
  margin: 0 auto;
}

/* Шапка */
.header {
  background: var(--bg);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header .container {
 display: flex;
 justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  flex-wrap: wrap;
}

.logo {
  font-family: "Russo One", system-ui;
  font-size: 1.8rem;
 font-weight: 700;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.logo::before {
  content: "🌿";
  margin-right: 12px;
 font-size: 1.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info span {
 font-weight: 600;
  color: var(--text);
}

/* Кнопки */
.btn {
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  text-align: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  font-family: "Montserrat", system-ui;
}

.btn-primary {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(0,0,0,0.2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.btn-primary:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 25px var(--accent-soft);
}

.btn-secondary {
  border: 1px solid var(--border);
  padding: 15px 20px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1em;
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover {
   border-color: var(--accent);
   box-shadow: 0 0 15px var(--accent-soft);
}

.btn-vote {
  border: 1px solid var(--accent);
  padding: 10px 20px;
  font-size: 1rem;
  width: 100%;
  margin-top: 15px;
 border-radius: 999px;
  background: rgba(0,0,0,0.2);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-family: "Montserrat", system-ui;
}

.btn-vote:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 25px var(--accent-soft);
}

.btn-edit {
  border: 1px solid var(--border);
  padding: 7px 15px;
  font-size: 10px;
  background: transparent;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.btn-edit:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-soft);
}

.btn-delete {
  border: 1px solid var(--border);
  padding: 7px 15px;
  font-size: 10px;
  background: transparent;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.btn-delete:hover {
  border-color: #ff4242;
  box-shadow: 0 0 15px rgba(255, 66, 6, 0.25);
}

/* Основной контент */
.main {
  min-height: calc(100vh - 160px);
  padding: 3rem 0;
  position: relative;
}

/* Вступительный раздел */
.intro {
  text-align: center;
  margin-bottom: 4rem;
  padding: 4rem 2rem;
  background: radial-gradient(circle at top left, #191b1f 0, #0b0c0f 60%, #050607 100%);
  border: 1px solid var(--border);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.intro h2 {
  font-family: "Russo One", system-ui;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.intro h2 .accent {
  color: var(--accent);
}

.intro p {
  font-size: 1.3rem;
 color: var(--muted);
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
  font-weight: 500;
}

/* Номинации */
.nominations {
  margin-bottom: 3rem;
}

.nomination {
  margin-bottom: 3rem;
  background: radial-gradient(circle at top left, #191b1f 0, #0b0c0f 60%, #050607 100%);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.nomination:hover {
  transform: translateY(-5px);
}

.nomination h3 {
  font-family: "Russo One", system-ui;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 15px;
}

.nomination h3 .accent {
  color: var(--accent);
}

/* Кандидаты */
.candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2rem;
}

.candidates .candidate-item {
  flex: 1 1 auto;
  min-width: 320px;
  max-width: calc((100% - 2 * 2.5rem) / 3); /* Максимум 3 элемента в строке при достаточной ширине */
}

.candidate-card {
 border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: radial-gradient(circle at top left, #191b1f 0, #0b0c0f 60%, #050607 100%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.candidate-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(24, 255, 66, 0.15);
}

.candidate-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.candidate-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.candidate-info h4 {
  font-family: "Russo One", system-ui;
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  position: relative;
}

.candidate-info h4 .accent {
  color: var(--accent);
}

.candidate-info p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.7;
  font-size: 1.1rem;
}

.votes-count {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.3rem;
 text-align: center;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

/* Приглашение к авторизации */
.auth-prompt {
  text-align: center;
  padding: 4rem 2rem;
  background: radial-gradient(circle at top left, #191b1f 0, #0b0c0f 60%, #050607 10%);
  border: 1px solid var(--border);
  border-radius: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.auth-prompt h2 {
  font-family: "Russo One", system-ui;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-transform: uppercase;
  position: relative;
}

.auth-prompt h2 .accent {
  color: var(--accent);
}

/* Админ-панель */
.admin-sections {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.admin-section {
  background: radial-gradient(circle at top left, #191b1f 0, #0b0c0f 60%, #050607 100%);
  border: 1px solid var(--border);
  padding: 2.2rem;
  transition: transform 0.3s ease;
  position: relative;
  margin-bottom: 20px;
}

.admin-section:hover {
  transform: translateY(-5px);
}

.admin-section h3 {
 font-family: "Russo One", system-ui;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
 border-bottom: 1px solid var(--border);
  font-size: 1.6rem;
  text-transform: uppercase;
  position: relative;
}

.admin-section h3 .accent {
  color: var(--accent);
}

.admin-section form {
  margin-bottom: 2rem;
  padding: 1.8rem;
}

.admin-section input,
.admin-section textarea,
.admin-section select {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
 border: 1px solid var(--border);
  border-radius: 0;
  font-size: 1rem;
  transition: all 0.3s;
  background: #0b0c0f;
  color: var(--text);
}

.admin-section input:focus,
.admin-section textarea:focus,
.admin-section select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-soft);
}

.admin-section label {
 display: block;
  margin-bottom: 10px;
 font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
 text-transform: uppercase;
}

.admin-section input::placeholder,
.admin-section textarea::placeholder,
.admin-section select::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
 margin-top: 1.5rem;
}

.candidate-item {
  border: 1px solid var(--border);
  background: radial-gradient(circle at top left, #191b1f 0, #0b0c0f 60%, #050607 100%);
  padding: 1.8rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.candidate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(24, 255, 66, 0.1);
}

.candidate-thumb {
 width: 100%;
 height: 160px;
 background-size: cover;
 background-position: center;
 background-repeat: no-repeat;
 border: 1px solid var(--border);
 margin-bottom: 15px;
 position: relative;
}

.candidate-thumb iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.candidate-item h5 {
  font-family: "Russo One", system-ui;
 color: var(--text);
  margin-bottom: 10px;
  font-size: 1.3rem;
  text-transform: uppercase;
  position: relative;
}

.candidate-item h5 .accent {
  color: var(--accent);
}

.candidate-item p {
  margin-bottom: 8px;
  color: var(--muted);
}

.nomination-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at top left, #191b1f 0, #0b0c0f 60%, #050607 100%);
  transition: all 0.3s;
}

.nomination-item:hover {
  background: radial-gradient(circle at top, #101216 0, #050607 65%);
}

.nomination-info {
  flex-grow: 1;
}

.nomination-actions {
  display: flex;
 gap: 12px;
  margin-left: 15px;
}

.candidate-actions {
  margin-top: 15px;
  display: flex;
 gap: 12px;
}

.user-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

#users-table,
#votes-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: radial-gradient(circle at top left, #191b1f 0, #0b0c0f 60%, #050607 100%);
  border: 1px solid var(--border);
  table-layout: auto;
}

#users-table th,
#users-table td,
#votes-table th,
#votes-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

#users-table th,
#votes-table th {
  font-family: "Russo One", system-ui;
  background: transparent;
  font-weight: 700;
 color: var(--text);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  position: relative;
}

#users-table tr:last-child td,
#votes-table tr:last-child td {
  border-bottom: none;
}

#users-table tr:hover,
#votes-table tr:hover {
  background: rgba(24, 255, 66, 0.05);
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 6, 7, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
 background: radial-gradient(circle at top left, #191b1f 0, #0b0c0f 60%, #050607 100%);
  margin: 15% auto;
  padding: 35px;
  border: 1px solid var(--border);
  width: 80%;
  max-width: 500px;
  text-align: center;
  position: relative;
  border-radius: 0;
}

.close {
  color: var(--muted);
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  transition: color 0.3s;
  z-index: 10;
}

.close:hover {
  color: var(--accent);
}

/* Футер */
.footer {
  background: var(--bg);
  color: var(--text);
  text-align: center;
  padding: 3rem 0;
  position: relative;
  border-top: 1px solid var(--border);
  border-radius: 20px;
}

.footer p {
 margin: 0;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  font-family: "Montserrat", system-ui;
}

/* Адаптивность */
@media (max-width: 900px) {
  .candidates-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-sections {
    grid-template-columns: 1fr;
  }
  
  .candidates {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
    padding: 0 16px;
    align-items: stretch;
  }
  
  .logo {
    justify-content: center;
    width: 100%;
  }
  
  .user-info {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .logo::before {
    font-size: 1.2rem;
 }
  
  .main {
    padding: 2rem 0;
  }
  
  .intro {
    padding: 2.5rem 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .intro h2 {
    font-size: 2rem;
  }
  
  .nomination {
    padding: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .nomination h3 {
    font-size: 1.8rem;
  }
  
  .candidate-card {
    margin-bottom: 1.5rem;
  }
  
 .candidate-info {
    padding: 1.8rem;
 }
  
  .auth-prompt {
    padding: 2.5rem 1.5rem;
  }
  
  .admin-section {
    padding: 1.8rem;
  }
  
  .admin-section form {
    padding: 1.5rem;
  }
  
  .nomination-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .nomination-actions {
    align-self: flex-end;
    margin-left: 0;
  }
  
  .candidate-actions {
    justify-content: center;
 }
  
  #users-table, #votes-table {
      font-size: 0.8rem;
      display: block;
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
  }
  
  /* Возвращаем нормальное отображение для desktop */
  @media (min-width: 769px) {
      #users-table, #votes-table {
          display: table;
          white-space: normal;
      }
  }
  
  #users-table th, #users-table td,
  #votes-table th, #votes-table td {
      padding: 10px 6px;
      min-width: 100px;
  }
  
  /* Возвращаем нормальное отображение для desktop */
  @media (min-width: 769px) {
    #users-table, #votes-table {
      display: table;
      white-space: normal;
    }
  }
  
  #users-table th, #users-table td,
  #votes-table th, #votes-table td {
    padding: 10px 6px;
    min-width: 100px;
  }
  
  .user-actions {
    flex-direction: column;
    gap: 5px;
  }
  
  .btn, .btn-edit, .btn-delete {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  
  .btn-vote {
    padding: 12px 16px;
  }
  
  .footer {
    padding: 2.5rem 0;
  }
  
  .footer p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
  }
  
  .logo::before {
    font-size: 1rem;
    margin-right: 8px;
  }
  
  .intro h2 {
    font-size: 1.6rem;
 }
  
  .intro p {
    font-size: 1.1rem;
  }
  
  .nomination h3 {
    font-size: 1.6rem;
 }
  
  .candidate-info h4 {
    font-size: 1.3rem;
  }
  
  .votes-count {
    font-size: 1.2rem;
 }
  
  .admin-section h3 {
    font-size: 1.4rem;
 }
  
  .candidate-thumb {
    height: 120px;
  }
  
  .modal-content {
    width: 95%;
    padding: 25px;
  }
  
  .close {
    font-size: 28px;
    top: 10px;
    right: 15px;
  }
}

/* Additional responsive improvements for profile page */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .profile-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .profile-actions .btn {
    width: 100%;
    margin: 5px 0;
  }
}

/* Profile page specific styles */
.profile-info {
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.profile-details {
    flex-grow: 1;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.profile-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid var(--border);
}

.profile-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.profile-details p {
    margin: 0 0 10px 0;
    color: var(--muted);
}

.profile-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-badge {
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid var(--admin);
    color: var(--admin);
}

.voted-badge {
    background: rgba(24, 255, 66, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.not-voted-badge {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    border: 1px solid var(--ch1);
    color: var(--text);
    background: rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 20px;
    border-radius: 30px;
}

.form-group input[type="file"] {
    /* width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: #0b0c0f;
    color: var(--text); */
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
  }

/* Обновленные стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 6, 7, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: radial-gradient(circle at top left, #191b1f 0, #0b0c0f 60%, #050607 100%);
    margin: 15% auto;
    padding: 35px;
    border: 1px solid var(--border);
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    border-radius: 0;
}

/* Специфические стили для модального окна подтверждения */
#confirmation-modal .modal-content {
    text-align: left;
}

#confirmation-modal h3 {
    margin: 0 0 15px 0;
    color: var(--accent);
    font-family: "Russo One", system-ui;
    text-transform: uppercase;
    font-size: 1.4rem;
}

#confirmation-modal p {
    margin: 0 0 20px 0;
    color: var(--text);
    font-size: 1rem;
}

#confirmation-modal .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#confirmation-modal .btn-secondary,
#confirmation-modal .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

#confirmation-modal .btn-secondary {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

#confirmation-modal .btn-secondary:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-soft);
}

#confirmation-modal .btn-primary {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #000;
    font-weight: 600;
}

#confirmation-modal .btn-primary:hover {
    background: #00e63a;
    border-color: #00e63a;
    box-shadow: 0 0 20px var(--accent-soft);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Toast уведомления */
.toast-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: var(--tr);
	position: absolute;
	padding: 0 1.25rem;
	height: 100%;
	width: 100%;
	max-width: var(--toast-width);
	box-sizing: border-box;
	right: 0;
	top: 0;
}

.toast-item {
    max-height: 25rem;
    transition: var(--tr);
    position: relative;
    animation: show-toast 5s ease-in-out 0.5s infinite;
}

@keyframes show-toast {
	0% { max-height: 0; opacity: 0; transform: translateY(1rem) scale(0.95); }
	5% { max-height: 15rem; opacity: 1; transform: translateY(0) scale(1); }
	25% { max-height: 15rem; opacity: 1; transform: translateY(0) scale(1); }
	30% { opacity: 0.9; }
	95% { opacity: 0.9; }
	100% { max-height: 0; opacity: 0; transform: translateY(1rem) scale(0.95); }
}

.toast {
	background: var(--bg-alt);
	color: #f5f5f5;
	padding: 1.25rem 2rem 1.25rem 3.25rem;
	text-align: center;
	border-radius: var(--radius);
	position: relative;
	font-weight: var(--font-weight-normal);
	margin: 1rem 0;
	text-align: left;
	width: 100%;
	max-width: var(--toast-width);
	transition: var(--tr);
	opacity: 1;
	border: 0.15rem solid var(--border);
	box-shadow: var(--shadow-medium);
	background: var(--bg-alt);
}

.toast:before {
	content: "";
	position: absolute;
	width: 0.6rem;
	height: calc(100% - 1.5rem);
	top: 0.75rem;
	left: 0.6rem;
	z-index: 0;
	border-radius: var(--radius-sm);
	background: var(--clr);
	box-shadow: 0 0.5rem var(--clr);
}

.toast h3 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.35rem;
    font-weight: 600;
    position: relative;
    color: var(--clr);
}

.toast p {
    position: relative;
    font-size: 0.95rem;
    z-index: 1;
    margin: 0.25rem 0 0;
    color: var(--muted);
    line-height: 1.3rem;
}

.toast-item.success {
    animation-delay: 2s;
}

.toast-item.warning {
    animation-delay: 1s;
}

.toast-item.error {
    animation-delay: 0s;
}

.toast.help {
    --bg: var(--accent);
    --clr: var(--accent);
    --brd: var(--accent-soft);
}
.icon-help:after {
    content: "?";
}

.toast.success {
    --bg: var(--success);
    --clr: var(--success);
    --brd: rgba(46, 204, 113, 0.4);
}

.icon-success:after {
    content: "✓";
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    padding-bottom: 0.25rem;
}

.toast.warning {
    --bg: var(--warning);
    --clr: var(--warning);
    --brd: rgba(243, 156, 18, 0.4);
}

.icon-warning:after {
    content: "!";
    font-weight: bold;
}

.toast.error {
    --bg: var(--error);
    --clr: var(--error);
    --brd: rgba(255, 107, 107, 0.4);
}

.icon-error:after {
    content: "✕";
    font-size: 1.8rem;
    line-height: 1.4rem;
    font-weight: var(--font-weight-bold);
}

.toast a {
    color: var(--clr);
}

.toast a {
	color: var(--clr);
	text-decoration: none;
	font-weight: var(--font-weight-semibold);
	transition: var(--tr);
	border-bottom: 1px dotted currentColor;
}

.toast a:hover {
	color: var(--bg);
	border-bottom: 1px solid currentColor;
	transform: translateY(-0.1rem);
}

.toast-icons {
	background: var(--bg-alt);
	padding: 1.25rem 1.25rem 1.5rem 1.25rem;
	display: flex;
	justify-content: space-around;
	border-radius: var(--radius-lg);
	gap: 1.75rem;
	width: 100%;
	box-sizing: border-box;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	position: relative;
	border: 0.15rem solid var(--border);
	box-shadow: var(--shadow-soft);
}

.toast-icons:before {
	position: absolute;
	width: calc(100% + 0.3rem);
	height: calc(100% + 0.3rem);
	--bg-help: 45%;
	--bg-success: 45%;
	--bg-warning: 45%;
	--bg-error: 45%;
	--bsc: var(--bg);
	background:
		radial-gradient(circle at 14% var(--bg-help), var(--ch1), rgba(255, 255, 255, 0) 1.75rem),
		radial-gradient(circle at 38% var(--bg-success), var(--cs1), rgba(255, 255, 255, 0) 1.75rem),
		radial-gradient(circle at 62% var(--bg-warning), var(--cw1), rgba(255, 255, 255, 0) 1.75rem),
		radial-gradient(circle at 86% var(--bg-error), var(--ce1), rgba(255, 255, 255, 0) 1.75rem);
	content: "";
	bottom: -0.15rem;
	left: -0.15rem;
	border-radius: var(--radius-lg);
	z-index: 0;
	transition: --bg-help 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0s,
				--bg-success 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0s,
				--bg-warning 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0s,
				--bg-error 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0s,
				--bsc 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
	box-shadow: 0 0 2rem rgba(26, 31, 67, 0.15);
}

.toast-icons:has(label[for=t-help]:hover):before {
    --bg-help: 53%;
    --bsc: #18ff42;
}
.toast-icons:has(label[for=t-success]:hover):before {
    --bg-success: 53%;
    --bsc: #2ecc71;
}
.toast-icons:has(label[for=t-warning]:hover):before {
    --bg-warning: 53%;
    --bsc: #f39c12;
}
.toast-icons:has(label[for=t-error]:hover):before {
    --bg-error: 53%;
    --bsc: #ff6b6b;
}

.toast-icon {
	width: var(--icon-size);
	height: var(--icon-size);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	cursor: pointer;
	position: relative;
	background: radial-gradient(circle at 50% 50%, var(--clr) 1.4rem, var(--brd) calc(1.4rem + 1px) 100%);
	transition: var(--tr);
	transform: scale(1);
	box-shadow: var(--shadow-soft);
	border: 1px solid var(--border);
}

.toast-icon:hover {
	transform: scale(1.1) translateY(-0.1rem);
	box-shadow: var(--shadow-medium);
	border-color: var(--border);
}

.toast-icon:active {
	transform: scale(0.95);
}

.toast-icon:after {
	font-size: 1.8rem;
	font-weight: var(--font-weight-bold);
}

.icon-success:after {
	font-size: 1.6rem;
	padding-bottom: 0.3rem;
}

.icon-error:after {
	font-size: 1.8rem;
	line-height: 2rem;
	font-weight: var(--font-weight-bold);
	padding-top: 0.2rem;
}

.icon-help,
.toast-item.help {
	--clr: var(--accent);
	--brd: var(--accent-soft);
}

.icon-success,
.toast-item.success {
	--clr: var(--success);
	--brd: var(--success-soft, rgba(46, 204, 113, 0.25));
}

.icon-warning,
.toast-item.warning {
	--clr: var(--warning);
	--brd: var(--warning-soft, rgba(243, 156, 18, 0.25));
}

.icon-error,
.toast-item.error {
	--clr: var(--error);
	--brd: var(--error-soft, rgba(255, 107, 107, 0.25));
}

input[type=checkbox][name^="t-"] {
    display: none;
}

/* Скрытие примеров toast-уведомлений по умолчанию */
.toast-panel .toast-item:not([class*="show"]) {
    max-height: 0;
    opacity: 0;
}

#t-help:checked ~ .toast-panel .toast-item.help,
#t-success:checked ~ .toast-panel .toast-item.success,
#t-warning:checked ~ .toast-panel .toast-item.warning,
#t-error:checked ~ .toast-panel .toast-item.error {
    max-height: 0;
    opacity: 0;
}