/* ============================================================
   TAPPUCCINO PLATFORM | FULL-WIDTH ESPRESSO STUDIO & LANDING
   Inspired by modern dark-sidebar workspaces + tactile coffee-crema energy
   ============================================================ */

:root {
  --bg: #faf9f6;
  --bg-deep: #efede8;
  --surface: #ffffff;
  --surface-soft: #f5f4f0;
  --ink: #1c110b;
  --muted: #6e5445;
  --sidebar-bg: #120a06;
  --sidebar-card: #1f130c;
  --sidebar-border: rgba(235, 198, 160, 0.12);
  --espresso: #26160e;
  --roast: #422719;
  --mocha: #6b422b;
  --crema: #d49663;
  --terracotta: #a65d32;
  --terracotta-soft: rgba(166, 93, 50, 0.13);
  --mint: #16a34a;
  --green: #166534;
  --green-soft: rgba(22, 101, 52, 0.12);
  --amber: #8f4f22;
  --amber-soft: rgba(180, 110, 56, 0.15);
  --red: #9f1239;
  --red-soft: rgba(159, 18, 57, 0.1);
  --border: rgba(58, 34, 21, 0.12);
  --shadow-sm: 0 2px 12px rgba(38, 22, 14, 0.06);
  --shadow-md: 0 14px 38px rgba(38, 22, 14, 0.11);
  --shadow-xl: 0 32px 75px rgba(18, 10, 6, 0.28);
  --radius: 16px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: #faf9f6;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%236b422b' stroke-opacity='0.06' stroke-width='1.35' stroke-linecap='round'%3E%3Cellipse cx='28' cy='32' rx='6' ry='9' transform='rotate(-25 28 32)'/%3E%3Cpath d='M25 24c2 5-1 10 2 15' transform='rotate(-25 28 32)'/%3E%3Crect x='116' y='24' width='12' height='12' rx='2'/%3E%3Crect x='119' y='27' width='3' height='3' fill='%236b422b' fill-opacity='0.06' stroke='none'/%3E%3Crect x='123' y='31' width='3' height='3' fill='%236b422b' fill-opacity='0.06' stroke='none'/%3E%3Cpath d='M62 118c3-3 3-8 0-11M66 121c5-5 5-12 0-17M70 124c7-7 7-16 0-23'/%3E%3Cellipse cx='144' cy='128' rx='5.5' ry='8.5' transform='rotate(28 144 128)'/%3E%3Cpath d='M144 120c-2 5 1 10-1 15' transform='rotate(28 144 128)'/%3E%3Crect x='22' y='140' width='10' height='10' rx='2'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 12% 18%, rgba(212, 150, 99, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 86% 24%, rgba(139, 73, 34, 0.06) 0%, transparent 46%);
  background-attachment: fixed;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: auto;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea, code, pre {
  font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

/* Centered Container with 6.25% Outer Margins (87.5% track) */
.fluid-wrap {
  width: min(87.5%, 1680px);
  margin: 0 auto;
  padding: 0;
}

/* ============================================================
   BUTTONS & BADGES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #1f120b, #382014);
  color: #fdf6ed;
  box-shadow: 0 8px 20px rgba(31, 18, 11, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2d1a10, #4d2d1d);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #8b4922 0%, #b86f3e 52%, #d49663 100%);
  color: #fffaf3;
  box-shadow: 0 10px 26px rgba(139, 73, 34, 0.3);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(139, 73, 34, 0.38);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface-soft);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 9px;
}

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(185, 28, 28, 0.2);
}

.btn-success {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(21, 128, 61, 0.22);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-muted { background: var(--bg-deep); color: var(--muted); }
.badge-soft { background: rgba(66, 39, 25, 0.06); color: #3d2416; border: 1px solid rgba(58, 34, 21, 0.1); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: var(--terracotta-soft);
  padding: 6px 13px;
  border-radius: 999px;
}

/* ============================================================
   SEAMLESS HERO-MERGED TOP NAVIGATION (NO SEPARATE PANEL)
   ============================================================ */
.topbar {
  position: relative;
  z-index: 20;
  background: transparent;
  padding: 10px 0 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar-brand-logo img {
  width: 164px;
  height: auto;
  margin: -14px 0;
  display: block;
}

.topbar-right-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #4f392b;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar-link:hover {
  color: #170d08;
  background: rgba(58, 34, 21, 0.08);
}

.topbar-link.active {
  color: #170d08;
  background: rgba(212, 150, 99, 0.28);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar-logo-dark-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 4px;
}

.sidebar-logo-dark-img {
  width: 196px;
  height: auto;
  margin: -18px auto -6px;
  display: block;
}

/* ============================================================
   ORIGINAL TAPPUCCINO HERO LEFT HALF
   ============================================================ */
.tapp-hero {
  position: relative;
  padding: clamp(10px, 1.5vw, 22px) 0 54px;
  overflow: hidden;
  background: transparent;
}

.tapp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.hero-copy-col {
  padding-top: clamp(12px, 1.8vw, 26px);
}

.tapp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(252, 248, 242, 0.8);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a65d32;
  box-shadow: 0 0 0 3px rgba(166, 93, 50, 0.2);
}

.tapp-headline {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(34px, 3.75vw, 64px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #170d08;
  margin: 0 0 18px;
}

.headline-line {
  display: block;
}

@media (min-width: 1041px) {
  .headline-line {
    white-space: nowrap;
  }
}

.tapp-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: #9e5428;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: clamp(17px, 1.45vw, 21px);
  color: #4f392b;
  margin: 0 0 26px;
  max-width: 720px;
  line-height: 1.55;
}

/* Original Tappuccino Value Highlights (Clean & Readable) */
.tapp-value-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 720px;
  margin-top: 30px;
}

.tapp-value-item {
  background: rgba(252, 248, 242, 0.85);
  border: 1px solid rgba(58, 34, 21, 0.12);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}

.tapp-value-summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  pointer-events: none;
}

.tapp-value-summary::-webkit-details-marker {
  display: none;
}

.tapp-value-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #170d08;
  color: #e8b587;
  display: grid;
  place-items: center;
  font-size: 21px;
  flex-shrink: 0;
}

.tapp-value-title {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  color: #170d08;
  padding-top: 2px;
  flex: 1;
}

.tapp-value-chev {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--espresso);
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tapp-value-desc {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  padding-left: 68px;
  margin-top: -24px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.hero-cta .btn {
  padding: 14px 26px;
  font-size: 15px;
}

/* Interactive Cappuccino Dropdown / Accordion Cards */
.tapp-dropdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tapp-dropdown[open] {
  border-color: rgba(166, 93, 50, 0.35);
  box-shadow: var(--shadow-md);
}

.tapp-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tapp-dropdown summary::-webkit-details-marker {
  display: none;
}

.dd-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dd-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--terracotta-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.dd-chevron {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--espresso);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.tapp-dropdown[open] .dd-chevron {
  transform: rotate(180deg);
  background: var(--espresso);
  color: #fffaf3;
}

.dd-body {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}

.step-art-well {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(252, 248, 242, 0.94);
  display: grid;
  place-items: center;
  padding: 8px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.step-art-well img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   ARCHED SHOWCASE STAGE & SCALED IPHONE 16 (TRUE 420PX MOBILE VIEW)
   ============================================================ */
.phone-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  width: auto;
}

.arch-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 40px 44px 26px;
  width: min(504px, 100%);
}

.arch-backdrop {
  position: absolute;
  inset: 14px 10px 0 10px;
  border-radius: 260px 260px 36px 36px;
  background: linear-gradient(160deg, #1b0f09 0%, #3d2315 55%, #8f532c 100%);
  box-shadow: 0 28px 65px rgba(23, 13, 8, 0.28);
  z-index: 0;
}

.arch-outline-ring {
  position: absolute;
  inset: 0px 0px 10px 22px;
  border-radius: 270px 270px 36px 36px;
  border: 1.5px solid rgba(166, 93, 50, 0.35);
  z-index: 0;
  pointer-events: none;
}

.stage-stamp-badge {
  position: absolute;
  top: 38px;
  right: 2px;
  z-index: 6;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #170d08;
  color: #f6e7d4;
  border: 2px solid #d49663;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(18, 10, 6, 0.35);
  transform: rotate(10deg);
}

.stage-stamp-badge strong {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #d49663;
  line-height: 1;
}

.stage-float-card {
  position: absolute;
  left: 0;
  bottom: 42px;
  z-index: 6;
  background: rgba(252, 248, 242, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(23, 13, 8, 0.14);
  border-radius: 18px;
  padding: 10px 14px 10px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 36px rgba(18, 10, 6, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.stage-float-card:hover {
  transform: translateY(-3px);
}

.stage-float-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #f2e8dc;
  padding: 4px;
}

/* iPhone 16 Titanium Outer Chassis */
.iphone-16-chassis {
  position: relative;
  z-index: 2;
  width: 356px;
  height: 696px;
  padding: 4px;
  border-radius: 52px;
  background: linear-gradient(145deg, #d8cfc4 0%, #6f665d 28%, #3c3631 62%, #b9afa4 100%);
  box-shadow:
    0 34px 76px rgba(12, 7, 4, 0.45),
    0 8px 20px rgba(12, 7, 4, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.65);
  display: flex;
}

/* iPhone 16 Hardware Side Buttons */
.hw-btn {
  position: absolute;
  background: linear-gradient(180deg, #9f9489, #60574f);
  border-radius: 3px;
  z-index: 1;
}
.hw-action { left: -3px; top: 112px; width: 3px; height: 26px; }
.hw-vol-up { left: -3px; top: 156px; width: 3px; height: 48px; }
.hw-vol-dn { left: -3px; top: 214px; width: 3px; height: 48px; }
.hw-power { right: -3px; top: 170px; width: 3px; height: 74px; }
.hw-cam-ctrl {
  right: -3px;
  top: 410px;
  width: 3px;
  height: 54px;
  background: linear-gradient(180deg, #d8b594, #826956);
}

.iphone-bezel {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #0d0c0b;
  border-radius: 48px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.iphone-screen {
  position: relative;
  flex: 1;
  width: 100%;
  background: #faf8f4;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.iphone-screen:hover {
  box-shadow: 0 0 0 2px rgba(212, 150, 99, 0.45);
}

.iphone-notch-bar {
  height: 36px;
  background: #faf8f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 0;
  font-size: 11.5px;
  font-weight: 800;
  color: #1c1714;
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 104px;
  height: 24px;
  border-radius: 999px;
  background: #0b0b0c;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.di-lens {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3c548a, #0e1424 65%, #050507);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-status-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
}

.ios-home-indicator {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 4px;
  border-radius: 999px;
  background: rgba(24, 19, 16, 0.35);
  z-index: 6;
  pointer-events: none;
}

/* True 420px Mobile Viewport Scaled Cleanly Into 332x636 Screen */
.iphone-iframe-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  background: #faf8f4;
}

.iphone-iframe {
  width: 420px;
  height: 804px;
  border: none;
  background: #faf8f4;
  transform: scale(0.7905);
  transform-origin: top left;
  display: block;
}

.iphone-tour-shield {
  position: absolute;
  inset: 36px 0 0 0;
  z-index: 5;
  background: transparent;
  cursor: pointer;
}

.iphone-tour-shield.hidden {
  display: none;
}

.tour-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.tour-pill {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.tour-pill.active {
  background: var(--espresso);
  color: #fffaf3;
}

.tour-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
  margin-right: 4px;
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Landing Bento Showcase Section */
.landing-section {
  padding: 56px 0;
}

.landing-dark-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(198, 134, 80, 0.14) 0%, transparent 45%),
    linear-gradient(155deg, #120a06 0%, #24150d 55%, #170d08 100%);
  color: #f8efe4;
  padding: 56px 0;
}

.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.landing-dark-band .bento-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.11);
  color: #fffaf3;
}

.bento-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--terracotta-soft);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 14px;
}

/* ============================================================
   FULL-WIDTH DASHBOARD APP SHELL WITH DARK ESPRESSO SIDEBAR
   ============================================================ */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: transparent;
}

.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: #f6efe6;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--sidebar-border);
  z-index: 50;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 18px;
}

.sidebar-brand .brand-mark {
  color: #fffaf3;
  font-size: 21px;
}

.sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5eadc, #e5cfb5);
  color: #170d08;
  font-weight: 800;
  font-size: 13.5px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}

.sidebar-cta:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.sb-group-lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 239, 230, 0.45);
  padding: 10px 10px 6px;
}

.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sb-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(246, 239, 230, 0.72);
  transition: background 0.15s ease, color 0.15s ease;
}

.sb-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fffaf3;
}

.sb-link.active {
  background: linear-gradient(90deg, rgba(212, 150, 99, 0.22), rgba(212, 150, 99, 0.08));
  color: #fff8ee;
  box-shadow: inset 0 0 0 1px rgba(212, 150, 99, 0.28);
}

.sb-link-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sb-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(212, 150, 99, 0.22);
  color: #e6b385;
}

.sidebar-footer-card {
  margin-top: auto;
  background: var(--sidebar-card);
  border: 1px solid var(--sidebar-border);
  border-radius: 14px;
  padding: 14px;
  font-size: 12.5px;
}

.sidebar-footer-card strong {
  display: block;
  color: #fffaf3;
  margin-bottom: 4px;
}

.sidebar-footer-card p {
  margin: 0 0 10px;
  color: rgba(246, 239, 230, 0.65);
  font-size: 12px;
  line-height: 1.4;
}

/* Main Workspace Area (Edge-to-Edge) */
.workspace-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.workspace-topbar {
  background: transparent;
  padding: 18px clamp(16px, 3vw, 36px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(252, 248, 242, 0.88);
  border: 1px solid var(--border);
  color: var(--espresso);
}

.workspace-body {
  flex: 1;
  padding: 12px clamp(16px, 3vw, 36px) 48px;
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--espresso);
  border-radius: 12px;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.landing-mobile-nav {
  display: none;
}

.landing-mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(252, 248, 242, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.show-mobile-sm {
  display: none;
}

/* Collapsible Dashboard Accordion Cards & Menu Categories */
.dash-dd-sum,
.cat-dd-sum {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash-dd-sum::-webkit-details-marker,
.cat-dd-sum::-webkit-details-marker {
  display: none;
}

.dash-dd-sum {
  pointer-events: none;
}

.dash-dd-sum h3 {
  margin: 0;
}

.dash-dd-body {
  margin-top: 14px;
}

.dash-dd-chev {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--espresso);
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cat-dd {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.cat-dd-sum {
  cursor: pointer;
}

.cat-dd .dash-dd-chev {
  display: grid;
}

.cat-dd[open] .dash-dd-chev,
.dash-dd[open] .dash-dd-chev {
  transform: rotate(180deg);
  background: var(--espresso);
  color: #fffaf3;
}

.cat-dd-body {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 48;
}

.dash-greeting-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.dash-greeting-row h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}

.dash-accent-name {
  color: var(--terracotta);
}

.dash-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Grids & Cards inside full-width workspace */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.grid-asym {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
}

.card-muted {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.kpi-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.kpi-val {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 800;
  margin: 4px 0 2px;
  color: var(--espresso);
}

.kpi-note {
  font-size: 12px;
  color: var(--muted);
}

/* Flash Messages */
.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.flash {
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
}

.flash.success { background: var(--green-soft); color: var(--green); border-color: rgba(21, 128, 61, 0.25); }
.flash.error { background: var(--red-soft); color: var(--red); border-color: rgba(185, 28, 28, 0.25); }
.flash.warning { background: var(--amber-soft); color: var(--amber); border-color: rgba(180, 83, 9, 0.25); }
.flash.info { background: var(--terracotta-soft); color: var(--terracotta); }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: 0.01em;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="number"],
.field input[type="search"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(58, 34, 21, 0.15);
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: #1c110b;
  box-shadow: inset 0 1px 2px rgba(23, 13, 8, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23422719' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 14px;
}

.field input[type="file"] {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--muted);
}

.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(58, 34, 21, 0.16);
  background: var(--surface-soft);
  color: var(--espresso);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.field input[type="file"]::file-selector-button:hover {
  background: var(--bg-deep);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9e8475;
  font-weight: 400;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(166, 93, 50, 0.14);
}

.multi-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(58, 34, 21, 0.15);
  background: #ffffff;
}

.multi-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid rgba(58, 34, 21, 0.12);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--espresso);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.multi-pill input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.multi-pill:has(input:checked) {
  background: rgba(166, 93, 50, 0.14);
  border-color: rgba(166, 93, 50, 0.35);
  color: #170d08;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 6px 0 12px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
}

table.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.clean-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

table.clean-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-weight: 500;
  color: #3d2416;
}

/* Charts & Items */
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 125px;
  padding-top: 12px;
}

.mini-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
  justify-content: flex-end;
}

.mini-bar-fill {
  width: 100%;
  max-width: 26px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #c6844f, #26160e);
}

.mini-bar-lbl {
  font-size: 10px;
  color: var(--muted);
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.item-row:last-child {
  border-bottom: none;
}

.item-row.is-hidden-item {
  opacity: 0.78;
  background: rgba(180, 83, 9, 0.05);
  padding: 12px 12px;
  border-radius: 12px;
  margin: 6px 0;
}

.item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.qr-banner {
  background: linear-gradient(135deg, #170d08 0%, #3a2114 60%, #5c3621 100%);
  color: #fdf6ed;
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(23, 13, 8, 0.22);
}

.qr-url-pill {
  background: rgba(255, 255, 255, 0.14);
  padding: 7px 12px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
}

/* ============================================================
   FIXED 50/50 SPLIT LOGIN LAYOUT (INFLEXIA-INSPIRED, ZERO PAGE SCROLL)
   ============================================================ */
html:has(body.login-page-body) {
  background: #140a05;
  background-image: none;
  overflow-x: hidden;
}

body.login-page-body {
  background: #140a05;
  background-image: none;
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

.login-split-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.login-left-pane {
  position: relative;
  height: 100vh;
  background:
    radial-gradient(circle at 75% 42%, rgba(212, 150, 99, 0.24) 0%, transparent 48%),
    radial-gradient(circle at 18% 82%, rgba(166, 93, 50, 0.16) 0%, transparent 45%),
    linear-gradient(155deg, #130a05 0%, #24130a 52%, #3a1e10 100%);
  color: #fdf6ec;
  padding: clamp(20px, 2.6vh, 30px) clamp(26px, 3.8vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.login-left-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-mobile-back {
  display: none;
  font-size: 12px;
  font-weight: 700;
  color: #f6e7d4;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 150, 99, 0.35);
  white-space: nowrap;
}

.login-left-brand img {
  width: 158px;
  height: auto;
  display: block;
  margin: -18px 0 -14px;
}

.login-left-center {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 24px);
  width: 100%;
  margin: auto 0;
}

.login-left-copy h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 2.75vw, 42px);
  line-height: 1.09;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: #fffaf3;
}

.login-left-copy h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: #e8b587;
}

.login-left-copy p {
  margin: 0;
  font-size: clamp(13px, 1.08vw, 15px);
  line-height: 1.5;
  color: rgba(253, 246, 236, 0.74);
  max-width: 600px;
}

.login-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: rgba(253, 246, 236, 0.78);
}

.login-feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.login-feature-list li span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 150, 99, 0.25);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}

.login-feature-list strong {
  color: #fff8ef;
}

.login-left-foot {
  font-size: 12px;
  color: rgba(253, 246, 236, 0.45);
}

.login-right-pane {
  position: relative;
  height: 100vh;
  background:
    radial-gradient(circle at 82% 18%, rgba(212, 150, 99, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 18% 85%, rgba(166, 93, 50, 0.09) 0%, transparent 45%),
    #fcf8f2;
  padding: clamp(20px, 2.6vh, 30px) clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.login-right-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.login-mobile-brand {
  display: none;
  align-items: center;
}

.login-mobile-brand img {
  width: 136px;
  height: auto;
  margin: -14px 0 -10px;
  display: block;
}

.login-back-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.login-back-link:hover {
  background: var(--espresso);
  color: #fffaf3;
}

.login-card-center {
  display: grid;
  place-items: center;
  margin: auto 0;
}

.auth-card-clean {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid rgba(58, 34, 21, 0.1);
  border-radius: 22px;
  padding: 32px 30px;
  box-shadow: 0 22px 54px rgba(23, 13, 8, 0.08);
  color: var(--ink);
}

.auth-card-clean h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  font-size: 28px;
  color: var(--espresso);
}

.pw-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-input-wrap input {
  width: 100%;
  padding-right: 44px !important;
}

.pw-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  appearance: none;
  -webkit-appearance: none;
  border: none !important;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.pw-toggle-btn:hover {
  color: var(--espresso);
  background: transparent !important;
}

.login-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 8px;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.remember-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #a65d32;
  cursor: pointer;
}

.login-submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 13px 20px;
  background: var(--espresso);
  color: #fffaf3;
  font-weight: 700;
  border: none;
}

.login-submit-btn:hover {
  background: #3d2315;
}

.login-right-foot {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.brew-3d-viewport.compact {
  width: 100%;
  height: 315px;
  margin-top: 10px;
  display: grid;
  place-items: center;
  perspective: 1150px;
}

.brew-3d-viewport.compact .brew-3d-stage {
  transform: scale(1.04) rotateX(6deg) rotateY(-6deg);
  animation: stageFloatCompact 7s ease-in-out infinite;
}

@keyframes stageFloatCompact {
  0%, 100% { transform: scale(1.04) rotateX(6deg) rotateY(-6deg) translateY(0px); }
  50% { transform: scale(1.04) rotateX(9deg) rotateY(6deg) translateY(-5px); }
}

/* ============================================================
   3D MOVING CAPPUCCINO + NFC & QR MENU BREWING ENGINE (LOGIN)
   ============================================================ */
.brew-showcase {
  position: relative;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(166, 93, 50, 0.28), transparent 55%),
              linear-gradient(155deg, #170d08 0%, #2a170e 54%, #452414 100%);
  color: #fff8ef;
  padding: 24px 26px 26px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(232, 181, 135, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brew-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 150, 99, 0.35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #f3c89d;
}

.brew-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseLed 1.6s ease-in-out infinite;
}

.brew-3d-viewport {
  position: relative;
  height: 360px;
  display: grid;
  place-items: center;
  perspective: 1150px;
}

.brew-3d-stage {
  position: relative;
  width: 470px;
  height: 340px;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(-6deg);
  animation: stageFloat 7s ease-in-out infinite;
  transition: transform 0.25s ease-out;
}

/* 3D Espresso Machine Assembly */
.espresso-rig {
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translateX(-50%) translateZ(20px);
  width: 390px;
  transform-style: preserve-3d;
}

.machine-top-rail {
  height: 32px;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(90deg, #2d1b12, #4d2f20, #2d1b12);
  border: 1px solid rgba(212, 150, 99, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
  transform: translateZ(18px);
}

.pressure-dial {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fdf6ec;
  border: 2px solid #d49663;
  position: relative;
  display: inline-block;
}

.dial-needle {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  height: 6px;
  background: #9e5428;
  transform-origin: bottom center;
  animation: gaugeNeedle 3.2s ease-in-out infinite;
}

.rail-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #f4cca3;
}

.status-leds {
  display: flex;
  gap: 5px;
}

.status-leds i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.status-leds i.amber {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: pulseLed 1.1s ease-in-out infinite;
}

.machine-front-face {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 10px;
  align-items: start;
  background: linear-gradient(180deg, #1b0f09 0%, #110804 100%);
  border: 1px solid rgba(212, 150, 99, 0.22);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 14px 12px 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  transform-style: preserve-3d;
}

.module-pod {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 150, 99, 0.25);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  transform: translateZ(26px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.nfc-pod {
  transform: translateZ(32px) rotateY(10deg);
}

.qr-pod {
  transform: translateZ(32px) rotateY(-10deg);
}

.mod-lbl {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  color: #e8b587;
}

.mod-sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 246, 234, 0.72);
}

.nfc-waves {
  height: 46px;
  display: grid;
  place-items: center;
}

.wave-arc {
  animation: nfcPulse 1.8s ease-out infinite;
}
.wave-arc.a2 { animation-delay: 0.25s; }
.wave-arc.a3 { animation-delay: 0.5s; }

.brew-meter {
  height: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding-bottom: 6px;
}

.meter-bar {
  width: 7px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f3c89d, #a65d32);
  animation: eqBar 1.2s ease-in-out infinite alternate;
}
.meter-bar.b1 { height: 18px; }
.meter-bar.b2 { height: 32px; animation-delay: 0.2s; }
.meter-bar.b3 { height: 24px; animation-delay: 0.4s; }
.meter-bar.b4 { height: 36px; animation-delay: 0.6s; }

/* Center QR Grouphead & Pouring Crema */
.brew-center-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateZ(44px);
}

.qr-portafilter {
  position: relative;
  background: linear-gradient(145deg, #4b2d1d, #24130a);
  border: 1.5px solid #d49663;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.qr-matrix-box {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #120905;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qr-laser-bar {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: qrLaser 2s ease-in-out infinite;
}

.porta-handle {
  position: absolute;
  right: -28px;
  top: 50%;
  transform: translateY(-50%) rotateZ(-8deg);
  width: 30px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d49663, #7a421f);
}

.twin-spouts {
  display: flex;
  gap: 14px;
}

.spout {
  width: 6px;
  height: 10px;
  border-radius: 0 0 4px 4px;
  background: #c78b59;
}

.crema-streams {
  display: flex;
  gap: 16px;
  height: 42px;
}

.crema-stream {
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3c89d 0%, #c67c3e 55%, #5e2c11 100%);
  box-shadow: 0 0 10px rgba(212, 150, 99, 0.6);
  animation: espressoPour 0.9s linear infinite;
}

.crema-stream.s2 {
  animation-delay: 0.25s;
}

/* Porcelain Cappuccino Cup */
.cup-station {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -12px;
  transform: translateZ(56px);
}

.porcelain-cup {
  position: relative;
  width: 96px;
  z-index: 3;
}

.cup-rim {
  width: 96px;
  height: 24px;
  border-radius: 50%;
  background: #f8efe4;
  padding: 3px;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cup-crema {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #f5dfc4 0%, #d49663 45%, #6e3a1c 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.latte-swirl {
  width: 34px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 246, 234, 0.65);
  animation: cremaSwirl 3.6s linear infinite;
}

.cup-body {
  width: 90px;
  height: 52px;
  margin: -12px auto 0;
  border-radius: 8px 8px 38px 38px;
  background: linear-gradient(135deg, #fcf5ec 0%, #e5d2bc 65%, #bfa487 100%);
  display: grid;
  place-items: center;
  padding-top: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.cup-qr-dot {
  font-size: 15px;
  color: #2b170e;
  opacity: 0.85;
}

.cup-handle {
  position: absolute;
  right: -13px;
  top: 18px;
  width: 22px;
  height: 26px;
  border: 5px solid #ead8c3;
  border-left: none;
  border-radius: 0 16px 16px 0;
}

.cup-saucer {
  width: 136px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: linear-gradient(90deg, #cbb397, #faf1e5, #bfa588);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.drip-tray {
  width: 250px;
  height: 12px;
  margin-top: -4px;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, #5e4c41 0 10px, #211610 10px 16px);
  border: 1px solid rgba(212, 150, 99, 0.4);
}

/* Rising Curling Steam */
.brew-steam-wrap {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%) translateZ(64px);
  width: 120px;
  height: 120px;
  pointer-events: none;
}

.steam-wisp {
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 222, 0.55) 0%, transparent 70%);
  filter: blur(4px);
  animation: steamRise 3.2s ease-in-out infinite;
}
.steam-wisp.w1 { left: 26px; }
.steam-wisp.w2 { left: 52px; animation-delay: 1s; height: 82px; }
.steam-wisp.w3 { left: 78px; animation-delay: 2s; }

/* Floating Hot Brewed Menu Cards */
.brew-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(252, 248, 242, 0.96);
  color: #170d08;
  border: 1px solid rgba(212, 150, 99, 0.5);
  border-radius: 14px;
  padding: 7px 11px 7px 8px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
  z-index: 6;
}

.brew-card-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #170d08;
  color: #e8b587;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.brew-float-card strong {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.15;
}

.brew-float-card span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #9e5428;
}

.brew-float-card.card-a {
  left: -34px;
  top: 8px;
  transform: translateZ(88px) rotateY(8deg);
  animation: cardBobA 4.6s ease-in-out infinite;
}

.brew-float-card.card-b {
  right: -34px;
  top: 10px;
  transform: translateZ(96px) rotateY(-8deg);
  animation: cardBobB 5.2s ease-in-out infinite;
}

.brew-float-card.card-c {
  right: -28px;
  bottom: 42px;
  left: auto;
  transform: translateZ(84px) rotateY(-7deg);
  animation: cardBobC 4.9s ease-in-out infinite;
}

.brew-caption-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brew-caption-row h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: -0.025em;
  margin: 0;
}

.brew-caption-row h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: #e8b587;
}

.brew-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brew-spec-pills span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f6e7d4;
}

@keyframes stageFloat {
  0%, 100% { transform: rotateX(6deg) rotateY(-6deg) translateY(0px); }
  50% { transform: rotateX(9deg) rotateY(6deg) translateY(-6px); }
}

@keyframes qrLaser {
  0%, 100% { top: 4px; opacity: 0.9; }
  50% { top: 38px; opacity: 1; }
}

@keyframes nfcPulse {
  0% { opacity: 0.25; }
  50% { opacity: 1; }
  100% { opacity: 0.25; }
}

@keyframes eqBar {
  0% { transform: scaleY(0.55); transform-origin: bottom; }
  100% { transform: scaleY(1.05); transform-origin: bottom; }
}

@keyframes espressoPour {
  0% { opacity: 0.8; filter: brightness(0.95); }
  50% { opacity: 1; filter: brightness(1.18); }
  100% { opacity: 0.8; filter: brightness(0.95); }
}

@keyframes cremaSwirl {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes steamRise {
  0% { transform: translateY(14px) scale(0.8); opacity: 0; }
  35% { opacity: 0.65; }
  100% { transform: translateY(-48px) scale(1.35); opacity: 0; }
}

@keyframes gaugeNeedle {
  0%, 100% { transform: rotate(-28deg); }
  50% { transform: rotate(36deg); }
}

@keyframes pulseLed {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes cardBobA {
  0%, 100% { transform: translateZ(88px) rotateY(8deg) translateY(0); }
  50% { transform: translateZ(96px) rotateY(5deg) translateY(-9px); }
}

@keyframes cardBobB {
  0%, 100% { transform: translateZ(96px) rotateY(-8deg) translateY(0); }
  50% { transform: translateZ(104px) rotateY(-5deg) translateY(-10px); }
}

@keyframes cardBobC {
  0%, 100% { transform: translateZ(84px) rotateY(-7deg) translateY(0); }
  50% { transform: translateZ(92px) rotateY(-4deg) translateY(-8px); }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  width: 185px;
  height: auto;
  display: block;
  flex-shrink: 0;
  margin: -18px 0 -10px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
  min-width: 0;
}

.footer-copy {
  font-size: 13px;
  font-weight: 700;
  color: var(--espresso);
}

.footer-tag {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1040px) {
  .tapp-hero-grid,
  .grid-asym {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-grid-3,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop.open {
    display: block;
  }
  .mobile-menu-btn {
    display: inline-grid;
  }
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .topbar-links,
  .nav-hide-mobile {
    display: none;
  }
}

@media (max-width: 720px) {
  .workspace-topbar {
    padding: 12px 14px 0;
    gap: 8px;
  }
  .workspace-topbar-right {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
  }
  .role-chip,
  .hide-mobile-sm {
    display: none !important;
  }
  .show-mobile-sm {
    display: inline;
  }
  .topbar-select {
    max-width: 134px;
    text-overflow: ellipsis;
    padding: 6px 8px !important;
    font-size: 12px !important;
  }
  .workspace-body {
    padding: 10px 14px 36px;
  }
  .dash-dd-sum {
    pointer-events: auto;
    cursor: pointer;
  }
  .dash-dd-chev {
    display: grid;
  }
  .card {
    padding: 14px;
    border-radius: 15px;
  }
  .clean-table.mobile-cards thead {
    display: none;
  }
  .clean-table.mobile-cards,
  .clean-table.mobile-cards tbody,
  .clean-table.mobile-cards tr,
  .clean-table.mobile-cards td {
    display: block;
    width: 100%;
  }
  .clean-table.mobile-cards tr {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }
  .clean-table.mobile-cards td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(58, 34, 21, 0.08);
    text-align: right;
  }
  .clean-table.mobile-cards td:first-child {
    text-align: left;
    padding-top: 2px;
  }
  .clean-table.mobile-cards td:last-child {
    border-bottom: none;
    padding-bottom: 2px;
  }
  .clean-table.mobile-cards td::before {
    content: attr(data-label);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-align: left;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .fluid-wrap {
    width: calc(100% - 32px);
  }
  .topbar {
    padding: 8px 0 0;
  }
  .topbar-brand-logo img {
    width: 126px;
    margin: -10px 0;
  }
  .tapp-hero {
    padding: 18px 0 38px;
  }
  .tapp-hero-grid {
    gap: 24px;
  }
  .tapp-headline {
    font-size: clamp(32px, 9vw, 44px);
  }
  .hero-lead {
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 16px;
  }
  .tapp-value-list {
    gap: 10px;
    margin-top: 20px;
  }
  .tapp-value-item {
    padding: 12px 14px;
    border-radius: 14px;
  }
  .tapp-value-summary {
    align-items: center;
    gap: 12px;
    cursor: pointer;
    pointer-events: auto;
  }
  .tapp-value-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
  }
  .tapp-value-title {
    font-size: 14px;
    padding-top: 0;
  }
  .tapp-value-chev {
    display: grid;
  }
  .tapp-value-dd[open] .tapp-value-chev {
    transform: rotate(180deg);
    background: var(--espresso);
    color: #fffaf3;
  }
  .tapp-value-desc {
    padding-left: 50px;
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.45;
  }
  .footer-row {
    gap: 10px;
  }
  .footer-logo {
    width: 185px;
  }
  .footer-copy {
    font-size: 12px;
  }
  .footer-tag {
    font-size: 11px;
    line-height: 1.35;
  }
  .hero-cta {
    gap: 8px;
    margin-bottom: 6px;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
    padding: 11px 14px;
  }
  .arch-stage {
    padding: 16px 12px 12px;
  }
  .arch-backdrop {
    inset: 10px 6px 0 6px;
  }
  .arch-outline-ring,
  .stage-float-card {
    display: none;
  }
  .stage-stamp-badge {
    width: 64px;
    height: 64px;
    top: 14px;
    right: 6px;
    font-size: 8px;
  }
  .stage-stamp-badge strong {
    font-size: 16px;
  }
  .iphone-16-chassis {
    width: 312px;
    height: 568px;
    border-radius: 42px;
    padding: 3px;
  }
  .iphone-bezel {
    border-radius: 39px;
    padding: 6px;
  }
  .iphone-screen {
    border-radius: 33px;
  }
  .iphone-notch-bar {
    height: 34px;
  }
  .iphone-iframe {
    width: 420px;
    height: 746px;
    transform: scale(0.70);
  }
  .dynamic-island {
    width: 86px;
    height: 20px;
    top: 7px;
  }
  .tour-controls {
    padding: 5px 8px;
    gap: 4px;
  }
  .tour-pill {
    padding: 5px 9px;
    font-size: 11px;
  }
  .landing-dark-band,
  .landing-section {
    padding: 36px 0;
  }
  .bento-card {
    padding: 14px;
    border-radius: 15px;
  }
  .step-art-well {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .kpi-card {
    padding: 12px 13px;
    border-radius: 14px;
  }
  .kpi-lbl {
    font-size: 10px;
  }
  .kpi-val {
    font-size: 22px;
    margin: 3px 0 1px;
  }
  .kpi-note {
    font-size: 11px;
  }
  .dash-greeting-row {
    margin-bottom: 14px;
    gap: 10px;
  }
  .qr-banner {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    gap: 10px;
  }
  .qr-url-pill {
    font-size: 11.5px;
    word-break: break-all;
  }
  .cat-dd {
    padding: 11px 12px;
  }
  .item-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 12px;
    margin-bottom: 8px;
    gap: 10px;
  }
  .item-actions {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
  }
  .item-actions .btn-sm {
    padding: 6px 9px;
    font-size: 11.5px;
  }
}

@media (max-width: 960px) {
  body.login-page-body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .login-split-screen {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
  }
  .login-left-pane {
    display: none !important;
  }
  .login-right-pane {
    flex: 1;
    min-height: 100dvh;
    height: auto;
    border-left: none;
    background:
      radial-gradient(circle at 80% 18%, rgba(212, 150, 99, 0.18) 0%, transparent 48%),
      radial-gradient(circle at 18% 84%, rgba(166, 93, 50, 0.14) 0%, transparent 45%),
      linear-gradient(160deg, #1b0f09 0%, #2b180e 58%, #160c07 100%);
    justify-content: space-between;
    padding: 18px 18px 24px;
    gap: 18px;
  }
  .login-right-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .login-mobile-brand {
    display: inline-flex;
  }
  .login-back-link {
    color: #fffaf3;
    border-color: rgba(212, 150, 99, 0.35);
    background: rgba(255, 255, 255, 0.08);
  }
  .login-card-center {
    min-width: 0;
    width: 100%;
    margin: auto 0;
  }
  .auth-card-clean {
    background: linear-gradient(165deg, rgba(38, 21, 13, 0.94) 0%, rgba(20, 11, 6, 0.98) 100%);
    border: 1px solid rgba(212, 150, 99, 0.28);
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.52);
    color: #fffaf3;
  }
  .auth-card-clean .eyebrow {
    background: rgba(212, 150, 99, 0.16);
    color: #e8b587;
    border: 1px solid rgba(212, 150, 99, 0.28);
  }
  .auth-card-clean h2,
  .auth-card-clean .card-muted,
  .auth-card-clean .field label {
    color: #fffaf3;
  }
  .auth-card-clean .field input[type="text"],
  .auth-card-clean .field input[type="password"] {
    background: rgba(12, 6, 3, 0.72);
    border: 1px solid rgba(212, 150, 99, 0.34);
    color: #fffaf3;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .auth-card-clean .field input::placeholder {
    color: rgba(255, 250, 243, 0.72);
  }
  .pw-toggle-btn {
    color: rgba(255, 250, 243, 0.78);
  }
  .pw-toggle-btn:hover {
    color: #fffaf3;
    background: transparent !important;
  }
  .remember-check {
    color: #fffaf3;
  }
  .remember-check input[type="checkbox"] {
    accent-color: #d49663;
  }
  .auth-card-clean .field input:focus {
    outline: none;
    border-color: #d49663;
    box-shadow: 0 0 0 3px rgba(212, 150, 99, 0.2);
  }
  .login-submit-btn {
    background: linear-gradient(135deg, #e2a874 0%, #b56834 100%);
    color: #170d08;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(181, 104, 52, 0.35);
  }
  .login-right-foot {
    color: rgba(255, 250, 243, 0.86);
  }
}

@media (max-width: 640px) {
  .login-right-pane {
    padding: 16px 16px 22px;
    gap: 14px;
  }
  .auth-card-clean {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .auth-card-clean h2 {
    font-size: 24px;
  }
}

@keyframes stageFloatSm {
  0%, 100% { transform: scale(0.56) rotateX(6deg) rotateY(-5deg) translateY(0); }
  50% { transform: scale(0.56) rotateX(9deg) rotateY(5deg) translateY(-5px); }
}

/* ============================================================
   INDORE INTERACTIVE NETWORK MAP KPI & CAFE PINPOINTS
   ============================================================ */
.indore-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.indore-leaflet-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(58, 34, 21, 0.14);
  background: #f4f1ec;
  height: 365px;
}

.indore-leaflet-map {
  width: 100%;
  height: 100%;
  z-index: 1;
  font-family: var(--font-sans);
}

.indore-leaflet-map .leaflet-tile {
  border: none !important;
  outline: 1px solid transparent;
}

.indore-leaflet-map .maplibregl-ctrl-top-left .maplibregl-ctrl {
  margin: 12px 0 0 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(58, 34, 21, 0.14);
  box-shadow: 0 4px 14px rgba(23, 13, 8, 0.1);
}

/* Custom Coffee Cup Pinpoint Marker (shared across MapLibre & Leaflet) */
.tapp-leaflet-pin-host {
  background: transparent;
  border: none;
}

.tapp-cup-pin:not(.maplibregl-marker) {
  position: relative;
}

.maplibregl-marker.tapp-cup-pin {
  position: absolute;
}

.tapp-cup-pin {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  font-family: var(--font-sans);
}

.tapp-cup-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.tapp-cup-pin.is-live .tapp-cup-halo {
  background: radial-gradient(circle, rgba(22, 163, 74, 0.32) 0%, rgba(22, 163, 74, 0.1) 62%, transparent 72%);
}

.tapp-cup-pin.is-standby .tapp-cup-halo {
  background: radial-gradient(circle, rgba(198, 124, 62, 0.34) 0%, rgba(198, 124, 62, 0.11) 62%, transparent 72%);
}

.tapp-cup-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.tapp-cup-pin.is-active .tapp-cup-pulse {
  border: 2px solid currentColor;
  animation: mapPinPulse 2.1s ease-out infinite;
}

.tapp-cup-pin.is-live .tapp-cup-pulse { color: rgba(22, 163, 74, 0.65); }
.tapp-cup-pin.is-standby .tapp-cup-pulse { color: rgba(198, 124, 62, 0.72); }

.tapp-cup-badge {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fffaf3;
  border: 2.5px solid #ffffff;
  box-shadow: 0 6px 16px rgba(23, 13, 8, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tapp-cup-pin.is-live .tapp-cup-badge {
  background: linear-gradient(145deg, #16a34a 0%, #15803d 100%);
}

.tapp-cup-pin.is-standby .tapp-cup-badge {
  background: linear-gradient(145deg, #d4894d 0%, #9b5222 100%);
}

.tapp-cup-pin:hover .tapp-cup-badge,
.tapp-cup-pin.is-active .tapp-cup-badge {
  transform: translateY(-2px) scale(1.1);
  border-color: #1f120b;
  box-shadow: 0 10px 24px rgba(23, 13, 8, 0.34);
}

.tapp-cup-svg {
  width: 19px;
  height: 19px;
  display: block;
}

.tapp-cup-label {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.96);
  border: 1px solid rgba(58, 34, 21, 0.16);
  box-shadow: 0 3px 10px rgba(23, 13, 8, 0.14);
  font-size: 10.5px;
  font-weight: 700;
  color: #1f120b;
  line-height: 1.35;
  pointer-events: none;
}

.tapp-cup-pin.is-active .tapp-cup-label {
  background: #1f120b;
  color: #fffaf3;
  border-color: #1f120b;
}

.tapp-cup-tooltip {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background: #170d08;
  color: #fffaf3;
  border: 1px solid rgba(212, 150, 99, 0.5);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: center;
  font-size: 11px;
  z-index: 30;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.tapp-cup-tooltip strong { font-weight: 700; font-size: 11.5px; }
.tapp-cup-tooltip span { color: rgba(255, 250, 243, 0.8); font-size: 10.5px; }

.tapp-cup-pin:hover .tapp-cup-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lg-cup {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.lg-cup.live { color: #15803d; }
.lg-cup.standby { color: #a85a24; }

.bi-map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(58, 34, 21, 0.14);
  box-shadow: 0 6px 18px rgba(23, 13, 8, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: var(--espresso);
}

.lg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.lg-dot.live { background: #16a34a; }
.lg-dot.standby { background: #c67c3e; }
.lg-size { color: var(--muted); font-weight: 600; }

.leaflet-tooltip.tapp-bi-tip {
  background: #170d08;
  color: #fffaf3;
  border: 1px solid rgba(212, 150, 99, 0.5);
  border-radius: 10px;
  padding: 7px 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.leaflet-tooltip.tapp-bi-tip::before {
  border-top-color: #170d08;
}

.map-empty-overlay {
  position: absolute;
  inset: 0;
  z-index: 450;
  display: grid;
  place-items: center;
  color: var(--espresso);
  font-size: 13px;
  font-weight: 600;
  background: rgba(252, 248, 242, 0.78);
}

.indore-pin-panel {
  min-width: 0;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pin-kpi-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pin-kpi-box {
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(58, 34, 21, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
}

.pin-kpi-box span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.pin-kpi-box strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--espresso);
  margin-top: 2px;
}

.pin-chip-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pin-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--espresso);
  cursor: pointer;
}

.pin-quick-chip.active {
  background: var(--espresso);
  color: #fffaf3;
  border-color: var(--espresso);
}

.pin-quick-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d49663;
}

.pin-quick-chip .dot.live {
  background: #22c55e;
}

@keyframes mapPinPulse {
  0% { transform: scale(0.75); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.indore-leaflet-wrap.is-picking,
.indore-leaflet-wrap.is-picking .maplibregl-canvas,
.indore-leaflet-wrap.is-picking .leaflet-container {
  cursor: crosshair !important;
}

.map-pick-banner {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 420;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(23, 13, 8, 0.92);
  color: #fffaf3;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.map-pick-banner button {
  border: 1px solid rgba(255, 250, 243, 0.35);
  background: transparent;
  color: #fffaf3;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.plan-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
}

.plan-card {
  position: relative;
  display: flex;
  cursor: pointer;
  margin: 0;
}

.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card-body {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.plan-card-body strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--espresso);
}

.plan-card-body span {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.plan-card input[type="radio"]:checked + .plan-card-body {
  border-color: var(--espresso);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(38, 22, 14, 0.1);
}

.plan-card input[type="radio"]:checked + .plan-card-body strong::after {
  content: " ✓";
  color: #16a34a;
}

@media (max-width: 960px) {
  .indore-map-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .indore-leaflet-wrap {
    height: 270px;
  }
}

/* ============================================================
   CHAIN MANAGEMENT & MULTI-OUTLET CONTROLS
   ============================================================ */
.chain-switcher-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(38, 22, 14, 0.04);
}

.chain-switcher-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 4px;
}

.chain-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--espresso);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.16s ease;
}

.chain-pill:hover {
  border-color: rgba(198, 132, 79, 0.65);
  background: #fffaf3;
}

.chain-pill.active {
  background: var(--espresso);
  color: #fffaf3;
  border-color: var(--espresso);
  box-shadow: 0 4px 12px rgba(38, 22, 14, 0.18);
}

.scope-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.scope-banner.is-chain-mode {
  background: rgba(198, 132, 79, 0.12);
  border-color: rgba(198, 132, 79, 0.42);
}

.scope-seg-group {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.scope-seg-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.scope-seg-btn.active {
  background: var(--espresso);
  color: #fffaf3;
}

.outlet-share-track {
  width: 100%;
  max-width: 120px;
  height: 6px;
  background: var(--bg-deep);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
}

.outlet-share-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c6844f, #26160e);
}
