/* Security page - replaces the old page-specific rules.
   All selectors are scoped under .sec so they cannot affect the shared header/footer. */

.sec{
  --sec-accent:#f5a623;
  --sec-ink:#fff;
  --sec-ink2:rgba(255,255,255,.8);
  --sec-glass:rgba(255,255,255,.12);
  --sec-glass-b:rgba(255,255,255,.26);
  --sec-deep:rgba(4,46,42,.55);
  background:linear-gradient(135deg,#074b46,#11988e);
  color:var(--sec-ink);
  font-family:"IBM Plex Sans Thai","Noto Sans Thai",system-ui,sans-serif;
  line-height:1.6;
  padding:48px 0 56px;
  overflow:hidden;
}
.sec *,.sec *::before,.sec *::after{box-sizing:border-box}
.sec a{color:inherit}
.sec :focus-visible{outline:3px solid var(--sec-accent);outline-offset:3px;border-radius:8px}
.sec__wrap{max-width:1080px;margin:0 auto;padding:0 20px}

.sec__hero{text-align:center;padding:24px 0 28px}
.sec__hero h1{font-size:clamp(2rem,5vw,3.4rem);line-height:1.15;margin:0 0 16px;font-weight:700;color:#fff}
.sec__rule{width:80px;height:3px;border-radius:2px;background:#fff;margin:0 auto 24px}
.sec__lead{margin:0 auto;max-width:62ch;font-size:1.15rem;color:var(--sec-ink2)}

.sec__section{padding:24px 0}
.sec h2{font-size:1.7rem;line-height:1.25;margin:0 0 10px;font-weight:600;color:#fff}
.sec__sub{color:var(--sec-ink2);margin:0 0 22px;max-width:60ch}

.sec__glass{
  background:var(--sec-glass);
  border:1px solid var(--sec-glass-b);
  border-radius:24px;
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  box-shadow:0 20px 50px rgba(2,30,28,.28);
}
.sec__card{padding:28px}
.sec__card p{margin:0 0 12px;color:var(--sec-ink2)}
.sec__card p:last-child{margin-bottom:0}

.sec__grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.sec__grid--wide{gap:32px}

.sec__shot{margin-top:28px;background:#fff;border-radius:18px;padding:12px;overflow:hidden}
.sec__shot img{display:block;width:100%;height:auto;border-radius:10px}

.sec__tag{
  display:inline-block;font-size:.9rem;font-weight:600;
  padding:3px 14px;border-radius:999px;margin-bottom:14px;
  background:rgba(245,166,35,.2);color:#ffd48a;
}
.sec__list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sec__list li{
  display:flex;gap:12px;align-items:flex-start;
  padding:13px 15px;background:var(--sec-deep);border-radius:14px;color:#fff;
}
.sec__dot{
  flex:none;width:11px;height:11px;border-radius:50%;margin-top:8px;
  background:var(--sec-accent);box-shadow:0 0 0 5px rgba(245,166,35,.22);
}
.sec__note{margin-top:22px;padding:18px 22px;color:var(--sec-ink2)}

.sec__figure{margin-top:22px;display:flex;justify-content:center}
.sec__frame{
  position:relative;overflow:hidden;width:fit-content;max-width:100%;
  padding:16px;display:flex;justify-content:center;
}
.sec__frame::before,.sec__frame::after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.sec__frame::before{width:170px;height:170px;left:-50px;top:-80px;background:rgba(95,227,179,.2)}
.sec__frame::after{width:120px;height:120px;right:-35px;bottom:-55px;background:rgba(245,166,35,.22)}
.sec__pane{position:relative;z-index:1;background:#fff;padding:8px;border-radius:14px;box-shadow:0 10px 24px rgba(2,30,28,.35);max-width:100%}
.sec__pane img{display:block;width:560px;max-width:100%;height:auto;border-radius:10px}

@media (max-width:760px){
  .sec{padding-top:32px}
  .sec__grid{grid-template-columns:1fr}
  .sec__card{padding:22px}
}

/* ---- Admin cheating list + details modal (kept from the old stylesheet, deduplicated) ---- */
#list.can_remove td.small_cell:nth-last-child(3),
#list:not(.can_remove) td.small_cell:nth-last-child(2){text-align:center}
#btn-add{display:none}
.show-details{color:#F79F81}
.cls-mdl-lne > p > label{margin:0}
.cls-mdl-lne > p{line-height:24px}
.wrapper{overflow:hidden !important}

.cheat .modal-dialog{max-width:650px}
.cheat .modal-body{overflow:auto;height:calc(80vh - 30px)}
.cheat .modal-body table td:nth-child(1){vertical-align:top;width:40%}
.cheat .modal-body table td:last-child{vertical-align:top;word-break:break-all}
.cheat .modal-body table td.nowrap{white-space:nowrap;overflow-x:auto}
