.page-guarantee-fund {
  background: var(--app-bg);
  min-height: 100vh;
}

.gf-main {
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
}

.gf-hero {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 20px;
  min-height: 220px;
  color: #fff;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 10px 28px rgba(0, 58, 158, 0.2);
}

.gf-hero__illus {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gf-hero__illus svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gf-hero__overlay {
  position: relative;
  z-index: 1;
  padding: 56px 20px 8px;
  background: linear-gradient(180deg, rgba(0, 40, 110, 0.15) 0%, rgba(0, 58, 158, 0.55) 100%);
}

.gf-hero__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
}

.gf-hero__label {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}

.gf-hero__balance {
  display: block;
  margin: 6px 0 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.gf-hero__estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.gf-hero__estimate span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.gf-hero__estimate strong {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.gf-hero__estimate small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
}

.gf-hero__progress {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

.gf-hero__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.gf-hero__progress-head strong {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.gf-hero__progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.gf-hero__progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffe082, #ffb020);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.gf-hero__progress-pct {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.gf-body {
  padding: 0 16px;
}

.gf-withdraw-card {
  margin-bottom: 12px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.gf-withdraw-card__illus {
  height: 88px;
  overflow: hidden;
  background: #f0f5ff;
}

.gf-withdraw-card__illus svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gf-withdraw-card__body {
  padding: 14px 16px 16px;
}

.gf-withdraw-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gf-withdraw-card__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.gf-withdraw-card__head a {
  font-size: 12px;
  color: var(--gov-blue);
  text-decoration: none;
}

.gf-withdraw-form {
  display: grid;
  gap: 10px;
}

.gf-withdraw-form label {
  font-size: 12px;
  color: var(--muted);
}

.gf-withdraw-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #f5f8fc;
  border: 1px solid #e4ebf5;
  border-radius: 12px;
}

.gf-withdraw-input-row span {
  font-size: 18px;
  font-weight: 700;
  color: var(--gov-blue);
}

.gf-withdraw-input-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.gf-withdraw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}

.gf-withdraw-meta b {
  color: var(--text);
  font-weight: 600;
}

.gf-withdraw-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.gf-withdraw-actions button {
  flex: 1;
}

.gf-btn-all {
  flex: 0 0 auto !important;
  padding: 0 14px !important;
  white-space: nowrap;
}

.gf-btn-primary {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0052d9, #003a9e);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 82, 217, 0.28);
}

.gf-btn-primary:disabled {
  opacity: 0.45;
  box-shadow: none;
}

.gf-btn-ghost {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gov-blue);
  background: #eef4ff;
  border: 0;
  border-radius: 12px;
}

.gf-section {
  margin-bottom: 12px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.gf-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.gf-section__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.gf-section__head a {
  font-size: 12px;
  color: var(--gov-blue);
  text-decoration: none;
}

.gf-sub-list {
  list-style: none;
  margin: 0;
  padding: 0 16px 12px;
}

.gf-sub-item {
  padding: 12px 0;
  border-top: 1px solid #eef2f8;
}

.gf-sub-item:first-child {
  border-top: 0;
}

.gf-sub-item__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.gf-sub-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.gf-sub-item__estimate {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #0b54ff;
  background: #f0f6ff;
  border-radius: 8px;
}

.gf-sub-item__estimate strong {
  font-size: 14px;
  font-weight: 800;
}

.gf-sub-item__progress {
  margin-top: 10px;
}

.gf-sub-item__progress-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
}

.gf-sub-item__progress-bar {
  height: 6px;
  background: #eef2f8;
  border-radius: 999px;
  overflow: hidden;
}

.gf-sub-item__progress-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #067a70, #0b9b8e);
  border-radius: 999px;
}

.gf-sub-item__progress small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #067a70;
}

.gf-sub-empty {
  padding: 0 16px 16px;
}

.gf-sub-empty__illus {
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.gf-sub-empty__illus svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gf-sub-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.gf-ledger-list {
  list-style: none;
  margin: 0;
  padding: 0 16px 12px;
}

.gf-ledger-list .ledger-row {
  border-top: 1px solid #eef2f8;
}

.gf-tip {
  margin: 4px 16px 0;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.gf-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  transform: translateX(-50%) translateY(120%);
  padding: 10px 18px;
  font-size: 13px;
  color: #fff;
  background: rgba(20, 35, 60, 0.92);
  border-radius: 999px;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.gf-toast.is-show {
  transform: translateX(-50%) translateY(0);
}

.page-guarantee-fund .subpage-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: transparent;
  color: #fff;
  border: 0;
}

.page-guarantee-fund .subpage-topbar .back-button {
  color: #fff;
}

.page-guarantee-fund .subpage-topbar h1 {
  color: #fff;
}
