/* Maquette téléphone — thème sombre, aligné sur l'app Flutter */

/* ─── DARK THEME SCOPING (phone stays dark on light page) ─── */
.phone {
  --bg: #09090b;
  --bg-elevated: #0f0f12;
  --surface: #18181b;
  --surface-2: #1e1e22;
  --border: #27272a;
  --border-subtle: #1f1f23;
  --primary: #7C3AED;
  --primary-muted: rgba(124, 58, 237, 0.14);
  --accent: #FFBB00;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
}

/* ─── PHONE SHELL ─── */
.phone-wrap {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative; overflow: visible;
}

.phone {
  width: 280px; height: 572px; background: var(--bg);
  border-radius: 36px; border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden; position: relative;
}

.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: var(--bg);
  border-radius: 0 0 14px 14px; z-index: 20;
  border: 1px solid var(--border); border-top: none;
}

.phone-screen {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  background: var(--bg); position: relative;
  padding-top: 30px; box-sizing: border-box;
}

.app-stage { flex: 1; min-height: 0; position: relative; }

.app-screen {
  position: absolute; inset: 0; display: none; flex-direction: column;
  background: var(--bg); font-family: var(--font-body); overflow: hidden;
}
.app-screen.active { display: flex; }

.app-header { padding: 8px 16px 10px; flex-shrink: 0; }
.app-greet { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500; margin-bottom: 4px; }
.app-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--text); letter-spacing: -0.02em; }
.app-title-row { display: flex; align-items: center; gap: 8px; }
.app-ico-title { color: var(--primary); flex-shrink: 0; }
.app-subtitle { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 4px; }

.app-scroll { flex: 1; overflow-y: auto; padding: 0 14px 12px; scrollbar-width: none; }
.app-scroll::-webkit-scrollbar { display: none; }
.app-scroll--wide { padding-left: 8px; padding-right: 8px; }

/* ─── SEARCH ─── */
.app-search {
  background: var(--surface-2); border-radius: 14px; height: 40px;
  padding: 0 12px; margin: 0 14px 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0;
}
.app-search svg { width: 16px; height: 16px; color: var(--text-secondary); flex-shrink: 0; }

/* ─── POSTS ─── */
.post-card {
  background: var(--surface); border-radius: 16px; overflow: hidden;
  margin-bottom: 12px; border: 1px solid var(--border); cursor: pointer;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: rgba(124, 58, 237, 0.3); }

.post-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px; }

.post-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(124, 58, 237, 0.2); color: var(--primary);
  font-size: 0.5625rem; font-weight: 700; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid rgba(124, 58, 237, 0.35);
}
.post-avatar--vio { background: rgba(139, 92, 246, 0.2); color: #a78bfa; border-color: rgba(139, 92, 246, 0.35); }
.post-avatar--teal { background: rgba(16, 185, 129, 0.2); color: var(--accent); border-color: rgba(16, 185, 129, 0.35); }

.post-head-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.post-author { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.post-time { font-size: 0.625rem; color: var(--text-muted); }

.post-img {
  height: 132px; width: 100%; background-color: var(--surface-2);
  background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end;
}
.post-img.img1 { background-image: url("https://images.unsplash.com/photo-1511578314322-379afb476865?w=700&q=82"); }
.post-img.img2 { background-image: url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=700&q=82"); }
.post-img.img3 { background-image: url("https://images.unsplash.com/photo-1542751371-adc38448a05e?w=700&q=82"); }
.post-img.img4 { background-image: url("https://images.unsplash.com/photo-1523580494863-6f3031224c94?w=700&q=82"); }

.post-cat {
  position: absolute; top: 8px; left: 8px;
  background: rgba(124, 58, 237, 0.92); color: #fff;
  font-size: 0.625rem; font-weight: 700; padding: 3px 8px;
  border-radius: 100px; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.04em;
}

.post-body { padding: 10px 12px 12px; }
.post-title {
  font-size: 0.8125rem; font-weight: 600; color: var(--text);
  line-height: 1.3; margin: 0 0 6px;
  font-family: var(--font-display); letter-spacing: -0.02em;
}
.post-lead { font-size: 0.6875rem; line-height: 1.45; color: var(--text-secondary); margin: 0 0 10px; }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.post-pill {
  font-size: 0.625rem; font-weight: 600; color: var(--text-muted);
  background: var(--surface-2); padding: 4px 8px; border-radius: 100px;
  border: 1px solid var(--border); max-width: 65%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.post-like {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.6875rem; color: var(--text-secondary); cursor: pointer;
}
.post-like svg { width: 14px; height: 14px; }
.post-like.liked { color: #f43f5e; }

/* ─── CALENDAR ─── */
.cal-tabs {
  display: flex; gap: 4px; padding: 0 14px; margin-bottom: 10px; flex-shrink: 0;
}
.cal-tab {
  flex: 1; padding: 8px 4px; border-radius: 10px;
  background: var(--surface-2); color: var(--text-secondary);
  font-size: 0.6875rem; font-weight: 600;
  font-family: var(--font-body); cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s;
  text-align: center;
}
.cal-tab.active {
  background: var(--primary-muted); color: var(--primary);
  border-color: rgba(124, 58, 237, 0.3);
}

.cal-panel { display: none; }
.cal-panel.active { display: block; }

/* CROUS / EDT day nav */
.crous-day-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.crous-arrow {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface-2); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0; padding: 0;
}
.crous-arrow svg {
  display: block;
  color: var(--text-secondary);
  pointer-events: none;
}
.crous-arrow:hover {
  background: var(--surface);
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--primary);
}
.crous-arrow:hover svg { color: var(--primary); }
.crous-day-label {
  font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem;
}

/* CROUS menu */
.crous-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px; margin-bottom: 8px;
}
.crous-meal { margin-bottom: 8px; }
.crous-meal:last-child { margin-bottom: 0; }
.crous-meal-label {
  font-weight: 600; font-size: 0.6875rem; color: var(--primary);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em;
}
.crous-item { font-size: 0.6875rem; color: var(--text-secondary); line-height: 1.5; }
.crous-sep { height: 1px; background: var(--border); margin: 8px 0; }
.crous-footer {
  font-size: 0.5625rem; color: var(--text-muted); text-align: center;
  margin-top: 6px;
}

/* EDT */
.edt-timeline { display: flex; flex-direction: column; gap: 6px; }
.edt-block {
  background: var(--surface); border-radius: 10px; padding: 10px 12px;
  border-left: 3px solid var(--color, var(--primary));
  border: 1px solid var(--border); border-left: 3px solid var(--color, var(--primary));
}
.edt-block--pause {
  background: transparent; border: 1px dashed var(--border);
  border-left: 3px dashed var(--text-muted); opacity: 0.6;
}
.edt-time { font-size: 0.5625rem; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.edt-course { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.edt-room { font-size: 0.625rem; color: var(--text-secondary); margin-top: 1px; }

/* Soirées */
.soiree-card {
  background: var(--surface); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 10px; cursor: pointer;
  transition: border-color 0.2s;
}
.soiree-card:hover { border-color: rgba(124, 58, 237, 0.3); }

.soiree-img {
  height: 72px; background-size: cover; background-position: center;
  position: relative; background-color: var(--surface-2);
}
.soiree-img.si-1 { background-image: url("https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?w=400&h=200&fit=crop&q=80"); }
.soiree-img.si-2 { background-image: url("https://images.unsplash.com/photo-1511578314322-379afb476865?w=400&h=200&fit=crop&q=80"); }
.soiree-img.si-3 { background-image: url("https://images.unsplash.com/photo-1542751371-adc38448a05e?w=400&h=200&fit=crop&q=80"); }
.soiree-img.si-4 { background-image: url("https://images.unsplash.com/photo-1461896836934-bd45ba8fcf9b?w=400&h=200&fit=crop&q=80"); }

.soiree-badge {
  position: absolute; top: 6px; left: 6px;
  background: rgba(124, 58, 237, 0.92); color: #fff;
  font-size: 0.5625rem; font-weight: 700; padding: 2px 8px;
  border-radius: 100px; text-transform: uppercase;
}
.soiree-info { padding: 8px 10px; }
.soiree-name { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; color: var(--text); margin-bottom: 2px; }
.soiree-detail { font-size: 0.625rem; color: var(--text-secondary); margin-bottom: 6px; }
.soiree-row { display: flex; align-items: center; gap: 8px; }
.soiree-pill {
  font-size: 0.5625rem; font-weight: 600; color: var(--accent);
  background: rgba(255, 187, 0, 0.12); padding: 2px 8px; border-radius: 100px;
}
.soiree-price { font-size: 0.625rem; font-weight: 600; color: var(--primary); }

/* ─── BOUTIQUE ─── */
.shop-header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }

.shop-cart-icon {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); flex-shrink: 0;
}
.shop-cart-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.shop-cart-icon .cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 100px;
  background: var(--primary); color: #fff;
  font-size: 0.5625rem; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.shop-cart-icon.has-items .cart-badge { display: flex; }

.shop-section-label {
  font-size: 0.6875rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 8px 0 8px; padding-top: 4px;
}

.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 8px; }

.product-card {
  background: var(--surface); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); transition: border-color 0.2s;
}
.product-card:hover { border-color: rgba(124, 58, 237, 0.25); }
.product-card.is-locked { opacity: 0.55; pointer-events: none; }

.product-img {
  height: 76px; width: 100%; background-size: cover;
  background-position: center; background-color: var(--surface-2);
}
.product-img.pi-snack-bar { background-image: url("https://images.unsplash.com/photo-1621939514649-280e2e25e033?w=400&h=300&fit=crop&q=80"); }
.product-img.pi-canette { background-image: url("https://images.unsplash.com/photo-1523677011781-c91d1bbe2f9e?w=400&h=300&fit=crop&q=80"); }
.product-img.pi-chips { background-image: url("https://images.unsplash.com/photo-1566478989037-eec274c16da2?w=400&h=300&fit=crop&q=80"); }
.product-img.pi-eau { background-image: url("https://images.unsplash.com/photo-1548839140-29a749e1cf4d?w=400&h=300&fit=crop&q=80"); }
.product-img.pi-hoodie { background-image: url("https://images.unsplash.com/photo-1556821840-3a63f95609a7?w=400&h=300&fit=crop&q=80"); }
.product-img.pi-totebag { background-image: url("https://images.unsplash.com/photo-1544816155-12df9643f363?w=400&h=300&fit=crop&q=80"); }
.product-img.pi-mug { background-image: url("https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?w=400&h=300&fit=crop&q=80"); }
.product-img.pi-stickers { background-image: url("https://images.unsplash.com/photo-1535016120720-40c646be5580?w=400&h=300&fit=crop&q=80"); }

.product-info { padding: 8px; }
.product-name { font-size: 0.6875rem; font-weight: 600; color: var(--text); margin-bottom: 2px; line-height: 1.25; }
.product-price { font-size: 0.75rem; color: var(--primary); font-weight: 700; margin-bottom: 6px; }

.btn-add-cart {
  width: 100%; padding: 6px 8px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-size: 0.625rem; font-weight: 600;
  border: none; cursor: pointer; font-family: var(--font-body);
  transition: background 0.15s;
}
.btn-add-cart:hover { background: #8B5CF6; }
.btn-add-cart:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }

.shop-cart-bar {
  flex-shrink: 0; display: none; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 14px;
  background: var(--surface-2); border-top: 1px solid var(--border);
}
.shop-cart-bar.visible { display: flex; }
.shop-cart-bar .cart-summary { font-size: 0.6875rem; color: var(--text-secondary); }
.shop-cart-bar .cart-summary strong { color: var(--text); display: block; font-size: 0.75rem; }

.shop-cart-bar .btn-cart-open {
  padding: 8px 12px; border-radius: 10px;
  background: var(--primary); color: #fff;
  font-size: 0.6875rem; font-weight: 600;
  border: none; cursor: pointer; font-family: var(--font-body); white-space: nowrap;
}

.shop-order-banner {
  display: none; margin: 0 14px 10px; padding: 10px 12px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.625rem; color: var(--success); line-height: 1.4;
}
.shop-order-banner.visible { display: block; }

/* ─── MINI-APPS ─── */
.apps-info-banner {
  background: var(--primary-muted); border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
  font-size: 0.625rem; color: var(--primary); line-height: 1.4; font-weight: 500;
}

.miniapp-card {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin: 0 0 8px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; cursor: pointer; text-align: left;
  font-family: var(--font-body); color: inherit; box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}
.miniapp-card:hover { border-color: rgba(124, 58, 237, 0.4); background: var(--surface-2); }

.miniapp-icon { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.miniapp-main { flex: 1; min-width: 0; }
.miniapp-name {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.75rem; color: var(--text); margin-bottom: 3px; line-height: 1.25;
}
.miniapp-desc {
  font-size: 0.5625rem; line-height: 1.4; color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.miniapp-badge {
  font-size: 0.5rem; font-weight: 700; color: var(--accent);
  background: rgba(255, 187, 0, 0.1); padding: 2px 6px;
  border-radius: 100px; white-space: nowrap; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ─── PROFILE ─── */
.profile-header-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; width: 100%;
}
.profile-head { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; flex: 1; min-width: 0; }

.btn-icon-app {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; transition: background 0.15s;
}
.btn-icon-app:hover { background: var(--surface); }
.btn-icon-app svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

.profile-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3B0E8A);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: #fff; border: 1px solid var(--border); flex-shrink: 0;
}
.profile-name { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.profile-school { font-size: 0.6875rem; color: var(--text-secondary); margin-top: 2px; }

.profile-mock-label {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-secondary);
  margin: 14px 0 8px;
}
.profile-mock-label:first-of-type { margin-top: 4px; }
.profile-mock-divider {
  height: 1px; background: var(--border); margin: 14px 0 4px; opacity: 0.85;
}

.bde-chat-entry {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 4px 0 12px; padding: 14px 12px;
  background: var(--surface-2); border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 14px; cursor: pointer; font-family: var(--font-body);
  color: inherit; box-sizing: border-box; text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.bde-chat-entry:hover { border-color: var(--primary); background: var(--primary-muted); }

.bde-chat-entry-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(124, 58, 237, 0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bde-chat-entry-icon svg { width: 20px; height: 20px; stroke: var(--primary); }
.bde-chat-entry-text { flex: 1; min-width: 0; }
.bde-chat-entry-text strong { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.bde-chat-entry-text span { font-size: 0.6875rem; line-height: 1.4; color: var(--text-secondary); }
.bde-chat-entry--invite { border-left: 3px solid var(--accent); }
.pm-chev { flex-shrink: 0; font-size: 1.1rem; color: var(--text-muted); font-weight: 300; line-height: 1.2; padding-top: 2px; }

.member-card {
  background: linear-gradient(135deg, #3B0E8A 0%, var(--primary) 45%, #0f172a 100%);
  border-radius: 16px; padding: 14px; position: relative; overflow: hidden;
  margin-bottom: 8px; border: 1px solid rgba(124, 58, 237, 0.4);
}
.mc-label {
  font-size: 0.5625rem; color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}
.mc-num { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; color: #fff; letter-spacing: 0.12em; margin-bottom: 10px; }
.mc-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.mc-name { font-size: 0.6875rem; font-weight: 600; color: #fff; }

.wallet-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.5625rem; color: var(--text-muted);
  margin-bottom: 12px; padding: 0 2px;
}
.wallet-hint svg { flex-shrink: 0; stroke: var(--text-muted); }

.loyalty-bar-wrap { margin-bottom: 12px; }
.loyalty-label { display: flex; justify-content: space-between; font-size: 0.6875rem; margin-bottom: 6px; color: var(--text); }
.loyalty-val { color: var(--accent); font-weight: 600; }
.loyalty-bar { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 100px; overflow: hidden; }
.loyalty-fill { height: 100%; width: 0; background: linear-gradient(to right, var(--primary), var(--accent)); border-radius: 100px; transition: width 1s ease; }
.loyalty-tip { font-size: 0.625rem; color: var(--text-secondary); margin-top: 4px; }

.section-mini-title { font-size: 0.6875rem; font-weight: 600; color: var(--text); margin-bottom: 8px; margin-top: 4px; }

.coupons-area { margin-bottom: 12px; }
.coupon-empty {
  font-size: 0.625rem; color: var(--text-muted);
  padding: 12px; background: var(--surface); border-radius: 10px;
  border: 1px dashed var(--border); text-align: center;
}

/* QR coupon card (shown after purchase) */
.coupon-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; text-align: center;
}
.coupon-qr {
  width: 80px; height: 80px; margin: 0 auto 8px;
  background: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.coupon-qr svg { width: 60px; height: 60px; }
.coupon-label { font-size: 0.625rem; color: var(--text-secondary); margin-bottom: 2px; }
.coupon-code { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--primary); }
.coupon-hint { font-size: 0.5625rem; color: var(--text-muted); margin-top: 6px; }

/* Event mini cards (profile) */
.event-card-mini {
  background: var(--surface); border-radius: 14px; padding: 10px;
  margin-bottom: 8px; display: flex; gap: 10px; align-items: center;
  border: 1px solid var(--border);
}
.event-date-block {
  background: var(--primary); border-radius: 10px;
  width: 40px; flex-shrink: 0; text-align: center; padding: 5px 4px;
}
.event-day { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; line-height: 1; }
.event-month { font-size: 0.5rem; color: rgba(255, 255, 255, 0.75); text-transform: uppercase; margin-top: 2px; }
.event-info { flex: 1; min-width: 0; }
.event-name { font-size: 0.6875rem; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 2px; }
.event-loc { font-size: 0.5625rem; color: var(--text-secondary); }
.event-badge {
  font-size: 0.5rem; font-weight: 700; padding: 3px 7px;
  border-radius: 100px; white-space: nowrap;
}
.badge-open { background: rgba(34, 197, 94, 0.12); color: var(--success); }
.badge-soon { background: rgba(234, 179, 8, 0.15); color: var(--warning); }

/* ─── MODAL SHEETS ─── */
.mock-sheet {
  display: none; position: absolute; inset: 0; z-index: 60;
  flex-direction: column; justify-content: flex-end;
  background: rgba(0, 0, 0, 0.55); border-radius: 0 0 32px 32px;
}
.mock-sheet.open { display: flex; }

.mock-sheet-panel {
  background: var(--surface); border-radius: 16px 16px 0 0;
  border: 1px solid var(--border); border-bottom: none;
  max-height: 78%; overflow-y: auto; padding: 14px 14px 20px;
}
.mock-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mock-sheet-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.mock-sheet-close {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); cursor: pointer; font-size: 1.1rem; line-height: 1;
}

.cart-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.75rem;
}
.cart-line:last-of-type { border-bottom: none; }
.cart-total-row {
  display: flex; justify-content: space-between; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-weight: 700; font-size: 0.8125rem;
}

.btn-commander {
  width: 100%; margin-top: 14px; padding: 12px; border-radius: 12px;
  background: var(--success); color: #fff; font-weight: 600;
  font-size: 0.8125rem; border: none; cursor: pointer; font-family: var(--font-body);
  transition: background 0.15s;
}
.btn-commander:hover { background: #16a34a; }
.btn-commander:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }

.checkout-msg { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; margin-top: 8px; }

/* Settings */
.settings-group-label {
  font-size: 0.5625rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 12px; margin-bottom: 4px;
}
.settings-group-label:first-of-type { margin-top: 0; }

.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.8125rem;
}
.settings-row:last-child { border-bottom: none; }
.settings-row--danger span:first-child { color: var(--danger); }
.settings-chev { color: var(--text-muted); font-size: 0.875rem; }

.mock-toggle {
  width: 44px; height: 26px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--border);
  position: relative; cursor: pointer; padding: 0; transition: background 0.2s, border-color 0.2s;
}
.mock-toggle.on { background: rgba(124, 58, 237, 0.3); border-color: var(--primary); }
.mock-toggle::after {
  content: ""; position: absolute; width: 20px; height: 20px;
  border-radius: 50%; background: var(--text-muted);
  top: 2px; left: 2px; transition: transform 0.2s, background 0.2s;
}
.mock-toggle.on::after { transform: translateX(18px); background: var(--primary); }

/* Chat */
.mock-sheet-panel--chat {
  max-height: 90%; display: flex; flex-direction: column; padding-bottom: 12px;
}
.chat-demo-hint { font-size: 0.625rem; color: var(--text-muted); line-height: 1.4; margin: 0 0 10px; }

.chat-thread {
  flex: 1; min-height: 120px; max-height: 42vh;
  overflow-y: auto; display: flex; flex-direction: column;
  gap: 8px; margin-bottom: 10px; padding: 4px 0;
}
.chat-bubble {
  max-width: 92%; padding: 8px 10px; border-radius: 12px;
  font-size: 0.6875rem; line-height: 1.45;
}
.chat-bubble--bde {
  align-self: flex-start; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text);
}
.chat-bubble--user {
  align-self: flex-end; background: var(--primary-muted);
  border: 1px solid rgba(124, 58, 237, 0.35); color: var(--text);
}
.chat-bubble .who {
  display: block; font-size: 0.5625rem; font-weight: 700;
  color: var(--primary); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.chat-compose {
  display: flex; gap: 8px; align-items: stretch; flex-shrink: 0;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-family: var(--font-body); font-size: 0.75rem;
}
.chat-send {
  padding: 10px 14px; border-radius: 12px; border: none;
  background: var(--primary); color: #fff; font-weight: 600;
  font-size: 0.6875rem; font-family: var(--font-body);
  cursor: pointer; flex-shrink: 0; transition: background 0.15s;
}
.chat-send:hover { background: #8B5CF6; }

/* App Detail sheet */
.mock-sheet-panel--scroll {
  max-height: 88%; display: flex; flex-direction: column; padding-bottom: 16px;
}
.app-detail-body {
  font-size: 0.6875rem; line-height: 1.55; color: var(--text-secondary);
  margin-bottom: 12px; white-space: pre-wrap;
}
.app-detail-mock-wrap { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.app-detail-mock-label {
  font-size: 0.5625rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 10px;
}

/* Mini-app demo elements */
.mini-list { list-style: none; margin: 0 0 10px; padding: 0; }
.mini-list li {
  font-size: 0.6875rem; padding: 8px 10px; background: var(--surface-2);
  border-radius: 10px; margin-bottom: 6px; border: 1px solid var(--border);
}

.btn-mock-primary, .btn-mock-secondary {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  font-size: 0.6875rem; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; border: none; margin-bottom: 8px; transition: background 0.15s;
}
.btn-mock-primary { background: var(--primary); color: #fff; }
.btn-mock-primary:hover { background: #8B5CF6; }
.btn-mock-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-mock-secondary:hover { background: var(--surface); }
.mock-feedback { font-size: 0.625rem; color: var(--accent); margin: 0 0 8px; min-height: 1.2em; }

/* Poll demo */
.poll-option {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: var(--surface-2); border-radius: 10px; margin-bottom: 6px;
  border: 1px solid var(--border); cursor: pointer; transition: border-color 0.15s;
}
.poll-option:hover { border-color: rgba(124, 58, 237, 0.3); }
.poll-option.voted { border-color: var(--primary); background: var(--primary-muted); }
.poll-bar-wrap { flex: 1; }
.poll-label { font-size: 0.6875rem; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.poll-bar { height: 4px; background: var(--border); border-radius: 100px; overflow: hidden; }
.poll-bar-fill { height: 100%; background: var(--primary); border-radius: 100px; transition: width 0.5s ease; }
.poll-pct { font-size: 0.625rem; font-weight: 700; color: var(--primary); min-width: 28px; text-align: right; }

/* Photo gallery demo */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.gallery-thumb {
  height: 52px; border-radius: 8px; background-size: cover;
  background-position: center; background-color: var(--surface-2);
}

/* Classifieds demo */
.classified-row {
  font-size: 0.6875rem; padding: 8px 10px; background: var(--surface-2);
  border-radius: 10px; margin-bottom: 6px; border: 1px solid var(--border);
}

/* Partner demo */
.partner-card {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: var(--surface-2); border-radius: 10px; margin-bottom: 6px;
  border: 1px solid var(--border);
}
.partner-logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary-muted); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.partner-info { flex: 1; }
.partner-name { font-size: 0.6875rem; font-weight: 600; color: var(--text); }
.partner-deal { font-size: 0.5625rem; color: var(--accent); font-weight: 600; }

/* Mentoring demo */
.mentor-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.mentor-tab {
  flex: 1; padding: 8px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-secondary); font-size: 0.625rem; font-weight: 600;
  font-family: var(--font-body); cursor: pointer; text-align: center;
  transition: all 0.15s;
}
.mentor-tab.active { border-color: var(--primary); color: var(--primary); background: var(--primary-muted); }
.mentor-pane.is-hidden { display: none; }

/* ─── BOTTOM NAV ─── */
.app-nav {
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px 4px 10px; flex-shrink: 0; height: 56px; align-items: stretch;
}
.app-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; cursor: pointer;
  padding: 4px 2px; border-radius: 12px; margin: 0 1px;
  transition: background 0.2s; color: var(--text-secondary);
  border: none; background: transparent; font-family: var(--font-body);
}
.app-nav-item:hover { background: rgba(255, 255, 255, 0.04); }
.app-nav-item.active { background: var(--primary-muted); color: var(--primary); }

.app-nav-item svg {
  width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.app-nav-item.active svg { width: 22px; height: 22px; }
.app-nav-label {
  font-size: 0.5rem; font-weight: 600;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; padding: 0 1px;
}

/* ─── DEMO DISCLAIMER ─── */
.demo-disclaimer {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-bottom: 16px;
  padding: 8px 16px; border-radius: 10px;
  background: rgba(124, 58, 237, 0.08); border: 1px solid rgba(124, 58, 237, 0.18);
  color: var(--text-secondary); font-size: 0.6875rem; font-weight: 500;
  font-family: var(--font-body); letter-spacing: 0.01em;
}
.demo-disclaimer svg { color: var(--primary); flex-shrink: 0; }

/* ─── PHONE OUTER (arrow anchor) ─── */
.phone-outer {
  position: relative;
  width: 280px;
  flex-shrink: 0;
  overflow: visible;
}

/* ─── TOUR ARROWS ─── */
.tour-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: visible;
}

.tour-arrow {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.12));
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-arrow.visible {
  opacity: 1;
  transform: translateX(0) translateY(0) !important;
}

.tour-arrow--left {
  right: calc(100% + 6px);
  transform: translateX(-10px);
}

.tour-arrow--right {
  left: calc(100% + 6px);
  transform: translateX(10px);
}

.arrow-label {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.625rem;
  color: var(--primary);
  background: rgba(124, 58, 237, 0.07);
  border: 1px solid rgba(124, 58, 237, 0.22);
  padding: 5px 11px;
  border-radius: 100px;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 0.35s ease 0.25s;
}

.tour-arrow.visible .arrow-label {
  opacity: 1;
}

.arrow-line {
  flex-shrink: 0;
  overflow: visible;
}

.arrow-line path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.tour-arrow.visible .arrow-line path {
  stroke-dashoffset: 0;
}

/* Stagger: second arrow per screen has more delay */
.tour-arrow:nth-child(even) {
  transition-delay: 0.15s;
}
.tour-arrow:nth-child(even) .arrow-line path {
  transition-delay: 0.25s;
}
.tour-arrow:nth-child(even) .arrow-label {
  transition-delay: 0.4s;
}

@media (max-width: 1100px) {
  .tour-arrows { display: none; }
}
@media (max-width: 900px) {
  .phone-outer { width: auto; }
}

