:root {
  --bg: #0a0a0f;
  --surface: #131318;
  --surface-low: #16161d;
  --surface-mid: #1f1f25;
  --surface-high: #2a292f;
  --text: #e4e1e9;
  --muted: #a7a3ad;
  --muted-strong: #e2bdc7;
  --primary: #ff2d95;
  --primary-soft: #ffb0ca;
  --primary-dark: #8d004e;
  --cyan: #00f4fe;
  --cyan-soft: #63f7ff;
  --purple: #a178ff;
  --danger: #ffb4ab;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --glass: rgba(22, 22, 29, 0.72);
  --shadow-pink: 0 0 24px rgba(255, 45, 149, 0.24);
  --shadow-cyan: 0 0 24px rgba(0, 244, 254, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 45, 149, 0.12), transparent 28%),
    radial-gradient(circle at 100% 12%, rgba(0, 244, 254, 0.11), transparent 26%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 75%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.bg-glow {
  position: fixed;
  width: min(440px, 55vw);
  height: min(440px, 55vw);
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(110px);
  opacity: 0.12;
}

.bg-glow-pink {
  top: -12%;
  left: -16%;
  background: var(--primary);
}

.bg-glow-cyan {
  right: -18%;
  bottom: -14%;
  background: var(--cyan);
}

.app-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 96px 20px 132px;
}

[data-global-feedback] {
  margin-bottom: 18px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(10, 10, 15, 0.82);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 22px rgba(255, 45, 149, 0.14);
  backdrop-filter: blur(22px);
}

.topbar-inner {
  width: 100%;
  max-width: 560px;
  height: 66px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrap,
.row,
.row-between,
.participant-summary,
.inline-actions,
.bottom-nav,
.nav-wrap,
.hero-card-footer,
.ranking-row,
.chip-row,
.split-row {
  display: flex;
}

.row,
.participant-summary,
.inline-actions,
.chip-row,
.split-row {
  align-items: center;
}

.row-between,
.hero-card-footer,
.ranking-row {
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.avatar,
.avatar-sm,
.initial-avatar,
.rank-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.avatar {
  width: 38px;
  height: 38px;
  color: var(--cyan-soft);
  background:
    radial-gradient(circle at 70% 20%, rgba(0, 244, 254, 0.28), transparent 34%),
    rgba(31, 31, 37, 0.96);
  border: 1px dashed rgba(0, 244, 254, 0.36);
  box-shadow: var(--shadow-cyan);
}

.avatar-sm {
  width: 32px;
  height: 32px;
  color: var(--cyan-soft);
  background: rgba(0, 244, 254, 0.1);
  border: 1px solid rgba(0, 244, 254, 0.24);
  font-size: 0.74rem;
}

.initial-avatar {
  width: 58px;
  height: 58px;
  font-size: 1.45rem;
  color: var(--primary-soft);
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 45, 149, 0.34), transparent 34%),
    var(--surface-high);
  border: 1px dashed rgba(255, 176, 202, 0.34);
  box-shadow: var(--shadow-pink);
}

.photo-placeholder::after,
.initial-avatar::after,
.rank-avatar::after {
  content: "foto";
  position: absolute;
  right: -7px;
  bottom: -4px;
  padding: 2px 5px;
  border-radius: var(--radius-pill);
  color: var(--bg);
  background: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 244, 254, 0.42);
}

.has-photo {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.compact-avatar {
  width: 48px;
  height: 48px;
  font-size: 1rem;
  box-shadow: none;
}

.purple-avatar {
  color: #d1bcff;
  background: rgba(161, 120, 255, 0.12);
  border-color: rgba(161, 120, 255, 0.28);
}

.cyan-avatar {
  color: var(--cyan-soft);
  background: rgba(0, 244, 254, 0.12);
}

.brand {
  margin: 0;
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 45, 149, 0.46);
}

.topbar-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-title,
.display-title,
.section-title,
.money-xl,
.money-lg,
.money-md,
.cta-bar,
.participant-name,
.modal-title {
  font-family: "Space Grotesk", sans-serif;
}

.display-title {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 13vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.page-subtitle,
.muted,
.participant-role,
.helper-text,
.demo-note {
  color: var(--muted);
}

.page-subtitle,
.helper-text,
.demo-note {
  line-height: 1.55;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.gradient-text,
.gradient-money {
  color: transparent;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-hero {
  min-height: 230px;
}

.home-grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.home-grid > *,
.mesa-grid > *,
.payment-grid > *,
.profile-grid > * {
  min-width: 0;
}

.home-support {
  order: 2;
}

.home-table-section {
  order: 3;
}

.search-wrap {
  position: relative;
  margin: 24px 0 30px;
}

.search-wrap .material-symbols-outlined {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 244, 254, 0.65);
  transition: color 0.18s ease;
}

.search-wrap:focus-within .material-symbols-outlined {
  color: var(--cyan);
}

.search-box,
.text-input,
.pix-box {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;
}

.search-box {
  min-height: 58px;
  padding: 16px 18px 16px 52px;
  color: var(--text);
  background: rgba(22, 22, 29, 0.86);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.search-box:focus,
.text-input:focus {
  border-color: rgba(0, 244, 254, 0.55);
  box-shadow: 0 0 18px rgba(0, 244, 254, 0.12);
}

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

.section-title {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-section {
  display: grid;
  gap: 0;
}

.card,
.hero-card,
.participant-card,
.ranking-card,
.modal-card {
  min-width: 0;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.card,
.hero-card,
.ranking-card {
  padding: 22px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 244, 254, 0.24);
  box-shadow: var(--shadow-cyan), inset 0 0 18px rgba(0, 244, 254, 0.06);
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(0, 244, 254, 0.18);
  filter: blur(70px);
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-label,
.field-label,
.section-heading {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.money-xl {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 13vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.money-lg {
  margin: 0;
  font-size: clamp(2.6rem, 10vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.money-md {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 700;
}

.compact-money {
  color: var(--cyan-soft);
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(0, 244, 254, 0.32);
}

.stack {
  display: grid;
  gap: 16px;
}

.stack-sm {
  display: grid;
  gap: 10px;
}

.vibe-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
}

.vibe-icon {
  color: var(--primary);
  font-size: 2.4rem;
  filter: drop-shadow(0 0 12px rgba(255, 45, 149, 0.38));
}

.card-table {
  position: relative;
  overflow: hidden;
  border-left: 6px solid var(--primary);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card-table:nth-child(even) {
  border-left-color: var(--cyan);
}

.card-table:active,
.card-table:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-pink), 0 18px 44px rgba(0, 0, 0, 0.34);
}

.card-table::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--card-glow, rgba(255, 45, 149, 0.16));
  filter: blur(70px);
}

.table-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.table-name {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
}

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

.table-total span {
  display: block;
  margin-bottom: 6px;
  color: rgba(167, 163, 173, 0.82);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-divider {
  height: 1px;
  margin: 4px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.badge,
.status-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-family: "Space Grotesk", sans-serif;
}

.badge {
  padding: 8px 12px;
  color: var(--cyan);
  background: rgba(0, 244, 254, 0.08);
  border: 1px solid rgba(0, 244, 254, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill {
  padding: 9px 13px;
  color: var(--primary-soft);
  background: rgba(255, 45, 149, 0.1);
  border: 1px solid rgba(255, 45, 149, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill.error {
  color: var(--danger);
  background: rgba(255, 180, 171, 0.08);
  border-color: rgba(255, 180, 171, 0.2);
}

.status-pill.info {
  color: #d1bcff;
  background: rgba(161, 120, 255, 0.1);
  border-color: rgba(161, 120, 255, 0.2);
}

.status-pill.success {
  color: var(--cyan-soft);
  background: rgba(0, 244, 254, 0.08);
  border-color: rgba(0, 244, 254, 0.22);
}

[data-form-feedback] {
  margin-bottom: 18px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.mini-pill {
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-pill.success {
  color: var(--cyan-soft);
  background: rgba(0, 244, 254, 0.1);
}

.action-btn,
.primary-btn,
.secondary-btn,
.ghost-btn,
.chip-btn,
.icon-btn,
.fab,
.cta-bar,
.nav-item,
.copy-btn {
  border: 0;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.action-btn:active,
.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.chip-btn:active,
.icon-btn:active,
.fab:active,
.cta-bar:active,
.nav-item:active,
.copy-btn:active {
  transform: scale(0.97);
}

.action-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.action-btn.is-enter,
.primary-btn,
.fab,
.cta-bar {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #b90067 100%);
  box-shadow: 0 0 24px rgba(255, 45, 149, 0.34);
}

.primary-btn {
  min-height: 56px;
  padding: 15px 20px;
  border-radius: var(--radius);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.secondary-btn {
  min-height: 52px;
  padding: 14px 18px;
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(0, 244, 254, 0.07);
  border: 1px solid rgba(0, 244, 254, 0.24);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.ghost-btn,
.chip-btn {
  min-height: 46px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chip-btn.active {
  color: var(--primary-soft);
  background: rgba(255, 45, 149, 0.12);
  border-color: rgba(255, 45, 149, 0.28);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--primary);
  background: transparent;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.fab-wrap {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 30;
}

.fab {
  max-width: calc(100vw - 32px);
  min-height: 56px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 28;
  justify-content: center;
  padding: 10px 14px 12px;
  background: rgba(10, 10, 15, 0.9);
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: 0 -4px 22px rgba(0, 244, 254, 0.12);
  backdrop-filter: blur(24px);
}

.profile-grid {
  display: grid;
  gap: 16px;
}

.profile-hero-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  font-size: 1.5rem;
}

.profile-upload {
  min-height: 58px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(0, 244, 254, 0.07);
  border: 1px dashed rgba(0, 244, 254, 0.28);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.profile-upload input {
  display: none;
}

.nav-wrap {
  width: min(100%, 560px);
  justify-content: space-around;
  gap: 8px;
}

.nav-item {
  min-width: 58px;
  min-height: 58px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--radius-sm);
  color: #5f5b66;
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-item.active,
.nav-item:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 244, 254, 0.7);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  background: rgba(6, 6, 10, 0.78);
  backdrop-filter: blur(12px);
  transition: opacity 0.2s ease;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 30px 22px 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 45, 149, 0.18), transparent 30%),
    rgba(22, 22, 29, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 42px rgba(0, 0, 0, 0.44), var(--shadow-pink);
}

.modal-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 700;
}

.modal-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.text-input,
.pix-box {
  min-height: 54px;
  padding: 15px 17px;
  color: var(--text);
  background: rgba(14, 14, 19, 0.92);
  border-radius: var(--radius);
}

select.text-input {
  appearance: none;
  -webkit-appearance: none;
}

.text-input::placeholder {
  color: rgba(167, 163, 173, 0.58);
}

.pix-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: rgba(0, 244, 254, 0.2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.linkish {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-weight: 600;
}

.participant-card {
  overflow: hidden;
  border-left: 4px solid var(--cyan);
}

.participant-card.expanded {
  border-left-color: var(--primary);
  box-shadow: var(--shadow-pink), inset 0 0 12px rgba(255, 45, 149, 0.06);
}

.participant-head {
  width: 100%;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.participant-body {
  display: none;
  padding: 0 16px 16px;
}

.participant-card.expanded .participant-body {
  display: block;
}

.participant-name {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 600;
}

.participant-name.smaller {
  font-size: 1.18rem;
}

.line-items {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}

.line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: rgba(14, 14, 19, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.line-item strong {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.line-item-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.98rem;
}

.line-item-name .material-symbols-outlined {
  color: var(--cyan);
}

.toolbar-sticky {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.toolbar-row {
  display: flex;
  gap: 12px;
}

.toolbar-row .primary-btn,
.toolbar-row .secondary-btn {
  flex: 1;
}

.screen-header {
  margin-bottom: 24px;
}

.screen-header.center {
  text-align: center;
}

.hero-amount,
.amount-stack {
  margin-bottom: 20px;
}

.toggle {
  display: flex;
  gap: 8px;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 19, 0.92);
}

.toggle button {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.toggle button.active {
  color: #002021;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 244, 254, 0.24);
}

.split-panel {
  display: none;
}

.split-panel.show {
  display: block;
}

.split-card {
  padding: 16px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: rgba(31, 31, 37, 0.72);
  border: 1px solid rgba(0, 244, 254, 0.16);
}

.split-row {
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
}

.split-row + .split-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-card {
  border-left: 4px solid rgba(0, 244, 254, 0.42);
}

.ranking-card.rank-1,
.ranking-card.rank-2 {
  border-left-color: var(--cyan);
}

.ranking-card.pending {
  border-left-color: var(--primary);
  opacity: 0.86;
}

.rank-avatar {
  width: 50px;
  height: 50px;
  color: var(--cyan-soft);
  background: rgba(0, 244, 254, 0.1);
  border: 1px dashed rgba(0, 244, 254, 0.34);
}

.rank-number {
  position: absolute;
  top: -5px;
  right: -7px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #002021;
  background: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
}

.cta-bar {
  width: 100%;
  min-height: 64px;
  border-radius: var(--radius);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.copy-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  color: #002021;
  background: var(--cyan);
}

.hide {
  display: none !important;
}

@media (max-width: 520px) {
  .display-title {
    font-size: 2.65rem;
    line-height: 1.02;
  }

  .home-hero {
    min-height: auto;
  }

  .card,
  .hero-card,
  .ranking-card {
    padding: 20px;
  }

  .fab {
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .row-between {
    gap: 12px;
  }

  .table-total {
    min-width: 118px;
  }

  .toolbar-row {
    flex-direction: column;
  }
}

@media (min-width: 760px) {
  .app-shell {
    max-width: 980px;
    padding-top: 104px;
  }

  .topbar-inner,
  .nav-wrap {
    max-width: 980px;
  }

  .home-grid,
  .mesa-grid,
  .payment-grid {
    display: grid;
    gap: 24px;
    align-items: start;
  }

  .home-grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "hero support"
      "tables support";
  }

  .home-hero {
    grid-area: hero;
  }

  .home-support {
    grid-area: support;
    order: initial;
  }

  .home-table-section {
    grid-area: tables;
    order: initial;
  }

  .mesa-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .payment-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .modal {
    place-items: center;
  }
}
