/* Lottery Check Your Numbers Pro - Standalone v1.0.0 */
:root{
  --bg:#0d0f12;
  --card:#141820;
  --card2:#10141b;
  --line:rgba(255,255,255,.08);
  --text:#eef2ff;
  --muted:rgba(238,242,255,.72);
  --muted2:rgba(238,242,255,.55);
  --accent:#7c5cff;
  --accent2:#35d0ff;
  --good:#31d27c;
  --warn:#ffcc00;
  --bad:#ff5c7a;
  --shadow: 0 12px 34px rgba(0,0,0,.38);
  --radius: 16px;
  --radius2: 22px;
  --btnh: 42px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:radial-gradient(1200px 700px at 10% 10%, rgba(124,92,255,.20), transparent 55%),
             radial-gradient(900px 600px at 90% 20%, rgba(53,208,255,.16), transparent 50%),
             var(--bg);
  color:var(--text);
}
button, input, select, textarea{font:inherit}
a{color:inherit}

.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; gap:14px; align-items:center; justify-content:space-between;
  padding:12px 16px;
  border-bottom:1px solid var(--line);
  background:rgba(12,14,18,.74);
  backdrop-filter: blur(10px);
}
.brand{display:flex; gap:10px; align-items:center; min-width:240px}
.logo{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(124,92,255,.35), rgba(53,208,255,.22));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.brandname{font-weight:800; letter-spacing:.2px}
.brandsub{font-size:12px; color:var(--muted2); margin-top:2px}

.tabs{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.tab{
  height:38px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  background:rgba(255,255,255,.04);
  cursor:pointer;
}
.tab:hover{border-color:rgba(255,255,255,.18); color:var(--text)}
.tab.active{
  background:linear-gradient(135deg, rgba(124,92,255,.35), rgba(53,208,255,.18));
  color:var(--text);
  border-color:rgba(255,255,255,.20);
}

.wrap{padding:18px 16px 54px; max-width:1180px; margin:0 auto}
.panel{display:none}
.panel.active{display:block}

.grid2{display:grid; grid-template-columns:1.1fr .9fr; gap:14px}
@media (max-width:980px){
  .grid2{grid-template-columns:1fr}
  .brand{min-width:auto}
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cardhead{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 14px 10px;
  border-bottom:1px solid var(--line);
}
.cardhead h2{margin:0; font-size:16px}
.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  font-size:12px;
  background:rgba(255,255,255,.03);
}

.field{padding:14px}
label{display:block; color:var(--muted); font-size:12px; margin:0 0 8px}
select,input,textarea{
  width:100%;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  outline:none;
}
textarea{resize:vertical}
select:focus,input:focus,textarea:focus{border-color:rgba(124,92,255,.65); box-shadow:0 0 0 3px rgba(124,92,255,.15)}
.hint{font-size:12px; color:var(--muted2); margin-top:8px}
.details{margin-top:10px}
details summary{cursor:pointer; color:var(--muted); user-select:none}
details[open] summary{color:var(--text)}

.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:10px}
.btn{
  height:var(--btnh);
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{border-color:rgba(255,255,255,.20)}
.btn:active{transform:translateY(1px)}
.btn.primary{
  background:linear-gradient(135deg, rgba(124,92,255,.55), rgba(53,208,255,.22));
  border-color:rgba(255,255,255,.18);
}
.btn.ghost{
  background:transparent;
  color:var(--muted);
}
.btn:disabled{opacity:.45; cursor:not-allowed; transform:none}

.seg{display:flex; gap:8px}
.segbtn{
  height:36px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  cursor:pointer;
}
.segbtn.active{
  background:rgba(124,92,255,.26);
  color:var(--text);
  border-color:rgba(124,92,255,.50);
}

.numberset{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}

/* ===== Balls: Classic (v1.0.4) ===== */

/* Main balls: glossy white */
.ball{
  width:46px;
  height:46px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:15px;
  color:#111;
  cursor:pointer;
  user-select:none;

  background:
    radial-gradient(circle at 30% 28%, #ffffff 0%, #fdfdfd 35%, #f1f1f1 65%, #e4e4e4 100%);
  border:1px solid #cfcfcf;

  box-shadow:
    0 8px 18px rgba(0,0,0,.35),
    inset 0 3px 6px rgba(255,255,255,.9),
    inset 0 -4px 8px rgba(0,0,0,.08);
}

/* Smaller balls (some lists / mobile) */
.ball.small{
  width:42px;
  height:42px;
  font-size:14px;
}

/* Powerball special: red */
.ball.special{
  background:
    radial-gradient(circle at 30% 28%, #ff6b6b 0%, #e03131 55%, #a51111 100%);
  color:#fff;
  border:1px solid #7a0c0c;
}

/* Mega Ball special: gold */
.ball.mega{
  background:
    radial-gradient(circle at 30% 28%, #ffe066 0%, #fcc419 55%, #e6a700 100%);
  color:#111;
  border:1px solid #b8860b;
}

/* Match highlight */
.ball.match{
  outline:3px solid rgba(49,210,124,.35);
  border-color:rgba(49,210,124,.55);
}

/* Empty slots */
.ball.empty{
  color:rgba(20,20,20,.35);
  font-weight:800;
  border-style:dashed;
  background:
    radial-gradient(circle at 30% 28%, #ffffff 0%, #f7f7f7 50%, #ededed 100%);
}

.results{padding:14px}
.matchline{color:var(--muted); line-height:1.4}
.divider{height:1px; background:var(--line); margin:14px 0}

.prizebox{
  margin-top:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:12px;
  background:rgba(0,0,0,.12);
}
.prizehead{font-size:12px; color:var(--muted)}
.prizevalue{font-size:30px; font-weight:900; margin-top:6px}
.prizehint{font-size:12px; color:var(--muted2); margin-top:4px}

.split{display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-top:14px}
@media (max-width:640px){.split{grid-template-columns:1fr}}
.minihead{font-size:12px; color:var(--muted)}
.mini{margin-top:6px; font-weight:800}

.tablewrap{overflow:auto; border-radius:14px; border:1px solid rgba(255,255,255,.10)}
.prizetable{width:100%; border-collapse:collapse; font-size:13px}
.prizetable th, .prizetable td{padding:10px 12px; border-bottom:1px solid var(--line); text-align:left}
.prizetable th{color:var(--muted); font-weight:700; background:rgba(0,0,0,.10)}
.prizetable tr:last-child td{border-bottom:none}

.list{padding:10px}
.item{
  display:flex; gap:10px; justify-content:space-between; align-items:flex-start;
  padding:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:rgba(0,0,0,.10);
  margin:10px 0;
}
.item .meta{color:var(--muted2); font-size:12px; margin-top:6px}
.item .title{font-weight:900}
.item .nums{display:flex; gap:8px; flex-wrap:wrap; margin-top:8px}
.item .actions{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.small{font-size:12px; color:var(--muted2)}

.qplist{display:flex; flex-direction:column; gap:10px; min-height:80px}
.qpRow{
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:10px;
  background:rgba(0,0,0,.10);
}
.qpRow .nums{display:flex; gap:8px; flex-wrap:wrap; margin-top:8px}
.qpRow .top{display:flex; justify-content:space-between; align-items:center}
.qpRow .idx{color:var(--muted2); font-size:12px}
.qpRow .miniActions{display:flex; gap:8px; flex-wrap:wrap}
.qpRow .miniActions button{height:34px; padding:0 10px; border-radius:12px}

.about{color:var(--muted); line-height:1.5}
.about ul{margin:8px 0 0 18px; color:var(--muted)}
.about p{margin:0 0 8px}

.foot{padding:14px 16px; max-width:1180px; margin:0 auto}
.footdisclaimer{color:var(--muted2); font-size:12px; line-height:1.4}

.toast{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom:16px; z-index:80;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  color:var(--text);
  opacity:0;
  pointer-events:none;
  transition: opacity .16s ease, transform .16s ease;
  max-width:min(92vw, 720px);
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(-2px)}

/* Previous wins list */
.prevwins .item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  margin:8px 0;
  background:rgba(255,255,255,.04);
  cursor:pointer;
}
.prevwins .item:hover{background:rgba(255,255,255,.06)}
.prevwins .meta{font-size:12px;opacity:.75}
.prevwins .nums{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.prevwins .nums .ball{width:36px;height:36px;font-size:13px}
.prevwins .badge{
  margin-top:6px; display:inline-block;
  font-size:12px; padding:4px 8px; border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
}
.prevwins .badge.win{border-color:rgba(49,210,124,.35);background:rgba(49,210,124,.10)}
.prevwins .badge.lose{border-color:rgba(255,0,0,.30);background:rgba(255,0,0,.08);color:#ffb3b3}

/* Mini ball text color fix (white balls need dark numbers) */
.ball.small{ color:#111 !important; line-height:1; }
.ball.small.special{ color:#fff !important; }
.ball.small.mega{ color:#111 !important; }

#prevStartDate,#prevEndDate{min-width:140px}
