:root {
  color-scheme: light;
  --ink: #17223b;
  --muted: #667085;
  --surface: #ffffff;
  --canvas: #f3f6fb;
  --brand: #2f6fed;
  --success: #12b76a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-header {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid #e4e7ec;
  background: var(--surface);
}

.app-header .signout-form {
  margin-left: 24px;
}

.main-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.main-nav a,
.pagination a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: var(--brand);
}

.page-shell {
  width: min(960px, calc(100% - 40px));
  margin: 64px auto;
}

.content-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto;
}

.page-heading,
.card-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.page-heading {
  margin-bottom: 32px;
}

.page-heading h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.data-card {
  overflow: hidden;
  padding: 28px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: var(--surface);
}

.balance-card {
  margin-bottom: 24px;
  padding: 28px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, #173b7a, #2f6fed);
  box-shadow: 0 18px 44px rgb(47 111 237 / 18%);
}

.balance-card .eyebrow,
.balance-card .muted {
  color: rgb(255 255 255 / 72%);
}

.balance-label {
  margin: 0;
  font-weight: 700;
}

.balance-value {
  margin: 8px 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
}

.card-heading h2 {
  margin: 0 0 24px;
}

.muted {
  color: var(--muted);
}

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

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

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #eaecf0;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.numeric {
  text-align: right;
}

.status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f2f4f7;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-succeeded {
  color: #067647;
  background: #ecfdf3;
}

.status-failed,
.status-cancelled {
  color: #b42318;
  background: #fef3f2;
}

.status-pending,
.status-processing {
  color: #b54708;
  background: #fffaeb;
}

.search-form {
  margin-bottom: 28px;
}

.search-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  font: inherit;
}

.pagination {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 24px;
}

.empty-state {
  margin: 24px 0 0;
  padding: 32px;
  color: var(--muted);
  border-radius: 12px;
  background: #f9fafb;
  text-align: center;
}

.hero-card {
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid #e4e7ec;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgb(16 24 40 / 8%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 1.02;
}

.lede {
  max-width: 680px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.status-row {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #067647;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgb(18 183 106 / 12%);
}

.button {
  display: inline-block;
  padding: 11px 16px;
  color: #fff;
  border-radius: 10px;
  background: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.text-button {
  padding: 8px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-body {
  background: #f7f7f5;
  color: #37352f;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  text-align: center;
  border: 1px solid #e8e8e6;
  border-radius: 20px;
  background: #fff;
}

.login-brand {
  margin-bottom: 20px;
}

.login-logo {
  display: inline-block;
  width: 110px;
  height: auto;
}

.login-copy {
  margin-bottom: 24px;
}

.login-eyebrow {
  margin: 0 0 8px;
  color: #9b9a97;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-title {
  margin: 0 0 8px;
  color: #2f2f2d;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.login-subtitle {
  margin: 0;
  color: #787774;
  font-size: 0.96rem;
}

.login-actions {
  margin-top: 8px;
}

.google-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1rem;
  color: #37352f;
  border: 1px solid #dfdfdc;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.google-login-btn:hover {
  color: #2f2f2d;
  border-color: #d5d5d1;
  background: #f3f3f1;
}

.google-login-btn:active {
  transform: translateY(1px);
}

.login-footer {
  margin-top: 18px;
  color: #9b9a97;
  font-size: 0.88rem;
}

.alert {
  padding: 14px 16px;
  color: #b42318;
  border: 1px solid #fecdca;
  border-radius: 10px;
  background: #fef3f2;
}

@media (max-width: 720px) {
  .login-card {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .login-title {
    font-size: 1.7rem;
  }

  .login-logo {
    width: 92px;
  }

  .app-header {
    padding: 0 18px;
  }

  .main-nav {
    display: none;
  }

  .app-header .signout-form {
    margin-left: auto;
  }

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