@charset "UTF-8";

/* ========================================
   Components Styles
   공통 컴포넌트 스타일 (재사용 가능한 UI 요소들)
   - 페이지네이션
   - 버튼
   - 모달
   - 폼 요소
   - 기타 공통 컴포넌트
   ======================================== */

/* ========================================
   Pagination Component
   ======================================== */
.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #6c757d;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

.pagination-btn.active {
  background: #3498db;
  border-color: #3498db;
  color: #fff;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: #6c757d;
  font-size: 14px;
  padding: 0 5px;
}

.pagination-info {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

/* 템플릿 전용 페이지네이션 컨테이너 */
.template-pagination {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Contact Manual Pagination */
.contact-manual-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 15px 0;
}

.contact-manual-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #ddd;
  background: white;
  color: #666;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-manual-page-btn.active {
  background: #3498db;
  border-color: #3498db;
  color: white;
  font-weight: 600;
}

/* My Messages Pagination */
.my-messages-pagination-container {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  background: #fff;
  text-align: center;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.my-messages-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-pagination-prev,
.btn-pagination-next,
.btn-pagination-number,
.btn-pagination-current {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-pagination-prev:hover,
.btn-pagination-next:hover,
.btn-pagination-number:hover {
  background: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.btn-pagination-current {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.my-messages-pagination-info {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  font-weight: 500;
}

/* All Addressbooks Pagination */
.all-addressbooks-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 15px;
}

.all-addressbooks-pagination button {
  padding: 6px 12px;
  border: 1px solid #e1e5e9;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  transition: all 0.3s ease;
}

.all-addressbooks-pagination button:hover {
  border-color: #5e42ec;
  color: #5e42ec;
}

.all-addressbooks-pagination button.active {
  background: #5e42ec;
  border-color: #5e42ec;
  color: white;
}

.all-addressbooks-pagination button:disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}

.all-addressbooks-pagination-info {
  font-size: 12px;
  color: #666;
  margin-left: 10px;
}

/* Contacts Modal Pagination */
.contacts-modal-pagination {
  display: flex;
  gap: 8px;
}

.contacts-modal-pagination button {
  padding: 6px 12px;
  border: 1px solid #e1e5e9;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  transition: all 0.3s ease;
}

.contacts-modal-pagination button:hover {
  border-color: #5e42ec;
  color: #5e42ec;
}

.contacts-modal-pagination button.active {
  background: #5e42ec;
  border-color: #5e42ec;
  color: white;
}

.contacts-modal-pagination button:disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}

/* 반응형 페이지네이션 */
@media (max-width: 768px) {
  .template-pagination {
    justify-content: center;
  }

  .pagination-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .pagination-info {
    font-size: 12px;
  }
}

/* ========================================
   Button Components
   ======================================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #333;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.piggy-bank-icon {
  width: 20px;
  height: 20px;
  animation: piggy-wiggle 1.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

.cta-button:hover .piggy-bank-icon {
  animation: piggy-wiggle-fast 0.6s ease-in-out infinite;
  transform: scale(1.1);
}

/* ========================================
   Login Components
   ======================================== */
.login-box h3 {
  margin: 0 0 25px 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-input {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.login-input:focus {
  outline: none;
  border-color: #5e42ec;
}

.login-input::placeholder {
  color: #999;
}

.login-options {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}

.login-btn,
.signup-btn {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.login-btn {
  background: #3498db;
  color: #fff;
}

.login-btn:hover {
  background: #2f88c3;
}

.signup-btn {
  background: #27ae60;
  color: #fff;
}

.signup-btn:hover {
  background: #218838;
}

.login-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}

.login-links a {
  color: #666;
  text-decoration: none;
}

.login-links span {
  margin: 0 10px;
  color: #ccc;
}

/* ========================================
   Login After Components
   ======================================== */
.login-after {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-header-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.user-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-name {
  font-size: 13px;
}

.user-name span {
  font-size: 16px;
  font-weight: 700;
}

.user-id {
  font-size: 13px;
}

.user-info-link,
.charge-link {
  display: flex;
  gap: 3px;
  font-size: 13px;
  font-weight: 700;
}

.user-info-link svg,
.charge-link svg {
  fill: #6c5ce0;
}

.user-info-link span,
.charge-link span {
  color: #6c5ce0;
  text-decoration: underline;
}

.last-login {
  font-size: 12px;
  color: #666;
}

.count-row-label {
  font-size: 13px;
  color: #7b7b7b;
}

.user-count-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.user-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-amount {
  font-size: 18px;
  font-weight: 700;
}

.send-count-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f3f3f3;
  padding: 12px;
  border-radius: 10px;
}

.send-count-item {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
}

.send-count-label {
  font-size: 13px;
  color: #7b7b7b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.send-count-value {
  font-size: 18px;
  font-weight: 700;
}

.send-count-value span {
  font-size: 14px;
}

.logout-btn {
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.logout-btn:hover {
  background: #dc3545;
  color: white;
  border: 1px solid #dc3545;
}

/* ========================================
   Price Comparison Components
   ======================================== */
.price-comparison {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.comparison-content {
  text-align: center;
}

.comparison-subtitle {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.comparison-title {
  font-size: 36px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: 0.025em;
  font-weight: 900;
}

.comparison-highlight {
  color: #dc3545;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-top: 60px;
}

.price-card {
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  position: relative;
  min-width: 180px;
  background: #fff;
  margin-top: 40px;
}

.price-card .price-label {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

/* Competitor (회색) */
.price-card.competitor {
  background: #e8e8e8;
  animation: slide-right 5s linear infinite;
}

.price-card.competitor .price-label {
  background: #6e6e6e;
  color: #fff;
}

.price-card.competitor .price-amount {
  color: #6e6e6e;
}

/* Our Service (보라색) */
.price-card.our-service .price-label {
  background: #7c6ae6;
  color: #fff;
}

.price-card.our-service .price-amount {
  color: #6c5ce0;
}

.price-card.competitor:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 6px 4px rgba(0, 0, 0, 0.12);
}

.price-card.our-service {
  background: #e8e5ff;
  animation: slide-left 5s linear infinite;
}

.price-card.our-service:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 6px 4px rgba(0, 0, 0, 0.12);
}

/* mail-icon 기본 스타일 */
.mail-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.mail-icon svg {
  width: 100px;
  height: 100px;
  fill: #6c5ce0;
}

.competitor .mail-icon svg {
  fill: #6e6e6e;
}

.price-amount {
  font-size: 24px;
  font-weight: 700;
  color: #222;
}

/* ========================================
   Notice Box Components
   ======================================== */
.notice-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  padding: 32px;
  min-height: 200px;
}

.notice-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.notice-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  display: block;
}

.notice-title-box a {
  font-size: 14px;
  color: #6c5ce0;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s;
}

.notice-title-box a:hover {
  transform: translateX(2px);
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list-item-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-size: 15px;
  justify-content: space-between;
}

.notice-list li span {
  font-size: 13px;
}

.notice-list li:last-child {
  margin-bottom: 0;
}

.notice-list a {
  color: #222;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
  display: inline-block;
  transition: color 0.2s;
}

.notice-list a:hover {
  color: #5e42ec;
  text-decoration: underline;
}

/* 메인 페이지 공지사항 뱃지 스타일 */
.notice-list .main-notice-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.main-notice-badge-notice {
  background: #e3f2fd;
  color: #1976d2;
}

.main-notice-badge-event {
  background: #fff3e0;
  color: #f57c00;
}

/* ========================================
   Center Info Box Components
   ======================================== */
.center-info-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  padding: 32px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.center-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.center-phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.center-phone-icon svg {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.center-phone-number {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
}

.center-info-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.center-info-desc p {
  margin-bottom: 4px;
}

.center-info-desc p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Price Comparison Background
   ======================================== */
.price-comparison-bg {
  position: relative;
  background: #6c5ce0;
  overflow: hidden;
  padding: 50px;
}

.price-comparison-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/sec2_bg.webp') center center no-repeat;
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.price-comparison-bg > .container {
  position: relative;
  z-index: 1;
}

/* ========================================
   Page Title Components
   ======================================== */
.page-title {
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0;
  border-bottom: 1px solid #999;
  padding-bottom: 10px;
}

@media (max-width: 768px) {
  .page-title {
    margin-top: 0.75rem;
    scroll-margin-top: calc(var(--site-header-offset, 112px) + 12px);
  }
}

/* ========================================
   Send Page Layout Components
   ======================================== */
.send-page-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 50px;
}

.sene-page-box {
  display: flex;
  gap: 50px;
  width: 100%;
}

.send-form-area {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

.send-step {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 30px;
  position: relative;
}

/* 단계별 스타일 */

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  background: #7c6ae6;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.7rem;
}

.send-preview-area {
  width: 380px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

/* ========================================
   Preview Components
   ======================================== */
.preview-sticky {
  position: sticky;
  top: 105px;
  width: 100%;
  background: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 10;
}

.preview-desc {
  font-size: 13px;
  margin-bottom: 10px;
  margin-top: 0;
  line-height: 1.5;
}

.preview-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 24px;
}

.preview-sender-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px 18px 0px 18px;
  font-size: 17px;
  font-weight: 600;
  color: #222;
}

.preview-sender-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e5e5;
}

.preview-sender-number {
  font-weight: 600;
  color: #222;
  font-size: 16px;
}

.preview-message-bubble {
  background: #e9ecf1;
  border-radius: 14px;
  padding: 15px;
  min-height: 90px;
  font-size: 13px;
  margin: 16px 18px 0 18px;
  word-break: break-all;
  line-height: 1.7;
  max-height: 500px;
  overflow-y: auto;
}

.btn-send {
  width: 100%;
  padding: 16px 0;
  background: #3498db;
  color: #fff;
  font-size: 1.15rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(94, 66, 236, 0.08);
  transition: background 0.2s;
  cursor: pointer;
}

/* ========================================
   Form Components
   ======================================== */

/* 비활성화된 라디오 버튼 스타일 */
.send-step input[type='radio']:disabled + label {
  opacity: 0.5;
  cursor: not-allowed;
  color: #999;
}

.send-step input[type='radio']:disabled {
  cursor: not-allowed;
}

/* ========================================
   Info Box Components
   ======================================== */
.info-box-red {
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 10px;
}

.info-box-red .info-desc {
  color: #c53030;
  font-size: 14px;
  line-height: 1.5;
}

.send-step .info-box-yellow {
  margin-top: 18px;
  background: #fffbe6;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.98rem;
  color: #7c6ae6;
  gap: 8px;
}

.send-step .info-box-yellow .info-desc {
  color: #888;
  font-size: 0.97em;
}

/* ========================================
   Button Components
   ======================================== */
.btn-sender-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
}

.btn-sender-manage:hover {
  background: #545b62;
  transform: translateY(-1px);
}

.btn-sender-manage i {
  font-size: 12px;
}

.btn-excel-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
  text-decoration: none;
}

.btn-excel-download:hover {
  background: #218838;
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

.btn-excel-download i {
  font-size: 12px;
}

/* ========================================
   Sender Number Components
   ======================================== */
.sender-number-display {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.sender-number-select:focus {
  outline: none;
  border-color: #5e42ec;
  box-shadow: 0 0 0 3px rgba(94, 66, 236, 0.1);
}

.sender-number-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.sender-number-item:hover {
  border-color: #3498db;
  background: #ebf3fd;
  transform: translateY(-1px);
}

.sender-number-item.active {
  border-color: #3498db;
  background: #ebf3fd;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

/* sender-number-item 원형 마커 제거됨 (msgManage.css에서 상태별 아이콘으로 대체) */

.sender-number {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.sender-label {
  color: #666;
  font-size: 14px;
}

/* ========================================
   Contact Components
   ======================================== */
.contact-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.contact-input-group input {
  flex: 1;
  margin-bottom: 0;
}

.btn-add-contact {
  padding: 10px 16px;
  background: #7c6ae6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
  height: 42px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.btn-add-contact:hover {
  background: #6c5ce0;
}

.contact-list {
  margin-bottom: 15px;
}

.btn-remove-contact {
  padding: 6px 12px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-remove-contact:hover {
  background: #c82333;
}

.btn-excel-upload {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.btn-excel-upload:hover {
  background: #218838;
}

/* ========================================
   Message Type Components
   ======================================== */
.message-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.message-type-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.message-type-option:hover {
  border-color: #7c6ae6;
  background: #f0f0ff;
}

.message-type-option input[type='radio'] {
  display: none;
}

.message-type-option input[type='radio']:checked + .type-content {
  color: #7c6ae6;
}

.message-type-option input[type='radio']:checked ~ .message-type-option {
  border-color: #7c6ae6;
  background: #f0f0ff;
}

.type-content strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.type-content small {
  color: #666;
  font-size: 14px;
}

/* ========================================
   Message Input Components
   ======================================== */
.send-step textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5;
  resize: none;
}

.message-input-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  margin-left: auto;
}

.btn-special-chars {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f8f9fa;
  color: #666;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-special-chars:hover {
  background: #e9ecef;
  color: #333;
  border-color: #adb5bd;
}

.btn-special-chars i {
  font-size: 16px;
}

/* 매크로 미사용 시 버튼은 흐리게만 표시, 클릭 시 커스텀 알림 노출 */
.btn-special-chars.macro-disabled {
  opacity: 0.6;
  cursor: pointer;
}

/* ========================================
   Special Characters Modal Components
   ======================================== */
.special-chars-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.special-chars-modal.active {
  display: flex;
}

.special-chars-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.special-chars-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
}

.special-chars-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.special-chars-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.special-chars-modal-close:hover {
  background: #f8f9fa;
  color: #333;
}

.special-chars-modal-body {
  padding: 20px 24px;
}

.special-chars-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 15px;
}

.special-chars-category {
  padding: 8px 16px;
  background: #f8f9fa;
  color: #666;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.special-chars-category:hover {
  background: #e9ecef;
  color: #333;
}

.special-chars-category.active {
  background: #5e42ec;
  color: #fff;
  border-color: #5e42ec;
}

/* 특수문자 그리드 고정 높이 및 스크롤 */
.special-chars-grid {
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

/* 특수문자 아이템 스타일 */
.special-char-item {
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafbfc;
  cursor: pointer;
  transition: background 0.15s, border 0.15s;
}

.special-char-item:hover {
  background: #f0f4fa;
  border-color: #bcd0ee;
}

/* 특수문자 모달 액션 버튼들 */
.special-chars-modal-actions {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

.btn-clear-chars,
.btn-complete-chars {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-clear-chars {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-clear-chars:hover {
  background: #e5e7eb;
  color: #374151;
  border-color: #9ca3af;
}

.btn-complete-chars {
  background: #5e42ec;
  color: white;
  border: 1px solid #5e42ec;
}

.btn-complete-chars:hover {
  background: #4c35d1;
  border-color: #4c35d1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(94, 66, 236, 0.3);
}

.btn-clear-chars i,
.btn-complete-chars i {
  font-size: 12px;
}

/* ========================================
   Textarea Components
   ======================================== */
.textarea-container {
  position: relative;
}

.char-count {
  position: absolute;
  bottom: 20px;
  right: 2px;
  font-size: 12px;
  color: #666;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  font-weight: 600;
}

.message-count {
  color: #7c6ae6;
  font-weight: 600;
}

.template-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.btn-template,
.btn-save-template {
  padding: 10px 16px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-template:hover,
.btn-save-template:hover {
  background: #545b62;
}

/* ========================================
   Send Time Components
   ======================================== */
.send-time-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.send-time-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.send-time-option:hover {
  border-color: #7c6ae6;
  background: #f0f0ff;
}

.send-time-option input[type='radio'] {
  display: none;
}

.send-time-option input[type='radio']:checked ~ .send-time-option {
  border-color: #7c6ae6;
  background: #f0f0ff;
}

.time-content strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.time-content small {
  color: #666;
  font-size: 14px;
}

/* ========================================
   Guide Check Components
   ======================================== */
.guide-check {
  color: #7c6ae6;
  font-size: 1.1em;
}

/* ========================================
   Modal Components
   ======================================== */

/* Send Confirm Modal - 기본 스타일 */
#sendConfirmModal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  font-family: 'NanumSquare Neo', sans-serif;
}

#sendConfirmModal.active {
  display: flex;
}

.send-confirm-modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 95%;
  margin: 40px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  animation: modalPop 0.2s cubic-bezier(0.4, 1.4, 0.6, 1) 1;
}

/* 애니메이션은 animations.css로 이동 */

.send-confirm-modal-header {
  width: 100%;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px 12px 0 0;
  border: 1px solid #e9ecef;
  text-align: center;
  font-weight: 800;
  color: #222;
  letter-spacing: -1px;
}

.send-confirm-modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.send-confirm-modal-content {
  padding: 20px;
}

.send-confirm-info-list {
  margin-bottom: 20px;
  font-size: 1.08rem;
  line-height: 2.1;
}

.send-confirm-info-list strong {
  color: #5e42ec;
  font-weight: 700;
  min-width: 90px;
  display: inline-block;
}

.send-confirm-preview-label {
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

#confirmMsgPreview {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 4px;
  font-size: 1.08rem;
  min-height: 70px;
  color: #222;
  word-break: break-all;
}

.send-confirm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.confirm-card {
  color: #fff;
  background: #6c5ce0;
  border-radius: 12px;
  padding: 30px 20px;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.confirm-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.send-confirm-cards .confirm-card:nth-child(2) {
  background: #fff;
  border: 2px solid #6c5ce0;
  color: #6c5ce0;
}

.confirm-card-icon i {
  font-size: 3.6rem;
  color: #ffc107;
}

.confirm-card-content {
  flex: 1;
}

.confirm-card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.confirm-card-value {
  font-size: 1.6rem;
  font-weight: 900;
}

.confirm-card-desc {
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
}

/* sendMsg.css에서 관리되는 스타일들:
   - .send-confirm-checkbox label
   - .send-confirm-notice-item
   - .send-confirm-notice-text span
   - .send-confirm-notice-icon
   - .send-confirm-notice-desc
   - #btnCancelSend
   - #btnReallySend
   - #btnCloseSendModal
*/

/* Contacts Modal */
.contacts-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  font-family: 'NanumSquare Neo', sans-serif;
}

.contacts-modal.active {
  display: flex;
}

.contacts-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  margin: 40px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
}

.contacts-modal-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contacts-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.contacts-modal-search {
  flex: 1;
  margin-left: 20px;
  position: relative;
}

.contacts-modal-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.contacts-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts-modal-close:hover {
  color: #5e42ec;
}

.contacts-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
}

.contacts-table th,
.contacts-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.contacts-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.contacts-table tr:hover {
  background: #f8f9fa;
}

.contacts-modal-footer {
  padding: 20px;
  border-top: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contacts-modal-pagination {
  display: flex;
  gap: 10px;
}

.contacts-modal-info {
  font-size: 14px;
  color: #666;
}

/* All Addressbooks Modal 스타일들은 sendMsg.css에서 관리됩니다 */

/* My Messages Modal 스타일들은 sendMsg.css에서 관리됩니다 */

/* Mobile Responsive Styles for Modals */
/* 반응형 CSS는 responsive.css로 이동 */

/* ========================================
   Common Components (Moved from pages.css)
   ======================================== */

/* Status Badge Components */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-completed {
  background: #cce8fc;
  color: #3498db;
}

.status-processing {
  background: #d1ecf1;
  color: #0c5460;
}

.status-done {
  background: #d4edda;
  color: #155724;
}

.status-refusal,
.status-cancel {
  background: #f8d7da;
  color: #721c24;
}

/* Type Badge Components */
.type-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.type-tax {
  background: #e3f2fd;
  color: #1976d2;
}

.type-cash {
  background: #f3e5f5;
  color: #7b1fa2;
}

/* Pagination Components */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-numbers {
  display: flex;
  gap: 5px;
}

.page-number {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-number:hover {
  background: #f8f9fa;
}

.page-number.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

/* Table Container Components */
.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

/* Quick Actions Components */
.quick-actions {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quick-actions h2 {
  margin: 0 0 20px 0;
  color: #333;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.action-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.action-card:hover {
  background: white;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

/* Common Button Components */
.btn-primary {
  background: #667eea;
  color: #fff;
  padding: 12px 24px;
}

.btn-primary:hover {
  background: #5a6fd8;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background: #545b62;
}

/* Form Components */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Card Components */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

/* Filter Components */
.filter-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.filter-select,
.filter-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.search-group {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 500px;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

/* List Components */
.list-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.list-header h2 {
  margin: 0;
  color: #333;
}

.list-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.result-count {
  color: #666;
}

/* Status Display Components */
.status-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Info Grid Components */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.info-group {
  display: flex;
  flex-direction: column;
}

.info-group label {
  font-weight: 600;
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.info-group span {
  color: #333;
  font-size: 16px;
}

/* Detail Section Components */
.detail-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.detail-section h3 {
  margin-bottom: 10px;
}

/* Memo Content Components */
.memo-content {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  color: #333;
  line-height: 1.6;
  min-height: 60px;
}

/* History Components */
.history-list {
  max-height: 300px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.history-item:last-child {
  border-bottom: none;
}

.history-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
}

.history-content {
  flex: 1;
}

.history-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.history-date {
  color: #666;
  font-size: 12px;
}

.history-memo {
  color: #333;
  margin-top: 8px;
  line-height: 1.5;
}

/* ========================================
   PC Only Modal (모바일 접근 차단 모달)
   ======================================== */
.pc-only-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pc-only-modal.active {
  opacity: 1;
  visibility: visible;
}

.pc-only-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 60px 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.pc-only-modal.active .pc-only-modal-content {
  transform: scale(1);
}

.pc-only-modal-illustration {
  position: relative;
  width: 100%;
  height: 300px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PC 모니터 */
.pc-monitor {
  position: relative;
  z-index: 2;
}

.monitor-screen {
  width: 200px;
  height: 140px;
  background: #2c3e50;
  border-radius: 8px 8px 0 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.screen-content {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 15px;
}

.screen-sidebar {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 40px;
  height: 80px;
  background: #34495e;
  border-radius: 4px;
}

.screen-lines {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 120px;
}

.screen-lines .line {
  height: 8px;
  background: #34495e;
  margin-bottom: 10px;
  border-radius: 2px;
}

.screen-lines .line:nth-child(1) {
  width: 100%;
}

.screen-lines .line:nth-child(2) {
  width: 80%;
}

.screen-lines .line:nth-child(3) {
  width: 60%;
}

.magnifying-glass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(52, 152, 219, 0.3);
  border: 3px solid #3498db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #3498db;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.monitor-base {
  width: 240px;
  height: 20px;
  background: #34495e;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  position: relative;
}

.monitor-base::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 10px;
  background: #2c3e50;
  border-radius: 0 0 8px 8px;
}

/* 보라색 원 배경 */
.purple-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: rgba(138, 43, 226, 0.15);
  border-radius: 50%;
  z-index: 1;
}

/* 별 장식 */
.star {
  position: absolute;
  color: rgba(138, 43, 226, 0.4);
  font-size: 20px;
  z-index: 1;
}

.star-1 {
  top: 20%;
  left: 15%;
  animation: float 3s ease-in-out infinite;
}

.star-2 {
  top: 15%;
  right: 20%;
  animation: float 3s ease-in-out infinite 0.5s;
}

.star-3 {
  bottom: 25%;
  left: 20%;
  animation: float 3s ease-in-out infinite 1s;
}

.star-4 {
  bottom: 20%;
  right: 15%;
  animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

.pc-only-modal-text {
  margin-bottom: 30px;
}

.pc-only-modal-text h2 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.pc-only-modal-text p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.pc-only-modal-button {
  background: #6a5acd;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(106, 90, 205, 0.3);
}

.pc-only-modal-button:hover {
  background: #5a4abd;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(106, 90, 205, 0.4);
}

.pc-only-modal-button:active {
  transform: translateY(0);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .pc-only-modal-content {
    padding: 40px 30px;
    max-width: 90%;
  }

  .pc-only-modal-illustration {
    height: 250px;
    margin-bottom: 30px;
  }

  .monitor-screen {
    width: 160px;
    height: 110px;
  }

  .magnifying-glass {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .monitor-base {
    width: 190px;
    height: 16px;
  }

  .purple-circle {
    width: 140px;
    height: 140px;
  }

  .star {
    font-size: 16px;
  }

  .pc-only-modal-text h2 {
    font-size: 18px;
  }

  .pc-only-modal-text p {
    font-size: 12px;
  }

  .pc-only-modal-button {
    padding: 14px 30px;
    font-size: 14px;
  }
}

/* ========================================
   Custom Alert Modal (커스텀 알림창)
   ======================================== */
.custom-alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-alert-modal.active {
  opacity: 1;
  visibility: visible;
}

.custom-alert-box {
  background: #fff;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalPop 0.2s cubic-bezier(0.4, 1.4, 0.6, 1) 1;
  overflow: hidden;
}

.custom-alert-content {
  padding: 24px;
  text-align: center;
}

.custom-alert-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  background: #6c5ce0;
}

.custom-alert-icon.warning {
  background: #f39c12;
}

.custom-alert-icon.error {
  background: #e74c3c;
}

.custom-alert-icon.success {
  background: #27ae60;
}

.custom-alert-icon.info {
  background: #808080;
}

.custom-alert-message {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
  word-break: keep-all;
  white-space: pre-line;
}

.custom-alert-button {
  width: 100%;
  padding: 12px 24px;
  background: #6c5ce0;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-alert-button:hover {
  background: #5a4cd6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 92, 224, 0.3);
}

.custom-alert-button:active {
  transform: translateY(0);
}

/* 반응형 */
@media (max-width: 480px) {
  .custom-alert-box {
    max-width: 90%;
    width: 90%;
  }

  .custom-alert-content {
    padding: 20px;
  }

  .custom-alert-message {
    font-size: 14px;
  }

  .custom-alert-button {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* ========================================
   Custom Confirm Modal (커스텀 확인창)
   ======================================== */
.custom-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-confirm-modal.active {
  opacity: 1;
  visibility: visible;
}

.custom-confirm-box {
  background: #fff;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalPop 0.2s cubic-bezier(0.4, 1.4, 0.6, 1) 1;
  overflow: hidden;
}

.custom-confirm-content {
  padding: 24px;
  text-align: center;
}

.custom-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  background: #f39c12;
}

.custom-confirm-message {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 24px;
  word-break: keep-all;
  text-align: center;
}

.custom-confirm-message .charge-amount-details {
  margin-top: 0;
  margin-bottom: 20px;
}

.custom-confirm-message .notice-text {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-top: 12px;
}

.custom-confirm-message .question-text {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin-top: 16px;
}

.custom-confirm-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.custom-confirm-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-confirm-btn-cancel {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.custom-confirm-btn-cancel:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

.custom-confirm-btn-confirm {
  background: #6c5ce0;
  color: #fff;
}

.custom-confirm-btn-confirm:hover {
  background: #5a4cd6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 92, 224, 0.3);
}

.custom-confirm-btn:active {
  transform: translateY(0);
}

/* 반응형 */
@media (max-width: 480px) {
  .custom-confirm-box {
    max-width: 90%;
    width: 90%;
  }

  .custom-confirm-content {
    padding: 20px;
  }

  .custom-confirm-message {
    font-size: 14px;
    padding: 12px;
  }

  .custom-confirm-buttons {
    flex-direction: column;
  }

  .custom-confirm-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* ========================================
   Login OTP Modal
   ======================================== */
.otp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.otp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.otp-modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(108, 92, 224, 0.18), 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1);
  text-align: center;
}

.otp-modal-overlay.active .otp-modal-card {
  transform: translateY(0) scale(1);
}

.otp-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f4f3ff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6c5ce0;
  transition: background 0.18s, color 0.18s;
  padding: 0;
}

.otp-modal-close:hover {
  background: #6c5ce0;
  color: #fff;
}

.otp-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0eeff 0%, #e8e4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.otp-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.otp-modal-desc {
  font-size: 14px;
  color: #666;
  margin: 0 0 22px;
  line-height: 1.6;
}

.otp-input-wrap {
  margin-bottom: 10px;
}

.otp-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-align: center;
  border: 2px solid #e0deff;
  border-radius: 12px;
  background: #fafbff;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}

.otp-input:focus {
  border-color: #6c5ce0;
  box-shadow: 0 0 0 3px rgba(108, 92, 224, 0.12);
  background: #fff;
}

.otp-input::placeholder {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: #bbb;
}

.otp-attempt-bar {
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
  min-height: 18px;
}

.otp-attempt-bar.danger {
  color: #e74c3c;
  font-weight: 600;
}

.otp-modal-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.otp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
}

.otp-btn:active {
  transform: translateY(1px);
}

.otp-btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #6c5ce0 0%, #8b7cf8 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 92, 224, 0.28);
}

.otp-btn-primary:hover {
  background: linear-gradient(135deg, #5a4bd1 0%, #7a6be7 100%);
  box-shadow: 0 6px 18px rgba(108, 92, 224, 0.38);
}

.otp-btn-secondary {
  flex: 1;
  background: #f4f3ff;
  color: #6c5ce0;
  box-shadow: none;
}

.otp-btn-secondary:hover {
  background: #e8e4ff;
}

.otp-btn-unlock {
  width: 100%;
  background: #fff5f5;
  color: #e74c3c;
  border: 1.5px dashed #fbb;
  border-radius: 10px;
  margin-top: 4px;
  font-size: 13px;
  padding: 11px 0;
}

.otp-btn-unlock:hover {
  background: #ffe8e8;
  border-color: #e74c3c;
}

@media (max-width: 480px) {
  .otp-modal-card {
    padding: 32px 20px 24px;
    border-radius: 16px;
  }
  .otp-input {
    font-size: 18px;
  }
}

/* ========================================
   RCS Hero Flow Diagram Section (rhf)
   ======================================== */

.rhf-section {
  background: linear-gradient(160deg, #1a3d78 0%, #1e55b0 45%, #1a3d78 100%);
  padding: 70px 0 62px;
  position: relative;
  overflow: hidden;
}

.rhf-bg-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 360px;
  background: radial-gradient(ellipse, rgba(147, 197, 253, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.rhf-header {
  text-align: center;
  margin-bottom: 50px;
}

.rhf-badge {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 20px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.rhf-title {
  font-size: 1.9rem;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
}

.rhf-title em {
  font-style: normal;
  color: #60a5fa;
}

.rhf-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.7;
}

/* Diagram container */
.rhf-diagram {
  display: flex;
  align-items: stretch;
  min-height: 230px;
}

/* Side boxes (회원 & 핸드폰) */
.rhf-side-box {
  flex-shrink: 0;
  width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  padding: 20px 12px;
  text-align: center;
  color: #fff;
  min-height: 220px;
  position: relative;
}

.rhf-side-icon {
  width: 50px;
  height: 50px;
  background: rgba(96, 165, 250, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.rhf-side-label {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

/* Arrow columns */
.rhf-arrows-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Each arrow segment */
.rhf-arrow-seg {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 105px;
}

/* Horizontal base line */
.rhf-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
}

/* Moving flow segment */
.rhf-flow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  width: 28%;
  border-radius: 3px;
}

/* Arrow label */
.rhf-alabel {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  top: calc(50% - 22px);
  left: 0;
  pointer-events: none;
  white-space: nowrap;
}

/* Sub-label */
.rhf-sublabel {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 9.5px;
  top: calc(50% + 9px);
  left: 0;
  pointer-events: none;
  line-height: 1.5;
}

/* Arrowhead triangle */
.rhf-arrowhead {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
}

/* ─── Right-direction arrow (→) ─── */
.rhf-ar .rhf-flow {
  left: -28%;
  background: linear-gradient(90deg, transparent 0%, #4da6ff 55%, #93c5fd 100%);
  animation: rhf-flow-right 2.4s linear infinite;
}

.rhf-ar .rhf-alabel { color: #93c5fd; }

.rhf-ar .rhf-arrowhead {
  right: -1px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #4da6ff;
}

@keyframes rhf-flow-right {
  0%   { left: -28%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ─── Left-direction arrow (←) ─── */
.rhf-al .rhf-flow {
  right: -28%;
  background: linear-gradient(270deg, transparent 0%, #2dd4bf 55%, #5eead4 100%);
  animation: rhf-flow-left 2.4s linear infinite;
}

.rhf-al .rhf-alabel { color: #5eead4; }
.rhf-al .rhf-sublabel { color: rgba(94, 234, 212, 0.65); }

.rhf-al .rhf-arrowhead {
  left: -1px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 8px solid #2dd4bf;
}

@keyframes rhf-flow-left {
  0%   { right: -28%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { right: 100%; opacity: 0; }
}

/* Center column */
.rhf-center-col {
  flex-shrink: 0;
  width: 185px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 4px 0;
}

.rhf-center-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rhf-center-box-icon { color: #bfdbfe; line-height: 1; }

.rhf-center-box.rhf-analytics-box {
  border-color: rgba(94, 234, 212, 0.38);
}
.rhf-center-box.rhf-analytics-box .rhf-center-box-icon { color: #5eead4; }

.rhf-logo-img {
  width: 130px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.rhf-center-box-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.45;
}

.rhf-center-box-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* Phone mockup */
.rhf-phone-device {
  width: 86px;
  height: 144px;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border: 2.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rhf-phone-device::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.rhf-phone-screen-area {
  position: absolute;
  top: 19px;
  left: 3px;
  right: 3px;
  bottom: 5px;
  background: #090e1d;
  border-radius: 15px;
  padding: 6px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.rhf-phone-sender {
  font-size: 5.5px;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 1px;
}

.rhf-phone-bubble {
  background: rgba(30, 58, 138, 0.75);
  border-radius: 5px 5px 5px 2px;
  padding: 4px 5px;
  font-size: 6px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.rhf-phone-bubble strong {
  display: block;
  color: #60a5fa;
  font-size: 6.5px;
  margin-bottom: 2px;
}

.rhf-phone-cta {
  margin-top: 2px;
  background: rgba(96, 165, 250, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 4px;
  padding: 3px;
  text-align: center;
  font-size: 5.5px;
  color: #93c5fd;
  font-weight: 700;
}

.rhf-phone-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-top: 4px;
}

/* Description box */
/* ─── 방문자 인사이트 블록 (미니멀 넘버링) ─── */
.rhf-insight-block {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 도입 문구 */
.rhf-insight-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.45);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.rhf-insight-lead-icon {
  flex-shrink: 0;
  color: rgba(255,255,255,0.3);
}

.rhf-insight-lead p {
  margin: 0;
  line-height: 1.5;
}

/* 넘버링 그리드 */
.rhf-insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 36px;
}

.rhf-insight-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  transition: background 0.18s, border-color 0.18s;
}

.rhf-insight-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

.rhf-insight-num {
  flex-shrink: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(96,165,250,0.7);
  background: rgba(96,165,250,0.07);
  border-right: 1px solid rgba(255,255,255,0.06);
}

.rhf-insight-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.rhf-insight-card strong {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}

.rhf-insight-svg {
  flex-shrink: 0;
  color: rgba(255,255,255,0.25);
}

/* 핵심 질문 강조 */
.rhf-insight-question {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  text-align: center;
}

.rhf-iq-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.rhf-iq-text {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* 솔루션 배너 */
.rhf-solution-banner {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid rgba(96,165,250,0.5);
  border-radius: 12px;
  padding: 28px 28px 22px;
  text-align: center;
}

.rhf-solution-top {
  margin-bottom: 14px;
}

.rhf-solution-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 4px;
  padding: 4px 10px;
}

.rhf-solution-desc {
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  line-height: 2;
  margin: 0 0 22px;
}

.rhf-solution-desc strong {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}

.rhf-solution-free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(96,165,250,0.12);
  border: 1px solid rgba(96,165,250,0.3);
  color: #93c5fd;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  letter-spacing: 0.01em;
}

.rhf-solution-sub {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.28);
  font-size: 12px;
}

/* ─── 모바일 전용 세로 플로우 (기본 숨김) ─── */
.rhf-mobile-flow { display: none; }

/* Responsive: 태블릿 */
@media (max-width: 900px) {
  .rhf-side-box { width: 110px; }
  .rhf-center-col { width: 155px; }
  .rhf-title { font-size: 1.5rem; }
}

/* Responsive: 모바일 — 데스크탑 다이어그램 숨기고 세로 플로우 표시 */
@media (max-width: 700px) {
  .rhf-diagram { display: none; }
  .rhf-title { font-size: 1.3rem; }

  /* 인사이트 블록 모바일 */
  .rhf-insight-grid { grid-template-columns: 1fr; gap: 7px; }
  .rhf-iq-text { font-size: 1.15rem; }
  .rhf-solution-banner { padding: 22px 16px 18px; }
  .rhf-solution-free { font-size: 13.5px; padding: 11px 20px; }
  .rhf-insight-num { width: 38px; font-size: 10px; }

  /* 모바일 플로우 컨테이너 */
  .rhf-mobile-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  /* 각 노드 박스 */
  .rhf-mf-box {
    width: 100%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    padding: 14px 20px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .rhf-mf-icon {
    width: 42px;
    height: 42px;
    background: rgba(96, 165, 250, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
  }

  .rhf-mf-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
  }

  .rhf-mf-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
  }

  .rhf-mf-phone-box {
    flex-direction: row;
    gap: 14px;
    justify-content: center;
    align-items: center;
  }

  /* 세로 화살표 */
  .rhf-mf-arrow {
    position: relative;
    width: 3px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
  }

  /* 화살촉 (아래 방향) */
  .rhf-mf-arrow::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
  }

  /* 흐름 애니메이션 세그먼트 */
  .rhf-mf-arrow::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 18px;
    border-radius: 3px;
    animation: rhf-mf-down 1.8s ease-in-out infinite;
  }

  @keyframes rhf-mf-down {
    0%   { top: -18px; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  /* 파란 화살표 (→ 방향 흐름) */
  .rhf-mf-blue::before {
    background: linear-gradient(180deg, transparent, #60a5fa, #93c5fd);
  }
  .rhf-mf-blue::after {
    border-top: 8px solid #4da6ff;
  }

  /* 청록 화살표 (← 방향 흐름) */
  .rhf-mf-teal::before {
    background: linear-gradient(180deg, transparent, #2dd4bf, #5eead4);
  }
  .rhf-mf-teal::after {
    border-top: 8px solid #2dd4bf;
  }

  /* 화살표 라벨 */
  .rhf-mf-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
  }

  .rhf-mf-blue .rhf-mf-label  { color: #93c5fd; }
  .rhf-mf-teal .rhf-mf-label  { color: #5eead4; }

  .rhf-mf-sublabel {
    position: absolute;
    left: 12px;
    top: calc(50% + 14px);
    font-size: 9.5px;
    color: rgba(94, 234, 212, 0.65);
    white-space: nowrap;
    line-height: 1.4;
  }
}
