:root {
  --bg: #f3efe5;
  --bg-deep: #eadfcf;
  --panel: rgba(255, 252, 246, 0.82);
  --panel-strong: #fffaf1;
  --border: rgba(102, 81, 46, 0.14);
  --text: #22190f;
  --muted: #6f6255;
  --accent: #005bbb;
  --accent-2: #ffd500;
  --accent-3: #0f8f5f;
  --danger: #c7382f;
  --steel: #54514a;
  --shadow: 0 22px 60px rgba(66, 47, 22, 0.12);
}

:root[data-theme="dark"] {
  --bg: #101820;
  --bg-deep: #0a1218;
  --panel: rgba(17, 26, 34, 0.84);
  --panel-strong: #13212c;
  --border: rgba(176, 205, 232, 0.12);
  --text: #edf5ff;
  --muted: #9db0c2;
  --steel: #c6d3de;
  --shadow: 0 26px 64px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 91, 187, 0.15), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 213, 0, 0.22), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.12));
  opacity: 0.4;
  mix-blend-mode: soft-light;
}

a,
button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 18px 72px;
}

.side-drone {
  position: fixed;
  top: 18%;
  z-index: 0;
  opacity: 0.24;
  pointer-events: none;
  filter: drop-shadow(0 16px 30px rgba(34, 25, 15, 0.14));
  animation: drone-float 9s ease-in-out infinite;
}

.side-drone-left {
  left: 26px;
}

.side-drone-right {
  right: 26px;
  top: 58%;
  animation-delay: -4.5s;
}

.drone-body {
  position: relative;
  width: 94px;
  height: 94px;
}

.drone-body::before,
.drone-body::after {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, rgba(84, 81, 74, 0.92), rgba(30, 30, 30, 0.74));
}

.drone-body::before {
  top: 39px;
  left: 31px;
  width: 32px;
  height: 16px;
  border-radius: 12px;
}

.drone-body::after {
  top: 31px;
  left: 39px;
  width: 16px;
  height: 32px;
  border-radius: 12px;
}

.drone-arm,
.drone-prop {
  position: absolute;
  display: block;
}

.drone-arm {
  top: 46px;
  left: 14px;
  width: 66px;
  height: 4px;
  border-radius: 999px;
  background: rgba(60, 58, 53, 0.9);
}

.drone-arm.arm-a {
  transform: rotate(34deg);
}

.drone-arm.arm-b {
  transform: rotate(-34deg);
}

.drone-prop {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(0, 91, 187, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 213, 0, 0.16);
  animation: prop-spin 1.4s linear infinite;
}

.drone-prop.prop-a {
  top: 10px;
  left: 10px;
}

.drone-prop.prop-b {
  top: 10px;
  right: 10px;
  animation-direction: reverse;
}

.drone-prop.prop-c {
  bottom: 10px;
  left: 10px;
  animation-direction: reverse;
}

.drone-prop.prop-d {
  right: 10px;
  bottom: 10px;
}

.tactical-side {
  position: fixed;
  top: 20%;
  width: 170px;
  height: 46vh;
  min-height: 320px;
  max-height: 430px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(32, 44, 63, 0.16), rgba(84, 81, 74, 0.1)),
    rgba(255, 250, 241, 0.22);
  border: 1px solid rgba(84, 81, 74, 0.1);
  box-shadow: 0 24px 40px rgba(34, 25, 15, 0.08);
  animation: side-panel-float 8s ease-in-out infinite;
}

.tactical-side-left {
  left: 18px;
}

.tactical-side-right {
  right: 18px;
  top: 44%;
  animation-delay: -3.2s;
}

.tactical-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(84, 81, 74, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 81, 74, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(transparent, black 12%, black 88%, transparent);
}

.tactical-glow {
  position: absolute;
  inset: -20% -30% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 91, 187, 0.16), rgba(255, 213, 0, 0.1), transparent 70%);
  animation: beacon 6s ease-in-out infinite;
}

.chevron-stack {
  position: absolute;
  top: 24px;
  left: 22px;
  display: grid;
  gap: 8px;
}

.chevron-stack span {
  width: 54px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: skewX(-28deg);
  opacity: 0.8;
}

.panel-copy {
  position: absolute;
  top: 72px;
  left: 22px;
  right: 22px;
  display: grid;
  gap: 8px;
}

.panel-copy strong {
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

.panel-copy small,
.panel-kicker {
  color: var(--steel);
}

.panel-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coord-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(34, 25, 15, 0.72);
  color: #f6f0e6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.symbol-scene {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 58px;
  height: 110px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    rgba(36, 44, 56, 0.08);
  border: 1px solid rgba(0, 91, 187, 0.1);
  overflow: hidden;
  animation: surrender-shift 5.5s ease-in-out infinite;
}

.symbol-scene::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background:
    linear-gradient(180deg, rgba(38, 46, 33, 0.04), rgba(38, 46, 33, 0.18)),
    linear-gradient(90deg, rgba(0, 91, 187, 0.06), rgba(255, 213, 0, 0.1));
}

.symbol-scene-right {
  animation-delay: -2.2s;
}

.symbol-zsu,
.symbol-surrender {
  position: absolute;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 800;
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
}

.symbol-zsu {
  left: 16px;
  background: linear-gradient(135deg, var(--accent), #2779d3);
  color: white;
  box-shadow: 0 16px 30px rgba(0, 91, 187, 0.22);
}

.symbol-surrender {
  right: 16px;
  background: rgba(84, 81, 74, 0.16);
  color: var(--steel);
}

.symbol-arrow {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 60px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.symbol-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent-2);
  border-right: 2px solid var(--accent-2);
  transform: rotate(45deg);
}

.wreck {
  position: absolute;
  bottom: 64px;
  width: 110px;
  height: 60px;
  transform: rotate(-10deg);
  opacity: 0.72;
}

.wreck-left {
  left: 28px;
}

.wreck-right {
  right: 24px;
  transform: rotate(8deg) scaleX(-1);
}

.wreck-body,
.wreck-turret,
.wreck-track {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, rgba(84, 81, 74, 0.88), rgba(47, 45, 41, 0.94));
}

.wreck-body {
  left: 16px;
  bottom: 14px;
  width: 56px;
  height: 20px;
  border-radius: 8px;
}

.wreck-turret {
  left: 48px;
  bottom: 28px;
  width: 34px;
  height: 10px;
  border-radius: 8px;
}

.wreck-turret::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 3px;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: rgba(47, 45, 41, 0.94);
}

.wreck-track {
  width: 78px;
  height: 8px;
  left: 6px;
  border-radius: 999px;
}

.wreck-track.track-a {
  bottom: 8px;
}

.wreck-track.track-b {
  bottom: 0;
}

.wreck::after {
  content: "";
  position: absolute;
  left: 54px;
  top: -10px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 213, 0, 0.16), rgba(199, 56, 47, 0.12), transparent 72%);
  filter: blur(8px);
  animation: smoke-rise 4.2s ease-in-out infinite;
}

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(80px);
  border-radius: 999px;
  opacity: 0.65;
  animation: drift 18s ease-in-out infinite;
}

.ambient-a {
  width: 280px;
  height: 280px;
  top: -30px;
  left: -20px;
  background: rgba(0, 91, 187, 0.26);
}

.ambient-b {
  width: 320px;
  height: 320px;
  right: -40px;
  top: 240px;
  background: rgba(255, 213, 0, 0.3);
  animation-duration: 22s;
  animation-delay: -7s;
}

.panel,
.topbar {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(16px);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 28px;
  overflow: hidden;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(235px, 1.02fr) minmax(320px, 0.9fr) minmax(220px, auto);
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  animation: fade-up 0.8s ease both;
}

.brand {
  display: inline-grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand strong,
h1,
h2 {
  font-family: "Unbounded", sans-serif;
}

.brand strong {
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.brand small {
  font-size: 12px;
  line-height: 1.16;
}

.brand small,
.hero-text,
.panel-message,
.field label,
.nav a,
.meta-card span,
.stat-card span,
.price-card span,
.notice-card p,
.payment-head small,
.petition-meta,
.empty-state p {
  color: var(--muted);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #3d85d1);
  color: white;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 91, 187, 0.24);
  animation: pulse-mark 4s ease-in-out infinite;
}

.nav,
.topbar-meta,
.hero-actions,
.auth-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-tools {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(84, 81, 74, 0.08);
}

.lang-button,
.theme-toggle {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--steel);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-button.active {
  background: linear-gradient(135deg, var(--accent), #2779d3);
  color: white;
}

.theme-toggle:hover,
.lang-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(35, 23, 13, 0.08);
}

.nav a {
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(84, 81, 74, 0.08);
  color: var(--steel);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.12;
  text-align: center;
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 12px 24px rgba(35, 23, 13, 0.04);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: rgba(0, 91, 187, 0.14);
  box-shadow: 0 18px 28px rgba(35, 23, 13, 0.08);
}

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

.meta-card,
.stat-card,
.price-card,
.notice-card,
.petition-card {
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid rgba(102, 81, 46, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.meta-card {
  min-width: 138px;
  min-height: 84px;
  padding: 12px 14px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.meta-card:hover,
.stat-card:hover,
.price-card:hover,
.notice-card:hover,
.petition-card:hover,
.verify-box:hover,
.payment-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(66, 47, 22, 0.12);
  border-color: rgba(0, 91, 187, 0.16);
}

.meta-card span,
.stat-card span,
.price-card span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-card strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.1;
}

.topbar-meta {
  justify-content: flex-end;
}

.topbar-meta .meta-card:last-child {
  min-width: 170px;
}

@media (max-width: 1220px) {
  .topbar {
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 0.9fr) minmax(200px, auto);
    gap: 14px;
  }

  .brand strong {
    font-size: clamp(15px, 1.45vw, 20px);
  }

  .brand small {
    font-size: 11px;
  }

  .nav a {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .meta-card {
    min-width: 126px;
  }

  .topbar-meta .meta-card:last-child {
    min-width: 156px;
  }
}

.hero {
  margin-top: 22px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  overflow: hidden;
}

.page-banner {
  margin-top: 22px;
  padding: 34px;
}

.compact-stats {
  margin-top: 24px;
  padding: 24px;
}

.petition-page .workspace {
  margin-top: 24px;
}

.support-banner {
  margin-top: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.support-banner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.support-banner-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 91, 187, 0.1), rgba(255, 213, 0, 0.16));
  border: 1px solid rgba(0, 91, 187, 0.1);
  font-weight: 800;
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 0, 0.14), transparent 66%);
  animation: beacon 5.5s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.08;
}

.hero-text {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.6;
}

.hero-copy > * {
  animation: fade-up 0.75s ease both;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 0.06s;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 0.18s;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 0.24s;
}

.hero-copy > *:nth-child(5) {
  animation-delay: 0.3s;
}

.hero-copy > *:nth-child(6) {
  animation-delay: 0.36s;
}

.support-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(0, 91, 187, 0.12) 0%, rgba(0, 91, 187, 0.12) 50%, rgba(255, 213, 0, 0.16) 50%, rgba(255, 213, 0, 0.16) 100%);
  border: 1px solid rgba(0, 91, 187, 0.12);
}

.support-strip p {
  margin: 0;
  color: var(--steel);
  line-height: 1.5;
}

.support-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 91, 187, 0.18);
}

.primary-button,
.ghost-button,
.switch-button {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #2779d3);
  box-shadow: 0 14px 26px rgba(0, 91, 187, 0.2);
  position: relative;
  overflow: hidden;
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 48%, transparent 76%);
  transform: translateX(-140%);
}

.primary-button:hover::after {
  animation: button-sheen 0.9s ease;
}

.ghost-button,
.switch-button {
  background: rgba(255, 255, 255, 0.54);
  color: var(--text);
}

.switch-button.active {
  background: linear-gradient(135deg, var(--accent-2), #ffea72);
}

.primary-button:hover,
.ghost-button:hover,
.switch-button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.04);
}

.primary-button:active,
.ghost-button:active,
.switch-button:active {
  transform: translateY(1px) scale(0.99);
}

.notice-card,
.price-card {
  padding: 20px;
}

.notice-card {
  margin-top: 24px;
}

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

.hero-side {
  display: grid;
  gap: 18px;
}

.price-card strong {
  display: block;
  margin: 8px 0 4px;
  font-family: "Unbounded", sans-serif;
  font-size: 42px;
  text-shadow: 0 10px 28px rgba(0, 91, 187, 0.12);
  animation: price-pulse 3.6s ease-in-out infinite;
}

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

.stat-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 91, 187, 0.1), transparent 68%);
  transition: transform 0.35s ease;
}

.stat-card:hover::after {
  transform: scale(1.15);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Unbounded", sans-serif;
  font-size: 28px;
}

.workspace {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 24px;
}

.auth-panel,
.petition-panel,
.listing-panel {
  padding: 28px;
}

.auth-panel::before,
.petition-panel::before,
.listing-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

.auth-flag-line {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0 50%, var(--accent-2) 50% 100%);
  box-shadow: 0 8px 18px rgba(0, 91, 187, 0.16);
}

.section-head {
  margin-bottom: 22px;
}

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

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

.field-wide,
.wide-button,
.payment-box {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(102, 81, 46, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(0, 91, 187, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 91, 187, 0.1);
}

.payment-box {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 213, 0, 0.14), rgba(0, 91, 187, 0.08));
  border: 1px solid rgba(102, 81, 46, 0.12);
}

.payment-head {
  margin-bottom: 14px;
}

.payment-head strong {
  display: block;
  margin-bottom: 4px;
}

.payment-live-status {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.payment-live-status.is-pending {
  background: rgba(255, 213, 0, 0.16);
  color: #8b6d00;
}

.payment-live-status.is-paid {
  background: rgba(15, 143, 95, 0.14);
  color: var(--accent-3);
}

.payment-live-status.is-failure {
  background: rgba(199, 56, 47, 0.12);
  color: var(--danger);
}

.verify-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(102, 81, 46, 0.12);
}

.account-ready {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(0, 91, 187, 0.08), rgba(255, 213, 0, 0.14)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 91, 187, 0.14);
  animation: fade-up 0.6s ease both;
}

.account-ready h3 {
  margin: 10px 0 6px;
  font-size: 24px;
}

.account-ready-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 143, 95, 0.12);
  color: var(--accent-3);
  font-weight: 800;
}

.auth-panel.logged-in .section-head,
.auth-panel.logged-in .auth-switch,
.auth-panel.logged-in #authForm,
.auth-panel.logged-in #authMessage,
.auth-panel.logged-in #verifyPanel {
  display: none;
}

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

.panel-message {
  margin: 16px 0 0;
  line-height: 1.6;
}

.listing-panel {
  margin-top: 24px;
}

.petition-list {
  display: grid;
  gap: 18px;
}

.recommended-panel {
  margin-bottom: 26px;
}

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

.author-analytics {
  margin-top: 24px;
  padding: 28px;
}

.analytics-grid {
  display: grid;
  gap: 16px;
}

.analytics-card {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(84, 81, 74, 0.1);
}

.analytics-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.analytics-card-top h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.analytics-metrics {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.analytics-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(84, 81, 74, 0.08);
}

.qr-thumb {
  width: 88px;
  height: 88px;
  padding: 6px;
  border-radius: 18px;
  background: white;
  object-fit: contain;
  box-shadow: 0 16px 24px rgba(35, 23, 13, 0.08);
}

.petition-card-focus {
  outline: 2px solid rgba(0, 91, 187, 0.35);
  box-shadow: 0 0 0 8px rgba(0, 91, 187, 0.08);
}

.mobile-dock {
  position: sticky;
  bottom: 14px;
  z-index: 2;
  display: none;
  margin: 24px auto 0;
  width: min(100%, 560px);
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(84, 81, 74, 0.1);
  box-shadow: 0 18px 34px rgba(35, 23, 13, 0.12);
  backdrop-filter: blur(18px);
}

.mobile-dock a {
  flex: 1;
  text-decoration: none;
  color: var(--steel);
  font-weight: 800;
  text-align: center;
  padding: 12px 10px;
  border-radius: 16px;
}

.mobile-dock a:hover {
  background: rgba(0, 91, 187, 0.08);
}

.recommend-card {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(0, 91, 187, 0.08), rgba(255, 213, 0, 0.12)),
    var(--panel-strong);
  border: 1px solid rgba(0, 91, 187, 0.1);
  box-shadow: 0 18px 30px rgba(66, 47, 22, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.recommend-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 42px rgba(66, 47, 22, 0.12);
}

.recommend-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.recommend-card p {
  color: var(--muted);
  line-height: 1.55;
}

.recommend-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 800;
}

.petition-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.petition-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(0, 91, 187, 0.05), transparent 26%, transparent 76%, rgba(255, 213, 0, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.petition-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.85;
}

.petition-card:hover {
  transform: translateY(-6px) rotate(-0.25deg);
}

.petition-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.petition-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.petition-card p {
  line-height: 1.6;
}

.petition-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0;
  font-size: 14px;
}

.petition-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  position: relative;
}

.petition-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.petition-link:hover::after {
  transform: scaleX(1);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 143, 95, 0.12);
  color: var(--accent-3);
  font-weight: 800;
}

.badge-pending {
  background: rgba(255, 213, 0, 0.18);
  color: #8b6d00;
}

.badge-paid {
  background: rgba(15, 143, 95, 0.12);
  color: var(--accent-3);
}

.badge-failure {
  background: rgba(199, 56, 47, 0.14);
  color: var(--danger);
}

.empty-state {
  padding: 34px;
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.52);
  border: 1px dashed rgba(102, 81, 46, 0.18);
}

.hidden {
  display: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(16px, 24px, 0) scale(1.08);
  }
}

@keyframes pulse-mark {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes drone-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }

  50% {
    transform: translate3d(0, 18px, 0) rotate(4deg);
  }
}

@keyframes prop-spin {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(360deg) scale(1.06);
  }
}

@keyframes beacon {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

@keyframes button-sheen {
  from {
    transform: translateX(-140%);
  }

  to {
    transform: translateX(140%);
  }
}

@keyframes price-pulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes smoke-rise {
  0%,
  100% {
    transform: translateY(0) scale(0.86);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-10px) scale(1.12);
    opacity: 0.72;
  }
}

@keyframes surrender-shift {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}

@keyframes side-panel-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1280px) {
  .side-drone {
    opacity: 0.16;
    transform: scale(0.88);
  }

  .tactical-side {
    opacity: 0.2;
    transform: scale(0.9);
  }
}

@media (max-width: 980px) {
  .side-drone,
  .tactical-side {
    display: none;
  }

  .topbar,
  .hero,
  .workspace {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar {
    padding: 20px;
  }

  .nav,
  .topbar-meta {
    flex-wrap: wrap;
  }

  .topbar-meta {
    justify-content: start;
  }

  .support-banner {
    grid-template-columns: 1fr;
  }

  .support-banner-badges {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 16px 14px 52px;
  }

  .hero,
  .auth-panel,
  .petition-panel,
  .listing-panel {
    padding: 22px;
  }

  .form-grid,
  .payment-grid,
  .stats-grid,
  .recommended-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }

  .topbar {
    gap: 16px;
  }

  .brand {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }

  .brand strong {
    font-size: 18px;
  }

  .nav a,
  .meta-card {
    width: 100%;
  }

  .topbar-tools {
    justify-content: start;
    flex-wrap: wrap;
  }

  .analytics-card-top {
    flex-direction: column;
    align-items: start;
  }

  .mobile-dock {
    display: flex;
  }

  .petition-card-top {
    flex-direction: column;
  }
}
