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

:root {
  --orange: #FC8019;
  --orange-light: #FFF3E8;
  --orange-dark: #E5710F;
  --white: #FFFFFF;
  --grey-bg: #F5F5F5;
  --grey-light: #E8E8E8;
  --charcoal: #333333;
  --text-sec: #666666;
  --green: #39A06F;
  --green-bg: #E8F5EE;
  --red: #E04F5F;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --r: 16px;
  --rs: 10px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: linear-gradient(135deg, #FDEBD3 0%, #FCD5A8 50%, #FDEBD3 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}

.demo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  width: 375px; height: 812px;
  background: var(--white);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 8px #1a1a1a, 0 0 0 10px #333;
}

/* Mobile: remove phone frame, go full screen */
@media (max-width: 500px) {
  body { padding: 0; background: var(--white); }
  .demo-wrapper { width: 100%; height: 100vh; }
  .phone-frame {
    width: 100%; height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  .page-footer { display: none; }
}

.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px 8px;
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
}
.time { font-size: 15px; font-weight: 600; }
.status-icons { display: flex; gap: 6px; align-items: center; }

.screen {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: none; flex-direction: column;
  padding-top: 44px; background: var(--white);
  animation: fadeSlideIn 0.3s ease;
}
.screen.active { display: flex; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ====== Persona Onboarding ====== */

.persona-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 32px 20px; overflow-y: auto;
}
.persona-header {
  text-align: center; margin-bottom: 24px;
}
.persona-header h2 {
  font-size: 22px; font-weight: 800; margin: 12px 0 6px;
}
.persona-header p {
  font-size: 13px; color: var(--text-sec); line-height: 1.5;
}
.persona-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 16px;
}
.persona-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 14px; background: var(--grey-bg);
  border: 2px solid transparent; border-radius: var(--r);
  cursor: pointer; text-align: left;
  font-family: inherit; transition: all 0.2s;
}
.persona-card:hover { border-color: var(--orange); background: var(--orange-light); }
.persona-card:active { transform: scale(0.97); }
.pc-emoji { font-size: 28px; margin-bottom: 6px; }
.persona-card strong { font-size: 14px; margin-bottom: 4px; }
.pc-desc { font-size: 11px; color: var(--text-sec); line-height: 1.4; margin-bottom: 6px; }
.pc-tag {
  font-size: 10px; font-weight: 600; color: var(--orange);
  background: var(--orange-light); padding: 2px 8px;
  border-radius: 10px;
}
.persona-skip {
  background: none; border: none; color: var(--text-sec);
  font-size: 13px; font-family: inherit; cursor: pointer;
  padding: 8px; text-align: center;
}
.persona-skip:hover { color: var(--charcoal); }

/* Persona Chip */
.persona-chip {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 16px; padding: 8px 12px;
  background: var(--orange-light); border-radius: var(--rs);
  font-size: 12px;
}
.persona-chip-emoji { font-size: 18px; }
.persona-chip-text { flex: 1; font-weight: 500; color: var(--charcoal); }
.persona-chip-change {
  background: none; border: none; color: var(--orange);
  font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit;
}

/* Suggested For You */
.suggested-section {
  padding: 12px 16px 0;
}
.suggested-section h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 10px;
}
.suggested-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 8px; -webkit-overflow-scrolling: touch;
}
.suggested-card {
  min-width: 130px; background: var(--grey-bg);
  border-radius: var(--r); padding: 12px;
  cursor: pointer; transition: all 0.2s;
  flex-shrink: 0;
}
.suggested-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sc-emoji { font-size: 32px; display: block; margin-bottom: 6px; }
.sc-name { font-size: 13px; font-weight: 600; display: block; margin-bottom: 2px; }
.sc-reason { font-size: 10px; color: var(--text-sec); line-height: 1.3; display: block; margin-bottom: 6px; }
.sc-tag {
  font-size: 9px; font-weight: 600; padding: 2px 6px;
  border-radius: 8px; display: inline-block;
}
.sc-tag.protein { background: #FDECEA; color: #E04F5F; }
.sc-tag.healthy { background: var(--green-bg); color: var(--green); }
.sc-tag.value { background: #E8F0FE; color: #1967D2; }
.sc-tag.trending { background: var(--orange-light); color: var(--orange); }

/* ====== Platform Tabs ====== */

.platform-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--grey-light);
}
.ptab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; background: none; border: none; border-bottom: 2px solid transparent;
  font-size: 13px; font-weight: 600; color: var(--text-sec);
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.ptab.active { color: var(--charcoal); border-bottom-color: var(--charcoal); }
.ptab:hover { background: var(--grey-bg); }

.platform-view { display: none; flex: 1; overflow-y: auto; }
.platform-view.active { display: flex; flex-direction: column; }

/* ====== YouTube Simulation ====== */

.yt-player {
  height: 200px;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
  display: flex; align-items: center; justify-content: center;
}
.yt-play-big {
  width: 60px; height: 42px;
  background: rgba(255,0,0,0.85); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white;
}

.yt-video-meta { padding: 12px 16px 0; }
.yt-title { font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.yt-channel { font-size: 12px; color: var(--text-sec); margin-bottom: 12px; }

.yt-actions {
  display: flex; gap: 0; padding: 0 8px;
  border-bottom: 1px solid var(--grey-light);
}
.yt-action-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 0; background: none; border: none;
  font-size: 11px; font-family: inherit; color: var(--charcoal); cursor: pointer;
}
.yt-action-btn.highlight { color: var(--orange); font-weight: 600; }

.yt-description {
  padding: 12px 16px;
  font-size: 13px; line-height: 1.5; color: var(--text-sec);
}

/* Share Sheet */
.share-sheet {
  position: absolute; bottom: -300px; left: 0; right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
  padding: 12px 20px 30px;
  transition: bottom 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 200;
}
.share-sheet.visible { bottom: 0; }
.share-sheet-handle {
  width: 36px; height: 4px; background: var(--grey-light);
  border-radius: 2px; margin: 0 auto 14px;
}
.share-sheet-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.share-sheet-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.share-app { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.share-app span { font-size: 10px; color: var(--text-sec); text-align: center; line-height: 1.2; }
.share-app-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.share-app-icon.wa { background: #25D366; }
.share-app-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-app-icon.tw { background: #000; }
.share-app-icon.swiggy { background: var(--orange); animation: pulse 2s ease-in-out infinite; }
.share-app-icon.copy { background: #666; }
.share-app-icon.more { background: #999; }
.swiggy-label { color: var(--orange) !important; font-weight: 600 !important; }

/* ====== Instagram Reel ====== */

.ig-reel {
  flex: 1; position: relative; overflow: hidden;
}
.ig-reel-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #1a1a2e 0%, #2d1b3d 30%, #44225c 60%, #1a1a2e 100%);
}
.ig-reel-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
}
.ig-reel-sidebar {
  position: absolute; right: 10px; bottom: 100px;
  display: flex; flex-direction: column; gap: 18px; align-items: center;
}
.ig-sidebar-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  color: white; font-size: 11px; font-family: inherit;
}
.ig-sidebar-btn.highlight svg { filter: drop-shadow(0 0 8px rgba(252,128,25,0.6)); }
.ig-reel-info {
  position: absolute; bottom: 16px; left: 12px; right: 60px;
  color: white;
}
.ig-reel-user {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.ig-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #dc2743);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: white;
}
.ig-reel-user strong { font-size: 13px; }
.ig-follow {
  padding: 3px 12px; border: 1px solid white; border-radius: 6px;
  background: none; color: white; font-size: 11px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.ig-caption { font-size: 12px; line-height: 1.4; margin-bottom: 8px; opacity: 0.9; }
.ig-audio {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; opacity: 0.7;
}

/* ====== Diet Toggle ====== */

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-head h3 { margin-bottom: 0; }

.diet-toggle { display: flex; gap: 4px; }
.diet-btn {
  padding: 4px 10px; border: 1px solid var(--grey-light);
  border-radius: 16px; background: none;
  font-size: 11px; font-weight: 500; color: var(--text-sec);
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 4px;
  transition: all 0.2s;
}
.diet-btn.active { background: var(--charcoal); color: white; border-color: var(--charcoal); }
.veg-dot {
  width: 8px; height: 8px; border-radius: 2px; border: 1px solid;
  display: inline-block;
}
.veg-dot.green { border-color: #39A06F; background: #39A06F; }
.veg-dot.red { border-color: #E04F5F; background: #E04F5F; }

.recipe-pill.hidden { display: none; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252,128,25,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(252,128,25,0); }
}

/* ====== Swiggy Native Layout ====== */

.swiggy-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--grey-light);
  min-height: 48px;
}
.topbar-title { font-size: 16px; font-weight: 600; flex: 1; }
.back-btn {
  background: none; border: none; cursor: pointer; padding: 4px;
  display: flex; border-radius: 8px;
}
.info-btn { background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }

.swiggy-location {
  display: flex; align-items: center; gap: 8px; flex: 1;
}
.loc-title { font-size: 14px; font-weight: 700; display: block; }
.loc-sub { font-size: 11px; color: var(--text-sec); }
.swiggy-profile {
  width: 32px; height: 32px; background: var(--orange-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--orange);
}

/* Prism Banner */
.prism-banner {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 12px; padding: 12px 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: var(--r); color: white;
  animation: bannerGlow 3s ease-in-out infinite;
}
@keyframes bannerGlow {
  0%, 100% { box-shadow: 0 2px 12px rgba(252,128,25,0.3); }
  50% { box-shadow: 0 4px 20px rgba(252,128,25,0.5); }
}
.prism-banner-icon { min-width: 36px; }
.prism-banner-text { flex: 1; }
.prism-banner-text strong { display: block; font-size: 13px; margin-bottom: 2px; }
.prism-banner-text span { font-size: 11px; opacity: 0.9; }
.prism-banner-btn {
  background: white; color: var(--orange); border: none;
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}

.instamart-body { flex: 1; overflow-y: auto; padding-bottom: 60px; }

.search-bar-fake {
  margin: 12px 16px; padding: 11px 14px;
  background: var(--grey-bg); border-radius: var(--rs);
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #999;
}

.quick-cats {
  display: flex; gap: 0; padding: 8px 12px;
  overflow-x: auto;
}
.quick-cat {
  min-width: 64px; display: flex; flex-direction: column;
  align-items: center; gap: 4px; padding: 8px;
}
.qc-emoji { font-size: 24px; }
.qc-label { font-size: 11px; color: var(--text-sec); }

.insta-section { padding: 16px; }
.insta-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

.recipe-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-pill {
  padding: 8px 14px; background: var(--orange-light);
  border-radius: 20px; font-size: 13px; font-weight: 500;
  color: var(--orange); cursor: pointer; transition: all 0.2s;
}
.recipe-pill:hover { background: #FFE0C2; transform: scale(1.03); }

.prism-input-row { display: flex; gap: 8px; }
.prism-input-row input {
  flex: 1; padding: 11px 14px; border: 1.5px solid var(--grey-light);
  border-radius: var(--rs); font-size: 13px; font-family: inherit; outline: none;
}
.prism-input-row input:focus { border-color: var(--orange); }
.prism-go-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Swiggy Bottom Nav */
.swiggy-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; background: var(--white);
  border-top: 1px solid var(--grey-light);
  padding: 6px 0 20px; z-index: 50;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px; font-size: 10px;
  color: #999;
}
.nav-item.active { color: var(--orange); }
.nav-item.active span { font-weight: 600; }

/* ====== Processing Screen ====== */

.processing-body {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 40px 24px;
}
.processing-steps { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.proc-step {
  display: flex; align-items: flex-start; gap: 14px;
  opacity: 0.35; transition: opacity 0.5s;
}
.proc-step.done { opacity: 1; }
.proc-step.active { opacity: 1; }
.proc-dot {
  width: 24px; height: 24px; min-width: 24px;
  border-radius: 50%; border: 2px solid var(--grey-light);
  margin-top: 2px; transition: all 0.3s;
}
.proc-step.done .proc-dot { background: var(--green); border-color: var(--green); }
.proc-step.active .proc-dot {
  border-color: var(--orange);
  animation: dotPulse 1s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252,128,25,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(252,128,25,0); }
}
.proc-info strong { display: block; font-size: 14px; margin-bottom: 2px; }
.proc-info span { font-size: 12px; color: var(--text-sec); }

.proc-loader { padding: 0 20px; }
.proc-bar { height: 4px; background: var(--grey-light); border-radius: 2px; overflow: hidden; }
.proc-fill {
  height: 100%; width: 0%; background: var(--orange);
  border-radius: 2px; transition: width 0.3s;
}

/* ====== Cart Screen ====== */

.budget-badge {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 16px; padding: 10px 14px;
  border-radius: var(--rs); font-size: 13px;
}
.budget-badge.green { background: var(--green-bg); color: var(--green); }
.budget-badge.red { background: #FDE8EA; color: var(--red); }

/* Health Panel */
.health-panel {
  display: none; margin: 0 16px 8px;
  background: var(--white); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 16px;
  animation: panelSlide 0.3s ease;
}
.health-panel.visible { display: block; }
@keyframes panelSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.health-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.health-panel-header h3 { font-size: 15px; font-weight: 700; }
.close-panel { background: none; border: none; cursor: pointer; }

.health-score-ring {
  position: relative; width: 90px; height: 90px; margin: 0 auto 12px;
}
.health-score-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.hs-num { font-size: 22px; font-weight: 800; color: var(--green); display: block; }
.hs-label { font-size: 9px; color: var(--text-sec); }

.macro-bars { display: flex; flex-direction: column; gap: 8px; }
.macro-row { display: flex; align-items: center; gap: 8px; }
.macro-name { font-size: 11px; width: 48px; color: var(--text-sec); }
.macro-bar { flex: 1; height: 6px; background: var(--grey-light); border-radius: 3px; overflow: hidden; }
.macro-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease; }
.macro-fill.protein { background: #E04F5F; }
.macro-fill.carbs { background: var(--orange); }
.macro-fill.fats { background: #F7C948; }
.macro-fill.fiber { background: var(--green); }
.macro-val { font-size: 11px; font-weight: 600; width: 36px; text-align: right; }
.calorie-total {
  display: flex; justify-content: space-between;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--grey-light);
  font-size: 13px;
}

.cart-body {
  flex: 1; overflow-y: auto;
  padding: 8px 16px 120px;
}

.cart-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--grey-bg);
}
.cart-item-emoji { font-size: 28px; min-width: 36px; text-align: center; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; }
.cart-item-brand { font-size: 11px; color: var(--text-sec); }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px;
  background: var(--green-bg); border-radius: 6px;
  padding: 4px 10px; font-size: 13px; font-weight: 600; color: var(--green);
}
.cart-item-price { font-size: 14px; font-weight: 700; min-width: 50px; text-align: right; }

.cart-category-label {
  font-size: 11px; font-weight: 700; color: var(--text-sec);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 12px 0 4px;
}

.cart-bottom {
  position: absolute; bottom: 56px; left: 0; right: 0;
  display: flex; align-items: center;
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--grey-light);
  z-index: 40;
}
.cart-bottom-info { flex: 1; }
.cb-total { font-size: 18px; font-weight: 800; display: block; }
.cb-items { font-size: 11px; color: var(--text-sec); }
.btn-checkout {
  padding: 12px 20px; background: var(--orange);
  color: white; border: none; border-radius: var(--rs);
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; display: flex; align-items: center; gap: 6px;
  transition: background 0.2s;
}
.btn-checkout:hover { background: var(--orange-dark); }
.btn-checkout.btn-full { width: 100%; justify-content: center; margin-bottom: 16px; }

/* ====== Summary ====== */

.summary-body { flex: 1; overflow-y: auto; padding: 20px 16px 30px; }
.summary-hero { text-align: center; margin-bottom: 20px; }
.summary-prism-icon { margin-bottom: 10px; }
.summary-hero h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.summary-total-pill {
  display: inline-block; background: var(--orange-light);
  padding: 8px 24px; border-radius: 24px;
}
.st-amount { font-size: 24px; font-weight: 800; color: var(--orange); }
.summary-saved { font-size: 12px; color: var(--green); margin-top: 8px; font-weight: 500; }

.summary-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.summary-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: var(--grey-bg); border-radius: var(--rs);
}
.si-emoji { font-size: 20px; }
.si-info { flex: 1; }
.si-name { font-size: 12px; font-weight: 600; }
.si-detail { font-size: 10px; color: var(--text-sec); }
.si-price { font-size: 13px; font-weight: 700; }

/* Wrapped */
.wrapped-section { margin-top: 20px; }
.wrapped-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.wrapped-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--r); padding: 20px; color: white;
  margin-bottom: 10px;
}
.wrapped-stat { text-align: center; margin-bottom: 16px; }
.ws-num { font-size: 36px; font-weight: 800; color: var(--orange); display: block; }
.ws-label { font-size: 13px; opacity: 0.8; line-height: 1.4; }
.wrapped-bar-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 11px; opacity: 0.7;
}
.wrapped-bar-row span { width: 44px; }
.wrapped-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; }
.wrapped-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.budget-fill { background: rgba(255,255,255,0.4); }
.spent-fill { background: var(--orange); }
.wrapped-footer {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; opacity: 0.6;
}
.btn-share-wrapped {
  width: 100%; padding: 12px; background: var(--orange-light);
  border: none; border-radius: var(--rs);
  font-size: 13px; font-weight: 600; color: var(--orange);
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Order Overlay */
.order-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 300;
  display: none; align-items: center; justify-content: center;
  animation: fadeIn 0.3s;
}
.order-overlay.visible { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.order-success-card {
  background: white; border-radius: 20px; padding: 32px;
  text-align: center; animation: successPop 0.5s ease;
  margin: 0 24px;
}
@keyframes successPop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
.success-check {
  width: 64px; height: 64px; background: var(--green-bg);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 12px;
}
.order-success-card h2 { font-size: 20px; margin-bottom: 4px; }
.order-success-card p { font-size: 14px; color: var(--text-sec); }
.order-id { font-size: 11px; color: var(--text-sec); margin-top: 8px; display: block; }

/* ====== Guide Tooltips ====== */

.guide-tooltip {
  position: absolute; bottom: -38px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: white;
  padding: 6px 12px; border-radius: 8px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  animation: guideBounce 1.5s ease-in-out infinite;
  z-index: 100; pointer-events: none;
  box-shadow: 0 4px 12px rgba(252,128,25,0.4);
}
.guide-tooltip::before {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 6px solid var(--orange);
}
.yt-action-btn { position: relative; }

.ig-guide {
  bottom: auto; top: -38px; left: auto; right: 0; transform: none;
}
.ig-guide::before {
  top: auto; bottom: -6px; left: auto; right: 16px; transform: none;
  border-bottom: none; border-top: 6px solid var(--orange);
}
.ig-sidebar-btn { position: relative; }

.sheet-guide {
  bottom: -32px; white-space: nowrap;
}

@keyframes guideBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}
.sheet-guide {
  animation: guideBounce 1.5s ease-in-out infinite;
}

/* ====== Prism Hub ====== */

.hub-body { flex: 1; overflow-y: auto; padding-bottom: 60px; }

.hub-wrapped-mini {
  display: flex; margin: 12px 16px; padding: 16px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: var(--r); color: white;
}
.hwm-left { flex: 1; }
.hwm-num { font-size: 32px; font-weight: 800; color: var(--orange); display: block; }
.hwm-label { font-size: 12px; opacity: 0.7; }
.hwm-right { text-align: right; display: flex; flex-direction: column; justify-content: center; }
.hwm-orders { font-size: 16px; font-weight: 700; display: block; }
.hwm-via { font-size: 11px; opacity: 0.6; }

.hub-section { padding: 16px; }
.hub-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

.hub-reco-list { display: flex; flex-direction: column; gap: 8px; }
.hub-reco-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--grey-bg);
  border-radius: var(--rs); cursor: pointer; transition: all 0.2s;
}
.hub-reco-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.hri-emoji { font-size: 24px; }
.hri-info { flex: 1; }
.hri-name { font-size: 13px; font-weight: 600; display: block; }
.hri-reason { font-size: 11px; color: var(--text-sec); }
.hri-tag {
  font-size: 9px; font-weight: 600; padding: 3px 8px;
  border-radius: 10px;
}
.hri-tag.protein { background: #FDECEA; color: #E04F5F; }
.hri-tag.healthy { background: var(--green-bg); color: var(--green); }
.hri-tag.value { background: #E8F0FE; color: #1967D2; }
.hri-tag.trending { background: var(--orange-light); color: var(--orange); }

.hub-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.hub-action-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; background: var(--grey-bg);
  border: none; border-radius: var(--rs);
  font-size: 11px; font-weight: 600; color: var(--charcoal);
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.hub-action-card span { font-size: 22px; }
.hub-action-card:hover { background: var(--orange-light); color: var(--orange); }

/* ====== Post-Order ====== */

.post-order-body { flex: 1; overflow-y: auto; padding: 20px 16px 80px; }

.po-success { text-align: center; margin-bottom: 20px; }
.po-check {
  width: 56px; height: 56px; background: var(--green-bg);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 10px;
  animation: successPop 0.5s ease;
}
.po-success h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.po-sub { font-size: 12px; color: var(--text-sec); }

.po-wrapped { margin-bottom: 20px; }
.po-next { margin-bottom: 16px; }
.po-next h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.po-reco-list { display: flex; flex-direction: column; gap: 8px; }

/* Page Footer */
.page-footer {
  width: 100%; text-align: center; padding: 14px 16px;
  font-size: 12px; color: #999;
  margin-top: 14px;
}
.page-footer a {
  color: var(--orange); text-decoration: none; font-weight: 600;
}
.page-footer a:hover { text-decoration: underline; }

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grey-light); border-radius: 3px; }
