:root {
  --lty-entry-primary: #c29a4c;
  --lty-entry-bg: #080808;
  --lty-entry-card: #111111;
  --lty-entry-card-2: #171717;
  --lty-entry-row-alt: #1e1e1e;
  --lty-entry-border: rgba(194, 154, 76, 0.24);
  --lty-entry-border-soft: rgba(255, 255, 255, 0.08);
  --lty-entry-text: #f7f3ea;
  --lty-entry-muted: rgba(247, 243, 234, 0.68);
  --lty-entry-muted-2: rgba(247, 243, 234, 0.5);
  --lty-entry-soft: rgba(194, 154, 76, 0.12);
}

/* Main page wrapper */
.lty-entry-list-modern {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) 16px;
  color: var(--lty-entry-text);
}

.lty-entry-list-modern *,
.lty-entry-list-modern *::before,
.lty-entry-list-modern *::after {
  box-sizing: border-box;
}

.lty-entry-list-modern a {
  color: inherit;
  text-decoration: none;
}

/* Generic cards */
.lty-modern-card,
.lty-entry-list-summary-card,
.lty-modern-summary-card {
  position: relative;
  border: 1px solid var(--lty-entry-border);
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    ),
    var(--lty-entry-card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

/* Summary card */
.lty-entry-list-modern .lty-entry-list-summary-card,
.lty-entry-list-modern .lty-modern-summary-card {
  padding: clamp(22px, 3.5vw, 34px);
  margin-bottom: 28px;
}

.lty-entry-list-modern .lty-entry-list-summary-card::before,
.lty-entry-list-modern .lty-modern-summary-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lty-entry-primary),
    transparent
  );
}

/* Header area: title/subtitle + progress */
.lty-entry-list-modern .lty-modern-hero-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  margin: 0 0 24px 0;
  padding: 0;
}

/* Title/subtitle area */
.lty-entry-list-modern .lty-modern-hero-content {
  min-width: 0;
  padding-left: 8px;
}

/* Keep old kicker hidden if it exists anywhere */
.lty-entry-list-modern .lty-modern-kicker {
  display: none !important;
}

/* Titles */
.lty-entry-list-modern .lty-modern-title,
.lty-entry-list-modern .lty-entry-list-title,
.lty-entry-list-modern h1,
.lty-entry-list-modern h2,
.lty-entry-list-modern h3 {
  margin: 0;
  color: var(--lty-entry-text);
  line-height: 1.08;
}

.lty-entry-list-modern .lty-modern-title,
.lty-entry-list-modern .lty-entry-list-title {
  max-width: 840px;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  position: static !important;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.lty-entry-list-modern .lty-modern-title a,
.lty-entry-list-modern .lty-entry-list-title a {
  color: var(--lty-entry-text) !important;
  text-decoration: none !important;
}

.lty-entry-list-modern .lty-modern-title a:hover,
.lty-entry-list-modern .lty-entry-list-title a:hover {
  color: var(--lty-entry-primary) !important;
}

/* Subtitle */
.lty-entry-list-modern .lty-modern-subtitle {
  max-width: 680px;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--lty-entry-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Buttons */
.lty-entry-list-modern .lty-modern-button,
.lty-entry-list-modern .button,
.lty-entry-list-modern button {
  width: fit-content;
  border: 1px solid rgba(194, 154, 76, 0.42) !important;
  border-radius: 999px !important;
  background: var(--lty-entry-primary) !important;
  color: #fff !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 13px 18px !important;
  box-shadow: 0 12px 30px rgba(194, 154, 76, 0.18);
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.lty-entry-list-modern .lty-modern-button:hover,
.lty-entry-list-modern .button:hover,
.lty-entry-list-modern button:hover {
  filter: brightness(1.06);
  box-shadow: 0 0px 55px rgba(194, 154, 76, 0.24);
  background: black !important;
}

/* Progress block */
.lty-entry-list-modern .lty-modern-progress-block {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--lty-entry-border-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  min-width: 0;
}

.lty-entry-list-modern .lty-modern-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--lty-entry-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lty-entry-list-modern .lty-modern-progress-head strong {
  color: var(--lty-entry-primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lty-entry-list-modern .lty-modern-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #242424;
  overflow: hidden;
}

.lty-entry-list-modern .lty-modern-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #8d6c2f,
    var(--lty-entry-primary),
    #e0bd73
  );
}

/* Stats grid */
.lty-entry-list-modern .lty-modern-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8em;
  margin: 0;
  padding: 0;
}

.lty-entry-list-modern .lty-modern-stat {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--lty-entry-border-soft);
  border-radius: 20px;
  background: var(--lty-entry-row-alt);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.lty-entry-list-modern .lty-modern-stat span {
  display: block;
  margin: 0;
  color: var(--lty-entry-muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lty-entry-list-modern .lty-modern-stat strong {
  display: block;
  color: var(--lty-entry-text);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}

/* Winner / ticket log sections */
.lty-entry-list-modern .lty-modern-section {
  margin-top: 28px;
}

.lty-entry-list-modern .lty-modern-section.lty-modern-card,
.lty-entry-list-modern .lty-ticket-logs-wrapper.lty-modern-card {
  padding: clamp(16px, 3vw, 24px);
}

.lty-entry-list-modern .lty-modern-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lty-entry-list-modern .lty-modern-section-heading h2,
.lty-entry-list-modern .lty-entry-list-ticket-logs-content-wrapper h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lty-entry-text);
}

/* Search bar */
.lty-entry-list-modern .lty-modern-searchbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px 0;
  padding: 10px !important;
  border: 1px solid var(--lty-entry-border-soft);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
}

.lty-entry-list-modern input[type="text"],
.lty-entry-list-modern .lty-frontend-search {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--lty-entry-text) !important;
  padding: 13px 16px !important;
  outline: none !important;
}

.lty-entry-list-modern input[type="text"]::placeholder {
  color: rgba(247, 243, 234, 0.42);
}

/* Table wrapper */
.lty-entry-list-modern .lty-modern-table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--lty-entry-border-soft);
  background: rgba(0, 0, 0, 0.18);
}

/* Tables */
.lty-entry-list-modern table.lty-modern-table,
.lty-entry-list-modern table.lty-frontend-table,
.lty-entry-list-modern table.shop_table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  color: var(--lty-entry-text);
}

/* Table heading */
.lty-entry-list-modern table thead th,
.lty-entry-list-modern .lty-frontend-table thead th {
  border: 0 !important;
  border-bottom: 1px solid rgba(194, 154, 76, 0.22) !important;
  background: #000 !important;
  color: whitesmoke !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 16px !important;
  text-align: left;
  text-transform: uppercase;
}

/* Table cells */
.lty-entry-list-modern table tbody td,
.lty-entry-list-modern .lty-frontend-table tbody td {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: transparent !important;
  color: var(--lty-entry-text) !important;
  padding: 16px !important;
  vertical-align: middle;
}

/* Force alternating row background to #1e1e1e instead of plugin #fafafa */
.lty-entry-list-modern .lty-frontend-table tbody tr:nth-child(2n),
.lty-entry-list-modern table tbody tr:nth-child(2n),
.lty-frontend-table tbody tr:nth-child(2n) {
  background: #1e1e1e !important;
}

/* Also force cells inside alternate rows */
.lty-entry-list-modern .lty-frontend-table tbody tr:nth-child(2n) td,
.lty-entry-list-modern table tbody tr:nth-child(2n) td,
.lty-frontend-table tbody tr:nth-child(2n) td {
  background: #1e1e1e !important;
}

/* Hover row */
.lty-entry-list-modern table tbody tr:hover td,
.lty-entry-list-modern .lty-frontend-table tbody tr:hover td {
  background: rgba(194, 154, 76, 0.055) !important;
}

/* Remove last border */
.lty-entry-list-modern table tbody tr:last-child td,
.lty-entry-list-modern .lty-frontend-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* Ticket number pill */
.lty-entry-list-modern .lty-modern-ticket-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 7px 11px;
  border: 1px solid rgba(194, 154, 76, 0.42);
  border-radius: 999px;
  background: var(--lty-entry-soft);
  color: var(--lty-entry-primary);
  font-size: 13px;
  font-weight: 800;
}

/* Table footer */
.lty-entry-list-modern tfoot td {
  padding: 18px !important;
  border-top: 1px solid var(--lty-entry-border-soft) !important;
}

/* Pagination */
.lty-entry-list-modern .pagination,
.lty-entry-list-modern .woocommerce-pagination {
  margin: 0 !important;
}

.lty-entry-list-modern .pagination ul,
.lty-entry-list-modern .woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.lty-entry-list-modern .pagination li,
.lty-entry-list-modern .woocommerce-pagination li {
  border: 0 !important;
  list-style: none;
}

.lty-entry-list-modern .pagination a,
.lty-entry-list-modern .woocommerce-pagination a,
.lty-entry-list-modern .woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--lty-entry-text);
  font-weight: 800;
}

.lty-entry-list-modern .pagination a.current,
.lty-entry-list-modern .pagination a.active,
.lty-entry-list-modern .woocommerce-pagination a.current,
.lty-entry-list-modern .woocommerce-pagination a.active,
.lty-entry-list-modern .woocommerce-pagination span.current {
  border-color: var(--lty-entry-primary);
  background: var(--lty-entry-primary);
  color: #090909;
}

/* Empty state */
.lty-entry-list-modern .lty-modern-empty,
.lty-entry-list-modern .lty_log_empty_container {
  padding: 26px;
  border: 1px dashed rgba(194, 154, 76, 0.28);
  border-radius: 20px;
  background: rgba(194, 154, 76, 0.06);
  color: var(--lty-entry-muted);
  text-align: center;
}

/* Hide status and winner count if old markup still appears from cache/other template */
.lty-entry-list-modern .lty-modern-status-stat {
  display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .lty-entry-list-modern .lty-modern-hero-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lty-entry-list-modern .lty-modern-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lty-entry-list-modern {
    padding-inline: 12px;
  }

  .lty-entry-list-modern .lty-entry-list-summary-card,
  .lty-entry-list-modern .lty-modern-summary-card {
    padding: 20px;
  }

  .lty-entry-list-modern .lty-modern-hero-content {
    padding-left: 0;
  }

  .lty-entry-list-modern .lty-modern-title,
  .lty-entry-list-modern .lty-entry-list-title {
    font-size: 30px;
  }

  .lty-entry-list-modern .lty-modern-subtitle {
    font-size: 15px;
  }

  .lty-entry-list-modern .lty-modern-stats-grid {
    grid-template-columns: 1fr;
  }

  .lty-entry-list-modern .lty-modern-stat {
    min-height: auto;
  }

  .lty-entry-list-modern .lty-modern-section-heading,
  .lty-entry-list-modern .lty-modern-searchbar {
    align-items: stretch;
    flex-direction: column;
  }

  .lty-entry-list-modern .lty-modern-searchbar .lty-modern-button,
  .lty-entry-list-modern .lty-modern-searchbar button {
    width: 100%;
    justify-content: center;
  }

  .lty-entry-list-modern table.shop_table_responsive thead {
    display: none;
  }

  .lty-entry-list-modern table.shop_table_responsive tbody tr {
    display: block;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .lty-entry-list-modern table.shop_table_responsive tbody td {
    display: flex !important;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-align: right !important;
  }

  .lty-entry-list-modern table.shop_table_responsive tbody td::before {
    content: attr(data-title);
    color: var(--lty-entry-muted);
    font-weight: 800;
    text-align: left;
  }
}

.lty-entry-list-content-wrapper p:nth-child(2n) {
  background: none !important;
}

/* Force ticket log pagination to display */
.lty-entry-list-modern .lty-entry-list-pagination-footer {
  display: table-footer-group !important;
  background: transparent !important;
}

.lty-entry-list-modern .lty-entry-list-pagination-cell {
  padding: 20px 16px !important;
  background: #111111 !important;
  border-top: 1px solid rgba(194, 154, 76, 0.22) !important;
  text-align: center !important;
}

.lty-entry-list-modern .lty-pagination-wrapper,
.lty-entry-list-modern .lty-entry-list-pagination-wrapper,
.lty-entry-list-modern nav.pagination,
.lty-entry-list-modern nav.woocommerce-pagination {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

.lty-entry-list-modern .lty-pagination-wrapper ul,
.lty-entry-list-modern nav.pagination ul,
.lty-entry-list-modern nav.woocommerce-pagination ul {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
}

.lty-entry-list-modern .lty-pagination-wrapper li,
.lty-entry-list-modern nav.pagination li,
.lty-entry-list-modern nav.woocommerce-pagination li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
}

.lty-entry-list-modern .lty-pagination-wrapper a,
.lty-entry-list-modern .lty-pagination-wrapper span,
.lty-entry-list-modern nav.pagination a,
.lty-entry-list-modern nav.pagination span,
.lty-entry-list-modern nav.woocommerce-pagination a,
.lty-entry-list-modern nav.woocommerce-pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  background: #1e1e1e !important;
  color: #f7f3ea !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.lty-entry-list-modern .lty-pagination-wrapper a:hover,
.lty-entry-list-modern nav.pagination a:hover,
.lty-entry-list-modern nav.woocommerce-pagination a:hover {
  border-color: #c29a4c !important;
  background: rgba(194, 154, 76, 0.16) !important;
  color: #c29a4c !important;
}

.lty-entry-list-modern .lty-pagination-wrapper a.current,
.lty-entry-list-modern nav.pagination a.current,
.lty-entry-list-modern nav.woocommerce-pagination a.current,
.lty-entry-list-modern nav.woocommerce-pagination span.current {
  border-color: #c29a4c !important;
  background: #c29a4c !important;
  color: #090909 !important;
}

/* Cuillin ticket loader overlay */
.lty-entry-list-modern .lty-data-table-wrapper.lty-loading {
  position: relative;
  pointer-events: none;
}

.lty-entry-list-modern
  .lty-data-table-wrapper.lty-loading
  .lty-ticket-logs-content-wrapper,
.lty-entry-list-modern
  .lty-data-table-wrapper.lty-loading
  .lty-modern-table-scroll,
.lty-entry-list-modern .lty-data-table-wrapper.lty-loading table {
  opacity: 0.3;
}

.lty-entry-list-modern .cuillin-ticket-loader {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(194, 154, 76, 0.14),
      transparent 34%
    ),
    rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Mountain line loader */
.lty-entry-list-modern .cuillin-ticket-loader__mountain {
  display: block;
  width: 120px;
  height: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.lty-entry-list-modern .cuillin-ticket-loader__mountain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 240px 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='20' viewBox='0 0 240 20'%3E%3Cpolyline points='0,13 18,11 32,14 50,8 68,13 88,6 108,12 128,5 150,13 170,7 190,14 212,9 240,13' fill='none' stroke='%23C29A4C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: cuillin-mountain-slide 1.2s linear infinite;
  opacity: 0.98;
}

.lty-entry-list-modern .cuillin-ticket-loader__mountain::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 45%;
  height: 180%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: skewX(-18deg);
  animation: cuillin-mountain-sheen 1.1s ease-in-out infinite;
  pointer-events: none;
}

.lty-entry-list-modern .cuillin-ticket-loader__text {
  color: rgba(247, 243, 234, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes cuillin-mountain-slide {
  from {
    background-position: 0 50%;
  }

  to {
    background-position: -120px 50%;
  }
}

@keyframes cuillin-mountain-sheen {
  0% {
    transform: translateX(-140%) skewX(-18deg);
    opacity: 0;
  }

  20% {
    opacity: 0.55;
  }

  50% {
    opacity: 0.35;
  }

  100% {
    transform: translateX(340%) skewX(-18deg);
    opacity: 0;
  }
}

/* Hide WooCommerce breadcrumb on Entry List pages */
body .lty-entry-list-modern ~ .woocommerce-breadcrumb,
body:has(.lty-entry-list-modern) .woocommerce-breadcrumb {
  display: none !important;
}
