/* Vistorio Restaurant, Bar & Kitchen POS page */

/* ─── Hero ─── */
.fb-hero-title {
  margin: 0 0 1.25rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.fb-hero-title span {
  display: block;
  font-weight: 800;
  color: var(--ink);
}

.fb-hero-title span:nth-child(1) {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.fb-hero-title span:nth-child(2) {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  color: var(--red);
  font-weight: 700;
  margin-top: 0.35rem;
}

.fb-hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.fb-hero-pillars span {
  padding: 0.35rem 0.75rem;
  background: var(--red-soft);
  border-radius: 999px;
  color: var(--red);
}

.fb-hero-scene {
  position: relative;
  min-height: 440px;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .fb-hero-scene { grid-template-columns: 1fr 1fr; align-items: start; }
}

.fb-pos-terminal {
  background: var(--ink);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.fb-pos-terminal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fb-pos-terminal__head strong {
  font-size: 0.75rem;
  color: #fff;
}

.fb-pos-terminal__live {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--success);
}

.fb-pos-order {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.65rem;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.85);
}

.fb-pos-order b {
  display: block;
  color: #fff;
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.fb-kds {
  background: #1a2230;
  border: 2px solid rgba(177,18,38,0.3);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.fb-kds__head {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.fb-kds-ticket {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.8);
}

.fb-kds-ticket strong {
  display: block;
  color: #fff;
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
}

.fb-kds-ticket time {
  color: var(--warn);
  font-weight: 700;
}

.fb-exec-mini {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 500px) {
  .fb-exec-mini { grid-template-columns: repeat(2, 1fr); }
}

.fb-exec-mini div label {
  display: block;
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.fb-exec-mini div b {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

.fb-float {
  position: absolute;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 12px 40px rgba(15,20,25,0.12);
  min-width: 120px;
  animation: hp-float-card 6s ease-in-out infinite;
  z-index: 2;
}

.fb-float label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.fb-float strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.fb-float--1 { top: -2%; right: 5%; }
.fb-float--2 { bottom: 35%; left: -3%; animation-delay: -2s; }

@media (max-width: 1023px) {
  .fb-float { display: none; }
}

/* ─── Challenges ─── */
.fb-challenges {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
}

.fb-challenge {
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.fb-challenge:hover {
  transform: translateY(-3px);
  border-color: rgba(177,18,38,0.2);
}

.fb-challenge__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(177,18,38,0.08);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.fb-challenge h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.fb-resolve {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--ink);
  border-radius: 18px;
  text-align: center;
  color: #fff;
}

.fb-resolve p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
}

.fb-resolve strong { color: var(--warn); }

/* ─── Workflow ─── */
.fb-workflow-wrap {
  overflow-x: auto;
  padding-bottom: 1rem;
}

.fb-workflow {
  display: flex;
  min-width: max-content;
  gap: 0;
  padding: 1rem 0;
}

.fb-wf-step {
  flex: 0 0 118px;
  text-align: center;
  position: relative;
  padding: 0 0.35rem;
}

.fb-wf-step:not(:last-child)::after {
  content: '↓';
  position: absolute;
  right: -0.2rem;
  top: 1.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--red);
  transform: rotate(-90deg);
}

.fb-wf-step__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.5rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  animation: fb-wf-pulse 4s ease-in-out infinite;
}

.fb-wf-step:nth-child(2) .fb-wf-step__icon { animation-delay: -0.4s; }
.fb-wf-step:nth-child(4) .fb-wf-step__icon { animation-delay: -0.8s; }
.fb-wf-step:nth-child(6) .fb-wf-step__icon { animation-delay: -1.2s; }
.fb-wf-step:nth-child(8) .fb-wf-step__icon { animation-delay: -1.6s; }
.fb-wf-step:nth-child(10) .fb-wf-step__icon { animation-delay: -2s; }

@keyframes fb-wf-pulse {
  0%, 100% { border-color: var(--line); }
  50% { border-color: rgba(177,18,38,0.4); transform: scale(1.05); }
}

.fb-wf-step strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ─── POS Dashboard ─── */
.fb-pos-dash {
  background: var(--ink);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}

.fb-pos-dash__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fb-pos-dash__head h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #fff;
}

.fb-pos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

@media (max-width: 900px) {
  .fb-pos-grid { grid-template-columns: repeat(2, 1fr); }
}

.fb-pos-kpi {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.85rem;
}

.fb-pos-kpi label {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.42);
  margin-bottom: 0.25rem;
}

.fb-pos-kpi strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.fb-pos-kpi.gold strong { color: var(--warn); }
.fb-pos-kpi.accent strong { color: #a78bfa; }
.fb-pos-kpi.warn strong { color: var(--danger); }
.fb-pos-kpi.pos strong { color: var(--success); }

/* ─── Floor plan ─── */
.fb-floor {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.fb-floor-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.fb-filter {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--muted);
}

.fb-filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.fb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.65rem;
  font-weight: 600;
}

.fb-legend span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.fb-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.fb-tables {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.25rem, 1fr));
  gap: 0.5rem;
}

.fb-table {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  transition: transform 0.2s var(--ease);
  cursor: default;
}

.fb-table:hover { transform: scale(1.1); }

.fb-table--avail { background: #64748b; }
.fb-table--occ { background: var(--success); }
.fb-table--res { background: #2563eb; }
.fb-table--bill { background: #b45309; }
.fb-table--clean { background: #0891b2; }
.fb-table--vip { background: #9333ea; }
.fb-table--grp { background: var(--red); }

.fb-table--rect {
  border-radius: 10px;
  aspect-ratio: 1.4;
}

/* ─── KDS ─── */
.fb-kds-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .fb-kds-layout { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

.fb-kds-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fb-kds-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  position: relative;
}

.fb-kds-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1rem;
  top: 2.4rem;
  height: calc(100% - 0.25rem);
  width: 2px;
  background: var(--line);
}

.fb-kds-step__dot {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  z-index: 1;
}

.fb-kds-step strong { font-size: 0.85rem; }

.fb-kds-board {
  background: #1a2230;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.fb-kds-board__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.fb-kds-col {
  display: grid;
  gap: 0.65rem;
}

.fb-kds-card {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.85rem;
  border-left: 4px solid var(--red);
}

.fb-kds-card--ready { border-left-color: var(--success); }
.fb-kds-card--cook { border-left-color: var(--warn); }

.fb-kds-card__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.fb-kds-card__timer {
  color: var(--warn);
  font-variant-numeric: tabular-nums;
}

.fb-kds-card p {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
}

.fb-kds-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.fb-kds-metric {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 0.65rem;
  text-align: center;
}

.fb-kds-metric label {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.2rem;
}

.fb-kds-metric b {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

/* ─── Bar dashboard ─── */
.fb-bar-dash {
  background: var(--ink);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.fb-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.fb-bar-kpi {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.85rem;
}

.fb-bar-kpi label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.25rem;
}

.fb-bar-kpi strong {
  font-size: 1.1rem;
  font-weight: 800;
}

.fb-bar-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fb-bar-list div {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ─── Inventory integration ─── */
.fb-inv-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.fb-inv-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fb-inv-kpi label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.fb-inv-kpi strong {
  font-size: 1.1rem;
  font-weight: 800;
}

.fb-inv-kpi strong.warn { color: var(--red); }

/* ─── Procurement flow ─── */
.fb-proc-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.fb-proc-step {
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.fb-proc-arrow {
  color: var(--red);
  font-weight: 800;
}

/* ─── Executive dashboard ─── */
.fb-exec-dash {
  background: var(--ink);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}

.fb-exec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

@media (max-width: 900px) {
  .fb-exec-grid { grid-template-columns: repeat(2, 1fr); }
}

.fb-exec-kpi {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.85rem;
}

.fb-exec-kpi label {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.42);
  margin-bottom: 0.25rem;
}

.fb-exec-kpi strong {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.fb-exec-kpi.gold strong { color: var(--warn); }
.fb-exec-kpi.accent strong { color: #a78bfa; }
.fb-exec-kpi.pos strong { color: var(--success); }

.fb-rev-chart {
  margin-top: 1.25rem;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 1rem;
}

.fb-rev-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 100px;
}

.fb-rev-bar {
  flex: 1;
  background: var(--red);
  border-radius: 4px 4px 0 0;
  animation: hp-bar-grow 1s var(--ease) backwards;
}

.fb-rev-bar:nth-child(1) { height: 45%; animation-delay: 0.05s; }
.fb-rev-bar:nth-child(2) { height: 62%; animation-delay: 0.1s; }
.fb-rev-bar:nth-child(3) { height: 55%; animation-delay: 0.15s; }
.fb-rev-bar:nth-child(4) { height: 78%; animation-delay: 0.2s; }
.fb-rev-bar:nth-child(5) { height: 88%; animation-delay: 0.25s; }
.fb-rev-bar:nth-child(6) { height: 72%; animation-delay: 0.3s; }
.fb-rev-bar:nth-child(7) { height: 95%; animation-delay: 0.35s; }

/* ─── Mobile ─── */
.fb-mobile-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .fb-mobile-layout { grid-template-columns: 1fr 1fr; }
}

.fb-phones {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.fb-phone {
  width: 190px;
  background: var(--ink);
  border-radius: 26px;
  padding: 0.6rem;
  box-shadow: 0 24px 48px rgba(15,20,25,0.2);
}

.fb-phone--2 {
  width: 210px;
  transform: translateY(-16px);
}

.fb-phone__screen {
  background: #f8f9fb;
  border-radius: 20px;
  min-height: 340px;
  overflow: hidden;
}

.fb-phone__header {
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: #fff;
}

.fb-phone__header strong {
  display: block;
  font-size: 0.72rem;
}

.fb-phone__header span {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.55);
}

.fb-phone__body { padding: 0.75rem; }

.fb-phone__row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
}

/* ─── Insights ─── */
.fb-insights {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.fb-insight {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.fb-insight__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.fb-insight__dot--up { background: var(--success); }
.fb-insight__dot--warn { background: #b45309; }
.fb-insight__dot--info { background: var(--red); }

.fb-insight p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

/* ─── Benefits ─── */
.fb-benefits {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.fb-benefit {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s var(--ease);
}

.fb-benefit:hover { transform: translateY(-4px); }

.fb-benefit__icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.fb-benefit h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.fb-benefit p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Layout helpers ─── */
.fb-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fb-band--warm {
  background: var(--page-muted);
}

.fb-split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .fb-split { grid-template-columns: 1fr 1fr; }
}

.fb-final {
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
}

.fb-final .hp-h2 { color: #fff; line-height: 1.15; }
.fb-final .hp-lede { color: rgba(255,255,255,0.7); }

.fb-final .mk-btn-xl--outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
