* { touch-action: manipulation; box-sizing: border-box; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
html, body { overflow-x: hidden; width: 100%; max-width: 100vw; }
body { background: linear-gradient(135deg, #ffff 0%, #ffff 100%); min-height: 100vh; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
.glass { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); }
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.btn { transition: all 0.3s ease; cursor: pointer; }
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(0.98); }
.notification { z-index: 10001; animation: slideDown 0.3s ease-out; max-width: 85%; white-space: nowrap; pointer-events: auto; }
.mobile-menu { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 9999; animation: slideDown 0.3s ease-out; }
.mobile-menu-content { background: white; margin: 20px; border-radius: 20px; padding: 20px; max-height: 80vh; overflow-y: auto; }
.mobile-menu-item { padding: 15px 20px; margin: 10px 0; border-radius: 15px; font-size: 18px; font-weight: bold; text-align: center; cursor: pointer; transition: all 0.3s ease; background: rgba(16, 185, 129, 0.1); }
.mobile-menu-item:active { transform: scale(0.95); }
.mobile-menu-item.active { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4); }
.hamburger { display: none; cursor: pointer; padding: 8px; margin-right: 10px; }
.hamburger div { width: 25px; height: 3px; background: black; margin: 5px 0; border-radius: 3px; transition: 0.3s; }
@media (max-width: 768px) { .desktop-menu { display: none !important; } .hamburger { display: block; } }
@media (max-width: 400px) { 
  body { padding: 8px !important; } 
  .glass.rounded-3xl { padding: 12px !important; }
  .text-3xl { font-size: 1.5rem !important; }
  .text-2xl { font-size: 1.25rem !important; }
  .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
}
.numpad-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 9998; display: none; backdrop-filter: blur(4px); }
.custom-numpad { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 20px; border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); z-index: 9999; display: none; max-width: 90%; width: 280px; }
.numpad-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 2px solid #e5e7eb; }
.numpad-title { font-size: 18px; font-weight: bold; color: #000; }
.numpad-close { background: none; border: none; font-size: 28px; color: #6b7280; cursor: pointer; }
.numpad-display { background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); padding: 16px; border-radius: 16px; margin-bottom: 15px; text-align: center; font-size: 32px; font-weight: bold; color: #000; border: 2px solid #d1d5db; min-height: 60px; display: flex; align-items: center; justify-content: center; }
.numpad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.numpad-btn { background: white; color: #000; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px; font-size: 28px; cursor: pointer; transition: all 0.15s; }
.numpad-btn:active { background: #e5e7eb; transform: scale(0.97); }
.numpad-btn.delete { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); border-color: #fca5a5; color: #dc2626; }
.numpad-btn.confirm { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; grid-column: span 3; font-size: 18px; }
.numpad-btn.zero { grid-column: 2; }
.sync-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: bold; }
.sync-ok { background: #d1fae5; color: #065f46; }
.sync-pending { background: #fef3c7; color: #92400e; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
