:root {
  --bg: #07111f;
  --panel: #0e1b30;
  --panel-2: #122340;
  --panel-3: #183055;
  --text: #eef4ff;
  --muted: #9fb0c9;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.28);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(19, 38, 73, 0.98) 0, rgba(7, 17, 31, 1) 55%),
    var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.site-header,
.site-footer {
  background: rgba(4, 10, 20, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: 40px;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.menu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.menu a,
.btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.menu a:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.hero,
.card,
.panel {
  background: linear-gradient(180deg, rgba(18, 35, 64, 0.98), rgba(8, 16, 30, 0.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 34px;
  margin-top: 22px;
}

.section {
  margin-top: 22px;
}

.card,
.panel {
  padding: 26px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

h1,
h2,
h3,
h4 {
  margin: 0.15em 0 0.55em;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0.75em 0;
}

small,
.muted {
  color: var(--muted);
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.pill,
.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}

.badge.success {
  background: rgba(20, 132, 67, 0.18);
  border-color: rgba(20, 132, 67, 0.35);
}

.badge.warning {
  background: rgba(196, 145, 31, 0.16);
  border-color: rgba(196, 145, 31, 0.35);
}

.badge.danger {
  background: rgba(192, 56, 56, 0.16);
  border-color: rgba(192, 56, 56, 0.35);
}

.badge.neutral {
  background: rgba(255, 255, 255, 0.05);
}

.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.kpi {
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #f3d77a);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.notice {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.notice strong {
  color: var(--text);
}

.image-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
}

.responsive-image,
.receipt-preview {
  display: block;
  width: 100%;
  height: auto;
}

.responsive-image {
  object-fit: cover;
}

.receipt-preview {
  max-height: 380px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 18px;
}

.receipt-preview-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

form.section.grid,
form.grid {
  align-items: end;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(3, 10, 20, 0.55);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(159, 176, 201, 0.75);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
  background: rgba(3, 10, 20, 0.72);
}

button,
.btn {
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), #f3d77a);
  color: #102038;
  font-weight: 800;
  border: 0;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  padding: 20px;
  background: rgba(2, 6, 12, 0.72);
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal.open {
  display: flex;
}

.modal-box {
  max-width: 720px;
  width: min(720px, 100%);
  background: linear-gradient(180deg, rgba(18, 35, 64, 0.99), rgba(8, 16, 30, 0.99));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.narrow {
  max-width: 820px;
}

@media (max-width: 720px) {
  .wrap {
    padding: 16px;
  }

  .hero,
  .card,
  .panel,
  .modal-box {
    border-radius: 20px;
    padding: 20px;
  }

  .menu {
    width: 100%;
  }

  .menu a,
  .btn {
    width: 100%;
  }

  .status-badges,
  .menu,
  .stats {
    gap: 8px;
  }
}
