/*
  APT Executive Reset – Premium UI skin
  Scoped to .apt-reset-root to avoid theme conflicts.
*/

.apt-reset-root{
  --apt-bg: rgba(10,14,20,.62);
  --apt-panel: rgba(15,20,30,.66);
  --apt-border: rgba(255,255,255,.08);
  --apt-border2: rgba(255,255,255,.06);
  --apt-text: rgba(235,242,255,.96);
  --apt-muted: rgba(154,164,178,.92);
  --apt-danger: rgba(179,38,38,1);
  --apt-danger2: rgba(120,20,20,1);
  --apt-gold: rgba(185,150,70,1);
  --apt-gold2: rgba(112,86,34,1);

  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 16px 80px;
  color: var(--apt-text);
  /* Use the site's typography (premium themes often ship custom fonts). */
  font-family: inherit;
}

.apt-reset-root:before{
  content:"";
  position:absolute;
  inset:-120px -160px auto -160px;
  height: 420px;
  background:
    radial-gradient(620px 260px at 8% 20%, rgba(185,35,55,.25), transparent 62%),
    radial-gradient(540px 260px at 92% 0%, rgba(80,140,255,.18), transparent 58%),
    radial-gradient(360px 220px at 40% 35%, rgba(255,255,255,.06), transparent 70%);
  pointer-events:none;
  filter: blur(0px);
  opacity: .95;
}

.apt-reset-hero{
  position:relative;
  z-index: 1;
  margin-bottom: 22px;
}

.apt-reset-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,210,210,.92);
  background: rgba(110,15,25,.28);
  border: 1px solid rgba(255,70,90,.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 18px 40px rgba(0,0,0,.45), 0 0 26px rgba(200,40,60,.18);
}

.apt-reset-title{
  margin: 14px 0 8px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.apt-reset-subtitle{
  margin: 0;
  color: var(--apt-muted);
  line-height: 1.4;
}

.apt-muted{ color: var(--apt-muted); }

.apt-reset-note{
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(185,150,70,.08);
  border: 1px solid rgba(185,150,70,.22);
  color: rgba(235,242,255,.92);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
}

.apt-reset-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.apt-card{
  background: var(--apt-panel);
  border: 1px solid var(--apt-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.apt-card::before{
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(760px 420px at 18% 0%, rgba(255, 70, 95, .22), transparent 58%),
    radial-gradient(740px 420px at 90% 10%, rgba(90, 160, 255, .14), transparent 58%),
    radial-gradient(900px 520px at 55% 120%, rgba(255, 215, 110, .08), transparent 60%);
  pointer-events: none;
}

.apt-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0) 42%, rgba(255,255,255,.05));
  opacity: .22;
  pointer-events: none;
}

.apt-card > *{
  position: relative;
  z-index: 1;
}

.apt-card-wide{ }

.apt-card-head{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.apt-kicker{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(154,164,178,.86);
  font-weight: 700;
}

.apt-card-title{
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.apt-card-sub{
  margin-top: 6px;
  color: var(--apt-muted);
  font-size: 13px;
  line-height: 1.35;
}

.apt-pill{
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(235,242,255,.92);
}

.apt-pill-warn{
  border-color: rgba(185,150,70,.25);
  background: rgba(185,150,70,.08);
  color: rgba(240,225,180,.92);
}

.apt-form{
  display:grid;
  gap: 12px;
}

.apt-label{
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(205,214,230,.92);
}

.apt-input,
.apt-select{
  width: 100%;
  color: rgba(235,242,255,.96);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset;
}

.apt-input::placeholder{ color: rgba(154,164,178,.75); }

.apt-select{ padding: 12px; }

.apt-split{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.apt-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 34px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(235,242,255,.92);
  font-size: 12px;
  letter-spacing: .02em;
}

.apt-range{
  width: 100%;
}

.apt-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(235,242,255,.95);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset;
}

.apt-btn:hover{ transform: translateY(-1px); box-shadow: 0 18px 50px rgba(0,0,0,.38); }
.apt-btn:active{ transform: translateY(0px) scale(.99); }

.apt-btn-primary{
  border-color: rgba(185,150,70,.35);
  background: linear-gradient(180deg, rgba(185,150,70,.32), rgba(60,50,20,.22));
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 28px 70px rgba(0,0,0,.42);
}

.apt-btn-danger{
  border-color: rgba(255, 92, 120, .52);
  background: linear-gradient(180deg, rgba(255, 78, 112, .92), rgba(150, 18, 46, .92));
  color: rgba(255, 245, 248, .98);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 18px 44px rgba(255, 70, 95, .22);
}

.apt-btn-danger:hover{
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 22px 58px rgba(255, 70, 95, .26);
}

.apt-output{
  margin-top: 16px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(235,242,255,.95);
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.4;
}

/* Tracker */
.apt-track-wrap{
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset;
}

.apt-track{
  position: relative;
  height: 170px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(220px 150px at 16% 40%, rgba(175, 25, 45, .30), transparent 70%),
    radial-gradient(240px 160px at 85% 50%, rgba(70, 140, 255, .22), transparent 70%),
    linear-gradient(90deg, rgba(40,12,18,.45), rgba(12,16,28,.55) 45%, rgba(8,10,16,.55));
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
}

.apt-track:before{
  content:"";
  position:absolute;
  inset: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.10);
  pointer-events:none;
  opacity: .7;
}

.apt-track:after{
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 28%, transparent 70%, rgba(0,0,0,.25));
  pointer-events:none;
  opacity: .65;
}

.apt-ball{
  position:absolute;
  top: 50%;
  left: 0;
  /* Size is controlled by JS (inline width/height). CSS variable is a fallback. */
  width: var(--ballSize, 36px);
  height: var(--ballSize, 36px);
  border-radius: 999px;
  transform: translate3d(0,-50%,0);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.96), rgba(220,235,255,.96) 35%, rgba(140,190,255,.80) 58%, rgba(58,110,200,.65) 78%, rgba(30,55,120,.55));
  box-shadow:
    0 16px 34px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 0 28px rgba(140,180,255,.18);
}

.apt-ball:before{
  content:"";
  position:absolute;
  inset: 6px 10px auto auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  filter: blur(.2px);
  opacity: .85;
}

/* Controls */
.apt-controls{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.apt-controls-left,
.apt-controls-mid,
.apt-controls-right{
  display:flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.apt-slider{
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.apt-slider-top{
  display:flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(205,214,230,.92);
  font-weight: 700;
  margin-bottom: 8px;
}

.apt-slider-val{
  color: rgba(154,164,178,.92);
  font-weight: 800;
  letter-spacing: .02em;
}

.apt-toggle{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: rgba(235,242,255,.92);
}

.apt-toggle input{ transform: scale(1.05); }

.apt-time{
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 800;
  letter-spacing: .02em;
  color: rgba(235,242,255,.92);
}

.apt-footer-note{
  margin-top: 12px;
  color: rgba(154,164,178,.92);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 700px){
  .apt-controls{ justify-content: flex-start; }
  .apt-slider{ min-width: 100%; }
}
