import { useState, useEffect } from "react";

// ── Brand Logos (base64) ───────────────────────────────────
const BT_LOGO = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAAwCAYAAABUmTXqAAABCGlDQ1BJQ0MgUHJvZmlsZQAAeJxjYGA8wQAELAYMDLl5JUVB7k4KEZFRCuwPGBiBEAwSk4sLGHADoKpv1yBqL+viUYcLcKakFicD6Q9ArFIEtBxopAiQLZIOYWuA2EkQtg2IXV5SUAJkB4DYRSFBzkB2CpCtkY7ETkJiJxcUgdT3ANk2uTmlyQh3M/Ck5oUGA2kOIJZhKGYIYnBncAL5H6IkfxEDg8VXBgbmCQixpJkMDNtbGRgkbiHEVBYwMPC3MDBsO48QQ4RJQWJRIliIBYiZ0tIYGD4tZ2DgjWRgEL7AwMAVDQsIHG5TALvNnSEfCNMZchhSgSKeDHkMyQx6QJYRgwGDIYMZAKbWPz9HbOBQAAAuVUlEQVR4nO19eZhU1Zn++51z7q21941mB1GQVlFxzyhoonHN5lTFiRpcASW4oKKZLNU3PzMxyeCGAcVoREnUrswkMZrRMVEw0bgR18Zd2Rsa6G66u6pu3Xvu+X5/VBU0dDfgmpkJ7/P0011977nnO+ee73z7KcJe7MU/GFKplHAcx1x++eWnWJZ1JhEZ3/eFEEIZY4zneXcvWLDgL4lEQtLfm9i92IvPEolEQqbT6eDyyy+/Qmu9n23bP7zpppvWla7Pnj37EGPMNVrrR++444579zLIXvzDoMQc06dP/7plWSf97Gc/u3DmzJnj47HYN7WnK4WUL914840/ByAvu+yyxb7vLxB/b6L3Yi8+K7S0tJjp06dboVDoVGPM1cxMtdXVx1ZVVv1rKBKuisdjt1495+qFAAKt9Y+UUjP2Mshe/EMglUoJImKl1H5E1LZw4cJOImJByu/p6dn845/8+BuBDv5DSnEaACxYsKAVQLCXQfbiHwqVlZWxIAg6U6lUce0HXjgcrrn6qqvfEVKcrP3gegDEzMTM7l4G2Yt/KHR1dXlSyrjjOKb4L9v3/TWWVOu19jfNu3neopaWFkFELKWkvU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r6CXXXxdtQOHM8vPzpdjM96Qv3tnA+m18ffdQybYLq0u3tY1eIxZXTteP43Q6eX7+EVdn9e85HA6pgfVpOZ5W/P9YmP/2nsvgdGJsfzT43aHo0RSGIBoYGBgYGPxyYt3of7OFkIGBgYGBgYGBgYGBgYHBr8RQMBsYGJybEBGrqtozwNAPnhmMSj0JjDHSdfyUl5f3e2fFwMDA4HfAmIQYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGJzL/D+fTVmVDIHFLgAAAABJRU5ErkJggg==";

// ── Design System ──────────────────────────────────────────
const T = {
  bt: {
    pri: "#E8891C", sec: "#D07A18", acc: "#F5A623", warm: "#FDE8CC",
    bg: "#FFFAF4", card: "#FFFFFF", surf: "#FFF3E4",
    ink: "#1A1A1A", ink2: "#6B6B6B", ink3: "#ABABAB",
    grey: "#808080",
    grad: "linear-gradient(145deg, #D07A18 0%, #E8891C 40%, #F5A623 100%)",
    gradDark: "linear-gradient(145deg, #1A1A1A 0%, #333333 40%, #4A4A4A 100%)",
  },
  fs: {
    pri: "#9B6A34", sec: "#B07B3D", acc: "#E8891C", warm: "#F5E6D4",
    bg: "#FFFBF6", card: "#FFFFFF", surf: "#F5EDE3",
    ink: "#1A1A1A", ink2: "#6B6B6B", ink3: "#ABABAB",
    grey: "#5C5C5C",
    grad: "linear-gradient(145deg, #7A5428 0%, #9B6A34 40%, #B8863E 100%)",
    gradDark: "linear-gradient(145deg, #3D2E1A 0%, #5C4530 40%, #7A5A3E 100%)",
  },
  gold: "#C5960C", silver: "#94A3B8", green: "#16A34A", white: "#FFF",
  r: { sm: 10, md: 16, lg: 22, xl: 28 },
  font: "'Georgia', 'Palatino Linotype', serif",
  sans: "'Trebuchet MS', 'Lucida Grande', sans-serif",
};
const ease = "cubic-bezier(0.4, 0, 0.2, 1)";

const FadeIn = ({ children, delay = 0, y = 12, style = {} }) => {
  const [v, setV] = useState(false);
  useEffect(() => { const t = setTimeout(() => setV(true), delay); return () => clearTimeout(t); }, [delay]);
  return <div style={{ opacity: v ? 1 : 0, transform: v ? "translateY(0)" : `translateY(${y}px)`, transition: `opacity 0.5s ${ease}, transform 0.5s ${ease}`, ...style }}>{children}</div>;
};

const BrandLogo = ({ brand, height = 28, style = {} }) => (
  <img src={brand === "bt" ? BT_LOGO : FS_LOGO} alt={brand === "bt" ? "BreadTalk" : "FoodStreat"} style={{ height, objectFit: "contain", ...style }} />
);

const Phone = ({ children }) => (
  <div style={{ width: 390, minHeight: 740, maxHeight: 844, background: "#0A0A0A", borderRadius: 50, padding: 10, position: "relative", boxShadow: "0 30px 80px rgba(0,0,0,0.35), 0 0 0 1.5px #2A2A2A" }}>
    <div style={{ position: "absolute", top: 10, left: "50%", transform: "translateX(-50%)", width: 126, height: 32, background: "#0A0A0A", borderRadius: "0 0 18px 18px", zIndex: 100 }}>
      <div style={{ width: 10, height: 10, borderRadius: "50%", background: "#1A1A1A", position: "absolute", left: "50%", top: 8, transform: "translateX(-50%)" }} />
    </div>
    <div style={{ width: "100%", height: "100%", borderRadius: 42, overflow: "hidden", background: T.bt.bg, position: "relative" }}>
      <div style={{ height: 48 }} />
      <div style={{ height: "calc(100% - 48px)", overflowY: "auto", overflowX: "hidden" }}>{children}</div>
    </div>
  </div>
);

const Nav = ({ active, go, c }) => {
  const items = [{ id: "home", icon: "⌂", label: "Home" }, { id: "card", icon: "◈", label: "Card" }, { id: "wallet", icon: "◉", label: "Wallet" }, { id: "rewards", icon: "✦", label: "Rewards" }, { id: "profile", icon: "○", label: "More" }];
  return (
    <div style={{ position: "sticky", bottom: 0, display: "flex", background: "rgba(255,255,255,0.92)", backdropFilter: "blur(16px)", borderTop: "1px solid rgba(0,0,0,0.06)", padding: "8px 4px 22px", zIndex: 50 }}>
      {items.map(it => (
        <div key={it.id} onClick={() => go(it.id)} style={{ flex: 1, textAlign: "center", cursor: "pointer" }}>
          <div style={{ fontSize: 18, fontWeight: 300, color: active === it.id ? c.pri : c.ink3, transform: active === it.id ? "scale(1.15)" : "scale(1)", transition: `all 0.25s ${ease}`, fontFamily: T.sans }}>{it.icon}</div>
          <div style={{ fontSize: 9, fontWeight: active === it.id ? 700 : 500, marginTop: 3, color: active === it.id ? c.pri : c.ink3, letterSpacing: 0.5, fontFamily: T.sans, textTransform: "uppercase" }}>{it.label}</div>
        </div>
      ))}
    </div>
  );
};

const Pill = ({ children, color, bg }) => <span style={{ display: "inline-block", padding: "4px 10px", borderRadius: 20, fontSize: 10, fontWeight: 700, fontFamily: T.sans, letterSpacing: 0.5, color: color || T.bt.pri, background: bg || "rgba(232,137,28,0.1)" }}>{children}</span>;

const SectionHead = ({ title, action, onAction, c }) => (
  <div style={{ display: "flex", justifyContent: "space-between", alignItems: "baseline", padding: "0 24px", marginBottom: 14 }}>
    <h3 style={{ fontSize: 17, fontWeight: 700, color: c.ink, fontFamily: T.font, margin: 0, letterSpacing: -0.3 }}>{title}</h3>
    {action && <span onClick={onAction} style={{ fontSize: 12, fontWeight: 600, color: c.pri, cursor: "pointer", fontFamily: T.sans }}>{action}</span>}
  </div>
);

// ═══ SPLASH ═══
const Splash = ({ onNext }) => {
  const [ph, setPh] = useState(0);
  useEffect(() => { const a = setTimeout(() => setPh(1), 300); const b = setTimeout(() => setPh(2), 900); return () => { clearTimeout(a); clearTimeout(b); }; }, []);
  return (
    <div onClick={onNext} style={{ height: 796, display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", background: "linear-gradient(170deg, #0D0D0D 0%, #1A1A1A 35%, #2A2A2A 70%, #3A3A3A 100%)", cursor: "pointer", color: "#FFF", position: "relative", overflow: "hidden" }}>
      <div style={{ position: "absolute", width: 400, height: 400, borderRadius: "50%", background: "radial-gradient(circle, rgba(232,137,28,0.12) 0%, transparent 70%)", top: "15%", left: "50%", transform: "translateX(-50%)" }} />
      <div style={{ opacity: ph >= 1 ? 1 : 0, transform: ph >= 1 ? "scale(1)" : "scale(0.8)", transition: `all 0.8s ${ease}`, textAlign: "center" }}>
        <BrandLogo brand="bt" height={42} style={{ filter: "brightness(1.2)", marginBottom: 20 }} />
        <div style={{ fontSize: 12, fontWeight: 400, letterSpacing: 8, marginTop: 6, textTransform: "uppercase", opacity: 0.7, fontFamily: T.sans, color: "#E8891C" }}>Rewards</div>
      </div>
      <div style={{ position: "absolute", bottom: 80, opacity: ph >= 2 ? 0.5 : 0, transition: `opacity 0.6s ${ease}`, fontSize: 11, letterSpacing: 2, fontFamily: T.sans, textTransform: "uppercase" }}>tap to continue</div>
    </div>
  );
};

// ═══ HOME ═══
const Home = ({ brand, go, setBrand }) => {
  const c = T[brand]; const isBT = brand === "bt";
  return (
    <div style={{ background: c.bg, minHeight: 700 }}>
      {/* Brand Tabs with Logos */}
      <div style={{ display: "flex", background: c.card, padding: "0 8px" }}>
        {[["bt", "BreadTalk"], ["fs", "FoodStreat"]].map(([b, l]) => (
          <div key={b} onClick={() => setBrand(b)} style={{ flex: 1, padding: "12px 0 10px", textAlign: "center", cursor: "pointer", borderBottom: brand === b ? `2.5px solid ${T[b].pri}` : "2.5px solid transparent", transition: `all 0.3s ${ease}`, display: "flex", alignItems: "center", justifyContent: "center", gap: 6 }}>
            <BrandLogo brand={b} height={b === "bt" ? 18 : 24} style={{ opacity: brand === b ? 1 : 0.4, transition: `opacity 0.3s ${ease}` }} />
          </div>
        ))}
      </div>
      <FadeIn>
        <div style={{ background: isBT ? "linear-gradient(145deg, #1A1A1A 0%, #333 40%, #4A4A4A 100%)" : c.grad, padding: "22px 24px 28px", position: "relative", overflow: "hidden" }}>
          <div style={{ position: "absolute", right: -40, top: -40, width: 180, height: 180, borderRadius: "50%", background: "rgba(232,137,28,0.08)" }} />
          <div style={{ display: "flex", justifyContent: "space-between", alignItems: "flex-start" }}>
            <div>
              <div style={{ fontSize: 12, color: "rgba(255,255,255,0.7)", fontFamily: T.sans }}>Good afternoon,</div>
              <div style={{ fontSize: 22, fontWeight: 700, color: "#FFF", fontFamily: T.font, marginTop: 2 }}>Zeya</div>
            </div>
            <Pill color="#FFF" bg="rgba(232,137,28,0.3)">🥇 Gold</Pill>
          </div>
          <div style={{ display: "flex", gap: 12, marginTop: 18 }}>
            {[{ l: "Balance", v: "45,500", u: "MMK" }, { l: "Points", v: "2,340", u: "pts" }].map(d => (
              <div key={d.l} style={{ flex: 1, background: "rgba(255,255,255,0.08)", borderRadius: T.r.md, padding: "12px 14px", backdropFilter: "blur(8px)", border: "1px solid rgba(255,255,255,0.06)" }}>
                <div style={{ fontSize: 10, color: "rgba(255,255,255,0.55)", fontFamily: T.sans, letterSpacing: 0.5, textTransform: "uppercase" }}>{d.l}</div>
                <div style={{ color: "#FFF", marginTop: 4 }}><span style={{ fontSize: 22, fontWeight: 800, fontFamily: T.font }}>{d.v}</span><span style={{ fontSize: 10, opacity: 0.6, marginLeft: 4, fontFamily: T.sans }}>{d.u}</span></div>
              </div>
            ))}
          </div>
        </div>
      </FadeIn>
      <FadeIn delay={80}>
        <div style={{ display: "flex", gap: 0, padding: "18px 16px 10px", justifyContent: "space-between" }}>
          {[{ icon: "📱", label: "Pay", s: "card" }, { icon: "💰", label: "Top Up", s: "wallet" }, { icon: "⭐", label: "Stamps", s: "stamps" }, { icon: "🎁", label: "Rewards", s: "rewards" }].map(a => (
            <div key={a.label} onClick={() => go(a.s)} style={{ width: 76, textAlign: "center", cursor: "pointer" }}>
              <div style={{ width: 50, height: 50, borderRadius: T.r.md, background: c.card, display: "flex", alignItems: "center", justifyContent: "center", margin: "0 auto", fontSize: 22, boxShadow: "0 2px 8px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03)" }}>{a.icon}</div>
              <div style={{ fontSize: 10, color: c.ink2, marginTop: 7, fontWeight: 600, fontFamily: T.sans }}>{a.label}</div>
            </div>
          ))}
        </div>
      </FadeIn>
      <FadeIn delay={160}>
        <div style={{ padding: "6px 24px 0" }}>
          <div style={{ background: isBT ? T.bt.grad : T.fs.grad, borderRadius: T.r.lg, padding: "18px 20px", color: "#FFF", position: "relative", overflow: "hidden" }}>
            <div style={{ position: "absolute", right: -10, bottom: -10, fontSize: 60, opacity: 0.15, transform: "rotate(-15deg)" }}>{isBT ? "☕" : "🍜"}</div>
            <div style={{ fontSize: 13, fontWeight: 600, fontFamily: T.sans, lineHeight: 1.5, maxWidth: "80%" }}>{isBT ? "Double stamps on all coffees this week ☕" : "FoodStreat Friday — 20% off all stalls 🎉"}</div>
            <div style={{ marginTop: 12, fontSize: 11, fontWeight: 700, fontFamily: T.sans, background: "rgba(255,255,255,0.2)", display: "inline-block", padding: "6px 14px", borderRadius: 8 }}>View Details →</div>
          </div>
        </div>
      </FadeIn>
      <FadeIn delay={240}>
        <div style={{ marginTop: 20 }}>
          <SectionHead title="Active Stamp Card" action="See All →" onAction={() => go("stamps")} c={c} />
          <div style={{ margin: "0 24px", background: c.card, borderRadius: T.r.lg, padding: "18px", boxShadow: "0 2px 12px rgba(0,0,0,0.04)" }}>
            <div style={{ display: "flex", justifyContent: "space-between", alignItems: "center" }}>
              <div>
                <div style={{ fontSize: 14, fontWeight: 700, color: c.ink, fontFamily: T.font }}>{isBT ? "Coffee Lover Card" : "Lunch Champion"}</div>
                <div style={{ fontSize: 11, color: c.ink3, marginTop: 3, fontFamily: T.sans }}>{isBT ? "Buy 9 coffees, get 1 FREE" : "5 lunches = Free dessert"}</div>
              </div>
              <div style={{ fontSize: 16, fontWeight: 800, color: c.pri, fontFamily: T.font }}>{isBT ? "6" : "3"}<span style={{ fontSize: 11, color: c.ink3, fontWeight: 500 }}>/{isBT ? "10" : "5"}</span></div>
            </div>
            <div style={{ display: "flex", gap: 6, marginTop: 14 }}>
              {Array.from({ length: isBT ? 10 : 5 }).map((_, i) => (
                <div key={i} style={{ flex: 1, aspectRatio: "1", borderRadius: 8, maxHeight: 30, background: i < (isBT ? 6 : 3) ? c.pri : i === (isBT ? 9 : 4) ? c.warm : c.surf, border: i < (isBT ? 6 : 3) ? "none" : `1.5px dashed ${c.ink3}40`, display: "flex", alignItems: "center", justifyContent: "center" }}>
                  {i < (isBT ? 6 : 3) ? <span style={{ color: "#FFF", fontSize: 10, fontWeight: 700 }}>✓</span> : i === (isBT ? 9 : 4) ? <span style={{ fontSize: 10 }}>🎁</span> : null}
                </div>
              ))}
            </div>
          </div>
        </div>
      </FadeIn>
      <FadeIn delay={320}>
        <div style={{ marginTop: 22, paddingBottom: 90 }}>
          <SectionHead title="Recent Activity" c={c} />
          <div style={{ padding: "0 24px" }}>
            {[{ icon: isBT ? "🍞" : "🍜", name: isBT ? "BreadTalk Junction City" : "Tokyo Ramen", amount: isBT ? "-4,500" : "-6,500", time: "Today, 2:15 PM", tag: "+1 stamp" }, { icon: "💰", name: "MMQR Top-Up", amount: "+20,000", time: "Yesterday", tag: "" }, { icon: isBT ? "🍞" : "🍜", name: isBT ? "BreadTalk Sule Square" : "Thai Express", amount: isBT ? "-3,200" : "-5,000", time: "Feb 7", tag: "+1 stamp" }].map((tx, i) => (
              <div key={i} style={{ display: "flex", alignItems: "center", gap: 14, padding: "13px 0", borderBottom: i < 2 ? `1px solid ${c.surf}` : "none" }}>
                <div style={{ width: 42, height: 42, borderRadius: T.r.sm, background: tx.amount.startsWith("+") ? "#ECFDF5" : c.surf, display: "flex", alignItems: "center", justifyContent: "center", fontSize: 18, flexShrink: 0 }}>{tx.icon}</div>
                <div style={{ flex: 1, minWidth: 0 }}>
                  <div style={{ fontSize: 13, fontWeight: 600, color: c.ink, fontFamily: T.sans, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }}>{tx.name}</div>
                  <div style={{ fontSize: 11, color: c.ink3, marginTop: 2, fontFamily: T.sans }}>{tx.time}</div>
                </div>
                <div style={{ textAlign: "right", flexShrink: 0 }}>
                  <div style={{ fontSize: 14, fontWeight: 700, fontFamily: T.font, color: tx.amount.startsWith("+") ? T.green : c.ink }}>{tx.amount}</div>
                  {tx.tag && <div style={{ fontSize: 9, color: c.pri, fontWeight: 700, marginTop: 2, fontFamily: T.sans }}>{tx.tag}</div>}
                </div>
              </div>
            ))}
          </div>
        </div>
      </FadeIn>
      <Nav active="home" go={go} c={c} />
    </div>
  );
};

// ═══ CARD ═══
const CardScreen = ({ brand, go }) => {
  const c = T[brand]; const [big, setBig] = useState(false); const isBT = brand === "bt";
  return (
    <div style={{ background: c.bg, minHeight: 700 }}>
      <FadeIn><div style={{ padding: "14px 24px 6px" }}><h2 style={{ fontSize: 22, fontWeight: 700, color: c.ink, fontFamily: T.font, margin: 0 }}>My Card</h2></div></FadeIn>
      <FadeIn delay={60}>
        <div style={{ padding: "10px 24px" }}>
          <div style={{ background: isBT ? T.bt.gradDark : c.gradDark, borderRadius: T.r.xl, padding: "26px 24px 22px", color: "#FFF", position: "relative", overflow: "hidden", boxShadow: "0 12px 40px rgba(0,0,0,0.25)" }}>
            <div style={{ position: "absolute", right: -30, bottom: -30, width: 160, height: 160, borderRadius: "50%", background: "rgba(232,137,28,0.08)" }} />
            <div style={{ position: "absolute", right: 40, top: -20, width: 80, height: 80, borderRadius: "50%", background: "rgba(232,137,28,0.05)" }} />
            <div style={{ display: "flex", justifyContent: "space-between", alignItems: "flex-start" }}>
              <BrandLogo brand={brand} height={brand === "bt" ? 22 : 36} style={{ filter: "brightness(1.3)" }} />
              <Pill color="#FFF" bg="rgba(232,137,28,0.3)">🥇 GOLD</Pill>
            </div>
            <div style={{ marginTop: 22, fontSize: 17, fontWeight: 600, letterSpacing: 3, fontFamily: T.sans }}>BT-2602-A7K9X</div>
            <div style={{ display: "flex", justifyContent: "space-between", marginTop: 18 }}>
              {[["Member", "Zeya"], ["Since", "Feb 2026"], ["Balance", "45,500"]].map(([l, v]) => (<div key={l}><div style={{ fontSize: 8, opacity: 0.5, textTransform: "uppercase", letterSpacing: 1.5, fontFamily: T.sans }}>{l}</div><div style={{ fontSize: 14, fontWeight: 600, marginTop: 3, fontFamily: T.font }}>{v}</div></div>))}
            </div>
          </div>
        </div>
      </FadeIn>
      <FadeIn delay={140}>
        <div onClick={() => setBig(!big)} style={{ margin: "14px 24px", background: c.card, borderRadius: T.r.lg, padding: "22px 24px", textAlign: "center", cursor: "pointer", boxShadow: "0 2px 12px rgba(0,0,0,0.04)", transition: `transform 0.35s ${ease}`, transform: big ? "scale(1.03)" : "scale(1)" }}>
          <div style={{ fontSize: 13, fontWeight: 700, color: c.ink, fontFamily: T.sans, marginBottom: 16 }}>Scan to Pay or Earn Stamps</div>
          <div style={{ width: big ? 200 : 150, height: big ? 200 : 150, margin: "0 auto", background: c.surf, borderRadius: T.r.md, padding: 12, display: "grid", gridTemplateColumns: "repeat(9,1fr)", gridTemplateRows: "repeat(9,1fr)", gap: 2, transition: `all 0.35s ${ease}` }}>
            {Array.from({ length: 81 }).map((_, i) => (<div key={i} style={{ background: [0,1,2,6,7,8,9,17,18,26,27,35,36,44,45,53,54,62,63,71,72,73,74,78,79,80,3,4,12,21,30,39,48,57,66,75,76,77,40,41,49,50,58,59,31,32,22,23,14,15].includes(i) ? c.ink : "transparent", borderRadius: 1.5 }} />))}
          </div>
          <div style={{ fontSize: 10, color: c.ink3, marginTop: 14, fontFamily: T.sans }}>{big ? "Tap to minimize" : "Tap to enlarge"} · Auto-refreshes in 0:45</div>
        </div>
      </FadeIn>
      <div style={{ height: 80 }} />
      <Nav active="card" go={go} c={c} />
    </div>
  );
};

// ═══ WALLET ═══
const Wallet = ({ brand, go }) => {
  const c = T[brand]; const [topUp, setTopUp] = useState(false); const [sel, setSel] = useState(null); const isBT = brand === "bt";
  if (topUp) return (
    <div style={{ background: c.bg, minHeight: 700 }}>
      <div style={{ padding: "14px 24px", display: "flex", alignItems: "center", gap: 14 }}><span onClick={() => setTopUp(false)} style={{ cursor: "pointer", fontSize: 18, color: c.ink }}>←</span><h2 style={{ fontSize: 20, fontWeight: 700, color: c.ink, fontFamily: T.font, margin: 0 }}>Top Up</h2></div>
      <FadeIn><div style={{ padding: "0 24px" }}>
        <div style={{ fontSize: 12, color: c.ink2, fontFamily: T.sans, marginBottom: 14, fontWeight: 600, letterSpacing: 0.3, textTransform: "uppercase" }}>Select Amount</div>
        <div style={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: 12 }}>
          {[5000, 10000, 20000, 50000].map(a => (<div key={a} onClick={() => setSel(a)} style={{ background: sel === a ? c.pri : c.card, color: sel === a ? "#FFF" : c.ink, borderRadius: T.r.md, padding: "20px 16px", textAlign: "center", border: `2px solid ${sel === a ? c.pri : c.surf}`, cursor: "pointer", transition: `all 0.2s ${ease}`, boxShadow: sel === a ? `0 4px 16px ${c.pri}30` : "none" }}><div style={{ fontSize: 22, fontWeight: 800, fontFamily: T.font }}>{a.toLocaleString()}</div><div style={{ fontSize: 10, opacity: 0.7, marginTop: 2, fontFamily: T.sans }}>MMK</div></div>))}
        </div>
        <div style={{ marginTop: 20, fontSize: 12, fontWeight: 600, color: c.ink, fontFamily: T.sans, textTransform: "uppercase" }}>Pay with</div>
        <div style={{ marginTop: 10, background: c.card, borderRadius: T.r.md, padding: 16, border: `2px solid ${c.pri}`, display: "flex", alignItems: "center", gap: 14 }}>
          <div style={{ width: 42, height: 42, borderRadius: T.r.sm, background: c.surf, display: "flex", alignItems: "center", justifyContent: "center", fontSize: 20 }}>📱</div>
          <div style={{ flex: 1 }}><div style={{ fontSize: 14, fontWeight: 700, color: c.ink, fontFamily: T.sans }}>MMQR Payment</div><div style={{ fontSize: 11, color: c.ink3, fontFamily: T.sans, marginTop: 2 }}>All Myanmar banks supported</div></div>
          <div style={{ color: c.pri, fontSize: 16, fontWeight: 700 }}>✓</div>
        </div>
        <button style={{ marginTop: 24, width: "100%", padding: "16px 0", background: sel ? c.grad : c.surf, color: sel ? "#FFF" : c.ink3, border: "none", borderRadius: T.r.md, fontSize: 15, fontWeight: 700, fontFamily: T.sans, cursor: sel ? "pointer" : "default", boxShadow: sel ? `0 4px 20px ${c.pri}30` : "none" }}>Top Up {sel ? `${sel.toLocaleString()} MMK` : ""}</button>
      </div></FadeIn>
      <div style={{ height: 80 }} /><Nav active="wallet" go={go} c={c} />
    </div>
  );
  return (
    <div style={{ background: c.bg, minHeight: 700 }}>
      <FadeIn><div style={{ padding: "14px 24px 6px" }}><h2 style={{ fontSize: 22, fontWeight: 700, color: c.ink, fontFamily: T.font, margin: 0 }}>Wallet</h2></div></FadeIn>
      <FadeIn delay={60}><div style={{ padding: "10px 24px" }}>
        <div style={{ background: isBT ? T.bt.gradDark : c.gradDark, borderRadius: T.r.xl, padding: "26px 24px 22px", color: "#FFF", position: "relative", overflow: "hidden", boxShadow: "0 12px 40px rgba(0,0,0,0.25)" }}>
          <div style={{ position: "absolute", right: -20, bottom: -20, width: 120, height: 120, borderRadius: "50%", background: "rgba(232,137,28,0.08)" }} />
          <BrandLogo brand={brand} height={brand === "bt" ? 16 : 26} style={{ filter: "brightness(1.3)", marginBottom: 10 }} />
          <div style={{ fontSize: 11, opacity: 0.6, fontFamily: T.sans, letterSpacing: 0.5, textTransform: "uppercase" }}>Available Balance</div>
          <div style={{ fontSize: 38, fontWeight: 800, fontFamily: T.font, marginTop: 6 }}>45,500 <span style={{ fontSize: 13, fontWeight: 400, fontFamily: T.sans }}>MMK</span></div>
          <div style={{ display: "flex", gap: 12, marginTop: 20 }}>
            <button onClick={() => setTopUp(true)} style={{ flex: 1, padding: "13px 0", background: "rgba(255,255,255,0.1)", border: "1px solid rgba(255,255,255,0.15)", borderRadius: T.r.sm, color: "#FFF", fontSize: 13, fontWeight: 700, cursor: "pointer", fontFamily: T.sans, backdropFilter: "blur(8px)" }}>💰 Top Up</button>
            <button onClick={() => go("card")} style={{ flex: 1, padding: "13px 0", background: "#E8891C", border: "none", borderRadius: T.r.sm, color: "#FFF", fontSize: 13, fontWeight: 700, cursor: "pointer", fontFamily: T.sans }}>📱 Pay</button>
          </div>
        </div>
      </div></FadeIn>
      <FadeIn delay={140}><div style={{ display: "flex", gap: 10, padding: "14px 24px" }}>
        {[{ l: "Spent", v: "78,200", col: c.ink }, { l: "Top-ups", v: "100K", col: T.green }, { l: "Visits", v: "12", col: c.pri }].map(s => (<div key={s.l} style={{ flex: 1, background: c.card, borderRadius: T.r.md, padding: "14px 12px", boxShadow: "0 1px 4px rgba(0,0,0,0.03)" }}><div style={{ fontSize: 9, color: c.ink3, fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 0.5 }}>{s.l}</div><div style={{ fontSize: 18, fontWeight: 800, color: s.col, fontFamily: T.font, marginTop: 4 }}>{s.v}</div></div>))}
      </div></FadeIn>
      <div style={{ height: 80 }} /><Nav active="wallet" go={go} c={c} />
    </div>
  );
};

// ═══ STAMPS ═══
const Stamps = ({ brand, go }) => {
  const c = T[brand]; const isBT = brand === "bt";
  const cards = isBT ? [{ name: "Coffee Lover Card", desc: "Buy 9 coffees, get 1 FREE ☕", stamps: 6, total: 10, reward: "Free Coffee", exp: "Mar 31" }, { name: "Pastry Explorer", desc: "Try 5 pastries, earn 3,000 pts 🥐", stamps: 2, total: 5, reward: "3,000 Points", exp: "Apr 30" }] : [{ name: "Lunch Champion", desc: "5 lunches = Free dessert 🍜", stamps: 3, total: 5, reward: "Free Dessert", exp: "Mar 15" }, { name: "Stall Hopper", desc: "Visit 8 different stalls 🎪", stamps: 5, total: 8, reward: "10K Voucher", exp: "May 31" }];
  return (
    <div style={{ background: c.bg, minHeight: 700 }}>
      <FadeIn><div style={{ padding: "14px 24px 6px" }}><h2 style={{ fontSize: 22, fontWeight: 700, color: c.ink, fontFamily: T.font, margin: 0 }}>Stamp Cards</h2><p style={{ fontSize: 12, color: c.ink3, fontFamily: T.sans, margin: "4px 0 0" }}>{cards.length} active cards</p></div></FadeIn>
      {cards.map((cd, ci) => (
        <FadeIn key={ci} delay={80 + ci * 100}>
          <div style={{ margin: "12px 24px", background: c.card, borderRadius: T.r.lg, padding: "18px", boxShadow: "0 2px 12px rgba(0,0,0,0.04)" }}>
            <div style={{ display: "flex", justifyContent: "space-between" }}>
              <div><div style={{ fontSize: 15, fontWeight: 700, color: c.ink, fontFamily: T.font }}>{cd.name}</div><div style={{ fontSize: 11, color: c.ink3, marginTop: 4, fontFamily: T.sans }}>{cd.desc}</div></div>
              <div style={{ fontSize: 16, fontWeight: 800, color: c.pri, fontFamily: T.font }}>{cd.stamps}<span style={{ fontSize: 11, color: c.ink3, fontWeight: 500 }}>/{cd.total}</span></div>
            </div>
            <div style={{ display: "flex", gap: 7, marginTop: 16, flexWrap: "wrap" }}>
              {Array.from({ length: cd.total }).map((_, i) => (<div key={i} style={{ width: 40, height: 40, borderRadius: T.r.sm, background: i < cd.stamps ? c.pri : i === cd.total - 1 ? c.warm : c.surf, border: i < cd.stamps ? "none" : `1.5px dashed ${c.ink3}40`, display: "flex", alignItems: "center", justifyContent: "center" }}>{i < cd.stamps ? <span style={{ color: "#FFF", fontSize: 14, fontWeight: 700 }}>✓</span> : i === cd.total - 1 ? <span style={{ fontSize: 14 }}>🎁</span> : <span style={{ color: c.ink3, fontSize: 11, fontFamily: T.sans }}>{i + 1}</span>}</div>))}
            </div>
            <div style={{ marginTop: 12, height: 5, background: c.surf, borderRadius: 3, overflow: "hidden" }}><div style={{ width: `${(cd.stamps / cd.total) * 100}%`, height: "100%", background: c.grad, borderRadius: 3 }} /></div>
            <div style={{ display: "flex", justifyContent: "space-between", marginTop: 10 }}><span style={{ fontSize: 10, color: c.ink3, fontFamily: T.sans }}>🎁 <strong style={{ color: c.ink }}>{cd.reward}</strong></span><span style={{ fontSize: 10, color: c.ink3, fontFamily: T.sans }}>Expires {cd.exp}</span></div>
          </div>
        </FadeIn>
      ))}
      <div style={{ height: 90 }} /><Nav active="home" go={go} c={c} />
    </div>
  );
};

// ═══ REWARDS CATALOG + REDEMPTION ═══
const REWARDS = {
  bt: [
    { id: 1, cat: "Free Items", name: "Free Artisan Coffee", desc: "Any handcrafted coffee, any size", pts: 800, img: "☕", tier: null, exp: "30 days", pop: true },
    { id: 2, cat: "Free Items", name: "Signature Floss Bun", desc: "Our iconic pork floss bun", pts: 500, img: "🍞", tier: null, exp: "14 days", pop: false },
    { id: 3, cat: "Free Items", name: "Seasonal Pastry Box", desc: "Chef\u2019s selection of 3 seasonal pastries", pts: 1500, img: "🥐", tier: "Silver", exp: "14 days", pop: true },
    { id: 4, cat: "Discounts", name: "20% Off Any Order", desc: "Single transaction up to 15,000 MMK", pts: 600, img: "🏷️", tier: null, exp: "7 days", pop: false },
    { id: 5, cat: "Discounts", name: "Buy 1 Get 1 Coffee", desc: "Any two coffees, lower price free", pts: 1000, img: "🎉", tier: null, exp: "14 days", pop: true },
    { id: 6, cat: "Upgrades", name: "Free Size Upgrade", desc: "Upgrade any drink to next size", pts: 300, img: "⬆️", tier: null, exp: "30 days", pop: false },
    { id: 7, cat: "Experiences", name: "VIP Tasting Event", desc: "Exclusive access to new product tasting", pts: 3000, img: "🌟", tier: "Gold", exp: "Event date", pop: false },
    { id: 8, cat: "Experiences", name: "Baking Workshop", desc: "Learn from our master bakers \u2014 2hr", pts: 5000, img: "👨\u200d🍳", tier: "Platinum", exp: "Event date", pop: false },
  ],
  fs: [
    { id: 1, cat: "Free Items", name: "Free Dessert", desc: "Any dessert from any stall", pts: 600, img: "🍰", tier: null, exp: "14 days", pop: true },
    { id: 2, cat: "Free Items", name: "Free Drink", desc: "Any beverage up to 2,000 MMK", pts: 400, img: "🥤", tier: null, exp: "14 days", pop: false },
    { id: 3, cat: "Discounts", name: "15% Off Lunch", desc: "Valid 11AM-2PM, single transaction", pts: 500, img: "🏷️", tier: null, exp: "7 days", pop: true },
    { id: 4, cat: "Discounts", name: "10,000 MMK Voucher", desc: "Use as credit at any stall", pts: 2000, img: "💵", tier: "Silver", exp: "30 days", pop: true },
    { id: 5, cat: "Upgrades", name: "Free Extra Portion", desc: "Double rice, noodle, or side", pts: 350, img: "⬆️", tier: null, exp: "14 days", pop: false },
    { id: 6, cat: "Experiences", name: "Stall Tour & Tasting", desc: "Behind-the-scenes at 3 stalls", pts: 4000, img: "🌟", tier: "Gold", exp: "Event date", pop: false },
  ],
};

const RewardsScreen = ({ brand, go }) => {
  const c = T[brand]; const [cat, setCat] = useState("All"); const [det, setDet] = useState(null); const [confirming, setConfirming] = useState(null); const [done, setDone] = useState(null);
  const rws = REWARDS[brand] || REWARDS.bt; const list = cat === "All" ? rws : rws.filter(r => r.cat === cat); const pts = 2340;

  if (done) return (
    <div style={{ background: c.bg, minHeight: 700 }}>
      <div style={{ height: 700, display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", padding: "0 32px", textAlign: "center" }}>
        <FadeIn><div style={{ width: 100, height: 100, borderRadius: "50%", background: "#ECFDF5", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 44, margin: "0 auto 20px", boxShadow: "0 8px 30px rgba(22,163,74,0.15)" }}>🎉</div></FadeIn>
        <FadeIn delay={200}><h2 style={{ fontSize: 24, fontWeight: 700, color: c.ink, fontFamily: T.font, margin: "0 0 8px" }}>Reward Redeemed!</h2><p style={{ fontSize: 13, color: c.ink2, fontFamily: T.sans, margin: "0 0 24px", lineHeight: 1.6 }}>Your <strong>{done.name}</strong> voucher is ready.</p></FadeIn>
        <FadeIn delay={400}>
          <div style={{ background: c.card, borderRadius: T.r.lg, padding: 24, width: "100%", boxShadow: "0 4px 20px rgba(0,0,0,0.06)", position: "relative", overflow: "hidden" }}>
            <div style={{ position: "absolute", left: 0, top: 0, bottom: 0, width: 5, background: c.grad }} />
            <div style={{ fontSize: 36, marginBottom: 10 }}>{done.img}</div>
            <div style={{ fontSize: 16, fontWeight: 700, color: c.ink, fontFamily: T.font }}>{done.name}</div>
            <div style={{ fontSize: 12, color: c.ink3, fontFamily: T.sans, margin: "6px 0 16px" }}>Valid for {done.exp}</div>
            <div style={{ width: 120, height: 120, margin: "0 auto", background: c.surf, borderRadius: T.r.md, display: "grid", gridTemplateColumns: "repeat(7,1fr)", gridTemplateRows: "repeat(7,1fr)", gap: 2, padding: 8 }}>
              {Array.from({ length: 49 }).map((_, i) => (<div key={i} style={{ background: [0,1,2,4,5,6,7,13,14,20,21,27,28,34,35,41,42,43,44,46,47,48,3,10,17,24,31,38,45].includes(i) ? c.ink : "transparent", borderRadius: 1.5 }} />))}
            </div>
            <div style={{ fontSize: 10, color: c.ink3, marginTop: 10, fontFamily: T.sans }}>Show this QR at checkout</div>
            <div style={{ fontSize: 11, color: c.pri, fontWeight: 700, fontFamily: T.sans, marginTop: 4, letterSpacing: 1 }}>VCH-BT-2602-7K9X</div>
          </div>
        </FadeIn>
        <FadeIn delay={600}><div style={{ display: "flex", gap: 12, marginTop: 24, width: "100%" }}>
          <button onClick={() => { setDone(null); setDet(null); setConfirming(null); }} style={{ flex: 1, padding: "14px 0", background: c.card, border: `2px solid ${c.surf}`, borderRadius: T.r.md, fontSize: 13, fontWeight: 700, color: c.ink, fontFamily: T.sans, cursor: "pointer" }}>Browse More</button>
          <button onClick={() => { setDone(null); setDet(null); setConfirming(null); go("profile"); }} style={{ flex: 1, padding: "14px 0", background: c.grad, border: "none", borderRadius: T.r.md, fontSize: 13, fontWeight: 700, color: "#FFF", fontFamily: T.sans, cursor: "pointer", boxShadow: `0 4px 16px ${c.pri}30` }}>My Vouchers</button>
        </div></FadeIn>
      </div>
    </div>
  );

  if (confirming) return (
    <div style={{ background: c.bg, minHeight: 700 }}>
      <div style={{ padding: "14px 24px", display: "flex", alignItems: "center", gap: 14 }}><span onClick={() => setConfirming(null)} style={{ cursor: "pointer", fontSize: 18, color: c.ink }}>←</span><h2 style={{ fontSize: 20, fontWeight: 700, color: c.ink, fontFamily: T.font, margin: 0 }}>Confirm Redemption</h2></div>
      <FadeIn><div style={{ padding: "12px 24px", textAlign: "center" }}>
        <div style={{ background: c.card, borderRadius: T.r.xl, padding: "32px 24px", boxShadow: "0 4px 24px rgba(0,0,0,0.06)" }}>
          <div style={{ fontSize: 56, marginBottom: 16 }}>{confirming.img}</div>
          <h3 style={{ fontSize: 20, fontWeight: 700, color: c.ink, fontFamily: T.font, margin: "0 0 6px" }}>{confirming.name}</h3>
          <p style={{ fontSize: 13, color: c.ink2, fontFamily: T.sans, margin: "0 0 20px" }}>{confirming.desc}</p>
          <div style={{ background: c.surf, borderRadius: T.r.md, padding: "16px 20px", display: "flex", justifyContent: "space-between", alignItems: "center" }}>
            <div style={{ textAlign: "left" }}><div style={{ fontSize: 10, color: c.ink3, fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 0.5 }}>Cost</div><div style={{ fontSize: 22, fontWeight: 800, color: c.pri, fontFamily: T.font, marginTop: 2 }}>{confirming.pts.toLocaleString()}</div></div>
            <div style={{ width: 1, height: 36, background: c.ink3 + "30" }} />
            <div style={{ textAlign: "right" }}><div style={{ fontSize: 10, color: c.ink3, fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 0.5 }}>Your Points</div><div style={{ fontSize: 22, fontWeight: 800, color: c.ink, fontFamily: T.font, marginTop: 2 }}>{pts.toLocaleString()}</div></div>
          </div>
          <div style={{ marginTop: 14, background: "#ECFDF5", borderRadius: T.r.sm, padding: "10px 14px", fontSize: 12, color: T.green, fontWeight: 600, fontFamily: T.sans }}>✓ After: {(pts - confirming.pts).toLocaleString()} pts remaining</div>
          <div style={{ marginTop: 16, textAlign: "left" }}>
            <div style={{ fontSize: 11, color: c.ink3, fontFamily: T.sans, marginBottom: 8, fontWeight: 600 }}>Terms:</div>
            {[`Valid for ${confirming.exp} after redemption`, "Single use — one transaction only", "Cannot combine with other promos", brand === "bt" ? "All BreadTalk outlets" : "All FoodStreat stalls"].map((t, i) => (
              <div key={i} style={{ fontSize: 11, color: c.ink2, fontFamily: T.sans, padding: "3px 0", display: "flex", gap: 6 }}><span style={{ color: c.ink3, fontSize: 8, marginTop: 3 }}>●</span><span>{t}</span></div>
            ))}
          </div>
        </div>
        <button onClick={() => setDone(confirming)} style={{ marginTop: 20, width: "100%", padding: "16px 0", background: c.grad, color: "#FFF", border: "none", borderRadius: T.r.md, fontSize: 15, fontWeight: 700, fontFamily: T.sans, cursor: "pointer", boxShadow: `0 6px 24px ${c.pri}35` }}>Redeem for {confirming.pts.toLocaleString()} Points</button>
        <button onClick={() => setConfirming(null)} style={{ marginTop: 10, width: "100%", padding: "14px 0", background: "transparent", color: c.ink2, border: "none", fontSize: 13, fontWeight: 600, fontFamily: T.sans, cursor: "pointer" }}>Cancel</button>
      </div></FadeIn>
    </div>
  );

  if (det) {
    const ok = pts >= det.pts;
    return (
      <div style={{ background: c.bg, minHeight: 700 }}>
        <div style={{ padding: "14px 24px", display: "flex", alignItems: "center", gap: 14 }}><span onClick={() => setDet(null)} style={{ cursor: "pointer", fontSize: 18, color: c.ink }}>←</span><h2 style={{ fontSize: 20, fontWeight: 700, color: c.ink, fontFamily: T.font, margin: 0 }}>Reward Details</h2></div>
        <FadeIn>
          <div style={{ margin: "0 24px", background: c.grad, borderRadius: T.r.xl, padding: "36px 24px 32px", textAlign: "center", color: "#FFF", position: "relative", overflow: "hidden" }}>
            <div style={{ position: "absolute", right: -20, top: -20, width: 100, height: 100, borderRadius: "50%", background: "rgba(255,255,255,0.1)" }} />
            <div style={{ fontSize: 60, marginBottom: 12, filter: "drop-shadow(0 4px 8px rgba(0,0,0,0.2))" }}>{det.img}</div>
            <h3 style={{ fontSize: 22, fontWeight: 700, fontFamily: T.font, margin: "0 0 6px" }}>{det.name}</h3>
            <p style={{ fontSize: 13, opacity: 0.85, fontFamily: T.sans, margin: 0 }}>{det.desc}</p>
            {det.tier && <div style={{ marginTop: 12, display: "inline-block", padding: "4px 12px", background: "rgba(255,255,255,0.15)", borderRadius: 20, fontSize: 10, fontWeight: 700, fontFamily: T.sans }}>{det.tier}+ Only</div>}
          </div>
        </FadeIn>
        <FadeIn delay={100}>
          <div style={{ margin: "16px 24px", background: c.card, borderRadius: T.r.lg, padding: 20, boxShadow: "0 2px 12px rgba(0,0,0,0.04)" }}>
            <div style={{ display: "flex", justifyContent: "space-between", alignItems: "center" }}>
              <div><div style={{ fontSize: 10, color: c.ink3, fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 0.5 }}>Required</div><div style={{ fontSize: 28, fontWeight: 800, color: c.pri, fontFamily: T.font, marginTop: 4 }}>{det.pts.toLocaleString()}</div></div>
              <div style={{ textAlign: "right" }}><div style={{ fontSize: 10, color: c.ink3, fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 0.5 }}>Your Points</div><div style={{ fontSize: 28, fontWeight: 800, color: ok ? T.green : "#EF4444", fontFamily: T.font, marginTop: 4 }}>{pts.toLocaleString()}</div></div>
            </div>
            {!ok && <div style={{ marginTop: 14, background: "#FEF2F2", borderRadius: T.r.sm, padding: "10px 14px", fontSize: 12, color: "#EF4444", fontWeight: 600, fontFamily: T.sans }}>Need {(det.pts - pts).toLocaleString()} more points</div>}
          </div>
        </FadeIn>
        <FadeIn delay={180}>
          <div style={{ margin: "0 24px", background: c.card, borderRadius: T.r.lg, padding: "18px 20px", boxShadow: "0 2px 12px rgba(0,0,0,0.04)" }}>
            <div style={{ fontSize: 13, fontWeight: 700, color: c.ink, fontFamily: T.sans, marginBottom: 12 }}>Details</div>
            {[["Validity", `${det.exp} after redemption`], ["Usage", "Single use"], ["Location", brand === "bt" ? "All BreadTalk outlets" : "All FoodStreat stalls"], ["Stackable", "No"]].map(([k, v], i) => (
              <div key={i} style={{ display: "flex", justifyContent: "space-between", padding: "9px 0", borderBottom: i < 3 ? `1px solid ${c.surf}` : "none" }}>
                <span style={{ fontSize: 12, color: c.ink3, fontFamily: T.sans }}>{k}</span><span style={{ fontSize: 12, color: c.ink, fontWeight: 600, fontFamily: T.sans }}>{v}</span>
              </div>
            ))}
          </div>
        </FadeIn>
        <FadeIn delay={260}><div style={{ padding: "20px 24px" }}>
          <button onClick={() => ok && setConfirming(det)} style={{ width: "100%", padding: "16px 0", background: ok ? c.grad : c.surf, color: ok ? "#FFF" : c.ink3, border: "none", borderRadius: T.r.md, fontSize: 15, fontWeight: 700, fontFamily: T.sans, cursor: ok ? "pointer" : "default", boxShadow: ok ? `0 6px 24px ${c.pri}35` : "none" }}>{ok ? `Redeem for ${det.pts.toLocaleString()} Points` : "Not Enough Points"}</button>
        </div></FadeIn>
      </div>
    );
  }

  return (
    <div style={{ background: c.bg, minHeight: 700 }}>
      <FadeIn>
        <div style={{ padding: "14px 24px 6px" }}>
          <h2 style={{ fontSize: 22, fontWeight: 700, color: c.ink, fontFamily: T.font, margin: 0 }}>Rewards</h2>
          <div style={{ display: "flex", alignItems: "center", gap: 8, marginTop: 6 }}><span style={{ fontSize: 13, color: c.ink2, fontFamily: T.sans }}>Your points:</span><span style={{ fontSize: 17, fontWeight: 800, color: c.pri, fontFamily: T.font }}>{pts.toLocaleString()}</span></div>
        </div>
      </FadeIn>
      <FadeIn delay={60}>
        <div style={{ display: "flex", gap: 8, padding: "12px 24px", overflowX: "auto" }}>
          {["All", "Free Items", "Discounts", "Upgrades", "Experiences"].map(ct => (
            <div key={ct} onClick={() => setCat(ct)} style={{ padding: "8px 16px", borderRadius: 20, whiteSpace: "nowrap", background: cat === ct ? c.pri : c.card, color: cat === ct ? "#FFF" : c.ink2, fontSize: 12, fontWeight: 600, fontFamily: T.sans, cursor: "pointer", border: `1.5px solid ${cat === ct ? c.pri : c.surf}`, transition: `all 0.25s ${ease}`, boxShadow: cat === ct ? `0 3px 12px ${c.pri}30` : "none" }}>{ct}</div>
          ))}
        </div>
      </FadeIn>
      {cat === "All" && <FadeIn delay={120}><div style={{ padding: "4px 24px 8px" }}>
        <div style={{ background: c.grad, borderRadius: T.r.lg, padding: "16px 18px", color: "#FFF", display: "flex", alignItems: "center", gap: 14, position: "relative", overflow: "hidden" }}>
          <div style={{ position: "absolute", right: -10, top: -10, width: 70, height: 70, borderRadius: "50%", background: "rgba(255,255,255,0.08)" }} />
          <div style={{ fontSize: 32 }}>✦</div>
          <div><div style={{ fontSize: 14, fontWeight: 700, fontFamily: T.sans }}>Points Unlock Great Rewards</div><div style={{ fontSize: 11, opacity: 0.8, fontFamily: T.sans, marginTop: 2 }}>Earn more by visiting more</div></div>
        </div>
      </div></FadeIn>}
      <div style={{ padding: "8px 24px 100px" }}>
        {list.map((rw, i) => {
          const ok = pts >= rw.pts;
          return (
            <FadeIn key={rw.id} delay={140 + i * 60}>
              <div onClick={() => setDet(rw)} style={{ background: c.card, borderRadius: T.r.lg, padding: "16px", marginBottom: 10, cursor: "pointer", boxShadow: "0 1px 6px rgba(0,0,0,0.03), 0 0 0 1px rgba(0,0,0,0.02)", display: "flex", gap: 14, alignItems: "center", position: "relative", overflow: "hidden" }}>
                <div style={{ position: "absolute", left: 0, top: 0, bottom: 0, width: 4, background: ok ? c.grad : c.surf }} />
                <div style={{ width: 52, height: 52, borderRadius: T.r.md, background: c.surf, display: "flex", alignItems: "center", justifyContent: "center", fontSize: 26, flexShrink: 0 }}>{rw.img}</div>
                <div style={{ flex: 1, minWidth: 0 }}>
                  <div style={{ display: "flex", alignItems: "center", gap: 6, flexWrap: "wrap" }}>
                    <span style={{ fontSize: 14, fontWeight: 700, color: c.ink, fontFamily: T.font }}>{rw.name}</span>
                    {rw.pop && <Pill color={T.gold} bg={T.gold + "15"}>⭐ Popular</Pill>}
                    {rw.tier && <Pill color={c.pri} bg={c.pri + "10"}>{rw.tier}+</Pill>}
                  </div>
                  <div style={{ fontSize: 11, color: c.ink3, fontFamily: T.sans, marginTop: 3, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }}>{rw.desc}</div>
                </div>
                <div style={{ textAlign: "center", flexShrink: 0, paddingLeft: 4 }}>
                  <div style={{ fontSize: 16, fontWeight: 800, fontFamily: T.font, color: ok ? c.pri : c.ink3 }}>{rw.pts.toLocaleString()}</div>
                  <div style={{ fontSize: 9, color: c.ink3, fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 0.5 }}>pts</div>
                </div>
              </div>
            </FadeIn>
          );
        })}
      </div>
      <Nav active="rewards" go={go} c={c} />
    </div>
  );
};

// ═══ PROFILE ═══
const Profile = ({ brand, go }) => {
  const c = T[brand];
  return (
    <div style={{ background: c.bg, minHeight: 700 }}>
      <FadeIn><div style={{ background: brand === "bt" ? T.bt.gradDark : c.gradDark, padding: "20px 24px 28px", color: "#FFF", borderRadius: `0 0 ${T.r.xl}px ${T.r.xl}px` }}>
        <BrandLogo brand={brand} height={brand === "bt" ? 18 : 28} style={{ filter: "brightness(1.3)", marginBottom: 14 }} />
        <div style={{ display: "flex", alignItems: "center", gap: 16 }}>
          <div style={{ width: 56, height: 56, borderRadius: 18, background: "rgba(255,255,255,0.1)", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 26 }}>👤</div>
          <div><div style={{ fontSize: 18, fontWeight: 700, fontFamily: T.font }}>Zeya</div><div style={{ fontSize: 12, opacity: 0.6, fontFamily: T.sans, marginTop: 2 }}>+95 09 XXX XXX XXX</div><Pill color="#FFF" bg="rgba(232,137,28,0.3)">🥇 Gold</Pill></div>
        </div>
      </div></FadeIn>
      <FadeIn delay={80}><div style={{ margin: "16px 24px", background: c.card, borderRadius: T.r.lg, padding: 18, boxShadow: "0 2px 12px rgba(0,0,0,0.04)" }}>
        <div style={{ fontSize: 13, fontWeight: 700, color: c.ink, fontFamily: T.sans, marginBottom: 10 }}>Tier Progress</div>
        <div style={{ display: "flex", justifyContent: "space-between", fontSize: 10, fontFamily: T.sans }}><span style={{ color: T.silver, fontWeight: 700 }}>Silver</span><span style={{ color: T.gold, fontWeight: 700 }}>● Gold</span><span style={{ color: c.ink3 }}>Platinum</span></div>
        <div style={{ height: 6, background: c.surf, borderRadius: 3, marginTop: 6, overflow: "hidden" }}><div style={{ width: "65%", height: "100%", background: c.grad, borderRadius: 3 }} /></div>
        <div style={{ fontSize: 11, color: c.ink3, marginTop: 8, fontFamily: T.sans }}>Spend <strong style={{ color: c.pri }}>350,000 MMK</strong> more for Platinum</div>
      </div></FadeIn>
      <FadeIn delay={140}><div style={{ padding: "0 24px 100px" }}>
        {[{ icon: "🎫", label: "My Vouchers", sub: "2 active" }, { icon: "👤", label: "Edit Profile", sub: "" }, { icon: "🔔", label: "Notifications", sub: "" }, { icon: "📍", label: "Store Locator", sub: "" }, { icon: "🔗", label: "Linked NFC Cards", sub: "1 linked" }, { icon: "🌐", label: "Language", sub: "English" }, { icon: "❓", label: "Help & Support", sub: "" }].map((it, i) => (
          <div key={i} style={{ display: "flex", alignItems: "center", gap: 14, padding: "14px 0", borderBottom: `1px solid ${c.surf}`, cursor: "pointer" }}>
            <div style={{ width: 40, height: 40, borderRadius: T.r.sm, background: c.card, display: "flex", alignItems: "center", justifyContent: "center", fontSize: 17, boxShadow: "0 1px 4px rgba(0,0,0,0.04)" }}>{it.icon}</div>
            <div style={{ flex: 1 }}><div style={{ fontSize: 14, fontWeight: 600, color: c.ink, fontFamily: T.sans }}>{it.label}</div>{it.sub && <div style={{ fontSize: 11, color: c.ink3, fontFamily: T.sans, marginTop: 1 }}>{it.sub}</div>}</div>
            <span style={{ color: c.ink3, fontSize: 13 }}>›</span>
          </div>
        ))}
      </div></FadeIn>
      <Nav active="profile" go={go} c={c} />
    </div>
  );
};

// ═══ POS WORKFLOW ═══
const POSWorkflow = ({ brand }) => {
  const c = T[brand]; const isBT = brand === "bt";
  const [step, setStep] = useState(0);
  const [autoPlay, setAutoPlay] = useState(false);

  useEffect(() => {
    if (!autoPlay) return;
    if (step >= 6) { setAutoPlay(false); return; }
    const t = setTimeout(() => setStep(s => s + 1), 2200);
    return () => clearTimeout(t);
  }, [step, autoPlay]);

  const memberData = { name: "Zeya", id: "BT-2602-A7K9X", tier: "Gold", tierIcon: "🥇", balance: "45,500", points: "2,340", stamps: "6/10", phone: "+95 09 XXX XXX" };
  const orderItems = isBT
    ? [{ name: "Artisan Latte", qty: 1, price: 3500 }, { name: "Signature Floss Bun", qty: 2, price: 2800 }, { name: "Butter Croissant", qty: 1, price: 2200 }]
    : [{ name: "Chicken Biryani", qty: 1, price: 5500 }, { name: "Thai Milk Tea", qty: 1, price: 2500 }, { name: "Mango Sticky Rice", qty: 1, price: 3000 }];
  const total = orderItems.reduce((s, i) => s + i.qty * i.price, 0);
  const pointsEarned = Math.floor(total / 100) * 2;

  const steps = [
    { label: "Waiting", desc: "Ready to serve next customer", icon: "🔍" },
    { label: "Member Identified", desc: "QR scanned — member found", icon: "✅" },
    { label: "Order Entry", desc: "Items added to the bill", icon: "🛒" },
    { label: "Payment", desc: "Processing wallet payment", icon: "💳" },
    { label: "Loyalty Credited", desc: "Stamps & points awarded", icon: "⭐" },
    { label: "Voucher Applied", desc: "Discount voucher redeemed", icon: "🎫" },
    { label: "Complete", desc: "Transaction finished", icon: "🎉" },
  ];

  const posGreen = "#22C55E"; const posBlue = "#3B82F6"; const posAmber = "#F59E0B";

  return (
    <div style={{ width: 620, background: "#111", borderRadius: 18, padding: 8, boxShadow: "0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px #333" }}>
      {/* Tablet bezel */}
      <div style={{ background: "#F5F5F5", borderRadius: 12, overflow: "hidden", minHeight: 580 }}>
        {/* POS Header Bar */}
        <div style={{ background: "#1E293B", padding: "10px 20px", display: "flex", justifyContent: "space-between", alignItems: "center" }}>
          <div style={{ display: "flex", alignItems: "center", gap: 10 }}>
            <div style={{ fontSize: 15, fontWeight: 800, color: "#FFF", fontFamily: T.sans }}>SmartSales</div>
            <div style={{ fontSize: 10, color: "#94A3B8", fontFamily: T.sans }}>POS Terminal</div>
          </div>
          <div style={{ display: "flex", alignItems: "center", gap: 12 }}>
            <BrandLogo brand={brand} height={brand === "bt" ? 14 : 20} style={{ filter: "brightness(1.5)" }} />
            <div style={{ fontSize: 10, color: "#94A3B8", fontFamily: T.sans }}>|</div>
            <div style={{ fontSize: 10, color: "#94A3B8", fontFamily: T.sans }}>Cashier: Ma Aye</div>
            <div style={{ width: 8, height: 8, borderRadius: "50%", background: posGreen }} />
          </div>
        </div>

        {/* Step Progress Bar */}
        <div style={{ background: "#FFF", padding: "12px 20px", borderBottom: "1px solid #E5E7EB", display: "flex", gap: 0, alignItems: "center" }}>
          {steps.map((s, i) => (
            <div key={i} style={{ display: "flex", alignItems: "center", flex: i < steps.length - 1 ? 1 : 0 }}>
              <div onClick={() => setStep(i)} style={{
                width: 28, height: 28, borderRadius: "50%", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 12, fontWeight: 700, fontFamily: T.sans, cursor: "pointer", flexShrink: 0, transition: `all 0.3s ${ease}`,
                background: i < step ? posGreen : i === step ? c.pri : "#E5E7EB",
                color: i <= step ? "#FFF" : "#9CA3AF",
                boxShadow: i === step ? `0 0 0 3px ${c.pri}30` : "none",
              }}>{i < step ? "✓" : i + 1}</div>
              {i < steps.length - 1 && <div style={{ flex: 1, height: 2, background: i < step ? posGreen : "#E5E7EB", margin: "0 4px", transition: `background 0.3s ${ease}` }} />}
            </div>
          ))}
        </div>

        {/* Step Label */}
        <div style={{ background: step === 6 ? "#ECFDF5" : "#FFF", padding: "10px 20px", borderBottom: "1px solid #E5E7EB", display: "flex", justifyContent: "space-between", alignItems: "center", transition: `background 0.3s ${ease}` }}>
          <div>
            <div style={{ fontSize: 16, fontWeight: 700, color: "#1E293B", fontFamily: T.font }}>{steps[step].icon} {steps[step].label}</div>
            <div style={{ fontSize: 11, color: "#64748B", fontFamily: T.sans, marginTop: 2 }}>{steps[step].desc}</div>
          </div>
          <div style={{ display: "flex", gap: 8 }}>
            <button onClick={() => setStep(Math.max(0, step - 1))} disabled={step === 0} style={{ padding: "6px 14px", borderRadius: 8, border: "1px solid #E5E7EB", background: "#FFF", color: step === 0 ? "#D1D5DB" : "#374151", fontSize: 11, fontWeight: 600, cursor: step === 0 ? "default" : "pointer", fontFamily: T.sans }}>← Back</button>
            <button onClick={() => setStep(Math.min(6, step + 1))} disabled={step === 6} style={{ padding: "6px 14px", borderRadius: 8, border: "none", background: step === 6 ? "#D1D5DB" : c.pri, color: "#FFF", fontSize: 11, fontWeight: 600, cursor: step === 6 ? "default" : "pointer", fontFamily: T.sans }}>Next →</button>
            <button onClick={() => { setStep(0); setAutoPlay(true); }} style={{ padding: "6px 14px", borderRadius: 8, border: `1px solid ${posGreen}`, background: autoPlay ? posGreen : "#FFF", color: autoPlay ? "#FFF" : posGreen, fontSize: 11, fontWeight: 600, cursor: "pointer", fontFamily: T.sans }}>▶ Auto</button>
          </div>
        </div>

        {/* Main POS Content */}
        <div style={{ display: "flex", minHeight: 420 }}>
          {/* LEFT: Order Panel */}
          <div style={{ flex: 1, padding: 16, borderRight: "1px solid #E5E7EB" }}>
            {/* Member Card (appears after step 1) */}
            {step >= 1 && (
              <FadeIn>
                <div style={{ background: step >= 1 ? "#F0FDF4" : "#F8FAFC", border: `1.5px solid ${step >= 1 ? posGreen : "#E5E7EB"}`, borderRadius: 12, padding: "12px 14px", marginBottom: 12, transition: `all 0.3s ${ease}` }}>
                  <div style={{ display: "flex", justifyContent: "space-between", alignItems: "flex-start" }}>
                    <div style={{ display: "flex", gap: 10, alignItems: "center" }}>
                      <div style={{ width: 40, height: 40, borderRadius: 10, background: c.pri + "15", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 18 }}>👤</div>
                      <div>
                        <div style={{ fontSize: 14, fontWeight: 700, color: "#1E293B", fontFamily: T.sans }}>{memberData.name}</div>
                        <div style={{ fontSize: 10, color: "#64748B", fontFamily: T.sans }}>{memberData.id} · {memberData.phone}</div>
                      </div>
                    </div>
                    <div style={{ display: "flex", gap: 6, alignItems: "center" }}>
                      <span style={{ fontSize: 13 }}>{memberData.tierIcon}</span>
                      <span style={{ fontSize: 11, fontWeight: 700, color: T.gold, fontFamily: T.sans }}>{memberData.tier}</span>
                    </div>
                  </div>
                  <div style={{ display: "flex", gap: 8, marginTop: 10 }}>
                    {[["Wallet", `${memberData.balance} MMK`, posGreen], ["Points", memberData.points, c.pri], ["Stamps", memberData.stamps, posAmber]].map(([l, v, col]) => (
                      <div key={l} style={{ flex: 1, background: "#FFF", borderRadius: 8, padding: "6px 8px", border: "1px solid #E5E7EB" }}>
                        <div style={{ fontSize: 8, color: "#94A3B8", fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 0.5 }}>{l}</div>
                        <div style={{ fontSize: 13, fontWeight: 700, color: col, fontFamily: T.font, marginTop: 1 }}>{v}</div>
                      </div>
                    ))}
                  </div>
                </div>
              </FadeIn>
            )}

            {/* Scan Prompt (step 0) */}
            {step === 0 && (
              <FadeIn>
                <div style={{ textAlign: "center", padding: "50px 20px" }}>
                  <div style={{ width: 80, height: 80, borderRadius: 20, background: "#F1F5F9", display: "flex", alignItems: "center", justifyContent: "center", margin: "0 auto 16px", fontSize: 36, border: "2px dashed #CBD5E1" }}>📱</div>
                  <div style={{ fontSize: 16, fontWeight: 700, color: "#1E293B", fontFamily: T.font }}>Scan Member QR Code</div>
                  <div style={{ fontSize: 12, color: "#64748B", fontFamily: T.sans, marginTop: 6 }}>Point POS scanner at customer's app QR code</div>
                  <div style={{ marginTop: 16, display: "inline-flex", alignItems: "center", gap: 6, padding: "8px 16px", background: posBlue + "10", borderRadius: 8, border: `1px solid ${posBlue}20` }}>
                    <div style={{ width: 8, height: 8, borderRadius: "50%", background: posBlue, animation: "pulse 1.5s infinite" }} />
                    <span style={{ fontSize: 11, color: posBlue, fontWeight: 600, fontFamily: T.sans }}>Scanner Ready</span>
                  </div>
                  <div style={{ marginTop: 20, padding: "10px 16px", background: "#FFF7ED", borderRadius: 8, border: "1px solid #FED7AA", textAlign: "left" }}>
                    <div style={{ fontSize: 10, fontWeight: 700, color: posAmber, fontFamily: T.sans, marginBottom: 4 }}>💡 ALSO ACCEPTS</div>
                    <div style={{ fontSize: 11, color: "#92400E", fontFamily: T.sans, lineHeight: 1.5 }}>NFC Card Tap · Manual Member ID · Phone Number Lookup</div>
                  </div>
                </div>
              </FadeIn>
            )}

            {/* Order Items (step 2+) */}
            {step >= 2 && (
              <FadeIn>
                <div style={{ background: "#FFF", borderRadius: 12, border: "1px solid #E5E7EB", overflow: "hidden" }}>
                  <div style={{ padding: "10px 14px", background: "#F8FAFC", borderBottom: "1px solid #E5E7EB", display: "flex", justifyContent: "space-between", alignItems: "center" }}>
                    <span style={{ fontSize: 12, fontWeight: 700, color: "#1E293B", fontFamily: T.sans }}>🛒 Order Items</span>
                    <span style={{ fontSize: 10, color: "#64748B", fontFamily: T.sans }}>Order #SS-2602-0847</span>
                  </div>
                  {orderItems.map((item, i) => (
                    <div key={i} style={{ padding: "10px 14px", display: "flex", justifyContent: "space-between", alignItems: "center", borderBottom: i < orderItems.length - 1 ? "1px solid #F1F5F9" : "none" }}>
                      <div>
                        <div style={{ fontSize: 13, fontWeight: 600, color: "#1E293B", fontFamily: T.sans }}>{item.name}</div>
                        <div style={{ fontSize: 10, color: "#94A3B8", fontFamily: T.sans }}>x{item.qty}</div>
                      </div>
                      <div style={{ fontSize: 13, fontWeight: 700, color: "#1E293B", fontFamily: T.font }}>{(item.qty * item.price).toLocaleString()}</div>
                    </div>
                  ))}
                  <div style={{ padding: "12px 14px", background: "#F8FAFC", borderTop: "1px solid #E5E7EB" }}>
                    {step >= 5 && (
                      <div style={{ display: "flex", justifyContent: "space-between", marginBottom: 6 }}>
                        <span style={{ fontSize: 11, color: posGreen, fontWeight: 600, fontFamily: T.sans }}>🎫 Voucher: 20% Off</span>
                        <span style={{ fontSize: 11, color: posGreen, fontWeight: 700, fontFamily: T.font }}>-{Math.round(total * 0.2).toLocaleString()}</span>
                      </div>
                    )}
                    <div style={{ display: "flex", justifyContent: "space-between", alignItems: "center" }}>
                      <span style={{ fontSize: 14, fontWeight: 700, color: "#1E293B", fontFamily: T.sans }}>TOTAL</span>
                      <div>
                        {step >= 5 && <span style={{ fontSize: 11, color: "#94A3B8", textDecoration: "line-through", marginRight: 8, fontFamily: T.font }}>{total.toLocaleString()}</span>}
                        <span style={{ fontSize: 18, fontWeight: 800, color: c.pri, fontFamily: T.font }}>{step >= 5 ? Math.round(total * 0.8).toLocaleString() : total.toLocaleString()} <span style={{ fontSize: 10, fontWeight: 400 }}>MMK</span></span>
                      </div>
                    </div>
                  </div>
                </div>
              </FadeIn>
            )}

            {/* Payment Processing (step 3) */}
            {step === 3 && (
              <FadeIn delay={100}>
                <div style={{ marginTop: 12, background: posBlue + "08", border: `1.5px solid ${posBlue}30`, borderRadius: 12, padding: 16, textAlign: "center" }}>
                  <div style={{ fontSize: 28, marginBottom: 8 }}>💳</div>
                  <div style={{ fontSize: 14, fontWeight: 700, color: posBlue, fontFamily: T.sans }}>Processing Wallet Payment</div>
                  <div style={{ fontSize: 11, color: "#64748B", fontFamily: T.sans, marginTop: 4 }}>Debiting {total.toLocaleString()} MMK from member wallet...</div>
                  <div style={{ marginTop: 12, height: 4, background: "#E5E7EB", borderRadius: 2, overflow: "hidden" }}>
                    <div style={{ width: "70%", height: "100%", background: `linear-gradient(90deg, ${posBlue}, ${c.pri})`, borderRadius: 2 }} />
                  </div>
                </div>
              </FadeIn>
            )}

            {/* Loyalty Credited (step 4) */}
            {step === 4 && (
              <FadeIn delay={100}>
                <div style={{ marginTop: 12, background: "#FFF7ED", border: "1.5px solid #FED7AA", borderRadius: 12, padding: 14 }}>
                  <div style={{ fontSize: 12, fontWeight: 700, color: posAmber, fontFamily: T.sans, marginBottom: 10 }}>⭐ LOYALTY AUTO-CREDITED</div>
                  <div style={{ display: "flex", gap: 10 }}>
                    <div style={{ flex: 1, background: "#FFF", borderRadius: 8, padding: "10px 12px", border: "1px solid #FED7AA", textAlign: "center" }}>
                      <div style={{ fontSize: 20, fontWeight: 800, color: c.pri, fontFamily: T.font }}>+{pointsEarned}</div>
                      <div style={{ fontSize: 9, color: "#92400E", fontFamily: T.sans, marginTop: 2 }}>POINTS (2x Gold)</div>
                    </div>
                    <div style={{ flex: 1, background: "#FFF", borderRadius: 8, padding: "10px 12px", border: "1px solid #FED7AA", textAlign: "center" }}>
                      <div style={{ fontSize: 20, fontWeight: 800, color: posAmber, fontFamily: T.font }}>+1</div>
                      <div style={{ fontSize: 9, color: "#92400E", fontFamily: T.sans, marginTop: 2 }}>STAMP ({isBT ? "Coffee Card" : "Lunch Card"})</div>
                    </div>
                  </div>
                  <div style={{ marginTop: 8, fontSize: 10, color: "#92400E", fontFamily: T.sans, textAlign: "center" }}>{isBT ? "Coffee Lover Card: 7/10 stamps" : "Lunch Champion: 4/5 stamps"} — {isBT ? "3 more to free coffee!" : "1 more to free dessert!"}</div>
                </div>
              </FadeIn>
            )}

            {/* Voucher Applied (step 5) */}
            {step === 5 && (
              <FadeIn delay={100}>
                <div style={{ marginTop: 12, background: "#F0FDF4", border: `1.5px solid ${posGreen}40`, borderRadius: 12, padding: 14 }}>
                  <div style={{ fontSize: 12, fontWeight: 700, color: posGreen, fontFamily: T.sans, marginBottom: 8 }}>🎫 VOUCHER REDEEMED</div>
                  <div style={{ display: "flex", gap: 10, alignItems: "center", background: "#FFF", borderRadius: 8, padding: "10px 12px", border: "1px solid #BBF7D0" }}>
                    <div style={{ fontSize: 24 }}>🏷️</div>
                    <div style={{ flex: 1 }}>
                      <div style={{ fontSize: 13, fontWeight: 700, color: "#1E293B", fontFamily: T.sans }}>20% Off Any Order</div>
                      <div style={{ fontSize: 10, color: "#64748B", fontFamily: T.sans }}>VCH-BT-2602-7K9X · Scanned from app</div>
                    </div>
                    <div style={{ fontSize: 14, fontWeight: 800, color: posGreen, fontFamily: T.font }}>-{Math.round(total * 0.2).toLocaleString()}</div>
                  </div>
                </div>
              </FadeIn>
            )}

            {/* Complete (step 6) */}
            {step === 6 && (
              <FadeIn delay={100}>
                <div style={{ marginTop: 12, background: "#F0FDF4", border: `1.5px solid ${posGreen}`, borderRadius: 12, padding: 20, textAlign: "center" }}>
                  <div style={{ fontSize: 36, marginBottom: 8 }}>🎉</div>
                  <div style={{ fontSize: 16, fontWeight: 700, color: posGreen, fontFamily: T.font }}>Transaction Complete!</div>
                  <div style={{ fontSize: 11, color: "#64748B", fontFamily: T.sans, marginTop: 4, lineHeight: 1.6 }}>
                    Receipt sent to app · Balance updated in real-time
                  </div>
                  <div style={{ display: "flex", gap: 8, marginTop: 14, justifyContent: "center" }}>
                    <button onClick={() => setStep(0)} style={{ padding: "10px 20px", borderRadius: 8, border: "none", background: posGreen, color: "#FFF", fontSize: 12, fontWeight: 700, fontFamily: T.sans, cursor: "pointer" }}>✓ Next Customer</button>
                    <button style={{ padding: "10px 20px", borderRadius: 8, border: "1px solid #E5E7EB", background: "#FFF", color: "#374151", fontSize: 12, fontWeight: 600, fontFamily: T.sans, cursor: "pointer" }}>🖨 Print Receipt</button>
                  </div>
                </div>
              </FadeIn>
            )}
          </div>

          {/* RIGHT: Status & API Panel */}
          <div style={{ width: 210, background: "#F8FAFC", padding: 14, overflow: "auto" }}>
            <div style={{ fontSize: 10, fontWeight: 700, color: "#64748B", fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 0.8, marginBottom: 10 }}>System Log</div>
            {/* API calls log */}
            {[
              step >= 0 && { api: "POS Ready", method: "SYS", status: "online", color: posGreen },
              step >= 1 && { api: "/member/lookup", method: "POST", status: "200 OK", color: posGreen, detail: "QR → member_id: BT-2602-A7K9X" },
              step >= 1 && { api: "/member/profile", method: "GET", status: "200 OK", color: posGreen, detail: "Tier: Gold, Balance: 45,500" },
              step >= 2 && { api: "/order/create", method: "POST", status: "201", color: posBlue, detail: `${orderItems.length} items, ${total.toLocaleString()} MMK` },
              step >= 3 && { api: "/wallet/pay", method: "POST", status: step >= 4 ? "200 OK" : "pending", color: step >= 4 ? posGreen : posAmber, detail: `Debit: ${total.toLocaleString()} MMK` },
              step >= 4 && { api: "/loyalty/credit", method: "POST", status: "200 OK", color: posGreen, detail: `+${pointsEarned} pts, +1 stamp` },
              step >= 4 && { api: "WebSocket → App", method: "PUSH", status: "sent", color: posBlue, detail: "Real-time balance update" },
              step >= 5 && { api: "/voucher/redeem", method: "POST", status: "200 OK", color: posGreen, detail: "VCH-BT-2602-7K9X applied" },
              step >= 5 && { api: "/order/update", method: "PATCH", status: "200 OK", color: posBlue, detail: `New total: ${Math.round(total * 0.8).toLocaleString()}` },
              step >= 6 && { api: "/receipt/generate", method: "POST", status: "201", color: posGreen, detail: "Digital receipt → app" },
              step >= 6 && { api: "/notification/push", method: "POST", status: "sent", color: posBlue, detail: "FCM → customer app" },
            ].filter(Boolean).map((log, i) => (
              <FadeIn key={i} delay={i * 40}>
                <div style={{ padding: "7px 8px", background: "#FFF", borderRadius: 8, marginBottom: 5, border: "1px solid #E5E7EB", fontSize: 9, fontFamily: "monospace" }}>
                  <div style={{ display: "flex", justifyContent: "space-between", alignItems: "center" }}>
                    <span style={{ fontWeight: 700, color: "#374151" }}>{log.method}</span>
                    <span style={{ color: log.color, fontWeight: 700, fontSize: 8 }}>● {log.status}</span>
                  </div>
                  <div style={{ color: "#64748B", marginTop: 2, fontWeight: 600 }}>{log.api}</div>
                  {log.detail && <div style={{ color: "#94A3B8", marginTop: 1, fontSize: 8 }}>{log.detail}</div>}
                </div>
              </FadeIn>
            ))}

            {/* Data flow legend */}
            <div style={{ marginTop: 12, padding: "10px 10px", background: "#FFF", borderRadius: 8, border: "1px solid #E5E7EB" }}>
              <div style={{ fontSize: 9, fontWeight: 700, color: "#64748B", fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 0.5, marginBottom: 6 }}>Data Flow</div>
              {[
                ["POS Scanner", "→", "Membership API"],
                ["API", "→", "Wallet Service"],
                ["API", "→", "Loyalty Engine"],
                ["WebSocket", "→", "Customer App"],
              ].map(([from, arrow, to], i) => (
                <div key={i} style={{ fontSize: 8, fontFamily: T.sans, color: "#64748B", padding: "3px 0", display: "flex", gap: 4, alignItems: "center" }}>
                  <span style={{ fontWeight: 700, color: "#374151" }}>{from}</span>
                  <span style={{ color: c.pri }}>{arrow}</span>
                  <span>{to}</span>
                </div>
              ))}
            </div>
          </div>
        </div>
      </div>
    </div>
  );
};

// ═══ APP SHELL ═══
const SCREENS = { splash: "Splash", home: "Home", card: "Digital Card", wallet: "Wallet & Top-Up", stamps: "Stamp Cards", rewards: "Rewards Catalog", profile: "Profile & More", pos: "POS Workflow" };

export default function App() {
  const [scr, setScr] = useState("splash"); const [brand, setBrand] = useState("bt");
  const go = (s) => setScr(s);
  const render = () => {
    switch (scr) {
      case "splash": return <Splash onNext={() => go("home")} />;
      case "home": return <Home brand={brand} go={go} setBrand={setBrand} />;
      case "card": return <CardScreen brand={brand} go={go} />;
      case "wallet": return <Wallet brand={brand} go={go} />;
      case "stamps": return <Stamps brand={brand} go={go} />;
      case "rewards": return <RewardsScreen brand={brand} go={go} />;
      case "profile": return <Profile brand={brand} go={go} />;
      case "pos": return null;
      default: return <Home brand={brand} go={go} setBrand={setBrand} />;
    }
  };

  return (
    <div style={{ minHeight: "100vh", background: "linear-gradient(160deg, #0A0A0A 0%, #1A1A1A 30%, #2A2A2A 60%, #1A1A1A 100%)", display: "flex", alignItems: "flex-start", justifyContent: "center", gap: 28, padding: "28px 20px", flexWrap: "wrap", fontFamily: T.sans }}>
      {scr === "pos" ? <POSWorkflow brand={brand} /> : <Phone>{render()}</Phone>}
      <div style={{ width: 240, background: "rgba(255,255,255,0.04)", borderRadius: 24, padding: 22, border: "1px solid rgba(255,255,255,0.06)", backdropFilter: "blur(20px)" }}>
        <div style={{ display: "flex", alignItems: "center", gap: 8, marginBottom: 4 }}>
          <BrandLogo brand="bt" height={16} />
          <span style={{ fontSize: 10, color: "rgba(255,255,255,0.35)", fontFamily: T.sans }}>Rewards</span>
        </div>
        <div style={{ fontSize: 10, color: "rgba(255,255,255,0.25)", fontFamily: T.sans, marginBottom: 18 }}>Interactive Prototype v2.2</div>
        <div style={{ padding: "10px 14px", background: "rgba(232,137,28,0.1)", borderRadius: 12, marginBottom: 16, border: "1px solid rgba(232,137,28,0.2)" }}>
          <div style={{ fontSize: 9, color: "rgba(255,255,255,0.4)", fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 1 }}>Current Screen</div>
          <div style={{ fontSize: 14, color: "#E8891C", fontWeight: 700, fontFamily: T.font, marginTop: 3 }}>{SCREENS[scr]}</div>
        </div>
        <div style={{ fontSize: 9, color: "rgba(255,255,255,0.3)", fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 1, marginBottom: 8 }}>Navigate</div>
        {Object.entries(SCREENS).map(([k, v]) => (
          <div key={k} onClick={() => go(k)} style={{ padding: "9px 12px", borderRadius: 10, marginBottom: 4, cursor: "pointer", background: scr === k ? "rgba(232,137,28,0.12)" : "transparent", border: scr === k ? "1px solid rgba(232,137,28,0.2)" : "1px solid transparent", color: scr === k ? "#E8891C" : "rgba(255,255,255,0.5)", fontSize: 12, fontWeight: scr === k ? 700 : 400, fontFamily: T.sans, transition: `all 0.2s ${ease}` }}>{scr === k ? "● " : ""}{v}</div>
        ))}
        <div style={{ marginTop: 16 }}>
          <div style={{ fontSize: 9, color: "rgba(255,255,255,0.3)", fontFamily: T.sans, textTransform: "uppercase", letterSpacing: 1, marginBottom: 8 }}>Brand Theme</div>
          <div style={{ display: "flex", gap: 8 }}>
            {[["bt", "BreadTalk", T.bt.pri], ["fs", "FoodStreat", T.fs.pri]].map(([b, l, col]) => (
              <div key={b} onClick={() => { setBrand(b); if (scr === "splash") go("home"); }} style={{ flex: 1, padding: "10px 6px", borderRadius: 10, textAlign: "center", background: brand === b ? col : "transparent", border: `1.5px solid ${brand === b ? col : "rgba(255,255,255,0.12)"}`, color: brand === b ? "#FFF" : "rgba(255,255,255,0.4)", fontSize: 10, fontWeight: 700, cursor: "pointer", fontFamily: T.sans, transition: `all 0.25s ${ease}` }}>{l}</div>
            ))}
          </div>
        </div>
        <div style={{ marginTop: 16, padding: "12px 14px", borderRadius: 12, background: "rgba(22,163,74,0.08)", border: "1px solid rgba(22,163,74,0.15)" }}>
          <div style={{ fontSize: 9, color: "#16A34A", fontWeight: 700, fontFamily: T.sans }}>REWARDS FLOW</div>
          <div style={{ fontSize: 10, color: "rgba(255,255,255,0.4)", fontFamily: T.sans, marginTop: 6, lineHeight: 1.7 }}>Catalog → Detail → Confirm → Voucher QR</div>
        </div>
        <div style={{ marginTop: 8, padding: "12px 14px", borderRadius: 12, background: "rgba(59,130,246,0.08)", border: "1px solid rgba(59,130,246,0.15)" }}>
          <div style={{ fontSize: 9, color: "#3B82F6", fontWeight: 700, fontFamily: T.sans }}>POS WORKFLOW</div>
          <div style={{ fontSize: 10, color: "rgba(255,255,255,0.4)", fontFamily: T.sans, marginTop: 6, lineHeight: 1.7 }}>Scan QR → Identify → Order → Pay → Loyalty → Voucher → Done</div>
        </div>
      </div>
    </div>
  );
}
