/* === Base Reset & Typography === */
@font-face {
  font-family: "GmarketSansMedium";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "GmarketSansMedium", Helvetica, sans-serif !important;
  font-size: 0.85rem;
  overflow-x: hidden;
}

textarea {
  resize: none;
}

label.error {
  color: #ff0000;
}

.cursor-pointer {
  cursor: pointer;
}

/* font-size utilities: 10px ~ 20px */
.fs-10 {
  font-size: 10px !important;
}
.fs-11 {
  font-size: 11px !important;
}
.fs-12 {
  font-size: 12px !important;
}
.fs-13 {
  font-size: 13px !important;
}
.fs-14 {
  font-size: 14px !important;
}
.fs-15 {
  font-size: 15px !important;
}
.fs-16 {
  font-size: 16px !important;
}
.fs-17 {
  font-size: 17px !important;
}
.fs-18 {
  font-size: 18px !important;
}
.fs-19 {
  font-size: 19px !important;
}
.fs-20 {
  font-size: 20px !important;
}

.title-ellipsis {
  min-width: 0; /* flex item일 때 줄바꿈 계산을 올바르게 하도록 */
  display: block; /* ellipsis가 동작하도록 block/inline-block 필수 */
  max-width: 100%; /* 부모 영역 안에서만 표시 */

  white-space: nowrap; /* 줄바꿈 방지 */
  overflow: hidden; /* 넘치는 부분 숨김 */
  text-overflow: ellipsis; /* 넘친 텍스트는 … 처리 */
}
.title-wrap {
  white-space: normal; /* 줄바꿈 허용 */
  word-wrap: break-word; /* 오래된 브라우저 호환 */
  overflow-wrap: break-word; /* 최신 표준 - 긴 단어도 잘림 */
}

/* 초기상태는 안보이게 하고 스크립트 로드 완료시 보이게 한다.*/
#presetSlick {
  visibility: hidden;
  opacity: 0;
}
#presetSlick .preset-item {
  box-sizing: border-box;
}
#presetSlick .card-body {
  padding: 0.75rem;
}
#presetSlick .card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#presetSlick .slick-prev:before,
#presetSlick .slick-next:before {
  color: rgba(0, 0, 0, 0.65);
}

/*
    모델선택 및 버튼쪽에 밀리는 현상때문에 스타일 수정함
*/

/* Bootstrap엔 없어서 하나 추가 */
.min-w-0 {
  min-width: 0;
}
/* 드롭다운 버튼이 컨테이너 안에서 줄바꿈/잘림 처리 가능하도록 */
.select-model .dropdown-toggle {
  max-width: 100%;
  overflow: hidden; /* 내부 요소 잘림 허용 */
}
/* 텍스트 영역만 … 처리 */
.select-model .dropdown-toggle .label-wrap {
  min-width: 0; /* flex 아이템에서 truncate 작동 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 뱃지는 줄어들지 않게 */
.select-model .dropdown-toggle .badge-wrap {
  flex-shrink: 0;
}

/* 제출 버튼은 절대 줄어들지 않음 */
.btn-submit {
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 5px;
}

/*
    공통 레이아웃
*/
.nav-item::marker {
  content: none;
}

.history-list {
  max-width: 100%;
}
.nav-item .nav-link .link-icon {
  flex-shrink: 0; /* 아이콘은 줄어들지 않음 */
}

.nav-item .nav-link .link-title {
  flex: 1; /* 남은 공간 전부 사용 */
  min-width: 0; /* flex-item 말줄임 처리에 필요 */
  display: inline-block; /* inline-block 또는 block이어야 ellipsis 적용됨 */
  max-width: 180px; /* 적절히 제한 너비 지정 */
  white-space: nowrap; /* 줄바꿈 방지 */
  overflow: hidden; /* 넘치는 텍스트 숨김 */
  text-overflow: ellipsis; /* ... 으로 표시 */
  vertical-align: middle; /* 아이콘과 같이 맞추려면 */
}

.theme-switcher-wrapper {
  display: flex;
  justify-content: center; /* 수평 가운데 */
  align-items: center; /* 세로 가운데 */
  padding: 0.5rem 0; /* 위아래 여백 */
}
.theme-switcher-wrapper .box {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === LOGO === */
.logo-dark {
  display: inline;
}
.logo-white {
  display: none;
}

/* 다크 테마일 때 */
html[data-bs-theme="dark"] .logo-dark {
  display: none;
}
html[data-bs-theme="dark"] .logo-white {
  display: inline;
}

/* 모달보다 살짝 아래, 다른 섹션보다 위 */
.sidebar {
  z-index: 1051;
}

/* 선택적으로 높이 고정 */
.sidebar-brand img {
  height: 35px;
}

.navbar .logo-mini-wrapper .logo-mini {
  height: 35px !important;
  width: auto !important;

  margin-right: 10px;
}

.navbar-content .nav-item .btn {
  height: 29px;
}

.nav-item .btn i {
  font-size: 12px;
}

#btn-credit {
  padding-right: 4px;
}

.fa-wrapper {
  border: 1px solid var(--bs-primary);
  padding: 3px 3px 0px 3px;
  border-radius: 3px;
  margin-left: 3px;
  line-height: 13px;
  font-size: 11px;
}

/* === 홈 === */
#landing_prompt h1 {
  font-size: 1.25rem;
}

#landing_prompt form {
  overflow: hidden;
  padding: 10px 10px;
  background: var(--bs-app-bg);

  border-top: none; /* 위쪽 보더 제거 */
  border-left: 1px solid var(--bs-border-color);
  border-right: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);

  border-radius: 0 0 5px 5px; /* 좌하단, 우하단만 라운드 */
}

#landing_prompt textarea {
  border: 0px;
  resize: none;
  background: transparent;
}
#landing_prompt textarea::placeholder {
  color: #aaa;
  opacity: 1;
}

#landing_prompt textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: inherit; /* 선택적으로 보더 색 고정 */
}

/* preset-card 스타일 */
.preset-card {
  padding: 10px; /* 카드 안쪽 여백 */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.preset-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
}

/* 이미지 하단 투명 그라데이션 효과 */
.preset-card .card-img-wrapper img,
.preset-card .card-img-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  mask-repeat: no-repeat;
  mask-size: cover;
}

.preset-card .card-body {
  padding: 10px 10px 0px 10px;
  text-align: center;
}

.preset-card .card-body .card-title {
  margin-bottom: 0px;
  font-size: 0.875rem;
}

/********************************************
 * Agent
 ********************************************/

#agent,
#agent > .row {
  height: 100% !important;
}

#agent .section-chat {
  display: flex;
  flex-direction: column;
  min-width: 0; /*  chat 부분 slide 넣을때 아래값 없으면 깨짐  */
  height: 100%;
}

.composer {
  border: 1px solid var(--bs-border-color);

  border-radius: 0.75rem;
  padding: 0.75rem 0.75rem 0.5rem;
}
.composer textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  max-height: 180px; /* 필요 시 조절 */
}
.composer .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.composer .toolbar .btn-transparent {
  border: 0;
  background: transparent;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
}
.composer .toolbar .btn-transparent:hover {
  background: rgba(255, 255, 255, 0.06);
}

/*************************************************
 * Capi 
 * #generate .section-prompt
 * #generate .section-chat
 * #generate .section-result
 *************************************************/

#generate,
#generate > .row {
  height: 100% !important;
}

/* navbar c title */
.c_title_wrapper {
  display: flex;
  align-items: center;
  flex: 1 1 auto; /* 남는 공간 차지 */
  min-width: 0; /* 줄임표가 동작하도록 최소폭 0으로 */
}

#c_title {
  font-size: 1.1rem;
  line-height: 1.1rem;
  font-weight: bold;
  color: var(--bs-body-color);
  flex-grow: 1;
  display: flex;
  align-items: center;
  display: grid;
  place-items: left; /* 가로·세로 중앙 */
  line-height: normal;
  padding-top: 7px;
}
/* 편집 중 시각 표시 */
#c_title.editing {
  outline: 2px dashed var(--bs-primary, #0d6efd);
  outline-offset: 2px;
}

/* #generate .section-prompt */
.section-prompt {
  border-right: 1px solid var(--bs-border-color);
  width: 500px;
  position: relative;
  height: calc(100vh - 60px);
}

.section-prompt form {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  min-height: 0; /* flex 스크롤 위해 필수 */
}

.section-prompt .prompt-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto; /* 내용 길면 스크롤 */
  padding: 0 1rem;
}

.section-prompt .prompt_input_wrapper {
  position: relative;
}

.section-prompt .prompt_input_wrapper .prompt-tools {
  position: absolute;
  bottom: 6px;
  right: 20px;
  display: flex;
  align-items: center;
}

.section-prompt .prompt_input_wrapper .prompt-tools i {
  font-size: 14px;
  cursor: pointer;
  margin-right: 12px;
}

.section-prompt .prompt_input_wrapper .prompt-tools .btn {
  font-size: 11px;
  padding: 5px 10px;
}

/* 닫기 버튼 우측 상단 */
.section-prompt .close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2100;
  display: none;
}

.section-prompt.open .close-btn {
  display: block;
}

/* PC화면에서는 보여줄 필요가 없다. */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
}

/* 모바일에서 생성버튼을 클릭하면 프롬프트 입력창이 밑에서 올라오는데 이 버튼이 너무 투명해서 뭔가 내용이 밑에 깔려 있으면 잘 안보여서 살짝 투명 흰색을 깔아놨음. by DJ */
.mobile-bottom-bar .btn {
  background-color: rgba(255, 255, 255, 0.2); /* 흰색 20% 투명 */
  backdrop-filter: blur(2px); /* 옵션: 살짝 유리효과 */
}

@media (max-width: 1200px) {
  .section-prompt {
    width: 420px;
  }
}

@media (max-width: 1000px) {
  .section-prompt {
    width: 450px;
  }
}

/* 모바일에서만 bottom bar 형태 */
@media (max-width: 767.98px) {
  .section-prompt {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bs-app-bg);
    border-top: 1px solid #ddd;
    padding: 8px;
    z-index: 1050;
    transition: transform 0.3s ease;
    transform: translateY(100%); /* 바 형태로 최소 노출 */
  }

  /* 열렸을 때 */
  .section-prompt.open {
    transform: translateY(0);
    height: calc(100vh - 60px);
  }

  .section-result {
    display: none;
  }

  /* 하단바 */
  .mobile-bottom-bar {
    display: block;
  }

  .mobile-bottom-bar input {
    flex: 1;
  }
}

.upload-area {
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* 제목 처리 */
.upload-icon i {
  color: #ccc;
}

/* #generate .section-chat */
#generate .section-chat {
  display: flex;
  flex-direction: column;
  min-width: 0; /*  chat 부분 slide 넣을때 아래값 없으면 깨짐  */
  height: 100%;
}

.chat-scroll-area {
  flex-grow: 1;
  min-height: 0; /* 중요! */
  overflow-y: auto;
  padding: 1rem;
  height: 300px;
}

.chat-scroll-area p img {
  max-width: 800px;
  margin: 0px auto;
}

.chat-scroll-area .result-container {
  display: block; /* block이면 내부 .item이 margin auto로 정렬 가능 */
  width: 100%;
  border: 1px solid var(--bs-border-color);
}

.chat-scroll-area .result-container .item-header {
  padding: 10px;
}

.chat-scroll-area .result-container .item-body {
  padding: 0px;
  background-color: var(--bs-gray-200);
}

html[data-bs-theme="dark"] .chat-scroll-area .result-container .item-body {
  background-color: var(--bs-body-bg);
}

.chat-scroll-area .result-container .item {
  max-width: 700px;
  margin: 0px auto;
}

.chat-scroll-area .result-container .item img {
  display: block;
  margin: 0 auto; /* 가로 가운데 정렬 */
  max-width: 100%; /* 부모 크기 넘어가지 않도록 */
  height: auto; /* 비율 유지 */
}

.guide-container {
  border: 1px solid var(--bs-border-color);
  padding: 10px;
  background-color: var(--bs-body-bg);
  border-radius: 5px;
  margin-bottom: 10px;
}

/* 드롭다운이 너무 길어지는 문제 방지 */
.run-menu.dropdown-menu {
  max-height: 320px;
  overflow: auto;
}
.quick-actions .btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/***************************************************
    * 로딩 화면
    ***************************************************/
/* 공통: 스켈레톤 기본 스타일 + 변수 */
.loading_section {
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;

  /* 라이트 모드 기본값 */
  --skeleton-1: #f0f0f0;
  --skeleton-2: #e0e0e0;
  --skeleton-3: #f0f0f0;

  background: linear-gradient(90deg, var(--skeleton-1) 25%, var(--skeleton-2) 50%, var(--skeleton-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* Bootstrap 5.3 테마 방식: <html data-bs-theme="dark"> … */
[data-bs-theme="dark"] .loading_section {
  /* 다크 톤(헥스 고정) */
  --skeleton-1: #2b2f36;
  --skeleton-2: #3a4048;
  --skeleton-3: #2b2f36;

  /* 보더는 부트스트랩 변수 유지 */
  border-color: var(--bs-border-color);
}

/* 시스템 다크모드 폴백(위 data-bs-theme 없을 때) */
@media (prefers-color-scheme: dark) {
  .loading_section {
    --skeleton-1: #2b2f36;
    --skeleton-2: #3a4048;
    --skeleton-3: #2b2f36;
  }
}

/* 선택: 최신 브라우저에서 테마 색에 자동 적응 (color-mix) - 위 값보다 우선 적용됨 */
[data-bs-theme="dark"] .loading_section {
  --skeleton-1: color-mix(in srgb, var(--bs-body-bg), white 6%);
  --skeleton-2: color-mix(in srgb, var(--bs-body-bg), white 14%);
  --skeleton-3: var(--skeleton-1);
}

/* 쉬머 키프레임 */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.loading_section .placeholder {
  width: 100px;
  border-radius: 10px;
}

.loading_section .percent {
  font-size: 260%;
  color: var(--bs-primary);
  font-weight: 700;
  display: block;
}

/* #generate .section-result */
.section-result {
  border-left: 1px solid var(--bs-border-color);
  overflow-y: auto; /* 내부에서 스크롤 */
  height: calc(100vh - 60px); /* 헤더 높이 제외 */
  width: 70px;
  padding: 5px;
}

@media (max-width: 768px) {
  .section-result {
    display: none;
  }
}

.section-result-item {
  width: 100%;
}

.ui-sortable-helper {
  display: table;
}

ul.sortable ul {
  margin: 0 0 0 25px;
  padding: 0;
  list-style-type: none;
}

.sortable .btn {
  border: 1px solid #cacaac;
}

.handle {
  cursor: pointer;
}

/*************************************************
 * custom-select
 *************************************************/
.custom-select button {
  width: 100%;
  position: relative;
  text-align: left;
}

.custom-select .dropdown-toggle::after {
  position: absolute;
  top: 12px;
  right: 12px;
}

.custom-select .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/*************************************************
 * ckeditor
 *************************************************/
.ck-editor__editable_inline {
  height: 400px;
}

.ck.ck-editor {
  width: 100%;
}

.ck-editor__main ul {
  padding-left: 15px;
}

.ck-editor__main ul li {
  list-style-type: disc;
}

.ck-powered-by {
  display: none;
}

/*************************
 * select2
 *************************/
.select2-container--default .select2-selection--multiple {
  border: var(--bs-border-width) solid var(--bs-border-color) !important;
  box-shadow: var(--bs-box-shadow-inset);
}

.select2-container .select2-selection--multiple {
  min-height: 37px !important;
}

.select2-container .select2-search--inline .select2-search__field {
  margin-top: 7px !important;
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
  color: var(--bs-gray) !important;
  opacity: 0.6; /* 살짝 옅게 하고 싶으면 */
  font-weight: 600;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 7px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__clear {
  margin-top: 7px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  color: var(--bs-body-color);
}

/* 다크모드 - select2 */
[data-bs-theme="dark"] .select2-container--default .select2-selection__placeholder {
  color: var(--bs-white) !important;
}

/* multiple 선택창 내부 검색 input placeholder도 같이 */
[data-bs-theme="dark"] .select2-container--default .select2-search--inline .select2-search__field::placeholder {
  color: var(--bs-white) !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single {
  background-color: var(--bs-body-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple {
  background-color: var(--bs-body-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  color: var(--bs-body-color);
}

/* placeholder */
[data-bs-theme="dark"] .select2-container--default .select2-selection__placeholder {
  color: var(--bs-secondary-color);
}

/* 선택된 태그 pill */
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
}

/* 태그 삭제 버튼 */
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--bs-secondary-color);
}
[data-bs-theme="dark"]
  .select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  color: var(--bs-body-color);
}

/* 드롭다운 */
[data-bs-theme="dark"] .select2-container--default .select2-dropdown {
  background-color: var(--bs-body-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  color: var(--bs-body-color);
}

/* 옵션 */
[data-bs-theme="dark"] .select2-container--default .select2-results__option {
  color: var(--bs-body-color);
}
[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--bs-primary);
  color: #fff;
}
[data-bs-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: var(--bs-secondary-bg);
}

/* 화살표 아이콘 */
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow {
  color: var(--bs-body-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 12px;
}

/***************************************************
 * 디자인
 ***************************************************/

/* 슬라이더 바깥 전용 */
#tab-slider .swiper-pagination {
  position: relative; /* absolute → relative */
  bottom: auto; /* 기본값 초기화 */
  margin-top: 15px; /* 원하는 간격 */
  text-align: center; /* 가운데 정렬 */
}

.swiper-slide .btn {
  padding: 10px 20px;
  white-space: nowrap;
}

.btn-wh {
  background-color: var(--bs-body-bg);
  padding: 10px;
  border-radius: 20px;
  width: 100%;
  max-width: 150px;
  border: 1px solid var(--bs-border-color);
}

#tabpane-slider .item {
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  padding: 21px;
  border-radius: 5px;
  border: 1px solid var(--bs-border-color);
}

#tabpane-slider .item .line {
  max-width: 100%;
  height: 60px;
  margin-left: auto;
  margin-right: auto;
  background-color: #ccc;
  margin-bottom: 10px;
}

.media_list .img_wrapper .img {
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 10px;
  cursor: pointer;
}

.media_list .img_wrapper {
  position: relative;
  background-size: 28px 28px;
  background-image: repeating-conic-gradient(#f5f2fa 0% 25%, transparent 0% 50%);
  background-color: white;
  background-position: center;
  border: 1px solid #eee;
  border-radius: 10px;
}

.media_list .img_wrapper .dropdown {
  position: absolute;
  right: 8px;
  top: 8px;
}

.media_list .img_wrapper .dropdown .btn {
  opacity: 0.9;
  font-size: 13px;
  padding: 5px;
}

.thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3; /* 원하는 비율 (예: 1/1, 16/9 등) */
  overflow: hidden;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 항상 꽉 채움 */
  object-position: center; /* 중앙 기준 */
  display: block;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

/* 중앙 버튼 */
.thumb-wrapper .play-toggle,
.voice-wrapper .play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.thumb-wrapper:hover .play-toggle {
  background: rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) scale(1.05);
}

.thumb-wrapper.is-playing .play-toggle {
  background: rgba(0, 0, 0, 0.7);
}

/** 모션 선택 영역 **/
.motion-wrapper {
  position: relative;
  aspect-ratio: 16 / 9; /* 16:9 비율 유지 */
  width: 100%;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.motion-placeholder {
  /* background: #e9f5ff; */
  border: 2px dashed var(--bs-border-color);
  margin-bottom: 10px;
}

/* overlay */
.motion-wrapper.motion-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* 반투명 블랙 */
  z-index: 1;
  pointer-events: none; /* 클릭 방해하지 않음 */
}
/* 비디오 있을 때는 absolute라서 영향 없음 */
.motion-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 비율 유지하면서 꽉 채우기 */
  display: block;
}

/* 버튼 영역 */
.motion-wrapper .motion-buttons {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.motion-wrapper .motion-buttons .btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.motion-wrapper .motion-buttons .btn i {
  font-size: 13px;
}

/* 중앙 캡션 */
.motion-wrapper .motion-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bs-white);
  text-align: center;
  z-index: 2;
  background: none;
  padding: 0;
}

.motion-wrapper .motion-caption .motion-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/***********************************************
* voice-wrapper
***********************************************/
.voice-wrapper {
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
}

.voice-thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
}

/***********************************************
* 요금
***********************************************/
.pricing-switcher-wrapper p:last-child {
  position: relative;
}
.pricing-switcher-wrapper p:last-child .badge {
  position: absolute;
  top: -1rem;
  right: -4rem;
}

/***********************************************
* 초대코드
***********************************************/
.referral-steps .step-card {
  border-radius: 14px;
}
.referral-steps .step-no {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: #0d6efd;
  padding-top: 0.6rem;
}
.referral-steps .card-title {
  font-size: 0.9rem;
}
.referral-steps .card-text {
  line-height: 1.25;
  font-size: 0.78rem;
}

@media (max-width: 576px) {
  .referral-steps .card-body {
    padding: 0.5rem !important;
  }
  .referral-steps .step-no {
    font-size: 1rem;
    padding-top: 0.45rem;
  }
  .referral-steps .card-title {
    font-size: 0.85rem;
  }
  .referral-steps .card-text {
    font-size: 0.75rem;
  }
}
