﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Orbitron:wght@500;700;900&display=swap');

:root {
  --bg-1: #020617;
  --bg-2: #0f172a;
  --bg-3: #111827;
  --ink: #e5eefc;
  --muted: #9fb1d1;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(255, 255, 255, 0.16);
  --card: rgba(15, 23, 42, 0.76);
  --card-strong: rgba(12, 18, 34, 0.9);
  --blur: blur(18px);
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  --accent: #60a5fa;
  --accent-2: #22d3ee;
  --accent-3: #a855f7;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #fb7185;
  --hacker: #00ff7f;
  --hacker-soft: rgba(0, 255, 127, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --hero-max: 1480px;
  --content-max: 1440px;
  --admin-max: 1600px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.16), transparent 24%),
    radial-gradient(circle at bottom center, rgba(34, 211, 238, 0.14), transparent 28%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2) 45%, #030712 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -120px;
  left: -80px;
  background: rgba(96, 165, 250, 0.26);
}

body::after {
  right: -140px;
  bottom: -120px;
  background: rgba(168, 85, 247, 0.2);
}

.hidden {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell,
.maintenance-shell,
.admin-shell {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(var(--hero-max), calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 28px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(6, 11, 24, 0.5);
  backdrop-filter: var(--blur);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
}

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

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.95), rgba(34, 211, 238, 0.85));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.22);
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: #020617;
}

.brand-copy strong,
.hero-title {
  font-family: 'Orbitron', sans-serif;
}

.brand-copy strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-button,
.tiny-button,
.role-toggle-btn,
.modal-submit,
.modal-close,
.modal-switch,
.management-btn,
.info-toggle,
.review-delete,
.reply-btn,
.review-restore,
.upload-action,
.dashboard-back {
  border: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.auth-button,
.tiny-button,
.dashboard-back,
.modal-submit,
.management-btn,
.upload-action {
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-button {
  color: white;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.3);
}

.auth-button.secondary,
.dashboard-back {
  background: rgba(15, 23, 42, 0.76);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.auth-button:hover,
.tiny-button:hover,
.dashboard-back:hover,
.modal-submit:hover,
.management-btn:hover,
.upload-action:hover {
  transform: translateY(-1px);
}

.account-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(12, 18, 34, 0.74);
}

.account-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.92), rgba(34, 211, 238, 0.82));
  color: #03111f;
  font-weight: 900;
}

.account-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.account-copy strong {
  font-size: 0.92rem;
}

.account-copy span {
  font-size: 0.78rem;
  color: var(--muted);
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role-chip.admin {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.role-chip.member {
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.role-chip.blocked {
  background: rgba(251, 113, 133, 0.12);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.24);
}

.hero-card {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(10, 15, 28, 0.8), rgba(15, 23, 42, 0.68));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
}

.hero-copy,
.hero-side {
  padding: 38px 34px;
}

.hero-copy {
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.1);
  color: #bfdbfe;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 630px;
}

.rating-summary {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

.stars span {
  color: rgba(255, 255, 255, 0.18);
  font-size: 2.35rem;
  transition: transform 0.18s ease, color 0.18s ease;
}

.stars.clickable span {
  cursor: pointer;
}

.stars.clickable span:hover {
  transform: translateY(-2px) scale(1.03);
}

.stars .active {
  color: #facc15;
  text-shadow: 0 0 16px rgba(250, 204, 21, 0.34);
}

.average-rating-text {
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn,
.modal-submit,
.upload-action,
.management-btn {
  position: relative;
  overflow: hidden;
}

.btn {
  border: 0;
  border-radius: 22px;
  color: white;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 16px 28px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 16px 38px rgba(79, 70, 229, 0.34);
}

.btn.download-main {
  font-size: 1.12rem;
  padding: 19px 36px;
  background: linear-gradient(135deg, #2563eb, #7c3aed 60%, #22d3ee);
}

.btn.download-secondary {
  font-size: 0.94rem;
  padding: 13px 24px;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: 0 14px 34px rgba(8, 145, 178, 0.26);
}

.btn.secondary,
.management-btn.secondary {
  background: linear-gradient(135deg, #0f766e, #0d9488);
}

.btn.small,
.management-btn,
.upload-action {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.hero-side {
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.88), rgba(9, 13, 25, 0.92));
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-side-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-side-card strong {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 10px;
}

.hero-side-card p,
.hero-side-card a {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-side-card a {
  color: #93c5fd;
  text-decoration: none;
}

.social-link-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
  padding: 13px 14px;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.3);
}

.social-link span {
  font-weight: 900;
  letter-spacing: 0.04em;
}

.social-link small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.social-link.tiktok {
  background:
    radial-gradient(circle at top left, rgba(37, 244, 238, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 0, 80, 0.32), rgba(2, 6, 23, 0.74));
}

.social-link.youtube {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 0, 0, 0.36), rgba(2, 6, 23, 0.78));
}

.social-admin-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.progress-container {
  width: 100%;
  max-width: 320px;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: none;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.section-shell {
  width: min(var(--content-max), calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 0 0 24px;
  position: relative;
  z-index: 1;
}

.panel {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: var(--blur);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.04em;
}

.panel p,
.panel .muted-text {
  color: var(--muted);
  line-height: 1.7;
}

.announcement {
  border-left: 4px solid var(--warning);
}

.announcement strong {
  display: block;
  margin-bottom: 6px;
}

.announcement-text {
  white-space: pre-line;
  line-height: 1.75;
}

.info-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.info-content {
  margin-top: 14px;
  border-radius: var(--radius-md);
  background: rgba(6, 11, 24, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 20px;
}

.info-text {
  white-space: pre-line;
  line-height: 1.8;
  color: #e2e8f0;
}

.video-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.video-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.62);
  padding: 14px;
}

.video-card-title {
  font-size: 0.92rem;
  color: #bfdbfe;
  margin-bottom: 8px;
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.review-form-grid {
  display: grid;
  gap: 14px;
}

.form-input,
.form-textarea,
.modal-input,
.modal-textarea,
.admin-input,
.admin-textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-input::placeholder,
.form-textarea::placeholder,
.modal-input::placeholder,
.modal-textarea::placeholder,
.admin-input::placeholder,
.admin-textarea::placeholder {
  color: rgba(229, 238, 252, 0.42);
}

.form-input:focus,
.form-textarea:focus,
.modal-input:focus,
.modal-textarea:focus,
.admin-input:focus,
.admin-textarea:focus {
  border-color: rgba(96, 165, 250, 0.56);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.form-textarea,
.modal-textarea,
.admin-textarea {
  min-height: 120px;
  resize: vertical;
}

.review-grid {
  display: grid;
  gap: 14px;
}

.review-card {
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(30, 58, 138, 0.72), rgba(30, 64, 175, 0.48));
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
  text-align: left;
  padding: 18px 18px 16px;
}

.review-card strong {
  display: block;
  margin-bottom: 8px;
}

.review-text {
  line-height: 1.75;
}

.owner-reply {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 0 18px 18px 18px;
  border-left: 3px solid #60a5fa;
  background: rgba(2, 8, 23, 0.34);
}

.owner-reply-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 6px;
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 40;
}

.modal-card {
  width: min(540px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.95), rgba(12, 18, 34, 0.94));
  box-shadow: 0 40px 90px rgba(2, 6, 23, 0.55);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-head h3 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.modal-body {
  padding: 22px 24px 24px;
}

.modal-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.modal-switch {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.modal-switch.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(124, 58, 237, 0.28));
  color: white;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.modal-fields {
  display: grid;
  gap: 12px;
}

.modal-error,
.modal-success {
  min-height: 22px;
  font-size: 0.94rem;
  margin-top: 12px;
}

.modal-error {
  color: #fda4af;
}

.modal-card.blocked-login {
  animation: blockedLoginShake 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow:
    0 40px 90px rgba(2, 6, 23, 0.55),
    0 0 0 1px rgba(251, 113, 133, 0.28),
    0 0 42px rgba(251, 113, 133, 0.3);
}

.modal-card.blocked-login::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(251, 113, 133, 0.12), transparent 42%),
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.26), transparent 38%);
  animation: blockedLoginPulse 0.72s ease-out;
}

.modal-input.blocked-login-input {
  border-color: rgba(251, 113, 133, 0.46);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
  background: rgba(127, 29, 29, 0.18);
}

.blocked-login-banner {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 28px;
  pointer-events: none;
  opacity: 0;
}

.blocked-login-banner.active {
  animation: blockedBannerReveal 1.2s ease-out forwards;
}

.blocked-login-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(239, 68, 68, 0.22), rgba(127, 29, 29, 0.12) 34%, rgba(2, 6, 23, 0.78) 72%),
    linear-gradient(180deg, rgba(127, 29, 29, 0.2), rgba(2, 6, 23, 0.88));
  backdrop-filter: blur(7px);
}

.blocked-login-banner-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
}

.blocked-login-banner-copy strong {
  font-size: clamp(2.4rem, 9vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff5f5;
  text-shadow:
    0 0 16px rgba(248, 113, 113, 0.42),
    0 0 36px rgba(220, 38, 38, 0.34);
}

.blocked-login-banner-copy span {
  font-size: clamp(1rem, 3vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fecdd3;
}

.modal-error.blocked-login-error {
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(251, 113, 133, 0.24);
}

@keyframes blockedLoginShake {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  18% {
    transform: translate3d(-10px, 0, 0) scale(1.01);
  }
  34% {
    transform: translate3d(9px, 0, 0) scale(1.01);
  }
  50% {
    transform: translate3d(-7px, 0, 0) scale(1.005);
  }
  66% {
    transform: translate3d(6px, 0, 0) scale(1.005);
  }
  82% {
    transform: translate3d(-3px, 0, 0) scale(1.002);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes blockedLoginPulse {
  0% {
    opacity: 0;
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes blockedBannerReveal {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  14% {
    opacity: 1;
    transform: scale(1);
  }
  72% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.985);
  }
}

.modal-success {
  color: #86efac;
}

.review-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 0.9fr);
  gap: 12px;
  margin-bottom: 12px;
}

.review-sort-select {
  appearance: none;
  cursor: pointer;
}

.review-filter-info {
  margin-bottom: 14px;
}

.modal-submit {
  width: 100%;
  margin-top: 18px;
  color: white;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 18px 34px rgba(79, 70, 229, 0.28);
}

.code-modal .modal-card {
  width: min(500px, 100%);
}

.code-input-wrap {
  display: grid;
  gap: 10px;
}

.code-input-label {
  font-size: 0.86rem;
  color: #bfdbfe;
  letter-spacing: 0.04em;
}

.admin-dashboard {
  min-height: 100vh;
  padding: 28px 22px 64px;
  position: relative;
  background:
    radial-gradient(circle at top, rgba(0, 255, 127, 0.08), transparent 24%),
    linear-gradient(180deg, #000, #02140b 50%, #000);
  color: #d7ffe8;
}

.admin-dashboard::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 255, 127, 0.025) 3px, rgba(0, 255, 127, 0.025) 6px);
  pointer-events: none;
  opacity: 0.8;
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
}

.admin-shell {
  width: min(var(--admin-max), calc(100% - 44px));
  max-width: none;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 255, 127, 0.18);
  border-radius: 26px;
  background: rgba(0, 10, 4, 0.72);
  backdrop-filter: blur(12px);
}

.admin-title h2,
.admin-card h3,
.maintenance-title {
  font-family: 'Orbitron', sans-serif;
}

.admin-title h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  color: var(--hacker);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-title p {
  margin: 0;
  color: rgba(215, 255, 232, 0.58);
}

.admin-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-warning {
  margin-bottom: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 18px;
  color: #fde68a;
}

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

.admin-card {
  border: 1px solid rgba(0, 255, 127, 0.14);
  background: rgba(0, 10, 4, 0.72);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.admin-card::after {
  content: '';
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 255, 127, 0.08), transparent 70%);
  pointer-events: none;
}

.admin-card h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--hacker);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-card p,
.admin-card .muted-text {
  color: rgba(215, 255, 232, 0.62);
}

.admin-card-wide {
  margin-top: 18px;
}

.admin-input,
.admin-textarea {
  border-color: rgba(0, 255, 127, 0.18);
  background: rgba(0, 255, 127, 0.04);
  color: #ddffe9;
}

.admin-input:focus,
.admin-textarea:focus {
  border-color: rgba(0, 255, 127, 0.46);
  box-shadow: 0 0 0 4px rgba(0, 255, 127, 0.08);
}

.admin-actions,
.video-admin-row,
.review-tabbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.video-admin-list,
.hacker-code-list,
.account-list,
.admin-review-list {
  display: grid;
  gap: 12px;
}

.hacker-code-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.45fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.hacker-code-list {
  margin-top: 14px;
}

.hacker-code-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 127, 0.13);
  background:
    linear-gradient(135deg, rgba(0, 255, 127, 0.055), transparent 48%),
    rgba(0, 5, 2, 0.72);
  padding: 14px;
}

.hacker-code-actions {
  justify-content: flex-end;
}

.hacker-code-actions .role-toggle-btn {
  white-space: nowrap;
}

.hacker-code-head,
.hacker-code-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hacker-code-head strong {
  color: #f0fff6;
  letter-spacing: 0.02em;
}

.hacker-code-status {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hacker-code-status.active {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
}

.hacker-code-status.inactive {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.13);
}

.hacker-code-status.exhausted {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.14);
}

.hacker-code-usage {
  margin-top: 8px;
  color: rgba(215, 255, 232, 0.62);
  font-size: 0.9rem;
}

.hacker-code-limit-edit {
  display: grid;
  grid-template-columns: minmax(96px, 130px) auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  max-width: 340px;
}

.hacker-code-limit-input {
  padding: 10px 12px;
  border-radius: 13px;
}

.hacker-code-meter {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
  margin-top: 10px;
}

.hacker-code-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #facc15, #fb7185);
}

.video-admin-item,
.account-row,
.admin-review-item,
.admin-build-current {
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 127, 0.12);
  background: rgba(0, 5, 2, 0.7);
  padding: 14px;
}

.video-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-row strong {
  display: block;
  margin-bottom: 4px;
}

.account-row span {
  color: rgba(215, 255, 232, 0.6);
  font-size: 0.9rem;
}

.role-toggle-btn,
.review-restore,
.reply-btn,
.review-delete {
  border-radius: 14px;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 700;
}

.role-toggle-btn {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.role-toggle-btn.remove {
  background: rgba(251, 113, 133, 0.12);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.24);
}

.account-self-note {
  color: rgba(215, 255, 232, 0.38);
  font-size: 0.88rem;
}

.dropzone {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(0, 255, 127, 0.24);
  padding: 24px 18px;
  text-align: center;
  background: rgba(0, 255, 127, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dropzone.dragover {
  border-color: rgba(0, 255, 127, 0.7);
  background: rgba(0, 255, 127, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 127, 0.18), 0 0 0 4px rgba(0, 255, 127, 0.05);
}

.dropzone strong {
  display: block;
  margin-bottom: 8px;
  color: var(--hacker);
}

.upload-status,
.review-meta {
  margin-top: 12px;
  color: rgba(215, 255, 232, 0.54);
  font-size: 0.9rem;
}

.upload-status.error {
  color: #fda4af;
}

.upload-status.success {
  color: #86efac;
}

.admin-build-current {
  margin-top: 12px;
  color: #d7ffe8;
}

.admin-review-item {
  position: relative;
  padding-right: 58px;
}

.review-delete {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(251, 113, 133, 0.14);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.22);
}

.reply-area {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 255, 127, 0.08);
}

.reply-current {
  margin-bottom: 10px;
  color: #86efac;
  font-size: 0.9rem;
}

.reply-btn,
.review-restore {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.review-restore {
  margin-top: 12px;
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.2);
}

.review-tabbar {
  margin: 14px 0 10px;
}

.review-tabbar .management-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.42), rgba(59, 130, 246, 0.24));
  color: white;
}

.review-tabbar .management-btn.trash.active {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.62), rgba(127, 29, 29, 0.26));
}

.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.maintenance-shell {
  width: min(820px, 100%);
  position: relative;
  z-index: 1;
}

.maintenance-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background: rgba(6, 11, 24, 0.78);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  padding: 28px;
}

.maintenance-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.maintenance-code {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(4rem, 18vw, 8rem);
  margin: 0;
}

.maintenance-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
}

.maintenance-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.maintenance-note {
  color: var(--muted);
  line-height: 1.8;
}

@media (min-width: 1180px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .hero-card {
    min-height: min(640px, calc(100vh - 156px));
    display: grid;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 5vw, 76px);
  }

  .hero-side {
    padding: clamp(34px, 3vw, 54px);
  }

  .hero-title {
    max-width: 940px;
    font-size: clamp(4.4rem, 6.1vw, 7rem);
  }

  .hero-subtitle {
    max-width: 760px;
    font-size: 1.14rem;
  }

  .section-shell {
    display: grid;
    grid-template-columns: minmax(340px, 0.42fr) minmax(0, 0.58fr);
    align-items: start;
    gap: 24px;
    padding-bottom: 42px;
  }

  .section-shell .panel {
    margin-bottom: 0;
  }

  .section-shell .panel:nth-child(1),
  .section-shell .panel:nth-child(2) {
    grid-column: 1;
  }

  .section-shell .panel:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .section-shell .panel:nth-child(4) {
    grid-column: 2;
  }

  .review-grid,
  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .panel,
  .admin-card {
    padding: 28px;
  }

  .admin-dashboard {
    padding: 36px 0 72px;
  }

  .admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 22px;
  }

  .admin-card-wide {
    margin-top: 22px;
  }

  .account-list,
  .admin-review-list {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1600px) {
  .hero {
    width: min(1660px, calc(100% - 96px));
  }

  .section-shell {
    width: min(1580px, calc(100% - 96px));
    grid-template-columns: minmax(420px, 0.38fr) minmax(0, 0.62fr);
    gap: 28px;
  }

  .admin-shell {
    width: min(1720px, calc(100% - 80px));
  }

  .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .hero-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 780px) {
  .hero,
  .section-shell,
  .admin-shell,
  .admin-dashboard,
  .maintenance-page {
    width: auto;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar,
  .admin-topbar,
  .maintenance-header,
  .account-row {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions,
  .admin-status,
  .maintenance-actions {
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-side,
  .panel,
  .admin-card,
  .maintenance-card,
  .modal-head,
  .modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .video-admin-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hacker-code-form,
  .hacker-code-item,
  .hacker-code-limit-edit {
    grid-template-columns: 1fr;
  }

  .hacker-code-actions {
    align-items: stretch;
  }

  .hacker-code-actions .role-toggle-btn {
    width: 100%;
  }

  .review-toolbar {
    grid-template-columns: 1fr;
  }

  .btn,
  .auth-button,
  .dashboard-back,
  .management-btn,
  .upload-action {
    width: 100%;
    justify-content: center;
  }
}
