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

body {
  font-family: Poppins, Arial, sans-serif;
  background: linear-gradient(135deg, #fff7eb, #ffffff);
  color: #1a0f17;
  padding-bottom: 0;
}

/* ===========================
   RESPONSIVE DEFAULTS

   Notes:
   - Ensures images never overflow their containers.
   - Keeps layouts stable across mobile/tablet/desktop.
=========================== */
img {
  max-width: 100%;
  height: auto;
}

/* ===========================
   HEADER AREA
=========================== */
.site-header {
  background: #ffffff;
  padding: 16px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

/* Mobile hamburger button (hidden on desktop) */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #ffe7c2;
  background: linear-gradient(180deg, #fff, #ffe7c2);
  color: #1a0f17;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.mobile-menu-btn:hover {
  background: linear-gradient(180deg, #fff, #fff3d9);
}

.site-header ul {
  list-style: none;
  display: flex;
  gap: 30px;
  color: #ffb300;
}

.site-header ul li {
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.site-header ul li a {
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
}

.site-header ul li.has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-header ul .submenu {
  list-style: none;
  margin: 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a0f17, #a2720b);
  border: 1px solid rgba(255, 231, 194, 0.35);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  z-index: 50;

  /* Smooth reveal */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}

.site-header ul .submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.site-header ul li.has-submenu > a img {
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

.site-header ul li.has-submenu:hover > .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-header ul li.has-submenu:focus-within > .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===========================
   MOBILE SIDEBAR NAV
=========================== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 15, 23, 0.55);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  z-index: 999;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 360px);
  background: linear-gradient(135deg, #1a0f17, #a2720b);
  color: #ffffff;
  transform: translateX(110%);
  transition: transform 0.25s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.28);
}

.mobile-sidebar.active {
  transform: translateX(0);
}

.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 231, 194, 0.25);
}

.mobile-sidebar-logo {
  height: 44px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.close-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 231, 194, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
}

.close-btn:hover {
  background: rgba(255, 179, 0, 0.18);
}

.mobile-nav-menu {
  list-style: none;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.mobile-nav-menu a,
.mobile-nav-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(26, 15, 23, 0.35);
  border: 1px solid rgba(255, 231, 194, 0.18);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu button:hover {
  background: rgba(255, 179, 0, 0.16);
}

.tips-menu-item {
  position: relative;
}

.tips-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5a1f;
  box-shadow: 0 0 14px rgba(255, 90, 31, 0.7);
  flex: 0 0 auto;
}

.mobile-dropdown-menu {
  list-style: none;
  margin-top: 8px;
  padding-left: 8px;
  display: none;
  gap: 8px;
}

.mobile-dropdown-menu.active {
  display: grid;
}

.mobile-dropdown-menu a {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 231, 194, 0.25);
  font-weight: 700;
}

.chevron-down {
  opacity: 0.95;
}

.mobile-sidebar-footer {
  margin-bottom: 0;
  padding: 16px;
  border-top: 1px solid rgba(255, 231, 194, 0.25);
}

.social-links-mobile {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links-mobile a {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 231, 194, 0.25);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
}

.social-links-mobile a:hover {
  background: rgba(255, 179, 0, 0.18);
}

@media (max-width: 900px) {
  /* Hide desktop nav and show hamburger */
  .site-header ul {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  /* Keep header elements from wrapping awkwardly */
  .brand img {
    width: 160px;
  }

  /* Allow header to wrap cleanly on small screens */
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }
}

/* Extra-small phones: reduce the LIVE badge size to avoid overflow */
@media (max-width: 420px) {
  .live {
    font-size: 12px;
    gap: 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

.site-header ul .submenu li {
  margin: 0;
  padding: 0;
}

.site-header ul .submenu a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 231, 194, 0.22);
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.site-header ul .submenu li + li {
  margin-top: 8px;
}

.site-header ul .submenu a:hover {
  background: rgba(255, 179, 0, 0.2);
  transform: translateX(2px);
}

.site-header ul .submenu a:focus-visible {
  outline: 2px solid rgba(255, 210, 74, 0.8);
  outline-offset: 2px;
}

/* Responsive: keep dropdown readable when desktop nav is still visible */
@media (max-width: 1100px) {
  .site-header ul {
    gap: 18px;
  }

  .site-header ul .submenu {
    min-width: 180px;
  }
}

.brand img {
  height: 48px;
  width: 200px;
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.live {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #ff5a1f;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ff5a1f;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 90, 31, 0.7);
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

/* ===========================
   COUNTDOWN
=========================== */
.flip-countdown-wrap {
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff7eb;
  padding: 40px 0;
}

.flip-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.flip-box {
  width: 84px;
  height: 100px;
  background: linear-gradient(180deg, #fff, #ffe7c2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.digit {
  font-size: 56px;
  font-weight: 800;
  color: #1a0f17;
}

.sep {
  font-size: 52px;
  color: #ffb300;
  font-weight: 800;
}

.countdown-label {
  text-align: center;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #ff7a00;
}

/* ===========================
   COUNTDOWN (Responsive)

   The 4 flip boxes can overflow on small phones.
   On narrow screens we allow wrapping and shrink sizes.
=========================== */
@media (max-width: 520px) {
  .flip-countdown-wrap {
    padding: 26px 0;
  }

  .flip-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .flip-box {
    width: 66px;
    height: 78px;
  }

  .digit {
    font-size: 40px;
  }

  .sep {
    font-size: 38px;
  }

  .countdown-label {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .flip-box {
    width: 58px;
    height: 70px;
  }

  .digit {
    font-size: 36px;
  }
}

/* ===========================
   Motivation ROW
=========================== */

.motivation-section {
  width: 94%;
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  padding: 20px;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-align: center;
  font-size: large;
  font-weight: 700;
}

/* ===========================
   DATE ROW
=========================== */
.date-row,
.market-date {
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  color: #1a0f17;
  font-size: 18px;
  font-weight: 700;
  width: 94%;
  padding: 12px;
  margin: 20px auto;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* ===========================
   MAIN TABLE STYLE
=========================== */
.result-table {
  width: 94%;
  margin: 10px auto;
  background: #fff7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  font-size: 14px;
}

/* Table border-radius for all tables */
.result-table,
.record-table {
  border-radius: 0;
  overflow: hidden;
}

.result-table thead tr:first-child th:first-child,
.record-table thead tr:first-child th:first-child {
  border-top-left-radius: 0;
}

.result-table thead tr:first-child th:last-child,
.record-table thead tr:first-child th:last-child {
  border-top-right-radius: 0;
}

.result-table tbody tr:last-child td:first-child,
.record-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0;
}

.result-table tbody tr:last-child td:last-child,
.record-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0;
}

/* ===========================
   TABLE HELPERS (Responsive)

   Tables keep desktop layout on all screen sizes.
   On mobile (≤650px), tables scale down to fit without scrolling.
=========================== */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Keep wide time headers readable */
.table-scroll table th {
  white-space: nowrap;
}

/* Tablet screens: allow horizontal scroll if needed */
@media (min-width: 651px) and (max-width: 900px) {
  .table-scroll .result-table,
  .table-scroll .record-table {
    width: 100%;
    margin: 0;
  }

  .table-scroll table {
    min-width: 680px;
  }
}

/* ===========================
   MOBILE RESPONSIVE TABLE (below 650px)
   Keep exact desktop table layout - scale down to fit
   - Same row-column grid as laptop view
   - No scrolling (horizontal or vertical)
   - All 4 rows and 8 columns visible at once
=========================== */

/* Hide mobile grid layouts - we use scaled desktop tables instead */
.mobile-table-grid,
.mobile-market-grid {
  display: none !important;
}

/* Desktop: hide mobile line breaks */
.mobile-br {
  display: none;
}

@media (max-width: 650px) {
  /* Mobile: show line breaks for AM/PM */
  .mobile-br {
    display: inline;
  }

  /* Keep desktop tables visible, remove scroll wrapper behavior */
  .table-scroll {
    overflow: visible;
    border: none;
    background: transparent;
  }

  /* Scale tables to fit mobile screen */
  .table-scroll .result-table,
  .table-scroll .record-table,
  .result-table,
  .record-table {
    display: table !important;
    width: 100% !important;
    min-width: unset !important;
    margin: 0 auto;
    font-size: 8px;
    border-radius: 0;
    box-shadow: none;
    table-layout: fixed; /* Force equal columns to fit 8 cols */
  }

  /* Compact table cells */
  .result-table th,
  .result-table td,
  .record-table th,
  .record-table td {
    padding: 2px 4px;
    font-size: 8px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
  }

  /* Override global nowrap for headers on mobile */
  .table-scroll table th {
    white-space: normal;
    text-align: center;
  }

  /* Time header row - allow wrapping for two lines */
  .time-header th {
    padding: 2px 4px;
    font-size: 9px;
    font-weight: 800;
    white-space: normal !important;
    text-align: center;
    line-height: 1.2;
  }

  /* Show number row */
  .show-number-row td {
    padding: 2px 4px;
    font-size: 9px;
    font-weight: normal;
    white-space: nowrap;
    text-align: center;
  }

  /* Data rows */
  .fixed-row td,
  .owner-row td {
    padding: 2px 4px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
    text-align: center;
  }

  /* Record table specific */
  .record-table-head th {
    padding: 2px 4px;
    font-size: 7px;
    text-align: center;
    white-space: nowrap;
  }

  .record-cell {
    padding: 2px 4px;
    font-size: 8px;
    text-align: center;
    white-space: nowrap;
  }

  /* Table container adjustments */
  .table-container {
    width: 100%;
    padding: 0 4px;
  }

  /* Record cards */
  .record-card {
    padding: 8px;
    margin: 10px 0;
  }

  .record-card .table-scroll {
    margin-top: 6px;
  }
}

/* Medium-small screens (below 590px) - allow time header wrapping */
@media (max-width: 590px) {
  .time-header th {
    padding: 2px 4px;
    font-size: 8.5px;
    font-weight: 800;
    white-space: normal !important;
    text-align: center;
    line-height: 1.2;
  }
}

/* Small screens (below 550px) - enhanced scaling */
@media (max-width: 550px) {
  .table-scroll .result-table,
  .table-scroll .record-table,
  .result-table,
  .record-table {
    width: 100% !important;
    font-size: 8px;
    border-radius: 0;
  }

  .result-table th,
  .result-table td,
  .record-table th,
  .record-table td {
    padding: 2px 4px;
    font-size: 8px;
    text-align: center;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
  }

  .time-header th {
    padding: 2px 4px;
    font-size: 8px;
    font-weight: 800;
    white-space: normal !important;
    text-align: center;
    line-height: 1.2;
  }

  .show-number-row td {
    padding: 2px 4px;
    font-size: 8px;
    font-weight: normal;
    white-space: nowrap;
    text-align: center;
  }

  .fixed-row td,
  .owner-row td {
    padding: 2px 4px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
    text-align: center;
  }

  .record-table-head th {
    padding: 2px 4px;
    font-size: 6.5px;
    text-align: center;
    white-space: nowrap;
  }

  .record-cell {
    padding: 2px 4px;
    font-size: 8px;
    text-align: center;
    white-space: nowrap;
  }
}

/* Extra small screens (below 450px) - more compact */
@media (max-width: 450px) {
  .table-scroll .result-table,
  .table-scroll .record-table,
  .result-table,
  .record-table {
    width: 100% !important;
    font-size: 7px;
    border-radius: 0;
  }

  .result-table th,
  .result-table td,
  .record-table th,
  .record-table td {
    padding: 2px 4px;
    font-size: 7px;
    text-align: center;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
  }

  .time-header th {
    padding: 2px 4px;
    font-size: 7.5px;
    font-weight: 800;
    white-space: normal !important;
    text-align: center;
    line-height: 1.2;
  }

  .show-number-row td {
    padding: 2px 4px;
    font-size: 8px;
    font-weight: normal;
    white-space: nowrap;
    text-align: center;
  }

  .fixed-row td,
  .owner-row td {
    padding: 2px 4px;
    font-size: 8.5px;
    font-weight: 800;
    white-space: nowrap;
    text-align: center;
  }

  .record-table-head th {
    padding: 2px 4px;
    font-size: 6px;
    text-align: center;
    white-space: nowrap;
  }

  .record-cell {
    padding: 2px 4px;
    font-size: 7px;
    text-align: center;
    white-space: nowrap;
  }
}

/* Very small screens (below 380px) - use CSS transform scale */
@media (max-width: 380px) {
  .table-scroll {
    transform: scale(0.92);
    transform-origin: top left;
    width: 108.7%; /* 100% / 0.92 */
  }

  .table-scroll .result-table,
  .table-scroll .record-table,
  .result-table,
  .record-table {
    width: 100% !important;
    font-size: 6px;
    border-radius: 0;
  }

  .result-table th,
  .result-table td,
  .record-table th,
  .record-table td {
    padding: 2px 4px;
    font-size: 6px;
    text-align: center;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
  }

  .time-header th {
    padding: 2px 4px;
    font-size: 7px;
    font-weight: 800;
    white-space: normal !important;
    text-align: center;
    line-height: 1.2;
  }

  .fixed-row td,
  .owner-row td {
    padding: 2px 4px;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
    text-align: center;
  }
}

/* Extremely small screens (below 340px) - stronger scale */
@media (max-width: 340px) {
  .table-scroll {
    transform: scale(0.85);
    transform-origin: top left;
    width: 117.6%; /* 100% / 0.85 */
  }
}

/* ===========================
   OLD RECORDS PAGE

   These classes are used by templates/old_records.html.
   They replace inline styles and add small-screen safety.
=========================== */
.page-container {
  width: min(92vw, 1100px);
  margin: 20px auto;
  padding: 10px;
}

.record-card {
  background: #f7f9ff;
  padding: 12px;
  border-radius: 0;
  margin: 14px 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.record-date {
  font-weight: 800;
}

.record-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  border-radius: 0;
  overflow: hidden;
}

.record-table-head {
  background: #006efb;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.record-row-a {
  background: #dff0ff;
}

.record-row-b {
  background: #ffe0ef;
}

.record-cell {
  padding: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}

/* ===========================
   NEW DIV-BASED TABLE STRUCTURE
   (Grid/Flexbox Layout)
=========================== */
.day-record {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.date-header {
  text-align: center;
  font-weight: 800;
  padding: 12px;
  font-size: 20px;
  background: #2c2c2c;
  color: #ffffff;
}

.time-row,
.number-row,
.result-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  text-align: center;
}

.time-row div {
  padding: 10px 4px;
  font-weight: 700;
  font-size: 16px;
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  color: #1a0f17;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.time-row div:first-child {
  background: #1a0f17;
  color: #ffd24a;
}

.time-row div:last-child {
  background: #1a0f17;
  color: #ffd24a;
  border-right: none;
}

.number-row div {
  padding: 12px 4px;
  font-weight: 900;
  font-size: 28px;
  background: #fff3d9;
  color: #1a0f17;
  border-right: 1px solid #e0d5c0;
}

.number-row div:last-child {
  border-right: none;
}

.result-row div {
  padding: 12px 4px;
  font-weight: 900;
  font-size: 22px;
  background: #ffeed4;
  color: #1a0f17;
  border-right: 1px solid #e0d5c0;
}

.result-row div:last-child {
  border-right: none;
}

.time-header th {
  padding: 14px;
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  color: #1a0f17;
  text-align: center;
}

.time-header th:first-child,
.time-header th:last-child {
  background: #1a0f17;
  color: #ffd24a;
}

.show-number-row td {
  padding: 14px;
  background: linear-gradient(90deg, #ff5a1f, #ff7a00);
  color: white;
  font-weight: normal;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
}

.fixed-row td,
.owner-row td {
  padding: 14px;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}

.fixed-row td {
  background: #fff3d9;
}

.owner-row td {
  background: #ffeed4;
}

/* ===========================
   BUTTONS
=========================== */
.buttons {
  text-align: center;
  margin: 18px 0;
}

.btn {
  padding: 12px 22px;
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  color: #1a0f17;
  border-radius: 26px;
  border: none;
  margin: 6px;
  cursor: pointer;
  font-weight: 700;
}

/* ===========================
   SOCIAL LINKS
=========================== */
.social-media-content {
  width: 94%;
  margin: 14px auto 22px;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.social-media-content ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.social-media-content .shares-count {
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  color: #1a0f17;
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 110px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.social-media-content .shares-count p:first-child {
  font-size: 18px;
  font-weight: 800;
}

.social-media-content .shares-count p:last-child {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}

.social-media-content ul li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff3d9;
  color: #1a0f17;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.social-media-content ul li a img {
  width: 18px;
  height: 18px;
}

.social-media-content ul li a:hover {
  background: #ffe7c2;
}

/* ===========================
   MARKET HEADER
=========================== */
.header-box {
  width: 94%;
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  padding: 16px;
  margin: 25px auto 10px;
  border-radius: 10px;
  color: #1a0f17;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.header-box h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

/* ===========================
   RESULT BOX (OPEN/CLOSE)
=========================== */
.result-box {
  width: 94%;
  background: #ffffff;
  margin: 12px auto;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.row {
  display: flex;
  width: 100%;
}

.red {
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  color: #fff;
}

.red-time {
  background: #ffe0b3;
  font-weight: 700;
}

.blue {
  background: #fff3d9;
}

.pink {
  background: #ffe8d9;
}

/* FIX COLUMNS */
.col {
  width: 50%;
  text-align: center;
  padding: 14px;
  font-size: 18px;
  font-weight: 700;
}

/* ===========================
   SMALL INFO SECTION
=========================== */

.small-info-section {
  width: 94%;
  margin: 22px auto;
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.small-info-section > div {
  padding: 22px;
}

.small-info-header {
  /* background: linear-gradient(90deg, #ff7a00, #ffb300); */
  color: #1a0f17;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.small-info-section .info-sub {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.small-info-section p {
  line-height: 1.6;
  margin-top: 10px;
  font-size: 15px;
  text-align: center;
  color: white;
}

.small-info-section p:first-of-type {
  margin-top: 0;
}

/* ===========================
   INFO SECTION
=========================== */
.info-section {
  width: 94%;
  max-width: 1100px;
  margin: 46px auto;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #fff7eb);
  border: 1px solid #ffe7c2;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-section > * {
  position: relative;
  z-index: 1;
}

.info-section::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.info-section::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, #ffb300, transparent 60%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.info-header {
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  padding: 18px 16px;
  border-radius: 14px;
  font-size: 28px;
  color: #1a0f17;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  position: relative;
}

/* Card layout for each info block */
.info-section > div:not(.info-header) {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ffe7c2;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
}

.info-section h1 {
  font-size: 20px;
  font-weight: 800;
  color: #1a0f17;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.info-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a0f17;
  margin: 6px 0 10px;
  opacity: 0.95;
}

.info-section p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(26, 15, 23, 0.9);
}

.info-section ul {
  list-style: none;
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.info-section li {
  background: #fff3d9;
  border: 1px solid #ffe7c2;
  padding: 12px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #1a0f17;
  font-weight: 700;
}

/* Add a subtle accent bar inside cards */
.info-section > div:not(.info-header) {
  position: relative;
}

.info-section > div:not(.info-header)::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a00, #ffb300);
  opacity: 0.9;
}

.info-section > div:not(.info-header) h1,
.info-section > div:not(.info-header) h3 {
  padding-top: 6px;
}

/* Responsive */
@media (max-width: 520px) {
  .info-section {
    margin: 34px auto;
    padding: 14px;
    gap: 12px;
  }

  .info-header {
    font-size: 20px;
    padding: 14px 12px;
  }

  .info-section > div:not(.info-header) {
    padding: 14px;
  }

  .info-section h1 {
    font-size: 18px;
  }

  .info-section p {
    font-size: 14px;
  }
}

/* ===========================
   FOOTER
=========================== */
.custom-footer {
  margin-top: 0;
  background: linear-gradient(135deg, #1a0f17, #a2720b);
  color: #ffffff;
}

.footer-container {
  width: 94%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 0 18px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 231, 194, 0.35);
}

.footer-logo {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 231, 194, 0.35);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.footer-logo img {
  display: block;
  height: 44px;
  width: auto;
  border-radius: 12px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 231, 194, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

/* Keep icon images aligned exactly like inline SVGs */
.footer-social-link img {
  display: block;
}

.mobile-menu-btn img {
  display: block;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 179, 0, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 0 16px;
}

.footer-col {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 231, 194, 0.35);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.footer-heading {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffd24a;
}

.footer-links,
.footer-contact {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(26, 15, 23, 0.35);
  border: 1px solid rgba(255, 231, 194, 0.18);
}

.footer-links li + li,
.footer-contact li + li {
  margin-top: 10px;
}

.footer-links a,
.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffd24a;
}

.footer-muted {
  color: rgba(255, 231, 194, 0.9);
  font-weight: 800;
  margin-right: 6px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 231, 194, 0.25);
  font-weight: 700;
}

.footer-bottom p {
  margin: 0;
}

.footer-made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-heart {
  color: #ff5a1f;
  font-weight: 900;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================
   MOBILE RESPONSIVENESS FOR NEW DIV-BASED TABLE
=========================== */
@media (max-width: 768px) {
  .time-row div {
    font-size: 14px;
    padding: 8px 2px;
    font-weight: 700;
  }

  .number-row div {
    font-size: 22px;
    padding: 8px 2px;
    font-weight: 900;
  }

  .result-row div {
    font-size: 18px;
    padding: 8px 2px;
    font-weight: 900;
  }

  .date-header {
    font-size: 18px;
    padding: 10px;
    font-weight: 800;
  }
}

@media (max-width: 550px) {
  .time-row div {
    font-size: 12px;
    padding: 6px 2px;
    font-weight: 700;
  }

  .number-row div {
    font-size: 18px;
    padding: 6px 2px;
    font-weight: 900;
  }

  .result-row div {
    font-size: 15px;
    padding: 6px 2px;
    font-weight: 900;
  }

  .date-header {
    font-size: 16px;
    padding: 8px;
    font-weight: 800;
  }
}

@media (max-width: 450px) {
  .time-row div {
    font-size: 11px;
    padding: 5px 1px;
    font-weight: 700;
  }

  .number-row div {
    font-size: 16px;
    padding: 5px 1px;
    font-weight: 900;
  }

  .result-row div {
    font-size: 13px;
    padding: 5px 1px;
    font-weight: 900;
  }

  .date-header {
    font-size: 14px;
    padding: 7px;
    font-weight: 800;
  }
}

@media (max-width: 380px) {
  .time-row div {
    font-size: 10px;
    padding: 4px 1px;
    font-weight: 700;
  }

  .number-row div {
    font-size: 14px;
    padding: 4px 1px;
    font-weight: 900;
  }

  .result-row div {
    font-size: 12px;
    padding: 4px 1px;
    font-weight: 900;
  }

  .date-header {
    font-size: 13px;
    padding: 6px;
    font-weight: 800;
  }
}
