#galaxy-broadcast-admin-page {
  --gb-purple: #7c3aed;
  --gb-purple2: #5b21b6;
  --gb-bg: #f5f4fa;
  --gb-dark: #11131a;
  --gb-border: #dedbe8;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--gb-left, 260px);
  z-index: 99990;
  overflow: auto;
  background: var(--gb-bg);
  font-family: inherit;
  color: #17171d;
}

#galaxy-broadcast-admin-page * {
  box-sizing: border-box;
}

.gb-head {
  background: linear-gradient(135deg,#111827,#24104d);
  color: white;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.gb-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.gb-head p {
  margin: 5px 0 0;
  opacity: .78;
}

.gb-back {
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: white;
  border-radius: 9px;
  padding: 10px 15px;
  cursor: pointer;
}

.gb-wrap {
  width: min(1440px, calc(100% - 36px));
  margin: 22px auto 50px;
}

.gb-grid {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0,1fr);
  gap: 20px;
  align-items: start;
}

.gb-panel {
  background: #fff;
  border: 1px solid var(--gb-border);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(20,15,45,.07);
  overflow: hidden;
}

.gb-panel-head {
  padding: 17px 19px;
  border-bottom: 1px solid #eceaf2;
}

.gb-panel-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.gb-panel-body {
  padding: 18px;
}

.gb-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px;
  background: #f8f7fc;
  border: 1px solid #ebe8f3;
  border-radius: 12px;
  margin-bottom: 18px;
}

.gb-toggle {
  position: relative;
  width: 54px;
  height: 29px;
  flex: 0 0 54px;
}

.gb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gb-toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: #bbb8c8;
  cursor: pointer;
  transition: .2s;
}

.gb-toggle-slider:before {
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  transition: .2s;
  box-shadow: 0 2px 5px rgba(0,0,0,.2);
}

.gb-toggle input:checked + .gb-toggle-slider {
  background: #22c55e;
}

.gb-toggle input:checked + .gb-toggle-slider:before {
  transform: translateX(25px);
}

.gb-field {
  margin-bottom: 15px;
}

.gb-field label {
  display: block;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 6px;
}

.gb-input,
.gb-select,
.gb-textarea {
  width: 100%;
  border: 1px solid #d9d6e3;
  border-radius: 9px;
  background: #fff;
  padding: 10px 11px;
  outline: none;
  font: inherit;
}

.gb-input:focus,
.gb-select:focus,
.gb-textarea:focus {
  border-color: var(--gb-purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,.09);
}

.gb-textarea {
  min-height: 120px;
  resize: vertical;
}

.gb-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gb-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.gb-tab {
  border: 1px solid #ded9ec;
  background: #f8f7fc;
  border-radius: 9px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 750;
}

.gb-tab.active {
  background: var(--gb-purple);
  border-color: var(--gb-purple);
  color: white;
}

.gb-presets {
  display: grid;
  grid-template-columns: repeat(3,minmax(150px,1fr));
  gap: 11px;
  max-height: 560px;
  overflow: auto;
  padding: 2px;
}

.gb-preset {
  position: relative;
  min-height: 116px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  color: white;
  padding: 13px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 5px 13px rgba(0,0,0,.12);
}

.gb-preset:hover {
  transform: translateY(-1px);
}

.gb-preset.selected {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}

.gb-preset .emoji {
  font-size: 27px;
  position: absolute;
  top: 10px;
  left: 11px;
}

.gb-preset strong {
  font-size: 14px;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

.gb-preset small {
  font-size: 10px;
  opacity: .9;
  margin-top: 4px;
}

.gb-preview-wrap {
  padding: 18px;
  background:
    radial-gradient(circle at 20% 10%,rgba(124,58,237,.15),transparent 28%),
    #e9e7ef;
}

.gb-preview {
  position: relative;
  min-height: 310px;
  border-radius: 17px;
  padding: 30px;
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

.gb-preview-inner {
  position: relative;
  z-index: 2;
  width: min(620px,100%);
}

.gb-preview-emoji {
  font-size: 46px;
  margin-bottom: 8px;
}

.gb-preview h3 {
  margin: 0 0 12px;
  font-size: 31px;
  line-height: 1.05;
}

.gb-preview-message {
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 560px;
}

.gb-preview-button {
  display: inline-block;
  min-width: 190px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent,#7c3aed);
  color: white;
  font-weight: 800;
}

.gb-close-preview {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 3;
}

.gb-actions {
  display: flex;
  gap: 9px;
  margin-top: 15px;
}

.gb-btn {
  border: 0;
  border-radius: 9px;
  padding: 11px 15px;
  cursor: pointer;
  font-weight: 800;
}

.gb-btn-primary {
  background: linear-gradient(135deg,#7c3aed,#5b21b6);
  color: white;
  flex: 1;
}

.gb-btn-secondary {
  background: #eeeaf7;
  color: #3d3159;
}

.gb-status {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
}

.gb-status.ok { color: #138a42; }
.gb-status.error { color: #c92a2a; }

.gb-link-options {
  display: none;
}

.gb-admin-menu-link {
  cursor: pointer !important;
}

.theme-standard { background: linear-gradient(135deg,#09090b,#24104d); --accent:#7c3aed; }
.theme-important { background: linear-gradient(135deg,#160509,#3c0916 60%,#111); --accent:#ef3340; }
.theme-hours { background: linear-gradient(135deg,#15072a,#4c1d95); --accent:#8b5cf6; }
.theme-maintenance { background: linear-gradient(135deg,#101827,#29364e); --accent:#7c3aed; }
.theme-inventory { background: linear-gradient(135deg,#21123d,#4c1d95); --accent:#a855f7; }
.theme-restock { background: linear-gradient(135deg,#061b16,#114b3b); --accent:#22c55e; }
.theme-update { background: linear-gradient(135deg,#091633,#153d77); --accent:#3b82f6; }
.theme-blank { background: linear-gradient(135deg,#101010,#292929); --accent:#7c3aed; }

.theme-newyear { background: radial-gradient(circle at 20% 20%,#aa7d16 0 1px,transparent 2px),linear-gradient(135deg,#050505,#251600); --accent:#d6a72b; }
.theme-mlk { background: linear-gradient(135deg,#171717,#5d4037); --accent:#d6a760; }
.theme-presidents { background: linear-gradient(135deg,#081a3d,#711526); --accent:#2563eb; }
.theme-valentine { background: radial-gradient(circle at 20% 20%,#ff7aa2 0 4px,transparent 5px),linear-gradient(135deg,#7a102c,#e11d48); --accent:#ff4f87; }
.theme-stpatrick { background: linear-gradient(135deg,#052e16,#15803d); --accent:#22c55e; }
.theme-easter { background: linear-gradient(135deg,#86d9ff,#ffb7df); --accent:#ec4899; color:#5b2147; }
.theme-mothers { background: linear-gradient(135deg,#7a2247,#f472b6); --accent:#ec4899; }
.theme-memorial { background: linear-gradient(135deg,#0b2b5e,#8b1525); --accent:#2563eb; }
.theme-fathers { background: linear-gradient(135deg,#09264a,#1d4ed8); --accent:#3b82f6; }
.theme-juneteenth { background: linear-gradient(135deg,#111,#b91c1c 45%,#166534); --accent:#ef4444; }
.theme-july4 { background: linear-gradient(135deg,#071d47,#b91c1c); --accent:#2563eb; }
.theme-labor { background: linear-gradient(135deg,#0a2855,#3b5998); --accent:#2563eb; }
.theme-indigenous { background: linear-gradient(135deg,#5b2c16,#b45309); --accent:#f59e0b; }
.theme-halloween { background: linear-gradient(135deg,#170326,#6b21a8 50%,#f97316); --accent:#f97316; }
.theme-veterans { background: linear-gradient(135deg,#0a2454,#7f1d1d); --accent:#dc2626; }
.theme-thanksgiving { background: linear-gradient(135deg,#3d1807,#b45309 55%,#5b2106); --accent:#f59e0b; }
.theme-blackfriday { background: linear-gradient(135deg,#050505,#4c0519); --accent:#ef4444; }
.theme-cybermonday { background: linear-gradient(135deg,#05021c,#1d4ed8 55%,#7c3aed); --accent:#6366f1; }
.theme-christmaseve { background: linear-gradient(135deg,#063b2a,#8b1d2c); --accent:#dc2626; }
.theme-christmas { background: linear-gradient(135deg,#064e3b,#991b1b); --accent:#22c55e; }
.theme-hanukkah { background: linear-gradient(135deg,#071e52,#2563eb); --accent:#60a5fa; }
.theme-kwanzaa { background: linear-gradient(135deg,#111,#b91c1c 50%,#166534); --accent:#ef4444; }
.theme-newyearseve { background: linear-gradient(135deg,#050505,#32220a); --accent:#d6a72b; }

@media (max-width: 1050px) {
  #galaxy-broadcast-admin-page {
    left: 0;
  }

  .gb-grid {
    grid-template-columns: 1fr;
  }

  .gb-presets {
    grid-template-columns: repeat(2,minmax(140px,1fr));
  }
}

@media (max-width: 600px) {
  .gb-wrap {
    width: calc(100% - 20px);
  }

  .gb-head {
    padding: 20px 15px;
  }

  .gb-two {
    grid-template-columns: 1fr;
  }

  .gb-presets {
    grid-template-columns: 1fr 1fr;
  }

  .gb-preview {
    min-height: 280px;
    padding: 22px 14px;
  }

  .gb-preview h3 {
    font-size: 25px;
  }
}
