/* ===== YouTube media application button ===== */
.island-actions .island-media {
  color: #fff;
  background: rgba(224, 36, 36, 0.14);
  border: 1px solid rgba(224, 36, 36, 0.45);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.island-actions .island-media:hover {
  background: #e02424;
  box-shadow: 0 0 14px rgba(224, 36, 36, 0.55);
}
.island-actions .island-media.is-done {
  background: rgba(46, 160, 67, 0.16);
  border-color: rgba(46, 160, 67, 0.5);
}

/* ===== Application modal ===== */
.dv-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dv-modal.is-open { display: flex; }
.dv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.dv-modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #0d0d0f;
  border: 1px solid rgba(224, 36, 36, 0.4);
  border-radius: 14px;
  padding: 24px 22px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  animation: dv-modal-in 0.18s ease;
}
@keyframes dv-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.dv-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.dv-modal-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.dv-modal-x {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: transparent;
  color: #9aa0a6;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.dv-modal-x:hover { color: #e02424; border-color: rgba(224, 36, 36, 0.6); }
.dv-modal-sub { color: #b9bdc4; font-size: 13.5px; margin: 4px 0 10px; }
.dv-modal-sub b { color: #e02424; }
.dv-modal-crit {
  margin: 0 0 14px;
  padding: 10px 12px 10px 30px;
  background: rgba(224, 36, 36, 0.07);
  border: 1px solid rgba(224, 36, 36, 0.25);
  border-radius: 10px;
  color: #d7dade;
  font-size: 13px;
  line-height: 1.7;
}
.dv-modal-form { display: grid; gap: 12px; }
.dv-field { display: grid; gap: 6px; }
.dv-field span {
  font-size: 12.5px;
  color: #9aa0a6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dv-field input {
  width: 100%;
  padding: 11px 12px;
  background: #16161a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dv-field input:focus {
  border-color: #e02424;
  box-shadow: 0 0 0 3px rgba(224, 36, 36, 0.2);
}
.dv-field input.is-invalid { border-color: #e02424; }
.dv-modal-submit {
  margin-top: 2px;
  padding: 12px;
  border: none;
  border-radius: 9px;
  background: #e02424;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.dv-modal-submit:hover { background: #c81e1e; box-shadow: 0 6px 18px rgba(224, 36, 36, 0.4); }
.dv-modal-submit:disabled { opacity: 0.6; cursor: wait; }
.dv-modal-note { margin: 12px 0 0; font-size: 12px; color: #7d828a; text-align: center; }
.dv-modal .auth-msg { min-height: 18px; text-align: center; font-size: 13.5px; color: #b9bdc4; }
.auth-msg.is-error { color: #ff8080; }
.auth-msg.is-success { color: #4ade80; }

/* ===== Admin: media requests tab ===== */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 14px;
}
.admin-tab {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: transparent;
  color: #b9bdc4;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.admin-tab:hover { color: #fff; border-color: rgba(224, 36, 36, 0.5); }
.admin-tab.is-active {
  background: rgba(224, 36, 36, 0.16);
  border-color: #e02424;
  color: #fff;
}
.media-req {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.media-req-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.media-req-user { font-weight: 700; color: #fff; font-size: 15px; }
.media-req-date { font-size: 12px; color: #7d828a; }
.media-req-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px 14px;
  font-size: 13px;
  color: #c9cdd3;
  margin-bottom: 10px;
}
.media-req-fields b { color: #9aa0a6; font-weight: 500; }
.media-req-status { font-size: 12.5px; font-weight: 600; }
.media-req-status.is-pending { color: #e0b341; }
.media-req-status.is-approved { color: #2ea043; }
.media-req-status.is-rejected { color: #e02424; }
.media-req-actions { display: flex; gap: 8px; }
.btn-media {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn-media:disabled { opacity: 0.5; cursor: default; }
.btn-media-approve { background: #2ea043; color: #fff; }
.btn-media-approve:hover:not(:disabled) { background: #268a39; }
.btn-media-reject { background: transparent; color: #e02424; border-color: rgba(224, 36, 36, 0.55); }
.btn-media-reject:hover:not(:disabled) { background: rgba(224, 36, 36, 0.14); }
.media-empty { color: #7d828a; font-size: 14px; text-align: center; padding: 18px 0; }

/* ===== Install page ===== */
.install-card {
  width: min(560px, calc(100% - 32px));
  margin: 110px auto 60px;
  background: #0d0d0f;
  border: 1px solid rgba(224, 36, 36, 0.35);
  border-radius: 16px;
  padding: 30px 28px;
  text-align: center;
}
.install-card img { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 12px; }
.install-card h1 { font-size: 26px; color: #fff; font-weight: 800; margin: 0 0 8px; }
.install-card p { color: #b9bdc4; font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; }
.install-meta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.install-meta span {
  font-size: 12.5px;
  color: #9aa0a6;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 10px;
  border-radius: 999px;
}
.install-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #e02424;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.install-btn:hover:not(:disabled) { background: #c81e1e; box-shadow: 0 8px 24px rgba(224, 36, 36, 0.45); }
.install-btn:disabled { opacity: 0.65; cursor: wait; }
.install-progress { display: none; margin-top: 16px; }
.install-progress.is-on { display: block; }
.install-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.install-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #e02424, #ff6b4a);
  border-radius: 999px;
  transition: width 0.2s ease;
}
.install-status { margin-top: 8px; font-size: 13.5px; color: #b9bdc4; min-height: 18px; }
.install-status.is-error { color: #e02424; }
.install-note { margin-top: 16px; font-size: 12.5px; color: #7d828a; }
