/* Apple HIG / iOS Design System for 简账 PWA */

:root {
  --bg-grouped: #F2F2F7;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-fill: rgba(120, 120, 128, 0.12);
  --bg-fill-strong: rgba(120, 120, 128, 0.20);
  --bg-glass: rgba(249, 249, 251, 0.82);
  --bg-key: #FFFFFF;
  --bg-key-alt: #E5E5EA;
  --bg-keypad: #F2F2F7;

  --text-primary: #000000;
  --text-secondary: #6C6C70;
  --text-tertiary: #AEAEB2;

  --separator: rgba(60, 60, 67, 0.12);
  --accent: #007AFF;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --red: #FF3B30;
  --green: #34C759;
  --orange: #FF9500;

  --radius-card: 16px;
  --radius-sheet: 24px;
  --radius-key: 12px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-key: 0 1px 0 rgba(0, 0, 0, 0.12);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-height: 60px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-grouped: #000000;
    --bg-card: #1C1C1E;
    --bg-elevated: #2C2C2E;
    --bg-fill: rgba(120, 120, 128, 0.24);
    --bg-fill-strong: rgba(120, 120, 128, 0.36);
    --bg-glass: rgba(28, 28, 30, 0.82);
    --bg-key: #2C2C2E;
    --bg-key-alt: #3A3A3C;
    --bg-keypad: #141416;

    --text-primary: #FFFFFF;
    --text-secondary: #98989F;
    --text-tertiary: #636366;

    --separator: rgba(84, 84, 88, 0.52);
    --accent: #0A84FF;
    --accent-soft: rgba(10, 132, 255, 0.20);
    --red: #FF453A;
    --green: #30D158;
    --orange: #FF9F0A;

    --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.35);
    --shadow-key: 0 1px 0 rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --bg-grouped: #000000;
  --bg-card: #1C1C1E;
  --bg-elevated: #2C2C2E;
  --bg-fill: rgba(120, 120, 128, 0.24);
  --bg-fill-strong: rgba(120, 120, 128, 0.36);
  --bg-glass: rgba(28, 28, 30, 0.82);
  --bg-key: #2C2C2E;
  --bg-key-alt: #3A3A3C;
  --bg-keypad: #141416;

  --text-primary: #FFFFFF;
  --text-secondary: #98989F;
  --text-tertiary: #636366;

  --separator: rgba(84, 84, 88, 0.52);
  --accent: #0A84FF;
  --accent-soft: rgba(10, 132, 255, 0.20);
  --red: #FF453A;
  --green: #30D158;
  --orange: #FF9F0A;

  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.35);
  --shadow-key: 0 1px 0 rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-grouped);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button, input, select {
  font-family: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.hidden {
  display: none !important;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* App Shell */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-grouped);
  position: relative;
}

@media (min-width: 520px) {
  body {
    background: color-mix(in srgb, var(--bg-grouped) 92%, var(--text-primary) 8%);
  }
  .app-shell {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  }
}

/* Sticky Frosted Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(12px + var(--safe-top)) 18px 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 0.5px solid var(--separator);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-fill);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background 0.15s ease;
}

.icon-pill-btn:active {
  transform: scale(0.92);
  background: var(--bg-fill-strong);
}

.icon-pill-btn svg {
  width: 17px;
  height: 17px;
}

/* Period Switcher */
.period-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-fill);
  border-radius: 999px;
  padding: 3px 6px;
}

.period-nav button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.period-nav button:active {
  background: var(--bg-fill-strong);
}

.period-nav button svg {
  width: 16px;
  height: 16px;
}

.period-label {
  font-size: 14px;
  font-weight: 600;
  padding: 0 4px;
  white-space: nowrap;
}

/* Search Bar */
.search-bar-wrap {
  margin-top: 10px;
  position: relative;
}

.search-input {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--bg-fill);
  padding: 0 12px 0 34px;
  font-size: 15px;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  pointer-events: none;
}

/* Main Content */
.app-main {
  flex: 1;
  padding: 16px 16px calc(var(--tab-height) + var(--safe-bottom) + 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

/* Hero Summary Card */
.summary-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-main-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.summary-main-value {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 2px;
  line-height: 1.1;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 0.5px solid var(--separator);
}

.summary-sub-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.summary-sub-value {
  font-size: 17px;
  font-weight: 600;
  margin-top: 2px;
}

/* Budget Bar */
.budget-box {
  padding-top: 12px;
  border-top: 0.5px solid var(--separator);
  cursor: pointer;
}

.budget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.budget-track {
  height: 7px;
  border-radius: 999px;
  background: var(--bg-fill);
  overflow: hidden;
}

.budget-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.budget-fill.warn { background: var(--orange); }
.budget-fill.over { background: var(--red); }

/* Apple Segmented Control */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--bg-fill);
  padding: 2px;
  border-radius: 9px;
  gap: 2px;
}

.segmented button {
  height: 30px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.segmented button.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Inset Grouped List */
.section-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.list-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  position: relative;
  transition: background 0.12s ease;
  width: 100%;
  text-align: left;
}

.list-row:active {
  background: var(--bg-fill);
}

.list-row + .list-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 62px;
  right: 0;
  height: 0.5px;
  background: var(--separator);
}

.list-row.plain + .list-row.plain::before {
  left: 16px;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-circle svg {
  width: 19px;
  height: 19px;
}

.row-body {
  flex: 1;
  min-width: 0;
}

.row-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-right {
  text-align: right;
  flex-shrink: 0;
}

.row-amount {
  font-size: 16px;
  font-weight: 600;
}

.row-amount.expense { color: var(--text-primary); }
.row-amount.income { color: var(--green); }
.row-amount.transfer { color: var(--accent); }

.row-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.pill-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.pill-action-btn.primary {
  background: var(--accent);
  color: #FFFFFF;
}

.pill-action-btn:active {
  transform: scale(0.96);
}

/* Charts */
.chart-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 16px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.rank-item + .rank-item {
  border-top: 0.5px solid var(--separator);
}

.rank-bar-track {
  height: 5px;
  border-radius: 999px;
  background: var(--bg-fill);
  margin-top: 6px;
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  border-radius: 999px;
}

/* Bottom Tab Bar */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 8px 8px max(10px, calc(var(--safe-bottom) - 10px));
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 0.5px solid var(--separator);
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  z-index: 30;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.15s ease;
}

.tab-item.active {
  color: var(--accent);
}

.tab-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.tab-icon svg {
  width: 22px;
  height: 22px;
}

.tab-label {
  font-size: 10px;
  font-weight: 500;
}

.tab-add-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
  transition: transform 0.14s cubic-bezier(0.32, 0.72, 0, 1);
}

.tab-add-btn:active {
  transform: scale(0.91);
}

/* Bottom Sheet (Add / Edit Transaction) */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.sheet-backdrop.open {
  opacity: 1;
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  background: var(--bg-card);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}

.bottom-sheet.open {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: var(--bg-fill-strong);
  margin: 8px auto 4px;
  flex-shrink: 0;
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 10px;
  gap: 10px;
}

.sheet-top .segmented {
  flex: 1;
  max-width: 220px;
}

.sheet-text-btn {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  padding: 4px 6px;
}

.sheet-text-btn.danger {
  color: var(--red);
}

/* Amount Display */
.amount-display {
  padding: 4px 18px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--separator);
}

.amount-currency {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary);
}

.amount-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amount-preview {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  min-height: 16px;
}

/* Category Grid inside Sheet */
.sheet-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  min-height: 150px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 6px;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.cat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-fill);
  color: var(--text-secondary);
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.cat-icon-box svg {
  width: 20px;
  height: 20px;
}

.cat-item.selected .cat-icon-box {
  transform: scale(1.06);
  color: #FFFFFF;
}

.cat-name {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.cat-item.selected .cat-name {
  color: var(--text-primary);
  font-weight: 600;
}

/* Transfer Picker */
.transfer-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 2px;
}

.transfer-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transfer-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.account-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-fill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.15s ease, color 0.15s ease;
}

.chip.active {
  background: var(--accent);
  color: #FFFFFF;
}

/* Quick Account Strip above Meta Strip */
.acc-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px 2px;
  background: var(--bg-keypad);
  border-top: 0.5px solid var(--separator);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.acc-strip::-webkit-scrollbar {
  display: none;
}

.acc-chip {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--bg-key);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-key);
  transition: background 0.14s ease, color 0.14s ease;
}

.acc-chip.active {
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
}

/* Quick Meta Strip above Keypad */
.meta-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 8px;
  background: var(--bg-keypad);
}

.meta-pill {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bg-key);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: var(--shadow-key);
  flex-shrink: 0;
}

.meta-date-input {
  position: relative;
}

.meta-date-input input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.meta-note-input {
  flex: 1;
  min-width: 60px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--bg-key);
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  box-shadow: var(--shadow-key);
}

/* Custom Calculator Keypad */
.keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 6px 10px calc(10px + var(--safe-bottom));
  background: var(--bg-keypad);
}

.key-btn {
  height: 48px;
  border-radius: var(--radius-key);
  background: var(--bg-key);
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-key);
  user-select: none;
  transition: transform 0.08s ease, background 0.1s ease;
}

.key-btn:active {
  transform: scale(0.95);
  background: var(--bg-key-alt);
}

.key-btn.alt {
  background: var(--bg-key-alt);
  font-size: 18px;
  font-weight: 600;
}

.key-btn.confirm {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
}

.key-btn.confirm:active {
  opacity: 0.85;
}

.key-btn svg {
  width: 22px;
  height: 22px;
}

/* Modal Dialog (iOS Alert / Sheet style) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 60;
}

.modal-dialog {
  position: fixed;
  left: 50%;
  top: calc(18px + var(--safe-top));
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 360px;
  max-height: calc(100dvh - 36px - var(--safe-top));
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 20px;
  z-index: 70;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 520px) {
  .modal-dialog {
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.btn-text-danger {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 59, 48, 0.08);
}

.btn-text-danger:active {
  background: rgba(255, 59, 48, 0.16);
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.modal-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.45;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--separator);
  background: var(--bg-grouped);
  padding: 0 12px;
  font-size: 16px;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.btn-secondary {
  height: 42px;
  border-radius: 11px;
  background: var(--bg-fill);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.btn-primary {
  height: 42px;
  border-radius: 11px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
}

.btn-danger {
  height: 42px;
  border-radius: 11px;
  background: var(--red);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
}

/* Color & Icon pickers inside modal */
.picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.color-dot.active {
  border-color: var(--text-primary);
  transform: scale(1.1);
}

.icon-choice {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-fill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.icon-choice.active {
  background: var(--accent);
  color: #FFFFFF;
}

.icon-choice svg {
  width: 18px;
  height: 18px;
}

/* Toast */
.toast {
  position: fixed;
  top: calc(16px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 28, 30, 0.92);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}
