/* ================================================
   ULTIMATE POS — FUTURISTIC THEME
   Glassmorphism + Neon Accents + Animated Gradients
   ================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --futuristic-primary: #6366f1;
  --futuristic-secondary: #8b5cf6;
  --futuristic-accent: #06b6d4;
  --futuristic-success: #10b981;
  --futuristic-warning: #f59e0b;
  --futuristic-danger: #ef4444;
  --futuristic-glow: rgba(99, 102, 241, 0.4);
  --futuristic-glass-bg: rgba(255, 255, 255, 0.08);
  --futuristic-glass-border: rgba(255, 255, 255, 0.15);
  --futuristic-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --futuristic-card-bg: rgba(255, 255, 255, 0.95);
  --futuristic-gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  --futuristic-gradient-2: linear-gradient(135deg, #06b6d4, #6366f1, #8b5cf6);
  --futuristic-gradient-3: linear-gradient(135deg, #10b981, #06b6d4);
  --futuristic-gradient-4: linear-gradient(135deg, #f59e0b, #ef4444);
  --futuristic-gradient-5: linear-gradient(135deg, #8b5cf6, #ec4899);
}

/* ---- Futuristic Background ---- */
.futuristic-bg {
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 30%, #24243e 60%, #0f0c29 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.futuristic-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: floatOrbs 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatOrbs {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ---- Glassmorphism Card ---- */
.glass-card {
  background: var(--futuristic-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--futuristic-glass-border);
  border-radius: 20px;
  box-shadow: var(--futuristic-glass-shadow);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.2);
}

.glass-card-strong {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ---- Neon Glow Effects ---- */
.neon-glow {
  box-shadow: 0 0 10px var(--futuristic-glow),
              0 0 20px var(--futuristic-glow),
              0 0 40px rgba(99, 102, 241, 0.2);
}

.neon-text {
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5),
               0 0 20px rgba(99, 102, 241, 0.3);
}

.neon-border {
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1);
}

/* ---- Animated Gradient Text ---- */
.gradient-text {
  background: var(--futuristic-gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientText 3s ease infinite;
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Futuristic Buttons ---- */
.btn-futuristic {
  background: var(--futuristic-gradient-1);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  cursor: pointer;
}

.btn-futuristic:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.btn-futuristic:active {
  transform: translateY(0);
}

.btn-glass {
  background: var(--futuristic-glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--futuristic-glass-border);
  color: white;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-glass-dark {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-glass-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---- Futuristic Input Fields ---- */
.input-futuristic {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 18px;
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
}

.input-futuristic:focus {
  outline: none;
  border-color: var(--futuristic-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.input-futuristic::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-light {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  color: #1a1a2e;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
}

.input-light:focus {
  outline: none;
  border-color: var(--futuristic-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: white;
}

.input-light::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

/* ---- Futuristic POS Layout ---- */
.pos-futuristic-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-template-rows: 1fr;
  gap: 16px;
  height: calc(100vh - 80px);
  padding: 16px;
}

.pos-product-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pos-cart-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---- Futuristic Product Cards ---- */
.product-card-futuristic {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.product-card-futuristic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--futuristic-gradient-1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card-futuristic:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.2);
}

.product-card-futuristic:hover::before {
  opacity: 1;
}

/* ---- Futuristic Category Pills ---- */
.category-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 10px 20px;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.category-pill:hover, .category-pill.active {
  background: var(--futuristic-gradient-1);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

/* ---- Futuristic Totals ---- */
.totals-futuristic {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  padding: 20px;
}

.total-row-futuristic {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.total-row-futuristic:last-child {
  border-bottom: none;
  padding-top: 16px;
}

.total-amount-futuristic {
  font-size: 28px;
  font-weight: 800;
  background: var(--futuristic-gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Futuristic Payment Buttons ---- */
.payment-btn-futuristic {
  background: var(--futuristic-gradient-1);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  border: none;
  color: white;
  font-weight: 700;
  border-radius: 16px;
  padding: 16px 32px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  cursor: pointer;
  width: 100%;
}

.payment-btn-futuristic:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.payment-btn-futuristic:active {
  transform: translateY(0);
}

/* ---- Futuristic Badge ---- */
.badge-futuristic {
  background: var(--futuristic-gradient-1);
  color: white;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ---- Futuristic Search Bar ---- */
.search-futuristic {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 14px 20px 14px 50px;
  color: white;
  font-size: 15px;
  transition: all 0.3s ease;
  width: 100%;
}

.search-futuristic:focus {
  outline: none;
  border-color: var(--futuristic-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.search-futuristic::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-pulse-slow {
  animation: pulse 2s ease-in-out infinite;
}

/* ---- Dark Mode Support ---- */
.dark .glass-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .glass-card-strong {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .pos-product-panel,
.dark .pos-cart-panel {
  background: rgba(30, 41, 59, 0.95);
}

.dark .product-card-futuristic {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .product-card-futuristic:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

.dark .totals-futuristic {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

.dark .total-row-futuristic {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark .input-light {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.dark .input-light:focus {
  border-color: var(--futuristic-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.dark .input-light::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Futuristic Login Page ---- */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease;
}

.login-logo {
  width: 64px;
  height: 64px;
  background: var(--futuristic-gradient-1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.login-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  text-align: center;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: 32px;
}

.login-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 24px 0;
}

/* ---- Futuristic Register Page ---- */
.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.register-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 48px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease;
}

.register-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  text-align: center;
  margin-bottom: 8px;
}

.register-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: 32px;
}

.register-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.register-step:hover {
  background: rgba(255, 255, 255, 0.1);
}

.register-step.active {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.register-step.completed .register-step-number {
  background: var(--futuristic-gradient-3);
}

.register-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.register-step.active .register-step-number {
  background: var(--futuristic-gradient-1);
}

.register-form-group {
  margin-bottom: 20px;
}

.register-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.register-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 18px;
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

.register-input:focus {
  outline: none;
  border-color: var(--futuristic-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.register-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.register-input-light {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  color: #1a1a2e;
  font-size: 14px;
  transition: all 0.3s ease;
}

.register-input-light:focus {
  outline: none;
  border-color: var(--futuristic-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: white;
}

.register-input-light::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.register-btn {
  width: 100%;
  background: var(--futuristic-gradient-1);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  border: none;
  color: white;
  font-weight: 700;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  cursor: pointer;
  margin-top: 8px;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.register-btn-light {
  width: 100%;
  background: var(--futuristic-gradient-1);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  border: none;
  color: white;
  font-weight: 700;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  cursor: pointer;
  margin-top: 8px;
}

.register-btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* ---- Futuristic POS Header ---- */
.pos-header-futuristic {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pos-header-logo {
  width: 40px;
  height: 40px;
  background: var(--futuristic-gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pos-header-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.pos-header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
}

.pos-header-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

/* ---- Futuristic POS Product Grid ---- */
.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.pos-product-grid::-webkit-scrollbar {
  width: 6px;
}

.pos-product-grid::-webkit-scrollbar-track {
  background: transparent;
}

.pos-product-grid::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 3px;
}

.pos-product-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* ---- Futuristic POS Cart ---- */
.pos-cart-header {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-cart-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}

.pos-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.pos-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: rgba(99, 102, 241, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.06);
  transition: all 0.3s ease;
}

.pos-cart-item:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.15);
}

.pos-cart-item-image {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pos-cart-item-info {
  flex: 1;
  min-width: 0;
}

.pos-cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-cart-item-price {
  font-size: 12px;
  color: #6366f1;
  font-weight: 600;
}

.pos-cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pos-cart-item-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: white;
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
}

.pos-cart-item-qty-btn:hover {
  background: #6366f1;
  color: white;
}

.pos-cart-item-total {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  min-width: 70px;
  text-align: right;
}

/* ---- Futuristic POS Totals Section ---- */
.pos-cart-totals {
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
  border-radius: 0 0 24px 24px;
}

.pos-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.pos-cart-total-label {
  color: #64748b;
  font-weight: 500;
}

.pos-cart-total-value {
  font-weight: 600;
  color: #1a1a2e;
}

.pos-cart-total-grand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 2px solid rgba(99, 102, 241, 0.15);
}

.pos-cart-total-grand-label {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
}

.pos-cart-total-grand-value {
  font-size: 28px;
  font-weight: 800;
  background: var(--futuristic-gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Futuristic Payment Modal ---- */
.payment-modal-futuristic {
  background: rgba(15, 12, 41, 0.8);
  backdrop-filter: blur(10px);
}

.payment-modal-content {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
}

.payment-modal-header {
  background: var(--futuristic-gradient-1);
  padding: 24px;
  text-align: center;
}

.payment-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.payment-modal-body {
  padding: 24px;
}

.payment-method-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
}

.payment-method-btn:hover {
  border-color: var(--futuristic-primary);
  background: rgba(99, 102, 241, 0.03);
  transform: translateX(4px);
}

.payment-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--futuristic-gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.payment-method-name {
  font-weight: 600;
  color: #1a1a2e;
}

/* ---- Futuristic Category Drawer ---- */
.category-drawer {
  width: 320px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px 0 0 24px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.category-drawer-header {
  padding: 20px;
  background: var(--futuristic-gradient-1);
  color: white;
}

.category-drawer-title {
  font-size: 18px;
  font-weight: 700;
}

.category-drawer-body {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.category-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

.category-drawer-item:hover {
  background: rgba(99, 102, 241, 0.08);
}

.category-drawer-item.active {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.category-drawer-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--futuristic-gradient-5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.category-drawer-name {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 14px;
}

.category-drawer-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 8px;
  border-radius: 50px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .pos-futuristic-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  
  .pos-cart-panel {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .login-card,
  .register-card {
    padding: 32px 24px;
  }
  
  .pos-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* ---- Print Styles ---- */
@media print {
  .futuristic-bg,
  .glass-card,
  .pos-product-panel,
  .pos-cart-panel {
    background: white !important;
    box-shadow: none !important;
    border: none !important;
  }
  
  .futuristic-bg::before {
    display: none;
  }
  
  .pos-cart-panel {
    max-height: none !important;
  }
}
