@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --surface: #f7f9ff;
  --surface-low: #f1f4fa;
  --surface-lowest: #ffffff;
  --text: #181c20;
  --text-soft: #5f6978;
  --text-muted: #8d96a5;
  --primary: #005bbf;
  --primary-soft: #eaf3ff;
  --secondary: #006e2c;
  --secondary-soft: #e5f7ed;
  --tertiary: #bb1712;
  --tertiary-soft: #feeceb;
  --amber: #b76d10;
  --outline: rgba(193, 198, 214, 0.35);
  --outline-soft: rgba(193, 198, 214, 0.16);
  --shadow: 0 24px 60px rgba(24, 28, 32, 0.1);
  --shadow-soft: 0 18px 36px rgba(24, 28, 32, 0.06);
  --radius-lg: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 91, 191, 0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(0, 110, 44, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eff4fb 100%);
}

body.sheet-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

input,
select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 1.1rem;
  background: var(--surface-low);
  color: var(--text);
  padding: 1rem 1rem 0.95rem;
  outline: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

input:focus,
select:focus {
  border-color: rgba(0, 91, 191, 0.28);
  background: var(--surface-lowest);
}

.ambient {
  position: fixed;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: -3rem;
  left: -5rem;
  background: rgba(0, 91, 191, 0.22);
}

.ambient-two {
  right: -6rem;
  bottom: 10rem;
  background: rgba(0, 110, 44, 0.18);
}

.site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  gap: 1.5rem;
  padding: 1.5rem;
}

.website-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1.5rem;
}

.website-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.website-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.website-link {
  color: var(--text-soft);
  font-weight: 700;
  text-decoration: none;
}

.website-main {
  display: grid;
  gap: 1.2rem;
}

.website-hero,
.website-section {
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.website-hero {
  display: grid;
  gap: 1.2rem;
  padding: 1.4rem;
}

.website-copy {
  padding: 0.4rem;
}

.website-title {
  margin: 0.45rem 0 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  max-width: 12ch;
}

.website-text {
  max-width: 50rem;
  margin: 1rem 0 0;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 1rem;
}

.website-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.website-ghost {
  padding: 1rem 1.2rem;
  border-radius: 999px;
  background: rgba(0, 91, 191, 0.08);
}

.website-stat-grid,
.website-feature-grid,
.website-workflow-grid {
  display: grid;
  gap: 0.9rem;
}

.website-stat,
.website-feature,
.website-flow,
.auth-card {
  border-radius: 1.5rem;
  background: rgba(247, 249, 255, 0.96);
  padding: 1.15rem;
}

.website-stat strong,
.website-feature strong,
.website-flow strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.05rem;
}

.website-feature p,
.website-flow p {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.website-section {
  padding: 1.3rem;
}

.auth-card {
  box-shadow: inset 0 0 0 1px var(--outline-soft);
}

.auth-toggle {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.85rem;
}

.auth-feedback {
  margin: 0 0 1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-submit {
  width: 100%;
  margin-top: 0.3rem;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--text-soft);
  font-weight: 700;
}

.app-shell {
  min-height: 100vh;
}

.desktop-panel {
  display: none;
}

.desktop-card {
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}

.brand-card h1 {
  margin: 0.5rem 0 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.lede {
  margin: 1rem 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.desktop-point-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.desktop-point {
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(247, 249, 255, 0.95);
}

.point-kicker {
  display: inline-block;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.desktop-point strong {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.55;
}

.app-frame {
  position: relative;
  min-height: calc(100vh - 3rem);
  background: var(--surface-lowest);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #005bbf 0%, #1a73e8 100%);
  box-shadow: 0 14px 28px rgba(0, 91, 191, 0.24);
}

.brand-name {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-subline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 0.18rem rgba(0, 110, 44, 0.14);
}

.status-dot.offline {
  background: var(--amber);
  box-shadow: 0 0 0 0.18rem rgba(183, 109, 16, 0.12);
}

.status-dot.warning {
  background: var(--tertiary);
  box-shadow: 0 0 0 0.18rem rgba(187, 23, 18, 0.12);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.round-button,
.install-chip,
.inline-button,
.ghost-link,
.ghost-action {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.round-button {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background: var(--surface-low);
  color: var(--primary);
  font-size: 1.15rem;
}

.round-button:hover,
.install-chip:hover,
.inline-button:hover,
.ghost-action:hover,
.action-button:hover,
.fab:hover,
.nav-item:hover {
  transform: translateY(-1px);
}

.install-chip,
.inline-button,
.primary-button,
.success-button,
.danger-button {
  border-radius: 999px;
  font-weight: 700;
}

.install-chip,
.inline-button {
  padding: 0.85rem 1.15rem;
  background: var(--primary-soft);
  color: var(--primary);
}

.install-banner {
  margin: 0 1.25rem;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(0, 91, 191, 0.08), rgba(26, 115, 232, 0.18));
  border-radius: 1.5rem;
}

.install-banner p {
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.view-shell {
  padding: 0.4rem 1.25rem 9rem;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: rise 0.3s ease;
}

.hero-card,
.surface-panel {
  border-radius: var(--radius-lg);
  background: var(--surface-low);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.hero-card {
  padding: 1.4rem;
  background:
    linear-gradient(145deg, rgba(0, 91, 191, 0.92), rgba(12, 103, 202, 0.86)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
  color: white;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -3rem auto;
  width: 9rem;
  height: 9rem;
  border-radius: 2.4rem;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(18deg);
}

.hero-kicker {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0.7rem 0 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.02;
  max-width: 12ch;
}

.hero-copy {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hero-pill {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

.metric-grid,
.report-metrics {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.metric-card {
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px var(--outline-soft);
}

.metric-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-top: 0.55rem;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
}

.metric-value.positive,
.report-positive {
  color: var(--secondary);
}

.metric-value.negative,
.report-negative {
  color: var(--tertiary);
}

.metric-value.primary {
  color: var(--primary);
}

.metric-caption {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.head-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0.25rem 0 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.ghost-link {
  padding: 0.6rem 0.2rem;
  color: var(--primary);
  font-weight: 700;
}

.action-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-grid-ledger {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.action-button,
.mini-action {
  padding: 1rem 0.8rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
  background: var(--surface-lowest);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--outline-soft);
}

.action-icon {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.search-field {
  position: relative;
  display: block;
}

.search-field input {
  padding-left: 2.8rem;
}

.search-glyph {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.activity-list,
.ledger-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.activity-card,
.party-card,
.settlement-card,
.expense-card,
.report-card,
.settings-card,
.ledger-item {
  position: relative;
  background: var(--surface-lowest);
  border-radius: 1.45rem;
  padding: 1rem;
  box-shadow: inset 0 0 0 1px var(--outline-soft);
}

.activity-card::before,
.ledger-item::before,
.expense-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.28rem;
  border-radius: 1rem;
  background: transparent;
}

.activity-card.positive::before,
.ledger-item.positive::before,
.expense-card.positive::before {
  background: var(--secondary);
}

.activity-card.negative::before,
.ledger-item.negative::before,
.expense-card.negative::before {
  background: var(--tertiary);
}

.activity-top,
.party-top,
.expense-top,
.ledger-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.party-top {
  align-items: center;
}

.activity-lockup,
.party-lockup,
.settings-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.avatar,
.small-avatar {
  display: grid;
  place-items: center;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
}

.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
}

.small-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  font-size: 0.78rem;
}

.activity-card strong,
.party-card strong,
.settings-card strong,
.expense-card strong,
.ledger-item strong {
  display: block;
  font-size: 1rem;
}

.muted-copy,
.activity-meta,
.party-meta,
.settings-copy,
.expense-copy,
.ledger-note,
.fine-print {
  color: var(--text-soft);
  line-height: 1.55;
}

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

.balance-label,
.mini-caption {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.balance-value {
  display: block;
  margin-top: 0.35rem;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.chip-row,
.group-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip,
.group-pill,
.sheet-badge,
.status-pill {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.chip,
.group-pill {
  background: var(--surface-lowest);
  color: var(--text-soft);
}

.group-pill.active,
.sheet-badge,
.status-pill.primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-pill.success {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.status-pill.danger {
  background: var(--tertiary-soft);
  color: var(--tertiary);
}

.party-grid,
.report-layout,
.settings-layout {
  display: grid;
  gap: 1rem;
}

.party-card {
  padding-left: 1.2rem;
}

.party-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 0.28rem;
  border-radius: 999px;
  background: var(--outline);
}

.party-card.positive::before {
  background: var(--secondary);
}

.party-card.negative::before {
  background: var(--tertiary);
}

.party-card.neutral::before {
  background: rgba(0, 91, 191, 0.4);
}

.party-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
}

.group-summary {
  display: grid;
  gap: 1rem;
}

.group-cards {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-card {
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  background: var(--surface-lowest);
}

.split-list {
  display: grid;
  gap: 0.8rem;
}

.settlement-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settlement-card strong {
  margin-bottom: 0.15rem;
}

.report-layout {
  grid-template-columns: 1fr;
}

.report-card h3,
.settings-card h3 {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.05rem;
}

.report-card p,
.settings-card p {
  margin: 0.5rem 0 0;
}

.bar-chart {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.bar-row {
  display: grid;
  gap: 0.55rem;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.bar-track {
  height: 0.7rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #005bbf 0%, #1a73e8 100%);
}

.bar-fill.secondary {
  background: linear-gradient(90deg, #006e2c 0%, #28a05a 100%);
}

.overdue-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.overdue-row,
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.overdue-row + .overdue-row,
.settings-row + .settings-row {
  border-top: 1px solid var(--outline-soft);
}

.settings-card {
  padding: 1.2rem;
}

.settings-row strong {
  font-size: 0.96rem;
}

.settings-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.membership-card {
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(0, 91, 191, 0.92), rgba(26, 115, 232, 0.86));
  color: white;
}

.membership-card p,
.membership-card strong {
  color: white;
}

.fab {
  position: absolute;
  right: 1.4rem;
  bottom: 6.2rem;
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  background: linear-gradient(135deg, #005bbf 0%, #1a73e8 100%);
  box-shadow: 0 18px 34px rgba(0, 91, 191, 0.28);
  z-index: 11;
}

.bottom-nav {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-radius: 1.6rem;
  box-shadow: var(--shadow-soft);
}

.nav-item {
  border-radius: 1.1rem;
  padding: 0.75rem 0.35rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-mark {
  font-size: 1rem;
  line-height: 1;
}

.sheet {
  position: fixed;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 40;
}

.sheet.open {
  opacity: 1;
  pointer-events: auto;
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(24, 28, 32, 0.4);
  backdrop-filter: blur(6px);
}

.sheet-panel {
  position: relative;
  max-height: 92vh;
  overflow: auto;
  border-radius: 2rem 2rem 0 0;
  background: var(--surface-lowest);
  padding: 1.1rem 1rem 1.25rem;
  transform: translateY(1.5rem);
  transition: transform 0.22s ease;
}

.sheet.open .sheet-panel {
  transform: translateY(0);
}

.sheet-panel-lg {
  padding-bottom: 1.5rem;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sheet-header h3 {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.2rem;
}

.sheet-header p {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.sheet-close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface-low);
  color: var(--text);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.kind-toggle {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kind-chip {
  padding: 0.95rem 0.75rem;
  border-radius: 1.15rem;
  background: var(--surface-low);
  color: var(--text-soft);
  font-weight: 700;
}

.kind-chip.active {
  background: var(--surface-lowest);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(0, 91, 191, 0.18), var(--shadow-soft);
}

.amount-panel {
  padding: 1.4rem 1rem 1.3rem;
  text-align: center;
}

.amount-prefix {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 2rem;
  color: var(--tertiary);
}

.amount-panel strong {
  display: inline-block;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(3rem, 12vw, 4.4rem);
  color: var(--tertiary);
  line-height: 1;
  margin-left: 0.15rem;
}

.amount-panel p {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

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

.field span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-hint {
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.92rem;
  margin: 0.2rem 0 1rem;
}

.keypad {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.keypad-key {
  min-height: 4rem;
  border-radius: 1.25rem;
  background: var(--surface-low);
  color: var(--text);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
}

.keypad-key-muted {
  color: var(--text-soft);
}

.sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 1rem;
}

.ghost-action {
  padding: 1rem 1.2rem;
  color: var(--text-soft);
  font-weight: 700;
}

.primary-button,
.success-button,
.danger-button {
  padding: 1rem 1.2rem;
  color: white;
}

.primary-button {
  flex: 1;
  background: linear-gradient(135deg, #005bbf 0%, #1a73e8 100%);
}

.danger-button {
  background: linear-gradient(135deg, #b51712 0%, #d73f2a 100%);
}

.success-button {
  background: linear-gradient(135deg, #006e2c 0%, #14994b 100%);
}

.compact-panel {
  padding: 1rem;
}

.hidden {
  display: none !important;
}

.balance-card {
  border-radius: 1.7rem;
  padding: 1.3rem;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(241, 244, 250, 1));
  box-shadow: inset 0 0 0 1px var(--outline-soft);
}

.balance-card strong {
  display: block;
  margin-top: 0.45rem;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1;
}

.dual-action-bar {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 24%);
}

.checkbox-stack {
  display: grid;
  gap: 0.7rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: var(--surface-low);
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.empty-state {
  padding: 1.35rem;
  border-radius: 1.4rem;
  background: var(--surface-lowest);
  color: var(--text-soft);
  line-height: 1.65;
  box-shadow: inset 0 0 0 1px var(--outline-soft);
}

.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 6rem;
  display: grid;
  gap: 0.7rem;
  z-index: 60;
}

.toast {
  min-width: 15rem;
  max-width: 22rem;
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  color: white;
  background: rgba(24, 28, 32, 0.92);
  box-shadow: var(--shadow-soft);
  animation: rise 0.2s ease;
}

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

@media (min-width: 720px) {
  .site-shell {
    padding: 2rem;
  }

  .website-shell {
    padding: 2rem;
  }

  .website-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    align-items: stretch;
  }

  .website-stat-grid,
  .website-feature-grid,
  .website-workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .metric-grid,
  .report-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .report-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .sheet {
    place-items: center;
  }

  .sheet-panel,
  .sheet-panel-lg {
    width: min(44rem, calc(100vw - 2rem));
    max-height: 90vh;
    border-radius: 2rem;
  }
}

@media (min-width: 1100px) {
  .site-shell {
    grid-template-columns: minmax(18rem, 0.92fr) minmax(24rem, 1.08fr);
    align-items: stretch;
  }

  .website-main {
    max-width: 1280px;
    margin: 0 auto;
  }

  .website-topbar {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  .desktop-panel {
    display: grid;
    gap: 1rem;
  }

  .app-frame {
    min-height: calc(100vh - 4rem);
  }
}

@media (max-width: 719px) {
  .site-shell {
    padding: 0;
  }

  .website-shell {
    padding: 1rem;
  }

  .website-topbar,
  .website-actions,
  .website-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .app-frame {
    min-height: 100vh;
    border-radius: 0;
  }

  .install-banner {
    margin-top: 0.25rem;
  }

  .field-grid-two,
  .group-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Auth sub-actions (resend code / back to login) ──────────── */
.auth-sub-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.1rem;
}

.auth-sub-link {
  padding: 0.4rem 0.2rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 600;
}

.auth-sub-link:hover {
  color: var(--primary);
}

/* ── Disabled button state ────────────────────────────────────── */
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

