/* Decorly: announcement box + maintenance mode (set from the admin panel, drawn by notice.js) */

/* ---------- announcement: a box at the bottom right, gone after 5 s ---------- */
.dl-toast {
  position: fixed; z-index: 90; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  width: min(360px, calc(100vw - 32px)); overflow: hidden; border-radius: 16px;
  background: linear-gradient(180deg, #1d1826, #131016); border: 1px solid #2f2839; color: #f4f3f6;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(161, 98, 248, .12);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.dl-toast.in { opacity: 1; transform: none; }
.dl-t-body { display: flex; gap: 12px; padding: 14px 40px 16px 14px; }
.dl-t-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-size: 18px; background: var(--dl-soft); }
.dl-t-txt { display: grid; gap: 3px; min-width: 0; }
.dl-t-txt b { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dl-acc); }
.dl-t-txt p { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.dl-t-go { justify-self: start; margin-top: 6px; padding: 6px 13px; border-radius: 999px; background: var(--dl-acc); color: var(--dl-on);
  font-size: 13px; font-weight: 800; text-decoration: none; }
.dl-t-go:hover { filter: brightness(1.1); }
.dl-t-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent;
  color: #a09fa6; font-size: 20px; line-height: 1; cursor: pointer; }
.dl-t-x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.dl-t-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--dl-acc); transform-origin: left;
  animation: dl-shrink 5s linear forwards; }
@keyframes dl-shrink { to { transform: scaleX(0); } }
.dl-t-violet { --dl-acc: #a162f8; --dl-soft: rgba(161, 98, 248, .18); --dl-on: #fff; }
.dl-t-pink   { --dl-acc: #ff7fb0; --dl-soft: rgba(255, 127, 176, .16); --dl-on: #2a0716; }
.dl-t-green  { --dl-acc: #3ddc97; --dl-soft: rgba(61, 220, 151, .15); --dl-on: #06140e; }
.dl-t-gold   { --dl-acc: #ffd54a; --dl-soft: rgba(255, 213, 74, .15); --dl-on: #2a1a00; }

/* ---------- maintenance ---------- */
/* top bar */
.dl-bars { position: relative; z-index: 30; }
.dl-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px;
  padding: 9px max(16px, env(safe-area-inset-right, 0px)) 9px max(16px, env(safe-area-inset-left, 0px));
  font: 500 13.5px/1.45 "Plus Jakarta Sans", system-ui, sans-serif; text-align: center; }
.dl-bar p { margin: 0; min-width: 0; display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.dl-bar-maint { color: #e9e2f5; border-bottom: 1px solid #2c2338;
  background: linear-gradient(90deg, rgba(161, 98, 248, .16), rgba(255, 127, 176, .10)), #110e15; }
.dl-bar-maint b { color: #fff; font-weight: 700; }
.dl-sep { color: #6e6d74; }
.dl-bar-left { color: #ffd54a; font-weight: 600; }
.dl-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffb547; box-shadow: 0 0 0 0 rgba(255, 181, 71, .6); animation: dl-ping 1.8s infinite; }
@keyframes dl-ping { 70% { box-shadow: 0 0 0 7px rgba(255, 181, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0); } }

/* Discord / Telegram buttons */
.dl-join { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.dl-jbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 12px; color: #fff;
  text-decoration: none; font: 700 14.5px "Plus Jakarta Sans", system-ui, sans-serif; transition: filter .15s, transform .15s; }
.dl-jbtn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.dl-jbtn svg { width: 18px; height: 18px; fill: currentColor; }
.dl-dc { background: #5865f2; box-shadow: 0 10px 24px -12px rgba(88, 101, 242, .9); }
.dl-tg { background: #229ed9; box-shadow: 0 10px 24px -12px rgba(34, 158, 217, .9); }
.dl-join-sm { display: inline-flex; width: auto; gap: 6px; }
.dl-join-sm .dl-jbtn { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; gap: 6px; box-shadow: none; }
.dl-join-sm .dl-jbtn svg { width: 14px; height: 14px; }

/* buy buttons look paused */
.dl-maint #mBuy, .dl-maint #mAdd, .dl-maint #cartCheckout, .dl-maint #tGo { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

/* the notice card (popup + checkout page) */
.dl-pop { position: fixed; inset: 0; margin: auto; width: min(460px, calc(100vw - 32px)); height: fit-content; max-height: calc(100vh - 32px);
  padding: 0; border: 0; background: transparent; overflow: auto; }
.dl-pop::backdrop { background: rgba(5, 4, 7, .75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dl-mbox { position: relative; overflow: hidden; border-radius: 24px; background: #121015; border: 1px solid #2a2531; color: #f4f3f6;
  box-shadow: 0 40px 90px -30px #000, 0 0 0 1px rgba(161, 98, 248, .12); font-family: "Plus Jakarta Sans", system-ui, sans-serif; text-align: left; }
.dl-mart { position: relative; height: 128px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, rgba(161, 98, 248, .55), transparent 62%),
              radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 18px 18px, #17121e; }
.dl-mart::after { content: ""; position: absolute; inset: auto 0 0; height: 40px; background: linear-gradient(transparent, #121015); }
.dl-mic { position: relative; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px;
  background: linear-gradient(145deg, #b17cfa, #7c3fe4); box-shadow: 0 18px 40px -12px rgba(161, 98, 248, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.dl-gear { width: 40px; height: 40px; fill: #fff; animation: dl-spin 6s linear infinite; }
@keyframes dl-spin { to { transform: rotate(360deg); } }
.dl-mbody { display: grid; gap: 14px; padding: 4px 26px 26px; }
.dl-mpill { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(196, 166, 251, .35); background: rgba(161, 98, 248, .12); color: #c4a6fb; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.dl-mpill i { width: 11px; height: 11px; background: #ff7fb0; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.dl-mtitle { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.dl-mtitle em { font-style: normal; background: linear-gradient(90deg, #c4a6fb, #a162f8 55%, #ff7fb0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-mtext { margin: 0; color: #a09fa6; font-size: 15px; line-height: 1.6; }
.dl-mcount { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #18141d; border: 1px solid #262030; }
.dl-mcount-l { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6e6d74; }
.dl-mcount-row { display: flex; gap: 8px; }
.dl-mcell { flex: 1; display: grid; justify-items: center; padding: 8px 4px; border-radius: 12px; background: #0f0d12; border: 1px solid #262030; }
.dl-mcell b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dl-mcell small { font-size: 11.5px; color: #a09fa6; font-weight: 600; }
.dl-mfacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-mfacts li { position: relative; padding-left: 26px; font-size: 14px; color: #d9d6df; line-height: 1.45; }
.dl-mfacts li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(61, 220, 151, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233ddc97' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 6.6-6.6 1.4 1.4z'/%3E%3C/svg%3E") center / 13px no-repeat; }
.dl-mjoin { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid #231e2a; font-size: 13.5px; font-weight: 600; color: #f4f3f6; }
.dl-mok { justify-self: center; margin-top: 2px; padding: 6px 10px; border: 0; background: none; color: #a09fa6;
  font: 600 14px "Plus Jakarta Sans", system-ui, sans-serif; cursor: pointer; text-decoration: none; border-radius: 8px; }
.dl-mok:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.dl-mline { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #a162f8, #ff7fb0); }

/* checkout page during maintenance: the form is hidden, the notice shows */
.dl-maint-co body.co main > :not(.dl-maint-screen) { display: none !important; }
.dl-maint-co body.co main { display: grid; place-items: center; min-height: 60vh; padding: 40px 16px; }
.dl-maint-screen { width: min(460px, 100%); }

@media (max-width: 560px) { .dl-sep { display: none; } .dl-bar p { flex-direction: column; } }
@media (max-width: 420px) {
  .dl-mbody { padding: 4px 18px 22px; } .dl-mtitle { font-size: 26px; } .dl-join { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-toast { transition: none; } .dl-t-bar { animation: none; } .dl-jbtn { transition: none; }
  .dl-gear, .dl-dot { animation: none; } .dl-pop::backdrop { backdrop-filter: none; }
}
