/* Admin Homepage Banner Manager V1 */
#penta-home-banner-admin-tile {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  border: 1px solid rgba(244,114,182,.25);
  background: rgba(190,36,220,.10);
  color: #f5d0fe;
  padding: 4px 6px;
  font: 700 10px/1.2 "Poppins", sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
#penta-home-banner-admin-tile:hover { border-color: rgba(232,121,249,.5); background: rgba(190,36,220,.17); }
#penta-home-banner-admin-tile svg { width: 13px; height: 13px; fill: currentColor; flex: 0 0 auto; }

.penta-bm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3,7,18,.78);
  backdrop-filter: blur(8px);
  font-family: "Poppins", sans-serif;
}
.penta-bm-modal {
  width: min(920px, 100%);
  max-height: min(880px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid #27272a;
  border-radius: 20px;
  background: #0f1118;
  color: #fff;
  box-shadow: 0 32px 90px -48px #000;
}
.penta-bm-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #27272a;
  background: rgba(15,17,24,.96);
  backdrop-filter: blur(10px);
}
.penta-bm-kicker { color: #e879f9; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.penta-bm-title { margin-top: 4px; font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.penta-bm-sub { margin-top: 3px; max-width: 650px; color: #a1a1aa; font-size: 12px; font-weight: 600; }
.penta-bm-close { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #3f3f46; border-radius: 10px; background: #18181b; color: #d4d4d8; font-size: 22px; line-height: 1; cursor: pointer; }
.penta-bm-body { padding: 16px 18px 18px; }
.penta-bm-note { margin-bottom: 14px; padding: 10px 12px; border: 1px solid rgba(190,36,220,.22); border-radius: 12px; background: rgba(190,36,220,.07); color: #d4d4d8; font-size: 11px; font-weight: 600; }
.penta-bm-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.penta-bm-card { overflow: hidden; border: 1px solid #27272a; border-radius: 15px; background: #13151d; }
.penta-bm-preview { position: relative; aspect-ratio: 2.7272727 / 1; overflow: hidden; background: #090b10; }
.penta-bm-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.penta-bm-slot { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(10,10,10,.8); color: #fff; font-size: 10px; font-weight: 900; }
.penta-bm-fields { padding: 11px; }
.penta-bm-label { display: block; margin-bottom: 5px; color: #d4d4d8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.penta-bm-input { width: 100%; min-width: 0; border: 1px solid #3f3f46; border-radius: 9px; background: #090b10; color: #fff; padding: 9px 10px; font: 600 11px/1.35 "Poppins", sans-serif; outline: none; }
.penta-bm-input:focus { border-color: #be24dc; box-shadow: 0 0 0 3px rgba(190,36,220,.10); }
.penta-bm-row { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.penta-bm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; border: 1px solid #3f3f46; border-radius: 9px; background: #18181b; color: #e4e4e7; padding: 7px 10px; font: 800 10px/1 "Poppins", sans-serif; cursor: pointer; transition: .2s ease; }
.penta-bm-btn:hover { border-color: #52525b; background: #202024; }
.penta-bm-btn.primary { border-color: #be24dc; background: #be24dc; color: #fff; }
.penta-bm-btn.primary:hover { filter: brightness(1.06); }
.penta-bm-btn:disabled { opacity: .55; cursor: wait; }
.penta-bm-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #a1a1aa; font-size: 10px; font-weight: 700; }
.penta-bm-switch input { accent-color: #be24dc; }
.penta-bm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #27272a; }
.penta-bm-status { min-height: 18px; color: #a1a1aa; font-size: 11px; font-weight: 650; }
.penta-bm-status.ok { color: #86efac; }
.penta-bm-status.err { color: #fda4af; }

@media (max-width: 760px) {
  .penta-bm-backdrop { padding: 8px; align-items: flex-end; }
  .penta-bm-modal { max-height: 92vh; border-radius: 18px 18px 10px 10px; }
  .penta-bm-grid { grid-template-columns: 1fr; }
  .penta-bm-head { padding: 15px; }
  .penta-bm-body { padding: 13px 15px 16px; }
  .penta-bm-preview { max-height: 180px; }
  .penta-bm-foot { align-items: stretch; flex-direction: column; }
  .penta-bm-foot .penta-bm-btn { width: 100%; }
}
