/* XOXO PWA — Mobile-first */
:root {
  --beige: #F5EDE3;
  --olive: #8B9A6B;
  --brun: #4A3728;
  --creme: #FDF8F2;
  --or: #C9A96E;
  --text: #3D3D3D;
  --radius: 16px;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--creme);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* nav bar */
}

/* === HEADER === */
.header {
  text-align: center;
  padding: 24px 16px 16px;
  background: var(--brun);
  color: var(--creme);
}
.header h1 {
  font-family: 'Alice', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2px;
}
.header p {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

/* === SECTIONS === */
.section {
  padding: 20px 16px;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brun);
  margin-bottom: 12px;
}

/* === LOYALTY CARD === */
.loyalty-card {
  background: linear-gradient(135deg, var(--brun), #5D4A3A);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--creme);
  position: relative;
  overflow: hidden;
}
.loyalty-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(201, 169, 110, 0.15);
  border-radius: 50%;
}
.loyalty-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.loyalty-name {
  font-size: 14px;
  opacity: 0.8;
}
.loyalty-count {
  font-size: 32px;
  font-weight: 700;
  color: var(--or);
}
.loyalty-count span {
  font-size: 14px;
  font-weight: 400;
  color: var(--creme);
  opacity: 0.7;
}
.stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
}
.stamp.filled {
  background: var(--or);
  border-color: var(--or);
}
.stamp.reward {
  border-color: var(--or);
  background: transparent;
}
.loyalty-reward {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--or);
}

/* === PROMO CARD === */
.promo-card {
  background: linear-gradient(135deg, var(--olive), #7A8B5C);
  border-radius: var(--radius);
  padding: 20px;
  color: white;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.promo-card .badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.promo-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.promo-card p {
  font-size: 13px;
  opacity: 0.9;
}
.promo-card .validity {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 8px;
}

/* === QUICK ACTIONS === */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: white;
  border: none;
  border-radius: var(--radius);
  padding: 20px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s;
  text-decoration: none;
}
.action-btn:active { transform: scale(0.96); }
.action-btn .icon {
  font-size: 28px;
}

/* === INFO LIST === */
.info-list {
  list-style: none;
}
.info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--beige);
  font-size: 14px;
}
.info-list li:last-child { border: none; }
.info-list .icon { font-size: 20px; width: 28px; text-align: center; }
.info-list a {
  color: var(--brun);
  text-decoration: none;
  font-weight: 500;
}

/* === BOTTOM NAV === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #999;
  text-decoration: none;
  padding: 4px 12px;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.nav-item.active { color: var(--brun); }
.nav-item .icon { font-size: 22px; }

/* === SCREENS === */
.screen { display: none; }
.screen.active { display: block; }

/* === INSTALL BANNER === */
.install-banner {
  display: none;
  background: var(--brun);
  color: var(--creme);
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
}
.install-banner strong { color: var(--or); }

/* === REVIEW PROMPT === */
.review-prompt {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.review-prompt h3 { font-size: 16px; margin-bottom: 8px; }
.review-prompt p { font-size: 13px; color: #666; margin-bottom: 16px; }
.review-btn {
  display: inline-block;
  background: var(--brun);
  color: var(--creme);
  padding: 12px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
