/* ===================================================
   Kalyan Panel Chart - Professional Responsive Stylesheet
   Website: Satta DPBoss Matka (sdm-ssr)
   Theme: Matka Gold & Vivid Red (#FFCC99 / #FF0000 / #002E5D / #F6C90E)
   Cell Architecture: Open Panel Vertical Digits | Center Jodi | Close Panel Vertical Digits
   Optimized for all screen sizes (320px ultra-mobile to 4K desktop)
   =================================================== */

/* --- Accessible Screen-Reader Hidden --- */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Container & Global Resets for Chart Page --- */
.panel-page-main {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* --- Breadcrumb Bar --- */
.panel-breadcrumb-nav {
  width: 100%;
  background: #ffffff;
  border: 1px solid #FF0000;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.panel-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: Gabarito, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.panel-breadcrumb-list a {
  color: #002E5D;
  text-decoration: none;
  transition: color 0.15s ease;
}

.panel-breadcrumb-list a:hover {
  color: #E6007A;
  text-decoration: underline;
}

.panel-breadcrumb-sep {
  color: #888888;
  font-size: 11px;
}

.panel-breadcrumb-current {
  color: #1A1A1A;
  font-weight: 700;
}

/* --- Hero Banner Card --- */
.panel-hero-card {
  width: 100%;
  margin-top: 8px;
  background: #ffffff;
  border: 1.5px solid #FF0000;
  border-radius: 6px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.panel-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, #E6007A 0%, #C20062 100%);
  color: #ffffff;
  font-family: Gabarito, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.panel-hero-title {
  font-family: Poppins, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.25;
  margin: 0 0 6px 0;
}

.panel-hero-desc {
  font-family: Gabarito, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #333333;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 720px;
}

/* --- KPI / Summary Stats Grid --- */
.panel-stats-card {
  width: 100%;
  margin-top: 8px;
  background: #ffffff;
  border: 1.5px solid #FF0000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.panel-stats-header {
  background: #F6C90E;
  border-bottom: 1px solid #FF0000;
  padding: 8px 12px;
  text-align: center;
}

.panel-stats-header-title {
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #002E5D;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.panel-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  background: #ffffff;
}

.panel-stat-box {
  background: #FFF8EE;
  border: 1px solid #FF0000;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.panel-stat-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(255, 0, 0, 0.15);
}

.panel-stat-label {
  font-family: Gabarito, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #002E5D;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.panel-stat-val {
  font-family: Gabarito, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.1;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.panel-stat-val.color-red {
  color: #d90429 !important;
}

.panel-stat-val.color-blue {
  color: #002E5D !important;
}

.panel-stat-meta {
  border-top: 1px solid #FFE4C4;
  padding: 8px 10px;
  background: #FFFDF9;
  text-align: center;
  font-family: Gabarito, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #444444;
  line-height: 1.4;
}

.panel-stat-meta strong {
  color: #000000;
}

/* --- Filter & Controls Section --- */
.panel-controls-card {
  width: 100%;
  margin-top: 8px;
  background: #ffffff;
  border: 1.5px solid #FF0000;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.panel-controls-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #FFE4C4;
}

.panel-controls-heading {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #002E5D;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-active-range-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF3CD;
  color: #856404;
  border: 1px solid #FFEEBA;
  border-radius: 12px;
  padding: 2px 9px;
  font-family: Gabarito, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

/* Filter Preset Chips / Pills Bar */
.panel-preset-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.panel-preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF8EE;
  color: #002E5D;
  border: 1.5px solid #002E5D;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: Gabarito, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.panel-preset-pill:hover {
  background: #002E5D;
  color: #ffffff;
  transform: translateY(-1px);
}

.panel-preset-pill.is-active {
  background: #002E5D !important;
  color: #ffffff !important;
  border-color: #002E5D !important;
  box-shadow: 0 2px 6px rgba(0, 46, 93, 0.35);
}

.panel-preset-pill.is-active .pill-check {
  display: inline-block;
}

.pill-check {
  display: none;
  font-size: 11px;
}

.panel-preset-pill.pill-gold {
  background: #F6C90E;
  color: #1A1A1A;
  border-color: #d4ab07;
}

.panel-preset-pill.pill-gold:hover {
  background: #e5b800;
  color: #1A1A1A;
}

.panel-preset-pill.pill-gold.is-active {
  background: #1A1A1A !important;
  color: #F6C90E !important;
  border-color: #1A1A1A !important;
}

/* Date Range Inputs Form */
.panel-range-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  background: #FFFDF9;
  border: 1px solid #FFE4C4;
  border-radius: 6px;
  padding: 10px;
}

.panel-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 50px;
  min-width: 125px;
}

.panel-field-label {
  font-family: Gabarito, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #002E5D;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.panel-field-input {
  width: 100%;
  height: 38px;
  padding: 6px 10px;
  border: 1.5px solid #002E5D;
  border-radius: 6px;
  font-family: Gabarito, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1A1A1A;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.panel-field-input:focus {
  border-color: #E6007A;
  box-shadow: 0 0 0 3px rgba(230, 0, 122, 0.2);
}

.panel-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-submit-btn {
  height: 38px;
  padding: 0 16px;
  background: #002E5D;
  color: #ffffff;
  border: 1.5px solid #002E5D;
  border-radius: 6px;
  font-family: Gabarito, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.panel-submit-btn:hover {
  background: #001B38;
  transform: translateY(-1px);
}

.panel-reset-btn {
  height: 38px;
  padding: 0 12px;
  background: #ffffff;
  color: #002E5D;
  border: 1.5px solid #002E5D;
  border-radius: 6px;
  font-family: Gabarito, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.panel-reset-btn:hover {
  background: #FFF6EC;
}

/* Quick Tools Toolbar: Search & Legend */
.panel-tools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #FFE4C4;
}

.panel-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-search-label {
  font-family: Gabarito, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #002E5D;
  white-space: nowrap;
}

.panel-search-input {
  width: 100px;
  height: 34px;
  padding: 4px 8px;
  border: 1.5px solid #002E5D;
  border-radius: 6px;
  font-family: Gabarito, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  background: #ffffff;
  outline: none;
  letter-spacing: 1px;
}

.panel-search-input:focus {
  border-color: #E6007A;
  box-shadow: 0 0 0 3px rgba(230, 0, 122, 0.25);
}

.panel-legend-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Gabarito, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.panel-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dot-red {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #d90429;
  border-radius: 2px;
}

.legend-dot-black {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #1A1A1A;
  border-radius: 2px;
}

/* Quick Jump Anchors */
.panel-jump-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.panel-jump-anchor-btn {
  background: #F6C90E;
  color: #1A1A1A;
  border: 1.5px solid #d4ab07;
  padding: 6px 18px;
  border-radius: 20px;
  font-family: Gabarito, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  cursor: pointer;
}

.panel-jump-anchor-btn:hover {
  background: #e5b800;
  transform: translateY(-1px);
}

/* --- MAIN PANEL CHART TABLE --- */
.panel-table-section {
  width: 100%;
  margin-top: 8px;
  background: #ffffff;
  border: 1.5px solid #FF0000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.panel-table-header-bar {
  background: #F6C90E;
  border-bottom: 1.5px solid #FF0000;
  padding: 10px 12px;
  text-align: center;
}

.panel-table-heading {
  font-family: Poppins, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #002E5D;
  margin: 0;
  line-height: 1.25;
}

.panel-table-subheading {
  font-family: Gabarito, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #333333;
  margin: 3px 0 0 0;
}

/* Table Wrapper (Fully Responsive, No Horizontal Scroll) */
.panel-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background: #ffffff;
  box-sizing: border-box;
}

/* Table Architecture */
.panel-chart-table {
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: Gabarito, sans-serif;
  text-align: center;
  background: #ffffff;
  box-sizing: border-box;
}

/* Thead & Columns */
.panel-chart-table thead {
  position: sticky;
  top: 0;
  z-index: 20;
}

.panel-chart-table thead th {
  background: #002E5D;
  color: #ffffff;
  border: 1px solid #FF0000;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.panel-chart-table thead th.col-date,
.panel-chart-table tbody th.panel-cell-date {
  width: 82px;
  box-sizing: border-box;
}

.panel-chart-table thead th:not(.col-date),
.panel-chart-table tbody td.panel-cell {
  width: calc((100% - 82px) / var(--panel-day-count, 6));
  box-sizing: border-box;
}

.panel-chart-table thead th.col-date {
  background: #001B38;
  position: sticky;
  left: 0;
  z-index: 25;
}

/* Table Body Rows */
.panel-chart-table tbody tr {
  transition: background-color 0.12s ease;
}

.panel-chart-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.panel-chart-table tbody tr:nth-child(odd) {
  background-color: #FFF8EE;
}

.panel-chart-table tbody tr:hover {
  background-color: #FFEFCF !important;
}

.panel-chart-table tbody th,
.panel-chart-table tbody td {
  border: 1px solid #FF0000;
  text-align: center;
  vertical-align: middle;
  padding: 4px 2px;
  box-sizing: border-box;
}

/* Sticky Date Cell */
.panel-cell-date {
  width: 82px;
  background-color: #FFF0DE;
  color: #002E5D;
  font-weight: 700;
  position: sticky;
  left: 0;
  z-index: 10;
  border-right: 2px solid #FF0000 !important;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
}

.panel-chart-table tbody tr:hover .panel-cell-date {
  background-color: #FFE6BE;
}

.panel-date-line {
  display: block;
  font-size: 11.5px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.date-desktop {
  display: block;
}

.date-mobile {
  display: none;
}

.panel-date-sep {
  display: block;
  font-size: 9px;
  color: #888888;
  font-weight: 600;
  line-height: 1;
  margin: 1px 0;
}

/* ===================================================
   ICONIC SATTA MATKA PANEL CELL ARCHITECTURE
   [ Open Panel (Vertical) | Jodi (Center) | Close Panel (Vertical) ]
   =================================================== */

.panel-cell-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 3px 6px;
  box-sizing: border-box;
  background: transparent;
}

/* Vertical digits stack for Open and Close Panel */
.panel-digits {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  font-family: Gabarito, Poppins, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  color: #1A1A1A;
  min-width: 14px;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.panel-digits span {
  display: block;
  line-height: 1;
}

.panel-open-digits {
  text-align: left;
  padding-left: 2px;
}

.panel-close-digits {
  text-align: right;
  padding-right: 2px;
}

/* Center Jodi number */
.panel-center-jodi {
  font-family: Gabarito, Poppins, sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #000000;
  line-height: 1;
  text-align: center;
  flex: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  transition: transform 0.15s, color 0.15s;
}

/* Red Jodi (Cut & Family Pairs) */
.panel-center-jodi.is-red {
  color: #d90429 !important;
  text-shadow: 0 0 1px rgba(217, 4, 41, 0.25);
}

/* Empty Cell */
.panel-cell-empty {
  font-size: 14px;
  font-weight: 500;
  color: #999999;
  opacity: 0.6;
}

/* Matched Search Highlight */
.panel-cell.is-highlighted {
  background-color: #FFEB3B !important;
  box-shadow: inset 0 0 0 2px #FF9800;
  animation: panelPulse 1s ease-in-out infinite alternate;
}

@keyframes panelPulse {
  0% { transform: scale(1); box-shadow: inset 0 0 0 2px #FFD700; }
  100% { transform: scale(1.02); box-shadow: inset 0 0 0 3px #FF9800; }
}

/* Latest Week Row Highlight */
tr.is-latest-week {
  background-color: #FFF3CD !important;
  border-top: 2px solid #FF0000 !important;
  border-bottom: 2px solid #FF0000 !important;
}

tr.is-latest-week .panel-cell-date {
  background-color: #FFE69C !important;
}

.panel-latest-badge {
  display: inline-block;
  background: #E6007A;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
  letter-spacing: 0.3px;
  animation: panelBlink 1.5s infinite;
}

@keyframes panelBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* Bottom Bar Anchor */
.panel-bottom-bar {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #FFE4C4;
  text-align: center;
}

/* --- Informational & Content Cards --- */
.panel-info-card {
  width: 100%;
  margin-top: 8px;
  background: #ffffff;
  border: 1.5px solid #FF0000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.panel-card-header-yellow {
  background: #F6C90E;
  border-bottom: 1px solid #FF0000;
  padding: 8px 12px;
  text-align: center;
}

.panel-card-heading {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #002E5D;
  margin: 0;
}

.panel-card-body {
  padding: 12px;
  font-family: Gabarito, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #222222;
  line-height: 1.5;
}

/* Visual Cell Explainer Diagram */
.panel-diagram-box {
  background: #FFFDF9;
  border: 1.5px dashed #FF0000;
  border-radius: 6px;
  padding: 12px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-diagram-cell {
  background: #ffffff;
  border: 2px solid #002E5D;
  border-radius: 6px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 46, 93, 0.15);
}

.panel-diagram-label {
  font-size: 11px;
  font-weight: 700;
  color: #002E5D;
  text-align: center;
}

/* Record Links Grid */
.panel-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px;
}

.panel-resource-card {
  background: #FFF8EE;
  border: 1px solid #FF0000;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, background-color 0.15s;
}

.panel-resource-card:hover {
  background: #FFEFCF;
  transform: translateY(-1px);
}

.panel-resource-title {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #002E5D;
  margin: 0 0 4px 0;
}

.panel-resource-desc {
  font-family: Gabarito, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #333333;
  margin: 0;
  line-height: 1.35;
}

/* FAQ Details Items */
.panel-faq-item {
  border-bottom: 1px solid #FFE4C4;
  padding: 10px 4px;
}

.panel-faq-item:last-child {
  border-bottom: none;
}

.panel-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: Poppins, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-faq-item summary::-webkit-details-marker {
  display: none;
}

.panel-faq-toggle-icon {
  font-weight: 800;
  font-size: 16px;
  color: #002E5D;
  transition: transform 0.2s ease;
}

.panel-faq-item[open] .panel-faq-toggle-icon {
  transform: rotate(45deg);
}

.panel-faq-answer {
  font-family: Gabarito, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #333333;
  margin-top: 6px;
  line-height: 1.45;
}

/* --- Floating Action Buttons Dock (Scroll Top / Bottom) --- */
.panel-fab-dock {
  position: fixed;
  bottom: 20px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.panel-fab-dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.panel-fab-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #002E5D;
  color: #ffffff;
  border: 2px solid #F6C90E;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.15s;
}

.panel-fab-btn:hover {
  background: #F6C90E;
  color: #002E5D;
  transform: scale(1.08);
}

/* ===================================================
   RESPONSIVE DESIGN BREAKPOINTS
   =================================================== */

@media (max-width: 768px) {
  .panel-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
  }
  .panel-stat-val {
    font-size: 16px;
  }
  .panel-stat-label {
    font-size: 10px;
  }

  .panel-chart-table thead th.col-date,
  .panel-chart-table tbody th.panel-cell-date {
    width: 68px;
    padding: 6px 1px;
  }

  .panel-chart-table thead th:not(.col-date),
  .panel-chart-table tbody td.panel-cell {
    width: calc((100% - 68px) / var(--panel-day-count, 6));
    padding: 2px 1px;
  }

  .panel-cell-box {
    min-height: 44px;
    padding: 2px 2px;
  }

  .panel-digits {
    height: 42px;
    font-size: 12px;
    min-width: 10px;
  }

  .panel-center-jodi {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .panel-page-main {
    padding: 0 3px 8px 3px !important;
    overflow-x: hidden;
  }

  .panel-hero-title {
    font-size: 18px;
  }

  .panel-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .panel-preset-bar {
    gap: 4px;
  }

  .panel-preset-pill {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* Compact 2-Column Date Range Form for Mobile */
  .panel-range-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
  }

  .panel-form-field {
    min-width: 0 !important;
  }

  .panel-form-actions {
    grid-column: span 2;
    display: flex;
    gap: 6px;
    width: 100%;
  }

  .panel-submit-btn,
  .panel-reset-btn {
    flex: 1;
    height: 36px;
    font-size: 12px;
    padding: 0 8px;
    text-align: center;
  }

  .panel-tools-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding-top: 8px;
  }

  .panel-search-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
  }

  .panel-search-input {
    flex: 1;
    max-width: 140px;
    height: 32px;
    font-size: 13px;
  }

  .panel-legend-bar {
    justify-content: center;
    gap: 12px;
    font-size: 10.5px;
  }

  .panel-resource-grid {
    grid-template-columns: 1fr;
  }

  /* Table styling for mobile: 100% responsive, NO scroll, WITH YEAR ALWAYS SHOWN */
  .panel-table-wrapper {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
  }

  .panel-chart-table {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
  }

  .panel-chart-table thead th {
    font-size: 10px;
    padding: 6px 1px;
    letter-spacing: 0;
  }

  .panel-chart-table thead th.col-date,
  .panel-chart-table tbody th.panel-cell-date {
    width: 52px !important;
    padding: 3px 1px;
    position: static !important;
    box-shadow: none !important;
  }

  .panel-chart-table thead th:not(.col-date),
  .panel-chart-table tbody td.panel-cell {
    width: calc((100% - 52px) / var(--panel-day-count, 6)) !important;
    padding: 1px 1px;
  }

  .date-desktop {
    display: none !important;
  }

  /* Shows full Date, Month AND Year (e.g. 13/10/25) */
  .date-mobile {
    display: block !important;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.2px;
  }

  .panel-date-sep {
    font-size: 8px;
    margin: 1px 0;
  }

  .panel-latest-badge {
    font-size: 7.5px;
    padding: 1px 3px;
  }

  .panel-cell-box {
    padding: 1px 2px;
    min-height: 38px;
  }

  .panel-digits {
    height: 36px;
    font-size: 10.5px;
    font-weight: 800;
    min-width: 8px;
    line-height: 1;
  }

  .panel-digits span {
    line-height: 1;
  }

  .panel-open-digits {
    padding-left: 0;
  }

  .panel-close-digits {
    padding-right: 0;
  }

  .panel-center-jodi {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.5px;
  }

  .panel-cell-empty {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .panel-page-main {
    padding: 0 1px 8px 1px !important;
  }

  .panel-hero-title {
    font-size: 16px;
  }

  .panel-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
  }

  .panel-stat-val {
    font-size: 14px;
  }

  .panel-stat-label {
    font-size: 9.5px;
  }

  .panel-preset-pill {
    padding: 4px 8px;
    font-size: 10.5px;
  }

  /* Ultra-small screens (down to 320px): WITH YEAR STILL SHOWN (13/10/25) */
  .panel-chart-table thead th {
    font-size: 8.5px;
    padding: 4px 0;
  }

  .panel-chart-table thead th.col-date,
  .panel-chart-table tbody th.panel-cell-date {
    width: 44px !important;
    padding: 2px 0;
  }

  .panel-chart-table thead th:not(.col-date),
  .panel-chart-table tbody td.panel-cell {
    width: calc((100% - 44px) / var(--panel-day-count, 6)) !important;
    padding: 1px 0;
  }

  .date-mobile {
    font-size: 8.2px !important;
    line-height: 1.1;
    letter-spacing: -0.3px;
  }

  .panel-date-sep {
    font-size: 7px;
    margin: 0;
  }

  .panel-latest-badge {
    font-size: 6.5px;
    padding: 0 2px;
  }

  .panel-cell-box {
    padding: 0 1px;
    min-height: 33px;
  }

  .panel-digits {
    height: 32px;
    font-size: 9px;
    font-weight: 800;
    min-width: 6px;
    line-height: 1;
  }

  .panel-center-jodi {
    font-size: 13.5px;
    font-weight: 900;
    letter-spacing: -0.5px;
  }

  .panel-cell-empty {
    font-size: 11px;
  }

  .panel-fab-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}
