@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=JetBrains+Mono:wght@400;600&family=Sora:wght@300;400;500;600&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #0b1f3a;
  --muted: #4b5c73;
  --accent: #10c5c6;
  --accent-soft: #c7f3f3;
  --accent-2: #2b6fff;
  --accent-3: #07264d;
  --accent-4: #e9f0f8;
  --border: rgba(7, 38, 77, 0.12);
  --grid: rgba(7, 38, 77, 0.14);
  --shadow: 0 30px 70px rgba(7, 38, 77, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  margin: 0;
  background: linear-gradient(160deg, #f6f9fd 0%, #f4f7fb 55%, #eef3f9 100%);
  color: var(--ink);
  min-height: 100vh;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(16, 197, 198, 0.2), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(43, 111, 255, 0.18), transparent 42%),
    radial-gradient(circle at 60% 78%, rgba(7, 38, 77, 0.12), transparent 45%);
  pointer-events: none;
}

.wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 24px 64px;
  display: grid;
  gap: 26px;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-3);
  color: #f7fbff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", "Courier New", monospace;
}

.logo {
  display: block;
  height: 40px;
  width: auto;
  filter: drop-shadow(0 6px 10px rgba(24, 30, 42, 0.2));
}

.logo.small {
  height: 28px;
}

.hero-logo {
  margin-bottom: 16px;
}

.toolbar-logo {
  margin-bottom: 8px;
}

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  animation: rise 0.6s ease;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 40px);
  font-family: "Fraunces", "Times New Roman", serif;
  letter-spacing: 0.01em;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}


.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.type-card {
  border: 1px solid rgba(31, 36, 48, 0.12);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(150deg, #ffffff 0%, #eef7ff 100%);
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
  text-align: left;
}

.type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(16, 197, 198, 0.22);
  border-color: rgba(16, 197, 198, 0.4);
}

.type-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.type-card span {
  color: var(--muted);
  font-size: 14px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent-3);
  color: #f7fbff;
  font-size: 13px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.toolbar h2 {
  margin: 10px 0 4px;
  font-size: 22px;
  font-family: "Fraunces", "Times New Roman", serif;
}

.toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}


.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.filters.compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.select-box {
  border: 1px solid rgba(31, 36, 48, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.select-box label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", "Courier New", monospace;
}

select {
  width: 100%;
  border: none;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  border: none;
  border-radius: 0;
  background: transparent;
  height: 36px;
  padding: 2px 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ink);
  padding-left: 0;
  font-size: 15px;
  line-height: 32px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(11, 31, 58, 0.45);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
  right: 0;
}

.select2-dropdown {
  border: 1px solid rgba(7, 38, 77, 0.18);
  border-radius: 12px;
  box-shadow: 0 18px 30px rgba(7, 38, 77, 0.12);
  overflow: hidden;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: none;
  padding: 10px 12px;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  outline: none;
}

.select2-container--default .select2-results__option {
  padding: 10px 12px;
  font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--accent-4);
  color: var(--ink);
}

.tables {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.table-card {
  border: 1px solid rgba(31, 36, 48, 0.12);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 30px rgba(7, 38, 77, 0.08);
  min-width: 0;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.table-card h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", "Courier New", monospace;
  color: var(--accent-3);
}

.table-chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", "Courier New", monospace;
}

.table-chip.neutral {
  background: rgba(7, 38, 77, 0.12);
  color: #1a3152;
}

.table-chip.success {
  background: rgba(16, 197, 198, 0.2);
  color: #0a6c6d;
}

.grid {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 14px;
  overflow: hidden;
  border-radius: 12px;
}

.grid.compact {
  font-size: 12px;
  min-width: 860px;
}

.grid th,
.grid td {
  border: 1px solid var(--grid);
  padding: 10px;
  text-align: center;
  background: #fdfefe;
}

.grid.compact th,
.grid.compact td {
  padding: 8px 10px;
}

.grid.compact thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.grid.compact th:first-child {
  left: 0;
  z-index: 3;
}

.grid.compact td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fdfefe;
}

.grid.compact tbody tr:nth-child(even) td {
  background: #f7faff;
}

.grid.compact tbody tr:nth-child(even) td:first-child {
  background: #f7faff;
}

.grid.compact tbody tr:hover td:first-child {
  background: #eaf9f9;
}

.table-scroll {
  overflow: auto;
  width: 100%;
  max-height: 60vh;
  border-radius: 14px;
  border: 1px solid rgba(7, 38, 77, 0.08);
}

@media (max-width: 1100px) {
  .tables {
    grid-template-columns: 1fr;
  }

  .transfer {
    display: none;
  }
}

@media (min-width: 1400px) {
  .wrap {
    padding: 28px 48px 72px;
  }

  .card {
    padding: 32px;
  }
}

.grid th {
  background: #eef5ff;
  font-weight: 600;
}

.grid tr:hover td {
  background: #eaf9f9;
}

.transfer {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.transfer button {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(16, 197, 198, 0.35);
  transition: transform 0.2s ease;
}

.transfer button:hover {
  transform: translateX(4px);
}

.transfer-field {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.transfer-field label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", "Courier New", monospace;
}

.transfer-field input {
  width: 100%;
  border: 1px solid rgba(31, 36, 48, 0.16);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}

.back {
  border: 1px solid rgba(31, 36, 48, 0.18);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.price-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 10px 0 18px;
}


.date-box {
  border: 1px solid rgba(31, 36, 48, 0.15);
  border-radius: 12px;
  padding: 8px 14px;
  background: #fff;
  color: var(--accent-3);
  font-weight: 600;
  font-family: "JetBrains Mono", "Courier New", monospace;
}

.hidden {
  display: none;
}

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

.section-header h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(43, 111, 255, 0.16);
  color: #1c47a8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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