:root {
  --bg: #07100e;
  --panel: #0b1714;
  --panel-2: #101f1b;
  --line: rgba(218, 240, 224, 0.14);
  --line-strong: rgba(218, 240, 224, 0.26);
  --text: #eff8f1;
  --muted: #91a59b;
  --lime: #bcff56;
  --gold: #e9c56a;
  --coral: #ff8f7a;
  --aqua: #71d8c1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(45, 116, 92, 0.2), transparent 32rem),
    radial-gradient(circle at 100% 36%, rgba(188, 255, 86, 0.055), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button,
select,
.tender-card {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: min(1500px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 100vh;
}

.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(188, 255, 86, 0.55);
  color: var(--lime);
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-family: Georgia, serif;
  font-size: 24px;
  box-shadow: inset 0 0 18px rgba(188, 255, 86, 0.08);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.snapshot {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font: 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px;
  cursor: pointer;
  font-size: 11px;
}

.theme-toggle-track {
  width: 48px;
  height: 26px;
  padding: 3px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-2);
}

.theme-toggle-thumb {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #102014;
  font-size: 9px;
  font-weight: 700;
  transform: translateX(20px);
  transition: transform 220ms ease, background 220ms ease;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 999px;
}

.access-shell {
  width: min(1400px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.access-topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.access-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
  padding: 70px 4vw 90px;
}

.access-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.access-copy h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 248, 241, 0.62);
}

.access-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin: 28px 0 0;
  color: #a9bcb2;
  font-size: 15px;
  line-height: 1.9;
}

.access-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.access-facts span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}

.access-card {
  position: relative;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(188, 255, 86, 0.25);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 36%),
    var(--panel);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.access-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -82px;
  bottom: -82px;
  border: 1px solid rgba(188, 255, 86, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(188, 255, 86, 0.025);
  pointer-events: none;
}

.access-card-number {
  color: var(--lime);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.18em;
}

.access-card h2 {
  margin: 30px 0 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.access-card > p:not(.access-error) {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.access-card label span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.access-card input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #0f1e1a;
  color: var(--text);
  font: 22px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.16em;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.access-card input:focus {
  border-color: rgba(188, 255, 86, 0.6);
  box-shadow: 0 0 0 4px rgba(188, 255, 86, 0.08);
}

.access-card button {
  width: 100%;
  height: 54px;
  margin-top: 18px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: #102014;
  cursor: pointer;
  font-weight: 700;
}

.access-card button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.access-card small {
  display: block;
  margin-top: 16px;
  color: #5f766b;
  font-size: 9px;
  text-align: center;
}

.access-error {
  margin: 10px 0 0;
  color: var(--coral);
  font-size: 11px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(188, 255, 86, 0.08), 0 0 14px var(--lime);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(510px, 0.88fr);
  gap: 64px;
  padding: 68px 0 54px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--lime);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.22em;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 730;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 248, 241, 0.62);
}

.hero-description {
  max-width: 640px;
  margin: 27px 0 0;
  color: #a9bcb2;
  font-size: 15px;
  line-height: 1.9;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  background: rgba(10, 23, 19, 0.55);
  border-radius: 20px;
  overflow: hidden;
  align-self: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.stat-card {
  min-height: 142px;
  padding: 26px;
  position: relative;
}

.stat-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.stat-card:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
}

.stat-card span {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.stat-card strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--gold);
  font: 700 36px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.stat-card small {
  font-size: 11px;
}

.stat-card.featured {
  background: var(--lime);
}

.stat-card.featured span,
.stat-card.featured strong,
.stat-card.featured small {
  color: #102014;
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(270px, 1.6fr) repeat(4, minmax(150px, 0.72fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 23, 20, 0.92);
  border-radius: 16px;
  position: sticky;
  top: 12px;
  z-index: 20;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
}

.control-panel label:not(.search-field) {
  position: relative;
}

.filter-label {
  position: absolute;
  left: 14px;
  top: 9px;
  z-index: 1;
  color: #73887e;
  font-size: 9px;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.control-panel input,
.control-panel select {
  width: 100%;
  height: 58px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #0f1e1a;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.control-panel select {
  padding: 22px 36px 7px 14px;
  color-scheme: dark;
}

.control-panel input:hover,
.control-panel select:hover,
.control-panel input:focus,
.control-panel select:focus {
  border-color: rgba(188, 255, 86, 0.34);
  background: #12231e;
}

.search-field {
  position: relative;
}

.search-field input {
  padding: 0 16px 0 48px;
}

.search-icon {
  position: absolute;
  left: 17px;
  top: 14px;
  color: var(--lime);
  font-size: 27px;
  line-height: 1;
  z-index: 1;
}

.results-section {
  padding: 54px 0 72px;
}

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

.section-kicker {
  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--muted);
  font-size: 12px;
}

.results-meta button,
.empty-state button {
  border: 0;
  background: transparent;
  color: var(--lime);
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1px solid rgba(188, 255, 86, 0.35);
}

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

.tender-card {
  min-height: 390px;
  perspective: 1300px;
  cursor: pointer;
  outline: none;
}

.card-inner {
  width: 100%;
  min-height: 390px;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 580ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tender-card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.tender-card:hover .card-front,
.tender-card:focus-visible .card-front {
  border-color: rgba(188, 255, 86, 0.38);
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

.tender-card:focus-visible .card-face {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.card-face {
  position: absolute;
  inset: 0;
  min-height: 390px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 36%),
    var(--panel);
  backface-visibility: hidden;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.card-face::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -64px;
  bottom: -64px;
  border: 1px solid rgba(188, 255, 86, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(188, 255, 86, 0.02);
  pointer-events: none;
}

.card-front {
  display: flex;
  flex-direction: column;
}

.card-back {
  transform: rotateY(180deg);
  background: #12231e;
  border-color: rgba(188, 255, 86, 0.28);
}

.card-topline,
.back-header,
.deadline-row,
.flip-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.region-chip,
.urgency-chip {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  line-height: 1;
}

.region-chip {
  background: rgba(113, 216, 193, 0.08);
  color: var(--aqua);
  border: 1px solid rgba(113, 216, 193, 0.18);
}

.urgency-chip {
  color: #a9bcb2;
  background: rgba(255, 255, 255, 0.04);
}

.urgency-chip.urgent {
  color: var(--coral);
  background: rgba(255, 143, 122, 0.1);
}

.urgency-chip.warning {
  color: var(--gold);
  background: rgba(233, 197, 106, 0.1);
}

.urgency-chip.open {
  color: var(--lime);
  background: rgba(188, 255, 86, 0.08);
}

.project-number {
  margin-top: 24px;
  color: #5f766b;
  font: 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.17em;
}

.card-face h3 {
  margin: 12px 0 20px;
  font-size: 19px;
  line-height: 1.48;
  letter-spacing: -0.02em;
}

.company-block {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.company-block span,
.card-data-row span,
.deadline-row span {
  color: #73887e;
  font-size: 10px;
  letter-spacing: 0.09em;
}

.company-block p {
  margin: 6px 0 0;
  color: #c4d2cb;
  font-size: 13px;
  line-height: 1.5;
}

.card-data-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  padding: 17px 0;
}

.card-data-row div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.card-data-row span,
.card-data-row strong {
  display: block;
}

.card-data-row strong {
  margin-top: 8px;
  font-size: 13px;
}

.card-data-row .amount {
  color: var(--gold);
  font: 700 17px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.deadline-row {
  margin-top: auto;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.028);
  border-radius: 9px;
}

.deadline-row strong {
  color: var(--lime);
  font: 700 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.flip-hint {
  padding-top: 14px;
  color: #64796f;
  font-size: 10px;
}

.flip-hint span:last-child,
.back-header span:last-child {
  color: var(--lime);
  font-size: 18px;
}

.back-header {
  color: var(--lime);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.18em;
}

.card-back h3 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.card-back dl {
  margin: 0;
}

.card-back dl > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(218, 240, 224, 0.075);
}

.card-back dt {
  color: #71877c;
  font-size: 10px;
}

.card-back dd {
  margin: 0;
  color: #c7d5cd;
  font-size: 11px;
  line-height: 1.45;
}

.card-back a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(188, 255, 86, 0.32);
  border-radius: 9px;
  color: var(--lime);
  text-decoration: none;
  font-size: 12px;
  transition: color 160ms ease, background 160ms ease;
}

.card-back a:hover,
.card-back a:focus-visible {
  background: var(--lime);
  color: #102014;
  outline: none;
}

.source-note {
  margin: 10px 0 0;
  color: #61766c;
  font-size: 9px;
  text-align: center;
}

.empty-state {
  min-height: 340px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}

.empty-state > span {
  color: var(--lime);
  font-size: 38px;
}

.empty-state h3 {
  margin: 12px 0 0;
  color: var(--text);
}

.empty-state p {
  font-size: 13px;
}

footer {
  min-height: 96px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
}

footer strong {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .site-shell {
    width: min(100% - 40px, 980px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats-panel {
    max-width: 720px;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

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

  .access-stage {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 28px, 600px);
  }

  .topbar {
    min-height: 74px;
  }

  .snapshot {
    font-size: 9px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-actions .snapshot {
    display: none;
  }

  .theme-toggle > span:last-child {
    display: none;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding: 46px 0 36px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 60px);
  }

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

  .stat-card {
    min-height: 124px;
    padding: 20px;
  }

  .stat-card strong {
    font-size: 29px;
  }

  .control-panel {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }

  .search-field {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-meta {
    width: 100%;
    justify-content: space-between;
  }

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

  .tender-card,
  .card-inner,
  .card-face {
    min-height: 386px;
  }

  footer {
    padding: 28px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  footer p {
    margin: 0;
  }

  .access-shell {
    width: min(100% - 28px, 600px);
  }

  .access-topbar {
    min-height: 74px;
  }

  .access-stage {
    padding: 50px 0 70px;
  }

  .access-copy h1 {
    font-size: clamp(42px, 13vw, 64px);
  }
}

[data-theme="light"] {
  --bg: #eef3ee;
  --panel: #ffffff;
  --panel-2: #e5ece6;
  --line: rgba(25, 57, 43, 0.13);
  --line-strong: rgba(25, 57, 43, 0.24);
  --text: #12231b;
  --muted: #60756a;
  --lime: #2d7d3c;
  --gold: #9c6b12;
  --coral: #bc4d3a;
  --aqua: #147e6c;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 16% 0%, rgba(45, 125, 60, 0.1), transparent 32rem),
    radial-gradient(circle at 100% 36%, rgba(233, 197, 106, 0.12), transparent 28rem),
    var(--bg);
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(0);
  background: var(--gold);
  color: #fffdf7;
}

[data-theme="light"] .hero h1 span,
[data-theme="light"] .access-copy h1 span {
  -webkit-text-stroke-color: rgba(18, 35, 27, 0.62);
}

[data-theme="light"] .hero-description,
[data-theme="light"] .access-copy > p:not(.eyebrow),
[data-theme="light"] .company-block p,
[data-theme="light"] .card-back dd {
  color: #435c50;
}

[data-theme="light"] .stats-panel,
[data-theme="light"] .control-panel {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(26, 51, 40, 0.12);
}

[data-theme="light"] .control-panel input,
[data-theme="light"] .control-panel select,
[data-theme="light"] .access-card input {
  background: #f5f8f5;
  color: var(--text);
  color-scheme: light;
}

[data-theme="light"] .control-panel input:hover,
[data-theme="light"] .control-panel select:hover,
[data-theme="light"] .control-panel input:focus,
[data-theme="light"] .control-panel select:focus {
  background: #ffffff;
}

[data-theme="light"] .card-face,
[data-theme="light"] .access-card {
  background:
    linear-gradient(145deg, rgba(45, 125, 60, 0.035), transparent 36%),
    var(--panel);
  box-shadow: 0 18px 48px rgba(26, 51, 40, 0.08);
}

[data-theme="light"] .card-back {
  background: #f7faf7;
}

[data-theme="light"] .deadline-row {
  background: rgba(45, 125, 60, 0.055);
}

[data-theme="light"] .brand-mark {
  background: rgba(45, 125, 60, 0.05);
}

[data-theme="light"] .access-card small,
[data-theme="light"] .source-note,
[data-theme="light"] .flip-hint,
[data-theme="light"] .project-number {
  color: #72847a;
}

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