/* ==========================================================
   Nabu APK Update Modal (in-app)
   ========================================================== */

.nabu-apk-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:1000000;
  display:none;
  background:rgba(0,0,0,0.62);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

/* show when JS adds .nabu-visible */
.nabu-apk-modal-backdrop.nabu-visible{
  display:block;
}

.nabu-apk-modal-wrap{
  position:absolute;
  left:16px;
  right:16px;
  top:16%;
  margin:0 auto;
  max-width:560px;
}

.nabu-apk-modal-card{
  background:rgba(28,28,28,0.92);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:24px;
  padding:18px 18px 16px 18px;
  box-shadow:0 22px 60px rgba(0,0,0,0.70);
}

.nabu-apk-modal-top{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
}

.nabu-apk-modal-title{
  font-weight:900;
  font-size:20px;
  line-height:1.12;
  letter-spacing:0.2px;
}

.nabu-apk-modal-rows{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.nabu-apk-row{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.nabu-apk-row-label{
  font-size:15px;
  font-weight:900;
  opacity:.92;
  letter-spacing:.2px;
}

.nabu-apk-row-value{
  font-size:18px;
  font-weight:900;
  line-height:1.1;
}

.nabu-apk-row-value code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:17px;
  font-weight:900;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  padding:6px 10px;
  border-radius:14px;
  display:inline-block;
}

.nabu-apk-hint{
  margin-top:10px;
  font-size:14px;
  opacity:.78;
  line-height:1.35;
}

.nabu-apk-modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:16px;
  flex-wrap:wrap;
}

/* Buttons */
.nabu-apk-btn{
  -webkit-appearance:none;
  appearance:none;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  color:#fff;
  border-radius:16px;
  padding:10px 14px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 10px 24px rgba(0,0,0,0.35);
  transition:transform .12s ease, filter .12s ease, border-color .12s ease, background .12s ease;
  user-select:none;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.nabu-apk-btn:active{
  transform:translateY(1px);
  filter:brightness(1.06);
}

.nabu-apk-btn:focus{ outline:none; }

.nabu-apk-btn-green{
  border-color:rgba(80, 200, 120, 0.55);
  background:rgba(80, 200, 120, 0.16);
}

.nabu-apk-btn-orange{
  border-color:rgba(190, 144, 93, 0.70);
  background:rgba(190, 144, 93, 0.16);
}

.nabu-apk-btn-red{
  border-color:rgba(255, 90, 90, 0.55);
  background:rgba(255, 90, 90, 0.12);
  min-width:44px;
  justify-content:center;
}

.nabu-apk-icon{
  font-size:14px;
  line-height:1;
}

/* --- Force modal buttons to ignore any global "glass" active/hover tints --- */
.nabu-apk-modal-backdrop .nabu-apk-btn{
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.14) !important;
  filter: none !important;
}

/* Keep close button red even when pressed */
.nabu-apk-modal-backdrop .nabu-apk-btn-red{
  border-color: rgba(255, 90, 90, 0.55) !important;
  background: rgba(255, 90, 90, 0.12) !important;
}
.nabu-apk-modal-backdrop .nabu-apk-btn-red:active{
  background: rgba(255, 90, 90, 0.18) !important;
  border-color: rgba(255, 90, 90, 0.75) !important;
  filter: saturate(1.25) brightness(1.08) !important;
}

/* Keep snooze orange even when pressed */
.nabu-apk-modal-backdrop .nabu-apk-btn-orange{
  border-color: rgba(190, 144, 93, 0.70) !important;
  background: rgba(190, 144, 93, 0.16) !important;
}
.nabu-apk-modal-backdrop .nabu-apk-btn-orange:active{
  background: rgba(190, 144, 93, 0.22) !important;
  border-color: rgba(190, 144, 93, 0.85) !important;
  filter: saturate(1.20) brightness(1.06) !important;
}

/* Keep download green; on press make it MORE saturated (no bronze) */
.nabu-apk-modal-backdrop .nabu-apk-btn-green{
  border-color: rgba(80, 200, 120, 0.55) !important;
  background: rgba(80, 200, 120, 0.16) !important;
}
.nabu-apk-modal-backdrop .nabu-apk-btn-green:active{
  background: rgba(80, 200, 120, 0.28) !important;
  border-color: rgba(80, 200, 120, 0.92) !important;
  filter: saturate(1.55) brightness(1.10) !important;
}

/* Prevent any inherited focus ring/tint from other button systems */
.nabu-apk-modal-backdrop .nabu-apk-btn:focus,
.nabu-apk-modal-backdrop .nabu-apk-btn:focus-visible{
  outline: none !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35) !important;
}

/* Installed (old) version */
.nabu-apk-ver-old {
    color: #b55252;            /* muted red */
    font-weight: 700;
    text-decoration: line-through;
    opacity: 0.88;
    text-shadow: none;
}

/* New available version */
.nabu-apk-ver-new {
    color: #22c55e;            /* clean green */
    font-weight: 800;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}
