/* ===== Monzo Smart Household Pots — High-end Prototype ===== */
:root {
  --coral: #FF4B55;
  --coral-hover: #FF6B73;
  --navy: #0A1F44;
  --mint: #00D4AA;
  --mint-dark: #00B894;
  --bg-dark: #0D0D0F;
  --card-dark: #1A1A1E;
  --card-elevated: #242429;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A8;
  --text-muted: #6B6B73;
  --border: rgba(255,255,255,0.08);
  --success: #00D4AA;
  --danger: #FF4B55;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(145deg, #0F1115 0%, #1A1D24 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.prototype-wrapper {
  display: flex;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  gap: 48px;
  align-items: center;
}

/* ===== LEFT INFO PANEL ===== */
.info-panel {
  flex: 1;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.monzo-logo {
  width: 52px;
  height: 52px;
  background: var(--coral);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: white;
  box-shadow: 0 8px 24px rgba(255, 75, 85, 0.35);
}

.brand h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric {
  background: var(--card-dark);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.metric .value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.metric.coral .value { color: var(--coral); }
.metric.navy .value { color: #7B9CFF; }
.metric.mint .value { color: var(--mint); }

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

.screen-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn {
  background: var(--card-dark);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.nav-btn:hover {
  background: var(--card-elevated);
  color: var(--text-primary);
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(255,75,85,0.15), rgba(255,75,85,0.05));
  border-color: var(--coral);
  color: var(--coral);
}

.instructions {
  background: var(--card-dark);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.instructions h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.instructions ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.instructions li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.instructions li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 600;
}

.footer-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== PHONE FRAME ===== */
.phone-container {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 375px;
  height: 780px;
  background: #1C1C1E;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 
    var(--shadow),
    0 0 0 2px #2C2C2E,
    inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
}

.status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.signal, .wifi, .battery {
  display: inline-block;
  background: var(--text-primary);
  border-radius: 1px;
}

.signal {
  width: 16px;
  height: 10px;
  clip-path: polygon(0 100%, 25% 60%, 50% 80%, 75% 40%, 100% 0, 100% 100%);
}

.wifi {
  width: 14px;
  height: 10px;
  border-radius: 50% 50% 0 0;
  background: transparent;
  border: 2px solid var(--text-primary);
  border-bottom: none;
}

.battery {
  width: 22px;
  height: 11px;
  border: 1.5px solid var(--text-primary);
  border-radius: 3px;
  position: relative;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 2.5px;
  width: 2px;
  height: 5px;
  background: var(--text-primary);
  border-radius: 0 1px 1px 0;
}

/* Screens */
.screen {
  display: none;
  flex-direction: column;
  height: calc(100% - 40px);
  padding: 0 20px 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* App Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 16px;
}

.app-header.centered {
  justify-content: flex-end;
}

.app-header h2 {
  font-size: 17px;
  font-weight: 600;
}

.back-btn, .more-btn, .close-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.back-btn:hover, .more-btn:hover, .close-btn:hover {
  background: rgba(255,255,255,0.08);
}

/* ===== DASHBOARD SCREEN ===== */
.pot-hero {
  text-align: center;
  padding: 12px 0 24px;
}

.pot-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.pot-name {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.balance .label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.balance .amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  display: block;
  margin-bottom: 12px;
}

.progress-bar {
  height: 6px;
  background: var(--card-elevated);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 8px;
  max-width: 220px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--mint));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.goal {
  font-size: 12px;
  color: var(--text-muted);
}

.upcoming-card {
  background: var(--card-dark);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

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

.card-header span:first-child {
  font-size: 14px;
  font-weight: 600;
}

.card-header .amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--coral);
}

.due {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.bill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.bill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--card-elevated);
}

.bill-info {
  flex: 1;
}

.bill-info .name {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.bill-info .provider {
  font-size: 12px;
  color: var(--text-muted);
}

.bill-amount {
  text-align: right;
}

.bill-amount span:first-child {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.bill-amount .pct {
  font-size: 12px;
  color: var(--text-muted);
}

.flatmates {
  margin-bottom: 20px;
}

.section-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.avatar-row {
  display: flex;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
}

.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.bottom-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
}

.nav-item {
  background: none;
  border: none;
  font-size: 22px;
  opacity: 0.5;
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.2s;
}

.nav-item.active {
  opacity: 1;
}

/* ===== ALERT SCREEN ===== */
.alert-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 20px;
  flex: 1;
}

.alert-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.alert-brand {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.alert-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.alert-title .highlight {
  color: var(--coral);
}

.alert-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.bill-summary {
  background: var(--card-dark);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  width: 100%;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.bill-summary .row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.bill-summary .row + .row {
  margin-top: 6px;
}

.bill-summary .bold {
  font-weight: 700;
}

.bill-summary .muted {
  color: var(--text-muted);
  font-size: 13px;
}

.countdown {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.time-block {
  background: var(--card-dark);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 70px;
  border: 1px solid var(--border);
}

.time-block .num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.time-block .unit {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Buttons */
.primary-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.primary-btn.coral {
  background: var(--coral);
  color: white;
  box-shadow: 0 8px 24px rgba(255, 75, 85, 0.35);
}

.primary-btn.coral:hover {
  background: var(--coral-hover);
  transform: translateY(-1px);
}

.primary-btn.mint {
  background: var(--mint);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.3);
}

.primary-btn.mint:hover {
  background: var(--mint-dark);
  transform: translateY(-1px);
}

.primary-btn:active {
  transform: scale(0.98);
}

.text-btn {
  background: none;
  border: none;
  color: var(--mint);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  padding: 8px;
}

.text-btn:hover {
  text-decoration: underline;
}

/* ===== SPLIT SCREEN ===== */
.split-hero {
  text-align: center;
  padding: 8px 0 24px;
}

.bill-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.bill-total {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.adjust-label {
  font-size: 13px;
  color: var(--text-muted);
}

.splitters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.splitter-card {
  background: var(--card-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--border);
}

.splitter-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.splitter-header .name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.splitter-header .amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--mint);
  min-width: 60px;
  text-align: right;
}

.splitter-header .pct-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--card-elevated);
  padding: 2px 8px;
  border-radius: 6px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--card-elevated);
  border-radius: 3px;
  outline: none;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--coral);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 75, 85, 0.4);
  transition: transform 0.15s;
}

.slider-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-row input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--coral);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.slider-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-elevated);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.slider-btn:hover {
  background: rgba(255,255,255,0.1);
}

.split-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--card-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}

.split-total span:nth-child(2) {
  color: var(--mint);
}

/* ===== COVER SCREEN ===== */
.cover-content {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  flex: 1;
}

.low-balance-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-dark);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.low-balance-card .name {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.balance-neg {
  font-size: 24px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 6px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--danger);
  background: rgba(255, 75, 85, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
}

.cover-info {
  margin-bottom: 24px;
}

.cover-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cover-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cover-details {
  background: var(--card-dark);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.cover-details .row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}

.cover-details .bold {
  font-weight: 700;
}

/* Toast */
.toast {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--mint);
  color: var(--navy);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 50;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .prototype-wrapper {
    flex-direction: column;
    padding: 24px 16px;
  }
  
  .info-panel {
    max-width: 100%;
  }
  
  .phone-frame {
    width: 340px;
    height: 700px;
  }
}
