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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  display: flex;
  flex-direction: column;
}

/* ━━━━━ SCREENS ━━━━━ */
.screen {
  display: none;
  height: 100vh;
  width: 100vw;
  flex-direction: column;
}
.screen.active { display: flex; }

/* ════════════════════════════════════════════ */
/*  AUTH — MODERN                            */
/* ════════════════════════════════════════════ */
#auth-screen {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#auth-screen::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,60,225,0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: floatGlow 20s ease-in-out infinite;
}
#auth-screen::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233,64,87,0.08) 0%, transparent 70%);
  bottom: -200px;
  left: -200px;
  animation: floatGlow 25s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease;
}

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

.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}
.auth-logo .auth-icon {
  font-size: 44px;
  color: rgba(255,255,255,0.06);
  display: block;
  font-weight: 100;
  letter-spacing: 8px;
}
.auth-logo h1 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #a29bfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-logo p {
  color: rgba(255,255,255,0.25);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 3px;
}

.auth-box {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 36px 32px 32px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.auth-box h2 {
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: 0.3s;
}
.input-group:focus-within {
  border-color: #6C3CE1;
  box-shadow: 0 0 0 4px rgba(108,60,225,0.12);
  background: rgba(255,255,255,0.06);
}
.input-group-icon {
  padding: 0 0 0 14px;
  font-size: 18px;
  opacity: 0.25;
}
.input-field {
  background: transparent !important;
  border: none !important;
  padding: 14px 12px 14px 8px;
  color: #fff !important;
  font-size: 15px;
  flex: 1;
  outline: none;
  width: 100%;
}
.input-field::placeholder { color: rgba(255,255,255,0.15); }
.input-group-toggle {
  background: none;
  border: none;
  padding: 0 14px;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  font-size: 16px;
}
.input-group-toggle:hover { color: rgba(255,255,255,0.5); }

.error-message {
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
  min-height: 28px;
  padding: 4px 0;
}

/* ━━━━━ BUTTONS ━━━━━ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
}
.btn-full { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.btn-primary {
  background: linear-gradient(135deg, #6C3CE1, #E94057);
  color: #fff;
  box-shadow: 0 4px 24px rgba(108,60,225,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(108,60,225,0.4); }

.btn-accent {
  background: #00B894;
  color: #fff;
}
.btn-accent:hover { transform: translateY(-2px); opacity: 0.9; }

.btn-danger {
  background: #ff6b6b;
  color: #fff;
}
.btn-danger:hover { transform: translateY(-2px); opacity: 0.9; }

.btn-gold {
  background: linear-gradient(135deg, #FDCB6E, #f39c12);
  color: #1a1a2e;
}
.btn-gold:hover { transform: translateY(-2px); opacity: 0.9; }

.btn-outline {
  background: transparent;
  border: 2px solid #ddd;
  color: #666;
}
.btn-outline:hover { border-color: #6C3CE1; color: #6C3CE1; }

/* ════════════════════════════════════════════ */
/*  POS HEADER                                */
/* ════════════════════════════════════════════ */
.pos-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  gap: 6px;
  width: 100%;
  z-index: 10;
}

.store-info {
  text-align: center;
  width: 100%;
}
.store-info h1 {
  font-size: 18px;
  font-weight: 800;
  color: #6C3CE1;
  margin: 0;
}
.store-info span {
  font-size: 11px;
  color: #888;
  display: block;
}

.header-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  width: 100%;
}

/* ════════════════════════════════════════════ */
/*  MAIN LAYOUT — VERTICAL                    */
/* ════════════════════════════════════════════ */
.pos-main {
  display: flex;
  flex-direction: column !important;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ════════════════════════════════════════════ */
/*  MENU — GRID & CARD                        */
/* ════════════════════════════════════════════ */
.menu-section {
  flex: 2;
  padding: 16px 20px;
  overflow-y: auto;
  background: #f0f2f5;
  min-height: 0;
}

.menu-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border: 2px solid #e8ecf0;
  border-radius: 50px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
  color: #888;
}
.filter-btn:hover {
  border-color: #6C3CE1;
  color: #6C3CE1;
  transform: translateY(-2px);
}
.filter-btn.active {
  background: linear-gradient(135deg, #6C3CE1, #E94057);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(108,60,225,0.25);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.menu-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(108,60,225,0.03), rgba(233,64,87,0.03));
  opacity: 0;
  transition: 0.3s;
}
.menu-card:hover::before { opacity: 1; }

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108,60,225,0.13);
  border-color: #6C3CE1;
}
.menu-card:active { transform: scale(0.95); }

.menu-card.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}
.menu-card.unavailable::after {
  content: 'HABIS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-weight: 800;
  font-size: 18px;
  color: #ff6b6b;
  background: rgba(255,255,255,0.9);
  padding: 4px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(255,107,107,0.2);
}

.menu-card .menu-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 6px;
  transition: 0.3s;
}
.menu-card:hover .menu-icon {
  transform: scale(1.15) rotate(-5deg);
}

.menu-card .menu-name {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a2e;
  margin-bottom: 2px;
}
.menu-card .menu-price {
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, #6C3CE1, #E94057);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.menu-card .menu-category {
  font-size: 9px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 2px;
}

/* ════════════════════════════════════════════ */
/*  CART                                      */
/* ════════════════════════════════════════════ */
.cart-section {
  flex: 1;
  min-width: unset;
  max-width: 100%;
  background: #fff;
  border-left: none;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  max-height: 35vh;
  min-height: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  background: #fafafa;
}
.cart-header h2 { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.cart-header .btn { font-size: 11px; padding: 4px 12px; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px;
}
.empty-cart {
  color: #999;
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item-name { font-weight: 600; font-size: 13px; }
.cart-item-price { font-size: 12px; color: #888; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cart-item-qty {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  font-size: 13px;
}
.cart-item-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.cart-item-btn:hover {
  border-color: #6C3CE1;
  background: #6C3CE1;
  color: #fff;
}
.cart-item-remove {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
}

.cart-footer {
  padding: 10px 18px;
  border-top: 2px solid #f0f0f0;
  flex-shrink: 0;
  background: #fafafa;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.cart-total span:last-child {
  background: linear-gradient(135deg, #6C3CE1, #E94057);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ════════════════════════════════════════════ */
/*  ADMIN PANEL                               */
/* ════════════════════════════════════════════ */
.admin-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
}
.admin-panel.active { display: block; }

.admin-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

.admin-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 700px;
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.admin-header h2 { font-size: 17px; }

.admin-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  flex-shrink: 0;
}
.admin-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  color: #888;
  font-family: inherit;
  border-bottom: 3px solid transparent;
}
.admin-tab.active {
  color: #6C3CE1;
  border-bottom-color: #6C3CE1;
}

.admin-tab-content {
  display: none;
  padding: 14px 18px;
  overflow-y: auto;
  flex: 1;
}
.admin-tab-content.active { display: block; }

.admin-actions { margin-bottom: 10px; }

.admin-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 4px;
}
.admin-menu-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-badge {
  font-size: 9px;
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 600;
}
.status-badge.available { background: #d4edda; color: #155724; }
.status-badge.unavailable { background: #f8d7da; color: #721c24; }

.transaction-item {
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid #6C3CE1;
}
.transaction-item .tx-code { font-weight: 700; font-size: 12px; color: #6C3CE1; }
.transaction-item .tx-total { font-weight: 700; color: #6C3CE1; }
.transaction-item .tx-date { font-size: 11px; color: #888; }

.transactions-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.settings-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.6);
  margin-bottom: 6px;
  text-transform: none;
}
.settings-form .form-group {
  margin-bottom: 16px;
}
.settings-form .form-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: 0.3s;
  background: #fff;
  color: #1a1a2e;
}
.settings-form .form-input:focus {
  outline: none;
  border-color: #6C3CE1;
  box-shadow: 0 0 0 4px rgba(108,60,225,0.08);
}
.settings-form .form-input::placeholder {
  color: #bbb;
}

.settings-message {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}
.settings-message.success { background: #d4edda; color: #155724; }
.settings-message.error { background: #f8d7da; color: #721c24; }

/* ━━━━━ MODAL ━━━━━ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}
.modal.active { display: flex; }

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 92%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.modal-header h3 { font-size: 17px; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
}

/* ━━━━━ FORM ━━━━━ */
.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  transition: 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: #6C3CE1;
  box-shadow: 0 0 0 4px rgba(108,60,225,0.08);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkbox input { width: 16px; height: 16px; }

/* ━━━━━ NOTIFICATION ━━━━━ */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  z-index: 99999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ━━━━━ RESPONSIVE ━━━━━ */
@media (max-width: 768px) {
  .pos-main { flex-direction: column !important; }
  .cart-section {
    max-width: 100%;
    border-left: none;
    border-top: 1px solid #eee;
    max-height: 35vh;
  }
  .menu-section { padding: 12px 14px; }
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }
  .menu-card { padding: 14px 10px; }
  .menu-card .menu-icon { font-size: 26px; }
  .menu-card .menu-name { font-size: 12px; }
  .menu-card .menu-price { font-size: 13px; }

  .pos-header { padding: 8px 12px; gap: 4px; }
  .store-info h1 { font-size: 16px; }
  .store-info span { font-size: 10px; }
  .header-actions { gap: 4px; }
  .header-actions .btn { font-size: 11px; padding: 5px 12px; }

  .admin-content {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .auth-box { padding: 24px 18px; }
  .admin-tab { padding: 6px 12px; font-size: 11px; }
}

/* ════════════════════════════════════════════════════════════ */
/*  DASHBOARD — VISUAL SYNC WITH LOGIN PAGE                   */
/* ════════════════════════════════════════════════════════════ */

#pos-screen {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.pos-header {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.store-info h1 {
  color: #fff !important;
  background: linear-gradient(135deg, #ffffff, #a29bfe) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.store-info span {
  color: rgba(255,255,255,0.4) !important;
}

.header-actions .btn-accent {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
}
.header-actions .btn-accent:hover {
  background: rgba(108,60,225,0.3) !important;
  border-color: #6C3CE1;
}

.header-actions .btn-danger {
  background: rgba(255,107,107,0.15) !important;
  color: #ff6b6b !important;
  border: 1px solid rgba(255,107,107,0.1);
}
.header-actions .btn-danger:hover {
  background: rgba(255,107,107,0.25) !important;
}

.menu-section {
  background: transparent !important;
}

.filter-btn {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.4) !important;
  backdrop-filter: blur(8px);
}
.filter-btn:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(108,60,225,0.4) !important;
  color: #fff !important;
}
.filter-btn.active {
  background: linear-gradient(135deg, rgba(108,60,225,0.3), rgba(233,64,87,0.2)) !important;
  border-color: #6C3CE1 !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(108,60,225,0.2) !important;
}

.menu-card {
  background: rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1) !important;
}
.menu-card:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(108,60,225,0.4) !important;
  box-shadow: 0 8px 40px rgba(108,60,225,0.15) !important;
}
.menu-card .menu-name {
  color: #fff !important;
}
.menu-card .menu-price {
  background: linear-gradient(135deg, #a29bfe, #fd79a8) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.menu-card .menu-category {
  color: rgba(255,255,255,0.25) !important;
}

.cart-section {
  background: rgba(255,255,255,0.04) !important;
  backdrop-filter: blur(12px) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}
.cart-header {
  background: rgba(255,255,255,0.02) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.cart-header h2 {
  color: #fff !important;
}
.cart-header .btn-danger {
  background: rgba(255,107,107,0.12) !important;
  color: #ff6b6b !important;
  border: 1px solid rgba(255,107,107,0.06);
}
.cart-header .btn-danger:hover {
  background: rgba(255,107,107,0.2) !important;
}

.empty-cart {
  color: rgba(255,255,255,0.25) !important;
}
.cart-item {
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
.cart-item-name {
  color: rgba(255,255,255,0.8) !important;
}
.cart-item-price {
  color: rgba(255,255,255,0.4) !important;
}
.cart-item-btn {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.4) !important;
}
.cart-item-btn:hover {
  background: #6C3CE1 !important;
  border-color: #6C3CE1 !important;
  color: #fff !important;
}
.cart-item-remove {
  color: rgba(255,107,107,0.4) !important;
}
.cart-item-remove:hover {
  color: #ff6b6b !important;
}

.cart-footer {
  background: rgba(255,255,255,0.02) !important;
  border-top: 1px solid rgba(255,255,255,0.04) !important;
}
.cart-total span:first-child {
  color: rgba(255,255,255,0.4) !important;
}
.cart-total span:last-child {
  background: linear-gradient(135deg, #a29bfe, #fd79a8) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.btn-gold {
  background: linear-gradient(135deg, rgba(108,60,225,0.3), rgba(233,64,87,0.2)) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 4px 24px rgba(108,60,225,0.15) !important;
}
.btn-gold:hover {
  background: linear-gradient(135deg, rgba(108,60,225,0.4), rgba(233,64,87,0.3)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(108,60,225,0.2) !important;
}

.menu-section::-webkit-scrollbar,
.cart-items::-webkit-scrollbar {
  width: 4px;
}
.menu-section::-webkit-scrollbar-track,
.cart-items::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
}
.menu-section::-webkit-scrollbar-thumb,
.cart-items::-webkit-scrollbar-thumb {
  background: rgba(108,60,225,0.3);
  border-radius: 10px;
}
.menu-section::-webkit-scrollbar-thumb:hover,
.cart-items::-webkit-scrollbar-thumb:hover {
  background: rgba(108,60,225,0.5);
}

/* ━━━━━ SETTINGS LABEL ━━━━━ */
.settings-form .form-group label {
  color: rgba(255,255,255,0.6) !important;
}
.settings-form .form-input {
  background: rgba(255,255,255,0.04) !important;
  border: 2px solid rgba(255,255,255,0.06) !important;
  color: #fff !important;
}
.settings-form .form-input::placeholder {
  color: rgba(255,255,255,0.2) !important;
}
.settings-form .form-input:focus {
  border-color: #6C3CE1 !important;
  box-shadow: 0 0 0 4px rgba(108,60,225,0.08) !important;
}
/* ════════════════════════════════════════════════════════════ */
/*  ADMIN PANEL — DARK THEME FIX                             */
/* ════════════════════════════════════════════════════════════ */

.admin-content {
  background: #1a1a2e !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

.admin-header {
  background: rgba(255,255,255,0.04) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.admin-header h2 {
  color: #fff !important;
}

.admin-tabs {
  background: rgba(255,255,255,0.02) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.admin-tab {
  color: rgba(255,255,255,0.4) !important;
}
.admin-tab:hover {
  color: rgba(255,255,255,0.7) !important;
}
.admin-tab.active {
  color: #a29bfe !important;
  border-bottom-color: #6C3CE1 !important;
}

.admin-tab-content {
  color: #fff !important;
}

.admin-menu-item {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
}
.admin-menu-item-info span,
.admin-menu-item-info strong {
  color: rgba(255,255,255,0.8) !important;
}

.transaction-item {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-left: 4px solid #6C3CE1 !important;
}
.transaction-item .tx-code {
  color: #a29bfe !important;
}
.transaction-item .tx-total {
  color: #fd79a8 !important;
}
.transaction-item .tx-date {
  color: rgba(255,255,255,0.3) !important;
}

.transactions-filters .form-input {
  background: rgba(255,255,255,0.04) !important;
  border: 2px solid rgba(255,255,255,0.06) !important;
  color: #fff !important;
}
.transactions-filters .form-input::placeholder {
  color: rgba(255,255,255,0.2) !important;
}
.transactions-filters .form-input:focus {
  border-color: #6C3CE1 !important;
  box-shadow: 0 0 0 4px rgba(108,60,225,0.08) !important;
}

.settings-form .form-group label {
  color: rgba(255,255,255,0.5) !important;
}
.settings-form .form-input {
  background: rgba(255,255,255,0.04) !important;
  border: 2px solid rgba(255,255,255,0.06) !important;
  color: #fff !important;
}
.settings-form .form-input::placeholder {
  color: rgba(255,255,255,0.2) !important;
}
.settings-form .form-input:focus {
  border-color: #6C3CE1 !important;
  box-shadow: 0 0 0 4px rgba(108,60,225,0.08) !important;
}

.admin-actions .btn-primary {
  background: linear-gradient(135deg, #6C3CE1, #E94057) !important;
  color: #fff !important;
}

.admin-menu-item .btn-outline {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.5) !important;
}
.admin-menu-item .btn-outline:hover {
  background: rgba(108,60,225,0.2) !important;
  border-color: #6C3CE1 !important;
  color: #fff !important;
}

.admin-menu-item .btn-danger {
  background: rgba(255,107,107,0.15) !important;
  color: #ff6b6b !important;
  border: 1px solid rgba(255,107,107,0.1) !important;
}
.admin-menu-item .btn-danger:hover {
  background: rgba(255,107,107,0.25) !important;
}

#close-admin {
  background: rgba(255,107,107,0.15) !important;
  color: #ff6b6b !important;
  border: 1px solid rgba(255,107,107,0.1) !important;
}
#close-admin:hover {
  background: rgba(255,107,107,0.25) !important;
}

#save-settings {
  background: linear-gradient(135deg, #6C3CE1, #E94057) !important;
  color: #fff !important;
}

.settings-message.success {
  background: rgba(0,184,148,0.15) !important;
  color: #00B894 !important;
}
.settings-message.error {
  background: rgba(255,107,107,0.15) !important;
  color: #ff6b6b !important;
}

/* Scrollbar admin */
.admin-tab-content::-webkit-scrollbar {
  width: 4px;
}
.admin-tab-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
}
.admin-tab-content::-webkit-scrollbar-thumb {
  background: rgba(108,60,225,0.3);
  border-radius: 10px;
}
/* ============================================= */
/*  RESPONSIVE UNTUK HP                          */
/* ============================================= */

@media (max-width: 768px) {
  /* Header */
  .pos-header {
    padding: 8px 12px;
    gap: 4px;
  }
  .store-info h1 {
    font-size: 16px;
  }
  .store-info span {
    font-size: 10px;
  }
  .header-actions .btn {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Menu Grid */
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .menu-card {
    padding: 10px 8px;
  }
  .menu-card .menu-icon {
    font-size: 24px;
  }
  .menu-card .menu-name {
    font-size: 12px;
  }
  .menu-card .menu-price {
    font-size: 12px;
  }

  /* Cart Section */
  .cart-section {
    max-height: 45vh;
  }
  .cart-header h2 {
    font-size: 14px;
  }
  .cart-item-name {
    font-size: 12px;
  }
  .cart-item-price {
    font-size: 11px;
  }
  .cart-total {
    font-size: 16px;
  }
  .btn-gold {
    font-size: 13px;
    padding: 10px;
  }

  /* Filter */
  .filter-btn {
    font-size: 11px;
    padding: 4px 12px;
  }

  /* Admin Panel */
  .admin-content {
    width: 98%;
    max-height: 90vh;
  }
  .admin-tab {
    font-size: 11px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .menu-card {
    padding: 8px 6px;
  }
  .menu-card .menu-icon {
    font-size: 20px;
  }
  .menu-card .menu-name {
    font-size: 11px;
  }
  .menu-card .menu-price {
    font-size: 11px;
  }
  
  .cart-section {
    max-height: 35vh;
  }
  
  .pos-header {
    padding: 4px 8px;
  }
  .store-info h1 {
    font-size: 14px;
  }
  .header-actions .btn {
    font-size: 10px;
    padding: 3px 8px;
  }
}
/* ============================================= */
/*  FIX TOMBOL CETAK STRUK DI HP                 */
/* ============================================= */

@media (max-width: 768px) {
  /* Pastikan tombol cetak selalu terlihat */
  .cart-footer {
    position: sticky;
    bottom: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 50;
    padding: 12px 16px;
    border-top: 2px solid rgba(255,255,255,0.1);
  }
  
  #print-btn {
    display: block !important;
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #6C3CE1, #E94057) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 20px rgba(108,60,225,0.4) !important;
  }
  
  #print-btn:disabled {
    opacity: 0.5 !important;
    background: #444 !important;
    box-shadow: none !important;
  }
  
  /* Pastikan cart section punya ruang */
  .cart-section {
    max-height: none !important;
    min-height: 200px !important;
  }
}
/* ============================================= */
/*  FIX TOMBOL CETAK DI HP — LEBIH BESAR        */
/* ============================================= */

@media (max-width: 768px) {
  /* Tombol cetak di HP */
  #print-btn {
    font-size: 18px !important;
    padding: 16px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #6C3CE1, #E94057) !important;
    color: #fff !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 24px rgba(108,60,225,0.5) !important;
    width: 100% !important;
    margin-top: 8px !important;
  }
  
  /* Keranjang biar ada ruang */
  .cart-section {
    padding-bottom: 16px !important;
  }
  
  .cart-footer {
    padding: 12px 16px 20px !important;
  }
  
  /* Total lebih besar */
  .cart-total {
    font-size: 22px !important;
  }
}
/* ============================================= */
/*  PAKSA TOMBOL CETAK MUNCUL DI HP              */
/* ============================================= */

#print-btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  padding: 16px !important;
  font-size: 18px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #6C3CE1, #E94057) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  margin-top: 10px !important;
  box-shadow: 0 4px 20px rgba(108,60,225,0.4) !important;
}

#print-btn:disabled {
  opacity: 0.5 !important;
  background: #444 !important;
  box-shadow: none !important;
}

/* Pastikan cart-footer tidak nutup tombol */
.cart-footer {
  overflow: visible !important;
  padding-bottom: 30px !important;
}
@media (max-width: 768px) {
  #print-btn {
    position: fixed !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 999 !important;
    width: auto !important;
    padding: 16px !important;
    font-size: 18px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #6C3CE1, #E94057) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 30px rgba(108,60,225,0.5) !important;
    border: none !important;
  }
  
  /* Beri ruang di bawah */
  .cart-section {
    padding-bottom: 80px !important;
  }
}
/* ============================================= */
/*  PAKSA TOMBOL CETAK MUNCUL DI HP              */
/* ============================================= */

/* Tombol cetak selalu muncul di HP */
@media (max-width: 768px) {
  
  /* Tombol cetak di bagian bawah layar */
  #print-btn {
    position: fixed !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 16px !important;
    font-size: 18px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #6C3CE1, #E94057) !important;
    color: #fff !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 30px rgba(108,60,225,0.6) !important;
    width: auto !important;
    text-align: center !important;
  }
  
  #print-btn:disabled {
    background: #555 !important;
    box-shadow: none !important;
    opacity: 0.5 !important;
  }
  
  /* Kosongkan cart-footer biar tombol gak nutup */
  .cart-footer {
    padding-bottom: 80px !important;
  }
  
  /* Cart section biar ada ruang */
  .cart-section {
    padding-bottom: 80px !important;
  }
}
/* ============================================= */
/*  FIX KERANJANG KEPOTONG + TOMBOL CETAK       */
/* ============================================= */

@media (max-width: 768px) {
  
  /* Tombol cetak di bawah layar */
  #print-btn {
    position: fixed !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 9999 !important;
    display: block !important;
    padding: 16px !important;
    font-size: 18px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #6C3CE1, #E94057) !important;
    color: #fff !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 30px rgba(108,60,225,0.6) !important;
  }
  
  /* KASIH RUANG KOSONG DI BAWAH KERANJANG */
  .cart-section {
    padding-bottom: 80px !important;
    max-height: none !important;
    height: auto !important;
  }
  
  .cart-items {
    max-height: 40vh !important;
    overflow-y: auto !important;
  }
  
  .cart-footer {
    padding-bottom: 80px !important;
    margin-bottom: 20px !important;
  }
  
  /* Biar total gak kepotong */
  .cart-total {
    font-size: 20px !important;
    padding-bottom: 10px !important;
  }
}
/* ============================================= */
/*  FIX KERANJANG KEPOTONG + TOMBOL CETAK       */
/* ============================================= */

@media (max-width: 768px) {
  
  /* Tombol cetak di bawah layar */
  #print-btn {
    position: fixed !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 9999 !important;
    display: block !important;
    padding: 16px !important;
    font-size: 18px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #6C3CE1, #E94057) !important;
    color: #fff !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 30px rgba(108,60,225,0.6) !important;
  }
  
  /* KASIH RUANG KOSONG DI BAWAH KERANJANG */
  .cart-section {
    padding-bottom: 90px !important;
    max-height: none !important;
    height: auto !important;
  }
  
  .cart-items {
    max-height: 35vh !important;
    overflow-y: auto !important;
  }
  
  .cart-footer {
    padding-bottom: 100px !important;
    margin-bottom: 30px !important;
  }
  
  /* Total biar gak kepotong */
  .cart-total {
    font-size: 20px !important;
    padding: 10px 0 !important;
  }
}
/* ============================================= */
/*  FIX KERANJANG KOSONG - LIST MENU MUNCUL     */
/* ============================================= */

@media (max-width: 768px) {
  
  /* Keranjang harus terlihat penuh */
  .cart-items {
    display: block !important;
    max-height: 45vh !important;
    overflow-y: auto !important;
    padding: 10px 16px !important;
    background: rgba(255,255,255,0.03) !important;
    border-radius: 10px !important;
    min-height: 80px !important;
  }
  
  /* Setiap item di keranjang */
  .cart-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  }
  
  .cart-item-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
  }
  
  .cart-item-price {
    font-size: 13px !important;
    color: rgba(255,255,255,0.6) !important;
  }
  
  .cart-item-controls {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  
  .cart-item-qty {
    font-weight: 700 !important;
    color: #fff !important;
    min-width: 20px !important;
    text-align: center !important;
  }
  
  .cart-item-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .cart-item-btn:hover {
    background: #6C3CE1 !important;
    border-color: #6C3CE1 !important;
  }
  
  .cart-item-remove {
    background: none !important;
    border: none !important;
    color: #ff6b6b !important;
    font-size: 16px !important;
    cursor: pointer !important;
    padding: 0 4px !important;
  }
  
  /* Total */
  .cart-total {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #fff !important;
    padding: 12px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    border-top: 2px solid rgba(255,255,255,0.1) !important;
    margin-top: 8px !important;
  }
  
  .cart-total span:last-child {
    color: #a29bfe !important;
  }
  
  /* Tombol cetak */
  #print-btn {
    position: fixed !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 9999 !important;
    display: block !important;
    padding: 16px !important;
    font-size: 18px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #6C3CE1, #E94057) !important;
    color: #fff !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 30px rgba(108,60,225,0.6) !important;
  }
  
  #print-btn:disabled {
    background: #555 !important;
    opacity: 0.5 !important;
    box-shadow: none !important;
  }
  
  .cart-section {
    padding-bottom: 90px !important;
    max-height: none !important;
  }
  
  .cart-footer {
    padding-bottom: 80px !important;
  }
}
/* ============================================= */
/*  SCROLL KE BAWAH — TOMBOL CETAK MUNCUL       */
/* ============================================= */

@media (max-width: 768px) {
  
  /* Biar semua konten bisa di-scroll */
  html, body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  
  /* Layar POS jadi scrollable */
  #pos-screen {
    height: auto !important;
    min-height: 100vh !important;
    display: block !important;
    overflow-y: visible !important;
  }
  
  /* Main layout vertikal */
  .pos-main {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  /* Menu section */
  .menu-section {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 12px 16px !important;
  }
  
  .menu-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  /* Keranjang section — BISA DI-SCROLL */
  .cart-section {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 16px 120px 16px !important;
  }
  
  .cart-items {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 10px 0 !important;
  }
  
  /* Tombol cetak — MUNCUL DI BAWAH */
  #print-btn {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    padding: 16px !important;
    font-size: 18px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #6C3CE1, #E94057) !important;
    color: #fff !important;
    font-weight: 800 !important;
    border: none !important;
    margin-top: 16px !important;
    box-shadow: 0 4px 20px rgba(108,60,225,0.4) !important;
  }
  
  #print-btn:disabled {
    background: #555 !important;
    opacity: 0.5 !important;
    box-shadow: none !important;
  }
  
  /* Total */
  .cart-total {
    font-size: 20px !important;
    font-weight: 800 !important;
    padding: 12px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    border-top: 2px solid rgba(255,255,255,0.08) !important;
  }
  
  .cart-total span:last-child {
    color: #a29bfe !important;
  }
  
  /* Kosongkan keranjang */
  .cart-header {
    padding: 10px 0 !important;
  }
  
  .cart-header h2 {
    font-size: 16px !important;
  }
  
  /* Item keranjang */
  .cart-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  }
  
  .cart-item-name {
    font-size: 14px !important;
    color: #fff !important;
  }
  
  .cart-item-price {
    font-size: 13px !important;
    color: rgba(255,255,255,0.5) !important;
  }
}
/* ============================================= */
/*  PAYMENT SECTION — UANG CASH + KEMBALIAN     */
/* ============================================= */

.payment-section {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  border: 1px solid rgba(255,255,255,0.05);
}

.payment-section .form-group {
  margin-bottom: 8px;
}

#cash-input {
  font-size: 18px !important;
  font-weight: 600 !important;
}

#cash-input:focus {
  border-color: #6C3CE1 !important;
  box-shadow: 0 0 0 4px rgba(108,60,225,0.1) !important;
}

.change-display {
  background: rgba(0,184,148,0.08);
  border-radius: 10px;
  padding: 10px;
  margin-top: 6px;
}

.change-display span:last-child {
  font-size: 22px;
}

#quick-cash-50, #quick-cash-100 {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.6) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: 0.3s !important;
}

#quick-cash-50:hover, #quick-cash-100:hover {
  background: rgba(108,60,225,0.2) !important;
  border-color: #6C3CE1 !important;
  color: #fff !important;
}