@charset "UTF-8";
/**
 * 539win.com - 主樣式檔案
 * 優化版本：變數統一、選擇器簡化、效能改進
 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:active, .sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #001f3f;
  margin: 0 0 1rem 0;
  padding: 0.5rem 0;
  border-bottom: 2px solid #0288d1;
}

.breadcrumb-nav {
  margin: 0.5rem 0;
}
.breadcrumb-nav .breadcrumb {
  background: transparent;
  padding: 0.5rem 0;
  margin-bottom: 0;
  font-size: 0.875rem;
}
.breadcrumb-nav .breadcrumb .breadcrumb-item a {
  color: #0288d1;
  text-decoration: none;
}
.breadcrumb-nav .breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-nav .breadcrumb .breadcrumb-item.active {
  color: #777;
}
.breadcrumb-nav .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #777;
}

.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}
.skip-to-main:focus {
  top: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #0288d1;
  outline-offset: 2px;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin-top: 20px;
}

.navbar-custom {
  background: linear-gradient(to right, #001f3f, #003366);
}
.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: #fff;
}
.navbar-custom .nav-link:hover {
  color: #ffeb3b;
}
.navbar-custom .navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
}

.navbar-toggler-icon {
  color: #fff;
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  border: 1px solid #ddd;
  margin: 10px auto;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.card-header {
  background: linear-gradient(to right, #0288d1, #b3e5fc);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-header a {
  color: #fff;
}
.card-header .header-title {
  flex: 1;
  font-size: 1rem;
  margin: 0;
}
.card-header .period {
  font-weight: normal;
  color: #ffeb3b;
}

.content-left > .card-game > .card-body {
  padding: 10px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.content-left > .card-game.BingoBingo > .card-body,
.content-left > .card-game.OREKeno > .card-body {
  height: 180px;
}

.sort-toggle {
  display: flex;
  gap: 2px;
}

.sort-btn {
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}
.sort-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.sort-btn.active {
  background: rgba(255, 255, 255, 0.9);
  color: #0288d1;
  border-color: #fff;
}
.sort-btn.active:hover {
  background: #fff;
}

.sort-icon {
  font-size: 14px;
}

.countdown {
  position: absolute;
  display: block;
  margin-top: 2px;
  color: #d9534f;
  font-size: 1rem;
  bottom: 10px;
  right: 10px;
}

.winning-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  width: 100%;
  min-height: 50px;
}
.winning-numbers span:not(.plus-sign):not(.marksix-ball):not(.pk10) {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 5px;
  border-radius: 50%;
  background-color: #0288d1;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.winning-numbers span:not(.plus-sign):not(.marksix-ball):not(.pk10).red {
  background-color: #d9534f;
}
.winning-numbers .plus-sign {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: 42px !important;
  min-width: 30px;
  margin: 0 10px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #666 !important;
  font-size: 24px !important;
  font-weight: bold !important;
  line-height: 42px !important;
  vertical-align: middle !important;
  transform: translateY(-2px) !important;
}

.ball-hidden {
  opacity: 0;
  transform: scale(0.8) translateZ(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.ball-visible {
  opacity: 1;
  transform: scale(1) translateZ(0);
  will-change: auto;
}

.badge {
  font-size: 0.75rem;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.content-left {
  flex: 2;
  margin-right: 20px;
}

.content-right {
  flex: 1;
  text-align: left;
}

.news-list {
  list-style-type: none;
  padding: 0;
  text-align: left;
}
.news-list li {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}
.news-list li:last-child {
  border-bottom: none;
}

.news-categories button {
  display: inline-block;
  margin-bottom: 10px;
  padding: 10px 20px;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}
.news-categories button.active, .news-categories button:hover {
  background-color: #ffeb3b;
}

.news-content {
  text-align: left;
  padding: 20px;
}
.news-content img,
.news-content > .img-fluid {
  max-width: 200px !important;
}

.news-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}
.news-item .news-title {
  font-size: 1.2rem;
  font-weight: bold;
}
.news-item .news-date {
  font-size: 0.875rem;
  color: #777;
}
.news-item .news-content {
  font-size: 1rem;
  color: #333;
}

.related-news,
.latest-news {
  margin-top: 20px;
}
.related-news h5,
.latest-news h5 {
  font-weight: bold;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.pagination a {
  margin: 0 5px;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
}
.pagination a.active, .pagination a:hover {
  background-color: #ffeb3b;
}
.pagination .active a {
  background-color: #ffeb3b;
  color: #333;
  border-color: #f2cf08;
}

.pagination2 {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
}
.pagination2 li {
  margin: 0 5px;
}
.pagination2 a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.pagination2 a:hover {
  background-color: #ddd;
}
.pagination2 .disabled a {
  color: #999;
  pointer-events: none;
  background-color: #f9f9f9;
}

.number-analysis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.number-box {
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f8f9fa;
  font-weight: bold;
}
.number-box.newest {
  background-color: #ffeb3b;
}
.number-box .number {
  font-size: 1.5rem;
}
.number-box .period {
  font-size: 0.75rem;
  color: #555;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: #495057;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}
.nav-tabs .nav-link {
  border: 1px solid #dee2e6;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.tab-content > .tab-pane {
  display: none;
}
.tab-content > .active {
  display: block;
}

.record {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
  text-align: center;
}
.record:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.record .winning-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
}

.record-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 10px;
}

.ball {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 5px;
  border-radius: 50%;
  background-color: #0288d1;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.ball_red {
  background-color: #d9534f;
}

.card-game.BingoBingo .winning-numbers {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 5px 0;
  min-height: 80px;
}
.card-game.BingoBingo .winning-numbers.loading {
  flex-direction: row !important;
}
.card-game.BingoBingo .winning-numbers:not(:has(.bingo-row)) > span {
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  margin: 5px;
  border-radius: 50%;
  background-color: #0288d1;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  margin: 2px;
}
.card-game.BingoBingo .winning-numbers:not(:has(.bingo-row)) > span.red {
  background-color: #d9534f;
}

.card-game.BingoBingo .bingo-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin: 2px 0;
  width: 100%;
}
.card-game.BingoBingo .bingo-row span {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 5px;
  border-radius: 50%;
  background-color: #0288d1;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  margin: 3px;
}
.card-game.BingoBingo .bingo-row span.red {
  background-color: #d9534f;
}

.card-game.OREKeno .winning-numbers {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 5px 0;
  min-height: 80px;
}
.card-game.OREKeno .winning-numbers.loading {
  flex-direction: row !important;
}
.card-game.OREKeno .winning-numbers:not(:has(.bingo-row)) {
  display: grid !important;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  place-items: center;
  padding: 5px;
}
.card-game.OREKeno .winning-numbers:not(:has(.bingo-row)) > span {
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  margin: 5px;
  border-radius: 50%;
  background-color: #0288d1;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  margin: 2px;
}
.card-game.OREKeno .winning-numbers:not(:has(.bingo-row)) > span.red {
  background-color: #d9534f;
}

.card-game.OREKeno .bingo-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin: 2px 0;
  width: 100%;
}
.card-game.OREKeno .bingo-row span {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 5px;
  border-radius: 50%;
  background-color: #0288d1;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  margin: 3px;
}
.card-game.OREKeno .bingo-row span.red {
  background-color: #d9534f;
}

.winning-numbers span.pk10 {
  display: inline-block !important;
  width: 45px !important;
  height: 45px !important;
  line-height: 45px !important;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border-radius: 4px;
  margin: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.pk10-01 {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.pk10-02 {
  background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
}

.pk10-03 {
  background: linear-gradient(135deg, #696969 0%, #2F4F4F 100%);
}

.pk10-04 {
  background: linear-gradient(135deg, #FF8C00 0%, #FF6347 100%);
}

.pk10-05 {
  background: linear-gradient(135deg, #00CED1 0%, #20B2AA 100%);
}

.pk10-06 {
  background: linear-gradient(135deg, #9370DB 0%, #8A2BE2 100%);
}

.pk10-07 {
  background: linear-gradient(135deg, #D3D3D3 0%, #A9A9A9 100%);
}

.pk10-08 {
  background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
}

.pk10-09 {
  background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
}

.pk10-10 {
  background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
}

.winning-numbers span.car {
  width: 40px;
  height: 40px;
  display: inline-block;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border-radius: 5px;
  margin: 5px;
}

.car01 {
  background-color: #ffcc00;
}

.car02 {
  background-color: #0066ff;
}

.car03 {
  background-color: #4d4d4d;
}

.car04 {
  background-color: #ff8000;
}

.car05 {
  background-color: #00cccc;
}

.car06 {
  background-color: #8000ff;
}

.car07 {
  background-color: #cccccc;
}

.car08 {
  background-color: #800000;
}

.car09 {
  background-color: #ff4d4d;
}

.car10 {
  background-color: #00cc00;
}

.marksix-ball {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin: 0 2px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  color: #fff;
  font-size: 16px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  vertical-align: middle;
  border: 2px solid;
  transform: translateY(-2px);
  transform: translateZ(0);
  will-change: transform, opacity;
}
.marksix-ball.marksix-red {
  background: radial-gradient(circle at 30% 30%, #ff4569 0%, #d32f2f 70%, #b71c1c 100%);
  border-color: #b71c1c;
}
.marksix-ball.marksix-blue {
  background: radial-gradient(circle at 30% 30%, #42a5f5 0%, #1976d2 70%, #0d47a1 100%);
  border-color: #0d47a1;
}
.marksix-ball.marksix-green {
  background: radial-gradient(circle at 30% 30%, #66bb6a 0%, #388e3c 70%, #1b5e20 100%);
  border-color: #1b5e20;
}
.marksix-ball.marksix-special {
  margin-left: 0;
  position: relative;
}
.marksix-ball.marksix-special::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  animation: special-pulse 2s ease-in-out infinite;
}

@keyframes special-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}
footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 0 20px;
  margin-top: 40px;
}
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 30px;
  gap: 20px;
}
footer .footer-links .footer-section {
  flex: 1;
  min-width: 200px;
  text-align: left;
}
footer .footer-links .footer-section h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0288d1;
}
footer .footer-links .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer .footer-links .footer-section ul li {
  margin-bottom: 8px;
}
footer .footer-links .footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
footer .footer-links .footer-section ul li a:hover {
  color: #0288d1;
  text-decoration: none;
}
footer .footer-disclaimer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
}
footer .footer-disclaimer p {
  font-size: 0.85rem;
  color: #95a5a6;
  margin-bottom: 10px;
}
footer .footer-disclaimer p a {
  color: #0288d1;
  text-decoration: none;
}
footer .footer-disclaimer p a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  footer {
    padding: 30px 15px 15px;
  }
  footer .footer-links {
    flex-direction: column;
    gap: 25px;
  }
  footer .footer-links .footer-section {
    text-align: center;
  }
  footer .footer-links .footer-section h3 {
    border-bottom: none;
    padding-bottom: 5px;
  }
  footer .footer-links .footer-section ul li {
    display: inline-block;
    margin: 0 10px 8px;
  }
}

.dream-search-card {
  margin-bottom: 20px;
}
.dream-search-card .card-header {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  font-weight: bold;
}
.dream-search-card .dream-search-form .input-group {
  display: flex;
  gap: 10px;
}
.dream-search-card .dream-search-form .input-group .form-control {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}
.dream-search-card .dream-search-form .input-group .form-control:focus {
  outline: none;
  border-color: #0288d1;
}
.dream-search-card .dream-search-form .input-group .btn {
  padding: 12px 25px;
  white-space: nowrap;
}

.dream-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.category-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.category-tag:hover {
  border-color: #0288d1;
  color: #0288d1;
  transform: translateY(-2px);
}
.category-tag.active {
  background: #0288d1;
  border-color: #0288d1;
  color: #fff;
}

.random-picker-card {
  margin-bottom: 25px;
}
.random-picker-card .card-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  font-weight: bold;
}
.random-picker-card .picker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.random-picker-card .picker-option {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.random-picker-card .picker-option label {
  font-size: 14px;
  font-weight: 500;
  color: #777;
}
.random-picker-card .picker-option .form-control {
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  min-width: 150px;
}
.random-picker-card .picker-option .form-control:focus {
  outline: none;
  border-color: #0288d1;
}
.random-picker-card .btn-success {
  background: linear-gradient(135deg, #28a745 0%, rgb(30.1449275362, 125.8550724638, 52) 100%);
  border: none;
  padding: 12px 30px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.random-picker-card .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.random-result {
  min-height: 80px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  text-align: center;
}
.random-result .result-hint {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 16px;
}
.random-result .generated-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}
.random-result .lucky-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #fff;
  color: #764ba2;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.random-result .lucky-number.animate-in {
  animation: numberPopIn 0.4s ease-out forwards;
  opacity: 0;
  transform: scale(0);
}
.random-result .copy-btn {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #fff;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.random-result .copy-btn:hover {
  background: #fff;
  color: #764ba2;
}

@keyframes numberPopIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  60% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
.dream-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dream-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.dream-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.dream-item .dream-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.dream-item .dream-keyword {
  font-size: 20px;
  font-weight: bold;
  color: #001f3f;
}
.dream-item .dream-category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}
.dream-item .dream-meaning {
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
}
.dream-item .dream-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.dream-item .dream-numbers .label {
  color: #777;
  font-size: 14px;
  font-weight: 500;
}
.dream-item .dream-numbers .lucky-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.dream-item .use-numbers-btn {
  border: 2px solid #0288d1;
  color: #0288d1;
  background: transparent;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dream-item .use-numbers-btn:hover {
  background: #0288d1;
  color: #fff;
}

.no-results {
  text-align: center;
  padding: 50px 20px;
  background: #f8f9fa;
  border-radius: 12px;
}
.no-results p {
  font-size: 18px;
  color: #777;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .dream-search-card .dream-search-form .input-group {
    flex-direction: column;
  }
  .dream-search-card .dream-search-form .input-group .btn {
    width: 100%;
  }
  .random-picker-card .picker-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .random-picker-card .picker-controls .picker-option {
    width: 100%;
  }
  .random-picker-card .picker-controls .picker-option .form-control {
    width: 100%;
  }
  .random-picker-card .picker-controls .btn-success {
    width: 100%;
  }
  .random-result .lucky-number {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  .dream-item {
    padding: 15px;
  }
  .dream-item .dream-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .dream-item .dream-numbers .lucky-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}
@media (max-width: 768px) {
  .content-left {
    flex: 100%;
    margin-right: 0;
  }
  .content-right {
    flex: 100%;
    margin-top: 20px;
  }
  .countdown {
    text-align: right;
    display: block;
    margin-top: 10px;
  }
}
@media (max-width: 576px) {
  .sort-toggle {
    flex-direction: column;
    gap: 4px;
  }
  .sort-btn {
    width: 100%;
    text-align: center;
  }
}
.stores-page {
  background-color: #f8f9fa;
}

.stores-hero {
  background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
  padding: 1.5rem 0 2.5rem;
  margin-bottom: -1.5rem;
}
.stores-hero .hero-content {
  color: #fff;
}
.stores-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}
.stores-hero .breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.stores-hero .breadcrumb .breadcrumb-item a:hover {
  color: #fff;
}
.stores-hero .breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.6);
}
.stores-hero .breadcrumb .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}
.stores-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.stores-hero h1 i {
  margin-right: 0.5rem;
}
.stores-hero .hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
  max-width: 600px;
}
.stores-hero .hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stores-hero .hero-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.stores-hero .hero-stats .stat-item i {
  color: #f7971e;
}
.stores-hero .hero-stats .stat-item .stat-number {
  font-size: 1.25rem;
  font-weight: 700;
}
.stores-hero .hero-stats .stat-item .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.stores-container {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.stores-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
}
@media (max-width: 1199px) {
  .stores-layout {
    grid-template-columns: 1fr;
  }
}

.search-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.25rem;
  border: 1px solid #ddd;
}
.search-card .search-card-header {
  background: #f8f9fa;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  color: #001f3f;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-card .search-card-header i {
  color: #0288d1;
}
.search-card .search-form {
  padding: 1.25rem;
}
.search-card .search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr auto;
  gap: 1rem;
  align-items: end;
}
@media (max-width: 991px) {
  .search-card .search-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 575px) {
  .search-card .search-grid {
    grid-template-columns: 1fr;
  }
}
.search-card .search-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #777;
  margin-bottom: 0.4rem;
}
.search-card .search-field label i {
  color: #0288d1;
  margin-right: 0.25rem;
}
.search-card .search-field .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.search-card .search-field .form-control:focus {
  border-color: #0288d1;
  box-shadow: 0 0 0 2px rgba(2, 136, 209, 0.15);
  outline: none;
}
.search-card .search-actions {
  display: flex;
  gap: 0.5rem;
}
@media (max-width: 575px) {
  .search-card .search-actions {
    flex-direction: column;
  }
}
.search-card .btn-search {
  background: #0288d1;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.search-card .btn-search:hover {
  background: rgb(1.6132701422, 109.7023696682, 168.5867298578);
}
.search-card .btn-clear {
  background: #fff;
  color: #777;
  border: 1px solid #ddd;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}
.search-card .btn-clear:hover {
  background: #f8f9fa;
  color: #333;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.results-header .results-info {
  font-size: 0.9rem;
  color: #777;
}
.results-header .results-info i {
  color: #0288d1;
  margin-right: 0.25rem;
}
.results-header .results-info strong {
  color: #001f3f;
}
.results-header .results-info .filter-tag {
  background: #b3e5fc;
  padding: 0.4rem 0.75rem;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.results-header .results-page {
  font-size: 0.85rem;
  color: #777;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
@media (max-width: 575px) {
  .stores-grid {
    grid-template-columns: 1fr;
  }
}

.store-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}
.store-card:hover, .store-card.hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-color: #b3e5fc;
}
.store-card .store-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
}
.store-card .store-card-header .store-icon {
  width: 40px;
  height: 40px;
  background: #0288d1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.store-card .store-card-header .store-icon i {
  color: #fff;
  font-size: 1rem;
}
.store-card .store-card-header .store-title {
  flex: 1;
  min-width: 0;
}
.store-card .store-card-header .store-title h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-card .store-card-header .store-title .store-location {
  font-size: 0.8rem;
  color: #777;
}
.store-card .store-card-header .store-title .store-location i {
  color: #0288d1;
  margin-right: 0.2rem;
}
.store-card .store-card-header .jackpot-badge {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.store-card .store-card-header .jackpot-badge i {
  font-size: 0.7rem;
}
.store-card .store-card-body {
  padding: 1rem;
}
.store-card .store-card-body .store-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #333;
  font-size: 0.875rem;
  line-height: 1.5;
}
.store-card .store-card-body .store-address i {
  color: #0288d1;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.store-card .store-card-footer {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-top: 1px solid #ddd;
}
.store-card .store-card-footer .btn-navigate {
  width: 100%;
  background: #0288d1;
  color: #fff;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.store-card .store-card-footer .btn-navigate:hover {
  background: rgb(1.6132701422, 109.7023696682, 168.5867298578);
}

.pagination-wrapper {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.pagination-wrapper .pagination {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination-wrapper .pagination .page-item.disabled .page-link {
  color: #ccc;
  cursor: default;
}
.pagination-wrapper .pagination .page-item.active .page-link {
  background: #0288d1;
  color: #fff;
  border-color: #0288d1;
}
.pagination-wrapper .pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.pagination-wrapper .pagination .page-link:hover:not(.disabled) {
  background: #f8f9fa;
  border-color: #0288d1;
  color: #0288d1;
}
.pagination-wrapper .pagination .page-link.page-prev, .pagination-wrapper .pagination .page-link.page-next {
  padding: 0 0.75rem;
  gap: 0.25rem;
}

@media (max-width: 1199px) {
  .stores-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
}

.sidebar-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  margin-bottom: 1rem;
}
@media (max-width: 1199px) {
  .sidebar-card {
    margin-bottom: 0;
  }
}
.sidebar-card .sidebar-card-header {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #001f3f;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.sidebar-card .sidebar-card-header i {
  color: #0288d1;
}
.sidebar-card .sidebar-card-body {
  padding: 0.75rem;
}
.sidebar-card.tips-card {
  background: #fffbeb;
  border-color: #fbbf24;
}
.sidebar-card.tips-card .sidebar-card-header {
  background: transparent;
  border-bottom-color: #fbbf24;
  color: #92400e;
}
.sidebar-card.tips-card .sidebar-card-header i {
  color: #f59e0b;
}
.sidebar-card.tips-card .sidebar-card-body p {
  color: #92400e;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

.county-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.county-list .county-item {
  border-bottom: 1px solid #f0f0f0;
}
.county-list .county-item:last-child {
  border-bottom: none;
}
.county-list .county-item.active a {
  background: #b3e5fc;
}
.county-list .county-item.active a .county-name {
  color: #001f3f;
  font-weight: 600;
}
.county-list .county-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px;
}
.county-list .county-item a:hover {
  background: #f8f9fa;
}
.county-list .county-item a:hover .county-name {
  color: #0288d1;
}
.county-list .county-item a .county-name {
  color: #333;
  font-size: 0.85rem;
}
.county-list .county-item a .county-count {
  background: #f8f9fa;
  color: #777;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quick-links li {
  margin-bottom: 0.25rem;
}
.quick-links li:last-child {
  margin-bottom: 0;
}
.quick-links li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.quick-links li a:hover {
  background: #f8f9fa;
  color: #0288d1;
}
.quick-links li a:hover i {
  color: #0288d1;
}
.quick-links li a i {
  width: 16px;
  color: #777;
  transition: all 0.3s ease;
}

.no-results {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}
.no-results .no-results-icon {
  width: 60px;
  height: 60px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.no-results .no-results-icon i {
  font-size: 1.5rem;
  color: #777;
}
.no-results h3 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.no-results p {
  color: #777;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.no-results .btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0288d1;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.no-results .btn-reset:hover {
  background: rgb(1.6132701422, 109.7023696682, 168.5867298578);
}

.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #dc2626;
}
.error-message i {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .stores-hero {
    padding: 1rem 0 2rem;
  }
  .stores-hero h1 {
    font-size: 1.4rem;
  }
  .stores-hero .hero-stats {
    gap: 0.75rem;
  }
  .stores-hero .hero-stats .stat-item {
    padding: 0.4rem 0.75rem;
  }
  .stores-hero .hero-stats .stat-item .stat-number {
    font-size: 1.1rem;
  }
  .search-card .search-form {
    padding: 1rem;
  }
  .store-card .store-card-header {
    padding: 0.75rem;
  }
  .store-card .store-card-header .store-icon {
    width: 36px;
    height: 36px;
  }
  .store-card .store-card-body {
    padding: 0.75rem;
  }
  .store-card .store-card-footer {
    padding: 0.5rem 0.75rem;
  }
}