:root {
  --green: #567b38;
  --black: #0d0d0d;
  --white: #ffffff;
  --gray: #d8d8d8;
  --bg: #111111;
  --card: #171717;
  --line: #2f2f2f;
  --danger: #f04747;
  --ok: #82d173;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 5% 5%, rgba(86, 123, 56, 0.42), transparent 35%),
    linear-gradient(140deg, #0d0d0d 0%, #131313 65%, #0d0d0d 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
  will-change: transform;
}

body::before {
  left: -18vmax;
  top: -20vmax;
  background: radial-gradient(circle at 30% 30%, rgba(86, 123, 56, 0.45), rgba(86, 123, 56, 0.06) 55%, rgba(86, 123, 56, 0) 75%);
  animation: floatOrbA 24s ease-in-out infinite alternate;
}

body::after {
  right: -24vmax;
  bottom: -22vmax;
  background: radial-gradient(circle at 70% 65%, rgba(86, 123, 56, 0.35), rgba(86, 123, 56, 0.05) 58%, rgba(86, 123, 56, 0) 76%);
  animation: floatOrbB 28s ease-in-out infinite alternate;
}

@keyframes floatOrbA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(9vmax, 6vmax, 0) scale(1.06);
  }
  100% {
    transform: translate3d(3vmax, 11vmax, 0) scale(0.98);
  }
}

@keyframes floatOrbB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-10vmax, -7vmax, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-4vmax, -11vmax, 0) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand-user {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

nav {
  display: flex;
  gap: 14px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

nav a:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

nav a.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.hero,
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(23, 23, 23, 0.92);
  padding: 20px;
  margin-top: 16px;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.02em;
}

p {
  color: var(--gray);
}

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

label,
fieldset {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

legend {
  color: var(--gray);
  padding: 0 6px;
}

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

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 78px;
}

.eye-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #1a1a1a;
  color: var(--white);
  padding: 6px 10px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #0e0e0e;
  color: var(--white);
  padding: 10px;
}

textarea {
  min-height: 110px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(86, 123, 56, 0.28);
}

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

.option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.small {
  margin-top: -4px;
  font-size: 0.88rem;
  color: var(--gray);
}

button,
.btn {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  padding: 10px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--line);
}

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

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 6px;
}

.status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
}

.status.error {
  background: rgba(240, 71, 71, 0.15);
  border: 1px solid rgba(240, 71, 71, 0.45);
  color: #ffb1b1;
}

.status.success {
  background: rgba(130, 209, 115, 0.15);
  border: 1px solid rgba(130, 209, 115, 0.45);
  color: #b9f2b0;
}

.kv {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 10px;
}

.kv div {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.quote-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
  background: #111111;
}

.video-wrap {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #090909;
}

.video-wrap video {
  width: 100%;
  max-height: 280px;
  display: block;
}

.quote-table th,
.quote-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}

.quote-table th:last-child,
.quote-table td:last-child {
  text-align: right;
}

.hidden {
  display: none !important;
}

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

.status-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.status-card--link {
  display: block;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.status-card--link:link,
.status-card--link:visited,
.status-card--link:hover,
.status-card--link:active {
  color: var(--white);
  text-decoration: none;
}

.status-card--link h3,
.status-card--link p {
  color: var(--white);
  text-decoration: none;
}

.status-card--link:hover {
  border-color: #5f8f3b;
  background: rgba(95, 143, 59, 0.1);
  transform: translateY(-1px);
}

.status-card--active {
  border-color: #79ab4f;
  background: rgba(121, 171, 79, 0.16);
}

.status-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.status-card p {
  margin: 0;
  color: var(--white);
}

.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.status-dot--pending {
  background: #ff9800;
}

.status-dot--accepted {
  background: #4caf50;
}

.status-dot--rejected {
  background: #e53935;
}

.status-dot--changed {
  background: #29b6f6;
}

@media (max-width: 760px) {
  .form-grid,
  .kv {
    grid-template-columns: 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 8px;
    font-size: 0.94rem;
  }

  .brand span {
    display: none;
  }
}
