/* =========================================================
   ALLINFOWORLD119 · ONBOARDING TOUR V2
   수정:
   - 설명카드가 강조영역을 최대한 가리지 않도록 smart placement
   - 점선 화살표 삭제
   - 최신 금융 가이드/FINANCE TOOLS 제목 영역 포함
   - 사이드바 spotlight 정상화
   - 고정 금융용어/Aa 버튼 위치 보존
========================================================= */

html.aiw-tour-lock,
html.aiw-tour-lock body{
  overscroll-behavior:none;
}

.aiw-tour-root{
  position:fixed;
  inset:0;
  z-index:2147482000;
  pointer-events:none;
  font-family:'Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

.aiw-tour-root[hidden]{
  display:none!important;
}

/* 강조 영역 바깥을 4조각으로 덮음 */
.aiw-tour-dim{
  position:fixed;
  z-index:1;
  background:rgba(4,12,24,.74);
  backdrop-filter:blur(1.5px);
  -webkit-backdrop-filter:blur(1.5px);
  pointer-events:auto;
  transition:
    left .34s cubic-bezier(.22,.61,.36,1),
    top .34s cubic-bezier(.22,.61,.36,1),
    width .34s cubic-bezier(.22,.61,.36,1),
    height .34s cubic-bezier(.22,.61,.36,1);
}

.aiw-tour-spotlight{
  position:fixed;
  z-index:2;
  border:2px solid rgba(255,255,255,.94);
  border-radius:22px;
  box-shadow:
    0 0 0 1px rgba(105,185,255,.38),
    0 0 0 7px rgba(105,185,255,.08),
    0 22px 70px rgba(0,0,0,.20);
  pointer-events:none;
  transition:
    left .34s cubic-bezier(.22,.61,.36,1),
    top .34s cubic-bezier(.22,.61,.36,1),
    width .34s cubic-bezier(.22,.61,.36,1),
    height .34s cubic-bezier(.22,.61,.36,1);
}

/* 설명 카드: V1보다 조금 더 컴팩트 */
.aiw-tour-card{
  position:fixed;
  z-index:5;
  width:min(350px,calc(100vw - 28px));
  max-height:calc(100vh - 28px);
  overflow:auto;
  padding:16px 17px;
  border:1px solid rgba(18,46,79,.10);
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  box-shadow:
    0 24px 65px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.95);
  color:#16283f;
  pointer-events:auto;
  transform:translateY(7px) scale(.988);
  opacity:0;
  transition:
    left .30s ease,
    top .30s ease,
    opacity .18s ease,
    transform .18s ease;
}

.aiw-tour-card.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

.aiw-tour-card::before{
  content:'';
  position:absolute;
  inset:6px;
  border:1px solid rgba(29,87,148,.045);
  border-radius:13px;
  pointer-events:none;
}

.aiw-tour-kicker{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:5px;
}

.aiw-tour-step{
  color:#2568aa;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.12em;
}

.aiw-tour-close{
  width:29px;
  height:29px;
  padding:0;
  border:1px solid #e0e8f0;
  border-radius:9px;
  background:#fff;
  color:#718197;
  font-size:17px;
  line-height:1;
  cursor:pointer;
}

.aiw-tour-card h3{
  position:relative;
  z-index:1;
  margin:0;
  color:#11263f;
  font-size:17px!important;
  line-height:1.38!important;
  font-weight:700;
  letter-spacing:-.035em;
}

.aiw-tour-card p{
  position:relative;
  z-index:1;
  margin:7px 0 0;
  color:#52677e;
  font-size:12px!important;
  line-height:1.62!important;
  word-break:keep-all;
}

.aiw-tour-tip{
  position:relative;
  z-index:1;
  display:flex;
  gap:6px;
  align-items:flex-start;
  margin-top:9px;
  padding:8px 9px;
  border-radius:10px;
  background:#f2f7fc;
  color:#45617c;
  font-size:10px!important;
  line-height:1.48;
}

.aiw-tour-tip b{
  flex:0 0 auto;
  color:#1e5c97;
}

.aiw-tour-footer{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid #edf1f5;
}

.aiw-tour-never{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:#6f8092;
  font-size:9.5px!important;
  line-height:1.35;
  cursor:pointer;
  user-select:none;
}

.aiw-tour-never input{
  width:14px;
  height:14px;
  margin:0;
  accent-color:#173b73;
}

.aiw-tour-actions{
  display:flex;
  gap:6px;
  flex:0 0 auto;
}

.aiw-tour-btn{
  min-height:34px;
  padding:0 11px;
  border-radius:9px;
  font-family:inherit;
  font-size:10.5px!important;
  font-weight:700;
  cursor:pointer;
}

.aiw-tour-btn--ghost{
  border:1px solid #dbe5ee;
  background:#fff;
  color:#62748a;
}

.aiw-tour-btn--primary{
  border:1px solid #173b73;
  background:#173b73;
  color:#fff;
  box-shadow:0 5px 15px rgba(23,59,115,.15);
}

/* 사이드바 하단 다시보기 */
.aiw-tour-replay-wrap{
  margin:18px 0 8px;
  padding-top:16px;
  border-top:1px solid rgba(72,98,126,.16);
}

.aiw-tour-replay{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:42px;
  padding:0 14px;
  border:1px solid #d9e4ee;
  border-radius:12px;
  background:#f7fafc;
  color:#294967;
  font-family:inherit;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}

.aiw-tour-replay:hover{
  background:#eef5fb;
  border-color:#bfd0df;
}

.aiw-tour-replay-icon{
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  border-radius:50%;
  background:#e6f1fb;
  color:#1f67aa;
}

/*
  중요:
  V1의 .aiw-tour-focus { position:relative!important } 삭제.
  fixed drawer / fixed 금융용어 버튼 / Aa 버튼의 위치가 깨진 원인이었음.
*/
.aiw-tour-focus{
  pointer-events:none!important;
}

/* Drawer는 원래 fixed 위치를 절대 변경하지 않음 */
#allinfo-site-drawer.aiw-tour-focus{
  position:fixed!important;
}

/* 고정 UI도 원래 fixed 위치 유지 */
.aiw-glossary-fab.aiw-tour-focus,
.aiw-font-fab.aiw-tour-focus{
  position:fixed!important;
}

@media (max-width:720px){
  .aiw-tour-card{
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    top:auto!important;
    width:auto;
    max-height:43vh;
    padding:15px;
    border-radius:17px;
  }

  .aiw-tour-card h3{
    font-size:16px!important;
  }

  .aiw-tour-card p{
    font-size:11.5px!important;
  }

  .aiw-tour-footer{
    align-items:flex-end;
  }

  .aiw-tour-never{
    max-width:135px;
  }
}

@media (prefers-reduced-motion:reduce){
  .aiw-tour-dim,
  .aiw-tour-spotlight,
  .aiw-tour-card{
    transition:none!important;
  }
}
