:root {
  --bg: #f3f3f5;
  --bg-2: #fafafa;
  --card: rgba(255, 255, 255, 0.96);
  --card-border: rgba(20, 20, 20, 0.06);
  --text: #111111;
  --muted: #6e6e73;
  --line: rgba(20, 20, 20, 0.08);
  --progress-bg: #e5e5ea;
  --progress-fill: #d4af37;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

body {
  overflow-x: hidden;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px 20px 56px;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #111111;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 252, 0.94));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 18px;
}

.card-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.value-main {
  font-size: clamp(42px, 7vw, 74px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #111111;
}

.value-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.goal-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.goal-block-right {
  text-align: right;
}

.goal-value,
.remaining-value {
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -0.03em;
  color: #111111;
}

.progress-wrap {
  margin-top: 4px;
}

.progress {
  width: 100%;
  height: 34px;
  background: var(--progress-bg);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  width: 0%;
  min-width: 84px;
  max-width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c79b1d 0%, #d4af37 100%);
  transition: width 0.45s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
}

.bar-percent {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

.trades-head {
  margin-bottom: 12px;
}

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

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

thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

tbody td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: #1d1d1f;
  text-align: left;
}

tbody tr:last-child td {
  border-bottom: none;
}

.align-right {
  text-align: right;
}

.footer-mark {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 50px;
  opacity: 0.9;
}

.error-box {
  margin-top: 12px;
  margin-bottom: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff1f1;
  border: 1px solid rgba(180, 40, 40, 0.12);
  color: #9f2d2d;
  font-size: 14px;
  line-height: 1.45;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .container {
    padding: 28px 14px 42px;
  }

  .card {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .goal-row {
    align-items: flex-start;
  }

  .goal-value,
  .remaining-value {
    font-size: 24px;
  }

  .value-main {
    font-size: 52px;
  }

  .progress {
    height: 32px;
  }

  .bar-percent {
    font-size: 13px;
  }

  .footer-mark {
    margin-top: 24px;
    font-size: 50px;
  }
}