/* ==========================================================================
   RexOS Shield — footer badge and admin page (works with every theme)
   ========================================================================== */

/* --- Footer badge ---------------------------------------------------------- */
.foot-legal { align-items: center; }
.rxs-badge {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 8px; border-radius: 99px; cursor: default; outline: none;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.2;
}
.rxs-badge:hover, .rxs-badge:focus-visible { border-color: rgba(70,196,110,.5); background: rgba(255,255,255,.08); }
.rxs-badge svg { flex: none; }
.rxs-t b { color: #fff; font-weight: 600; }
.rxs-t em { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: #0b2e22; background: #c9a24a; border-radius: 3px; padding: 1px 4px; margin-left: 2px; vertical-align: 1px; }
.rxs-st { display: inline-flex; align-items: center; gap: 6px; padding-left: 9px; border-left: 1px solid rgba(255,255,255,.12); color: #7fd99c; }
.rxs-st i { width: 7px; height: 7px; border-radius: 50%; background: #46c46e; animation: rxs-p 2.4s ease-out infinite; }
.rxs-badge.atk .rxs-st { color: #ffb38a; }
.rxs-badge.atk .rxs-st i { background: #f08a4b; animation-name: rxs-pa; }
@keyframes rxs-p { 0% { box-shadow: 0 0 0 0 rgba(70,196,110,.5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(70,196,110,0); } }
@keyframes rxs-pa { 0% { box-shadow: 0 0 0 0 rgba(240,138,75,.55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(240,138,75,0); } }

.rxs-tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px);
  width: 300px; background: #fff; color: #1d2a25; border-radius: 12px; overflow: hidden; text-align: left;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 50;
}
.rxs-badge:hover .rxs-tip, .rxs-badge:focus-visible .rxs-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.rxs-tip-h { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #1f9d55; color: #fff; font-weight: 600; font-size: 13px; }
.rxs-tip ul { list-style: none; margin: 0; padding: 6px; }
.rxs-tip li { padding: 8px 10px 8px 30px; border-radius: 8px; position: relative; }
.rxs-tip li::before { content: ""; position: absolute; left: 10px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: #e7f4ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%231f9d55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.rxs-tip li + li { border-top: 1px solid #eef2ef; }
.rxs-tip li b { display: block; font-size: 13px; }
.rxs-tip li span { display: block; font-size: 12px; color: #6b7a73; margin-top: 1px; }
@media (max-width: 760px) {
  .rxs-badge { order: -1; width: 100%; justify-content: center; flex-wrap: wrap; }
  .rxs-tip { width: min(300px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) { .rxs-st i { animation: none; } .rxs-tip { transition: none; } }

/* --- Admin page ------------------------------------------------------------ */
.pro-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; vertical-align: 4px; color: #2a1e05; background: #c9a24a; border-radius: 4px; padding: 2px 6px; }
.sh-status {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 20px 22px; border-radius: 12px; color: #fff; margin-bottom: 18px;
}
.sh-status.ok { background: linear-gradient(120deg, #136b3c, #1f9d55); }
.sh-status.atk { background: linear-gradient(120deg, #8f2a1f, #d0463b); }
.sh-status.off { background: linear-gradient(120deg, #3d4650, #5b6670); }
.sh-icon { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.sh-text h2 { font-size: 20px; margin: 0 0 4px; color: #fff; }
.sh-text p { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; max-width: 70ch; }
.sh-status .btn-ghost { background: #fff; color: #1d2a25; border-color: #fff; box-shadow: none; }
.sh-status .btn-ghost:disabled { opacity: .5; cursor: not-allowed; }

.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.sh-sub { padding-left: 24px; margin: -2px 0 8px; }
.sh-sub .check { margin-bottom: 6px; font-size: 13.5px; }

.sh-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 150px; align-items: end; }
.sh-day { display: flex; flex-direction: column; height: 100%; gap: 6px; }
.sh-day span { font-size: 11px; text-align: center; opacity: .65; }
.sh-cols { flex: 1; display: flex; gap: 3px; align-items: flex-end; justify-content: center; border-bottom: 1px solid rgba(128,128,128,.25); }
.sh-cols i { width: 22%; max-width: 14px; min-height: 2px; border-radius: 3px 3px 0 0; }
.c1 { background: #4c8bd6; } .c2 { background: #d0463b; } .c3 { background: #d8a33a; }
.sh-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12.5px; opacity: .8; }
.sh-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

.sh-prev { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-prev form { width: 100%; }
.sh-path { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.sh-ev-pass { color: #137443; background: #e7f4ec; border-color: #c6e3d2; }
.badge.sh-ev-challenge { color: #2b5f9e; background: #e9eff7; border-color: #c9d6e8; }
.badge.sh-ev-block, .badge.sh-ev-ban, .badge.sh-ev-waf, .badge.sh-ev-bot, .badge.sh-ev-fail { color: #a3352b; background: #fbecea; border-color: #ebc6c0; }
.badge.sh-ev-limit, .badge.sh-ev-attack { color: #8a5a0e; background: #fbf3e1; border-color: #ecdcb5; }
.sh-help summary { cursor: pointer; list-style: none; }
.sh-help summary::-webkit-details-marker { display: none; }
.sh-help summary::after { content: "+"; margin-left: auto; font-size: 18px; line-height: 1; opacity: .6; }
.sh-help[open] summary::after { content: "–"; }

@media (max-width: 980px) {
  .sh-grid { grid-template-columns: 1fr; }
  .sh-status { grid-template-columns: auto 1fr; }
  .sh-status form { grid-column: 1 / -1; }
}
