/* ─────────────────────────────────────────────
   One More Budget — Dashboard hero simulator
   Matches store Flutter cockpit (October 2026)
   ───────────────────────────────────────────── */

.hero-phone-wrap {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 312px;
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.hero-device-simulator {
  width: 100%;
  max-width: 312px;
  height: 570px;
  background: #0e1117;
  border: 2px solid #2a3040;
  border-radius: 44px;
  overflow: hidden;
  box-shadow:
    0 28px 56px -18px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  font-family: var(--sans);
  color: var(--white);
  user-select: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-device-simulator:hover {
  box-shadow:
    0 32px 64px -16px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Status Bar & Camera Punch */
.sim-phone-notch-bar {
  background: #0e1117;
  height: 32px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.sim-phone-time {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sim-phone-camera {
  width: 12px;
  height: 12px;
  background: #000;
  border: 1.5px solid #1a202c;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
}

.sim-phone-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #fff;
}

/* App Bar: month title + action icons */
.sim-appbar {
  padding: 2px 14px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0e1117;
  flex-shrink: 0;
  gap: 8px;
}

.sim-appbar-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.sim-appbar-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-appbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  flex-shrink: 0;
}

.sim-icon-btn {
  background: none;
  border: none;
  padding: 0;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.sim-icon-btn:hover {
  color: var(--white);
}

/* Target day stepper */
.sim-stepper-row {
  padding: 0 14px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0e1117;
  flex-shrink: 0;
  gap: 8px;
}

.sim-stepper-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #8c9ba8;
  letter-spacing: 0.1px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-stepper-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.sim-step-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #1b202c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.sim-step-btn:hover {
  background: #252b3b;
  color: var(--white);
}

.sim-step-badge {
  min-width: 30px;
  height: 26px;
  padding: 0 5px;
  border-radius: 7px;
  background: rgba(200, 240, 74, 0.08);
  border: 1px solid rgba(200, 240, 74, 0.45);
  color: var(--lime);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scrollable body */
.sim-app-scroll {
  padding: 0 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0e1117;
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* This month card */
.sim-card-month {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px 12px;
  flex-shrink: 0;
}

.sim-month-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sim-month-title {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.sim-add-income-btn {
  background: transparent;
  color: var(--lime);
  border: 1px solid rgba(200, 240, 74, 0.45);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.sim-add-income-btn:hover {
  background: rgba(200, 240, 74, 0.08);
  border-color: var(--lime);
}

.sim-month-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 0;
}

.sim-month-stat-col {
  display: flex;
  flex-direction: column;
}

.sim-month-stat-lbl {
  font-size: 9px;
  color: #8c9ba8;
  margin-bottom: 2px;
}

.sim-month-stat-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.sim-phone-battery {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
}

.sim-add-income-btn.is-pulse {
  transform: scale(1.08);
}

.sim-fab-btn.is-spin {
  transform: scale(0.88) rotate(90deg);
}

/* Left / Paid / Can skip */
.sim-card-triplet {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  flex-shrink: 0;
}

.sim-triplet-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sim-triplet-col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sim-triplet-lbl {
  font-size: 9.5px;
  color: #8c9ba8;
  margin-bottom: 2px;
}

.sim-triplet-val {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 800;
}

.sim-triplet-val.pink {
  color: #ff4d6d;
}

.sim-triplet-val.green {
  color: #22c55e;
}

.sim-triplet-val.amber {
  color: #f59e0b;
}

.sim-triplet-sub {
  font-size: 8.5px;
  color: #64748b;
  margin-top: 1px;
}

/* All payments header */
.sim-payments-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-shrink: 0;
}

.sim-payments-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin-right: 4px;
}

.sim-pill-btn {
  background: #181d2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  margin-left: auto;
}

.sim-pill-btn.active {
  border-color: rgba(200, 240, 74, 0.55);
  color: var(--lime);
}

/* Payment rows */
.sim-payments-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.sim-payment-card {
  display: flex;
  align-items: center;
  background: #141724;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 6px 10px 6px 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-payment-card:hover {
  background: #181c2b;
}

.sim-payment-accent {
  width: 3px;
  align-self: stretch;
  background: transparent;
  margin-right: 8px;
  border-radius: 2px 0 0 2px;
  flex-shrink: 0;
}

.sim-payment-card.checked .sim-payment-accent {
  background: #22c55e;
}

.sim-payment-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #333a4f;
  background: #181d2b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.sim-payment-card.checked .sim-payment-check {
  background: #22c55e;
  border-color: #22c55e;
}

.sim-payment-check svg {
  width: 10px;
  height: 10px;
  stroke: #0d0f14;
  stroke-width: 3;
  opacity: 0;
}

.sim-payment-card.checked .sim-payment-check svg {
  opacity: 1;
}

.sim-payment-date {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #1c202d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  position: relative;
  flex-shrink: 0;
}

.sim-date-num {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.sim-date-card-icon {
  width: 7px;
  height: 7px;
  opacity: 0.6;
  margin-top: 1px;
}

.sim-payment-info {
  flex: 1;
  min-width: 0;
}

.sim-payment-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-payment-card.checked .sim-payment-name {
  color: #94a3b8;
  font-weight: 500;
}

.sim-payment-meta {
  font-size: 9px;
  color: #8c9ba8;
  letter-spacing: 0.01em;
}

.sim-payment-amt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  text-align: right;
  flex-shrink: 0;
}

.sim-payment-card.checked .sim-payment-amt {
  color: #6b7280;
}

/* after day N divider */
.sim-day-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 600;
  color: #7b8494;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  margin: 2px 0;
  flex-shrink: 0;
}

.sim-day-divider::before,
.sim-day-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* FAB */
.sim-fab-btn {
  position: absolute;
  right: 14px;
  bottom: 62px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--lime);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 20;
  transition: transform 0.2s;
}

.sim-fab-btn:hover {
  transform: scale(1.04);
}

/* Bottom nav */
.sim-bottom-nav {
  height: 48px;
  background: #0d0f14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  flex-shrink: 0;
}

.sim-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
  min-width: 56px;
}

.sim-nav-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.sim-nav-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.sim-nav-item.active {
  color: var(--lime);
}

.sim-home-indicator {
  height: 10px;
  flex-shrink: 0;
  background: #0d0f14;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-home-indicator::after {
  content: '';
  width: 96px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 820px) {
  .hero-phone-wrap {
    margin: 40px auto 0;
  }
}
