.stores-page {
  background-color: #0a0e27;
}

.stores-hero {
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.5) 0%, #0f172a 50%, rgba(6, 182, 212, 0.15) 100%);
  padding: 1.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.stores-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.stores-hero .ai-breadcrumb {
  margin-bottom: 1rem;
}
.stores-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}
.stores-hero .breadcrumb .breadcrumb-item {
  font-size: 0.8rem;
}
.stores-hero .breadcrumb .breadcrumb-item a {
  color: #94a3b8;
  text-decoration: none;
}
.stores-hero .breadcrumb .breadcrumb-item a:hover {
  color: #22d3ee;
}
.stores-hero .breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.4);
}
.stores-hero .breadcrumb .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.25);
}
.stores-hero__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stores-hero__text h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.stores-hero__text h1 i {
  margin-right: 0.5rem;
  color: #22d3ee;
}
.stores-hero__desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin: 0;
}
.stores-hero__stats {
  display: flex;
  gap: 0.75rem;
}

.stat-pill {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-pill__num {
  font-size: 1.35rem;
  font-weight: 700;
  color: #22d3ee;
  line-height: 1;
}
.stat-pill__label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.stores-search {
  margin-top: -1rem;
  position: relative;
  z-index: 2;
  padding-bottom: 0.5rem;
}
.stores-search__card {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}
.stores-search__fields {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.stores-search__field {
  flex: 0 0 150px;
}
.stores-search__field--wide {
  flex: 1;
  min-width: 0;
}
.stores-search__field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}
.stores-search__field label i {
  color: #06b6d4;
  margin-right: 0.2rem;
  font-size: 0.7rem;
}
.stores-search__field .form-control {
  width: 100%;
  background: #334155;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: #f1f5f9;
  transition: all 0.25s ease;
}
.stores-search__field .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}
.stores-search__field .form-control option {
  background: #1e293b;
  color: #f1f5f9;
}
.stores-search__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.stores-search .btn-search {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  padding: 0.55rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.stores-search .btn-search:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}
.stores-search .btn-clear {
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.stores-search .btn-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.15);
}

.stores-body {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.stores-chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.5rem 0 0.75rem;
  margin-bottom: 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent 100%);
}
.stores-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.chip:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #f1f5f9;
}
.chip--active {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  color: #60a5fa;
  font-weight: 600;
}
.chip--active .chip__count {
  background: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}
.chip__count {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.2;
}

.stores-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  color: #94a3b8;
}
.stores-toolbar__count {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.stores-toolbar__count i {
  color: #06b6d4;
}
.stores-toolbar__count strong {
  color: #f1f5f9;
  font-weight: 600;
}
.stores-toolbar__page {
  font-size: 0.78rem;
}

.stores-table {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.stores-table__head {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: rgba(59, 130, 246, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  gap: 1rem;
}
.stores-table__row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}
.stores-table__row:last-child {
  border-bottom: none;
}
.stores-table__row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.012);
}
.stores-table__row:hover {
  background: rgba(59, 130, 246, 0.05);
}
.stores-table .col-name {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stores-table .col-addr {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 0.82rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stores-table .col-badge {
  flex: 0 0 65px;
  text-align: center;
}
.stores-table .col-action {
  flex: 0 0 90px;
  text-align: right;
}

.store-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.store-icon i {
  color: #60a5fa;
  font-size: 0.85rem;
}

.store-meta {
  min-width: 0;
}
.store-meta__name {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.store-meta__loc {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
}
.store-meta__loc i {
  color: #06b6d4;
  margin-right: 0.15rem;
  font-size: 0.65rem;
}

.jackpot-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
  color: #f59e0b;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.jackpot-tag i {
  font-size: 0.6rem;
}

.btn-nav {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.btn-nav:hover {
  background: rgba(59, 130, 246, 0.18);
  color: #fff;
  border-color: #3b82f6;
}

.pagination-wrapper {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.pagination-wrapper .pagination {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination-wrapper .pagination .page-item.disabled .page-link {
  color: #94a3b8;
  cursor: default;
  opacity: 0.4;
}
.pagination-wrapper .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}
.pagination-wrapper .pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s ease;
}
.pagination-wrapper .pagination .page-link:hover:not(.disabled) {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}
.pagination-wrapper .pagination .page-link.page-prev, .pagination-wrapper .pagination .page-link.page-next {
  padding: 0 0.85rem;
  gap: 0.3rem;
  font-weight: 500;
}

.no-results {
  text-align: center;
  padding: 3.5rem 2rem;
  background: rgba(30, 41, 59, 0.65);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.no-results__icon {
  width: 56px;
  height: 56px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.no-results__icon i {
  font-size: 1.4rem;
  color: #94a3b8;
}
.no-results h3 {
  color: #f1f5f9;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.no-results p {
  color: #94a3b8;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}
.no-results .btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}
.no-results .btn-reset:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.error-message {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fca5a5;
  font-size: 0.9rem;
}
.error-message i {
  font-size: 1.2rem;
}

@media (max-width: 991px) {
  .stores-table__head {
    display: none;
  }
  .stores-table__row {
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    gap: 0.5rem;
  }
  .stores-table__row .col-name {
    flex: 1 1 100%;
  }
  .stores-table__row .col-addr {
    flex: 1 1 100%;
    white-space: normal;
    padding-left: calc(36px + 0.75rem);
    font-size: 0.8rem;
    margin-top: -0.25rem;
  }
  .stores-table__row .col-badge {
    flex: 0 0 auto;
    text-align: left;
  }
  .stores-table__row .col-action {
    flex: 0 0 auto;
    margin-left: auto;
  }
}
@media (max-width: 768px) {
  .stores-hero {
    padding: 1.25rem 0 2rem;
  }
  .stores-hero__text h1 {
    font-size: 1.35rem;
  }
  .stores-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .stores-search__card {
    flex-direction: column;
    gap: 0.75rem;
  }
  .stores-search__fields {
    flex-wrap: wrap;
  }
  .stores-search__field {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 0;
  }
  .stores-search__field--wide {
    flex: 1 1 100%;
  }
  .stores-search__actions {
    width: 100%;
  }
  .stores-search__actions .btn-search {
    flex: 1;
    justify-content: center;
  }
  .stores-search__actions .btn-clear {
    justify-content: center;
  }
}
@media (max-width: 575px) {
  .stores-hero {
    padding: 1rem 0 1.75rem;
  }
  .stores-hero__text h1 {
    font-size: 1.2rem;
  }
  .stores-hero__desc {
    font-size: 0.82rem;
  }
  .stores-hero__stats {
    width: 100%;
  }
  .stat-pill {
    flex: 1;
    justify-content: center;
    padding: 0.4rem 0.75rem;
  }
  .stat-pill__num {
    font-size: 1.15rem;
  }
  .stores-search__field {
    flex: 1 1 100%;
  }
  .stores-search__field .form-control {
    height: 44px;
    font-size: 0.9rem;
  }
  .stores-search__actions .btn-search, .stores-search__actions .btn-clear {
    height: 44px;
    font-size: 0.9rem;
  }
  .stores-chips {
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
  }
  .stores-toolbar {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  .stores-table__row {
    padding: 0.85rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
  }
  .stores-table__row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #3b82f6, #06b6d4);
    opacity: 0;
    transition: opacity 0.2s;
  }
  .stores-table__row:hover::before {
    opacity: 1;
  }
  .stores-table__row .col-addr {
    padding-left: 0;
  }
  .stores-table__row .col-action {
    flex: 1 1 100%;
  }
  .stores-table__row .col-action .btn-nav {
    width: 100%;
    justify-content: center;
    height: 42px;
    font-size: 0.85rem;
  }
  .store-meta__name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .pagination-wrapper .pagination {
    gap: 0.35rem;
  }
  .pagination-wrapper .pagination .page-link {
    min-width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  .pagination-wrapper .pagination .page-link.page-prev, .pagination-wrapper .pagination .page-link.page-next {
    padding: 0 0.75rem;
  }
}