/* ══════════════════════════════════════════════════════
   Flutter App Preview — Design System Classes
   Used inside devices.css phone frame on portal preview
   ══════════════════════════════════════════════════════ */

/* ── Device screen override: make div.device-screen fill the frame ── */
.device-frame > .device-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── App screen wrapper (inside .device-screen) ── */
.ofp-app-screen {
  background: #06060a;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ofp-app-screen::-webkit-scrollbar { display: none; }

/* Scale devices.css frame to fit preview column */
#ofp-view-app .device {
  transform: scale(0.72);
  transform-origin: top left;
  margin-left: 17px;
  margin-bottom: -240px;
}

/* ── Flutter Hero Image ── */
.fp-hero {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #111;
  position: relative;
  overflow: hidden;
}
.fp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(8,8,8,0.73));
  pointer-events: none;
}

/* Hero with cover logo overlay (business detail) */
.fp-cover-logo {
  position: absolute;
  bottom: 12px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid #06060a;
  object-fit: cover;
  z-index: 2;
  background: #111;
}

/* ── Flutter Discount Badge ── */
.fp-badge {
  position: absolute;
  top: 80px;
  right: 16px;
  background: #fb923c;
  color: #06060a;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(251,146,60,0.4);
  white-space: nowrap;
}

/* ── Flutter Content Area ── */
.fp-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Flutter Title ── */
.fp-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: #f4f4f5;
  line-height: 1.3;
  margin: 0;
}

/* ── Flutter Section Card ── */
.fp-section-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
}

.fp-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.fp-section-header svg {
  color: #fb923c;
  flex-shrink: 0;
}
.fp-section-header span {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  color: #f4f4f5;
}

/* ── Flutter Text Styles ── */
.fp-text-secondary {
  color: #a1a1aa;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

.fp-text-tertiary {
  color: #71717a;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}

/* ── Flutter Date Card ── */
.fp-date-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
}
.fp-date-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fp-date-row svg { color: #71717a; flex-shrink: 0; }
.fp-date-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #a1a1aa;
}
.fp-status-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
}
.fp-status-badge.active { background: rgba(34,197,94,0.15); color: #22c55e; }
.fp-status-badge.expired { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Progress bar */
.fp-progress-bar {
  height: 4px;
  border-radius: 2px;
  background: #1a1a1a;
  margin-top: 8px;
  overflow: hidden;
}
.fp-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: #22c55e;
  transition: width 0.3s ease, background 0.3s ease;
}

/* ── Flutter Stepper (no card wrapper — direct on background like Flutter) ── */
.fp-stepper-section {
  padding: 0;
}
.fp-stepper-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  color: #f4f4f5;
  margin: 0 0 14px;
}
.fp-stepper { display: flex; flex-direction: column; }
.fp-stepper-step {
  display: flex;
  gap: 12px;
  min-height: 0;
}
.fp-stepper-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  flex-shrink: 0;
}
.fp-stepper-circle {
  width: 28px;
  height: 28px;
  background: #fb923c;
  color: #06060a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.fp-stepper-line {
  width: 2px;
  flex: 1;
  min-height: 12px;
  background: rgba(251,146,60,0.3);
  border-radius: 1px;
  margin: 4px 0;
}
.fp-stepper-body {
  flex: 1;
  padding-bottom: 14px;
}
.fp-stepper-step:last-child .fp-stepper-body { padding-bottom: 0; }
.fp-stepper-step:last-child .fp-stepper-line { display: none; }

.fp-stepper-icon {
  width: 36px;
  height: 36px;
  background: rgba(251,146,60,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.fp-stepper-icon svg { color: #fb923c; }

.fp-stepper-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.fp-stepper-row .fp-stepper-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.fp-stepper-title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #f4f4f5;
  margin: 0 0 2px;
}
.fp-stepper-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #71717a;
  margin: 0;
}

/* ── Flutter Business Card ── */
.fp-biz-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}
.fp-biz-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  background: #1a1a1a;
}
.fp-biz-initial {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(251,146,60,0.15);
  color: #fb923c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin: 0 auto 10px;
}
.fp-biz-name {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  color: #f4f4f5;
  margin: 0 0 8px;
}
.fp-biz-meta {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Flutter Chips ── */
.fp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 3px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #a1a1aa;
  white-space: nowrap;
}
.fp-chip svg { flex-shrink: 0; }

/* ── Flutter CTA Button ── */
.fp-cta {
  height: 44px;
  background: linear-gradient(180deg, #fb923c 0%, rgba(251,146,60,0.9) 100%);
  border-radius: 12px;
  color: #06060a;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(251,146,60,0.3);
  border: none;
  cursor: default;
  margin-top: 2px;
}

/* ── Flutter Tab Bar (Business Detail) ── */
.fp-tab-bar {
  display: flex;
  overflow-x: auto;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -16px;
  padding: 0 16px;
}
.fp-tab-bar::-webkit-scrollbar { display: none; }

.fp-tab-item {
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #71717a;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.fp-tab-item.active {
  color: #fb923c;
  border-bottom-color: #fb923c;
}

/* ── Flutter Contact Row ── */
.fp-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.fp-contact-row svg { color: #71717a; flex-shrink: 0; }
.fp-contact-row span {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #a1a1aa;
}

/* ── Flutter Legal Row ── */
.fp-legal-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fp-legal-item:last-child { border-bottom: none; }
.fp-legal-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #71717a;
}
.fp-legal-value {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #f4f4f5;
  font-weight: 500;
}

/* ── Booking Action Chips ── */
.fp-booking-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
}
.fp-booking-chip.phone {
  background: rgba(251,146,60,0.1);
  border: 1px solid rgba(251,146,60,0.3);
  color: #fb923c;
}
.fp-booking-chip.whatsapp {
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.3);
  color: #25d366;
}
.fp-booking-chip.website {
  background: rgba(251,146,60,0.1);
  border: 1px solid rgba(251,146,60,0.3);
  color: #fb923c;
}

/* ── Promo Code Card ── */
.fp-promo-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}
.fp-promo-code-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}
.fp-promo-code-dots .fp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.fp-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, #fb923c 0%, rgba(251,146,60,0.9) 100%);
  border-radius: 10px;
  color: #06060a;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: default;
  box-shadow: 0 2px 10px rgba(251,146,60,0.25);
}
.fp-promo-btn svg { color: #06060a; }

/* ── Placeholder / Empty States ── */
.fp-empty-section {
  padding: 20px;
  text-align: center;
  color: #52525b;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
}

/* ══════════════════════════════════════════════════════
   Business Preview Panel (.bp-*) — slide-in iPhone preview
   on portal/manage.ejs (Info tab live binding to consumer page)
   ══════════════════════════════════════════════════════ */

/* Floating Action Button (bottom-right) */
.bp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(251, 146, 60, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bp-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(251, 146, 60, 0.5), 0 6px 16px rgba(0, 0, 0, 0.4);
}
.bp-fab:active { transform: scale(0.96); }

/* Backdrop overlay */
.bp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}
.bp-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-in panel (from right) */
.bp-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #06060a;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bp-panel.open { transform: translateX(0); }

.bp-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

.bp-close {
  background: none;
  border: none;
  color: #71717a;
  font-size: 24px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  transition: color 0.15s;
}
.bp-close:hover { color: #f4f4f5; }

.bp-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* iPhone frame using SVG mask
   --iphone-w CSS var permite override (ex: homepage mockup mic 210px)
   Default 320px păstrat pentru portal preview (care n-are var setat). */
.iphone-frame {
  position: relative;
  width: var(--iphone-w, 320px);
  aspect-ratio: 9 / 19.5;
  flex-shrink: 0;
}
.iphone-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.iphone-screen {
  position: absolute;
  top: 2.8%;
  left: 4.5%;
  right: 4.5%;
  bottom: 2.8%;
  background: #06060a;
  border-radius: 10%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.iphone-screen::-webkit-scrollbar { display: none; }

/* Support <img> direct în .iphone-screen — pentru static mockups (homepage).
   Portal preview folosește content text-based, nu e afectat. */
.iphone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Floating modifier — doar pentru homepage mockups, NU pentru portal.
   Scope overflow: hidden DOAR pe floating (portal păstrează scroll auto). */
.iphone-frame--floating {
  filter:
    drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 30px rgba(251, 146, 60, 0.15));
}
.iphone-frame--floating .iphone-screen {
  overflow: hidden;
}

/* Hide FAB on small screens (no room for panel) */
@media (max-width: 640px) {
  .bp-fab { display: none; }
}
