@import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import "reset.css";
@import "variables.css";

/* Components */
@import "components/status-bar.css";
@import "components/nav-bar.css";
@import "components/screen-header.css";
@import "components/user-component.css";
@import "components/badge.css";
@import "components/icon-row.css";
@import "components/alt-screen-header.css";
@import "components/no-mobile.css";

/* Screens */
@import "screens/login.css";
@import "screens/friends.css";
@import "screens/find.css";
@import "screens/more.css";
@import "screens/settings.css";
@import "screens/chat.css";

/* import 순서가 중요하니까!!! 유의할 것!!! */

body {
  color: #2e363e;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
}

.main-screen {
}

.icon-big {
  width: 35px;
  height: 35px;
}

@keyframes hideSplashScreen {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

#splash-screen {
  background-color: var(--yellow);
  position: absolute;
  height: 100vh;
  width: 100vw;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15vw;
  color: rgb(51, 28, 27);
  animation: hideSplashScreen 0.4s ease-in-out forwards;
  animation-delay: 1s;
}

body {
  overflow: auto;
}
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background-color: #2f3542;
  border-radius: 10px;
  background-clip: padding-box;
  border: 2px solid transparent;
}
body::-webkit-scrollbar-track {
  background-color: grey;
  border-radius: 10px;
  box-shadow: inset 0px 0px 5px white;
}

.typing-dots::after {
  content: '.';
  animation: typing 1.5s steps(4, end) infinite;
}
@keyframes typing {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* 카카오톡 스타일 UI 리뉴얼 */
body, html {
  background-color: #b2c7d9; /* 최신 카톡 기본 배경색 */
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
}
.chat-screen {
  background-color: #b2c7d9;
  min-height: 100vh;
}
.alt-header {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background-color: #b2c7d9;
}
.status-bar {
  background-color: #b2c7d9;
}
.message-row {
  margin-bottom: 15px;
  display: flex;
  width: 100%;
}
.message-row--own {
  justify-content: flex-end;
}
.message-row img {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  margin-right: 10px;
  object-fit: cover;
}
.message__author {
  display: block;
  font-size: 13px;
  color: #3e4a56;
  margin-bottom: 5px;
  font-weight: 500;
}
.message__box {
  display: flex;
  align-items: flex-end;
}
.message-row--own .message__box {
  flex-direction: row-reverse;
}
.message__bubble {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
  display: inline-block;
  max-width: 280px; /* 동적 옵션 UI 렌더링을 위해 최대 너비 확장 */
  word-break: break-all;
  box-shadow: none;
}
.message-row--inbound .message__bubble {
  background-color: #ffffff;
  border-top-left-radius: 4px;
  border: 1px solid #e1e7ed;
}
.message-row--own .message__bubble {
  background-color: #fee500; /* 카톡 노란색 */
  border-top-right-radius: 4px;
}
.message__time {
  font-size: 11px;
  color: #555;
  margin: 0 5px;
}
.chat__timestamp {
  text-align: center;
  margin: 20px 0;
  background-color: transparent !important; /* 외부 CSS 배경색 겹침 방지 */
  padding: 0 !important; /* 외부 CSS 패딩 겹침 방지 */
}
.chat__timestamp span {
  background-color: rgba(0, 0, 0, 0.15);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
}
/* 입력창 모던 플로팅 아일랜드 스타일 (New UI) */
.reply {
  position: absolute;
  background-color: #ffffff;
  padding: 8px; /* 상하좌우 동일한 패딩으로 완벽한 대칭 구성 */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: sticky;
  bottom: 20px;
  width: calc(100% - 32px);
  margin: 0 auto 20px auto;
  box-sizing: border-box;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reply:focus-within {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.1);
}
.reply__column:first-child {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 5px;
  margin-bottom: 0; /* 우측 요소들과 40px 동일 높이 */
  background-color: #f0f2f5;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0; /* 아이콘 찌그러짐 방지 */
}
.reply__column:first-child:hover {
  background-color: #e4e6eb;
  transform: rotate(90deg) scale(1.05);
}
.reply__column:first-child img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.reply__column:first-child:hover img {
  opacity: 0.9;
}
.reply__column:last-child {
  flex: 1;
  position: relative;
  background-color: transparent;
  display: block; /* Flexbox가 absolute 엘리먼트(전송 버튼)의 위치에 간섭하는 것을 방지 */
}
.message-input {
  width: 100%;
  background-color: transparent;
  border: none;
  padding: 10px 48px 10px 8px;
  font-size: 15px;
  line-height: 20px;
  min-height: 40px;
  margin: 0; /* 브라우저 기본 마진 간섭 완벽 차단 */
  resize: none;
  max-height: 120px;
  box-sizing: border-box;
  display: block;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  color: #222222;
  font-weight: 500;
}
.message-input::-webkit-scrollbar {
  display: none;
}
.message-input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}
.message-input:focus {
  outline: none;
}
#send-button {
  position: absolute;
  right: 0;
  bottom: 0; /* 높이를 똑같이 40px로 맞췄으므로 0으로 설정하면 완벽하게 바닥에서 정렬됨 */
  top: auto; /* screens/chat.css에 있는 top: 4px 속성을 무효화하여 bottom이 적용되게 함 */
  background-color: #03C75A;
  border: none;
  width: 40px; /* 다른 컴포넌트와 동일하게 40px 꽉 채움 */
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0;
}
#send-button:hover {
  background-color: #333333;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
#send-button:active {
  transform: scale(0.95) translateY(0);
}
#send-button img {
  width: 16px;
  height: 16px;
  margin-left: -2px;
  filter: brightness(0) invert(1); /* 어떤 색상의 아이콘이든 완벽한 흰색으로 반전 처리 */
}
/* 기타 선택 버튼 스타일 개선 */
.button-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.my-button {
  background-color: #ffffff;
  border: 1px solid #c9d2db;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 13px;
  cursor: pointer;
  color: #333;
  transition: background-color 0.2s;
}
.my-button:hover {
  background-color: #f2f2f2;
}
.bot-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
}
.qbtn {
  background-color: #ffffff !important;
  border: 1px solid #d5dce2 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #333 !important;
  margin-bottom: 2px;
  padding: 12px 14px;
  font-size: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}
.qbtn:hover {
  background-color: #f7f9fa !important;
}

/* 백엔드 연동 동적 옵션(카드) 렌더링 스타일 */
.dynamic-options-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

/* 브랜드 목록인 경우 강제로 세로 2줄(가로 2열)로 고정 */
.dynamic-options-container.grid-brand {
  grid-template-columns: repeat(2, 1fr);
}

.dynamic-option-card {
  background-color: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.dynamic-option-card:hover {
  border-color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
/* 다중 선택 및 단일 선택(외장 색상) 옵션 카드 공통 스타일 */
.dynamic-option-card.multiple-option,
.dynamic-option-card.single-select-option {
  position: relative;
  padding-left: 36px;
  text-align: left;
  align-items: flex-start;
}
.dynamic-option-card.single-select-option::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 1.5px solid #c9d2db;
  border-radius: 4px;
  background-color: #fff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.dynamic-option-card.single-select-option.selected::before {
  border-color: #fee500;
  background-color: #fee500;
  content: '✓';
  color: #1a1a1a;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  line-height: 14px;
}
.dynamic-option-card.multiple-option .opt-checkbox {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #fee500;
  margin: 0;
}
.dynamic-option-card.multiple-option.selected,
.dynamic-option-card.single-select-option.selected {
  border-color: #fee500;
  background-color: #fffdf0;
  box-shadow: 0 2px 8px rgba(254, 229, 0, 0.2);
}
.opt-img-wrap {
  height: 44px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opt-img-wrap.opt-img-wrap--large {
  height: 132px;
}
.opt-img-wrap.opt-img-wrap--medium {
  height: 66px;
}
.opt-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.opt-img-wrap.opt-img-wrap--large img,
.opt-img-wrap.opt-img-wrap--medium img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}
.message__bubble img[src*="/color/image/interior"] {
  width: 132px;
  height: 132px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin-top: 6px;
}
.opt-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  word-break: keep-all;
}
.opt-price {
  font-size: 12px;
  color: #e65d5d;
  margin-top: 4px;
}
.opt-desc {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  line-height: 1.2;
}
.opt-summary {
  margin-top: 10px;
  padding: 12px 14px;
  border-top: 1px dashed #d1d4d8;
  background-color: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
  color: #555;
  width: calc(100% - 28px);
  box-sizing: border-box;
}
.opt-summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 500;
}
.opt-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e1e4e8;
  font-weight: bold;
  color: #333;
}
.opt-summary-total strong {
  color: #e65d5d;
  font-size: 16px;
}

/* 모바일 소형 디바이스 (width 320px 이하) UI 최적화 */
@media screen and (max-width: 320px) {
  .main-chat {
    padding-left: 12px;
    padding-right: 12px;
  }
  .reply {
    width: calc(100% - 16px); /* 화면을 꽉 채우지 않도록 좌우 여백을 줄임 */
    padding: 6px;
    bottom: 10px;
    margin-bottom: 10px;
    border-radius: 22px;
  }
  .reply__column:first-child {
    width: 34px;
    height: 34px;
    margin-right: 6px;
  }
  .reply__column:first-child img {
    width: 16px;
    height: 16px;
  }
  .message-input {
    min-height: 34px; /* 최소 높이 34px로 변경 */
    padding: 7px 40px 7px 8px; /* 상하 패딩(14px) + 텍스트(20px) = 34px 완벽 대칭 */
    font-size: 14px;
  }
  #send-button {
    width: 34px;
    height: 34px;
  }
  #send-button img {
    width: 14px;
    height: 14px;
  }
  .message__bubble {
    max-width: 210px; /* 말풍선 최대 너비를 좁혀서 작은 화면에서 밀려나지 않게 함 */
  }
}

/* 대화창 내부에서 텍스트와 분리되어 렌더링되는 옵션 컨테이너 스타일 */
.interactive-option-wrap {
  margin-top: 8px;
  width: 100%;
}
.interactive-option-wrap > div[class*="ml-[50px]"],
.interactive-option-wrap > div[class*="ml-"] {
  margin-left: 0 !important; /* 말풍선 밖으로 나갔을 때 불필요한 좌측 마진 제거 */
}

/* 설명 모달창 스타일 */
.desc-modal {
  display: none;
  position: fixed;
  z-index: 200; /* Sit on top of everything, including sticky headers */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.desc-modal-content {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 16px;
  width: 85%;
  max-width: 320px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
  box-sizing: border-box;
  animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.desc-close-button {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #aaa;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

/* Chat login modal — social (Kakao / Naver / Google) */
.chat-login-modal {
  max-width: 340px;
  width: 90%;
}
.chat-login-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
.chat-social-login-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-social-login-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.chat-social-login-item button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.chat-social-login-item button:active {
  transform: translateY(0);
}
.chat-social-login-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
}
.chat-social-login-item strong {
  font-size: 14px;
  font-weight: 700;
}
.chat-social-login-item.kakao button {
  background: #fee500;
  color: #191919;
}
.chat-social-login-item.naver button {
  background: #03c75a;
  color: #fff;
}
.chat-social-login-item.google button {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
}
.chat-login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: #9aa3a0;
  font-size: 12px;
  font-weight: 600;
}
.chat-login-divider::before,
.chat-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e6ebe8;
}
.chat-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-login-form input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
}
.chat-login-form input:focus {
  border-color: #03c75a;
}
.chat-login-submit {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #03c75a;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  margin-top: 4px;
}
.desc-close-button:hover {
  color: #333;
}
#descModalTitle {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #1a1a1a;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
#descModalText {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  word-break: keep-all;
}

/* 옵션 라벨 도움말 버튼 스타일 */
.opt-label-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.dynamic-option-card.multiple-option .opt-label-container,
.dynamic-option-card.single-select-option .opt-label-container {
  justify-content: flex-start;
}
.opt-help-btn {
  background-color: #f1f3f5;
  border: 1px solid #dee2e6;
  color: #868e96;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.opt-help-btn:hover {
  background-color: #e9ecef;
  color: #495057;
  border-color: #ced4da;
  transform: scale(1.1);
}

.trim-prompt-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trim-prompt-text {
  line-height: 1.4;
}

.trim-prompt-help-btn {
  flex-shrink: 0;
}

@keyframes highlight-pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 229, 0, 0.7);
    transform: scale(1);
    background-color: #fee500;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(254, 229, 0, 0);
    transform: scale(1.2);
    background-color: #fee500;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(254, 229, 0, 0);
    transform: scale(1);
    background-color: #f0f2f5;
  }
}

.highlight-pulse {
  animation: highlight-pulse-animation 1s ease-in-out infinite;
  background-color: #fee500 !important;
}

.highlight-pulse img {
  opacity: 1 !important;
}

.recommend-pick-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recommend-pick-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.recommend-pick-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recommend-pick-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #f8fafc;
}

.recommend-pick-body {
  padding: 12px 14px 14px;
}

.recommend-pick-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #1a202c;
  background: #fef3c7;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.recommend-pick-model {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.35;
}

.recommend-pick-rationale {
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 10px;
}

.recommend-pick-spec {
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.recommend-pick-price {
  font-size: 13px;
  color: #475569;
  flex: 1;
  min-width: 0;
}

.recommend-pick-price strong {
  color: #e65d5d;
  font-size: 16px;
}

.recommend-pick-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.recommend-pick-select-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  background: #03C75A;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(3, 199, 90, 0.35);
}

.recommend-pick-select-btn:hover {
  background: #02b351;
}

.recommend-pick-select-btn:active {
  transform: scale(0.98);
}

.recommend-progress-bubble {
  color: #334155;
  line-height: 1.5;
}

.selection-preview-summary {
  margin-top: 8px;
}

.selection-preview-image {
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f8fa;
}

.selection-preview-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.selection-preview-prices {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #edf2f7;
}

/* 상담 완료 요약 디자인 */
.consultation-summary {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin: 10px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  font-family: inherit;
  display: block;
}

.summary-header {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.summary-header i {
  color: #ddb20f;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.summary-table tr {
  border-bottom: 1px dashed #edf2f7;
}

.summary-table tr:last-child {
  border-bottom: none;
}

.summary-table th {
  text-align: left;
  font-size: 13px;
  color: #718096;
  font-weight: 600;
  padding: 8px 4px;
  width: 90px;
  vertical-align: top;
}

.summary-table td {
  text-align: left;
  font-size: 13px;
  color: #2d3748;
  font-weight: 500;
  padding: 8px 4px;
  word-break: break-all;
}

.summary-footer {
  background: #fffdf5;
  border-top: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #d97706;
  line-height: 1.5;
  text-align: center;
  font-weight: 600;
}

/* Contact Form Card Design */
.contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-top: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  font-family: inherit;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  display: inline-block;
}

.contact-info-preview {
  font-size: 14px;
  color: #4a5568;
  background: #f7fafc;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  line-height: 1.8;
  text-align: left;
}

.contact-form-group {
  margin-bottom: 14px;
  text-align: left;
}

.contact-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
}

.contact-form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 10px;
  font-size: 13px;
  color: #2d3748;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.contact-form-group input:focus {
  border-color: #fee500;
}

.contact-agreement-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  color: #718096;
}

.agreement-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.agreement-label input {
  cursor: pointer;
  accent-color: #fee500;
  width: 16px;
  height: 16px;
}

.privacy-detail-btn {
  background: none;
  border: none;
  color: #a0aec0;
  text-decoration: underline;
  cursor: pointer;
  font-size: 11px;
  padding: 0;
}

.privacy-detail-box {
  background: #f7fafc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 10px;
  font-size: 11px;
  color: #718096;
  text-align: left;
  line-height: 1.5;
  margin-bottom: 12px;
  max-height: 80px;
  overflow-y: auto;
}

.contact-submit-btn {
  width: 100%;
  background: #fee500;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1e1e1e;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.contact-submit-btn:hover {
  background: #fada0a;
}

.contact-submit-btn:active {
  transform: scale(0.98);
}

.contact-submit-btn:disabled {
  background: #cbd5e0;
  color: #a0aec0;
  cursor: not-allowed;
}

/* Side Menu and Crew Screen Styles */
.side-menu{position:fixed;top:0;right:-280px;width:280px;height:100%;background:#fff;box-shadow:-3px 0 20px rgba(0,0,0,.15);transition:.3s;z-index:9999;padding-top:70px;overflow-y:auto;}
.side-menu.open{right:0}
.menu-item{padding:18px 20px;border-bottom:1px solid #eee;font-weight:700;cursor:pointer}
.menu-item:hover{background:#f9f9f9}
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.3);display:none;z-index:9998}
.overlay.open{display:block}

.crew-screen{position:fixed;top:0;right:auto;bottom:0;left:50%;width:100%;max-width:430px;transform:translateX(-50%);box-shadow:0 0 28px rgba(0,0,0,.18);background:#f4f6f5;display:none;flex-direction:column;z-index:10001}
.crew-screen.open{display:flex}
.crew-head{height:62px;background:#03C75A;display:flex;align-items:center;gap:12px;padding:0 16px;flex-shrink:0}
.crew-head button{border:0;background:transparent;font-size:28px;cursor:pointer;color:#111;}
.crew-head strong{font-size:18px;color:#111;}
.crew-scroll{overflow-y:auto;padding:18px 14px 30px;flex:1;}
.crew-hero{background:linear-gradient(145deg,#12251b,#1c3b29);color:#fff;border-radius:22px;padding:22px 20px;box-shadow:0 8px 24px rgba(0,0,0,.16)}
.crew-kicker{font-size:11px;color:#79eaa9;font-weight:900;letter-spacing:.12em}
.crew-hero h1{font-size:24px;line-height:1.3;margin:8px 0}
.crew-hero p{font-size:13px;line-height:1.6;margin:0;color:#d7e5dc}
.crew-section-title{font-size:17px;margin:22px 2px 12px;color:#111;font-weight:bold;}
.plans{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.plan{background:#fff;border:2px solid transparent;border-radius:17px;padding:16px 13px;text-align:left;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.plan.selected{border-color:#03C75A;background:#f2fff7}
.plan b{display:block;font-size:16px;color:#111;}
.plan strong{display:block;font-size:21px;margin:8px 0 3px;color:#111;}
.plan span{font-size:11px;color:#67736c}
.crew-pay{width:100%;border:0;border-radius:14px;background:#03C75A;padding:15px;font-size:15px;font-weight:900;margin-top:12px;cursor:pointer;color:#111;}
.crew-note{font-size:11px;color:#738078;text-align:center;margin:8px 0}
.member-box{background:#fff;border-radius:18px;padding:16px;margin-top:14px}
.member-box h3{margin:0 0 10px;font-size:16px;color:#111;}
.usage{height:8px;background:#e8ece9;border-radius:99px;overflow:hidden}
.usage i{display:block;height:100%;width:20%;background:#03C75A}
.lead-card{background:#fff;border:1px solid #e2e7e3;border-radius:14px;padding:13px;margin-top:9px;font-size:12px;line-height:1.6;color:#111;}
.lead-card b{font-size:14px}
.lead-card .tag{float:right;background:#e8fff1;color:#079345;border-radius:99px;padding:2px 8px;font-weight:800}
.support-chat{background:#e9f0ec;border-radius:16px;padding:12px;margin-top:12px}
.support-msg{background:#fff;border-radius:4px 12px 12px 12px;padding:10px;font-size:12px;line-height:1.5;margin-bottom:9px;color:#111;}
.support-input{display:flex;gap:7px}
.support-input input{background:#fff;flex:1;border:none;border-radius:20px;padding:10px;outline:none;}
.support-input button{border:0;border-radius:50%;width:38px;height:38px;background:#03C75A;font-weight:900;cursor:pointer;flex-shrink:0;color:#111;}
.locked{text-align:center;background:#fff;border-radius:16px;padding:23px 15px;color:#67736c;font-size:13px;line-height:1.6}
.crew-tabs{height:58px;display:flex;align-items:stretch;gap:22px;padding:0 18px;background:#fff;border-bottom:1px solid #dfe4e1;flex-shrink:0}
.crew-tab{position:relative;border:0;background:transparent;padding:0 0 2px;color:#738078;font-size:15px;font-weight:800;cursor:pointer;white-space:nowrap}
.crew-tab.active{color:#14251c}
.crew-tab.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px;background:#03C75A}
.crew-pane{display:none}
.crew-pane.active{display:block}
.crew-pane .locked{margin-top:0}

.coupon-book-screen{position:fixed;top:0;right:auto;bottom:0;left:50%;width:100%;max-width:430px;transform:translateX(-50%);box-shadow:0 0 28px rgba(0,0,0,.18);background:#f4f6f5;display:none;flex-direction:column;z-index:10001}
.coupon-book-screen.open{display:flex}
.coupon-book-head{height:62px;background:#03C75A;display:flex;align-items:center;gap:12px;padding:0 16px;flex-shrink:0}
.coupon-book-head button{border:0;background:transparent;font-size:28px;cursor:pointer;color:#111}
.coupon-book-head strong{font-size:18px;color:#111}
.coupon-book-scroll{overflow-y:auto;padding:16px 14px 30px;flex:1}
.coupon-book-desc{font-size:13px;line-height:1.6;color:#556068;text-align:center;margin:0 0 18px}
.coupon-card{background:#fff;border-radius:16px;overflow:hidden;margin-bottom:16px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.coupon-card img{display:block;width:100%;height:auto}
.coupon-card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-top:1px solid #eef1f3}
.coupon-card-title{font-size:14px;font-weight:700;color:#1a202c;line-height:1.35}
.coupon-download-btn{flex-shrink:0;border:0;border-radius:10px;background:#03C75A;color:#111;font-size:13px;font-weight:800;padding:10px 14px;cursor:pointer}
.coupon-download-btn:active{opacity:.85}

/* 채팅 녹화 — 기본 숨김, 로고 3연속 클릭(데스크톱만) 후 표시 */
.chat-screen .icons #chatRecordBtn {
  display: none;
  color: #fff;
  line-height: 1;
  font-size: 18px;
}
html.chat-record-unlocked .chat-screen .icons #chatRecordBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#menuChatRecord {
  display: none !important;
}
html.chat-record-unlocked #menuChatRecord {
  display: block !important;
}
.chat-record-overlay__timer {
  display: none;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  color: #e53935;
  margin: 4px 0 14px;
  font-variant-numeric: tabular-nums;
}
.chat-record-overlay__primary,
.chat-record-overlay__stop {
  width: 100%;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  margin-bottom: 8px;
}
.chat-record-overlay__primary {
  background: #03C75A;
  color: #111;
}
.chat-record-overlay__stop {
  display: none;
  background: #e53935;
  color: #fff;
}
.chat-record-overlay__stop:active,
.chat-record-overlay__primary:active {
  opacity: 0.85;
}
.side-menu .menu-item.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.chat-record-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(0, 0, 0, 0.55);
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.chat-record-overlay.is-active {
  display: flex;
}
.chat-record-overlay__panel {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}
.chat-record-overlay__panel strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.chat-record-overlay__panel p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #556068;
  line-height: 1.5;
}
.chat-record-overlay__cancel {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #f1f3f5;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
}

/* 녹화 중 — 채팅 가리지 않는 플로팅 컨트롤 */
.chat-record-floating {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  z-index: 10055;
  width: calc(100% - 24px);
  max-width: 376px;
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.92);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}
.chat-record-floating.is-active {
  display: flex;
}
.chat-record-floating__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5252;
  flex-shrink: 0;
  animation: chat-record-pulse 1.2s ease-in-out infinite;
}
@keyframes chat-record-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.chat-record-floating__timer {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 42px;
}
.chat-record-floating__stop {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.chat-record-floating__stop:active {
  opacity: 0.85;
}
