@charset "UTF-8";
:root {
  --red: #e10600;
  --dark: #0c0c0c;
  --light: #f7f7f7;
  --gray: #b9b9b9;
  --card: #151515;
  --steel: #1f2125;
  --accent: #ffd400;
  --radius: 18px;
}

html,
body {
  overflow-x: hidden;
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--light);
  min-height: 100vh;
  background: radial-gradient(circle at 10% 0%, rgba(225, 6, 0, 0.25), transparent 45%), radial-gradient(circle at 90% 10%, rgba(255, 212, 0, 0.18), transparent 40%), linear-gradient(120deg, #0b0b0b 0%, #111 45%, #070707 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 96%, rgba(255, 255, 255, 0.04) 100%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px);
  pointer-events: none;
  z-index: 0;
}

body.page-loaded .topbar {
  animation: topbarDrop 0.45s ease both;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

body.admin-shell {
  background: linear-gradient(180deg, #f3f5f7 0%, #e8edf2 100%);
  color: #12202d;
}

body.admin-shell::before {
  display: none;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  background: linear-gradient(180deg, #101820 0%, #182634 100%);
  color: #eaf2f8;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid rgba(18, 32, 45, 0.12);
  position: sticky;
  top: 0;
  height: 100%;
}

.admin-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.admin-brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.admin-brand strong {
  display: block;
  font-size: 1rem;
}

.admin-brand span {
  display: block;
  color: rgba(234, 242, 248, 0.7);
  font-size: 0.84rem;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav-group {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #d9e5ef;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(2px);
}

.admin-subnav {
  display: grid;
  gap: 6px;
  padding-left: 14px;
}

.admin-subnav a {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(217, 229, 239, 0.86);
}

.admin-sidebar-footer {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar-footer p {
  margin-bottom: 4px;
  font-weight: 700;
}

.admin-sidebar-footer span {
  display: block;
  margin-bottom: 12px;
  color: rgba(234, 242, 248, 0.72);
  font-size: 0.88rem;
}

.admin-main {
  padding: 28px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.admin-topbar h1 {
  margin: 4px 0 0;
  color: #142434;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
}

.admin-eyebrow {
  color: #5f7284;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-content {
  margin-top: 0;
}

body.admin-shell .panel,
body.admin-shell .event-card,
body.admin-shell .hero-card,
body.admin-shell .card,
body.admin-shell .robot-card,
body.admin-shell .list-card,
body.admin-shell .table-row {
  background: rgba(255, 255, 255, 0.9);
  color: #142434;
  border-color: rgba(20, 36, 52, 0.08);
  box-shadow: 0 12px 28px rgba(19, 36, 54, 0.08);
}

body.admin-shell .panel h2,
body.admin-shell .panel h3,
body.admin-shell .panel h4,
body.admin-shell .dashboard-header h2,
body.admin-shell .admin-topbar h1 {
  color: #142434;
}

body.admin-shell .muted,
body.admin-shell .panel p,
body.admin-shell .table-row p,
body.admin-shell .list-card p {
  color: #5f7284;
}

body.admin-shell input,
body.admin-shell textarea,
body.admin-shell select {
  background: #fff;
  color: #142434;
  border: 1px solid rgba(20, 36, 52, 0.14);
}

body.admin-shell label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #203446;
}

body.admin-shell .ghost {
  background: #eaf0f5;
  color: #163247;
}

body.admin-shell .file-link {
  background: #f6f9fb;
  color: #163247;
}

body.admin-shell .event-external-link,
body.admin-shell .link {
  color: #c21510;
}

body.admin-shell .flash {
  margin-bottom: 20px;
}

main {
  margin-top: 32px;
}

main > section + section {
  margin-top: 40px;
}

main > .panel + .panel,
.admin-event > .panel + .panel,
.admin-users > .panel + .panel,
.admin-config > .panel + .panel {
  margin-top: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin-right: calc(50% - 50vw);
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.72);
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.topbar.scrolled {
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand:hover .brand-mark {
  transform: rotate(-2deg) scale(1.04);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 0;
  object-fit: cover;
  border: 0;
  box-shadow: none;
  transition: transform 0.22s ease;
}

.brand-text span {
  display: block;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.brand-text small {
  display: block;
  color: #fff;
  font-size: 0.48rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--light);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(225, 6, 0, 0.14);
  border-color: rgba(225, 6, 0, 0.32);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav a {
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  transition: all 0.2s ease;
  position: relative;
  background: transparent;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: #fff;
  opacity: 0;
  transform: scaleX(0.4);
  transition: all 0.2s ease;
}

.nav a.active,
.nav a:hover {
  background: transparent;
}

.nav a.active::after,
.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav .ghost {
  min-height: auto;
  padding: 4px 10px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

h1, h2, h3, h4 {
  font-weight: 400;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 32px;
  align-items: center;
}

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(145deg, #1d1d1d, #0f0f0f);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.4), transparent 60%);
  animation: glowDrift 5s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
  animation: floatSoft 4.8s ease-in-out infinite;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover,
.event-card:hover,
.robot-card:hover,
.panel:hover,
.hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 212, 0, 0.22);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.46);
}

.card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -20px;
  width: 140px;
  height: 100px;
  transform: rotate(8deg);
  background: repeating-linear-gradient(135deg, rgba(255, 212, 0, 0.2) 0 10px, rgba(255, 255, 255, 0) 10px 20px);
}

.card h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 16px;
  gap: 16px;
}

.event-grid,
.robot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.event-card,
.robot-card {
  background: rgba(21, 21, 21, 0.92);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
  position: relative;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 212, 0, 0.15);
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.22s ease;
}

.event-card:hover::before {
  opacity: 1;
}

.robot-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.robot-card:hover img,
.event-card:hover .event-image {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.015);
}

.event-image,
.event-hero-image,
.event-preview-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c0c;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.event-hero-image {
  margin-bottom: 18px;
}

.event-preview-image {
  max-width: 360px;
}

.event-card span {
  color: var(--gray);
  font-size: 0.9rem;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.btn,
.ghost {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 24px rgba(225, 6, 0, 0.3);
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(225, 6, 0, 0.36);
}

.btn:active,
.ghost:active {
  transform: translateY(0) scale(0.98);
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--light);
}

.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--light);
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.inline-form {
  display: inline;
}

.flash {
  margin: 20px 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  animation: slideFadeIn 0.34s ease both;
}

.flash.success {
  border-left: 4px solid #1db954;
}

.flash.danger {
  border-left: 4px solid #e10600;
}

.flash.warning {
  border-left: 4px solid #f5c542;
}

.form-message {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.4;
}

.form-message.success,
.form-message.danger {
  display: block;
  animation: slideFadeIn 0.28s ease both;
}

.form-message.success {
  background: rgba(29, 185, 84, 0.16);
  color: #83f2aa;
}

.form-message.danger {
  background: rgba(225, 6, 0, 0.16);
  color: #ffb3ae;
}

.field-invalid {
  border-color: rgba(225, 6, 0, 0.8);
  animation: fieldShake 0.24s ease;
}

.field-error {
  display: block;
  margin: -8px 0 10px;
  color: #ffb3ae;
  font-size: 0.86rem;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.auth {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.auth-login {
  grid-template-columns: minmax(320px, 560px);
  justify-content: center;
}

.auth-card,
.auth-side,
.form-card,
.panel {
  background: rgba(21, 21, 21, 0.92);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.3);
}

.auth-card h2,
.form-card h2,
.panel h3 {
  font-family: "Bebas Neue", sans-serif;
  margin-bottom: 16px;
}

.auth-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.14);
  color: #ffb3ae;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-intro {
  margin-bottom: 24px;
  color: var(--gray);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form .btn {
  margin-top: 8px;
}

.auth-form label {
  font-weight: 700;
  color: #f1f1f1;
}

.login-card {
  padding: 32px;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.96) 0%, rgba(15, 15, 15, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
}

.login-card h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
}

.login-card input {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(5, 5, 5, 0.78);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-card input:focus {
  outline: none;
  border-color: rgba(225, 6, 0, 0.65);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.14);
  transform: translateY(-1px);
}

.auth-links {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.auth-links a {
  color: #ffd400;
  text-decoration: none;
  font-weight: 700;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-links .muted {
  margin: 0;
}

.auth-links .muted a {
  color: #ff8f86;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.6);
  color: var(--light);
}

textarea {
  resize: vertical;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.list-card img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.table {
  display: grid;
  gap: 8px;
}

.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.password-reset-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.password-reset-form input {
  width: 180px;
  margin-bottom: 0;
}

.ajax-delete-form {
  display: inline-flex;
  margin-top: 8px;
}

.notie-container {
  font-family: "Space Grotesk", sans-serif;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.notie-textbox {
  font-weight: 700;
  line-height: 1.45;
}

.notie-button {
  font-weight: 800;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.badge.open {
  background: rgba(29, 185, 84, 0.2);
}

.badge.info {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f1f1;
}

.badge.brevemente {
  background: rgba(255, 212, 0, 0.24);
  color: #ffe680;
}

.badge.closed {
  background: rgba(225, 6, 0, 0.2);
}

.badge.draft {
  background: rgba(255, 255, 255, 0.12);
}

.badge.admin {
  background: rgba(225, 6, 0, 0.4);
}

.badge.pending {
  background: rgba(245, 197, 66, 0.2);
}

.badge.approved {
  background: rgba(29, 185, 84, 0.2);
}

.badge.rejected {
  background: rgba(225, 6, 0, 0.2);
}

.bracket-grid {
  display: grid;
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.round {
  min-width: 220px;
  background: var(--steel);
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.round h4 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

.match {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.team {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid transparent;
}

.team.winner {
  border-left: 3px solid var(--accent);
}

.footer {
  margin-top: 48px;
  text-align: center;
  color: var(--gray);
}

.footer-logo {
  width: 240px;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer-links a,
.footer-link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.footer-link-button:hover {
  text-decoration: underline;
}

.cookie-consent {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 18px;
  z-index: 60;
  display: block;
  width: min(430px, 100vw - 36px);
  padding: 0;
  background: transparent;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent-panel {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.cookie-consent.is-configuring {
  inset: 0;
  width: auto;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.45);
}

.cookie-consent.is-configuring .cookie-consent-panel {
  width: min(720px, 100%);
}

.cookie-copy {
  display: grid;
  gap: 8px;
}

.cookie-eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cookie-copy h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.cookie-copy p {
  color: var(--gray);
  line-height: 1.55;
}

.cookie-copy a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.cookie-copy a:hover {
  text-decoration: underline;
}

.cookie-settings {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.cookie-settings[hidden] {
  display: none;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.cookie-option input {
  width: auto;
  margin: 4px 0 0;
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option small {
  margin-top: 3px;
  color: var(--gray);
  line-height: 1.4;
}

.cookie-option.locked {
  opacity: 0.82;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cookie-consent:not(.is-configuring) [data-cookie-reject],
.cookie-consent:not(.is-configuring) [data-cookie-save] {
  display: none;
}

.privacy-page {
  display: grid;
  gap: 18px;
}

.privacy-page .panel h2 {
  margin-bottom: 12px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.privacy-grid > div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.privacy-grid h3 {
  margin-bottom: 8px;
}

.privacy-grid p {
  color: var(--gray);
  line-height: 1.55;
}

.regulation-page .section-header {
  align-items: flex-start;
}

.regulation-grid > div {
  border-radius: 14px;
}

.regulation-grid p + p {
  margin-top: 10px;
}

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

.info-box {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 212, 0, 0.3);
}

.card,
.event-card,
.panel,
.hero-card,
.robot-card {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.cards .card:nth-child(2),
.event-grid .event-card:nth-child(2),
.robot-grid .robot-card:nth-child(2) {
  transition-delay: 0.06s;
}

.cards .card:nth-child(3),
.event-grid .event-card:nth-child(3),
.robot-grid .robot-card:nth-child(3) {
  transition-delay: 0.12s;
}

.cards .card:nth-child(4),
.event-grid .event-card:nth-child(4),
.robot-grid .robot-card:nth-child(4) {
  transition-delay: 0.18s;
}

@keyframes topbarDrop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes glowDrift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(-10px, 8px) scale(1.08);
    opacity: 1;
  }
}
@keyframes fieldShake {
  0%, 100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-4px);
  }
  70% {
    transform: translateX(4px);
  }
}
.team-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.thumbs {
  display: flex;
  gap: 6px;
}

.thumbs img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.file-list {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.file-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.file-badge {
  background: rgba(255, 255, 255, 0.16);
  color: var(--light);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.file-pdf .file-badge {
  background: rgba(225, 6, 0, 0.5);
}

.file-doc .file-badge {
  background: rgba(59, 130, 246, 0.5);
}

.file-docx .file-badge {
  background: rgba(59, 130, 246, 0.5);
}

.file-jpg .file-badge,
.file-jpeg .file-badge,
.file-png .file-badge,
.file-gif .file-badge,
.file-webp .file-badge {
  background: rgba(34, 197, 94, 0.5);
}

.robot-detail {
  display: grid;
  gap: 16px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.robot-link {
  color: var(--light);
  text-decoration: none;
}

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

.event-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.event-external-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.event-external-link:hover {
  text-decoration: underline;
}

.btn.small,
.ghost.small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.admin-event,
.admin-users,
.admin-config,
.robot-list {
  display: grid;
  gap: 16px;
}

.stack {
  display: grid;
  gap: 8px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.inline-check .checkbox {
  margin-bottom: 0px;
  width: auto;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-bar input,
.filter-bar select {
  flex: 1 1 200px;
  margin-bottom: 0;
}

.weight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

select[multiple] {
  min-height: 140px;
}

model-viewer {
  width: 100%;
  height: 360px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .card,
.event-card,
.panel,
.hero-card,
.robot-card {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1024px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
  }
  .admin-main {
    padding: 20px 16px 32px;
  }
  .admin-topbar {
    flex-direction: column;
  }
}
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c0c;
}

.robot-card h4 {
  margin: 10px 0 4px;
  line-height: 1.2;
}

.robot-card p.muted {
  margin: 0 0 8px;
  line-height: 1.2;
}

.robot-card .badge {
  margin: 2px 6px 6px 0;
}

.robot-card .link {
  display: inline-block;
  margin-top: 6px;
}

.robot-stats-compact,
.robot-stats-detail {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.robot-rating-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}

.robot-rating-row span,
.robot-rating-row strong {
  color: var(--light);
}

.robot-stats-compact .robot-rating-row,
.robot-stats-detail .robot-rating-row {
  grid-template-columns: 72px minmax(0, 1fr);
}

.robot-rating-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.robot-rating-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e10600, #ffd400);
}

.robot-record {
  margin-top: 10px;
}

.robot-badge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 24px;
}

.robot-badge-legend-item,
.robot-badge-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.robot-badge-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.robot-badge-chip img,
.robot-badge-legend-item img {
  display: block;
  object-fit: contain;
}

.robot-badge-chip img {
  width: 46px;
  height: 46px;
}

.robot-badge-legend-item img {
  width: 42px;
  height: 42px;
}

.robot-badge-legend-item span {
  color: var(--light);
  font-size: 0.92rem;
  font-weight: 700;
}

body.admin-shell .robot-rating-row {
  grid-template-columns: 72px minmax(0, 1fr) 56px;
}

body.admin-shell .robot-rating-row span,
body.admin-shell .robot-rating-row strong,
body.admin-shell .robot-record {
  color: #203446;
}

body.admin-shell .robot-rating-bar {
  background: rgba(20, 36, 52, 0.12);
}

.jury-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.jury-robot-block {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.jury-robot-block h4 {
  margin-bottom: 12px;
}

.jury-robot-block label {
  display: block;
  margin-bottom: 6px;
}

.jury-robot-block input {
  margin-bottom: 12px;
}

.admin-robot-edit {
  gap: 24px;
}

.admin-edit-header,
.admin-edit-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-edit-actions {
  align-items: center;
}

.admin-robot-stats-editor {
  display: grid;
  gap: 16px;
}

body.admin-shell .admin-robot-edit-panel .jury-robot-block {
  background: linear-gradient(180deg, rgba(246, 249, 252, 0.96) 0%, rgba(238, 244, 248, 0.96) 100%);
  border-color: rgba(20, 36, 52, 0.08);
}

.admin-robot-summary {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-robot-thumb {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.email-preview {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.email-test-box {
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.email-test-actions input {
  flex: 1 1 240px;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-header a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.section-header a:hover {
  background: rgba(255, 255, 255, 0.14);
}

body {
  -webkit-tap-highlight-color: transparent;
}

.preview-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(8, 12, 18, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.preview-editor-toolbar-copy {
  display: grid;
  gap: 2px;
}

.preview-editor-toolbar-copy strong {
  color: #fff;
}

.preview-editor-toolbar-copy span {
  color: var(--gray);
  font-size: 0.92rem;
}

.preview-editor-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-editor-panel {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 95;
  width: min(420px, 100vw - 36px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(12, 16, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.preview-editor-panel-head,
.preview-editor-panel-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preview-editor-panel textarea {
  min-height: 220px;
  margin-bottom: 0;
}

.content-area-editable {
  position: relative;
  outline: 2px dashed rgba(255, 212, 0, 0.45);
  outline-offset: 6px;
  cursor: pointer;
  transition: outline-color 0.2s ease, background 0.2s ease;
}

.content-area-editable:hover,
.content-area-editable.is-selected {
  outline-color: rgba(225, 6, 0, 0.8);
  background: rgba(255, 212, 0, 0.08);
}

a, button {
  touch-action: manipulation;
}

.install-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(11, 11, 11, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.install-banner.ios {
  border-color: rgba(255, 212, 0, 0.28);
}

.install-text {
  display: grid;
  gap: 4px;
}

.install-text strong {
  font-size: 0.98rem;
}

.install-text span {
  color: var(--gray);
  line-height: 1.45;
}

.install-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn.small,
.ghost.small {
  padding: 9px 14px;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .app {
    padding: 20px 16px 64px;
  }
  .topbar {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    gap: 14px;
    background: rgba(0, 0, 0, 0.86);
  }
  .brand {
    gap: 12px;
    min-width: 0;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-text span {
    font-size: 0.8rem;
    letter-spacing: 0;
  }
  .brand-text small {
    font-size: 0.48rem;
    letter-spacing: 0.32em;
  }
  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
    position: relative;
    z-index: 45;
  }
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-height: 100vh;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    padding: 64px 14px 18px;
    background: rgba(10, 10, 10, 0.98);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 40;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav a,
.nav .ghost {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.04);
  }
  .nav a::after {
    display: none;
  }
  .nav .inline-form {
    display: block;
  }
  .nav .ghost {
    display: inline-flex;
  }
  .nav a,
.ghost,
.btn {
    font-size: 0.95rem;
  }
  .hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  .hero-card,
.panel,
.event-card,
.robot-card {
    border-radius: 16px;
  }
  .btn,
.btn.outline {
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    gap: 10px;
  }
  .preview-editor-toolbar,
.preview-editor-panel-head,
.preview-editor-panel-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .preview-editor-panel {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .install-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
  }
  .install-actions {
    width: 100%;
  }
  .install-actions .btn,
.install-actions .ghost {
    width: 100%;
    justify-content: center;
  }
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 12px;
  }
  .cookie-consent-panel {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
  .cookie-consent:not(.is-configuring) {
    padding: 0;
  }
  .cookie-consent.is-configuring {
    inset: 0;
    width: auto;
    padding: 12px;
  }
  .cookie-actions .btn,
.cookie-actions .ghost {
    width: 100%;
  }
}
/* Landing page variant inspired by the public Robot Extreme site. */
.page-home {
  color: var(--light);
  background: radial-gradient(circle at 10% 0%, rgba(225, 6, 0, 0.25), transparent 45%), radial-gradient(circle at 90% 10%, rgba(255, 212, 0, 0.18), transparent 40%), linear-gradient(120deg, #0b0b0b 0%, #111 45%, #070707 100%);
  overflow-x: hidden;
}
.page-home::before {
  display: block;
}
.page-home .app {
  max-width: none;
  padding: 0;
}
.page-home main {
  margin-top: 0;
}
.page-home .brand {
  gap: 8px;
}
.page-home .brand-mark {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.page-home .brand-text span {
  display: block;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}
.page-home .brand-text small {
  color: #fff;
  font-size: 0.48rem;
  letter-spacing: 0.32em;
}
.page-home .nav {
  gap: 18px;
}
.page-home .nav a {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}
.page-home .nav a::after {
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: #fff;
}
.page-home .nav a.active,
.page-home .nav a:hover {
  background: transparent;
}
.page-home .nav .ghost {
  padding: 4px 10px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.page-home main {
  overflow: hidden;
}
.page-home .hero {
  position: relative;
  display: grid;
  min-height: 720px;
  margin: 0;
  padding: 150px 24px 90px;
  place-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.52)), url("../../uploads/robot_69d7ab58885db0.00098974.jpg") center/cover no-repeat;
}
.page-home .hero-content {
  width: min(760px, 100%);
  text-align: center;
}
.page-home .hero h1 {
  margin: 0 auto 28px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}
.page-home .hero p {
  display: block;
  max-width: 980px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.page-home .hero-actions {
  display: grid;
  width: 190px;
  margin: 0 auto;
  gap: 12px;
}
.page-home .btn,
.page-home .ghost,
.page-home .btn.outline {
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-weight: 700;
}
.page-home .hero-actions .btn {
  background: #fff;
  color: #111;
}
.page-home .hero-actions .btn.outline {
  background: #2454d6;
  color: #fff;
}
.page-home .hero-card {
  display: none;
}
.page-home .panel,
.page-home .event-list,
.page-home .robot-list,
.page-home .video-list {
  width: min(1440px, 100% - 48px);
  margin: 72px auto;
}
.page-home .panel {
  padding: 44px 36px;
  margin-top: 72px;
  margin-bottom: 72px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(21, 21, 21, 0.92);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.3);
  color: var(--light);
  text-align: left;
}
.page-home .panel h3,
.page-home .section-header h2 {
  margin-bottom: 28px;
  color: var(--light);
  font-family: Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}
.page-home .panel p,
.page-home .muted {
  color: var(--gray);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}
.page-home .panel::after {
  content: "";
  display: block;
  width: min(820px, 85vw);
  max-width: 100%;
  height: 230px;
  margin: 58px auto 0;
  background: url("../images/logo-full.png") center/contain no-repeat;
}
.page-home .section-header {
  margin: 0 0 18px;
  justify-content: center;
}
.page-home .section-header a {
  display: none;
}
.page-home .event-list {
  max-width: none;
  width: 100%;
  padding: 54px max(24px, (100vw - 1440px) / 2);
  background: transparent;
  color: var(--light);
}
.page-home .event-list .section-header h2 {
  color: #fff;
}
.page-home .event-grid,
.page-home .robot-grid,
.page-home .video-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.page-home .event-card,
.page-home .robot-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(21, 21, 21, 0.92);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
  color: var(--light);
}
.page-home .event-card::before {
  display: none;
}
.page-home .event-image,
.page-home .event-hero-image,
.page-home .event-preview-image {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}
.page-home .event-card span,
.page-home .robot-card .muted {
  color: var(--gray);
}
.page-home .link {
  color: var(--accent);
}
.page-home .robot-list {
  padding: 52px 0 70px;
}
.page-home .video-list {
  padding: 0 0 70px;
}
.page-home .footer {
  margin-top: 0;
  padding: 24px;
  background: transparent;
  color: var(--gray);
}
.page-home .footer-logo {
  width: 220px;
  margin-bottom: 16px;
}
.page-home .card,
.page-home .event-card,
.page-home .panel,
.page-home .hero-card,
.page-home .robot-card {
  opacity: 1;
  transform: none;
}
@media (max-width: 1024px) {
  .page-home .topbar {
    position: relative;
    background: #050505;
  }
  .page-home .nav {
    background: #050505;
    border-radius: 0;
  }
  .page-home .hero {
    min-height: 620px;
    padding-top: 100px;
  }
  .page-home .hero-actions {
    width: min(260px, 100%);
  }
  .page-home .btn,
.page-home .btn.outline {
    width: 100%;
  }
}

.page-home .home-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  position: relative;
}

.page-home .home-steps-header {
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-home .home-steps-copy {
  max-width: 720px;
}

.page-home .home-steps-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd36b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-home .home-steps-badge {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(225, 6, 0, 0.28), rgba(255, 255, 255, 0.04));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .home-step-card {
  position: relative;
  padding: 22px;
  overflow: visible;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)), rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.page-home .home-step-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -42% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.16), transparent 70%);
  pointer-events: none;
  animation: homeStepGlow 5.6s ease-in-out infinite;
}

.page-home .home-step-card::after {
  content: "➜";
  position: absolute;
  top: 46%;
  right: -22px;
  z-index: 2;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.92);
  color: #ffd400;
  font-size: 1.1rem;
  line-height: 42px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  animation: homeStepArrowPulse 2.2s ease-in-out infinite;
}

.page-home .home-step-card.is-done {
  border-color: rgba(62, 214, 110, 0.28);
  box-shadow: inset 0 0 0 1px rgba(62, 214, 110, 0.08);
}

.page-home .home-step-card.is-highlight {
  border-color: rgba(255, 212, 0, 0.34);
  background: linear-gradient(180deg, rgba(255, 212, 0, 0.12), rgba(255, 255, 255, 0.02)), rgba(255, 255, 255, 0.02);
  animation: homeStepFloat 4s ease-in-out infinite;
}

.page-home .home-step-topline {
  width: 72px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e10600, #ffd400);
  background-size: 200% 100%;
  animation: homeStepLine 3.4s linear infinite;
}

.page-home .home-step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .home-step-number {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.page-home .home-step-card .badge {
  margin-bottom: 0;
}

.page-home .home-step-card h4 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.28rem;
}

.page-home .home-step-card p {
  margin-bottom: 16px;
}

.page-home .home-step-card .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.page-home .home-step-card .link span {
  transition: transform 0.2s ease;
}

.page-home .home-step-card:hover .link span {
  transform: translateX(6px);
}

.page-home .home-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.34);
}

.page-home .video-list {
  display: grid;
  gap: 24px;
}

.page-home .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.page-home .video-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.page-home .video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 212, 0, 0.34);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.34);
}

.page-home .video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.page-home .video-thumb::after {
  content: "Play";
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.page-home .video-card:hover .video-thumb img {
  transform: scale(1.04);
}

.page-home .video-card-body {
  display: grid;
  gap: 12px;
  padding: 18px 18px 20px;
}

.page-home .video-card-body h3 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.45;
}

.page-home .video-card .link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 1180px) {
  .page-home .home-step-card:not(:last-child)::after {
    display: block;
  }
}
@media (max-width: 1024px) {
  .page-home .home-steps-header {
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  .page-home .home-steps-badge {
    display: none;
  }
  .page-home .home-step-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
@keyframes homeStepLine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
@keyframes homeStepGlow {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}
@keyframes homeStepArrowPulse {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.78;
  }
  50% {
    transform: translateX(6px);
    opacity: 1;
  }
}
@keyframes homeStepFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.admin-area-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.admin-area-card,
.admin-area-block,
.admin-area-dropzone,
.admin-area-image-preview {
  border-radius: 18px;
  border: 1px solid rgba(20, 36, 52, 0.1);
  background: linear-gradient(180deg, rgba(246, 249, 252, 0.98), rgba(239, 244, 248, 0.96));
}

.admin-area-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-area-card-top,
.admin-area-editor-header,
.admin-area-block-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-area-editor {
  gap: 20px;
}

.admin-area-image-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
}

.admin-area-dropzone {
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 24px;
  border-style: dashed;
  place-items: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.admin-area-dropzone.is-dragover {
  border-color: rgba(225, 6, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 241, 214, 0.9), rgba(255, 255, 255, 0.98));
  transform: translateY(-2px);
}

.admin-area-image-preview {
  display: grid;
  min-height: 180px;
  overflow: hidden;
  place-items: center;
  padding: 12px;
}

.admin-area-image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.admin-area-checkbox {
  display: inline-flex;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.admin-area-blocks {
  display: grid;
  gap: 14px;
}

.admin-area-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  cursor: grab;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-area-block.is-over {
  border-color: rgba(225, 6, 0, 0.35);
  box-shadow: 0 14px 28px rgba(20, 36, 52, 0.08);
}

.admin-area-block.is-dragging {
  opacity: 0.68;
  transform: scale(0.99);
}

.admin-area-block textarea {
  margin-bottom: 0;
  min-height: 110px;
}

.admin-area-block-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .admin-area-image-panel {
    grid-template-columns: 1fr;
  }
}