:root {
  --bg-white: #ffffff;
  --bg-soft: #f3f9ff;
  --blue-deep: #084298;
  --blue-primary: #0b5ed7;
  --blue-bright: #0ea5e9;
  --blue-light: #38bdf8;
  --blue-pale: #e0f2fe;
  --red-brand: #e11d2e;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #dbeafe;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --whatsapp: #25d366;
  --shadow-sm: 0 4px 14px rgba(11, 94, 215, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 94, 215, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, strong {
  font-family: 'Outfit', sans-serif;
}

.hidden {
  display: none !important;
}

/* ================= AUTH VIEW + WATER CANVAS ================= */
.auth-view {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 52%, #e6f4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 64px;
  overflow: hidden;
}

.water-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.sensor-controls {
  position: fixed;
  top: 46px;
  right: 16px;
  z-index: 30;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sensor-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: var(--blue-primary);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, background 0.2s;
}

.sensor-btn:hover {
  background: var(--blue-pale);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

.auth-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.brand-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.brand-logo-wrap {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 28px;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(11, 94, 215, 0.16);
  border: 2px solid rgba(56, 189, 248, 0.35);
  transition: transform 0.25s ease;
}

.brand-logo-wrap:hover {
  transform: scale(1.02);
}

.brand-svg {
  width: 240px;
  max-width: 72vw;
  height: auto;
  display: block;
}

.brand-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 12px;
  border-radius: 999px;
}

.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.dot-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.hours-pill.closed .dot-status {
  background: var(--amber);
}

.auth-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.auth-tab {
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.2s;
}

.auth-tab.active {
  background: var(--bg-white);
  color: var(--blue-primary);
  box-shadow: 0 2px 10px rgba(11, 94, 215, 0.12);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-deep);
}

input, select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.phone-verify-row {
  display: flex;
  gap: 8px;
}

.wa-code-box {
  background: #f0fdf4;
  border: 1px dashed #22c55e;
  padding: 12px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-demo-hint {
  color: #15803d;
  font-weight: 600;
}

/* ================= BUTTONS ================= */
.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

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

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-bright));
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 94, 215, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 10px 24px rgba(11, 94, 215, 0.34);
}

.btn-primary-sm {
  background: var(--blue-primary);
  color: #fff;
  padding: 10px 14px;
  white-space: nowrap;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp-sm {
  background: var(--whatsapp);
  color: #fff;
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 13px;
}

.btn-outline-blue {
  background: #fff;
  color: var(--blue-primary);
  border: 1.5px solid var(--blue-primary);
  padding: 10px 14px;
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-success {
  background: var(--green);
  color: #fff;
}

.link-btn {
  background: none;
  border: none;
  color: var(--blue-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.auth-switch-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ================= APP HEADER & LAYOUT ================= */
.app-view {
  min-height: 100vh;
  background: var(--bg-soft);
}

.app-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(11, 94, 215, 0.04);
}

.mini-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 18px;
}

.txt-red { color: var(--red-brand); }
.txt-blue { color: var(--blue-primary); }
.txt-amber { color: var(--amber); }
.txt-green { color: var(--green); }

.role-badge {
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

.header-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-btn {
  background: var(--bg-soft);
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

.nav-btn.active {
  background: var(--blue-primary);
  color: #fff;
}

.badge {
  background: var(--red-brand);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  background: var(--blue-pale);
  color: var(--blue-deep);
  border: 1px solid var(--blue-light);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  background: var(--blue-primary);
  color: #fff;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.logout-btn {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.schedule-banner {
  background: linear-gradient(90deg, #e0f2fe, #f0f9ff);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  text-align: center;
}

.schedule-banner.closed {
  background: #fef3c7;
  color: #92400e;
}

.app-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 20px 100px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-head h1 {
  font-size: 26px;
  color: var(--blue-deep);
}

.page-head p {
  font-size: 14px;
  color: var(--text-muted);
}

.filter-pills, .subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill, .subtab {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-pill.active, .subtab.active {
  background: var(--blue-primary);
  color: #fff;
  border-color: var(--blue-primary);
}

.sub-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
}

/* ================= PRODUCTS GRID ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-img-wrap {
  height: 190px;
  background: linear-gradient(180deg, #f8fcff, #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px;
}

.product-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.product-model-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-brand {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue-bright);
  letter-spacing: 0.6px;
}

.product-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
}

.product-cat {
  font-size: 12px;
  color: var(--text-muted);
}

.product-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: var(--blue-primary);
}

.admin-prod-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ================= ORDERS LIST ================= */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--bg-soft);
  padding-bottom: 10px;
}

.status-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.pending { background: #fef3c7; color: #92400e; }
.status-pill.scheduled { background: #e0f2fe; color: #075985; }
.status-pill.completed { background: #dcfce7; color: #166534; }
.status-pill.cancelled { background: #fee2e2; color: #991b1b; }
.status-pill.online { background: #dcfce7; color: #166534; }
.status-pill.offline { background: #fee2e2; color: #991b1b; }

.order-items-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.order-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--bg-soft);
}

.order-wa-footer {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ================= CASHIER & ADMIN PANELS ================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-card.highlight {
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  border-color: #86efac;
}

.kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 26px;
}

.cashier-split, .master-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.panel-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.danger-box {
  border-color: #fecaca;
  background: #fffafa;
}

.panel-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.cashier-list, .expenses-list, .users-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.cashier-item, .expense-item, .user-mini-item {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expense-item, .user-mini-item {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.pay-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.pay-btn {
  border: 1px solid var(--border-light);
  background: #fff;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

.pay-btn:hover {
  background: var(--blue-primary);
  color: #fff;
}

.expense-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.expense-form input {
  flex: 1;
  min-width: 120px;
}

.quick-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-chip {
  background: var(--blue-pale);
  color: var(--blue-deep);
  border: none;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.kpi-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi-mini {
  background: var(--bg-soft);
  padding: 12px;
  border-radius: 14px;
  text-align: center;
}

.kpi-mini span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.kpi-mini strong {
  font-size: 24px;
  color: var(--blue-primary);
}

.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================= MODALS ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 2;
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: var(--bg-soft);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-soft);
  padding: 10px 12px;
  border-radius: 12px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin: 12px 0;
}

.cart-warning {
  background: #fef3c7;
  color: #92400e;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

/* ================= WHATSAPP POPUP ================= */
.wa-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-popup-card {
  background: #fff;
  border: 2px solid var(--whatsapp);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.22);
  width: 260px;
  position: relative;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 800;
}

.wa-popup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 4px;
}

.wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--whatsapp);
}

.wa-popup-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.wa-popup-link {
  display: block;
  text-align: center;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 10px;
}

.wa-fab {
  background: var(--whatsapp);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.38);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================= SERVER OFFLINE & TOAST ================= */
.server-offline {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 66, 152, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.offline-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.offline-icon {
  font-size: 46px;
}

.offline-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.toast-container {
  position: fixed;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--blue-deep);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  animation: fadeSlide 0.25s ease;
}

.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.alert { background: var(--amber); color: #111827; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  border: 1px dashed var(--border-light);
  color: var(--text-muted);
}

/* ================= ALERTA AO VIVO DE PEDIDOS (ADM / MASTER) ================= */
.admin-live-alert {
  max-width: 1220px;
  margin: 14px auto 0;
  padding: 14px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 12px 30px rgba(11, 94, 215, 0.22);
  animation: pulseAlert 1.2s ease-in-out 3;
}

.admin-live-alert.today {
  background: linear-gradient(90deg, #0b5ed7, #0ea5e9);
  color: #fff;
}

.admin-live-alert.tomorrow {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #111827;
}

@keyframes pulseAlert {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}

/* ================= RODAPÉ DESENVOLVEDOR ================= */
.dev-footer {
  position: fixed;
  bottom: 12px;
  left: 18px;
  z-index: 940;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.dev-footer a {
  color: var(--blue-primary);
  font-weight: 800;
  text-decoration: none;
}

.dev-footer a:hover {
  text-decoration: underline;
}

/* ================= MODAL DE AGRADECIMENTO & GRÁFICO MASTER ================= */
.thankyou-card {
  text-align: center;
  align-items: center;
  padding: 28px 24px;
}

.thankyou-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.thankyou-msg {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dark);
}

.thankyou-details {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  text-align: left;
  color: var(--blue-deep);
}

.thankyou-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.master-month-badge {
  background: var(--blue-pale);
  color: var(--blue-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.chart-box {
  background: #f8fbff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px;
  width: 100%;
}
