/* ============================================================================
   KITS STORE PAGE STYLES
   styles-store-kits.css
   Unified CSS for both Hebrew (RTL) and English (LTR) versions
   Matches unified store card styling
   ============================================================================ */

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */
:root {
  --kits-primary: #3b82f6;
  --kits-secondary: #2563eb;
  --kits-accent: #1d4ed8;
  --kits-light: #eff6ff;
  --kits-bg: #F8FAFC;

  /* Product type colors - matching unified store */
  --type-kit-bg: rgba(255, 237, 213, 0.6);
  --type-kit-border: #f59e0b;
  --type-kit-tag: #d97706;
}

body {
  background-color: var(--kits-bg);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.kits-hero {
  background: linear-gradient(135deg, var(--kits-primary) 0%, var(--kits-secondary) 100%);
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-radius: 0 0 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.kits-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(25deg);
}

/* LTR: decorative element on right */
.kits-hero::before {
  right: -10%;
}

/* RTL: decorative element on left */
[dir="rtl"] .kits-hero::before {
  right: auto;
  left: -10%;
}

/* Hero Decorations (Character Images) */
.hero-decoration {
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0.9;
  z-index: 1;
}

.hero-decoration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-decoration.left {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.hero-decoration.right {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Hero Content */
.kits-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

.kits-hero h1 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kits-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Hero Badges Container */
.hero-badges-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Kits Count Badge */
.kits-count-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: 52px;
}

.count-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--kits-primary);
  line-height: 1;
}

.count-label {
  font-size: 0.95rem;
  color: #475569;
  font-weight: 500;
  line-height: 1;
}

/* Pages Link Badge */
.pages-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
  text-decoration: none;
  transition: all 0.3s ease;
  height: 52px;
  position: relative;
  overflow: hidden;
}

.pages-link-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.pages-link-badge:hover::before {
  left: 100%;
}

.pages-link-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
  text-decoration: none;
}

.pages-link-label {
  font-size: 0.95rem;
  color: white;
  font-weight: 500;
  white-space: nowrap;
}

.pages-link-badge svg {
  color: white;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

/* LTR arrow animation */
.pages-link-badge:hover svg {
  transform: translate(3px, -3px);
}

/* RTL arrow animation */
[dir="rtl"] .pages-link-badge:hover svg {
  transform: translate(-3px, -3px);
}

/* Kit Builder Link Badge */
.kit-builder-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FF7F50 0%, #F97316 50%, #EA580C 100%);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  text-decoration: none;
  transition: all 0.3s ease;
  height: 52px;
  position: relative;
  overflow: hidden;
  animation: builderPulseGlow 3s ease-in-out infinite;
}

.kit-builder-link-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.kit-builder-link-badge:hover::before {
  left: 100%;
}

.kit-builder-link-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
  text-decoration: none;
}

.kit-builder-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.kit-builder-link-label {
  font-size: 0.95rem;
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

.kit-builder-link-badge svg {
  color: white;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.kit-builder-link-badge:hover svg {
  transform: rotate(90deg);
}

@keyframes builderPulseGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35); }
  50% { box-shadow: 0 4px 20px rgba(249, 115, 22, 0.55); }
}

/* ============================================================================
   MAIN CONTAINER
   ============================================================================ */
.kits-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

/* ============================================================================
   STATS BAR (Clickable Type Filters) - Matching Unified Store
   ============================================================================ */
.kits-stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.kits-stat-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 2px solid #e5e7eb;
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
}

.kits-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--kits-primary);
}

.kits-stat-card:focus {
  outline: none;
  border-color: var(--kits-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.kits-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e40af;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.kits-stat-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.kits-stat-card.active {
  background: linear-gradient(135deg, var(--kits-primary) 0%, var(--kits-secondary) 100%);
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.kits-stat-card.active .kits-stat-value,
.kits-stat-card.active .kits-stat-label {
  color: white;
}

/* ============================================================================
   FILTER SECTION - Matching Unified Store
   ============================================================================ */
.kits-filter {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}

.filter-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-row-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.filter-row-secondary {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.filter-chip {
  padding: 0.4rem 1rem;
  border: 2px solid transparent;
  border-radius: 20px;
  background: white;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter-chip.active {
  background: #6366f1;
  border-color: #4f46e5;
  color: white;
}

.filter-divider {
  width: 1px;
  height: 30px;
  background: #e2e8f0;
  margin: 0 0.5rem;
}

/* Grade Filter Dropdown */
.grade-filter-container {
  position: relative;
}

.grade-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.grade-filter-wrapper select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  background: white;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* RTL: dropdown arrow on left */
[dir="rtl"] .grade-filter-wrapper select {
  padding: 0.5rem 1rem 0.5rem 2rem;
  background-position: left 0.75rem center;
}

.grade-filter-wrapper select:focus {
  outline: none;
  border-color: var(--kits-primary);
}

.grade-filter-wrapper select.has-filter {
  background-color: #ede9fe;
  border-color: #8b5cf6;
  color: #6d28d9;
}

.grade-clear-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.grade-filter-wrapper select.has-filter + .grade-clear-btn {
  display: flex;
}

.grade-clear-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Sort Dropdown */
.sort-filter-wrapper select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  background: white;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

[dir="rtl"] .sort-filter-wrapper select {
  padding: 0.5rem 1rem 0.5rem 2rem;
  background-position: left 0.75rem center;
}

.sort-filter-wrapper select:focus {
  outline: none;
  border-color: var(--kits-primary);
}

/* Search Box */
.search-box {
  position: relative;
}

/* LTR: search box margin pushes to right */
.filter-row-secondary .search-box {
  margin-left: auto;
}

/* RTL: search box margin pushes to left */
[dir="rtl"] .filter-row-secondary .search-box {
  margin-left: 0;
  margin-right: auto;
}

.search-box input {
  width: 300px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

/* RTL: search input padding */
[dir="rtl"] .search-box input {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--kits-primary);
}

.search-box svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

/* RTL: search icon position */
[dir="rtl"] .search-box svg {
  left: auto;
  right: 0.75rem;
}

.search-clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  background: #e2e8f0;
  color: #64748b;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

[dir="rtl"] .search-clear-btn {
  right: auto;
  left: 0.5rem;
}

.search-clear-btn.visible {
  display: flex;
}

.search-clear-btn:hover {
  background: #cbd5e1;
}

/* ============================================================================
   KITS GRID - Matching Unified Store
   ============================================================================ */
.kits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================================================
   KIT CARD - Matching Unified Store Product Card
   ============================================================================ */
.kit-card {
  background: var(--type-kit-bg);
  border: 3px solid var(--type-kit-border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

/* LTR text alignment */
.kit-card {
  text-align: left;
}

/* RTL text alignment */
[dir="rtl"] .kit-card {
  text-align: right;
}

.kit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Type Badge - Top Left (LTR) / Top Right (RTL) */
.kit-type-badge {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.9rem;
  background: var(--type-kit-tag);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* LTR: type badge on left */
.kit-type-badge {
  left: 1rem;
}

/* RTL: type badge on right */
[dir="rtl"] .kit-type-badge {
  left: auto;
  right: 1rem;
}

/* Popular Badge - Top Right (LTR) / Top Left (RTL) */
.kit-popular-badge {
  position: absolute;
  top: 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 2;
}

/* LTR: popular badge on right */
.kit-popular-badge {
  right: 1rem;
}

/* RTL: popular badge on left */
[dir="rtl"] .kit-popular-badge {
  right: auto;
  left: 1rem;
}

.kit-popular-badge.super {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

/* Owned Badge - Centered on top border */
.kit-owned-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4);
  z-index: 10;
  white-space: nowrap;
}

.kit-owned-badge svg {
  width: 16px;
  height: 16px;
}

/* Grade Range Bar - Matching Unified Store */
.kit-grade-range-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.kit-grade-range-bar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Card Title */
.kit-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Title needs top margin when no grade badge */
.kit-card-title.no-grade {
  margin-top: 2rem;
}

/* When card is owned, add a bit more top margin for the border badge */
.kit-card.is-owned .kit-card-title.no-grade {
  margin-top: 2rem;
}

.kit-card.is-owned .kit-grade-range-bar {
  margin-top: 2rem;
}

/* Card Description */
.kit-card-desc {
  color: #4a4a4a;
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex: 1;
  min-height: 5.5rem;
}

/* Card Stats - 3 columns matching unified store */
.kit-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.kit-card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #333;
  font-weight: 500;
  background: rgba(255,255,255,0.7);
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.kit-card-stat-icon {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}

.kit-card-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.kit-card-stat-label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
}

/* Price Section - Matching Unified Store */
.kit-price-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 2px solid rgba(0, 0, 0, 0.08);
  gap: 0.75rem;
}

.price-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.kit-current-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
}

.kit-original-price {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.kit-sale-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.kit-free-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.kit-coming-soon-badge {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* View Button - Kit themed */
.kit-view-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(135deg, var(--type-kit-tag) 0%, #b45309 100%);
  color: white;
}

.kit-view-btn.owned {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.kit-view-btn.coming-soon {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
}

.kit-view-btn:hover:not(.coming-soon) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  color: white;
  text-decoration: none;
}

/* ============================================================================
   LOADING & EMPTY STATES
   ============================================================================ */
.kits-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--kits-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.kits-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
}

.kits-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.kits-empty h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.kits-empty p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.reset-filters-btn {
  padding: 0.625rem 1.5rem;
  background: var(--kits-primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.reset-filters-btn:hover {
  background: var(--kits-secondary);
  transform: translateY(-2px);
}

/* ============================================================================
   SKELETON LOADING
   ============================================================================ */
.kit-skeleton {
  background: white;
  border: 2px solid #e5e7eb;
  animation: pulse 1.5s ease-in-out infinite;
}

.kit-skeleton::before {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================================
   RESTRICTED PAGE MODAL STYLES
   ============================================================================ */
.restricted-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.restricted-modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.highlighted-kit {
  border-color: #667eea !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulseHighlight {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3); }
  100% { transform: scale(1); }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1200px) {
  .kits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .kits-hero h1 {
    font-size: 1.75rem;
  }

  .kits-hero p {
    font-size: 1rem;
  }

  .hero-decoration {
    width: 80px;
    height: 80px;
  }

  .hero-decoration.left {
    left: 1rem;
  }

  .hero-decoration.right {
    right: 1rem;
  }

  .hero-badges-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .kits-count-badge-inline,
  .pages-link-badge,
  .kit-builder-link-badge {
    width: auto;
    min-width: 240px;
    justify-content: center;
    height: auto;
    padding: 0.625rem 1.25rem;
  }

  .kits-stats-bar {
    max-width: 100%;
  }

  .filter-row-main,
  .filter-row-secondary {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .filter-divider {
    display: none;
  }

  .filter-row-secondary .search-box {
    margin-left: 0;
    margin-right: 0;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .kits-grid {
    grid-template-columns: 1fr;
  }

  .kit-price-section {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .kit-view-btn {
    text-align: center;
    width: 100%;
  }
}

/* Coming Soon Section */
.coming-soon-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

[dir="rtl"] .coming-soon-section {
  align-items: flex-end;
}

.coming-date {
  font-size: 0.75rem;
  color: #64748b;
}

/* Sale Price Group */
.kit-sale-price-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}