* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f0f0f;
  color: #fff;
}

/* =======================
   HEADER
======================= */
/* =========================
   HEADER LAYOUT FIX (중요)
========================= */

.top-header {
   position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between; /* 🔥 좌우 분리 핵심 */
  height: 64px;
  padding: 0 24px;
  background: #0f0f0f;
  border-bottom: 1px solid #1e1e1e;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 혹시 기존 float/absolute 제거 */
.header-right,
.header-left {
  float: none !important;
  position: static !important;
}


.menu-btn {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: #fff;
  margin-right: 12px;
}

.logo {
  font-size: 20px;
}

/* =======================
   LAYOUT
======================= */
.layout {
  display: flex;
  min-height: calc(100vh - 56px);
}

/* =======================
   SIDEBAR
======================= */
.sidebar {
  width: 240px;
  background: #111;
  padding: 20px;
  border-right: 1px solid #222;
   z-index: 99999;
}

.sidebar-title {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 12px;
}

.industry-list {
  list-style: none;
}

.industry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  border-radius: 6px;
  transition: background 0.2s;
}

.industry-item:hover {
  background: #1a1a1a;
}

.industry-item.active {
  background: #1f1f1f;
}

.industry-name {
  font-size: 14px;
  color: #e0e0e0;
}

.mode-icons {
  display: flex;
  gap: 6px;
}

.mode-icon {
  width: 26px;
  height: 26px;
  background: #1f1f1f;
  border-radius: 6px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  text-decoration: none;
  border: 1px solid #333;
}

.mode-icon:hover {
  background: #2a2a2a;
  color: #fff;
}

.mode-icon.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

/* =======================
   CONTENT
======================= */
.content {
  flex: 1;
  padding: 24px;
}

.content-header h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.content-header p {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
}

/* =======================
   TEMPLATE GRID
======================= */
.template-grid {
  display: grid;
  gap: 16px;
}

/* 세로 영상 */
.template-grid.vertical-mode {
  grid-template-columns: repeat(4, 1fr);
}

/* 가로 영상일 경우 이 클래스만 변경 */
.template-grid.horizontal-mode {
  grid-template-columns: repeat(3, 1fr);
}

.template-card {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 10px;
}

/* 썸네일 이미지 적용 */
.thumb {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 기능 표시 */
.features {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
}

.features span {
  background: #222;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 가격 */
.price {
  font-size: 13px;
  font-weight: 600;
  color: #3b82f6;
}

.features.icons span {
  background: none;
  padding: 0;
  font-size: 15px;
}



/* =======================
   RESPONSIVE
======================= */
@media (max-width: 1024px) {
  .template-grid.vertical-mode {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  .menu-btn {
    display: block;
  }


  .template-grid.vertical-mode,
  .template-grid.horizontal-mode {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .template-grid.vertical-mode,
  .template-grid.horizontal-mode {
    grid-template-columns: 1fr;
  }
}




/* =======================
   HERO BANNER
======================= */

.hero-banner {
  position: relative;
  width: 100%;
  height: 360px;
  background-size: cover;
  background-position: center;
  margin-bottom: 30px;
  border-radius: 14px;
  overflow: hidden;

  /* 배경 이미지 */
  background-size: cover;
  background-position: center;
}

/* 어두운 오버레이 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

/* 텍스트 영역 */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-content h1 span {
  color: #3b82f6;
}

.hero-content p {
  font-size: 15px;
  color: #ddd;
}

.hero-content p strong {
  color: #fff;
}

/* 메인 타이틀 */
.hero-title {
  font-size: 68px;        /* ✅ CLASSU 급 크기 */
  line-height: 1.25;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title span {
  display: inline-block;
  color: #ffffff;
}

/* 서브 텍스트 */
.hero-sub {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 768px) {
  .hero-banner {
    height: 220px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-content h1 {
    font-size: 20px;
  }

  .hero-content p {
    font-size: 14px;
  }
}


/* =======================
   CARD ACTION AREA
======================= */

.card-bottom {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

/* 상품 코드 */
.product-code {
  font-size: 11px;
  color: #777;
  letter-spacing: 0.5px;
}

/* 가격 + 버튼 */
.action-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 제작하기 버튼 */
.make-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.make-btn:hover {
  background: #2563eb;
}


/* =======================
   CARD CTA with SAMPLE
======================= */

.card-bottom {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* 상품 코드 */
.product-code {
  font-size: 11px;
  color: #777;
  letter-spacing: 0.5px;
}

/* CTA 영역 */
.cta-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* 샘플 보기 버튼 (보조 CTA) */
.sample-btn {
  width: 100%;
  max-width: 260px;
  background: transparent;
  color: #cbd5f5;
  border: 1px solid #334155;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sample-btn:hover {
  background: #1e293b;
  color: #fff;
}

/* 가격 */
.price {
  font-size: 13px;
  font-weight: 600;
  color: #3b82f6;
}

/* 제작하기 버튼 (주 CTA) */
.make-btn {
  width: 100%;
  max-width: 260px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 6px 14px rgba(59,130,246,0.35);
}

.make-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(59,130,246,0.45);
}

.make-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}


/* =======================
   THUMB FEATURE ICONS
======================= */

.thumb {
  position: relative;
}

/* 하단 그라데이션 */
.thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0)
  );
  pointer-events: none;
}

/* 아이콘 컨테이너 */
.thumb-features {
  position: absolute;
  bottom: 6px;
  left: 8px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

/* 아이콘 스타일 */
.thumb-features span {
  font-size: 15px;
  line-height: 1;
  background: rgba(0,0,0,0.55);
  padding: 4px 6px;
  border-radius: 6px;
  color: #fff;
}


.login-btn {
  background: transparent;
  color: #cfcfcf;
  border: 1px solid #333;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.signup-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}



/* ================= SIDEBAR CLOSE ================= */

.sidebar-close {
  display: none;   /* 🔒 PC에서는 숨김 */
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}


/* =========================
   MOBILE SIDEBAR (확정판)
========================= */
@media (max-width: 768px) {

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #0f0f0f;

    transform: translateX(-100%);   /* 🔴 기본: 화면 밖 */
    transition: transform 0.3s ease;

    z-index: 2200;
  }

  .sidebar.open {
    transform: translateX(0);       /* 🔥 열림 */
  }


.sidebar-close {
    display: block;        /* 🔥 모바일에서만 표시 */
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
    z-index: 2300;
  }


  /* 메인 콘텐츠 밀림 방지 */
  .content {
    margin-left: 0 !important;
  }

}


.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
}



/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .menu-btn {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 2200;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;   /* 🔥 모바일에서만 표시 */
    z-index: 2300;
  }

  .content {
    margin-left: 0;
  }
}




/* =======================
   SIDEBAR FOOTER
======================= */

.sidebar-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #222;
}

.sidebar-help-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-help-item a {
  display: block;
  padding: 8px 6px;
  font-size: 13px;
  color: #cfcfcf;
  text-decoration: none;
  border-radius: 6px;
}

.sidebar-help-item a:hover {
  background: #1a1a1a;
  color: #fff;
}

/* 🔥 챗봇 상담 강조 */
.sidebar-help-item.chatbot a {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}

.sidebar-help-item.chatbot a:hover {
  opacity: 0.9;
}



.site-footer {
  background: #0b0b0b;
  border-top: 1px solid #1f1f1f;
  padding: 40px 24px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: #e5e5e5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #3b82f6;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #1f1f1f;
  text-align: center;
  font-size: 12px;
  color: #666;
}




/* =========================
   FLOATING ACTIONS
========================= */

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5000;
}

/* 공통 버튼 */
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
  transition: all 0.25s ease;
}

/* 호버 */
.fab:hover {
  transform: translateY(-2px);
  background: #3b82f6;
}

/* 챗봇 강조 */
.chatbot-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 28px rgba(59,130,246,0.55);
}

/* 스크롤 버튼은 기본 숨김 */
.scroll-btn {
  opacity: 0;
  pointer-events: none;
}

/* 표시 상태 */
.scroll-btn.show {
  opacity: 1;
  pointer-events: auto;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .floating-actions {
    right: 14px;
    bottom: 18px;
  }

  .fab {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}



/* =========================
   CHATBOT FLOAT ICON
========================= */
#chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #3b82f6;
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  z-index: 3000;
}

/* =========================
   CHATBOT PANEL
========================= */
#chatbot-panel {
  position: fixed;
  right: 24px;
  bottom: 120px;

  width: 360px;

  height: 600px;        /* ✅ 실제 세로 길이 */
  max-height: 80vh;     /* ✅ 화면 작은 경우 대비 */

  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 14px;

  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 6000;
}


/* =========================
   HEADER
========================= */
.chatbot-header {
  height: 52px;
  background: #111;
  border-bottom: 1px solid #222;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.chatbot-header button {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
}

/* =========================
   MESSAGES
========================= */
.chatbot-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  font-size: 14px;
}

.bot-message {
  background: #1a1a1a;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  max-width: 85%;
}

.user-message {
  background: #3b82f6;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  max-width: 85%;
  margin-left: auto;
  color: #fff;
}

/* =========================
   INPUT
========================= */
.chatbot-input {
  border-top: 1px solid #222;
  display: flex;
  padding: 10px;
  gap: 8px;
}

.chatbot-input input {
  flex: 1;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
}

.chatbot-input button {
  background: #3b82f6;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {
  #chatbot-panel {
    width: calc(100% - 24px);
    right: 12px;
    bottom: 80px;
    max-height: 70vh;
  }

  #chatbot-fab {
    right: 16px;
    bottom: 16px;
  }
}




/* =========================
   CHATBOT TABS
========================= */

.chatbot-tabs {
  display: flex;
  gap: 6px;
}

.chatbot-tab {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #aaa;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot-tab:hover {
  background: #222;
  color: #fff;
}

.chatbot-tab.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-color: transparent;
}


.chatbot-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chatbot-mode {
  display: none;
  flex: 1;
}

.chatbot-mode.active {
  display: flex;
  flex-direction: column;
}

/* 음성 모드 */
.chatbot-voice-mode {
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  text-align: center;
}

.voice-info {
  font-size: 14px;
  color: #cfcfcf;
}

.voice-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}



/* =========================
   HEADER SEARCH BAR
========================= */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 중앙 고정 영역 */
.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}


.header-search {
  position: relative;   /* ⭐ 이 한 줄이 핵심 */
  flex: 1;
  display: flex;
  justify-content: center;
}


.header-search input {
  width: 600px;
  height: 46px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 23px;
  color: #fff;
  padding: 0 48px 0 20px;
}


.header-search input::placeholder {
  color: rgba(255,255,255,0.6);
}

.header-search input:focus {
  border-color: rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.4);
}

/* 검색 버튼 */
.header-search .search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 18px;
}


.header-search .search-btn:hover {
  opacity: 1;
}


@media (max-width: 900px) {
  .header-search {
    display: none;
  }
}



@media (max-width: 768px) {
  .hero-content {
    padding: 40px 30px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 15px;
  }
}


/* =========================
   VIDEO MODAL
========================= */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;               /* 기본은 닫힘 */

  align-items: center;         /* 중앙 정렬 준비 */
  justify-content: center;
}

.video-modal.active {
  display: flex;               /* 열릴 때만 flex */
}


.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.video-modal-content {
  position: relative;
  max-width: 800px;
  margin: 6vh auto;
  padding: 20px;
  z-index: 2;
}

.video-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.video-modal-close:hover {
  background: #ef4444;
}


.preview-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
}


.preview-video {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* ✅ 잘림 없음 */
  background: #000;      /* 남는 여백 처리 */
}


/* =======================
   FREE TEST CTA
======================= */

.free-test-cta {
  margin-bottom: 18px;
}

.free-test-btn {
  display: block;
  padding: 14px 14px;
  border-radius: 12px;
  text-decoration: none;
  text-align: left;

  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;

  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;

  box-shadow: 0 8px 18px rgba(34,197,94,0.35);
  transition: all 0.2s ease;
}

.free-test-btn span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.free-test-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(34,197,94,0.45);
}


@media (max-width: 768px) {
  .free-test-cta {
    display: flex;
    justify-content: left;   /* 중앙 정렬 */
  }

  .free-test-btn {
    width: 90%;                /* 🔥 가로 살짝 축소 */
    max-width: 170px;          /* 너무 커지지 않게 제한 */
    padding: 12px;
    font-size: 14px;
  }

  .free-test-btn span {
    font-size: 11px;
  }
}


.logo {
  margin: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 34px;          /* 헤더 높이에 맞게 */
  width: auto;
  display: block;
}

/* HERO 핵심 문구 강조 */
.hero-title span {
  color: #ffffff;                     /* 글자 흰색 */
  -webkit-text-stroke: 0.6px #000;    /* 검은 테두리 (Chrome, Safari) */
  text-stroke: 0.8px #000;            /* 표준 대응 */
  text-shadow:
    0 1px 1px rgba(0,0,0,0.6),
    0 2px 4px rgba(0,0,0,0.6);         /* 구형 브라우저 대비 */
  font-weight: 900;
}




/* ===============================
   🔥 업로드 프로그램 다운로드 배너
================================= */

.download-banner {
  margin-top: 22px;
  padding: 14px 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(59,130,246,0.35);
}

.download-banner .banner-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.download-banner .banner-icon {
  font-size: 28px;
  line-height: 1;
}

.download-banner .banner-text b {
  font-size: 15px;
  font-weight: 800;
}

.download-banner .banner-text span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 3px;
}

/* Hover 효과 */
.download-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(59,130,246,0.45);
  transition: all 0.25s ease;
}



/* ===============================
   FOOTER DOWNLOAD BANNERS
================================== */

.footer-download-banners {
  display: flex;
  gap: 14px;
  margin: 0 auto 28px;
  max-width: 1280px;
  padding: 24px 20px;        /* 여백 증가 */
  
  border-top: 1px solid #1f1f1f;  /* 🔥 상단 경계선 */
  border-bottom: 1px solid #1f1f1f; /* 🔥 하단 경계선 */
}

.download-banner-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  text-decoration: none;
  border-radius: 12px;

  /* 내부 경계선 (은은하게) */
  border: 1px solid rgba(255,255,255,0.12);   /* 🔥 은은한 라인 */

  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;

  box-shadow: 0 8px 22px rgba(59,130,246,0.25);
  transition: all 0.25s ease;
}

.download-banner-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59,130,246,0.45);
}

.download-banner-item .icon {
  font-size: 28px;
  line-height: 1;
}

.download-banner-item .text b {
  font-size: 15px;
  font-weight: 800;
}

.download-banner-item .text span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.9;
}

/* 모바일: 세로 정렬 */
@media (max-width: 768px) {
  .footer-download-banners {
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px;
  }

  .download-banner-item {
    padding: 14px;
  }
}



/* ============================
   HEADER USER AREA (우측 상단)
============================ */

.header-user {
  display: flex;
  align-items: center;
  gap: 18px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-40%);
}

/* 포인트 */
.user-point {
  font-size: 14px;
  font-weight: 600;
  color: #93c5fd;
  background: #1a1a1a;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #2e2e2e;
}

/* 알림 버튼 */
.user-msg-btn {
  position: relative;
  background: none;
  border: none;
  color: #e5e7eb;
  font-size: 20px;
  cursor: pointer;
}

.user-msg-btn .msg-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px; /* 두 버전 중 더 자연스러운 값 선택 */
  border-radius: 10px;
  font-weight: 700;
}

/* 프로필 이미지 */
.user-profile img {
  width: 34px; /* 더 큰 최신값 유지 */
  height: 34px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  object-fit: cover;
  cursor: pointer;
}

/* 드롭다운 */
.profile-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  width: 210px;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 12px 0;
  display: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  z-index: 99999;
}

.profile-dropdown.show {
  display: block;
}

/* 상단 사용자 정보 */
.pd-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #222;
}

.pd-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.pd-user .pd-info b {
  font-size: 14px;
}

.pd-user .pd-info span {
  font-size: 12px;
  color: #999;
}

/* 일반 메뉴 */
.pd-item {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  color: #eee;
}

.pd-item:hover {
  background: #1e1e1e;
}

.pd-divider {
  height: 1px;
  background: #222;
  margin: 8px 0;
}

/* 로그아웃 강조 */
.pd-item.logout {
  color: #ef4444;
}

.pd-item.logout:hover {
  background: #2c0000;
}

/* 모바일 */
@media (max-width: 768px) {
  .header-user {
    display: none;
  }
}
