/* TipMate — shared app screens: customer pay page, employee account, manager dashboard.
 * Used by the landing hero loop, the landing "Así se ve" section and como-funciona.html;
 * markup comes from assets/tm-screens.js.
 *
 * Every class is prefixed `dm-` because site.css already owns .section, .btn,
 * .lang-btn, .section-title … and the real admin dashboard uses the same names.
 *
 * Screens are drawn at a fixed "design" size (phone 360px wide, laptop 1000px or
 * 640px) and scaled into their device frame by tm-screens.js, so the px values
 * below are the real app's values, copied from:
 *   pay page   tipmate-master/client/src/features/payments/pages/Pay/style.module.css
 *   employee   tipmate-master/client/src/pages/Home/components/{Card,Dashboard}
 *   dashboard  admin-dashboard/public/styles.css
 */

@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Phone frame — same as .app-phone-frame on the landing page */
.dm-phone {
  position: relative; width: var(--dm-phone-w, 270px); background: #2a2a2d; border-radius: 42px; padding: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
}
.dm-phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px;
  background: #2a2a2d; border-radius: 0 0 14px 14px; z-index: 5;
}
.dm-phone .dm-screen { border-radius: 34px; aspect-ratio: 9 / 19.2; }

/* Laptop frame */
.dm-laptop { width: 100%; max-width: 720px; }
.dm-laptop-lid {
  position: relative; background: #2a2a2d; border-radius: 16px 16px 6px 6px; padding: 14px 12px 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
}
.dm-laptop-cam { position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #444248; }
.dm-laptop .dm-screen { border-radius: 4px; aspect-ratio: 16 / 10.4; }
.dm-laptop-base {
  position: relative; height: 14px; margin: 0 -5%; border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #3a383d 0%, #2a2a2d 100%);
  box-shadow: 0 16px 30px rgba(0,0,0,0.3);
}
.dm-laptop-base::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16%; height: 5px; border-radius: 0 0 8px 8px; background: #232126;
}

/* A screen clips a fixed-size canvas that demo.js scales to fit */
.dm-screen { position: relative; width: 100%; overflow: hidden; background: #363437; }
.dm-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

/* Coin + flight path overlay */
.dm-coin {
  position: fixed; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; z-index: 200;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 35% 30%, #B8F0FF 0%, #7BE0FF 35%, #49CDFE 70%, #2aa9d9 100%);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25) inset, 0 0 24px rgba(73,205,254,0.8), 0 0 60px rgba(73,205,254,0.45);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.35rem; color: #0f0f11;
}
.dm-spark {
  position: fixed; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #7BE0FF; box-shadow: 0 0 10px rgba(73,205,254,0.9); pointer-events: none; z-index: 199;
}
.dm-burst {
  position: fixed; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  border: 2px solid var(--accent); pointer-events: none; z-index: 199; animation: dm-burst .7s ease-out forwards;
}
@keyframes dm-burst { from { transform: scale(1); opacity: 1; } to { transform: scale(9); opacity: 0; } }

/* ═══ SCREEN 1 — customer pay page (design width 360) ═══════ */
.dm-app {
  --tm-brand: #49CDFE; --tm-primary: #363437; --tm-card: #4C4A4E; --tm-smooth: #DBDBDC; --tm-secondary-default: #BBB8B8;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff; background: var(--tm-primary); line-height: 1.3; -webkit-font-smoothing: antialiased;
  width: 360px; height: 100%; position: relative; overflow: hidden;
  text-align: left; /* host sections (e.g. the landing hero on mobile) may center text */
}
.dm-app button, .dm-app input, .dm-app textarea { font-family: inherit; }
.dm-statusbar {
  height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 30px;
  font-size: 14px; font-weight: 600; color: #fff; position: relative; z-index: 4;
}
.dm-statusbar-icons { display: flex; gap: 5px; align-items: center; }
.dm-statusbar-icons span { display: block; background: #fff; border-radius: 2px; }

.dm-pay-scroll { position: absolute; top: 44px; left: 0; right: 0; bottom: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
.dm-pay-scroll::-webkit-scrollbar { display: none; }
.dm-pay { display: flex; flex-direction: column; align-items: center; padding: 0.75rem 1.125rem 150px; }
.dm-pay-header { display: flex; justify-content: center; margin-bottom: 2.6rem; }
.dm-pay-header img { width: 120px; height: auto; display: block; }

.dm-pay-card {
  position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%;
  padding: 1.25rem 1rem; background: var(--tm-card); border-radius: 2.25rem; margin-bottom: 1.6rem;
}
.dm-pay-avatar {
  position: absolute; top: -1.25rem; right: -0.125rem; width: 5.625rem; height: 5.625rem;
  border-radius: 1.5rem; border: 4px solid var(--tm-brand); overflow: hidden; background: #EFE6DA;
}
.dm-pay-avatar svg, .dm-wa-avatar svg { width: 100%; height: 100%; display: block; }
.dm-pay-user { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0 0.5rem; max-width: 72%; margin-bottom: 1.125rem; }
.dm-pay-name { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.41px; line-height: 1.9rem; }
.dm-pay-goal {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 0.75rem;
  border-radius: 1.375rem; min-height: 1.625rem; color: #000; background: var(--tm-brand); font-weight: 500; font-size: 13px;
}
.dm-pay-divider { width: calc(100% - 1rem); height: 1px; align-self: center; background: #fff; opacity: 0.25; margin-bottom: 1.75rem; }

.dm-amount-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 1rem; }
.dm-amount { position: relative; display: flex; align-items: center; justify-content: center; }
.dm-amount-currency { position: absolute; left: -1rem; transform: translate(-75%); font-weight: 700; font-size: 26px; line-height: 41px; }
.dm-amount input {
  width: 7rem; height: 3rem; border-radius: 0.5rem; border: 1px solid #fff; background: transparent;
  text-align: center; color: #fff; font-weight: 400; font-size: 1.625rem; letter-spacing: 0.41px; outline: none;
}
.dm-amount input:focus { border-color: var(--tm-brand); box-shadow: 0 0 0 3px rgba(73,205,254,0.2); }
.dm-amount-text { font-size: 0.75rem; padding-top: 0.25rem; margin-bottom: 0.25rem; }
.dm-amount-error { color: #FF4E36; font-size: 0.875rem; min-height: 1.1rem; text-align: center; }

.dm-tabs { display: flex; justify-content: center; width: 100%; gap: 0.625rem; margin-bottom: 1.25rem; }
.dm-tab {
  flex: 1; max-width: 5rem; min-height: 2.375rem; border-radius: 0.5rem; background: transparent;
  border: 1px solid var(--tm-smooth); color: var(--tm-smooth); font-size: 18px; letter-spacing: 0.41px; cursor: pointer;
  transition: border-color .15s, color .15s, transform .1s;
}
.dm-tab:active { transform: scale(0.96); }
.dm-tab.is-active { border-color: var(--tm-brand); color: var(--tm-brand); }

.dm-breakdown { display: flex; flex-direction: column; width: 100%; padding: 22px 22px 18px; background: var(--tm-primary); border-radius: 32px; gap: 6px; margin-bottom: 18px; }
.dm-breakdown-row { display: flex; justify-content: space-between; color: var(--tm-secondary-default); font-weight: 300; font-size: 13px; }
.dm-breakdown-line { height: 1px; background: var(--tm-secondary-default); margin: 8px 0 12px; }
.dm-breakdown-total { display: flex; justify-content: space-between; color: #fff; font-weight: 500; font-size: 16px; margin-bottom: 14px; }
.dm-breakdown-info { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; color: var(--tm-brand); text-align: center; }
.dm-agreement { font-size: 11px; color: var(--tm-secondary-default); text-align: center; padding: 0 0.5rem; }
.dm-agreement span { color: var(--tm-brand); }

.dm-rate-title { font-weight: 800; font-size: 18px; letter-spacing: 0.41px; text-align: center; padding-top: 0.5rem; }
.dm-stars { display: flex; justify-content: center; align-items: center; gap: 1rem; height: 4.25rem; margin-bottom: 1.25rem; }
.dm-star { position: relative; width: 2rem; height: 2rem; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dm-star svg { width: 100%; height: 100%; display: block; }
/* <use> content can't be selected, but custom properties inherit into it */
.dm-star.is-on { --dm-star-fill: 1; --dm-star-outline: 0; }
.dm-star.is-halo::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%;
  animation: dm-halo .3s ease-out;
}
@keyframes dm-halo {
  0% { box-shadow: 0 0 0 0 rgba(0,180,216,0.1); width: 0; height: 0; }
  70% { box-shadow: 0 0 0.25rem 1rem rgba(0,180,216,0.1); width: 1.25rem; height: 1.25rem; }
  100% { box-shadow: 0 0 0 0 rgba(0,180,216,0.1); width: 0; height: 0; }
}
.dm-feedback {
  width: 100%; height: 6.75rem; border-radius: 1.375rem; border: 2px solid var(--tm-brand); background: transparent; resize: none;
  font-size: 0.8rem; line-height: 1.125rem; color: #fff; padding: 0.875rem; outline: none;
}
.dm-feedback::placeholder { color: rgba(255,255,255,0.5); }

.dm-pay-controls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 1.125rem 18px; z-index: 3;
  display: flex; flex-direction: column; gap: 0.75rem;
  background: linear-gradient(180deg, rgba(54,52,55,0) 0%, #363437 26%);
}
.dm-paybtn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; height: 44px;
  border-radius: 22px; border: 0; font-size: 1.2rem; font-weight: 500; cursor: pointer; transition: transform .1s, filter .15s;
}
.dm-paybtn:active { transform: scale(0.98); }
.dm-paybtn-apple { background: #fff; color: #000; font-weight: 400; font-size: 19px; }
.dm-paybtn-apple:hover { background: #ececec; }
.dm-paybtn-apple img { height: 19px; width: auto; display: block; }
.dm-paybtn-card { background: var(--tm-brand); color: #fff; }
.dm-paybtn-card:hover { background: #44b8e1; }
.dm-paybtn.is-loading { color: transparent !important; pointer-events: none; }
.dm-paybtn.is-loading img { visibility: hidden; }
.dm-paybtn.is-loading::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(0,0,0,0.2); border-top-color: #000; animation: dm-spin .7s linear infinite;
}
.dm-paybtn-card.is-loading::after { border-color: rgba(255,255,255,0.35); border-top-color: #fff; }
@keyframes dm-spin { to { transform: rotate(360deg); } }
.dm-secure { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 10.5px; color: var(--tm-secondary-default); }

/* Team QR: the venue's logo in place of the employee's photo */
.dm-pay-avatar-team { background: #363437; display: flex; align-items: center; justify-content: center; }
.dm-pay-avatar-team svg { width: 70% !important; height: 70% !important; }

/* Organization page (tipmate-master pages/Organization): pick who to tip, or menu + tip */
.dm-org { position: absolute; top: 44px; left: 0; right: 0; bottom: 0; padding: 0.75rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 1.6rem; overflow: hidden; }
.dm-org-logo { display: flex; justify-content: center; margin-bottom: 0.4rem; }
.dm-org-logo img { width: 120px; display: block; }
.dm-org-block { display: flex; flex-direction: column; gap: 1rem; }
.dm-org-label { font-size: 1.15rem; }
.dm-org-tile { height: 4rem; border-radius: 1rem; background: #646167; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 3px; text-transform: uppercase; }
.dm-org-team { display: flex; flex-direction: column; gap: 1rem; margin-top: -0.6rem; }
.dm-org-user { display: flex; align-items: center; gap: 1rem; padding: 0.5rem; border-radius: 1rem; transition: background .3s; }
.dm-org-user.is-picked { background: #4C4A4E; }
.dm-org-ava { width: 5rem; height: 5rem; flex: none; border-radius: 1.4rem; border: 4px solid var(--tm-brand); overflow: hidden; }
.dm-org-ava svg { width: 100%; height: 100%; display: block; }
.dm-org-info { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.dm-org-name { font-weight: 600; font-size: 1.25rem; }
.dm-org-btn { height: 40px; border-radius: 22px; background: #fff; color: #000; font-weight: 500; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: transform .15s, background .15s; }
.dm-org-btn.is-big { height: 48px; border-radius: 24px; font-size: 1.1rem; }
.dm-org-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.dm-org-user.is-picked .dm-org-btn, .dm-org-btn.is-pressed { background: #49CDFE; color: #fff; transform: scale(0.97); }

/* Menu + tip hub: built from the pay page's blocks; only these few pieces are its own */
.dm-hub-avatar { display: flex; align-items: center; justify-content: center; background: #F6F1EA; color: #6d4a34; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: 1px; }
.dm-hub-sub { font-size: 13px; color: #BBB8B8; text-align: center; padding-bottom: 0.4rem; }
.dm-hub-people { display: flex; justify-content: center; gap: 1.4rem; padding: 1rem 0 0.4rem; }
.dm-hub-person { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; }
.dm-hub-person span { width: 58px; height: 58px; border-radius: 18px; border: 3px solid #49CDFE; overflow: hidden; }
.dm-hub-person svg { width: 100%; height: 100%; display: block; }
.dm-paybtn.is-pressed, .dm-carta-bar b.is-pressed { transform: scale(0.96); filter: brightness(1.12); }

/* The carta: sticky chips, dishes, and a tip bar that is always on screen */
.dm-carta { position: absolute; inset: 44px 0 0 0; z-index: 6; background: #F6F1EA; color: #2a2522; transform: translateX(100%); transition: transform .45s cubic-bezier(.4,0,.2,1); }
.dm-carta.is-on { transform: none; }
.dm-carta-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 6px; }
.dm-carta-top b { font-family: 'Outfit', sans-serif; font-size: 17px; }
.dm-carta-back { font-size: 18px; color: #8a7f76; width: 18px; }
.dm-carta-chips { display: flex; gap: 7px; padding: 8px 16px 12px; border-bottom: 1px solid #e6ddd2; overflow: hidden; }
.dm-carta-chip { flex: none; font-size: 13px; padding: 6px 13px; border-radius: 20px; border: 1px solid #d9cfc3; color: #6b6058; transition: background .25s, color .25s, border-color .25s; }
.dm-carta-chip.is-on { background: #2a2522; border-color: #2a2522; color: #fff; }
.dm-carta-list { position: absolute; top: 96px; left: 0; right: 0; bottom: 0; overflow-y: auto; padding: 0 18px; scrollbar-width: none; }
.dm-carta-list::-webkit-scrollbar { display: none; }
.dm-carta-sec { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: #b0703a; margin: 18px 0 6px; }
.dm-carta-dish { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #ebe3d9; }
.dm-carta-name { font-weight: 600; font-size: 15px; }
.dm-carta-name i { font-style: normal; font-size: 10px; font-weight: 700; color: #4b7a44; background: #e3f1e0; border: 1px solid #b6d8b0; border-radius: 10px; padding: 1px 6px; vertical-align: 2px; }
.dm-carta-desc { font-size: 12px; color: #8a7f76; margin-top: 2px; }
.dm-carta-price { font-weight: 600; font-size: 14px; white-space: nowrap; }
.dm-carta-bar {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 9px 9px 16px; border-radius: 18px; background: #232126; color: #fff; font-size: 13px; box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.dm-carta-bar b { flex: none; background: #49CDFE; color: #0f0f11; border-radius: 13px; padding: 9px 16px; font-size: 14px; transition: transform .15s, filter .15s; }

/* Coaching hand: its fingertip sits on the target's centre and taps on a loop */
.dm-coach { position: absolute; width: 0; height: 0; z-index: 7; pointer-events: none; opacity: 0; transition: opacity .3s, left .45s cubic-bezier(.4,0,.2,1), top .45s cubic-bezier(.4,0,.2,1); }
.dm-coach.is-on { opacity: 1; }
.dm-coach-hand { position: absolute; left: -24px; top: -5px; width: 50px; height: 50px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.45)); animation: dm-coach-tap 1.6s ease-in-out infinite; transform-origin: 24px 5px; }
.dm-coach-ring { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #49CDFE; opacity: 0; animation: dm-coach-ring 1.6s ease-out infinite; }
@keyframes dm-coach-tap {
  0%, 100% { transform: translate(14px, 22px) scale(1); }
  40% { transform: translate(0, 4px) scale(1); }
  50% { transform: translate(0, 0) scale(.9); }
  60% { transform: translate(0, 4px) scale(1); }
}
@keyframes dm-coach-ring { 0%, 45% { transform: scale(.3); opacity: 0; } 52% { opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

/* Payment status screen */
.dm-status {
  position: absolute; inset: 44px 0 0 0; z-index: 6; background: var(--tm-primary);
  display: flex; flex-direction: column; align-items: center; padding: 5.5rem 2rem 2rem;
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s, transform .35s, visibility .35s;
}
.dm-status.is-on { opacity: 1; visibility: visible; transform: none; }
.dm-status-ring {
  position: relative; width: 7.75rem; height: 7.75rem; border-radius: 50%; background: #235C5A;
  display: flex; align-items: center; justify-content: center; margin-bottom: 2.25rem;
}
.dm-status-ring::before { content: ''; width: 68%; height: 68%; border-radius: 50%; background: #7BC6B0; }
.dm-status-ring svg { position: absolute; width: 1.6rem; }
.dm-status.is-on .dm-status-ring { animation: dm-pop .5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes dm-pop { from { transform: scale(0.6); } to { transform: scale(1); } }
.dm-status-thanks { font-weight: 800; font-size: 2rem; margin-bottom: 0.25rem; }
.dm-status-text { font-weight: 700; font-size: 1.35rem; padding: 1rem 0 0.5rem; }
.dm-status-sum { color: var(--tm-secondary-default); font-size: 0.95rem; text-align: center; }
.dm-status-again {
  margin-top: auto; width: 100%; height: 44px; border-radius: 22px; border: 1px solid var(--tm-brand);
  background: transparent; color: var(--tm-brand); font-size: 1.05rem; font-weight: 500; cursor: pointer;
  opacity: 0; transition: opacity .4s;
}
.dm-status-again.is-on { opacity: 1; }

/* ═══ SCREEN 2 — employee account (design width 360) ════════ */
.dm-wa { position: absolute; top: 44px; left: 0; right: 0; bottom: 0; padding: 0.75rem 1rem 1rem; overflow: hidden; }
.dm-wa-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.dm-wa-avatar { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--tm-brand); overflow: hidden; background: #EFE6DA; }
.dm-wa-code { font-size: 15px; font-weight: 500; letter-spacing: 1.5px; }
.dm-wa-chat { width: 46px; height: 46px; border-radius: 50%; background: #646167; display: flex; align-items: center; justify-content: center; }
.dm-wa-chat svg { width: 20px; height: 20px; }

.dm-wa-card {
  position: relative; height: 13.5rem; border-radius: 0.5rem; padding: 1rem; margin-bottom: 1.5rem;
  background: linear-gradient(90deg, rgba(73,205,254,0.75) 0%, #C1E6F3 100%);
  transition: box-shadow .4s, transform .4s;
}
.dm-wa-card.is-hit { box-shadow: 0 0 0 3px rgba(255,255,255,0.7), 0 0 40px rgba(73,205,254,0.8); transform: scale(1.02); }
.dm-wa-balance { font-weight: 600; font-size: 32px; line-height: 41px; letter-spacing: 0.41px; color: #000; font-variant-numeric: tabular-nums; }
.dm-wa-pending { font-weight: 500; font-size: 0.875rem; color: #343434; }
.dm-wa-info { position: absolute; top: 1.4rem; right: 1.4rem; width: 1.25rem; height: 1.25rem; }
.dm-wa-qr { position: absolute; left: 1rem; bottom: 1.3rem; width: 2.125rem; height: 2.125rem; }
.dm-wa-withdraw {
  position: absolute; right: 1.375rem; bottom: 1.375rem; height: 1.875rem; padding: 0 0.9rem;
  border: 1.5px solid #000; border-radius: 1rem; background: transparent; color: #000; font-size: 13px; font-weight: 500; letter-spacing: 0.4px;
}
.dm-wa-delta {
  position: absolute; top: 3.6rem; left: 1rem; font-weight: 700; font-size: 17px; color: #0b6d3b;
  background: rgba(255,255,255,0.75); border-radius: 20px; padding: 2px 10px; opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.dm-wa-delta.is-on { opacity: 1; transform: none; }

.dm-wa-h { font-size: 19px; font-weight: 600; margin-bottom: 0.8rem; }
.dm-wa-org {
  height: 4.25rem; border-radius: 1rem; background: #646167; margin-bottom: 1.6rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.dm-wa-org-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 3px; text-transform: uppercase; }
.dm-wa-org-sub { font-size: 8px; letter-spacing: 3.5px; text-transform: uppercase; opacity: 0.8; }

.dm-wa-tiles { display: flex; gap: 0.75rem; }
.dm-wa-tile {
  position: relative; width: calc(50% - 0.375rem); height: 11.5rem; border-radius: 1rem; background: #646167;
  border: 3px solid #7CC5E1; padding: 0.3rem; overflow: hidden;
}
.dm-wa-tile.is-green { border-color: #C0D3B2; }
.dm-wa-tile-title { text-align: center; font-weight: 600; font-size: 15px; margin: 0.2rem 0 0.9rem; }
.dm-ring {
  --angle: 346deg; position: relative; width: 6.5rem; height: 6.5rem; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(#33CB68 0deg var(--angle), #646167 var(--angle) 360deg);
  transition: --angle .8s;
}
.dm-ring::after { content: ''; position: absolute; width: 50%; height: 50%; border-radius: 50%; background: #646167; }
.dm-ring-value { position: relative; z-index: 1; font-weight: 600; font-size: 1.3rem; }
.dm-tips { display: flex; flex-direction: column; gap: 0.45rem; padding: 0 0.2rem; }
.dm-tip { display: flex; align-items: center; flex-wrap: wrap; column-gap: 0.3rem; font-size: 9.5px; white-space: nowrap; }
.dm-tip svg { width: 12px; height: 12px; flex: none; }
.dm-tip-amt { color: #59B838; font-weight: 600; font-size: 11px; }
.dm-tip.is-new { animation: dm-tip-in .6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.dm-tip.is-new .dm-tip-amt { color: #7CF07A; }
@keyframes dm-tip-in { from { opacity: 0; transform: translateY(-10px) scale(0.9); } to { opacity: 1; transform: none; } }

/* In-app toast with the review */
.dm-toast {
  position: absolute; top: 52px; left: 12px; right: 12px; z-index: 8; border-radius: 18px; padding: 10px 12px;
  background: rgba(40,38,42,0.92); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border: 1px solid rgba(73,205,254,0.35);
  display: flex; gap: 10px; align-items: flex-start;
  transform: translateY(-140%); opacity: 0; transition: transform .5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity .3s;
}
.dm-toast.is-on { transform: none; opacity: 1; }
.dm-toast-icon { width: 34px; height: 34px; flex: none; border-radius: 9px; background: #363437; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.1); }
.dm-toast-icon svg { width: 22px; height: 22px; }
.dm-toast-title { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 6px; }
.dm-toast-title b { color: #7CF07A; font-weight: 700; }
.dm-toast-stars { color: #49CDFE; font-size: 11px; letter-spacing: 1px; }
.dm-toast-msg { font-size: 11.5px; color: #d6d6d8; line-height: 1.35; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }

/* ═══ SCREEN 3 — manager dashboard (design width 1000 / 640) ═ */
.dm-db {
  --c: #49CDFE; --c-light: #7BE0FF; --c-dim: rgba(73,205,254,0.15);
  --bg: #363437; --bg-el: #3F3D42; --card: #48464B; --border: rgba(255,255,255,0.08);
  --muted: #c4c4c8; --dim: #8e8c92; --gold: #FBBF24;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-size: 14px; line-height: 1.5; color: #fff; background: var(--bg); -webkit-font-smoothing: antialiased; text-align: left;
  container-type: inline-size; height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain;
}
.dm-db::-webkit-scrollbar { display: none; }
.dm-db-top {
  display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border); background: var(--bg-el);
}
.dm-db-top-l { display: flex; align-items: center; gap: 0.7rem; }
.dm-db-top-l svg { width: 28px; height: 28px; display: block; }
.dm-db-title { font-size: 1rem; font-weight: 600; }
.dm-db-venue { color: var(--muted); font-size: 0.85rem; margin-left: 0.4rem; }
.dm-db-top-r { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.dm-db-lang { display: inline-flex; background: var(--bg-el); border: 1px solid var(--border); border-radius: 999px; padding: 2px; gap: 2px; }
.dm-db-lang span { color: var(--dim); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.3rem 0.65rem; border-radius: 999px; }
.dm-db-lang span.is-on { background: var(--c-dim); color: var(--c); }
.dm-db-ghost { color: var(--muted); padding: 0.5rem 0.6rem; }
.dm-db-main { padding: 1.5rem; }
.dm-db-filter { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.dm-db-tabs { display: flex; gap: 0.4rem; }
.dm-db-btn { padding: 0.5rem 0.9rem; border-radius: 10px; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--border); color: #fff; }
.dm-db-btn.is-on { background: var(--c-dim); border-color: var(--c); color: var(--c); }
.dm-db-btn.sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.dm-db-updated { color: var(--dim); font-size: 0.8rem; }

.dm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dm-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; transition: box-shadow .4s, border-color .4s; }
.dm-kpi.is-primary { background: linear-gradient(135deg, rgba(73,205,254,0.12), rgba(73,205,254,0.04)); border-color: rgba(73,205,254,0.3); }
.dm-kpi.is-primary .dm-kpi-v { color: var(--c); }
.dm-kpi.is-hit { border-color: var(--c); box-shadow: 0 0 0 2px rgba(73,205,254,0.45), 0 0 36px rgba(73,205,254,0.35); }
.dm-kpi-l { color: var(--muted); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.dm-kpi-v { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.dm-kpi-s { color: var(--dim); font-size: 0.8rem; margin-top: 0.3rem; }

.dm-db-sec { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; margin-bottom: 1.5rem; }
.dm-db-sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dm-db-sec-t { font-size: 1rem; font-weight: 600; }
.dm-db-meta { color: var(--dim); font-size: 0.8rem; }
.dm-db-modes { display: flex; gap: 0.35rem; }
.dm-chart { height: 170px; position: relative; }
.dm-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dm-chart-grid line { stroke: rgba(255,255,255,0.06); }
.dm-chart-grid text, .dm-chart-x text { fill: var(--dim); font-size: 10px; }
.dm-chart-dot { fill: var(--c); stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity .3s; }
.dm-chart-dot.is-on { opacity: 1; }

.dm-two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; }
.dm-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dm-table th, .dm-table td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dm-staff-mail { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.dm-table th { font-weight: 500; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.dm-table tr:last-child td { border-bottom: none; }
.dm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.dm-table .amt { font-weight: 600; color: var(--c); }
.dm-table tbody tr { transition: background .6s; }
.dm-table tbody tr.is-hit td { background: rgba(73,205,254,0.16); }
.dm-staff { display: flex; align-items: center; }
.dm-ava {
  width: 32px; height: 32px; border-radius: 50%; flex: none; margin-right: 0.6rem;
  background: linear-gradient(135deg, var(--c), var(--c-light)); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem;
}
.dm-staff-name { font-weight: 500; }
.dm-staff-mail { color: var(--dim); font-size: 0.75rem; }
.dm-stars-pill {
  display: inline-flex; align-items: center; background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.3);
  border-radius: 12px; padding: 0.15rem 0.5rem; font-size: 0.8rem; color: var(--gold); font-weight: 500;
}
.dm-badge { display: inline-block; background: var(--c-dim); color: var(--c); border-radius: 8px; padding: 0.2rem 0.55rem; font-size: 0.8rem; font-weight: 500; font-variant-numeric: tabular-nums; }

.dm-db-toast {
  position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 5; background: #2a282d; border: 1px solid var(--c);
  color: #fff; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.9rem; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; pointer-events: none; max-width: 340px;
}
.dm-db-toast.is-on { opacity: 1; transform: none; }
.dm-db-toast b { color: var(--c); }

/* Staff management: the real dashboard's on/off switches (admin-dashboard styles.css) */
.dm-db-sub { color: var(--dim); font-size: 0.8rem; margin-top: 2px; }
.dm-manage-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.5rem; border-top: 1px solid var(--border); transition: opacity .3s; }
.dm-manage-row:first-child { border-top: none; }
.dm-manage-row.is-inactive .dm-staff-name { color: var(--dim); }
.dm-manage-row.is-inactive .dm-ava { opacity: 0.55; }
.dm-switch { position: relative; width: 44px; height: 24px; flex: none; border-radius: 999px; background: var(--bg-el); border: 1px solid var(--border); transition: background .18s, border-color .18s; }
.dm-switch::before { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .18s, background .18s; }
.dm-switch.is-on { background: var(--c-dim); border-color: var(--c); }
.dm-switch.is-on::before { background: var(--c); transform: translateX(20px); }

/* Phones: the laptop turns into an upright tablet, so the KPIs, the chart and
   the top of the tables all fit instead of just the KPI row */
@media (max-width: 600px) {
  .dm-laptop { max-width: 360px; margin: 0 auto; }
  .dm-laptop-lid { border-radius: 28px; padding: 16px 12px; }
  .dm-laptop .dm-screen { aspect-ratio: 3 / 4.3; border-radius: 14px; }
  .dm-laptop-cam { top: 6px; }
  .dm-laptop-base { display: none; }
}

/* Narrow dashboard (mobile: the laptop canvas is 640 wide) */
@container (max-width: 760px) {
  .dm-kpis { grid-template-columns: repeat(2, 1fr); }
  .dm-two { grid-template-columns: 1fr; }
  .dm-db-venue, .dm-db-ghost.is-hide-sm, .dm-db-updated { display: none; }
}

/* One KPI card on its own (hero loop): the dashboard's card, in a small window */
.dm-mini { height: auto; width: 250px; border-radius: 16px; overflow: hidden; padding-bottom: 0.9rem; box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08); }
.dm-mini-top { display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.9rem; background: var(--bg-el); border-bottom: 1px solid var(--border); white-space: nowrap; }
.dm-mini-top svg { width: 18px; height: 18px; flex: none; }
.dm-mini .dm-db-title { font-size: 0.8rem; }
.dm-mini .dm-db-venue { font-size: 0.72rem; margin-left: 0.1rem; }
.dm-mini .dm-kpi { margin: 0.9rem 0.9rem 0; padding: 0.9rem 1rem; }
.dm-mini .dm-kpi-v { font-size: 1.45rem; }

/* Display-only copies (hero loop, landing showcase): not clickable, not focusable */
.dm-inert, .dm-inert * { pointer-events: none !important; }
.dm-inert .dm-pay-scroll { overflow: hidden; }

/* Fake finger tap used by the hero loop */
.dm-tap {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; z-index: 9; pointer-events: none;
  background: rgba(255,255,255,0.35); border: 2px solid rgba(255,255,255,0.8); animation: dm-tap .55s ease-out forwards;
}
@keyframes dm-tap { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .dm-tip.is-new, .dm-status.is-on .dm-status-ring { animation: none !important; }
  .dm-coach-hand { animation: none; transform: translate(0, 4px); }
  .dm-coach-ring { display: none; }
}
.dm-two.is-single { grid-template-columns: 1fr; }
.dm-manage-row.is-flash { animation: dm-row-flash 1s ease-out; }
@keyframes dm-row-flash { 0% { background: rgba(73,205,254,0.22); } 100% { background: transparent; } }
