/* Time Bank, Calendar, Bottle Letter, and 3-Tier Collection/Shop Styles */

.bank-layout,
.calendar-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Time Bank Hero */

.bank-hero-card {
  background: #2d4c40;
  color: #f7fbf8;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.bank-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bank-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.bank-share-btn {
  border: 1px solid rgba(255, 232, 163, 0.44);
  background: rgba(255, 232, 163, 0.16);
  color: #fff6dc;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}

.bank-share-btn:hover {
  background: rgba(255, 232, 163, 0.28);
}

.bank-eyebrow {
  font-size: 12.5px;
  color: rgba(240, 250, 245, 0.74);
  font-weight: 600;
}

.bank-balance-num {
  font-size: clamp(34px, 7vw, 46px);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 4px;
  color: #ffe8a3;
}

.bank-ratio-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 8px 14px;
  text-align: right;
  display: flex;
  flex-direction: column;
}

.bank-ratio-badge span {
  font-size: 12px;
  opacity: 0.78;
}

.bank-ratio-badge strong {
  font-size: 17px;
  font-weight: 700;
}

.bank-breakdown-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Active Free Time Countdown */

.active-withdraw-card {
  background: #fff5e3;
  border-color: #e4bf88;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bank-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 820px) {
  .bank-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* App Block Simulator Buttons */

.sim-apps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sim-app-btn {
  border: 0.5px solid var(--border);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.sim-app-btn:hover {
  transform: translateY(-2px);
  border-color: var(--app-color);
}

.sim-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--app-bg);
  color: var(--app-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sim-app-name {
  font-size: 13.5px;
  font-weight: 750;
}

/* Native Health Notice */

/* Ratio Lock */

/* Ledger */

/* Calendar & Bottle Letter */

.calendar-grid-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 840px) {
  .calendar-grid-wrap {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
}

.cal-side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-header h2 {
  margin: 0;
  font-size: 18px;
}

.cal-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 18px;
  font-weight: 700;
}

.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.cal-cells-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-cell {
  min-height: 54px;
  border: 1px solid transparent;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 5px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.cal-cell.is-empty {
  background: transparent;
}

.cal-cell.is-today {
  border-color: var(--accent);
}

.cal-cell.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.cal-day-num {
  font-size: 12.5px;
  font-weight: 700;
}

.cal-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: center;
}

.cal-min-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-ex {
  background: var(--sage);
}

.dot-letter {
  background: #4e8bb8;
}

.cal-legend {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-3);
}

.legend-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.sw-focus { background: var(--accent); }

.sw-ex { background: var(--sage); }

.sw-letter { background: #4e8bb8; }

.day-log-list,
.letter-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-log-item {
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 13.5px;
}

.day-log-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.archive-letter-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archive-dk {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 700;
}

.archive-q {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Collection / 3-Tier Monetization */

.tier-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.tier-1 { background: var(--sage-soft); color: var(--sage); }

.tier-2 { background: #efe8fb; color: #5b3b96; }

.tier-3 { background: var(--accent-soft); color: var(--accent); }

/* Seat Shop */

/* Subscription Card */

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Narani Points Hero + Hybrid Comparison + Founder Migration Readiness */

.owned-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: var(--sage-soft);
  color: var(--sage);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
  margin-left: 5px;
}

/* Multi-Pet Family Slots Shop Card */

.daily-cap-box {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 240, 214, 0.18);
  border-radius: 14px;
  padding: 10px 12px;
}

.daily-cap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 248, 236, 0.9);
  margin-bottom: 6px;
}

.daily-cap-bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.daily-cap-fill {
  height: 100%;
  background: #ffd97d;
  border-radius: 99px;
  transition: width 0.25s ease;
}
