/* ── Draw info line ── */
.draw-info {
  font-size: 13px;
  color: #555;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.draw-info .draw-num {
  font-weight: 700;
  color: #d97706;
  font-size: 14px;
}
.draw-info .draw-sep { color: #bbb; }
.draw-info .draw-date { color: #666; }

/* ── Number balls ── */
.balls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ball-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ball {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  box-shadow: 0 3px 8px rgba(0,0,0,0.18), inset 0 -2px 4px rgba(0,0,0,0.12);
}

.ball-main {
  background: linear-gradient(145deg, #d97706, #fbbf24);
}

.ball-add {
  background: linear-gradient(145deg, #dc2626, #f87171);
}

.ball-add-label {
  font-size: 10px;
  color: #dc2626;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balls-divider {
  width: 2px;
  height: 40px;
  background: #e5e7eb;
  border-radius: 1px;
  margin: 0 4px;
  align-self: center;
}

/* ── Draw select overrides (orange theme) ── */
.draw-select {
  border: 1.5px solid #fde68a !important;
  background: #fffbeb !important;
  color: #d97706 !important;
}
.draw-select:focus, .draw-select:hover {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 3px rgba(217,119,6,0.15) !important;
}

/* ── Odd / Even options ── */
.oe-options { margin-bottom: 14px; }

.oe-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  user-select: none;
}
.oe-checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #d97706;
  cursor: pointer;
}

/* ── Odd / Even table ── */
.oe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.oe-table thead tr {
  background: #fffbeb;
  border-bottom: 2px solid #fef3c7;
}
.oe-table th {
  padding: 9px 12px;
  text-align: left;
  font-weight: 700;
  color: #d97706;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.oe-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.oe-table tbody tr:last-child td { border-bottom: none; }

.oe-row-selected { background: #fffbeb; }
.oe-row-selected td { font-weight: 600; }

.oe-current-tag { color: #d97706; font-size: 10px; }
.oe-draw { color: #d97706; font-weight: 700; white-space: nowrap; }
.oe-date { color: #666; white-space: nowrap; }
.oe-sum  { font-weight: 700; color: #4f46e5; white-space: nowrap; }

.oe-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.oe-pill-odd  { background: #fef3c7; color: #92400e; }
.oe-pill-even { background: #dbeafe; color: #1e40af; }

.oe-nums { display: flex; flex-wrap: wrap; gap: 5px; }

.oe-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.oe-odd  { background: #fef3c7; color: #92400e; border: 1.5px solid #fcd34d; }
.oe-even { background: #dbeafe; color: #1e40af; border: 1.5px solid #93c5fd; }
.oe-add-num { outline: 2px solid #d97706; outline-offset: 1px; }

/* ── Frequency options ── */
.freq-options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.freq-count-label, .freq-count-unit {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}
.freq-count-input {
  width: 72px;
  padding: 6px 10px;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  font-size: 13px;
  color: #d97706;
  background: #fffbeb;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.freq-count-input:focus, .freq-count-input:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(217,119,6,0.15);
}

/* ── Frequency meta ── */
.freq-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
}

/* ── Frequency legend ── */
.freq-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 11px;
  color: #666;
}
.freq-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.legend-hot        { background: linear-gradient(145deg, #d97706, #fbbf24); }
.legend-warm       { background: linear-gradient(145deg, #f59e0b, #fde68a); }
.legend-cold       { background: linear-gradient(145deg, #94a3b8, #cbd5e1); }
.legend-winner     { background: linear-gradient(145deg, #b91c1c, #f87171); }
.legend-add-winner { background: linear-gradient(145deg, #dc2626, #fca5a5); }

/* ── Frequency grid ── */
.freq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 12px;
}

.freq-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.freq-ball {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15), inset 0 -2px 4px rgba(0,0,0,0.1);
}

.ball-hot  { background: linear-gradient(145deg, #d97706, #fbbf24); }
.ball-warm { background: linear-gradient(145deg, #f59e0b, #fde68a); }
.ball-cold { background: linear-gradient(145deg, #94a3b8, #cbd5e1); }

.freq-ball-win {
  width: 50px;
  height: 50px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25), inset 0 -2px 4px rgba(0,0,0,0.15);
}

.freq-ball-dim { opacity: 0.32; }

.freq-add-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7f1d1d;
  margin: 0 auto -3px;
}

.freq-count {
  font-size: 12px;
  font-weight: 700;
  color: #555;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .ball { width: 40px; height: 40px; font-size: 14px; }
  .freq-ball { width: 36px; height: 36px; font-size: 12px; }
  .freq-grid { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
  .balls-row { gap: 8px; }
  .oe-table th, .oe-table td { padding: 7px 8px; }
  .oe-date { display: none; }
}
