    /* === Estilos existentes (sin cambios) === */
    /* INICIO ANIMACION PRECARGA */
    html, body { margin: 0; padding: 0; }
    html.preloading, body.preloading {
      height: 100%; width: 100%; overflow: hidden;
    }
    #preloader {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: #067F24; display: flex; justify-content: center; align-items: center;
      z-index: 9999;
    }
    .loader {
      position: relative; width: 60px; height: 60px;
      animation: rotate 1s linear infinite; transform-style: preserve-3d;
    }
    .dot {
      position: absolute; top: 50%; left: 50%; width: 40px; height: 40px;
      border-radius: 50%; transform: translate(-50%, -50%);
    }
    .dot1 { background: #864B1B; transform: translate(-50%, -50%) rotateY(0deg) translateX(-20px); }
    .dot2 { background: #333; transform: translate(-50%, -50%) rotateY(180deg) translateX(-20px); }
    @keyframes rotate {
      0% { transform: rotateY(0deg); }
      100% { transform: rotateY(360deg); }
    }
    /* FIN ANIMACION PRECARGA */

    body {
      font-family: Arial, sans-serif;
      margin: 0;
      background-color: #f8f8f8;
    }
    form {
      width: 100%; margin: 0;
      background: rgba(255, 255, 255, 0.9);
      padding: 20px; box-sizing: border-box;
      border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    h1 {
      text-align: center; font-size: 64px;
      font-family: 'Fredoka One', sans-serif;
      padding: 50px; margin-bottom: -20px;
    }
    h2 {
      text-align: center; font-size: 48px;
      font-family: 'Fredoka One', sans-serif;
    }
    .group {
      margin-bottom: 15px; text-align: left;
      border-bottom: 1px dashed #000; padding-bottom: 10px;
      overflow: hidden; position: relative;
    }
    .group-header {
      background-color: #067F24; color: white;
      padding: 10px; border-radius: 15px; cursor: pointer;
      display: flex; flex-direction: column; align-items: center;
      transition: transform 0.3s ease-out; text-align: center;
      scroll-margin-top: 90px;
    }
    .group-header img {
      width: 60px; height: 60px; object-fit: cover;
      border-radius: 5px; margin-bottom: 5px;
      transition: all 0.3s ease-out;
    }
    .group-header span {
      font-size: 30px; font-weight: bold;
    }
    .group-description {
      font-size: 14px; font-style: italic; color: #f1f1f1;
      margin-top: 3px; padding: 0 20px;
    }
    .group-content {
      max-height: 0; overflow: hidden;
      transition: max-height 0.3s ease-out, padding 0.3s ease-out;
      padding: 0 10px; background-color: #f9f9f9; position: relative;
    }
    .group-content.active {
      max-height: none; overflow: visible; padding: 10px 10px 20px;
    }
    .group.active .group-header img {
      position: absolute; top: 10px; left: 50%;
      transform: translateX(-50%) scale(1.8); margin: 0; opacity: 0;
      transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    }
    .group-content.active img {
      display: block; margin: 10px auto; width: 180px; height: auto;
      transform: scale(1); opacity: 1;
      transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    }
    .group:not(.active) .group-content img {
      transform: scale(0.5); opacity: 0;
      transition: transform 0.2s ease-in, opacity 0.2s ease-in;
    }
    .menu-group { margin-top: 20px; }
    .menu-item {
      display: flex; justify-content: space-between;
      align-items: flex-start; padding: 15px 0;
      border-bottom: 2px dashed #ddd;
    }
    .menu-item:last-child { border-bottom: none; }
    .menu-item h3 {
      font-size: 18px; font-weight: bold; margin: 0;
    }
    .menu-item p {
      font-size: 14px; color: #666; margin: 5px 10px 0;
    }
    .menu-item span {
      font-size: 18px; font-weight: bold; color: #e60000;
      align-self: center;
    }

    .send {
      background-color: #FD1D1D; color: white; border: none;
      padding: 20px; font-size: 24px; cursor: pointer;
      border-radius: 15px; width: 100%; text-align: center;
      font-weight: bold;
    }
    .send .icon { width: 50px; height: auto; margin-bottom: 15px; }
    .send:hover { background-color: #FCAF45; }

    .header {
      position: fixed; top: 0; left: 0; width: 100%;
      background: rgba(0, 0, 0, 0.8); color: white;
      display: flex; justify-content: space-between; align-items: center;
      padding: 5px 10px; z-index: 1000;
    }
    .logo { height: 30px; }
    .menu-button {
      background: none; border: none; color: white;
      font-size: 24px; cursor: pointer; padding: 7px; margin-right: 10px;
    }

    .overlay {
      height: 100%; width: 0; position: fixed; z-index: 9999;
      top: 0; left: 0; background-color: rgba(0, 0, 0, 0.9);
      transition: 0.5s; overflow-x: hidden;
    }
    .overlay .closebtn {
      position: absolute; top: 20px; right: 30px;
      font-size: 50px; color: #fff; text-decoration: none; cursor: pointer;
    }
    .overlay .overlay-content {
      position: relative; top: 30%; width: 100%; text-align: center;
    }
    .overlay .overlay-content a {
      display: block; color: #fff; font-size: 36px;
      text-decoration: none; margin: 20px 0;
      transition: color 0.3s ease;
    }
    .overlay .overlay-content a:hover {
      color: #fdc02f;
    }

    #error-message {
      text-align: center; color: #d32f2f; padding: 20px;
      display: none;
    }

    /* === Ruleta === */
    #roulette-modal {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.9);
      z-index: 10000;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }
    #roulette-container {
      background: white;
      width: 90%;
      max-width: 400px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 0 20px rgba(0,0,0,0.6);
      text-align: center;
    }
    #roulette-title {
      padding: 15px;
      background: #4CAF50;
      color: white;
      font-weight: bold;
      font-size: 18px;
    }
    #roulette-display {
      height: 100px;
      position: relative;
      overflow: hidden;
      background: #fafafa;
    }
    #roulette-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 22px;
      font-weight: bold;
      color: #333;
      white-space: nowrap;
    }
    #roulette-result {
      padding: 20px;
      display: none;
    }
    #roulette-result h3 {
      margin: 0 0 10px;
      color: #e60000;
      font-size: 24px;
      font-weight: bold;
    }
    #roulette-result p {
      margin: 6px 0;
      color: #555;
      font-size: 16px;
      line-height: 1.4;
    }
    .price {
      font-weight: bold;
      color: #e60000;
      font-size: 22px;
      margin-top: 10px;
      display: block;
    }
    .btn-group {
      margin-top: 15px;
    }
    .btn {
      background: #4CAF50;
      color: white;
      border: none;
      padding: 8px 16px;
      margin: 0 5px;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
    }
    .btn:hover {
      opacity: 0.9;
    }
    .btn-secondary {
      background: #999;
    }

    /* === Modal Top 10 === */
    #top10-modal {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.9);
      z-index: 10000;
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      background: white;
      width: 92%;
      max-width: 480px;
      max-height: 90vh;
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .modal-header {
      background: #4CAF50;
      color: white;
      text-align: center;
      padding: 16px 20px;
      position: relative;
    }

    .modal-header h2 {
      font-family: 'Fredoka One', sans-serif;
      font-size: 24px;
      margin: 0;
    }

    .close-btn {
      position: absolute;
      top: 12px;
      right: 16px;
      font-size: 28px;
      color: white;
      text-decoration: none;
      font-weight: bold;
      cursor: pointer;
    }

    .modal-body {
      padding: 16px;
      overflow-y: auto;
      flex: 1;
    }

    .top-item {
      display: flex;
      align-items: flex-start;
      padding: 12px 0;
      border-bottom: 1px solid #eee;
    }

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

    .rank {
      background: #4CAF50;
      color: white;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: bold;
      font-size: 14px;
      margin-right: 12px;
      flex-shrink: 0;
    }

    .item-info {
      flex: 1;
    }

    .name {
      font-size: 17px;
      font-weight: bold;
      color: #333;
      margin-bottom: 6px;
    }

    .popularity-bar {
      height: 6px;
      background: #e0e0e0;
      border-radius: 3px;
      width: 100%;
    }

    .popularity-fill {
      height: 100%;
      background: #4CAF50;
      border-radius: 3px;
    }

    .note {
      text-align: center;
      font-size: 12px;
      color: #888;
      padding: 12px;
      font-style: italic;
    }
    
    /* === Modo oscuro forzado === */
    .dark-mode {
      background-color: #121212;
      color: #e0e0e0;
    }

    .dark-mode h1,
    .dark-mode h2,
    .dark-mode h3 {
      color: #ffffff;
    }

    /* === Estilo base para grupos de platos (verde) === */
    .dark-mode .group-header {
      background: linear-gradient(145deg, #089E2C, #067F24);
      color: #ffffff !important;
      border-radius: 16px;
      padding: 14px;
      text-align: center;
      position: relative;
      overflow: hidden;
      box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 30, 10, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(50, 200, 100, 0.2);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
      font-weight: bold;
      transition: all 0.2s ease;
      cursor: pointer;
    }

    .dark-mode .group-header:active {
      transform: translateY(2px);
      box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 20, 5, 0.3);
    }

    /* === EXCEPCIÓN: Botón "Top 10" → Naranja === */
    .dark-mode #btn-top10 {
      background: linear-gradient(145deg, #FFA726, #FB8C00) !important;
      color: #000000 !important;
      border: 1px solid rgba(255, 255, 255, 0.2) !important;
      box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(40, 20, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
      text-shadow: none !important;
    }

    .dark-mode #btn-top10 .group-description {
      color: rgba(0, 0, 0, 0.85) !important;
    }

    .dark-mode #btn-top10:active {
      transform: translateY(2px);
      box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(30, 15, 0, 0.3);
    }

    /* === EXCEPCIÓN: Botón "Voy a suerte" (Ruleta) → Morado === */
    .dark-mode #btn-suerte {
      background: linear-gradient(145deg, #BA68C8, #8E24AA) !important;
      color: #ffffff !important;
      border: 1px solid rgba(230, 230, 230, 0.2) !important;
      box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(30, 10, 40, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    }

    .dark-mode #btn-suerte .group-description {
      color: rgba(255, 255, 255, 0.9) !important;
    }

    .dark-mode #btn-suerte:active {
      transform: translateY(2px);
      box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(25, 10, 35, 0.3);
    }

    .dark-mode .group-description { color: #ffffff !important; }
    .dark-mode .menu-item p { color: #bbbbbb; }
    .dark-mode .menu-item span { color: #ff6666; }
    .dark-mode .group-content { background-color: #1e1e1e; }
    .dark-mode form { background: rgba(30, 30, 30, 0.95); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); color: #e0e0e0; }
    .dark-mode .menu-item { border-bottom: 2px dashed #444; }
    .dark-mode .send { background-color: #e53935; }
    .dark-mode .send:hover { background-color: #fb8c00; }
    .dark-mode .overlay { background-color: rgba(0, 0, 0, 0.95); }
    .dark-mode .overlay .overlay-content a { color: #f0f0f0; }
    .dark-mode #roulette-container { background: #1e1e1e; color: #e0e0e0; }
    .dark-mode #roulette-title { background: #1f5a20; }
    .dark-mode #roulette-text, .dark-mode #roulette-result h3, .dark-mode .price { color: #ff6666; }
    .dark-mode #roulette-result p { color: #cccccc; }
    .dark-mode .modal-content { background: #1e1e1e; }
    .dark-mode .modal-header { background: #d84315; }
    .dark-mode .modal-header h2 { color: #ffffff; }
    .dark-mode .item-info .name { color: #f0f0f0; }
    .dark-mode .popularity-bar { background: #333; }
    .dark-mode .popularity-fill { background: #4CAF50; }
    .dark-mode .close-btn, .dark-mode .closebtn { color: #ffffff; } 
  
    /* =============================================================
       ESTILOS BOTÓN: DON TACO CHATBOT (DERECHO)
       ============================================================= */
    #chat-btn {
      position: fixed; 
      bottom: 15px; 
      right: 15px; 
      height: 52px; 
      padding: 0 22px;
      font-size: 17px; 
      font-family: 'Fredoka One', sans-serif;
      font-weight: bold; 
      cursor: pointer; 
      z-index: 10005; 
      display: flex; 
      align-items: center; 
      justify-content: center;
      background: #FD1D1D; 
      color: #ffffff; 
      border: none; 
      border-radius: 30px; 
      box-sizing: border-box;
      box-shadow: 0 4px 10px rgba(0,0,0,0.4);
      transition: transform 0.2s;
    }

    #chat-btn::before {
      content: ''; position: absolute;
      top: -6px; left: -6px; right: -6px; bottom: -6px;
      border-radius: 34px;
      border: 4px dotted #00f2fe; 
      animation: flashLED 0.6s infinite steps(2);
      pointer-events: none;
    }

    #chat-btn:active { transform: scale(0.92); }

    @keyframes flashLED {
      0% { opacity: 1; filter: drop-shadow(0 0 5px #00f2fe) drop-shadow(0 0 12px #00f2fe); }
      100% { opacity: 0.15; filter: none; }
    }

    #chat-modal {
      display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.7); z-index: 10010;
      justify-content: center; 
      align-items: flex-end; 
    }
    
    .chat-container {
      background: #1e1e1e; width: 100%; max-width: 500px;
      height: 60vh; 
      max-height: 600px; 
      border-radius: 20px 20px 0 0;
      display: flex; flex-direction: column; overflow: hidden;
      box-shadow: 0 -5px 25px rgba(0,0,0,0.6);
      animation: slideUp 0.3s ease-out;
      border-top: 2px solid #089E2C;
    }
    
    @keyframes slideUp {
      from { transform: translateY(100%); }
      to { transform: translateY(0); }
    }
    
    .chat-header {
      background: #121212; padding: 16px 20px; display: flex;
      justify-content: space-between; align-items: center;
      border-bottom: 1px solid #333;
    }
    
    .chat-header-title { font-size: 22px; font-weight: bold; color: #fff; display: flex; align-items: center; gap: 8px; font-family: 'Fredoka One', sans-serif;}
    .chat-close { font-size: 38px; color: #e53935; text-decoration: none; cursor: pointer; line-height: 1; font-weight: bold; }
    .chat-close:hover { color: #fff; }

    .chat-body { padding: 20px; flex: 1; overflow-y: auto; background: #181818; display: flex; flex-direction: column; gap: 14px; }
    
    .chat-msg { padding: 12px 16px; border-radius: 16px; max-width: 85%; font-size: 17px; line-height: 1.5; word-wrap: break-word; }
    .chat-msg.user { background: #067F24; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
    .chat-msg.bot { background: #2d2d2d; color: #eee; align-self: flex-start; border-bottom-left-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
    
    .chat-input-area { display: flex; border-top: 1px solid #333; background: #121212; padding: 12px; }
    #chat-input { flex: 1; padding: 14px; border: 1px solid #444; border-radius: 12px; background: #252525; color: white; font-size: 16px; outline: none; }
    #chat-input::placeholder { color: #777; }
    
    #chat-send { background: #e53935; color: white; border: none; padding: 0 22px; margin-left: 10px; border-radius: 12px; font-weight: bold; cursor: pointer; font-size: 16px; }
    #chat-send:hover { background: #b71c1c; }

/* =============================================================
       👑 ESTILOS PREMIUM: BOTÓN FLOTANTE "CÓDIGO MESA" (IZQUIERDO)
       ============================================================= */
    #mesa-btn {
      position: fixed; 
      bottom: 15px; 
      left: 15px; 
      height: 52px; 
      padding: 0 24px;
      font-size: 15px; 
      font-family: 'Fredoka One', sans-serif;
      font-weight: normal;
      letter-spacing: 0.5px;
      cursor: pointer; 
      z-index: 10005; 
      display: flex; 
      align-items: center; 
      justify-content: center;
      gap: 8px;
      background: #0a0a0a; 
      color: #f59e0b; /* Oro tequilero */
      border: 1px solid #d97706; 
      border-radius: 30px; 
      box-sizing: border-box;
      box-shadow: 0 8px 24px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1);
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    #mesa-btn::before {
      content: ''; position: absolute;
      top: -5px; left: -5px; right: -5px; bottom: -5px;
      border-radius: 34px;
      border: 2px solid #f59e0b; 
      animation: pulsePremiumLED 1.2s infinite ease-in-out;
      pointer-events: none;
    }
    #mesa-btn:active { transform: scale(0.94); background: #111; }

    @keyframes pulsePremiumLED {
      0% { transform: scale(0.98); opacity: 0.8; filter: blur(1px); }
      50% { transform: scale(1.02); opacity: 0.2; filter: blur(3px); }
      100% { transform: scale(0.98); opacity: 0.8; filter: blur(1px); }
    }

    #mesa-modal {
      display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 10010;
      justify-content: center; align-items: flex-end; 
    }

    /* Vista de autenticación del Código */
    .mesa-auth-box {
      width: 100%; max-width: 440px; background: #121212; padding: 35px 28px;
      border-radius: 24px 24px 0 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 -10px 40px rgba(0,0,0,0.8); animation: slideUpPremium 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .mesa-input-code {
      width: 180px; padding: 14px; font-size: 32px; font-family: 'Fredoka One', monospace;
      text-align: center; letter-spacing: 6px; text-transform: uppercase;
      border: 1px solid #333; background: #070707; color: #f59e0b; border-radius: 16px; margin: 20px 0; outline: none;
      box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
    }
    .mesa-input-code:focus { border-color: #d97706; box-shadow: 0 0 14px rgba(217,119,6,0.25), inset 0 2px 8px rgba(0,0,0,0.8); }

    /* Contenedor Cockpit Dashboard del Cliente */
    .mesa-dashboard {
      display: none; width: 100%; max-width: 480px; height: 82vh; max-height: 800px;
      background: #0d0d0d; border-radius: 28px 28px 0 0; border-top: 1px solid rgba(255,255,255,0.1);
      flex-direction: column; overflow: hidden; box-shadow: 0 -15px 40px rgba(0,0,0,0.9);
      animation: slideUpPremium 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes slideUpPremium {
      from { transform: translateY(100%); }
      to { transform: translateY(0); }
    }

    /* Pestaña estética superior tipo App iOS */
    .pull-indicator {
      width: 40px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; margin: 10px auto -5px auto;
    }

    /* Encabezado del Dashboard */
    .client-dashboard-header {
      padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; background: #0d0d0d;
    }
    .client-dashboard-title { font-family: 'Fredoka One', sans-serif; font-size: 20px; color: #fff; }
    .client-dashboard-close { font-size: 28px; color: #94a3b8; cursor: pointer; transition: color 0.2s; font-weight: bold; }
    .client-dashboard-close:hover { color: #fff; }

    /* Cuerpo interno con Scroll Independiente */
    .client-dashboard-scroll {
      flex: 1; overflow-y: auto; padding: 4px 24px 30px 24px; display: flex; flex-direction: column; gap: 16px;
    }

    /* Tarjeta Macro de Cuenta Total */
    .client-main-card {
      background: linear-gradient(145deg, #161616, #0f0f0f);
      border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 20px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }
    
    /* Acordeones de Control */
    .client-acc-header {
      background: #161616; padding: 16px 20px; border-radius: 14px;
      cursor: pointer; display: flex; justify-content: space-between; align-items: center;
      border: 1px solid rgba(255,255,255,0.04); transition: all 0.2s;
    }
    .client-acc-header:active { background: #1f1f1f; }
    .client-acc-title { font-size: 15px; font-weight: bold; color: #e2e8f0; display: flex; align-items: center; gap: 10px; }
    .client-acc-value { font-family: monospace; font-size: 18px; font-weight: 900; color: #10b981; }
    
    /* RESOLUCIÓN PROBLEMA DE ESPACIO REDUCIDO EN ÍTEMS */
    .client-acc-content {
      max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      background: #090909; border-radius: 0 0 14px 14px; margin-top: -4px;
    }
    .client-acc-content.open { 
      max-height: 450px; 
      overflow-y: auto; 
      padding: 16px 20px; 
      border: 1px solid rgba(255,255,255,0.04); 
      border-top: none; 
    }

    /* Filas de ítems: amplias, legibles y nítidas */
    .client-bill-row {
      display: flex; justify-content: space-between; align-items: center;
      font-size: 15px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: #f1f5f9;
      line-height: 1.4;
    }
    .client-bill-row:last-child { border-bottom: none; }
    .client-bill-row b { color: #f59e0b; font-family: monospace; font-size: 16px; margin-right: 4px; }

    /* Sub-Módulos de Botones */
    .client-section-title {
      font-family: 'Fredoka One', sans-serif; font-size: 14px; color: #64748b;
      text-transform: uppercase; letter-spacing: 1px; margin: 10px 0 0 4px;
    }
    .client-grid-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    
    .btn-client-action {
      background: #141414; color: #e2e8f0; border: 1px solid rgba(255,255,255,0.06); padding: 14px 8px;
      border-radius: 16px; font-size: 12px; font-weight: 600; cursor: pointer; text-align: center;
      display: flex; flex-direction: column; align-items: center; gap: 8px; transition: all 0.2s;
    }
    .btn-client-action:active { transform: scale(0.95); background: #1c1c1c; border-color: rgba(255,255,255,0.15); }
    .btn-client-action .icon-frame { font-size: 20px; filter: grayscale(0.2); }

    .btn-client-future { opacity: 0.3; background: #080808; border-color: transparent; cursor: not-allowed; }
    .future-badge {
      background: #78350f; color: #f59e0b; font-size: 8px; padding: 2px 6px; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    }
	
	
	/* ESTILOS DEL Modal DEL CÓDIGO MESA */
  #mesa-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999 !important; /* 🔒 Capa superior absoluta */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
  }

  /* Autenticación Código */
  .mesa-auth-box {
    background: #1e293b;
    border-radius: 20px;
    padding: 30px 20px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    border: 1px solid #334155;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
  }

  .mesa-input-code {
    width: 140px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 6px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 12px;
    color: #fff;
    margin: 10px 0 20px 0;
    outline: none;
    text-transform: uppercase;
  }
  .mesa-input-code:focus {
    border-color: #d97706;
  }

  /* Dashboard Cliente */
  .mesa-dashboard {
    display: none;
    flex-direction: column;
    background: #0f172a;
    width: 100%;
    max-width: 500px;
    height: 90vh;
    border-radius: 24px 24px 0 0;
    position: absolute;
    bottom: 0;
    overflow: hidden;
    border-top: 1px solid #334155;
  }

  .pull-indicator {
    width: 40px;
    height: 4px;
    background: #334155;
    border-radius: 2px;
    margin: 10px auto 5px auto;
  }

  .client-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .client-dashboard-title {
    color: #fff;
    font-size: 18px;
  }
  .client-dashboard-close {
    color: #64748b;
    font-size: 28px;
    cursor: pointer;
  }

  .client-dashboard-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
  }

.client-main-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 8px; /* ⬇️ REDUCIDO (antes 20px) */
    border: 1px solid #334155;
  }

  .client-acc-header {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    cursor: pointer;
    user-select: none;
  }
  .client-acc-title {
    color: #f8fafc;
    font-size: 14px;
    font-weight: bold;
  }

  .client-acc-content {
    display: none;
    padding-top: 10px;
  }
  .client-acc-content.open {
    display: block;
  }

  .client-bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #cbd5e1;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }

.client-section-title {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    margin: 12px 0 8px 0; /* ⬇️ REDUCIDO (antes 20px 0 10px 0) */
  }

  .client-grid-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .btn-client-action {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #f8fafc;
    padding: 12px 8px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
  }
  .btn-client-action .icon-frame {
    font-size: 20px;
  }
  .btn-client-future {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .future-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    background: #3b82f6;
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
  }

	