/*
 * Система Бронникова - Design System
 * Aesthetic: Spiritual Minimalism meets Modern Technology
 * Core Principle: Depth through light, clarity through intention
 */

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Indigo/Amethyst/Gold Palette - Spiritual Tech */
  --primary: #4F46E5;        /* Indigo - Primary brand color */
  --primary-light: #6366F1;
  --primary-dark: #4338CA;

  --secondary: #9333EA;      /* Amethyst - Secondary mystical tone */
  --secondary-light: #A855F7;
  --secondary-dark: #7E22CE;

  --accent: #F59E0B;         /* Gold - Accent for highlights */
  --accent-light: #FCD34D;
  --accent-dark: #D97706;

  /* Neutrals - Clean, subtle grays */
  --gray-25: #fcfcfc;
  --gray-50: #f7f7f5;
  --gray-100: #ededec;
  --gray-200: #e3e2e0;
  --gray-300: #c7c5c3;
  --gray-400: #9b9a97;
  --gray-500: #6c6b68;
  --gray-600: #4a4948;
  --gray-700: #37373d;
  --gray-800: #2e2e34;
  --gray-900: #1f1f1f;

  /* Semantic Colors */
  --color-success: #0f9d58;
  --color-error: #dc4c3e;
  --color-warning: #f2994a;
  --color-info: var(--primary);

  /* Typography */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;

  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */

  /* Border Radius - Subtle, small */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Shadows - Minimal, subtle */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.03);

  /* Transitions */
  --transition-fast: 100ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-800);
  background: #ffffff;
  overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
  margin: 0;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 700;
}

h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin: 0;
  color: var(--gray-700);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ==================== LAYOUT UTILITIES ==================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.container-narrow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: 0.8125rem;
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: 0.9375rem;
}

/* Button Variants */
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-800);
  border-color: var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--gray-100);
}

/* ==================== CARDS ==================== */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: var(--space-4);
}

.card-body {
  padding: var(--space-4) 0;
}

.card-footer {
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-100);
  margin-top: var(--space-4);
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: 0.9375rem;
  color: var(--gray-900);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==================== BADGES ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-primary {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-dark);
}

.badge-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.badge-success {
  background: #d1f4dd;
  color: #0f9d58;
}

.badge-error {
  background: #fde2e1;
  color: #dc4c3e;
}

.badge-warning {
  background: #fff3cd;
  color: #f2994a;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.navbar-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.navbar-link {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.navbar-link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* ==================== FOOTER ==================== */
.footer {
  margin-top: auto;
  padding: var(--space-12) 0 var(--space-8);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* ==================== GRID SYSTEM ==================== */
.grid {
  display: grid;
  gap: var(--space-6);
}

/* Base grid columns */
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Mobile-first responsive grid (min-width approach) */
@media (min-width: 768px) {
  .md\:grid-cols-1 { grid-template-columns: 1fr; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-1 { grid-template-columns: 1fr; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==================== ANIMATIONS ==================== */

/* Fade In Animation - more dramatic */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

/* Stagger delays for sequential animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Shimmer Animation for loading images */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.0) 0%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.0) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Ripple effect (can be applied via Stimulus) */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.ripple-effect:active::after {
  animation: ripple 0.6s ease-out;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--gray-700); }
.text-muted { color: var(--gray-600); }

.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--gray-100); }
.bg-light { background: var(--gray-50); }

.border { border: 1px solid var(--gray-200); }
.border-top { border-top: 1px solid var(--gray-200); }
.border-bottom { border-bottom: 1px solid var(--gray-200); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Spacing utilities */
.m-0 { margin: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--space-6);
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }

  .navbar-content {
    padding: 0 var(--space-4);
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .card {
    padding: var(--space-4);
  }
}

/* ==================== FRONTEND SPECIFIC STYLES ==================== */

/* ==================== PRODUCT CARDS ==================== */

.card-product {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  cursor: pointer;
  transition: all var(--transition-base);
  height: 100%;
  max-width: 380px;  /* Ограничение ширины карточки */
  margin: 0 auto;    /* Центрирование в колонке */
}

.card-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(147, 51, 234, 0.05));
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  font-size: 3.5rem;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(79, 70, 229, 0.08), transparent 70%);
  pointer-events: none;
}

.product-image span {
  position: relative;
  z-index: 1;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.badge-featured {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.25));
  color: #D97706;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive для product cards */
@media (max-width: 768px) {
  .card-product {
    max-width: 100%;
  }

  .product-image {
    aspect-ratio: 4 / 3;
    font-size: 2.5rem;
    padding: var(--space-6);
  }
}

/* Cart specific */
.cart-item {
  transition: all 0.3s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.quantity-control button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-remove:hover {
  color: #DC2626;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-md);
}

/* Checkout specific */
.payment-method:has(input:checked) {
  border-color: var(--primary) !important;
  background: rgba(79, 70, 229, 0.05) !important;
}

.payment-method:hover {
  border-color: var(--primary-light);
  background: rgba(79, 70, 229, 0.02);
}

/* Balance card with gradient */
.balance-card {
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

/* Product card hover */
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Order status badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.badge-paid,
.badge-completed {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
}

.badge-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.badge-refunded {
  background: rgba(147, 51, 234, 0.1);
  color: var(--secondary);
}

/* Button styles */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* Form inputs focus */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Smooth transitions for profile edit form */
[data-profile-edit-target="form"] {
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: top;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Responsive adjustments for cart and checkout */
@media (max-width: 1024px) {
  .cart-item {
    flex-direction: column;
    gap: 1rem;
  }

  .quantity-control {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Stack checkout columns on mobile */
  .checkout-container {
    grid-template-columns: 1fr !important;
  }

  /* Adjust cart layout */
  .cart-item {
    padding: 1rem !important;
  }

  /* Mobile-friendly buttons */
  .btn-primary,
  button {
    width: 100%;
    text-align: center;
  }
}

/* Print styles for orders */
@media print {
  .navbar,
  .sidebar,
  .footer,
  button {
    display: none !important;
  }

  .glass-card,
  .card {
    border: 1px solid #e5e7eb;
    box-shadow: none;
  }
}

/* ==================== ADMIN PANEL SPECIFIC STYLES ==================== */

/* Admin sidebar */
.admin-sidebar a:hover {
  background: var(--gray-50);
}

/* Admin tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-100);
}

.admin-table tbody tr:hover {
  background: var(--gray-50);
}

/* Admin cards */
.admin-stat-card {
  padding: var(--space-6);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.admin-stat-card:hover {
  box-shadow: var(--shadow-md);
}

/* Admin forms */
.admin-form label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--gray-700);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  transition: border-color var(--transition-base);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Admin filters */
.admin-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  padding: var(--space-6);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

/* Interaction types icons */
.interaction-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
}

.interaction-call {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.interaction-meeting {
  background: rgba(147, 51, 234, 0.1);
  color: var(--secondary);
}

.interaction-email {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
}

.interaction-chat {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.interaction-note {
  background: rgba(148, 163, 184, 0.1);
  color: #64748B;
}

/* Classification badges */
.classification-admin,
.classification-manager,
.classification-curator {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.classification-center-director {
  background: rgba(147, 51, 234, 0.1);
  color: var(--secondary);
}

.classification-specialist,
.classification-expert {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.classification-instructor {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
}

.classification-client,
.classification-club-member {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.classification-guest {
  background: rgba(148, 163, 184, 0.1);
  color: #64748B;
}

/* Admin buttons */
.btn-admin-primary {
  padding: var(--space-3) var(--space-5);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-admin-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-admin-secondary {
  padding: var(--space-3) var(--space-5);
  background: var(--gray-100);
  color: var(--gray-700);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-admin-secondary:hover {
  background: var(--gray-200);
}

/* Responsive admin */
@media (max-width: 768px) {
  .admin-filters {
    grid-template-columns: 1fr;
  }

  .admin-table {
    font-size: 0.875rem;
  }

  .admin-table th,
  .admin-table td {
    padding: var(--space-2);
  }
}

/* ==================== FOOTER RESPONSIVE ==================== */

/* Footer responsive */
@media (max-width: 1024px) {
  footer .grid {
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  footer .grid {
    gap: var(--space-8);
    text-align: left;
  }

  footer .grid > div {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  }

  footer .grid > div:last-child {
    border-bottom: none;
  }
}

/* ==================== SPIRITUAL MINIMALISM AESTHETICS ==================== */

/* Noise Texture Overlay - subtle grain for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' /%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* Gradient Mesh Background - mystical ambiance */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(5%, 5%) rotate(5deg);
  }
  66% {
    transform: translate(-5%, 5%) rotate(-5deg);
  }
}

/* Dramatic Card Shadows - using Indigo/Amethyst */
.glass-card,
.card-product,
.admin-stat-card {
  box-shadow:
    0 20px 40px rgba(79, 70, 229, 0.08),
    0 10px 20px rgba(147, 51, 234, 0.06);
}

.glass-card:hover,
.card-product:hover,
.admin-stat-card:hover {
  box-shadow:
    0 30px 60px rgba(79, 70, 229, 0.12),
    0 15px 30px rgba(147, 51, 234, 0.08);
}

/* Gold accent for featured items */
.badge-featured,
.featured-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.25));
  color: var(--accent-dark);
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
