:root {
  --bg: #0b0b0f;
  --bg-soft: #12121a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);

  --text: #f5f7fb;
  --text-soft: #a9b0be;
  --text-muted: #7f8796;

  --primary: #d4a24c;
  --primary-strong: #f0c36d;
  --primary-dark: #8a6323;

  --success: #2fb36d;
  --danger: #d9534f;
  --warning: #e6a23c;

  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.24);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 1180px;

  --font-title: "Playfair Display", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(212, 162, 76, 0.13), transparent 28%),
    linear-gradient(180deg, #0b0b0f 0%, #111219 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(212, 162, 76, 0.28);
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-subtitle {
  max-width: 640px;
  color: var(--text-soft);
  font-size: 1rem;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(212, 162, 76, 0.24);
  border-radius: 999px;
  background: rgba(212, 162, 76, 0.08);
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform var(--transition),
    opacity var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  font-weight: 700;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #1a1307;
  box-shadow: 0 12px 30px rgba(212, 162, 76, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(212, 162, 76, 0.26);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 52px;
}

.select::-ms-expand {
  display: none;
}

.select option {
  background: #171922;
  color: #f5efe6;
}

.select option:checked {
  background: #2a67d1;
  color: #ffffff;
}

.select option:hover {
  background: #232735;
  color: #ffffff;
}

.select option:disabled {
  color: rgba(245, 239, 230, 0.45);
  background: #171922;
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

.input:hover,
.select:hover,
.textarea:hover {
  background: rgba(255, 255, 255, 0.05);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(212, 162, 76, 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.12);
}

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

.field label {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 8, 11, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #120d05;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(212, 162, 76, 0.25);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-text span {
  display: block;
  color: var(--text-soft);
  font-size: 0.85rem;
}

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

.nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-soft);
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
  border: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.04);
}

.hero {
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 14px 0 18px;
}

.hero-copy p {
  max-width: 620px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

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

.hero-panel {
  padding: 24px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-panel h3 {
  font-size: 1.15rem;
}

.hero-panel p {
  color: var(--text-soft);
}

.stat-list {
  display: grid;
  gap: 14px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-item strong {
  font-size: 1.05rem;
}

.stat-item span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.page-header {
  padding: 48px 0 22px;
}

.page-header h1 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-soft);
  max-width: 760px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 60px;
}

.footer-inner {
  padding: 24px 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.table th {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.table td {
  color: var(--text);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-soft);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-success {
  background: rgba(47, 179, 109, 0.14);
  color: #67d59a;
}

.status-warning {
  background: rgba(230, 162, 60, 0.14);
  color: #f1ba62;
}

.status-danger {
  background: rgba(217, 83, 79, 0.14);
  color: #ef837f;
}

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

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .section-header,
  .topbar-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .nav a {
    text-align: center;
  }

  .brand-text span {
    font-size: 0.8rem;
  }

  .stat-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .table {
    min-width: 640px;
  }
}