    :root {
      --primary: #22C55E;
      --primary-dark: #15803D;
      --primary-light: #4ADE80;
      --primary-rgb: 34, 197, 94;
      --bg: #0B0F0C;
      --surface: #131A15;
      --surface-elevated: #1B2420;
      --sidebar-bg: #0F1512;
      --topbar-bg: #0B0F0C;
      --border: #22302A;
      --text: #E9F2EC;
      --text-muted: #9DB3A6;
      --yellow: #F59E0B;
      --yellow-light: #FBBF24;
      --red: #EF4444;
      --red-light: #F87171;
      --blue: #3B82F6;
      --blue-light: #93C5FD;
      --sidebar-width: 250px;
      --topbar-height: 64px;
      --radius: 12px;
      --radius-lg: 14px;
      --transition: 0.25s ease;
    }

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

    html {
      font-size: 14px;
      scroll-behavior: smooth;
    }

    body {
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
      overflow-x: hidden;
      min-height: 100vh;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: transparent;
    }
    ::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--text-muted);
    }

    /* ========== SIDEBAR ========== */
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      width: var(--sidebar-width);
      height: 100vh;
      background: var(--sidebar-bg);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      z-index: 100;
      transition: transform var(--transition);
    }

    .sidebar-header {
      padding: 20px 18px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid var(--border);
    }

    .logo {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.35);
    }

    .logo i, .logo svg {
      width: 22px;
      height: 22px;
      color: white;
      stroke-width: 2;
    }

    .logo-text h1 {
      font-size: 15px;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.02em;
      line-height: 1.2;
    }

    .logo-text span {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 500;
    }

    .sidebar-nav {
      flex: 1;
      overflow-y: auto;
      padding: 16px 12px;
    }

    .nav-section {
      margin-bottom: 20px;
    }

    .nav-section-label {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      padding: 0 10px 8px;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 12px;
      border-radius: 10px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 13.5px;
      font-weight: 500;
      transition: all var(--transition);
      position: relative;
      cursor: pointer;
      border: none;
      background: transparent;
      width: 100%;
      text-align: left;
    }

    .nav-item i, .nav-item svg {
      width: 18px;
      height: 18px;
      stroke-width: 2;
      flex-shrink: 0;
    }

    .nav-item:hover {
      background: rgba(var(--primary-rgb), 0.08);
      color: var(--primary-light);
    }

    .nav-item.active {
      background: rgba(var(--primary-rgb), 0.15);
      color: white;
    }

    .nav-item.nav-item-sub {
      padding-left: 28px;
      font-size: 12.5px;
    }

    .nav-item.nav-item-sub i, .nav-item.nav-item-sub svg {
      width: 15px;
      height: 15px;
      opacity: 0.85;
    }

    .nav-item.active::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 3px;
      height: 60%;
      background: var(--primary);
      border-radius: 0 3px 3px 0;
    }

    .sidebar-footer {
      padding: 16px 18px;
      border-top: 1px solid var(--border);
      font-size: 12px;
      color: var(--text-muted);
    }

    .sidebar-footer-item {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }

    .sidebar-footer-item:last-child {
      margin-bottom: 0;
    }

    .sidebar-footer-item i, .sidebar-footer-item svg {
      width: 14px;
      height: 14px;
      stroke-width: 2;
      flex-shrink: 0;
    }

    /* Overlay for mobile */
    .sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      z-index: 99;
    }

    .sidebar-overlay.open {
      display: block;
    }

    /* ========== MAIN AREA ========== */
    .main {
      margin-left: var(--sidebar-width);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      transition: margin-left var(--transition);
    }

    /* Topbar */
    .topbar {
      position: sticky;
      top: 0;
      height: var(--topbar-height);
      background: var(--topbar-bg);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 28px;
      z-index: 50;
    }

    .topbar-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .menu-toggle {
      display: none;
      background: var(--surface-elevated);
      border: 1px solid var(--border);
      border-radius: 10px;
      width: 40px;
      height: 40px;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text);
      transition: all var(--transition);
    }

    .menu-toggle:hover {
      background: var(--surface);
      border-color: var(--primary);
    }

    .menu-toggle i, .menu-toggle svg {
      width: 20px;
      height: 20px;
    }

    .page-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
    }

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

    .btn-topbar-link-cad,
    .btn-topbar-enviar-dados {
      transition: all 0.2s ease;
      white-space: nowrap;
    }
    .btn-topbar-link-cad:hover,
    .btn-topbar-enviar-dados:hover {
      border-color: rgba(var(--primary-rgb), 0.4);
      background: rgba(var(--primary-rgb), 0.08);
      transform: translateY(-1px);
    }

    .current-date {
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 500;
    }

    .store-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(var(--primary-rgb), 0.15);
      color: var(--primary-light);
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 600;
      border: 1px solid rgba(var(--primary-rgb), 0.3);
    }

    .store-pill i, .store-pill svg {
      width: 14px;
      height: 14px;
    }

    /* Content */
    .content {
      flex: 1;
      padding: 28px;
    }

    /* ========== CARDS ========== */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 20px;
      transition: all var(--transition);
    }

    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .card-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
    }

    .card-header h3 {
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
    }

    .card-header i, .card-header svg {
      width: 18px;
      height: 18px;
      color: var(--primary);
      stroke-width: 2;
    }

    /* Stats cards */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 14px;
      margin-bottom: 28px;
    }

    .stat-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 16px 18px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      transition: all var(--transition);
      cursor: default;
      min-width: 0;
      overflow: hidden;
    }

    .stat-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
      border-color: rgba(34, 197, 94, 0.3);
    }

    .stat-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .stat-icon.green {
      background: rgba(34, 197, 94, 0.15);
      color: var(--primary);
    }

    .stat-icon.yellow {
      background: rgba(245, 158, 11, 0.15);
      color: var(--yellow);
    }

    .stat-icon.red {
      background: rgba(239, 68, 68, 0.15);
      color: var(--red);
    }

    .stat-icon.orange {
      background: rgba(249, 115, 22, 0.15);
      color: #f97316;
    }

    .stat-icon.blue {
      background: rgba(59, 130, 246, 0.15);
      color: var(--blue);
    }

    .stat-icon.emerald {
      background: rgba(16, 185, 129, 0.15);
      color: #10b981;
    }

    .stat-icon i, .stat-icon svg {
      width: 22px;
      height: 22px;
      stroke-width: 2;
    }

    .stat-content {
      flex: 1;
      min-width: 0;
      overflow: hidden;
    }

    .stat-value {
      font-size: clamp(13px, 1.25vw, 18px);
      font-weight: 800;
      color: var(--text);
      line-height: 1.15;
      letter-spacing: -0.03em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-variant-numeric: tabular-nums;
    }

    .stat-value.long {
      font-size: 14px;
    }

    .stat-label {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 500;
      margin-top: 4px;
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .stat-trend {
      font-size: 11px;
      font-weight: 600;
      margin-top: 6px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .stat-trend.up {
      color: var(--primary-light);
    }

    .stat-trend.down {
      color: var(--red-light);
    }

    /* ========== TABLES ========== */
    .table-wrapper {
      overflow-x: auto;
      border-radius: var(--radius);
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    thead th {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
      padding: 12px 14px;
      text-align: left;
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
    }

    thead th.right {
      text-align: right;
    }

    tbody td {
      padding: 12px 14px;
      border-bottom: 1px solid rgba(34, 48, 42, 0.6);
      font-size: 13.5px;
      color: var(--text);
      vertical-align: middle;
    }

    tbody tr {
      transition: background var(--transition);
    }

    tbody tr:hover {
      background: rgba(34, 197, 94, 0.06);
    }

    tbody tr:last-child td {
      border-bottom: none;
    }

    td.right {
      text-align: right;
      font-variant-numeric: tabular-nums;
    }

    .actions-cell {
      display: flex;
      gap: 6px;
      justify-content: flex-end;
    }

    /* ========== BADGES ========== */
    .badge {
      display: inline-flex;
      align-items: center;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.02em;
      white-space: nowrap;
    }

    .badge-green {
      background: rgba(34, 197, 94, 0.15);
      color: var(--primary-light);
    }

    .badge-yellow {
      background: rgba(245, 158, 11, 0.15);
      color: var(--yellow-light);
    }

    .badge-red {
      background: rgba(239, 68, 68, 0.15);
      color: var(--red-light);
    }

    .badge-blue {
      background: rgba(59, 130, 246, 0.15);
      color: var(--blue-light);
    }

    .badge-gray {
      background: rgba(157, 179, 166, 0.15);
      color: var(--text-muted);
    }

    /* Badges de Forma de Pagamento e Resumos */
    .badge-pay {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.2px;
      white-space: nowrap;
    }
    .badge-pay i, .badge-pay svg {
      width: 12px;
      height: 12px;
      stroke-width: 2.2;
    }
    .badge-pay.badge-pix {
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.3);
    }
    .badge-pay.badge-dinheiro {
      background: rgba(34, 197, 94, 0.15);
      color: #4ade80;
      border: 1px solid rgba(34, 197, 94, 0.3);
    }
    .badge-pay.badge-cartao-credito {
      background: rgba(168, 85, 247, 0.15);
      color: #c084fc;
      border: 1px solid rgba(168, 85, 247, 0.3);
    }
    .badge-pay.badge-cartao-debito {
      background: rgba(59, 130, 246, 0.15);
      color: #60a5fa;
      border: 1px solid rgba(59, 130, 246, 0.3);
    }
    .badge-pay.badge-boleto {
      background: rgba(234, 179, 8, 0.15);
      color: #facc15;
      border: 1px solid rgba(234, 179, 8, 0.3);
    }
    .badge-pay.badge-transferencia {
      background: rgba(6, 182, 212, 0.15);
      color: #22d3ee;
      border: 1px solid rgba(6, 182, 212, 0.3);
    }
    .badge-pay.badge-outro {
      background: rgba(157, 179, 166, 0.15);
      color: var(--text-muted);
      border: 1px solid rgba(157, 179, 166, 0.25);
    }

    .payment-summary-bar {
      display: flex;
      gap: 8px;
      padding: 10px 16px;
      background: rgba(0,0,0,0.12);
      border-bottom: 1px solid var(--border);
      overflow-x: auto;
      align-items: center;
    }
    .summary-pill {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 3px 10px;
      font-size: 11px;
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
      cursor: pointer;
      transition: all 0.2s;
      color: var(--text);
    }
    .summary-pill.active {
      border-color: var(--primary);
      background: rgba(34, 197, 94, 0.12);
      color: var(--primary-light);
    }
    .summary-pill:hover:not(.active) {
      border-color: var(--border-light, #293830);
    }
    .summary-pill strong {
      font-weight: 700;
    }

    /* Grade de 2 colunas para os agendamentos (5 em cada lado) */
    .agenda-split-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    @media (max-width: 920px) {
      .agenda-split-grid {
        grid-template-columns: 1fr;
      }
    }
    .agenda-col {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .agenda-col-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 2px 4px 6px 4px;
      border-bottom: 1px dashed var(--border);
      margin-bottom: 2px;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .agenda-col-badge {
      background: rgba(255,255,255,0.05);
      padding: 1px 7px;
      border-radius: 999px;
      font-size: 10px;
      color: var(--primary-light);
    }
    .agenda-item-card {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      background: #0D1210;
      border: 1px solid var(--border);
      border-radius: 10px;
      transition: all 0.2s;
    }
    .agenda-item-card:hover {
      background: #151d18;
      border-color: var(--border-light, #293830);
    }
    .agenda-item-num {
      font-size: 11px;
      font-weight: 800;
      color: var(--text-muted);
      width: 18px;
      text-align: center;
      flex-shrink: 0;
    }

    /* ========== BUTTONS ========== */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 18px;
      border-radius: 10px;
      font-size: 13.5px;
      font-weight: 600;
      cursor: pointer;
      transition: all var(--transition);
      border: none;
      font-family: inherit;
    }

    .btn i, .btn svg {
      width: 16px;
      height: 16px;
      stroke-width: 2;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
      box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
    }

    .btn-secondary {
      background: var(--surface-elevated);
      color: var(--text);
      border: 1px solid var(--border);
    }

    .btn-secondary:hover {
      background: var(--surface);
      border-color: var(--primary);
      color: var(--primary-light);
    }

    .btn-icon {
      width: 34px;
      height: 34px;
      padding: 0;
      border-radius: 8px;
      background: var(--surface-elevated);
      border: 1px solid var(--border);
      color: var(--text-muted);
    }

    .btn-icon:hover {
      background: rgba(34, 197, 94, 0.1);
      border-color: var(--primary);
      color: var(--primary);
    }

    .btn-icon.danger:hover {
      background: rgba(239, 68, 68, 0.1);
      border-color: var(--red);
      color: var(--red);
    }

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

    .btn-pill {
      border-radius: 999px;
      padding: 6px 14px;
      font-size: 12px;
    }

    /* ========== FAB ========== */
    .fab-container {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 90;
      width: 56px;
      height: 56px;
      pointer-events: none;
    }

    .fab-main {
      pointer-events: auto;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      border: none;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 2;
    }

    .fab-main:hover {
      transform: scale(1.08);
      box-shadow: 0 8px 28px rgba(34, 197, 94, 0.6);
    }

    .fab-main i, .fab-main svg {
      width: 26px;
      height: 26px;
      stroke-width: 2.5;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .fab-container.open .fab-main i,
    .fab-container.open .fab-main svg {
      transform: rotate(225deg);
    }

    .fab-actions {
      position: absolute;
      right: 0;
      bottom: 68px;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 10px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      pointer-events: none;
    }

    .fab-container.open .fab-actions {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .fab-action {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      animation: fabSlide 0.3s ease forwards;
      opacity: 0;
    }

    .fab-container.open .fab-action {
      opacity: 1;
    }

    .fab-action:nth-child(1) { transition-delay: 0.05s; }
    .fab-action:nth-child(2) { transition-delay: 0.08s; }
    .fab-action:nth-child(3) { transition-delay: 0.11s; }
    .fab-action:nth-child(4) { transition-delay: 0.14s; }
    .fab-action:nth-child(5) { transition-delay: 0.17s; }
    .fab-action:nth-child(6) { transition-delay: 0.2s; }

    .fab-action-label {
      background: var(--surface-elevated);
      color: var(--text);
      padding: 8px 14px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      border: 1px solid var(--border);
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .fab-action-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--surface-elevated);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary-light);
      transition: all var(--transition);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .fab-action:hover .fab-action-icon {
      background: rgba(34, 197, 94, 0.15);
      border-color: var(--primary);
      transform: scale(1.08);
    }

    .fab-action-icon i, .fab-action-icon svg {
      width: 18px;
      height: 18px;
      stroke-width: 2;
    }

    /* ========== FORMS ========== */
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

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

    .form-group.full {
      grid-column: 1 / -1;
    }

    .form-label {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
    }

    .form-input,
    .form-select,
    .form-textarea {
      background: #0D1210;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 14px;
      color: var(--text);
      font-size: 14px;
      font-family: inherit;
      transition: all var(--transition);
      outline: none;
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    }

    .form-input::placeholder {
      color: var(--text-muted);
    }

    .form-textarea {
      min-height: 90px;
      resize: vertical;
    }

    input[type="text"],
    input[type="search"],
    input[type="tel"],
    input:not([type]),
    textarea,
    .form-input:not([type="password"]):not([type="email"]):not([type="number"]):not([type="date"]):not([type="time"]),
    .form-textarea {
      text-transform: uppercase;
    }
    #page-configuracoes input,
    #page-configuracoes textarea,
    #page-conf_financeiro input,
    #page-conf_financeiro textarea,
    input[type="email"],
    input[type="password"],
    [data-skip-upper],
    [data-skip-upper="1"],
    .msg-tpl,
    #wa-test-msg,
    #pdv-telefone {
      text-transform: none;
    }

    /* ========== TABS ========== */
    .tabs {
      display: flex;
      gap: 4px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 20px;
    }

    .tab {
      padding: 10px 16px;
      font-size: 13.5px;
      font-weight: 600;
      color: var(--text-muted);
      background: transparent;
      border: none;
      cursor: pointer;
      position: relative;
      transition: color var(--transition);
      font-family: inherit;
    }

    .tab:hover {
      color: var(--text);
    }

    .tab.active {
      color: var(--primary-light);
    }

    .tab.active::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--primary);
      border-radius: 2px 2px 0 0;
    }

    /* ========== MODAL ========== */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(6px);
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: all 0.25s ease;
      padding: 20px;
    }

    .modal-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .modal {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      width: 100%;
      max-width: 520px;
      max-height: 90vh;
      overflow-y: auto;
      transform: translateY(20px);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .modal-overlay.open .modal {
      transform: translateY(0);
    }

    @keyframes modalStaticPulse {
      0% { transform: translateY(0) scale(1); }
      50% { transform: translateY(0) scale(1.02); }
      100% { transform: translateY(0) scale(1); }
    }

    .modal.modal-static-shake {
      animation: modalStaticPulse 0.22s ease-in-out;
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px;
      border-bottom: 1px solid var(--border);
    }

    .modal-header h2 {
      font-size: 17px;
      font-weight: 700;
    }

    .modal-close {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: transparent;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
    }

    .modal-close:hover {
      background: rgba(239, 68, 68, 0.1);
      color: var(--red);
    }

    .modal-body {
      padding: 24px;
    }

    .modal-footer {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      padding: 16px 24px;
      border-top: 1px solid var(--border);
    }

    /* ========== ALERTS ========== */
    .alert {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 18px;
      border-radius: 10px;
      font-size: 13.5px;
      font-weight: 500;
      margin-bottom: 20px;
    }

    .alert i, .alert svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
    }

    .alert-success {
      background: rgba(34, 197, 94, 0.12);
      color: var(--primary-light);
      border: 1px solid rgba(34, 197, 94, 0.25);
    }

    .alert-error {
      background: rgba(239, 68, 68, 0.12);
      color: var(--red-light);
      border: 1px solid rgba(239, 68, 68, 0.25);
    }

    /* ========== EMPTY STATE ========== */
    .empty-state {
      text-align: center;
      padding: 48px 20px;
      color: var(--text-muted);
    }

    .empty-state i, .empty-state svg {
      width: 48px;
      height: 48px;
      margin-bottom: 16px;
      opacity: 0.4;
      stroke-width: 1.5;
    }

    .empty-state p {
      font-size: 14px;
    }

    /* ========== GRID LAYOUTS ========== */
    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 18px;
    }

    .section-title {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .section-title i, .section-title svg {
      width: 18px;
      height: 18px;
      color: var(--primary);
    }

    /* Page sections */
    .page-section {
      display: none;
    }

    .page-section.active {
      display: block;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Toolbar */
    .toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    .search-box {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #0D1210;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 8px 14px;
      min-width: 260px;
    }

    .search-box i, .search-box svg {
      width: 16px;
      height: 16px;
      color: var(--text-muted);
      flex-shrink: 0;
    }

    .search-box input {
      background: transparent;
      border: none;
      outline: none;
      color: var(--text);
      font-size: 13.5px;
      width: 100%;
      font-family: inherit;
    }

    .search-box input::placeholder {
      color: var(--text-muted);
    }

    .toolbar-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    /* Chart placeholder */
    .chart-placeholder {
      height: 220px;
      background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, transparent 100%);
      border-radius: 10px;
      display: flex;
      align-items: flex-end;
      justify-content: space-around;
      padding: 20px 16px 0;
      gap: 8px;
    }

    .chart-bar {
      flex: 1;
      background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
      border-radius: 6px 6px 0 0;
      opacity: 0.7;
      transition: opacity var(--transition);
      min-height: 20px;
    }

    .chart-bar:hover {
      opacity: 1;
    }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 1200px) {
      .stats-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 920px) {
      .sidebar {
        transform: translateX(-100%);
      }

      .sidebar.open {
        transform: translateX(0);
      }

      .main {
        margin-left: 0;
      }

      .menu-toggle {
        display: flex;
      }

      .stats-grid {
        grid-template-columns: 1fr;
      }

      .grid-2, .grid-3 {
        grid-template-columns: 1fr;
      }

      .form-grid {
        grid-template-columns: 1fr;
      }

      .content {
        padding: 20px 16px;
      }

      .topbar {
        padding: 0 16px;
      }

      .btn-topbar-link-cad span,
      .btn-topbar-enviar-dados span {
        display: none;
      }
      .btn-topbar-link-cad,
      .btn-topbar-enviar-dados {
        padding: 6px 10px !important;
      }

      .fab-container {
        bottom: 20px;
        right: 20px;
      }
    }

    /* ========== PRINT ========== */
    @media print {
      .sidebar,
      .topbar,
      .fab-container,
      .menu-toggle,
      .btn,
      .actions-cell {
        display: none !important;
      }

      .main {
        margin-left: 0;
      }

      body {
        background: white;
        color: #111;
      }

      .card, .stat-card {
        border: 1px solid #ddd;
        background: white;
        box-shadow: none;
      }
    }


/* Parcelas boleto */
.parcela-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.parcela-chip:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(34, 197, 94, 0.08);
}
.parcela-chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}
@media (max-width: 600px) {
  #pdv-parcelas-chips {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}


    .modal-overlay.open ~ .fab-container,
    .fab-container.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }


    /* FAB desativado: atrapalhava cliques na tabela/ações */
    .fab-container {
      display: none !important;
    }

/* ==========================================================================
   VITRINE MODERNA - HEADER, CARROSSEL E FOOTER
   ========================================================================== */
.vitrine-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0B0F0C;
  color: #E9F2EC;
}

.vitrine-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  background: rgba(11, 15, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
  z-index: 50;
}
.vitrine-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.vitrine-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22C55E 0%, #15803D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050B07;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  flex-shrink: 0;
}
.vitrine-brand-info strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}
.vitrine-brand-badge {
  display: inline-block;
  color: #4ADE80;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vitrine-search-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.vitrine-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9DB3A6;
  width: 17px;
  height: 17px;
  pointer-events: none;
}
.vitrine-search-input {
  width: 100%;
  height: 42px;
  background: #131A15 !important;
  border: 1px solid #22302A !important;
  border-radius: 99px !important;
  padding: 0 18px 0 42px !important;
  color: #E9F2EC !important;
  font-size: 13.5px !important;
  transition: all 0.2s ease;
}
.vitrine-search-input:focus {
  border-color: #22C55E !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
}
.vitrine-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vitrine-btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1B2B20;
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ADE80;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.vitrine-btn-whats:hover {
  background: #22C55E;
  color: #050B07;
  border-color: #22C55E;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.vitrine-btn-cadastrar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #22C55E;
  border: 1px solid #22C55E;
  color: #050B07;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}
.vitrine-btn-cadastrar:hover {
  background: #16A34A;
  border-color: #16A34A;
  color: #050B07;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

/* CARROSSEL HERO */
.vitrine-hero-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 20px auto 10px;
  padding: 0 20px;
  box-sizing: border-box;
}
.vitrine-carousel-container {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  border: 1px solid #22302A;
  background: #0E1611;
  height: 320px;
}
@media (max-width: 768px) {
  .vitrine-carousel-container {
    height: 190px;
    border-radius: 12px;
  }
}
.vitrine-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.vitrine-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: inherit;
  user-select: none;
  box-sizing: border-box;
}
.vitrine-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.vitrine-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,15,12,0.1) 0%, rgba(11,15,12,0.78) 75%, rgba(11,15,12,0.92) 100%);
  z-index: 2;
}
.vitrine-slide-content {
  position: relative;
  z-index: 3;
  padding: 24px 30px;
  max-width: 680px;
}
.vitrine-slide-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  line-height: 1.2;
}
.vitrine-slide-content p {
  font-size: 14px;
  color: #D1E0D7;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.vitrine-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(19, 26, 21, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E9F2EC;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vitrine-carousel-arrow:hover {
  background: #22C55E;
  color: #050B07;
  border-color: #22C55E;
  transform: translateY(-50%) scale(1.08);
}
.vitrine-carousel-arrow.prev { left: 14px; }
.vitrine-carousel-arrow.next { right: 14px; }
.vitrine-carousel-dots {
  position: absolute;
  bottom: 12px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vitrine-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}
.vitrine-dot.active {
  width: 24px;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* SEÇÃO DE PRODUTOS */
.vitrine-catalog-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  box-sizing: border-box;
  flex: 1;
}
.vitrine-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1F2B24;
}
.vitrine-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #E9F2EC;
  margin: 0;
}
.vitrine-section-title i {
  color: #22C55E;
}
.vitrine-badge-count {
  background: #16241C;
  border: 1px solid #22302A;
  color: #4ADE80;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
}
.vitrine-card-item {
  background: #131A15;
  border: 1px solid #22302A;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.vitrine-card-item:hover {
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.vitrine-card-thumb {
  height: 160px;
  border-radius: 10px;
  background: #0B0F0C;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}
.vitrine-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.vitrine-card-item:hover .vitrine-card-thumb img {
  transform: scale(1.04);
}
.vitrine-card-cat {
  font-size: 11px;
  letter-spacing: .08em;
  color: #9DB3A6;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.vitrine-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
  line-height: 1.35;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vitrine-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #1C2721;
}
.vitrine-card-price {
  font-size: 18px;
  font-weight: 800;
  color: #4ADE80;
}
.vitrine-card-btn {
  background: #1B2B20;
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #E9F2EC;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vitrine-card-btn:hover {
  background: #22C55E;
  color: #050B07;
  border-color: #22C55E;
}

/* FOOTER DA VITRINE */
.vitrine-footer {
  background: #070B09;
  border-top: 1px solid #1A261E;
  margin-top: auto;
  padding: 44px 20px 20px;
  box-sizing: border-box;
}
.vitrine-footer-container {
  max-width: 1280px;
  margin: 0 auto;
}
.vitrine-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.vitrine-footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vitrine-footer-col h4 i {
  color: #22C55E;
  width: 16px;
  height: 16px;
}
.vitrine-footer-text {
  color: #9DB3A6;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 14px 0;
}
.vitrine-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vitrine-footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #B2C7BC;
  font-size: 13px;
  line-height: 1.45;
}
.vitrine-footer-list li i {
  width: 16px;
  height: 16px;
  color: #4ADE80;
  flex-shrink: 0;
  margin-top: 2px;
}
.vitrine-footer-address-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.vitrine-footer-label {
  font-size: 11px;
  color: #7E9487;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
}
.vitrine-endereco-val {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
  color: #B2C7BC;
  font-size: 13px;
  word-break: break-word;
  text-align: left;
}
.vitrine-address-street {
  color: #E9F2EC;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  display: block;
}
.vitrine-address-bairro {
  color: #B2C7BC;
  font-size: 12.5px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.vitrine-address-bairro-tag {
  color: #7E9487;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.vitrine-address-locality,
.vitrine-address-city {
  color: #B2C7BC;
  font-size: 12.5px;
  line-height: 1.35;
  display: block;
}
.vitrine-footer-list a {
  color: #B2C7BC;
  text-decoration: none;
  transition: color 0.15s ease;
}
.vitrine-footer-list a:hover {
  color: #4ADE80;
}
.vitrine-social-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.vitrine-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #131A15;
  border: 1px solid #22302A;
  color: #E9F2EC;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}
.vitrine-social-btn:hover {
  background: #22C55E;
  color: #050B07;
  border-color: #22C55E;
  transform: translateY(-2px);
}
.vitrine-payments-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.vitrine-pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111813;
  border: 1px solid #22302A;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #A3B8AD;
}
.vitrine-pay-pill i {
  color: #22C55E;
  width: 14px;
  height: 14px;
}
.vitrine-footer-bottom {
  border-top: 1px solid #162019;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6D8275;
  font-size: 13px;
}

/* BANNER MANAGER NO PAINEL ADMIN */
.banner-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.banner-admin-card {
  background: #131A15;
  border: 1px solid #22302A;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.banner-admin-thumb {
  height: 110px;
  background: #0B0F0C;
  position: relative;
  overflow: hidden;
}
.banner-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-admin-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.banner-admin-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
}
.banner-admin-sub {
  font-size: 12px;
  color: #9DB3A6;
}
.banner-admin-link {
  font-size: 11px;
  color: #4ADE80;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
.banner-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0E1410;
  border-top: 1px solid #1C2721;
}

/* ========== CONFIGURAÇÃO DE CORES E TEMAS ========== */
.color-input-bubble {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 3px;
  flex-shrink: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.color-input-bubble:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}
.color-input-bubble::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-input-bubble::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}
.color-picker-box {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.preset-card-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  user-select: none;
}
.preset-card-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  background: var(--surface-elevated);
}
.preset-card-btn.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
  background: var(--surface-elevated);
}
.preset-dots-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.preset-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ==================== CAIXA INTERNO ==================== */
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes pulseDotAlert {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.status-dot-pulse-open {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

.status-dot-pulse-closed {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDotAlert 2s infinite;
}

.caixa-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.caixa-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}


