/**
 * SNISHOP Premium Design System
 * =============================
 * Global visual foundation for premium SaaS-grade UI.
 * Loaded on ALL pages (landing, auth, user/admin/owner dashboards).
 * Contains ZERO logic — purely visual utilities and design tokens.
 * 
 * @version 2.0.0
 */

/* =============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================= */
:root {
  /* Primary Palette */
  --sni-indigo-50: #eef2ff;
  --sni-indigo-100: #e0e7ff;
  --sni-indigo-200: #c7d2fe;
  --sni-indigo-300: #a5b4fc;
  --sni-indigo-400: #818cf8;
  --sni-indigo-500: #6366f1;
  --sni-indigo-600: #4f46e5;
  --sni-indigo-700: #4338ca;
  --sni-indigo-800: #3730a3;
  --sni-indigo-900: #312e81;

  /* Accent (Purple) */
  --sni-purple-500: #a855f7;
  --sni-purple-600: #9333ea;

  /* Surfaces */
  --sni-surface: #F8FAFC;
  --sni-surface-card: rgba(255, 255, 255, 0.85);
  --sni-surface-glass: rgba(255, 255, 255, 0.65);
  --sni-surface-dark: #0a0d16;
  --sni-surface-dark-card: rgba(15, 18, 30, 0.75);

  /* Status Colors */
  --sni-success: #10b981;
  --sni-warning: #f59e0b;
  --sni-danger: #ef4444;
  --sni-info: #3b82f6;

  /* Borders */
  --sni-border-light: rgba(226, 232, 240, 0.6);
  --sni-border-glass: rgba(255, 255, 255, 0.2);

  /* Shadows */
  --sni-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --sni-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --sni-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --sni-shadow-xl: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
  --sni-shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --sni-shadow-glow-indigo: 0 0 30px rgba(79, 70, 229, 0.15), 0 0 60px rgba(79, 70, 229, 0.05);
  --sni-shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.2);

  /* Radii */
  --sni-radius-sm: 0.75rem;
  --sni-radius-md: 1rem;
  --sni-radius-lg: 1.5rem;
  --sni-radius-xl: 2rem;
  --sni-radius-premium: 1.75rem;
  --sni-radius-card: 2.5rem;

  /* Transitions */
  --sni-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sni-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --sni-duration-fast: 200ms;
  --sni-duration-normal: 300ms;
  --sni-duration-slow: 500ms;

  /* Z-Index Scale */
  --sni-z-dropdown: 40;
  --sni-z-sticky: 50;
  --sni-z-overlay: 60;
  --sni-z-sidebar: 70;
  --sni-z-modal: 80;
  --sni-z-toast: 90;
}


/* =============================================
   2. GLASSMORPHISM CARDS
   ============================================= */
.sni-glass {
  background: var(--sni-surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--sni-border-glass);
}

.sni-glass-card {
  background: var(--sni-surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--sni-border-light);
  border-radius: var(--sni-radius-card);
  box-shadow: var(--sni-shadow-premium);
  transition: all var(--sni-duration-normal) var(--sni-ease);
}

.sni-glass-card:hover {
  box-shadow: var(--sni-shadow-xl);
  transform: translateY(-2px);
}

.sni-glass-dark {
  background: var(--sni-surface-dark-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* =============================================
   3. PREMIUM INPUT STYLES
   ============================================= */
.sni-input {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  background-color: rgba(248, 250, 252, 0.6);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--sni-radius-lg);
  outline: none;
  transition: all var(--sni-duration-normal) var(--sni-ease);
  -webkit-appearance: none;
}

.sni-input:focus {
  border-color: var(--sni-indigo-500);
  box-shadow: 0 0 0 4px var(--sni-indigo-50), 0 0 0 2px rgba(99, 102, 241, 0.15);
  background-color: #fff;
}

.sni-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

/* Input with icon (left-padded) */
.sni-input-icon {
  padding-left: 3rem;
}

.sni-input-wrapper {
  position: relative;
}

.sni-input-wrapper .sni-input-icon-left {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.875rem;
  pointer-events: none;
  transition: color var(--sni-duration-fast) var(--sni-ease);
  z-index: 1;
}

.sni-input-wrapper:focus-within .sni-input-icon-left {
  color: var(--sni-indigo-600);
}

/* Password toggle button */
.sni-password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.875rem;
  transition: color var(--sni-duration-fast) var(--sni-ease);
  z-index: 1;
}

.sni-password-toggle:hover {
  color: var(--sni-indigo-600);
}


/* =============================================
   4. PREMIUM BUTTONS
   ============================================= */
.sni-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: var(--sni-radius-lg);
  border: none;
  cursor: pointer;
  outline: none;
  transition: all var(--sni-duration-normal) var(--sni-ease);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  white-space: nowrap;
}

.sni-btn:active {
  transform: scale(0.97);
}

/* Primary */
.sni-btn-primary {
  background: linear-gradient(135deg, var(--sni-indigo-600), var(--sni-indigo-700));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3), 0 1px 3px rgba(79, 70, 229, 0.2);
}

.sni-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35), 0 2px 6px rgba(79, 70, 229, 0.2);
}

.sni-btn-primary:active {
  transform: translateY(0) scale(0.97);
}

/* Outline */
.sni-btn-outline {
  background: transparent;
  color: var(--sni-indigo-600);
  border: 2px solid var(--sni-indigo-200);
}

.sni-btn-outline:hover {
  background: var(--sni-indigo-50);
  border-color: var(--sni-indigo-300);
  transform: translateY(-1px);
}

/* Ghost */
.sni-btn-ghost {
  background: transparent;
  color: #64748b;
}

.sni-btn-ghost:hover {
  background: #f1f5f9;
  color: var(--sni-indigo-600);
}

/* Danger */
.sni-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.sni-btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Full width */
.sni-btn-block {
  width: 100%;
}

/* Loading state */
.sni-btn-loading {
  pointer-events: none;
  opacity: 0.75;
}

.sni-btn-loading .sni-btn-spinner {
  animation: sni-spin 0.8s linear infinite;
}

/* Small */
.sni-btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}


/* =============================================
   5. SKELETON LOADERS
   ============================================= */
.sni-skeleton {
  background: linear-gradient(
    90deg,
    #f1f5f9 25%,
    #e2e8f0 50%,
    #f1f5f9 75%
  );
  background-size: 200% 100%;
  animation: sni-shimmer 1.8s ease-in-out infinite;
  border-radius: var(--sni-radius-sm);
}

.sni-skeleton-text {
  height: 0.875rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.sni-skeleton-text:last-child {
  width: 60%;
}

.sni-skeleton-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

.sni-skeleton-card {
  height: 120px;
  width: 100%;
  border-radius: var(--sni-radius-xl);
}

.sni-skeleton-badge {
  height: 1.5rem;
  width: 5rem;
  border-radius: 9999px;
}


/* =============================================
   6. TOAST NOTIFICATION STYLES
   ============================================= */
.sni-toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: var(--sni-z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 2rem);
}

@media (max-width: 640px) {
  .sni-toast-container {
    top: auto;
    bottom: 5rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
    width: auto;
    align-items: stretch;
  }
}

.sni-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--sni-radius-lg);
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--sni-shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.02);
  animation: sni-toast-in var(--sni-duration-slow) var(--sni-ease-spring) forwards;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.sni-toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.2;
  animation: sni-toast-progress 4s linear forwards;
}

.sni-toast-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: var(--sni-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.sni-toast-body {
  flex: 1;
  min-width: 0;
}

.sni-toast-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.125rem;
}

.sni-toast-message {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
}

.sni-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.75rem;
  transition: color var(--sni-duration-fast) var(--sni-ease);
}

.sni-toast-close:hover {
  color: #475569;
}

/* Toast Variants */
.sni-toast-success { border-left: 4px solid var(--sni-success); color: var(--sni-success); }
.sni-toast-success .sni-toast-icon { background: #ecfdf5; color: var(--sni-success); }

.sni-toast-error { border-left: 4px solid var(--sni-danger); color: var(--sni-danger); }
.sni-toast-error .sni-toast-icon { background: #fef2f2; color: var(--sni-danger); }

.sni-toast-info { border-left: 4px solid var(--sni-info); color: var(--sni-info); }
.sni-toast-info .sni-toast-icon { background: #eff6ff; color: var(--sni-info); }

.sni-toast-warning { border-left: 4px solid var(--sni-warning); color: var(--sni-warning); }
.sni-toast-warning .sni-toast-icon { background: #fffbeb; color: var(--sni-warning); }

/* Toast exit animation */
.sni-toast-out {
  animation: sni-toast-out var(--sni-duration-normal) var(--sni-ease) forwards;
}


/* =============================================
   7. PREMIUM STATUS BADGES
   ============================================= */
.sni-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  white-space: nowrap;
}

.sni-badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.sni-badge-success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.sni-badge-success .sni-badge-dot { background: #10b981; animation: sni-pulse-dot 2s ease-in-out infinite; }

.sni-badge-warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.sni-badge-warning .sni-badge-dot { background: #f59e0b; animation: sni-pulse-dot 2s ease-in-out infinite; }

.sni-badge-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.15);
}
.sni-badge-danger .sni-badge-dot { background: #ef4444; animation: sni-pulse-dot 2s ease-in-out infinite; }

.sni-badge-info {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.15);
}
.sni-badge-info .sni-badge-dot { background: #3b82f6; }

.sni-badge-neutral {
  background: #f8fafc;
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.12);
}


/* =============================================
   8. SPOTLIGHT CARD EFFECT (Cursor Glow)
   ============================================= */
.sni-spotlight {
  position: relative;
  overflow: hidden;
}

.sni-spotlight::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.08) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--sni-duration-normal) var(--sni-ease);
  z-index: 0;
}

.sni-spotlight:hover::before {
  opacity: 1;
}


/* =============================================
   9. PREMIUM TABLE STYLES
   ============================================= */
.sni-table-container {
  overflow-x: auto;
  border-radius: var(--sni-radius-xl);
  border: 1px solid var(--sni-border-light);
  background: #fff;
  box-shadow: var(--sni-shadow-sm);
}

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

.sni-table thead {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sni-table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 900;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.sni-table td {
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.sni-table tbody tr {
  transition: background var(--sni-duration-fast) var(--sni-ease);
}

.sni-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.02);
}

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


/* =============================================
   10. PREMIUM EMPTY STATE
   ============================================= */
.sni-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.sni-empty-state-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--sni-radius-xl);
  background: linear-gradient(135deg, var(--sni-indigo-50), #f5f3ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--sni-indigo-400);
  font-size: 1.5rem;
}

.sni-empty-state-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.sni-empty-state-desc {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  max-width: 280px;
  line-height: 1.6;
}


/* =============================================
   11. ANIMATIONS & KEYFRAMES
   ============================================= */

/* Shimmer / Skeleton */
@keyframes sni-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Spin */
@keyframes sni-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Float */
@keyframes sni-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Gradient shift */
@keyframes sni-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Glow pulse */
@keyframes sni-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(79, 70, 229, 0.1); }
  50% { box-shadow: 0 0 35px rgba(79, 70, 229, 0.25); }
}

/* Slide up entrance */
@keyframes sni-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale in */
@keyframes sni-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Toast enter */
@keyframes sni-toast-in {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Toast exit */
@keyframes sni-toast-out {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
}

/* Toast progress bar countdown */
@keyframes sni-toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Badge dot pulse */
@keyframes sni-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* Counter number animation trigger */
@keyframes sni-count-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ripple tap effect */
@keyframes sni-ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Shake */
@keyframes sni-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Gradient border animation */
@keyframes sni-border-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* =============================================
   12. ANIMATION UTILITY CLASSES
   ============================================= */
.sni-animate-float { animation: sni-float 4s ease-in-out infinite; }
.sni-animate-gradient { background-size: 300% 300%; animation: sni-gradient-shift 6s ease infinite; }
.sni-animate-glow { animation: sni-glow-pulse 3s ease-in-out infinite; }
.sni-animate-slide-up { animation: sni-slide-up 0.6s var(--sni-ease-spring) forwards; }
.sni-animate-scale-in { animation: sni-scale-in 0.4s var(--sni-ease-spring) forwards; }
.sni-animate-shake:hover { animation: sni-shake 0.4s ease-in-out; }


/* =============================================
   13. CUSTOM SCROLLBAR
   ============================================= */
.sni-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.sni-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.sni-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
}

.sni-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* Hide scrollbar */
.sni-scrollbar-hide::-webkit-scrollbar { display: none; }
.sni-scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }


/* =============================================
   14. AUTH PAGE SPECIFIC STYLES
   ============================================= */
.sni-auth-bg {
  position: fixed;
  inset: 0;
  background: var(--sni-surface-dark);
  overflow: hidden;
}

.sni-auth-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(79, 70, 229, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.sni-auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 40%, transparent 75%);
}

.sni-auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: sni-float 8s ease-in-out infinite;
}

.sni-auth-orb-1 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, var(--sni-indigo-600), var(--sni-purple-600));
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.sni-auth-orb-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--sni-purple-500), #ec4899);
  bottom: 15%;
  right: 20%;
  animation-delay: 2s;
}

.sni-auth-orb-3 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #06b6d4, var(--sni-indigo-500));
  top: 50%;
  right: 35%;
  animation-delay: 4s;
}

.sni-auth-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--sni-radius-card);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
}

@media (max-width: 640px) {
  .sni-auth-card {
    margin: 1rem;
    padding: 2rem 1.5rem;
    border-radius: var(--sni-radius-xl);
  }
}

.sni-auth-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--sni-radius-md);
  margin-bottom: 1.5rem;
  animation: sni-slide-up 0.3s var(--sni-ease-spring) forwards;
}

.sni-auth-error-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 0.75rem;
}

.sni-auth-error-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #b91c1c;
  line-height: 1.4;
}

.sni-auth-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--sni-radius-md);
  margin-bottom: 1.5rem;
  animation: sni-slide-up 0.3s var(--sni-ease-spring) forwards;
}

.sni-auth-success-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sni-success);
  font-size: 0.75rem;
}

.sni-auth-success-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #065f46;
  line-height: 1.4;
}


/* =============================================
   15. DIVIDER
   ============================================= */
.sni-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.sni-divider::before,
.sni-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.sni-divider span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* =============================================
   16. RESPONSIVE UTILITIES
   ============================================= */
/* =============================================
   MOBILE-FIRST RESPONSIVE SYSTEM
   ============================================= */

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Mobile Base (< 640px) */
@media (max-width: 639px) {
  /* Cards & Containers */
  .sni-mobile-card {
    border-radius: var(--sni-radius-lg) !important;
    padding: 1rem !important;
    box-shadow: var(--sni-shadow-md);
  }

  .sni-mobile-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Typography */
  .sni-mobile-text-sm {
    font-size: 0.75rem !important;
    line-height: 1.25rem !important;
  }

  .sni-mobile-heading {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
    letter-spacing: -0.025em;
  }

  /* Touch Targets - Minimum 44x44px */
  .sni-touch-target {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Buttons */
  button, .button, a.button {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--sni-radius-md);
  }

  /* Forms */
  input, select, textarea {
    min-height: 44px;
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 0.75rem;
    border-radius: var(--sni-radius-md);
  }

  /* Hide desktop-only elements */
  .sni-mobile-hide {
    display: none !important;
  }

  /* Stack elements vertically */
  .sni-mobile-stack {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  /* Full-width mobile buttons */
  .sni-mobile-full {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Improved table responsiveness */
  .sni-mobile-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--sni-radius-lg);
    box-shadow: var(--sni-shadow-sm);
  }

  .sni-mobile-table table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  /* Card-based table on mobile */
  .sni-mobile-table-card tbody tr {
    display: block;
    margin-bottom: 1rem;
    border-radius: var(--sni-radius-md);
    background: white;
    box-shadow: var(--sni-shadow-sm);
    padding: 1rem;
    border: 1px solid var(--sni-border-light);
  }

  .sni-mobile-table-card tbody td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid var(--sni-border-light);
  }

  .sni-mobile-table-card tbody td:last-child {
    border-bottom: none;
  }

  .sni-mobile-table-card tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--sni-indigo-900);
    margin-right: 1rem;
  }

  .sni-mobile-table-card thead {
    display: none;
  }

  /* Toast notifications position */
  .sni-toast-container {
    bottom: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    max-width: none !important;
  }

  /* Modal adjustments */
  .sni-modal-content {
    margin: 1rem !important;
    max-height: calc(100vh - 2rem) !important;
    border-radius: var(--sni-radius-lg) !important;
  }

  /* Improved overflow handling */
  .sni-overflow-safe {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Better spacing for mobile */
  .sni-mobile-spacing {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  /* Professional shadows for depth */
  .sni-mobile-card-elevated {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 
                0 2px 4px rgba(0, 0, 0, 0.04);
  }

  /* Active states for touch feedback */
  button:active, .button:active, a.button:active {
    transform: scale(0.97);
    transition: transform 100ms var(--sni-ease);
  }

  /* Improved text readability */
  body {
    font-size: 0.9375rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Tablet (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .sni-tablet-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .sni-mobile-container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Desktop (≥ 768px) */
@media (min-width: 768px) {
  .sni-desktop-hide {
    display: none !important;
  }

  /* Hover effects for desktop */
  .sni-hover-lift {
    transition: all var(--sni-duration-normal) var(--sni-ease-spring);
  }

  .sni-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--sni-shadow-xl);
  }
}

/* Landscape phones */
@media (max-width: 767px) and (orientation: landscape) {
  .sni-landscape-adjust {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Reduce modal height in landscape */
  .sni-modal-content {
    max-height: calc(100vh - 1rem) !important;
  }
}

/* Fix for specific overflow issues */
@media (max-width: 767px) {
  /* Hero map container fix */
  #hero-map-bg {
    position: absolute !important;
    overflow: hidden;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Carousel/slider fix */
  .slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .slider-container::-webkit-scrollbar {
    display: none;
  }

  /* Prevent text overflow */
  .sni-text-safe {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Image overflow prevention */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* High-DPI screens (Retina displays) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .sni-retina-border {
    border-width: 0.5px;
  }
}


/* =============================================
   17. PRINT STYLES
   ============================================= */
@media print {
  .sni-toast-container,
  .sni-auth-bg,
  .sni-auth-orb {
    display: none !important;
  }
}

/* =============================================
   18. PREMIUM SAAS SPLIT LAYOUT & DARK INPUTS
   ============================================= */
.sni-auth-dark-card {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--sni-radius-card);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4), 
    0 0 100px rgba(99, 102, 241, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color var(--sni-duration-normal) var(--sni-ease);
  position: relative;
  overflow: hidden;
}

.sni-auth-dark-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.12) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--sni-duration-normal) var(--sni-ease);
  z-index: 0;
}

.sni-auth-dark-card:hover::before {
  opacity: 1;
}

.sni-input-dark {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  transition: all var(--sni-duration-normal) var(--sni-ease) !important;
}

.sni-input-dark:focus {
  border-color: var(--sni-indigo-500) !important;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25) !important;
  background: rgba(15, 23, 42, 0.85) !important;
}

.sni-input-dark::placeholder {
  color: #475569 !important;
}

/* Auth grid and particle features */
.sni-auth-feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--sni-radius-lg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.sni-auth-feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Landing surface polish: proportion, hierarchy, and touch safety. */
.landing-surface {
  --landing-navy: #0e2d6c;
  --landing-blue: #307fe2;
  --landing-ink: #0f172a;
  --landing-muted: #64748b;
  background: #f8fafc;
}

.landing-surface main > section:first-child {
  background: var(--landing-navy) !important;
}

.landing-surface main > section:first-child h1 .bg-clip-text {
  background: none !important;
  color: #a9dcff !important;
  -webkit-text-fill-color: #a9dcff !important;
  animation: none !important;
}

.landing-surface main > section:first-child .btn-active-press {
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 0.75rem;
  letter-spacing: 0.01em;
}

.landing-surface .category-icon-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.landing-surface .catalog-thumb {
  min-height: 11.5rem;
  aspect-ratio: 4 / 3;
}

.landing-surface .catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing-surface .catalog-product-action {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  border-radius: 0.75rem;
}

.landing-surface .product-card-premium > div {
  min-height: 100%;
}

.landing-surface .product-card-premium h4 {
  min-height: 2.75rem;
  line-height: 1.35;
}

.landing-surface .trust-badge {
  min-height: 2.75rem;
  padding-inline: 0.875rem;
}

@media (max-width: 639px) {
  .landing-surface main > section:first-child {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
  }

  .landing-surface main > section:first-child h1 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .landing-surface main > section:first-child .btn-active-press {
    width: 100%;
    min-height: 50px;
  }

  .landing-surface .catalog-thumb {
    min-height: 10.5rem;
  }

  .landing-surface .product-card-premium {
    width: min(72vw, 16.5rem);
  }

  .landing-surface .product-card-premium > div {
    padding: 0.875rem;
  }

  .landing-surface .catalog-thumb {
    min-height: 9.5rem;
    margin-bottom: 0.875rem;
  }

  .landing-surface .product-card-premium h4 {
    min-height: 2.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .landing-surface .product-card-premium .catalog-product-action {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  /* Mobile catalog uses a compact two-column grid instead of a clipped carousel. */
  .landing-surface .slider-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem !important;
    overflow: visible !important;
    padding-inline: 0 !important;
    margin-inline: 0 !important;
    scroll-snap-type: none !important;
  }

  .landing-surface .product-card-premium {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .landing-surface .product-card-premium > div {
    min-width: 0;
    padding: 0.75rem;
    border-radius: 1rem;
  }

  .landing-surface .catalog-thumb {
    aspect-ratio: 1 / 0.82;
    min-height: 0;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
  }

  .landing-surface .product-card-premium h4 {
    min-height: 2.35rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    margin-bottom: 0.625rem;
  }

  .landing-surface .product-card-premium .text-lg {
    font-size: 0.9375rem;
  }

  .landing-surface .product-card-premium .catalog-product-action {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border-radius: 0.75rem;
  }

  .landing-surface .category-section > .flex.items-center.justify-between {
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .landing-surface .category-section > .flex.items-center.justify-between > .flex:first-child {
    min-width: 0;
  }

  .landing-surface .category-section > .flex.items-center.justify-between h3 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .landing-surface .category-section > .flex.items-center.justify-between > .flex:last-child {
    flex-shrink: 0;
  }

  .landing-surface .category-section > .flex.items-center.justify-between > .flex:last-child button {
    display: none;
  }
}

@media (max-width: 767px) {
  /* Landing page mobile density: preserve hierarchy without oversized voids. */
  .landing-surface main > section:first-child {
    padding-top: 2.75rem !important;
    padding-bottom: 3rem !important;
  }

  .landing-surface main > section:first-child .max-w-7xl {
    margin-bottom: 0 !important;
  }

  .landing-surface main > section:first-child .grid {
    gap: 1rem !important;
  }

  .landing-surface main > section:first-child + .bg-white.py-4 {
    padding-block: 0.75rem !important;
  }

  .landing-surface main > section:first-child + .bg-white.py-4 + div.bg-white {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .landing-surface #services-section,
  .landing-surface #faq,
  .landing-surface #admin-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .landing-surface #services-section > .max-w-7xl > .flex:first-child {
    margin-bottom: 1.5rem !important;
  }

  .landing-surface #catalog-sections {
    gap: 2.75rem !important;
  }

  .landing-surface #faq .space-y-4 {
    gap: 0.75rem !important;
  }

  .landing-surface footer {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-surface *,
  .landing-surface *::before,
  .landing-surface *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Contrast guardrails for dark promotional surfaces. */
.landing-surface #admin-section .text-slate-400 {
  color: #cbd5e1 !important;
}

.landing-surface #admin-section .text-slate-500 {
  color: #94a3b8 !important;
}

.landing-surface #admin-section .text-indigo-400 {
  color: #a5b4fc !important;
}

.landing-surface #admin-section .text-emerald-400 {
  color: #6ee7b7 !important;
}

