/* Home page: live simulations, globe, themes and full menu. Colors follow the active theme. */

/* Hero */
.hero-live { padding: 56px 0 30px; }
.hl-in { display: grid; grid-template-columns: 1fr 1.08fr; gap: 44px; align-items: center; position: relative; }
.hl-copy h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.04; margin-bottom: 16px; }
.hl-copy h1 .grad { display: block; }
.hl-copy .lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--silver); max-width: 34em; }
.promo { display: flex; gap: 12px; align-items: center; margin: 22px 0 6px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(var(--acc-rgb), 0.45);
  background: linear-gradient(120deg, rgba(var(--acc-rgb), 0.16), rgba(var(--pri-rgb), 0.14)); box-shadow: 0 18px 40px -24px rgba(var(--acc-rgb), 0.8); max-width: 34em; }
.promo svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--electric); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: promo-spin 6s ease-in-out infinite; }
.promo b { color: #fff; }
@keyframes promo-spin { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg) scale(1.1); } 94% { transform: rotate(10deg); } }
.hl-copy .cta { margin-top: 22px; }
.hl-badges { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--silver); font-size: 14px; }
.hl-badges li { display: inline-flex; align-items: center; gap: 7px; }
.hl-badges svg { width: 17px; height: 17px; fill: none; stroke: var(--electric); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hl-visual { position: relative; }
.dash { position: relative; border-radius: 22px; padding: 16px; background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.92), rgba(var(--bg-rgb), 0.75));
  border: 1px solid rgba(var(--sky-rgb), 0.22); box-shadow: 0 40px 90px -40px rgba(var(--acc-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06); animation: dash-float 7s ease-in-out infinite; }
@keyframes dash-float { 50% { transform: translateY(-8px); } }
.dash-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dk { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(var(--sky-rgb), 0.12); min-width: 0; }
.dk small { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk b { display: block; font-size: clamp(13px, 1.25vw, 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.dk em, .up { font-style: normal; font-size: 11px; color: #34d399; font-weight: 700; }
.dash-chart { margin-top: 10px; padding: 10px 12px 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(var(--sky-rgb), 0.1); }
.dc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dc-head small { color: var(--muted); font-size: 11.5px; }
.lgd { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.lgd i { width: 14px; height: 3px; border-radius: 3px; background: var(--electric); display: inline-block; }
.lgd i.l2 { background: var(--blue); margin-inline-start: 8px; }
.pl-chart .lgd i.l2 { background: var(--text); }
.dash-chart canvas { width: 100%; height: 150px; display: block; margin-top: 6px; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dash-branches { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(var(--sky-rgb), 0.1); }
.dash-branches small { color: var(--muted); font-size: 11px; }
.dash-branches ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.dash-branches li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12px; }
.dash-branches li i { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--blue), var(--electric)); transition: width 0.8s var(--ease); }
.dash-branches li b { font-size: 11px; color: var(--silver); font-variant-numeric: tabular-nums; }
.dash-feed { display: grid; gap: 6px; align-content: start; min-height: 132px; }
.fe { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(var(--acc-rgb), 0.08);
  border: 1px solid rgba(var(--acc-rgb), 0.22); font-size: 11.5px; animation: fe-in 0.5s var(--ease); }
.fe i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.fe.bk i { background: var(--electric); box-shadow: 0 0 10px var(--electric); }
.fe span { min-width: 0; } .fe b { display: block; font-size: 11.5px; } .fe small { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fe em { font-style: normal; font-weight: 700; color: var(--electric); white-space: nowrap; }
@keyframes fe-in { from { opacity: 0; transform: translateY(-10px) scale(0.97); } }
.float-card { position: absolute; padding: 10px 14px; border-radius: 14px; background: rgba(var(--bg-rgb), 0.88); border: 1px solid rgba(var(--acc-rgb), 0.35);
  box-shadow: 0 18px 40px -18px rgba(var(--acc-rgb), 0.7); backdrop-filter: blur(10px); font-size: 12.5px; }
.float-card small { display: block; color: var(--muted); font-size: 11px; } .float-card b { white-space: nowrap; }
.fc1 { inset-inline-start: -26px; top: 38%; animation: dash-float 6s ease-in-out infinite reverse; }
.fc2 { inset-inline-end: -18px; bottom: -18px; animation: dash-float 8s ease-in-out infinite; }

/* Stats with five figures */
.stats.s5 { display: grid; grid-template-columns: repeat(5, 1fr); }

/* Globe */
.globe-split { align-items: center; }
.globe-box { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1; }
.globe { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }
.globe-ring { position: absolute; inset: 3%; border-radius: 50%; border: 1px dashed rgba(var(--sky-rgb), 0.25); animation: ring-spin 40s linear infinite; pointer-events: none; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.globe-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.globe-stats b { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 900; background: linear-gradient(90deg, #fff, var(--electric)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.globe-stats span { color: var(--muted); font-size: 13.5px; }
.joined { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); font-size: 14px; }
.joined .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: live 1.8s infinite; }
.joined .jl { color: var(--muted); }
.joined b { display: inline-block; }

/* Revenue & profit */
.pl-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.pl-grid .panel { padding: 18px; gap: 12px; }
.pl-chart canvas { width: 100%; height: 260px; display: block; }
.pl-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pl-kpis small { display: block; color: var(--muted); font-size: 12px; }
.pl-kpis b { font-size: clamp(15px, 1.6vw, 20px); font-variant-numeric: tabular-nums; }
.pl-flow ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.pl-flow li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; font-size: 14px; }
.pl-flow li b { font-variant-numeric: tabular-nums; }
.pl-flow li.neg b { color: #fca5a5; }
.pl-flow li.tot { padding-top: 12px; border-top: 1px dashed var(--line); font-weight: 800; }
.pl-flow li.tot b { color: #34d399; font-size: 17px; }
.pl-flow li i { grid-column: 1 / -1; position: relative; height: 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.pl-flow li i::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: var(--l, 0); width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--blue), var(--electric)); transition: width 0.9s var(--ease); }
.pl-flow li.neg i::after { background: linear-gradient(90deg, #f87171, #fb923c); }
.pl-flow li.tot i::after { background: linear-gradient(90deg, #10b981, #34d399); }
.pl-flow.play li i::after { width: var(--w, 0); }
.pl-flow.play li:nth-child(2) i::after { transition-delay: 0.35s; } .pl-flow.play li:nth-child(3) i::after { transition-delay: 0.7s; }
.pl-flow.play li:nth-child(4) i::after { transition-delay: 1.05s; } .pl-flow.play li:nth-child(5) i::after { transition-delay: 1.4s; } .pl-flow.play li:nth-child(6) i::after { transition-delay: 1.8s; }

/* Cashier simulation */
.pos-sim { position: relative; max-width: 380px; margin-inline: auto; width: 100%; padding: 18px; border-radius: 28px; background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.95), rgba(var(--bg-rgb), 0.8));
  border: 1px solid rgba(var(--sky-rgb), 0.25); box-shadow: 0 40px 80px -40px rgba(var(--acc-rgb), 0.6); min-height: 430px; overflow: hidden; }
.ps-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.ps-head b { color: #fff; }
.ps-cart { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 180px; align-content: start; }
.ps-cart li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(var(--sky-rgb), 0.12); font-size: 14px; animation: fe-in 0.45s var(--ease); }
.ps-cart li b { white-space: nowrap; }
.ps-total { display: flex; justify-content: space-between; margin: 14px 0 10px; font-size: 16px; }
.ps-total b { font-size: 20px; color: var(--electric); }
.ps-pay { text-align: center; padding: 13px; border-radius: 14px; font-weight: 800; color: var(--btn-ink, #fff); background: linear-gradient(135deg, var(--blue), var(--electric)); transition: transform 0.2s, filter 0.2s; }
.pos-sim.pressing .ps-pay { transform: scale(0.95); filter: brightness(1.3); }
.ps-ok { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(var(--bg-rgb), 0.92); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.ps-ok span { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #fff; background: #10b981; box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.18); transform: scale(0.4); transition: transform 0.45s cubic-bezier(.34, 1.56, .64, 1); }
.pos-sim.paid .ps-ok { opacity: 1; } .pos-sim.paid .ps-ok span { transform: scale(1); }
.pos-sim.printing .ps-ok { opacity: 0; }
.ps-receipt { position: absolute; inset-inline: 30px; top: 100%; padding: 14px; border-radius: 6px 6px 0 0; background: #f8fafc; color: #0f172a; font: 12px/1.6 ui-monospace, Menlo, monospace; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4); transition: transform 1.4s var(--ease); }
.ps-receipt .t { border-top: 1px dashed #94a3b8; margin-top: 6px; padding-top: 6px; font-weight: 800; }
.pos-sim.printing .ps-receipt { transform: translateY(-100%); }
.h-lg { font-size: clamp(24px, 2.6vw, 32px); }

/* Branch amounts */
.hub-node { display: grid; justify-items: center; gap: 2px; }
.hub-node b { font-size: 12px; color: var(--electric); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Staff simulation */
.staff-sim { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.ss-card { padding: 18px; display: grid; gap: 4px; }
.ss-card small { color: var(--muted); }
.ss-card b { font-size: clamp(18px, 2vw, 24px); font-variant-numeric: tabular-nums; }
.ss-card span { font-size: 12.5px; color: var(--muted); }
.ss-card .ok { color: #34d399; font-weight: 700; }

/* Stock */
.stock .card .flag { visibility: hidden; opacity: 0; transition: opacity 0.3s; }
.stock .card.low .flag { visibility: visible; opacity: 1; }
.stock .card.low .meter i { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.stock .meter i { transition: width 1.1s var(--ease); }

/* Booking & queue */
.book-sim { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.book-sim .panel { padding: 14px; gap: 10px; }
.cal-head { display: flex; justify-content: space-between; font-size: 13px; }
.cal-head span { color: var(--electric); font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slot { padding: 7px 8px; border-radius: 9px; border: 1px dashed rgba(var(--sky-rgb), 0.22); min-height: 48px; transition: background 0.4s, border-color 0.4s; }
.slot small { display: block; color: var(--muted); font-size: 10.5px; }
.slot b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.on { background: linear-gradient(135deg, rgba(var(--pri-rgb), 0.35), rgba(var(--acc-rgb), 0.2)); border: 1px solid rgba(var(--acc-rgb), 0.5); animation: fe-in 0.4s var(--ease); }
.queue small { color: var(--muted); font-size: 12px; }
.q-now { display: grid; justify-items: center; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--pri-rgb), 0.4), rgba(var(--acc-rgb), 0.25)); }
.q-now span { font-size: 11.5px; color: var(--silver); }
.q-now b { font-size: 30px; font-weight: 900; letter-spacing: 0.04em; }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.q-list li { padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); font-weight: 700; font-size: 13px; animation: fe-in 0.4s var(--ease); }

/* AI chat */
.ai-sim { max-width: 460px; width: 100%; margin-inline: auto; border-radius: 24px; padding: 16px; background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.95), rgba(var(--bg-rgb), 0.8));
  border: 1px solid rgba(var(--sky-rgb), 0.25); box-shadow: 0 40px 80px -40px rgba(var(--acc-rgb), 0.6); }
.ai-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ai-logo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--electric)); box-shadow: 0 0 18px rgba(var(--acc-rgb), 0.6); }
.ai-log { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; min-height: 320px; }
.ai-log > * { opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s var(--ease); max-height: 0; overflow: hidden; margin: 0; }
.ai-log > .show { opacity: 1; transform: none; max-height: 220px; }
.ai-log p { padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; max-width: 86%; }
.ai-log .me { align-self: flex-end; background: linear-gradient(135deg, var(--blue), var(--royal)); color: #fff; border-end-end-radius: 4px; }
.ai-log .bot { align-self: flex-start; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-end-start-radius: 4px; }
.ai-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; padding: 10px 14px; border-radius: 14px; }
.ai-bars i { width: 30px; height: 0; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--electric), var(--blue)); transition: height 0.9s var(--ease) 0.2s; }
.ai-bars.show i:nth-child(1) { height: 92%; } .ai-bars.show i:nth-child(2) { height: 68%; } .ai-bars.show i:nth-child(3) { height: 51%; }
.ai-input { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.mic { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.mic i { width: 3px; border-radius: 3px; background: var(--electric); animation: wave 1s ease-in-out infinite; }
.mic i:nth-child(2) { animation-delay: 0.15s; } .mic i:nth-child(3) { animation-delay: 0.3s; } .mic i:nth-child(4) { animation-delay: 0.45s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 16px; } }

/* Themes */
.theme-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.swatch { display: grid; gap: 8px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); color: var(--text); cursor: pointer; font: 600 13px/1.3 inherit; text-align: center; transition: transform 0.2s, border-color 0.2s; }
.swatch:hover { transform: translateY(-3px); border-color: rgba(var(--acc-rgb), 0.6); }
.swatch[aria-pressed="true"] { border-color: var(--electric); box-shadow: 0 0 0 2px rgba(var(--acc-rgb), 0.35); }
.sw { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 54px; border-radius: 10px; overflow: hidden; background: var(--s-bg); border: 1px solid rgba(255, 255, 255, 0.08); }
.sw i:nth-child(1) { background: var(--s-bg); } .sw i:nth-child(2) { background: var(--s-pri); } .sw i:nth-child(3) { background: var(--s-acc); }
.theme-reset { margin-top: 20px; text-align: center; }

/* Full menu */
.menu-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.menu-tabs button { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); color: var(--muted); font: 700 14px/1 inherit; cursor: pointer; }
.menu-tabs button[aria-selected="true"] { color: var(--btn-ink, #fff); background: linear-gradient(135deg, var(--blue), var(--electric)); border-color: transparent; }
.menu-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mi { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); transition: transform 0.25s var(--ease), border-color 0.25s; }
.mi:hover { transform: translateY(-4px); border-color: rgba(var(--acc-rgb), 0.5); }
.mi svg { width: 26px; height: 26px; fill: none; stroke: var(--electric); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.mi h3 { font-size: 15px; margin-bottom: 4px; }
.mi p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.45; }

@media (max-width: 1100px) {
  .menu-grid, .theme-gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  .hl-in, .pl-grid { grid-template-columns: 1fr; }
  .hl-visual { max-width: 640px; margin-inline: auto; width: 100%; }
  .stats.s5 { grid-template-columns: repeat(3, 1fr); }
  .staff-sim { grid-template-columns: repeat(2, 1fr); }
  .fc1 { inset-inline-start: -8px; }
  .fc2 { inset-inline-end: -4px; }
}
@media (max-width: 640px) {
  .hero-live { padding-top: 32px; }
  .dash { padding: 12px; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-row { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .menu-grid, .theme-gallery { grid-template-columns: repeat(2, 1fr); }
  .stats.s5 { grid-template-columns: repeat(2, 1fr); }
  .book-sim { grid-template-columns: 1fr; }
  .pl-kpis { grid-template-columns: 1fr 1fr; }
  .pl-chart canvas { height: 200px; }
  .globe-box { max-width: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .dash, .float-card, .globe-ring, .promo svg, .mic i { animation: none; }
}
