/* Lottery Pro • HarryWheat Games */
:root{
  --bg:#0b1020;
  --card:#0f172a;
  --card2:#111b34;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --accent:#22c55e;
  --danger:#ef4444;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(34,197,94,.18), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(59,130,246,.18), transparent 60%),
              var(--bg);
}

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 18px;
  background:rgba(10,15,30,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(34,197,94,.25), rgba(59,130,246,.25));
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight:800;
}
.title{font-size:18px; font-weight:800; letter-spacing:.2px}
.sub{font-size:12px; color:var(--muted)}
.topActions{display:flex; gap:10px; align-items:center; flex-wrap:wrap}

.wrap{
  max-width:1200px;
  margin:18px auto 60px;
  padding:0 14px;
  display:grid;
  grid-template-columns: 1.35fr .9fr;
  gap:16px;
}
@media (max-width: 980px){
  .wrap{grid-template-columns:1fr}
}

.panel{
  background: rgba(15,23,42,.7);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}

.row{display:flex; gap:14px; align-items:flex-end}
.rowWrap{flex-wrap:wrap}
.seg{min-width: 220px; flex:1}
.lbl{display:block; font-size:12px; color:var(--muted); margin:2px 2px 8px}

.input{
  width:100%;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(3,7,18,.35);
  color:var(--text);
  padding:11px 12px;
  outline:none;
}
.input:focus{border-color: rgba(34,197,94,.55); box-shadow: 0 0 0 3px rgba(34,197,94,.12)}

.inline{display:flex; gap:10px; align-items:center}
.inline .input{flex:1}

.btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
  user-select:none;
  font-weight:650;
}
.btn:hover{background: rgba(255,255,255,.10)}
.btn:active{transform: translateY(1px)}
.btn.primary{background: rgba(34,197,94,.16); border-color: rgba(34,197,94,.45)}
.btn.primary:hover{background: rgba(34,197,94,.22)}
.btn.danger{background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.45)}
.btn.danger:hover{background: rgba(239,68,68,.18)}

.segmented{
  display:flex; gap:8px;
  background: rgba(3,7,18,.25);
  border:1px solid var(--border);
  padding:6px;
  border-radius:16px;
}
.segBtn{
  flex:1;
  border:1px solid transparent;
  background: transparent;
  color:var(--muted);
  border-radius:12px;
  padding:9px 10px;
  cursor:pointer;
  font-weight:800;
}
.segBtn.active{
  color:var(--text);
  background: rgba(255,255,255,.07);
  border-color: var(--border);
}

.toolbar{
  margin-top:12px;
  display:flex; justify-content:space-between; gap:12px;
  flex-wrap:wrap;
  padding:12px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(3,7,18,.20);
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
@media (max-width: 700px){
  .grid{grid-template-columns:1fr}
}

.ticket{
  background: rgba(17,27,52,.75);
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px;
}
.ticketTop{display:flex; justify-content:space-between; align-items:center; gap:10px}
.ticketMeta{font-size:12px; color:var(--muted)}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
}

.balls{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.ball{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.08);
  font-weight:900;
}
.ball.special{
  background: rgba(59,130,246,.18);
  border-color: rgba(59,130,246,.45);
}
.ball.power{background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.45)}
.ball.mega{background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.45)}

.ticketActions{display:flex; gap:8px; margin-top:10px; flex-wrap:wrap}
.smallBtn{
  font-size:12px;
  padding:8px 10px;
  border-radius:12px;
}

.footerRow{margin-top:14px; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap}
.muted{color:var(--muted)}
.small{font-size:12px}

.panelHead{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap}
.h{font-size:16px; font-weight:900}

.history{margin-top:12px; display:grid; gap:10px}
.histItem{
  padding:12px;
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(3,7,18,.22);
}
.histTop{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap}
.histTitle{font-weight:900}
.histMeta{font-size:12px; color:var(--muted); margin-top:2px}
.histLines{margin-top:10px; display:grid; gap:8px}
.histLine{display:flex; gap:8px; flex-wrap:wrap}

.chips{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  font-weight:800;
  font-size:12px;
}
.stats{display:grid; gap:12px; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top:12px}
@media (max-width: 980px){ .stats{grid-template-columns:1fr} }
.statCard{
  padding:12px;
  border:1px solid var(--border);
  border-radius:18px;
  background: rgba(17,27,52,.55);
}
.statH{font-weight:900}

.modal{
  width:min(720px, 96vw);
  border:1px solid var(--border);
  border-radius: 20px;
  padding:0;
  background: rgba(10,15,30,.92);
  color:var(--text);
}
.modal::backdrop{background: rgba(0,0,0,.55)}
.modalHead{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px;
  border-bottom:1px solid var(--border);
}
.modalBody{padding:14px}



/* WordPress scoped background + layout (colorful) */
.hwlp-wrap{
  background:
    radial-gradient(1000px 600px at 10% 0%, var(--hwlp-bg1, rgba(34,197,94,.30)), transparent 62%),
    radial-gradient(1000px 600px at 95% 10%, var(--hwlp-bg2, rgba(59,130,246,.30)), transparent 62%),
    radial-gradient(1100px 700px at 45% 115%, var(--hwlp-bg3, rgba(245,158,11,.24)), transparent 62%),
    linear-gradient(180deg, rgba(11,16,32,.50), rgba(11,16,32,.35));
  border:1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  padding: 16px;
  max-width: 1200px;
  margin: 18px auto;
}
.hwlp-wrap .wrap{max-width:unset;margin:0;padding:0;display:block}
