/* ---------------- "Switched on" feature panel (Reseller pages) ---------------- */
.tp-sec {
  background:
    radial-gradient(600px 400px at 100% 0%, var(--brand-soft) 0, rgba(232,243,238,0) 70%),
    var(--white);
}
.tp-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin: 1rem 0 1.6rem; }
.tp-stats { display: flex; gap: .8rem; }
.tp-stats div { flex: 1; padding: 1rem 1.1rem; border-radius: 16px; background: var(--brand-tint); border: 1px solid var(--brand-border); }
.tp-stats b { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--brand); }
.tp-stats span { font-size: .8rem; font-weight: 600; color: var(--muted); }

.tp {
  background: #fff; border-radius: 24px; padding: 1.4rem 1.4rem 1.2rem;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(14,42,28,.35), 0 0 0 6px rgba(23,111,70,.04);
}
.tp__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tp__title { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-mono); font-weight: 700; font-size: .84rem; color: var(--ink); }
.tp__dots { display: inline-flex; gap: .3rem; }
.tp__dots i { width: 9px; height: 9px; border-radius: 50%; background: #dfe6e2; }
.tp__dots i:first-child { background: #f28b82; } .tp__dots i:nth-child(2) { background: #f6c96b; } .tp__dots i:nth-child(3) { background: #6fd39c; }
.tp__count { font-size: .82rem; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: .3rem .75rem; border-radius: 99px; }
.tp__count b { font-family: var(--font-mono); }
.tp__bar { height: 6px; border-radius: 99px; background: var(--brand-soft); margin: .9rem 0 1.1rem; overflow: hidden; }
.tp__bar span { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #3cbf85); transform-origin: left; }

.tp__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.tp-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: .85rem;
  padding: .8rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: #fcfdfc;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.tp-row:hover { border-color: var(--brand-border); background: var(--brand-tint); box-shadow: var(--shadow-sm); }
.tp-row__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 1.1rem; transition: .3s ease; }
.tp-row__txt b { display: block; font-size: .93rem; color: var(--ink); line-height: 1.25; }
.tp-row__txt small { display: block; font-size: .77rem; line-height: 1.4; color: var(--muted); margin-top: .15rem; }

/* the switch */
.tp-sw {
  position: relative; width: 42px; height: 24px; border-radius: 99px; flex: 0 0 auto;
  background: var(--brand); transition: background .3s ease;
}
.tp-sw::after {
  content: ""; position: absolute; top: 3px; left: 21px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: left .3s cubic-bezier(.34,1.56,.64,1);
}
/* animated "switch on" when the panel scrolls into view (js adds .is-armed then .is-on) */
.tp.is-armed .tp-sw { background: #d6ded9; }
.tp.is-armed .tp-sw::after { left: 3px; }
.tp.is-armed .tp-row__ico { background: #eef2f0; color: #9aa7a1; }
.tp.is-armed .tp__bar span { transform: scaleX(0); }
.tp.is-on .tp-sw { background: var(--brand); transition-delay: calc(var(--i) * 110ms); }
.tp.is-on .tp-sw::after { left: 21px; transition-delay: calc(var(--i) * 110ms); }
.tp.is-on .tp-row__ico { background: var(--brand-soft); color: var(--brand); transition-delay: calc(var(--i) * 110ms); }
.tp.is-on .tp__bar span { transform: scaleX(1); transition: transform 1s ease .1s; }

.tp__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.tp__foot span { font-size: .82rem; font-weight: 600; color: var(--body); display: inline-flex; align-items: center; gap: .35rem; }
.tp__foot i { color: var(--brand); }

@media (max-width: 767.98px) { .tp__grid { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
  .tp { padding: 1.1rem .9rem 1rem; border-radius: 20px; }
  .tp-row { grid-template-columns: 40px 1fr auto; padding: .7rem; gap: .7rem; }
  .tp-row__ico { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp.is-armed .tp-sw, .tp.is-armed .tp-sw::after, .tp.is-armed .tp-row__ico, .tp.is-armed .tp__bar span { transition: none !important; }
}
