/* centKoala app simulation — tokens aligned with AppColors / FluidThemeExtension (light) */

:root {
  --phone-emulator-width: 390px;
  --phone-emulator-height: 845px;
  --device-frame-metal: linear-gradient(160deg, #b8bcc2 0%, #7a8088 22%, #3a3f46 55%, #6d737b 82%, #9aa0a8 100%);
  --phone-mock-zoom: 1.22;
  --watch-shell-size: 338px;
  --watch-shell-radius: 36px;
  --watch-screen-radius: 24px;
  --ck-emerald: #004d40;
  --ck-emerald-dark: #003d33;
  --ck-emerald-tint: #e8f3f1;
  --ck-page: #f7f9fa;
  --ck-surface: #ffffff;
  --ck-border: #d1d9e0;
  --ck-border-subtle: #e8edf1;
  --ck-text-primary: #1a2332;
  --ck-text-secondary: #4e5d6c;
  --ck-text-muted: #616161;
  --ck-settled-green: #117a65;
  --ck-nav-height: 72px;
  --ck-radius-card: 16px;
  --ck-radius-tile: 12px;
}

.app-scaffold {
  background-color: var(--ck-page) !important;
}

.app-card {
  background: var(--ck-surface);
  border: 1px solid var(--ck-border-subtle);
  border-radius: var(--ck-radius-card);
}

.app-me-card {
  background: var(--ck-surface);
  border: 1px solid var(--ck-border-subtle);
  border-radius: var(--ck-radius-tile);
}

.settle-net-card {
  background: var(--ck-emerald-tint);
  border-radius: var(--ck-radius-card);
  color: var(--ck-emerald-dark);
}

.settle-net-card .settled-icon {
  color: var(--ck-settled-green);
  font-size: 18px;
}

.settle-net-card .settled-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--ck-emerald-dark);
}

.app-tab-bar {
  background: var(--ck-page);
  border-bottom: 1px solid var(--ck-border-subtle);
}

.app-tab-bar .settle-nav-btn,
.app-tab-bar .deals-nav-btn {
  border-bottom: 3px solid transparent;
  color: var(--ck-text-muted);
  font-weight: 600;
  font-size: 12px;
}

.app-tab-bar .settle-nav-btn.active,
.app-tab-bar .deals-nav-btn.active {
  border-bottom-color: var(--ck-emerald);
  color: var(--ck-emerald);
}

.app-tab-bar .settle-nav-icon {
  font-size: 22px;
}

.app-tab-bar .settle-nav-btn.active .settle-nav-icon,
.app-tab-bar .settle-nav-btn.active .settle-nav-text,
.app-tab-bar .deals-nav-btn.active .deals-nav-text {
  color: var(--ck-emerald);
}

.app-tab-bar .settle-nav-btn:not(.active) .settle-nav-icon,
.app-tab-bar .settle-nav-btn:not(.active) .settle-nav-text,
.app-tab-bar .deals-nav-btn:not(.active) .deals-nav-text {
  color: var(--ck-text-muted);
}

/* Material 3 NavigationBar — in flex column (not overlay) so it does not steal taps from main */
.app-nav {
  height: var(--ck-nav-height);
  background: var(--ck-surface);
  border-top: 1px solid var(--ck-border-subtle);
  box-shadow: 0 -1px 0 rgba(26, 35, 50, 0.04);
  padding-bottom: env(safe-area-inset-bottom, 0);
  flex-shrink: 0;
}

#app-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#main-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

#main-content .main-tab {
  min-height: 0;
}

#main-content #tab-settle {
  min-height: 100%;
}

#tab-settle .settle-sub-view {
  min-height: 0;
  padding-bottom: 4.75rem;
}

#tab-settle #fab-container {
  position: absolute;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 20;
  pointer-events: none;
}

#tab-settle #fab-container .app-fab {
  pointer-events: auto;
}

#main-content .sub-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#bottom-nav.hidden {
  display: none !important;
}

.app-nav-inner {
  display: flex;
  align-items: stretch;
  height: 100%;
  padding: 0 4px 6px;
}

.app-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  padding-top: 6px;
  color: var(--ck-text-muted);
  -webkit-tap-highlight-color: transparent;
}

.app-nav-item .nav-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
}

.app-nav-item.active {
  color: var(--ck-emerald);
}

.app-nav-item.active .nav-label {
  font-weight: 600;
}

.app-nav-item .nav-indicator {
  position: absolute;
  top: 4px;
  width: 56px;
  height: 32px;
  border-radius: 16px;
  background: transparent;
  transition: background 0.15s ease;
  z-index: 0;
}

.app-nav-item.active .nav-indicator {
  background: rgba(0, 77, 64, 0.12);
}

.app-nav-item .nav-icon {
  position: relative;
  z-index: 1;
  font-size: 24px;
}

.app-fab {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ck-emerald);
  color: #fff;
  border: none;
  box-shadow:
    0 4px 8px rgba(0, 77, 64, 0.24),
    0 2px 4px rgba(26, 35, 50, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app-fab .material-symbols-rounded {
  font-size: 26px;
}

.text-app-primary {
  color: var(--ck-text-primary);
}

.text-app-secondary {
  color: var(--ck-text-secondary);
}

.text-app-muted {
  color: var(--ck-text-muted);
}

.wishlist-tile {
  display: block;
  width: 100%;
  border-radius: var(--ck-radius-card);
  border: 1px solid var(--ck-border-subtle);
  background: var(--ck-surface);
  overflow: hidden;
}

.deals-sub-view.hidden {
  display: none !important;
}

.main-tab.hidden {
  display: none !important;
}

.connection-row {
  border-bottom: 1px solid var(--ck-border-subtle);
}

.fo-summary-card {
  background: var(--ck-emerald-tint);
  border-radius: var(--ck-radius-card);
  color: var(--ck-emerald-dark);
}

body.dark .app-nav {
  background: #2d2d2d;
  border-color: #404040;
}

body.dark .app-scaffold {
  background-color: #1a1a1a !important;
}

/* —— Deals / wishlist (mirrors GlassCard + M3 chips) —— */

.expansion-header-wrap {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 8px 8px 4px;
  width: 100%;
}

.expansion-header {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 4px 8px 12px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.expansion-chevron {
  flex-shrink: 0;
  font-size: 24px;
  margin-top: 2px;
}

.expansion-header-icon {
  color: var(--ck-emerald);
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

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

.expansion-header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ck-text-primary);
  line-height: 1.35;
}

.expansion-header-sub {
  font-size: 14px;
  color: var(--ck-text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.expansion-header-summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--ck-emerald);
  margin-top: 10px;
}

.expansion-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.expansion-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ck-text-muted);
  border-radius: 8px;
  cursor: pointer;
}

.expansion-icon-btn .material-symbols-rounded {
  font-size: 22px;
}

.expansion-body-inner {
  padding: 0 12px 12px;
}

.ck-filled-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ck-surface);
  border: 1px solid var(--ck-border-subtle);
  border-radius: 14px;
  padding: 4px 4px 4px 12px;
  min-height: 48px;
}

.ck-filled-field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
  min-width: 0;
}

.ck-filled-field .field-prefix {
  color: var(--ck-text-muted);
  font-size: 20px;
}

.ck-btn-search {
  flex-shrink: 0;
  background: var(--ck-emerald-tint);
  color: var(--ck-emerald);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
}

.ck-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ck-chip-row::-webkit-scrollbar {
  display: none;
}

.ck-chip {
  flex-shrink: 0;
  height: 34px;
  min-width: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--ck-border);
  background: #eceff1;
  font-size: 12px;
  font-weight: 600;
  color: var(--ck-text-secondary);
  cursor: pointer;
}

.ck-chip--active {
  border: 2px solid var(--ck-emerald);
  background: #e0f2f1;
  color: var(--ck-emerald);
}

.ck-retailer {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  border: 1px solid var(--ck-border);
  cursor: pointer;
  flex-shrink: 0;
}

.ck-retailer--active {
  border-width: 2.5px;
  border-color: var(--ck-emerald);
  box-shadow: 0 1px 3px rgba(0, 77, 64, 0.15);
}

.ck-retailer-coles {
  background: #e31e24;
}

.ck-retailer-woolworths {
  background: #125740;
}

.ck-retailer-aldi {
  background: #00457c;
  font-size: 9px;
}

.ck-retailer-jb {
  background: #ffcc00;
  color: #1a2332;
  font-size: 10px;
}

.ck-retailer-tgg {
  background: #003da5;
  font-size: 9px;
}

.ck-retailer-hn {
  background: #fff;
  color: #c8102e;
  border-color: #c8102e;
  font-size: 9px;
}

.ck-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ck-toolbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: var(--ck-emerald);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 6px;
  cursor: pointer;
}

.ck-toolbar-btn .material-symbols-rounded {
  font-size: 22px;
}

.grocery-product-card {
  border-radius: 12px;
  border: 1px solid rgba(0, 77, 64, 0.14);
  background: linear-gradient(180deg, rgba(232, 243, 241, 0.65) 0%, #fff 48%);
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}

.grocery-product-card .grocery-remove {
  position: absolute;
  top: 8px;
  right: 8px;
}

.grocery-product-card__row {
  display: flex;
  gap: 12px;
}

.grocery-product-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ck-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.grocery-store-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ck-text-secondary);
  margin-top: 6px;
}

.grocery-store-line .ck-retailer-sm {
  width: 23px;
  height: 23px;
  font-size: 9px;
  border-radius: 6px;
}

.grocery-savings-strip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(232, 243, 241, 0.6);
  border: 1px solid var(--ck-border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ck-emerald);
}

.ck-disclaimer {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eceff1;
  font-size: 11px;
  color: var(--ck-text-secondary);
  line-height: 1.45;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.ck-disclaimer button {
  color: var(--ck-emerald);
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.tech-inner-card {
  border-radius: 12px;
  border: 1px solid var(--ck-border-subtle);
  background: var(--ck-surface);
  padding: 12px;
  margin-bottom: 10px;
}

.tech-inner-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tech-offer-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 77, 64, 0.14);
  margin-top: 8px;
  text-align: left;
  width: 100%;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.tech-offer-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--ck-page);
  border: 1px solid var(--ck-border-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ck-text-muted);
}

.tech-offer-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--ck-emerald);
}

.ck-btn-filled {
  width: 100%;
  border: none;
  border-radius: 24px;
  background: var(--ck-emerald);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 12px;
}

.ck-btn-outlined {
  width: 100%;
  border: 2px solid var(--ck-emerald);
  border-radius: 24px;
  background: #fff;
  color: var(--ck-emerald);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.ck-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ck-text-secondary);
  margin-bottom: 4px;
}

.ck-select,
.ck-input {
  width: 100%;
  border: 1px solid var(--ck-border);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.ck-select:focus,
.ck-input:focus {
  border-color: var(--ck-emerald);
}

.ck-field-hint {
  font-size: 11px;
  color: var(--ck-text-muted);
  margin-top: 4px;
}

.radar-fuel-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid var(--ck-border);
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 600;
  color: var(--ck-text-muted);
  cursor: pointer;
}

.radar-fuel-chip--active {
  background: rgba(0, 77, 64, 0.14);
  border-color: var(--ck-emerald);
  color: var(--ck-emerald);
}

.radar-station-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ck-border-subtle);
  align-items: flex-start;
}

.radar-station-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--ck-emerald);
  white-space: nowrap;
}

.radar-sync-banner {
  font-size: 11px;
  color: var(--ck-text-secondary);
  padding: 8px 10px;
  border-radius: 8px;
  background: #e3f2fd;
  margin: 8px 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.deals-row-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--ck-border-subtle);
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.deals-row-card:hover {
  border-color: var(--ck-emerald);
}

.suggestion-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: #eceff1;
  margin-top: 6px;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
}

.suggestion-tile:nth-child(even) {
  background: #f5f5f5;
}

/* Me / profile */
.me-outlined-field {
  display: block;
  position: relative;
  border: 1px solid var(--ck-border);
  border-radius: 12px;
  padding: 14px 12px 10px;
  margin-bottom: 12px;
  background: var(--ck-surface);
}

.me-outlined-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ck-text-secondary);
  margin-bottom: 4px;
}

.me-outlined-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ck-emerald);
  background: transparent;
  padding: 0;
}

.me-field-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 4px 0;
}

.me-field-icon {
  color: var(--ck-emerald);
  font-size: 22px;
  margin-top: 2px;
}

.me-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ck-text-muted);
}

.me-field-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ck-emerald);
}

.me-phone-card {
  background: #eceff1;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.me-destructive {
  color: #b3261e;
}

.me-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-screen.hidden {
  display: none !important;
}

/* Me tab bottom sheets — cover phone shell only (#app-shell is position: relative) */
.phone-modal-layer {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.phone-modal-layer:has(.modal:not(.hidden)) {
  pointer-events: auto;
}
.phone-modal-layer .modal {
  position: absolute;
  inset: 0;
}
.phone-modal-layer .modal.hidden {
  display: none !important;
}
.phone-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.phone-modal-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ck-surface);
  border-radius: 28px 28px 0 0;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
}
body.dark .phone-modal-sheet {
  background: #1e2a32;
}

/* Settle Up — Activity filters */
.settle-activity-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.settle-activity-filters::-webkit-scrollbar {
  display: none;
}
.settle-filter-wrap {
  position: relative;
  flex-shrink: 0;
}
.settle-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ck-border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  background: #fff;
  max-width: 11.5rem;
}
.settle-filter-btn--active {
  border-color: var(--ck-emerald);
  color: var(--ck-emerald);
  background: rgba(0, 77, 64, 0.06);
}
.settle-filter-btn--open {
  box-shadow: 0 0 0 2px rgba(0, 77, 64, 0.15);
}
.settle-filter-icon {
  font-size: 22px;
  color: var(--ck-emerald);
  flex-shrink: 0;
}
.settle-filter-btn:not(.settle-filter-btn--active) .settle-filter-icon {
  color: #6b7280;
}
.settle-filter-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.settle-filter-chevron {
  font-size: 18px;
  color: var(--ck-text-muted);
  flex-shrink: 0;
}
.settle-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 220px;
  max-width: min(280px, 88vw);
  background: #fff;
  border: 1px solid var(--ck-border-subtle);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
}
.settle-filter-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ck-text-primary);
}
.settle-filter-option:hover {
  background: var(--ck-page);
}
.settle-filter-option--selected {
  background: rgba(0, 77, 64, 0.06);
  color: var(--ck-emerald);
}

.settle-activity-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--ck-border-subtle);
}
.settle-activity-row:active {
  background: rgba(0, 0, 0, 0.02);
}
.settle-activity-status {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 9999px;
}
.settle-activity-status--paid {
  color: var(--ck-settled-green);
  background: rgba(17, 122, 101, 0.1);
}
.settle-activity-status--open {
  color: #b86b00;
  background: rgba(184, 107, 0, 0.1);
}

.settle-connection-card {
  border: 1px solid var(--ck-border-subtle);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.settle-connection-card--open {
  border-color: rgba(0, 77, 64, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.settle-group-card {
  background: var(--ck-page);
}
.settle-connection-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  text-align: left;
}
.settle-connection-chevron {
  flex-shrink: 0;
}
.settle-connection-panel {
  padding: 0 14px 14px;
  border-top: 1px solid var(--ck-border-subtle);
}
.settle-connection-panel-empty {
  font-size: 13px;
  color: var(--ck-text-muted);
  padding: 12px 0;
}
.settle-connection-ledger {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
}
.settle-connection-ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ck-border-subtle);
}
.settle-connection-ledger-total {
  margin: 0.65rem 0 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ck-border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ck-emerald-dark);
  text-align: right;
}

.settle-connection-ledger-row:last-child {
  border-bottom: none;
}
.settle-connection-settle-all {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ck-emerald);
  background: rgba(0, 77, 64, 0.08);
  border: 1px solid rgba(0, 77, 64, 0.15);
}

/* Product introduction (app product tour) */
.product-tour {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  background: #f8faf8;
  overflow: hidden;
}
.product-tour.hidden {
  display: none !important;
}
.product-tour--goal {
  background: linear-gradient(165deg, #f3eef9 0%, #faf8fc 45%, #f8faf8 100%);
}
.product-tour-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.product-tour-bg::before,
.product-tour-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.product-tour[data-accent='deals'] .product-tour-bg::before {
  width: 220px;
  height: 220px;
  top: 8%;
  left: -12%;
  background: rgba(0, 200, 83, 0.12);
}
.product-tour[data-accent='deals'] .product-tour-bg::after {
  width: 180px;
  height: 180px;
  top: 22%;
  right: -18%;
  background: rgba(171, 71, 188, 0.08);
}
.product-tour[data-accent='settle'] .product-tour-bg::before {
  width: 200px;
  height: 200px;
  top: 6%;
  right: -10%;
  background: rgba(171, 71, 188, 0.14);
}
.product-tour[data-accent='settle'] .product-tour-bg::after {
  width: 160px;
  height: 160px;
  top: 28%;
  left: -14%;
  background: rgba(0, 200, 83, 0.08);
}
.product-tour--goal .product-tour-bg::before {
  width: 240px;
  height: 240px;
  top: -4%;
  left: -20%;
  background: rgba(41, 182, 246, 0.12);
}
.product-tour--goal .product-tour-bg::after {
  width: 200px;
  height: 200px;
  bottom: 18%;
  right: -22%;
  background: rgba(171, 71, 188, 0.1);
}

.product-tour-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  flex-shrink: 0;
}
.product-tour-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-tour-logo {
  border-radius: 9999px;
  object-fit: cover;
}
.product-tour-brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ck-emerald);
}
.product-tour-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-tour-meta {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
}
.product-tour-skip {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
  padding: 4px 8px;
}

.product-tour-scroll {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px 8px;
}
.product-tour-slide {
  text-align: center;
  padding-bottom: 8px;
}

.product-tour-headline {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ck-emerald);
  margin: 0 0 10px;
}
.product-tour-headline--goal {
  font-size: 21px;
  padding: 0 4px;
}
.product-tour-sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ck-text-secondary, #5f6f65);
  margin: 0 auto 14px;
  max-width: 20rem;
}
.product-tour-sub--goal {
  color: rgba(90, 70, 120, 0.75);
  max-width: 18rem;
}

.product-tour-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.onboarding-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
}
.onboarding-badge--deals {
  color: #00952e;
  background: rgba(0, 200, 83, 0.1);
  border-color: rgba(0, 200, 83, 0.35);
}
.onboarding-badge--settle {
  color: #9c27b0;
  background: rgba(171, 71, 188, 0.1);
  border-color: rgba(171, 71, 188, 0.35);
}

.product-tour-retailers-wrap {
  width: calc(100% + 40px);
  max-width: none;
  margin: 0 -20px 14px;
  min-width: 0;
}
.product-tour-available-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ck-text-muted);
  margin: 0 0 10px;
  text-align: left;
  padding: 0 20px;
  letter-spacing: 0.04em;
}
.product-tour-retailers {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 20px 4px;
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.product-tour-retailers::-webkit-scrollbar {
  display: none;
}
.onboarding-retailer {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 7px 12px;
  border-radius: 20px;
  background: var(--ret-bg);
  color: var(--ret-fg);
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px var(--ret-shadow, rgba(0, 0, 0, 0.12));
}

.product-tour-highlights {
  list-style: none;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 auto 14px;
  padding: 14px 16px;
  border-radius: 14px;
  max-width: 20rem;
}
.product-tour-highlights li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
}
.product-tour-highlights li:last-child {
  margin-bottom: 0;
}
.product-tour-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.product-tour-highlights--deals {
  background: rgba(0, 200, 83, 0.08);
  color: #1b5e3a;
}
.product-tour-highlights--deals li::before {
  background: #00c853;
}
.product-tour-highlights--settle {
  background: rgba(171, 71, 188, 0.08);
  color: #5e3570;
}
.product-tour-highlights--settle li::before {
  background: #ab47bc;
}

.product-tour-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 100, 60, 0.55);
  margin: 0 0 8px;
}
.product-tour-preview-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.onboarding-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ck-text-muted);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 6px 10px;
  border-radius: 9999px;
}

.product-tour-free-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 0 auto;
  max-width: 20rem;
}
.product-tour-free-banner--deals {
  color: #00952e;
  background: rgba(0, 200, 83, 0.1);
}
.product-tour-free-banner--settle {
  color: #9c27b0;
  background: rgba(171, 71, 188, 0.1);
}

/* Tour heroes */
.tour-hero {
  position: relative;
  height: 200px;
  margin: 0 auto 12px;
  max-width: 320px;
}
.tour-hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
}
.tour-hero-glow--deals {
  background: rgba(0, 200, 83, 0.1);
}
.tour-hero-glow--settle {
  background: rgba(171, 71, 188, 0.08);
}
.tour-hero-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(0, 200, 83, 0.18);
}
.tour-hero-orbit--outer {
  width: 210px;
  height: 210px;
}
.tour-hero-orbit--inner {
  width: 168px;
  height: 168px;
}
.tour-hero-bag {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #00e676, #00c853);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 200, 83, 0.35);
  animation: tour-float-bag 2.8s ease-in-out infinite alternate;
}
@keyframes tour-float-bag {
  from {
    transform: translate(-50%, -50%);
  }
  to {
    transform: translate(-50%, calc(-50% - 6px));
  }
}
.tour-hero-bag .material-symbols-rounded {
  font-size: 30px;
}
.tour-hero-chip {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  color: #333;
  animation: tour-float 3.2s ease-in-out infinite alternate;
}
.tour-hero-chip strong {
  color: #00a844;
}
.tour-hero-chip--tech {
  top: 18%;
  left: 8%;
  animation-delay: 0.2s;
}
.tour-hero-chip--grocery {
  top: 12%;
  right: 4%;
  animation-delay: 0.5s;
}
.tour-hero-chip--coin {
  bottom: 28%;
  left: 14%;
  padding: 5px 9px;
  border-radius: 9999px;
  color: #00a844;
  animation-delay: 0.8s;
}
.tour-hero-saved {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  padding: 6px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}
.tour-hero-saved strong {
  color: #00a844;
}

.tour-hero-settle-badge {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 9999px;
  color: #9c27b0;
  box-shadow: 0 4px 12px rgba(171, 71, 188, 0.15);
}
.tour-receipt {
  position: absolute;
  top: 28%;
  width: 42%;
  background: #fff;
  border-radius: 12px;
  padding: 10px 10px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  font-size: 9px;
  text-align: left;
  animation: tour-float 2.6s ease-in-out infinite alternate;
}
.tour-receipt--left {
  left: 6%;
  transform: rotate(-4deg);
}
.tour-receipt--right {
  right: 6%;
  transform: rotate(3deg);
  animation-delay: 0.4s;
}
.tour-receipt-name {
  font-weight: 800;
  font-size: 10px;
  color: #9c27b0;
  margin-bottom: 6px;
}
.tour-receipt-line {
  display: flex;
  justify-content: space-between;
  color: #666;
  margin-bottom: 2px;
}
.tour-receipt-total {
  margin-top: 6px;
  font-weight: 700;
  color: #9c27b0;
  font-size: 10px;
}

@keyframes tour-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}
.tour-receipt--left {
  animation-name: tour-float-left;
}
.tour-receipt--right {
  animation-name: tour-float-right;
}
@keyframes tour-float-left {
  from {
    transform: rotate(-4deg) translateY(0);
  }
  to {
    transform: rotate(-4deg) translateY(-6px);
  }
}
@keyframes tour-float-right {
  from {
    transform: rotate(3deg) translateY(0);
  }
  to {
    transform: rotate(3deg) translateY(-6px);
  }
}

.product-tour-goal-hero {
  margin: 8px auto 16px;
}
.product-tour-mascot {
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.product-tour-goals {
  max-width: 20rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.onboarding-goal-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.onboarding-goal-icon {
  font-size: 26px;
  color: #888;
  flex-shrink: 0;
}
.onboarding-goal-emoji {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.onboarding-goal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ck-emerald);
}
.onboarding-goal-desc {
  font-size: 12px;
  color: rgba(90, 70, 120, 0.75);
  margin-top: 2px;
}
.onboarding-goal-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  position: relative;
}
.onboarding-goal-card--selected.onboarding-goal-card--deals {
  border-color: #00c853;
  box-shadow: 0 0 0 1px rgba(0, 200, 83, 0.35);
}
.onboarding-goal-card--selected.onboarding-goal-card--deals .onboarding-goal-radio {
  border-color: #00c853;
}
.onboarding-goal-card--selected.onboarding-goal-card--deals .onboarding-goal-radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #00c853;
}
.onboarding-goal-card--selected.onboarding-goal-card--settle {
  border-color: #ab47bc;
  box-shadow: 0 0 0 1px rgba(171, 71, 188, 0.35);
}
.onboarding-goal-card--selected.onboarding-goal-card--settle .onboarding-goal-radio {
  border-color: #ab47bc;
}
.onboarding-goal-card--selected.onboarding-goal-card--settle .onboarding-goal-radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #ab47bc;
}

.product-tour-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 8px 24px 20px;
}
.product-tour-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  min-height: 8px;
}
.product-tour-dot {
  display: block;
  height: 8px;
  border-radius: 4px;
  transition: width 0.26s ease, background 0.26s ease;
}
.product-tour-cta {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.35);
}
.product-tour-cta--deals {
  background: linear-gradient(90deg, #00c853, #00952e);
}
.product-tour-cta--settle {
  background: linear-gradient(90deg, #ab47bc, #8e24aa);
  box-shadow: 0 6px 20px rgba(171, 71, 188, 0.38);
}
.product-tour-cta--disabled,
.product-tour-cta:disabled {
  background: rgba(0, 0, 0, 0.12) !important;
  color: rgba(0, 0, 0, 0.38) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* Demo device emulators (phone + watch chrome) */
.device-emulator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.device-emulator__bezel {
  padding: 10px;
  border-radius: 2.85rem;
  background: var(--device-frame-metal);
  border: 2px solid #0a0a0a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.25);
}

.device-emulator--phone {
  flex: 0 0 auto;
  width: var(--phone-emulator-width);
  min-width: var(--phone-emulator-width);
  max-width: var(--phone-emulator-width);
  position: relative;
}

.device-emulator--watch {
  flex: 0 0 auto;
}

.device-emulator__bezel--phone {
  --phone-bezel: 12px;
  position: relative;
  width: 100%;
  height: var(--phone-emulator-height);
  max-height: var(--phone-emulator-height);
  padding: var(--phone-bezel);
  border-radius: 2.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  overflow: visible;
  background: var(--device-frame-metal);
  border: 2px solid #0a0a0a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 32px 64px rgba(0, 0, 0, 0.35);
}

.device-emulator__bezel--phone::before {
  content: '';
  position: absolute;
  top: calc(var(--phone-bezel) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #2a2a2a 0%, #000 72%);
  box-shadow:
    0 0 0 1.5px #0a0a0a,
    inset 0 1px 2px rgba(255, 255, 255, 0.06);
  z-index: 20;
  pointer-events: none;
}

.device-emulator__bezel--phone::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 24%;
  width: 4px;
  height: 52px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #9ca3af 0%, #4b5563 48%, #9ca3af 100%);
  box-shadow:
    0 72px 0 0 #6d737b,
    0 73px 0 0 rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 25;
}

.device-emulator__speaker {
  display: none;
}

.device-emulator__screen {
  border-radius: 2rem;
  border: 1.5px solid #0a0a0a;
  width: 100%;
  max-width: 100%;
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: 100%;
  margin-top: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  zoom: var(--phone-mock-zoom);
}

.device-emulator__screen .app-nav {
  border-radius: 0 0 2rem 2rem;
}

.device-emulator--watch .device-emulator__bezel {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Watch companion — Galaxy Watch 7–style square case (1:1) */
.watch-emulator-shell {
  --watch-bezel: 11px;
  position: relative;
  width: var(--watch-shell-size);
  height: var(--watch-shell-size);
  min-width: var(--watch-shell-size);
  min-height: var(--watch-shell-size);
  flex-shrink: 0;
  padding: var(--watch-bezel);
  box-sizing: border-box;
  background: var(--device-frame-metal);
  border-radius: var(--watch-shell-radius);
  border: 2px solid #0a0a0a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.4);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: visible;
  margin-top: 0;
}

.watch-emulator-shell::before {
  content: '';
  position: absolute;
  right: calc(var(--watch-shell-size) * -0.018);
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--watch-shell-size) * 0.024);
  height: calc(var(--watch-shell-size) * 0.065);
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      180deg,
      #c5cad3 0,
      #c5cad3 calc(var(--watch-shell-size) * 0.0045),
      #6b7280 calc(var(--watch-shell-size) * 0.0045),
      #6b7280 calc(var(--watch-shell-size) * 0.009)
    );
  border: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 5;
}

.watch-emulator-shell::after {
  content: none;
}

.watch-emulator-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  background: #000;
  border-radius: var(--watch-screen-radius);
  border: 1.5px solid #0a0a0a;
  box-shadow:
    inset 0 0 0 2px #141414,
    inset 0 0 0 3px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.watch-emulator-shell--dragging {
  cursor: grabbing;
}

.watch-clock {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 3;
  pointer-events: none;
}

.watch-content {
  flex: 1;
  min-height: 0;
  padding: 2.1rem 0.85rem 2.35rem;
  overflow: hidden;
}

.watch-content.watch-slide-in-left {
  animation: watchSlideInLeft 0.2s ease-out;
}

.watch-content.watch-slide-in-right {
  animation: watchSlideInRight 0.2s ease-out;
}

@keyframes watchSlideInLeft {
  from {
    opacity: 0.4;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes watchSlideInRight {
  from {
    opacity: 0.4;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.watch-page-dots {
  position: absolute;
  bottom: 0.55rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 4;
  pointer-events: auto;
}

.watch-page-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: #3f3f46;
  cursor: pointer;
}

.watch-page-dot--active {
  background: #fff;
}

.demo-page-shell {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-height: 940px) and (min-width: 768px) {
  .demo-page-shell {
    justify-content: center;
  }
}

.demo-page-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f8faf8 0%, #f3f6f4 45%, #f8faf8 100%);
}

.demo-page-bg::before,
.demo-page-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.demo-page-bg::before {
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  top: -6%;
  left: -14%;
  background: rgba(0, 200, 83, 0.14);
}

.demo-page-bg::after {
  width: min(65vw, 460px);
  height: min(65vw, 460px);
  bottom: -4%;
  right: -12%;
  background: rgba(171, 71, 188, 0.1);
}

body.dark .demo-page-bg {
  background: linear-gradient(180deg, #0f0f0f 0%, #141414 50%, #0f0f0f 100%);
}

body.dark .demo-page-bg::before {
  background: rgba(0, 200, 83, 0.08);
}

body.dark .demo-page-bg::after {
  background: rgba(171, 71, 188, 0.06);
}

/* Demo stage: device toggle + fullscreen */
.demo-stage-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding-bottom: 0.5rem;
}

.demo-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  margin-inline: auto;
  width: 100%;
}

.demo-stage__toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 2;
  width: 100%;
  max-width: calc(100vw - 1.5rem);
  row-gap: 0.4rem;
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.demo-device-toggle {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--ck-border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.dark .demo-device-toggle {
  background: #2d2d2d;
  border-color: #404040;
}

.demo-device-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ck-text-muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.demo-device-toggle__btn .material-symbols-rounded {
  font-size: 1.1rem;
}

.demo-device-toggle__btn--active {
  background: var(--ck-emerald-tint);
  color: var(--ck-emerald-dark);
}

body.dark .demo-device-toggle__btn--active {
  background: #1a3d36;
  color: #a7f3d0;
}

.demo-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--ck-border-subtle);
  background: #fff;
  color: var(--ck-emerald-dark);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease;
}

.demo-fullscreen-btn:hover {
  background: var(--ck-emerald-tint);
}

body.dark .demo-fullscreen-btn {
  background: #2d2d2d;
  border-color: #404040;
  color: #e8f3f1;
}

.demo-stage__viewport {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem;
}

.device-emulator.demo-device-panel {
  display: none;
}

.device-emulator.demo-device-panel.demo-device-panel--active {
  display: flex;
}

.demo-stage-root:fullscreen,
.demo-stage-root:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  background: #1c1c1e;
  padding: 1rem 1.25rem 1.5rem;
  box-sizing: border-box;
}

.demo-stage-root:fullscreen .demo-stage,
.demo-stage-root:-webkit-full-screen .demo-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  gap: 0.65rem;
}

.demo-stage-root:fullscreen .demo-stage__viewport,
.demo-stage-root:-webkit-full-screen .demo-stage__viewport {
  flex: 1;
  min-height: 0;
  align-items: center;
  overflow: hidden;
}

body.dark .demo-stage-root:fullscreen,
body.dark .demo-stage-root:-webkit-full-screen {
  background: #0f0f0f;
}

.demo-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--ck-border-subtle);
  background: #fff;
  color: var(--ck-emerald-dark);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.demo-guide-btn:hover:not(:disabled) {
  background: var(--ck-emerald-tint);
}

.demo-guide-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.demo-guide-btn .material-symbols-rounded {
  font-size: 1.1rem;
}

body.dark .demo-guide-btn {
  background: #2d2d2d;
  border-color: #404040;
  color: #e8f3f1;
}

.demo-tutorial {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.demo-tutorial:not(.hidden) {
  pointer-events: auto;
}

.demo-tutorial-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 20, 0.45);
}

.demo-tutorial-spotlight {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 20, 0.52);
  border: 2px solid rgba(0, 200, 131, 0.85);
  pointer-events: none;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
  z-index: 1;
}

.demo-tutorial-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(22rem, calc(100vw - 2rem));
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

body.dark .demo-tutorial-card {
  background: #2d2d2d;
  color: #f0f0f0;
}

.demo-tutorial-step {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ck-text-muted);
}

.demo-tutorial-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ck-emerald-dark);
}

body.dark .demo-tutorial-title {
  color: #a7f3d0;
}

.demo-tutorial-body {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ck-text-secondary);
}

.demo-tutorial-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.demo-tutorial-skip {
  border: none;
  background: transparent;
  color: var(--ck-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

.demo-tutorial-next {
  border: none;
  border-radius: 9999px;
  background: var(--ck-emerald);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
}

.watch-face {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  gap: 0.45rem;
}

.watch-mode-row {
  display: flex;
  gap: 0.4rem;
}

.watch-mode-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 9999px;
  background: #e8eaed;
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.45rem 0.35rem;
  cursor: pointer;
}

.watch-mode-pill--active {
  background: #9effc1;
}

.watch-mode-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-mode-icon .material-symbols-rounded {
  font-size: 0.85rem;
  color: #fff;
}

.watch-mode-icon--ev .material-symbols-rounded {
  color: #4ade80;
}

.watch-gps-line {
  margin: 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.58rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.watch-gps-arrow {
  font-size: 0.75rem !important;
  color: #4ade80;
  transform: rotate(45deg);
}

.watch-type-row {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.watch-type-chip {
  border: none;
  border-radius: 9999px;
  background: #3f3f46;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.watch-type-chip--active {
  background: #9effc1;
  color: #111;
}

.watch-hero-card {
  background: #1c1c1e;
  border-radius: 1rem;
  padding: 0.55rem 0.65rem 0.65rem;
  margin-top: 0.1rem;
}

.watch-hero-title {
  margin: 0 0 0.15rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}

.watch-hero-sub {
  margin: 0 0 0.3rem;
  color: #9ca3af;
  font-size: 0.48rem;
  font-weight: 600;
  line-height: 1.25;
}

.watch-hero-price {
  margin: 0;
  color: #4ade80;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.watch-hero-price span {
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 0.1rem;
}

.watch-hero-price--ev {
  font-size: 1.05rem;
}

.watch-hero-meta {
  margin: 0.35rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #9ca3af;
  font-size: 0.58rem;
  font-weight: 600;
}

.watch-badge {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.35rem;
  border-radius: 0.25rem;
}

.watch-navigate-btn {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  background: #2c3e50;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
}

.watch-shop-header,
.watch-settle-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.watch-shop-icon,
.watch-settle-icon {
  color: #9effc1;
  font-size: 1.35rem;
}

.watch-shop-tabs {
  display: flex;
  gap: 0.45rem;
}

.watch-shop-tab {
  flex: 1;
  border: none;
  border-radius: 9999px;
  background: #e8eaed;
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.5rem 0.35rem;
  cursor: pointer;
}

.watch-shop-tab--active {
  background: #9effc1;
}

.watch-shop-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  overflow-y: auto;
}

.watch-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.watch-checklist-row {
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.65rem;
  color: #fff;
  text-align: left;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.4rem 0.45rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.watch-checklist-row--checked {
  background: rgba(158, 255, 193, 0.12);
}

.watch-checklist-box {
  font-size: 1rem !important;
  color: #9ca3af;
  flex-shrink: 0;
  line-height: 1.1;
}

.watch-checklist-row--checked .watch-checklist-box {
  color: #9effc1;
}

.watch-checklist-label {
  display: block;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.watch-face--settle {
  justify-content: flex-start;
  gap: 0.35rem;
}

.watch-settle-net-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 9999px;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.watch-settle-net-chip--owed {
  background: rgba(52, 211, 153, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.watch-settle-net-chip--owe {
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(252, 165, 165, 0.35);
}

.watch-settle-net-chip-label {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.watch-settle-net-chip-value {
  font-size: 0.82rem;
  color: #fff;
}

.watch-settle-net-chip--owed .watch-settle-net-chip-value {
  color: #4ade80;
}

.watch-settle-net-chip--owe .watch-settle-net-chip-value {
  color: #fca5a5;
}

.watch-settle-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  flex: 1;
  justify-content: flex-start;
  min-height: 0;
  overflow-y: auto;
}

.watch-balance-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.watch-balance-chip--owed {
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.watch-balance-chip--owe {
  background: rgba(248, 113, 113, 0.16);
  border: 1px solid rgba(252, 165, 165, 0.28);
}

.watch-balance-chip-name {
  color: rgba(255, 255, 255, 0.92);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.65rem;
}

.watch-balance-chip-amt {
  flex-shrink: 0;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.25);
}

.watch-balance-chip--owed .watch-balance-chip-amt {
  color: #4ade80;
}

.watch-balance-chip--owe .watch-balance-chip-amt {
  color: #fca5a5;
}

.watch-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0;
  padding: 0.5rem 0;
}

.snap-deal-card {
  display: block;
  background: #fff;
  border: 1px solid var(--ck-border, #e8e8e8);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}

.snap-deal-card:hover {
  border-color: var(--ck-emerald-dark, #00952e);
}

.snap-deal-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ck-emerald-tint, #e8f8ee);
  color: var(--ck-emerald-dark, #00952e);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
