/* Welcome modal redesign (base/partials/_welcome_modal.html). Scoped under .wmv (Bootstrap modal). */
.wmv { --m-yellow: #FFDF00; --m-card: #171718; --m-inner: #111112; --m-raise: #1d1d20; --m-text: #f4f4f6; --m-muted: #a8a8ad; --m-dim: #6e6e74; --m-line: rgba(255, 255, 255, .08); --m-ease: cubic-bezier(.16, 1, .3, 1); --m-spring: cubic-bezier(.34, 1.56, .64, 1); }
.wmv .wmv-dialog { max-width: 720px; padding: 0 12px; }
.wmv .wmv-content { border: 0; background: transparent; box-shadow: none; }
.wmv a { text-decoration: none; }
.wmv h2, .wmv p { margin: 0; }
.wmv [hidden] { display: none !important; }
.modal-backdrop.show:has(+ .wmv), body:has(.wmv.show) .modal-backdrop.show { opacity: .75; backdrop-filter: blur(4px); }

.wmv .wm { position: relative; width: 100%; overflow: hidden; border: 1px solid rgba(255, 223, 0, .3); border-radius: 24px; background: var(--m-card); color: var(--m-text); box-shadow: 0 40px 90px -30px #000, 0 0 60px -30px rgba(255, 223, 0, .45); }
.wmv.show .wm { animation: wm-pop .55s var(--m-spring) both; }
@keyframes wm-pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.wmv .wm__x { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: all .2s; }
.wmv .wm__x:hover { border-color: transparent; background: var(--m-yellow); color: #111; transform: rotate(90deg); }

/* hero */
.wm-hero { position: relative; isolation: isolate; overflow: hidden; padding: 24px 24px 20px; }
.wm-hero__bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, #2a2610, #141416); background-position: center; background-size: cover; opacity: .4; }
.wm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 140% at 0% 0%, rgba(255, 223, 0, .22), transparent 60%), linear-gradient(180deg, rgba(23, 23, 24, .2), var(--m-card) 92%); }
.wm-hero__ghost { position: absolute; right: -10px; bottom: 4px; z-index: -1; color: transparent; font-size: 110px; font-weight: 900; line-height: .9; white-space: nowrap; -webkit-text-stroke: 1px rgba(255, 255, 255, .08); pointer-events: none; animation: wm-ghost 36s linear infinite; }
@keyframes wm-ghost { to { transform: translateX(-25%); } }
.wm-brand { display: flex; align-items: center; gap: 10px; padding-right: 44px; }
.wm-brand img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255, 223, 0, .4)); }
.wm-brand b { font-size: .92rem; font-weight: 900; }
.wm-off { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid rgba(255, 223, 0, .4); border-radius: 999px; background: rgba(255, 223, 0, .12); color: var(--m-yellow); font-size: .7rem; font-weight: 900; }
.wm-me { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.wm-me > div { min-width: 0; }
.wm-av { --p: 0; position: relative; flex: none; width: 72px; height: 72px; padding: 3px; border-radius: 20px; background: conic-gradient(var(--m-yellow) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); }
.wm-av img { width: 100%; height: 100%; border: 3px solid var(--m-card); border-radius: 17px; object-fit: cover; }
.wm-av b { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 5px; border: 3px solid var(--m-card); border-radius: 8px; background: var(--m-yellow); color: #111; font-size: .68rem; font-weight: 900; }
.wmv .wm-me h2 { overflow-wrap: anywhere; color: var(--m-text); font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.wm-me h2 span { color: var(--m-yellow); }
.wm-me p { margin-top: 5px; color: var(--m-muted); font-size: .92rem; }
.wm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wm-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--m-line); border-radius: 9px; background: rgba(0, 0, 0, .35); color: var(--m-muted); font-size: .76rem; font-weight: 700; backdrop-filter: blur(6px); }
.wm-chip .bi { color: var(--m-yellow); }
.wm-chip b { color: var(--m-text); }
.wm-chip--new { border-color: rgba(255, 223, 0, .45); background: rgba(255, 223, 0, .12); color: var(--m-yellow); }

/* tabs */
.wm-body { padding: 0 24px 22px; }
.wm-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-inner); }
.wmv .wm-tab { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 8px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--m-muted); font-size: .84rem; font-weight: 800; cursor: pointer; transition: all .2s; }
.wmv .wm-tab:hover { color: var(--m-text); }
.wmv .wm-tab.is-on { border-color: rgba(255, 223, 0, .4); background: rgba(255, 223, 0, .1); color: var(--m-yellow); }
.wm-tab em { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--m-raise); font-size: .62rem; font-style: normal; }
.wm-tab.is-on em { background: var(--m-yellow); color: #111; }
.wm-page { display: none; margin-top: 14px; }
.wm-page.is-on { display: block; animation: wm-slide .4s var(--m-ease) both; }
.wm-page.is-back.is-on { animation-name: wm-slide-back; }
@keyframes wm-slide { from { opacity: 0; transform: translateX(16px); } }
@keyframes wm-slide-back { from { opacity: 0; transform: translateX(-16px); } }

/* action cards */
.wm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wmv .wm-card { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; overflow: hidden; border: 1px solid var(--m-line); border-radius: 16px; background: var(--m-inner); color: var(--m-text); transition: border-color .25s, transform .3s var(--m-ease), background .25s; }
.wm-card::after { content: "\F138"; position: absolute; top: 50%; right: 12px; color: var(--m-yellow); font-family: "bootstrap-icons"; opacity: 0; transform: translate(-6px, -50%); transition: all .3s var(--m-ease); }
.wmv .wm-card:hover { border-color: rgba(255, 223, 0, .45); background: linear-gradient(135deg, rgba(255, 223, 0, .1), transparent 70%), var(--m-inner); color: var(--m-text); transform: translateY(-2px); }
.wm-card:hover::after { opacity: 1; transform: translate(0, -50%); }
.wm-card__i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 223, 0, .12); color: var(--m-yellow); font-size: 1.1rem; transition: all .3s var(--m-spring); }
.wm-card:hover .wm-card__i { background: var(--m-yellow); color: #111; transform: rotate(-6deg) scale(1.06); }
.wm-card strong { display: block; font-size: .95rem; font-weight: 900; }
.wm-card small { display: block; margin-top: 3px; padding-right: 14px; color: var(--m-muted); font-size: .8rem; line-height: 1.4; }
.wm-done { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(61, 220, 132, .12); color: #3ddc84; font-size: .66rem; font-weight: 900; }

/* what's new */
.wm-new { display: grid; gap: 8px; }
.wmv .wm-new__row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-inner); color: var(--m-text); transition: border-color .2s; }
.wmv a.wm-new__row:hover { border-color: rgba(255, 223, 0, .45); color: var(--m-text); }
.wm-new__row > .bi { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--m-raise); color: var(--m-yellow); }
.wm-new__row div { flex: 1; min-width: 0; }
.wm-new__row strong { display: block; font-size: .9rem; }
.wm-new__row small { color: var(--m-muted); font-size: .78rem; }
.wm-new__row kbd { flex: none; padding: 2px 8px; border: 1px solid rgba(255, 223, 0, .35); border-radius: 7px; background: none; color: var(--m-yellow); font: inherit; font-size: .64rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

/* community */
.wm-com { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wmv .wm-soc { --c: var(--m-yellow); display: grid; justify-items: center; gap: 8px; padding: 18px 12px; border: 1px solid var(--m-line); border-radius: 16px; background: var(--m-inner); color: var(--m-text); text-align: center; transition: all .3s var(--m-ease); }
.wm-soc .bi { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-size: 1.4rem; transition: transform .35s var(--m-spring); }
.wm-soc strong { font-size: .92rem; font-weight: 900; }
.wm-soc small { color: var(--m-muted); font-size: .76rem; }
.wmv .wm-soc:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--m-inner)); color: var(--m-text); transform: translateY(-3px); }
.wm-soc:hover .bi { transform: scale(1.1) rotate(-6deg); }

/* footer */
.wm-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.wm-dots { display: flex; gap: 6px; }
.wmv .wm-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #3a3a40; cursor: pointer; transition: width .3s var(--m-ease), background .3s; }
.wmv .wm-dots button.is-on { width: 24px; background: var(--m-yellow); }
.wm-acts { display: flex; gap: 8px; }
.wmv .wm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-inner); color: var(--m-muted); font-size: .86rem; font-weight: 800; cursor: pointer; transition: all .2s; }
.wmv .wm-btn:hover { border-color: rgba(255, 255, 255, .22); color: var(--m-text); }
.wmv .wm-btn--primary { border-color: transparent; background: var(--m-yellow); color: #111; }
.wmv .wm-btn--primary:hover { color: #111; box-shadow: 0 10px 28px -8px rgba(255, 223, 0, .65); transform: translateY(-1px); }
.wm-tip { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border: 1px dashed rgba(255, 223, 0, .3); border-radius: 13px; color: var(--m-muted); font-size: .8rem; }
.wm-tip .bi { color: var(--m-yellow); font-size: 1rem; }
.wm-tip b { color: var(--m-text); }
.wm-bottom { display: flex; justify-content: flex-end; margin-top: 12px; }
.wmv .wm-never { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--m-dim); font-size: .78rem; font-weight: 700; cursor: pointer; }
.wmv .wm-never:hover { color: var(--m-text); }

@media (max-width: 640px) {
  .wm-hero, .wm-body { padding-right: 16px; padding-left: 16px; }
  .wm-me { align-items: flex-start; }
  .wm-av { width: 58px; height: 58px; border-radius: 16px; }
  .wm-grid, .wm-com { grid-template-columns: 1fr; }
  .wm-tab span { display: none; }
  .wm-foot { flex-direction: column-reverse; align-items: stretch; }
  .wm-dots { justify-content: center; }
  .wmv .wm-acts .wm-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .wmv *, .wmv *::before, .wmv *::after { animation: none !important; transition: none !important; } }
