* { box-sizing: border-box; }

:root{
  --pink: #ff3366;
  --orange: #ff6b35;
  --black: #000;
  --white: #fff;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #111;
  background: linear-gradient(135deg,rgba(255, 51, 102, 0.75),rgba(255, 107, 53, 0.76));
}
.wrap { max-width: 1900px; margin: 0 auto; padding: 18px; }
.top {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 0;
  border: 4px solid var(--black);
  box-shadow:
    8px 8px 0 var(--black),
    16px 16px 0 rgba(255, 51, 102, 0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
h1 { margin: 0; font-size: 22px; }
.muted { color: #666; font-size: 12px; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
select, input {
    border: 3px solid var(--black);
    padding: 10px 10px;
    border-radius: 0;
    background: rgba(255,255,255,0.8);
    font-weight: 700;
    color: var(--black);
    box-shadow: 4px 4px 0 var(--black);
    transition: all .25s cubic-bezier(0.68,-0.55,0.265,1.55);
}
select:focus, input:focus{
   outline: none;
   transform: translate(2px,2px);
   box-shadow: 2px 2px 0 var(--black);
 }
 .btn {
  border: 0;
  padding: 11px 14px;
  border-radius: 0;
  background: var(--black);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.3);
  transition: all .25s cubic-bezier(0.68,-0.55,0.265,1.55);
 }
  .btn:hover {
     transform: translate(2px,2px);
     box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
     background: #333;
   }

main { margin-top: 12px; }
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 12px;
  overflow: hidden;
}
.tbl th, .tbl td {
  padding: 10px 12px;
  border-bottom: 3px solid var(--black);
  vertical-align: middle;
  font-size: 13px;
}
.tbl th {
  text-align: left;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
    text-transform: uppercase;
      letter-spacing: .6px;
}
.tbl tr:last-child td { border-bottom: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 3px solid var(--black);
  background: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 800;
}
.pill.ok {
  border-color: var(--black);
  color: #00864c;
}

tr.flash td { background: rgba(255, 255, 255, 0.95); }
.foot { margin-top: 10px; padding: 8px 2px; }

.bulkbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 12px 0;
  padding: 12px 14px;
  background:#fff;
  border-radius: 12px;
  border: 1px solid #e7e9ee;
}
.bulk-actions{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

.pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 12px 0 4px;
  padding: 10px 12px;
  background:#fff;
  border-radius: 12px;
  border: 1px solid #e7e9ee;
}
.pager-actions{ display:flex; gap:8px; align-items:center; }
.btn.btn-link{
  text-decoration:none;
  display:inline-block;
}
.btn.disabled{
  pointer-events:none;
  opacity:.45;
}

.contain-log {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  margin: auto;
  align-items:center;
}

/* From Uiverse.io by craig_8499 */ 
.login-container {
  position: relative;
  perspective: 1000px;
  width: 200px;
}

.login-card {
  position: relative;
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, #ff3366, #ff6b35);
  border: 4px solid #000;
  box-shadow:
    8px 8px 0 #000,
    16px 16px 0 rgba(255, 51, 102, 0.3);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
}

.login-card:hover {
  height: 240px;
  transform: translateZ(20px) rotateX(5deg) rotateY(-5deg);
  box-shadow:
    12px 12px 0 #000,
    24px 24px 0 rgba(255, 51, 102, 0.4),
    0 0 50px rgba(255, 51, 102, 0.6);
}

.login-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: inherit;
  transition: all 0.4s ease;
}

.login-text {
  color: #000;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.login-card:hover .login-text {
  opacity: 0;
  transform: translateY(-30px) scale(0.8);
}

.login-form {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-card:hover .login-form {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.input-group {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.login-input {
  width: 100%;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 3px solid #000;
  font-weight: 700;
  color: #000;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-input:focus {
  outline: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.login-input::placeholder {
  color: #000;
  opacity: 0.6;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
  background: #333;
}

/* Glitch effect overlay */
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-card:hover::before {
  left: 100%;
}

/* Brutalist geometric accent */
.login-card::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #000;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transition: all 0.6s ease;
}

.login-card:hover::after {
  transform: scale(1) rotate(0deg);
  background: rgb(246, 168, 116);
}

/* Pulse effect on container */
.login-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 51, 102, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: -1;
}

.login-card:hover ~ .login-container::before,
.login-container:hover::before {
  width: 400px;
  height: 400px;
}


      .filters-row input { width: 100%; box-sizing: border-box; padding: 6px 8px; font-size: 12px; }
      .btn-sm { padding: 6px 10px; font-size: 12px; width: 100%; }
      .modal { position: fixed; inset: 0; z-index: 9999; }
      .modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
      .modal__card { position: relative; max-width: 980px; margin: 6vh auto; background: #0e1621; color: #e8eef6; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
      .modal__head { display:flex; align-items:center; justify-content:space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
      .modal__pre { margin: 0; padding: 14px 16px; max-height: 70vh; overflow: auto; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }

            th.sortable { cursor: pointer; user-select: none; }
     th.sortable:hover { text-decoration: underline; }
     th.sortable .sortMark { opacity: .6; margin-left: 6px; font-size: 11px; }
   
     #bulkApply:hover {
      background-color: rgba(88, 232, 115, 0.99);
      color: var(--black);
     } 

     .blue:hover {
      background-color: rgba(67, 70, 235, 0.99);
      color: var(--white);
     }

     .red:hover {
      background-color: rgba(222, 64, 64, 0.99);
     }

     .grey {
      color: var(--black);
      background-color: rgba(255, 255, 255, 0.99);
     }

     .pill, .status, .geolang {
      display: flex;
      justify-content: center;
      text-align: center;
      vertical-align: middle;
      align-items: center;
    }


   /* --- Logs page */
.logs-grid{
   display: grid;
   grid-template-columns: 1fr;
   gap: 12px;
   margin-top: 12px;
  }

  
  .logs-card{
    background: rgba(255, 255, 255, 0.92);
    border: 4px solid var(--black);
    box-shadow: 8px 8px 0 var(--black);
    padding: 12px;
    max-width: 1864px;
  }
  
  .logs-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .logs-actions{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
  
  .terminal{
    background: #0e1621;
    color: #e8eef6;
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0 var(--black);
    padding: 12px;
    height: 62vh;
    overflow: auto;
    white-space: pre;
    line-height: 1.35;
  }
  
  .logs-foot{ margin-top: 10px; }
  
  .partner-form{
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0 var(--black);
    padding: 10px;
    background: rgba(255,255,255,0.85);
  }
  
  .partner-row{
    display:grid;
    grid-template-columns: 220px 140px 1fr;
    gap: 8px;
    align-items:center;
    margin-bottom: 8px;
  }
  
  @media (max-width: 900px){
    .partner-row{ grid-template-columns: 1fr; }
  }
  
  .tbl input{
    width: 100%;
    box-sizing: border-box;
  }