/* === SPKLOVE: Sidebar on top, header under, perfect seam, animated collapse === */
:root{
  --header-h: 64px;
  --sidebar-w: 260px;            /* 펼침 폭 */
  --sidebar-w-collapsed: 72px;   /* 접힘 폭 */
  --gap: 16px;
  --toggle-gap: 32px;            /* 토글 버튼이 경계선에서 떨어지는 거리 */

  --bg:#121212; --panel:#141820; --panel-2:#121212;
  --text:#e6eaf2; --muted:#9aa4b2;
  --brand:#ff6b88; --accent:#ffd5de; --border:#212734;

  --header-bg:#181818;           /* 상단 가로바 색상 */
  --sidebar-bg:#1D1D1D;          /* 좌측 레일 */
}

/* 기본 톤 */
body{ background: var(--bg); color: var(--text); }

/* ===== 상단 가로바(헤더) — 사이드바 아래(z-index 낮게), 왼쪽 영역은 사이드바 색으로 연장 ===== */
header .navbar{
  position: sticky; top: 0; z-index: 900;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
  display: flex; align-items: center;
  position: relative;
}
header .navbar::before{
  content:""; position:absolute; top:0; bottom:0; left:0;
  width: var(--sidebar-w);                /* 접힘/펼침과 연동 */
  background: var(--sidebar-bg);
  pointer-events:none;                    /* 세로 경계선은 사이드바에서만 그림 */
  border-right: none;
  transition: width .25s ease;
}

/* ===== 좌측 고정 사이드바 — 헤더보다 위(z-index ↑) ===== */
.vnav{
  position: fixed; top: 0; left: 0; z-index: 2000;
  width: var(--sidebar-w); height: 100dvh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);  /* 유일한 세로 경계선 */
  padding: calc(var(--header-h) + 12px) 10px 16px;  /* 목록은 헤더 아래에서 시작 */
  overflow: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  transition: width .25s ease, padding .25s ease;
}

/* === BRAND: 상단 빈공간에 로고 + 텍스트(접으면 로고만) === */
.brand{
  position: fixed; top: 0; left: 0; z-index: 2500;
  width: var(--sidebar-w); height: var(--header-h);
  background: var(--sidebar-bg);
  display:flex; align-items:center; justify-content:center;
  padding: 0 16px; margin: 0; box-sizing: border-box;
  transition: width .25s ease;
}
.brand-link{
  display:flex; align-items:center; justify-content:center;
  gap: 12px; width:100%; text-decoration:none; color:#e6eaf2; text-align:center;
}
.brand-logo{
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;

  width:30px; height:30px; border-radius:10px; object-fit:cover;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
}
.brand-name{
  font-weight:800; letter-spacing:.4px; white-space:nowrap;
  max-width:200px; opacity:1; transform:translateX(0);
  transition: opacity .22s ease, transform .22s ease, max-width .22s ease;
}

/* ===== 메뉴 아이템 ===== */
.vnav__list{ display:flex; flex-direction:column; gap:8px; }
.vnav__item{
  display:flex; align-items:center; gap:12px;
  height:44px; padding:0 12px; border-radius:12px;
  border:1px solid transparent; background:transparent;
  color:var(--muted); text-decoration:none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.vnav__item i{ width:20px; text-align:center; font-size:16px; color:inherit; }
.vnav__item:hover{ background:rgba(255,255,255,.03); border-color:var(--border); color:var(--text); }
.vnav__item.is-active{
  background:linear-gradient(135deg,var(--brand),#ffa1b5);
  color:#FFF; border-color:transparent; box-shadow:0 6px 16px rgba(255,107,136,.25);
}

/* ===== 콘텐츠/푸터는 사이드바 폭만큼 밀기 ===== */
.content{ margin-left: calc(var(--sidebar-w) + var(--gap)); padding: var(--gap); min-width:0; transition: margin-left .25s ease; }
.site-footer{ margin-left: calc(var(--sidebar-w) + var(--gap)); border-top: 1px solid var(--border); transition: margin-left .25s ease; }

.nav-collapse-btn{
  position: absolute;                /* ← fixed 에서 absolute로 변경 */
  left: calc(var(--sidebar-w) + var(--toggle-gap));  /* 사이드바 경계선 + 간격 */
  top: 50%;
  transform: translateY(-50%);       /* 헤더 세로 중앙 정렬 */
  z-index: 950;                      /* 헤더 안 위쪽에만 보이도록 */

  width: 36px; height: 36px; padding: 0;
  background: transparent !important;
  border: none !important; box-shadow: none !important; outline: none !important;
  -webkit-tap-highlight-color: transparent;

  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
  transition: left .25s ease, transform .25s ease;
}
.nav-collapse-btn::after{ content:""; position:absolute; inset:-6px; } /* 보이지 않는 히트박스 */
.nav-collapse-btn .bar{
  display:block; width:20px; height:2px; border-radius:2px;
  background:#c9d1e2; opacity:.9; margin:0;
}
.nav-collapse-btn:hover .bar{ opacity:1; }

/* ===== 접힘 상태 (로고만, 간격 제거, 너비/마진/토글 위치 자동 보정) ===== */
body.sidebar-collapsed{ --sidebar-w: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .vnav__item .label{ display:none; }
body.sidebar-collapsed .vnav__item{ justify-content:center; padding:0; }

body.sidebar-collapsed .brand{ width: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .brand-link{ gap:0; }
body.sidebar-collapsed .brand-name{ display:none; }

body.sidebar-collapsed .content,
body.sidebar-collapsed .site-footer{ margin-left: calc(var(--sidebar-w-collapsed) + var(--gap)); }

/* ===== 푸터 색감 유지 ===== */
.site-footer .footer-content{
  display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between;
  padding:16px; color:var(--text);
}
.site-footer .footer-title{ color:#ffd5de; font-weight:800; }
.site-footer .footer-description{ color:var(--muted); }
.site-footer .footer-nav a{
  display:inline-flex; align-items:center; height:36px; padding:0 12px; margin:2px;
  border-radius:12px; border:1px solid var(--border);
  background:#10151c; color:var(--muted); text-decoration:none;
}
.site-footer .footer-nav a:hover{ color:var(--text); border-color:var(--accent); }
.site-footer .footer-bottom{ text-align:center; color:var(--muted); padding:12px 16px 24px; }

/* ===== 반응형: 기본은 접힘 폭 사용 ===== */


.spklove-logo{
  width:24px; height:24px;
}


:root{
  --sidebar-pad-x-expanded: 10px; /* 펼침 좌우 */
  --sidebar-pad-x-collapsed: 8px; /* 접힘 좌우 (대칭) */
}

/* 사용자가 접었을 때 */
body.sidebar-collapsed .vnav{
  padding-left:  var(--sidebar-pad-x-collapsed);
  padding-right: var(--sidebar-pad-x-collapsed);
}
body.sidebar-collapsed .vnav__item{ justify-content: center; padding: 0; width: auto; }
body.sidebar-collapsed .vnav__item .label{ display: none; }
body.sidebar-collapsed .brand{ width: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .brand-link{ gap: 0; }
body.sidebar-collapsed .brand-name{ display: none; }

/* 화면이 좁아져 자동-축소될 때(토글 안 눌러도 동일한 레이아웃 적용) */



@media (max-width: 992px){

  /* 모바일에서는 기본적으로 숨김 */
  .vnav{
    transform: translateX(-100%);
    width: var(--sidebar-w);
  }

  /* 열렸을 때는 전체 폭으로 */
  body.sidebar-open{
    --sidebar-w: 260px;   /* 펼침 폭 강제 */
  }

  body.sidebar-open .vnav{
    transform: translateX(0);
  }

  /* content는 밀리지 않음 */
  .content,
  .site-footer{
    margin-left: var(--gap) !important;
  }

  /* 오버레이 실제 DOM 요소 */
  .mobile-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1500;
  }
}
@media (max-width: 992px){

  /* header 왼쪽 확장 영역 제거 */
  header .navbar::before{
    width: 0 !important;
  }

  /* 모바일에서는 content를 밀지 않음 */
  .content,
  .site-footer{
    margin-left: var(--gap) !important;
  }

  /* overlay 열림 상태일 때도 밀림 방지 */
  body.sidebar-open .content,
  body.sidebar-open .site-footer{
    margin-left: var(--gap) !important;
  }
  .nav-collapse-btn{
    left: 16px !important;   /* 헤더 왼쪽 여백 */
    transform: translateY(-50%);
  }

}

/* 언어 변경 토글 */
.lang-dropdown{
    position:relative;
    width:80px; /* 전체 길이 */
    cursor:pointer;
}

/* 전체 박스 */
.lang-selected{
    display:flex;
    border-radius:12px;
    overflow:hidden;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);
    height:34px;
}

.lang-selected:hover{
    background:rgba(255,255,255,0.1);
}

.lang-flag{
    width:100%;
    aspect-ratio: 3 / 2;
    overflow:hidden;
}

.lang-flag img{
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

/* 화살표 영역 */
.lang-arrow{
    width:44%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:11px;
    color:#ccc;
    background:#2D2D2D
}

.lang-options{
    position:absolute;
    top:48px;
    right:0;
    min-width:160px;
    width:max-content;
    background:#1c1c1f;
    border-radius:12px;
    border:1px solid rgba(255,255,255,0.08);
    display:none;
    z-index:999;
    overflow:hidden;
}

.lang-option{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    color:#fff;
    white-space:nowrap;
}

.lang-option img{
    width:22px;
    height:16px;
    object-fit:cover;
    border-radius:3px;
}

.lang-option:hover{
    background:#ff6b88;
}

/* =========================================================
   SPK Endcap footer layout override
   새 footer는 사이드바 margin 계산에서 제외
   ========================================================= */

.spk-endcap{
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: auto !important;
  flex-shrink: 0;
}

/* 기존 footer 전용 밀림 규칙이 새 footer에 영향 주지 않도록 고정 */
body.sidebar-collapsed .spk-endcap,
body.sidebar-open .spk-endcap{
  width: 100% !important;
  margin-left: 0 !important;
}

/* 모바일에서도 왼쪽 gap 제거 */
@media (max-width: 992px){
  .spk-endcap{
    width: 100% !important;
    margin-left: 0 !important;
  }

  body.sidebar-open .spk-endcap,
  body.sidebar-collapsed .spk-endcap{
    width: 100% !important;
    margin-left: 0 !important;
  }
}

/* =========================================================
   Sticky footer base
   콘텐츠가 적어도 footer를 브라우저 하단에 고정
   ========================================================= */

html,
body{
  min-height: 100%;
}

body{
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  flex-direction: column;
}

main{
  flex: 1 0 auto;
}


/* =========================================================
   SPK Endcap Footer - Dark Clean Version
   ========================================================= */

.spk-endcap{
  position: relative;
  width: 100%;
  margin-left: 0;
  margin-top: auto;
  overflow: hidden;

  flex-shrink: 0;

  border-top: 1px solid rgba(255,255,255,0.08);
  background: #151515;
  color: rgba(255,255,255,0.86);
  box-sizing: border-box;
}

.spk-endcap__glow{
  display: none;
}

.spk-endcap__inner{
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding: 34px 24px 24px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.spk-endcap__brand{
  min-width: 0;
}

.spk-endcap__logo{
  display: inline-flex;
  align-items: center;
  gap: 11px;

  color: #fff;
  text-decoration: none;
}

.spk-endcap__logo-mark{
  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  background: #ff6b88;

  color: #fff;
  font-size: 18px;
  font-weight: 950;

  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

.spk-endcap__logo-text{
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: normal;
  white-space: nowrap;
}

.spk-endcap__desc{
  margin: 10px 0 0;

  color: rgba(255,255,255,0.58);
  font-size: 13px;
  line-height: 1.5;
}

.spk-endcap__desc span{
  color: rgba(255,255,255,0.82);
  font-weight: 800;
}

.spk-endcap__nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.spk-endcap__nav a{
  min-height: 36px;
  padding: 0 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;

  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.74);

  font-size: 13px;
  font-weight: 800;
  text-decoration: none;

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease,
    transform .15s ease;
}

.spk-endcap__nav a:hover{
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
  transform: translateY(-1px);
}

.spk-endcap__bottom{
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding: 15px 24px 18px;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  gap: 12px;

  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.46);

  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px){
  .spk-endcap__inner{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .spk-endcap__nav{
    justify-content: flex-start;
  }
}


@media (max-width: 720px){
  .spk-endcap{
    width: 100%;
    margin-left: 0;
    margin-top: auto;
  }

  .spk-endcap__inner{
    padding: 28px 14px 20px;
  }

  .spk-endcap__bottom{
    padding-left: 14px;
    padding-right: 14px;
    flex-direction: column;
  }
}

@media (max-width: 560px){
  .spk-endcap__logo-mark{
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 16px;
  }

  .spk-endcap__logo-text{
    font-size: 18px;
  }

  .spk-endcap__nav{
    gap: 7px;
  }

  .spk-endcap__nav a{
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }
}

/* =========================================================
   SPK Endcap footer sidebar-safe content offset
   배경은 전체 폭, 내용만 사이드바 영역을 피함
   ========================================================= */

.spk-endcap{
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: auto !important;
  flex-shrink: 0;
}

/* PC / 태블릿: 왼쪽 사이드바 영역만큼 footer 내부 내용 밀기 */
@media (min-width: 993px){
  .spk-endcap__inner,
  .spk-endcap__bottom{
    padding-left: calc(var(--sidebar-w, 72px) + 24px) !important;
  }

  body.sidebar-collapsed .spk-endcap__inner,
  body.sidebar-collapsed .spk-endcap__bottom{
    padding-left: calc(var(--sidebar-w-collapsed, 72px) + 24px) !important;
  }
}

/* 모바일: 사이드바가 오버레이 방식이므로 내용 밀지 않음 */
@media (max-width: 992px){
  .spk-endcap{
    width: 100% !important;
    margin-left: 0 !important;
  }

  .spk-endcap__inner,
  .spk-endcap__bottom{
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ===============================
   Notice List
================================ */

.notice-list {
  display: grid;
  gap: 10px;
}

.notice-list-item {
  border-radius: 16px;
  overflow: hidden;
}

.notice-open-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    rgba(15, 15, 20, 0.92);
  color: #f8fafc;
  text-align: left;
  padding: 15px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.notice-open-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 118, 162, 0.26);
  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.13), transparent 36%),
    rgba(20, 16, 22, 0.96);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.notice-list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.notice-list-title {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.notice-pin {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
}

.notice-list-date {
  color: rgba(226, 232, 240, 0.5);
  font-size: 12px;
  white-space: nowrap;
}

.notice-list-preview {
  margin-top: 7px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.notice-empty {
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  color: rgba(226, 232, 240, 0.56);
  background: rgba(255,255,255,0.035);
  border: 1px dashed rgba(255,255,255,0.12);
}

/* ===============================
   Notice Modal
================================ */

.notice-modal-open {
  overflow: hidden;
}

.spk-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.spk-notice-modal.show {
  display: block;
}

.spk-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.spk-notice-dialog {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 28px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow-y: auto;
  border-radius: 26px;
  padding: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(28, 14, 22, 0.98), rgba(12, 12, 15, 0.98));
  border: 1px solid rgba(255, 118, 162, 0.32);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
}

.spk-notice-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.spk-notice-close:hover {
  background: rgba(255, 95, 143, 0.18);
  border-color: rgba(255, 118, 162, 0.34);
}

.spk-notice-detail-head {
  margin-top: -28px;
  padding-right: 46px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.spk-notice-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffd6e3;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 95, 143, 0.14);
  border: 1px solid rgba(255, 118, 162, 0.24);
}

.spk-notice-detail-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.spk-notice-detail-head p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.55);
  font-size: 13px;
}

.spk-notice-detail-content {
  padding: 22px 0;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.8;
  word-break: break-word;
}

/* ===============================
   Notice Comments
================================ */

.spk-notice-comments {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.spk-notice-comments-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.spk-notice-comments-head i {
  color: #ff6f9d;
}

.spk-notice-comment-list {
  display: grid;
  gap: 10px;
}

.notice-comment-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}

.notice-comment-item img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 38px;
}

.notice-comment-body {
  min-width: 0;
  flex: 1;
}

.notice-comment-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.notice-comment-meta a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.notice-comment-meta span {
  color: rgba(226,232,240,0.48);
  font-size: 12px;
}

.notice-comment-delete {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #ff8bab;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.notice-comment-text {
  color: rgba(248,250,252,0.86);
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.notice-comment-empty,
.spk-notice-login-hint {
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  color: rgba(226,232,240,0.56);
  background: rgba(255,255,255,0.035);
  border: 1px dashed rgba(255,255,255,0.12);
}

.spk-notice-comment-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.spk-notice-comment-form textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(0,0,0,0.22);
  color: #fff;
  padding: 12px 14px;
  box-sizing: border-box;
  outline: none;
}

.spk-notice-comment-form textarea:focus {
  border-color: rgba(255, 118, 162, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 95, 143, 0.12);
}

.spk-notice-comment-form button {
  justify-self: end;
  border: 0;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255,95,143,0.22);
}

/* ===============================
   Admin Notice Lang Tabs
================================ */

.notice-lang-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.notice-lang-tab {
  border: 1px solid rgba(255,255,255,.1);
  background: #15151a;
  color: #d1d5db;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

.notice-lang-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  border-color: rgba(255,118,162,.6);
}

.notice-lang-panel {
  display: none;
}

.notice-lang-panel.active {
  display: block;
}

.admin-notice-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-check-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .spk-notice-dialog {
    width: min(100% - 18px, 880px);
    margin: 9px auto;
    max-height: calc(100vh - 18px);
    padding: 18px;
    border-radius: 20px;
  }

  .spk-notice-detail-head {
    margin-top: -38px;
  }

  .notice-list-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .spk-notice-comment-form button {
    justify-self: stretch;
  }
}

.notice-comment-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notice-comment-edit,
.notice-comment-delete {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  padding: 3px 4px;
}

.notice-comment-edit {
  color: #ffd6e3;
}

.notice-comment-edit:hover {
  color: #ffffff;
}

.notice-comment-delete {
  color: #ff8bab;
}

.notice-comment-delete:hover {
  color: #ff4f83;
}

.notice-comment-edited {
  color: rgba(226, 232, 240, 0.36) !important;
  font-size: 11px !important;
}

.notice-comment-edit-form {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}

.notice-comment-edit-form.hidden {
  display: none;
}

.notice-comment-text.hidden {
  display: none;
}

.notice-comment-edit-form textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(0,0,0,0.22);
  color: #fff;
  padding: 11px 13px;
  box-sizing: border-box;
  outline: none;
  font-size: 14px;
  line-height: 1.55;
}

.notice-comment-edit-form textarea:focus {
  border-color: rgba(255, 118, 162, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 95, 143, 0.12);
}

.notice-comment-edit-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.notice-comment-edit-buttons button {
  border: 0;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.notice-comment-edit-buttons button[type="submit"] {
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  box-shadow: 0 8px 18px rgba(255, 95, 143, 0.18);
}

.notice-comment-cancel {
  background: rgba(255,255,255,0.08);
  color: #d1d5db !important;
}


/* =========================================================
   NOTICE LIST MODAL - REBUILT
========================================================= */

.notice-list-modal.hidden {
  display: none !important;
}

.notice-list-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.notice-list-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(7px);
}

.notice-list-panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
  border-radius: 28px;
  padding: 26px 26px 22px;
  overflow: hidden;

  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(31, 19, 27, 0.985), rgba(14, 14, 18, 0.985));

  border: 1px solid rgba(255, 118, 162, 0.24);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.54),
    inset 0 0 0 1px rgba(255,255,255,0.035);
}

.notice-list-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(255,255,255,0.035), transparent 28%),
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.08), transparent 38%);
}

.notice-list-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.notice-list-close:hover {
  background: rgba(255, 95, 143, 0.16);
  border-color: rgba(255, 118, 162, 0.3);
  transform: translateY(-1px);
}

.notice-list-header {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  padding-right: 56px;
}

.notice-list-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  color: #ffd6e3;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 95, 143, 0.13);
  border: 1px solid rgba(255, 118, 162, 0.18);
}

.notice-list-header-badge i {
  color: #ff5f8f;
}

.notice-list-header h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.notice-list-header p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.58);
  font-size: 13px;
  font-weight: 600;
}

.notice-list-body {
  position: relative;
  z-index: 1;
}

.notice-list-items {
  display: grid;
  gap: 10px;
}

.notice-row {
  border-radius: 18px;
}

.notice-row-button {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 16px 18px 14px;
  text-align: left;
  cursor: pointer;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.02)),
    rgba(10, 10, 14, 0.86);

  color: #fff;

  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.notice-row-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 118, 162, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.12), transparent 34%),
    rgba(14, 14, 19, 0.95);
  box-shadow: 0 14px 28px rgba(0,0,0,0.26);
}

.notice-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.notice-row-title {
  min-width: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.02em;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-row-pin {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  box-shadow: 0 7px 16px rgba(255, 95, 143, 0.2);
}

.notice-row-arrow {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.34);
  font-size: 14px;
  transition: transform 0.16s ease, color 0.16s ease;
}

.notice-row-button:hover .notice-row-arrow {
  color: #ff8bab;
  transform: translateX(2px);
}

.notice-row-date {
  margin-top: 8px;
  color: rgba(226,232,240,0.48);
  font-size: 12px;
  font-weight: 800;
}

.notice-list-empty {
  padding: 28px 18px;
  border-radius: 18px;
  text-align: center;
  color: rgba(226, 232, 240, 0.56);
  background: rgba(255,255,255,0.035);
  border: 1px dashed rgba(255,255,255,0.12);
  font-weight: 800;
}

.notice-list-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.notice-list-pagination a {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #d1d5db;
  font-size: 13px;
  font-weight: 900;

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.notice-list-pagination a:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255, 95, 143, 0.16);
  border-color: rgba(255, 118, 162, 0.28);
}

.notice-list-pagination a.active {
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  border-color: rgba(255, 118, 162, 0.58);
  box-shadow: 0 8px 18px rgba(255, 95, 143, 0.18);
}

@media (max-width: 640px) {
  .notice-list-modal {
    padding: 14px;
  }

  .notice-list-panel {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .notice-list-header {
    padding-right: 48px;
    margin-bottom: 16px;
  }

  .notice-list-header h2 {
    font-size: 25px;
  }

  .notice-row-button {
    padding: 15px 14px 13px;
    border-radius: 16px;
  }

  .notice-row-title {
    font-size: 17px;
  }

  .notice-row-date {
    font-size: 11px;
  }

  .notice-list-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}

.notice-comment-limit-hint {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 15px;
  text-align: center;
  color: rgba(255, 216, 228, 0.82);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 95, 143, 0.09);
  border: 1px solid rgba(255, 118, 162, 0.18);
}

/* 공지 목록 모달 */
.notice-list-modal {
  z-index: 100000;
}

/* 공지 상세/댓글 모달은 목록보다 항상 위 */
.spk-notice-modal {
  z-index: 100100 !important;
}

.spk-notice-modal.show {
  display: block;
}

/* 공지 상세 모달 위치를 공지 목록 모달과 동일하게 중앙 정렬 */
.spk-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 100100 !important;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.spk-notice-modal.show {
  display: flex !important;
}

.spk-notice-dialog {
  position: relative;
  margin: 0 !important;

  width: min(920px, calc(100vw - 32px));
  max-width: 920px;

  max-height: calc(100vh - 48px);
  overflow-y: auto;
}


/* =========================================================
   SPKLOVE Auth Modal
   Login / Register 로그인 / 회원가입 
========================================================= */

#authModal {
  position: fixed;
  inset: 0;
  z-index: 100200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(9px);
}

#authModal.hidden {
  display: none !important;
}

#authModal .modal-content {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  padding: 34px 32px 30px;
  border-radius: 28px;
  overflow: hidden;

  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 118, 162, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(31, 21, 28, 0.98), rgba(14, 14, 18, 0.98));

  border: 1px solid rgba(255, 118, 162, 0.28);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

#authModal .modal-content::before {
  content: "SPKLOVE";
  position: absolute;
  top: 22px;
  left: 30px;

  padding: 6px 11px;
  border-radius: 999px;

  color: #ffd6e3;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;

  background: rgba(255, 95, 143, 0.13);
  border: 1px solid rgba(255, 118, 162, 0.18);
}

#authModal .modal-content::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -95px;
  top: -95px;
  border-radius: 999px;
  background: rgba(255, 95, 143, 0.16);
  filter: blur(18px);
  pointer-events: none;
}

#authModal .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;

  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #ffffff;
  font-size: 24px;
  line-height: 1;

  cursor: pointer;
  z-index: 3;

  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

#authModal .close-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 95, 143, 0.16);
  border-color: rgba(255, 118, 162, 0.32);
}

#authModal .auth-form {
  position: relative;
  z-index: 2;
  padding-top: 42px;
}

#authModal .auth-form.hidden {
  display: none !important;
}

#authModal .auth-form h3 {
  margin: 0 0 8px;

  color: #ffffff;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

#authModal #loginForm h3::after {
  content: "Welcome back to Spklove.";
  display: block;
  margin-top: 9px;

  color: rgba(255, 216, 228, 0.68);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

#authModal #registerForm h3::after {
  content: "Create your Spklove account.";
  display: block;
  margin-top: 9px;

  color: rgba(255, 216, 228, 0.68);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

#authModal .auth-box {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

#authModal .auth-box input {
  width: 100%;
  height: 50px;
  padding: 0 16px;

  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.22);

  color: #ffffff;
  font-size: 14px;
  font-weight: 700;

  outline: none;
  box-sizing: border-box;

  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

#authModal .auth-box input::placeholder {
  color: rgba(226, 232, 240, 0.42);
  font-weight: 700;
}

#authModal .auth-box input:focus {
  border-color: rgba(255, 118, 162, 0.58);
  background: rgba(0, 0, 0, 0.3);
  box-shadow:
    0 0 0 3px rgba(255, 95, 143, 0.13),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

#authModal .auth-box button {
  width: 100%;
  height: 50px;
  margin-top: 4px;

  border: 0;
  border-radius: 16px;

  color: #ffffff;
  font-size: 15px;
  font-weight: 950;

  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  box-shadow:
    0 14px 28px rgba(255, 95, 143, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);

  cursor: pointer;

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

#authModal .auth-box button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 18px 34px rgba(255, 95, 143, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

#authModal .auth-box button:active {
  transform: translateY(0);
}

#authModal .toggle-text {
  margin: 18px 0 0;
  padding: 14px 15px;

  border-radius: 16px;

  color: rgba(226, 232, 240, 0.66);
  font-size: 13px;
  font-weight: 750;
  text-align: center;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

#authModal .toggle-text a {
  color: #ff8bab;
  font-weight: 950;
  text-decoration: none;
  margin-left: 4px;
}

#authModal .toggle-text a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 작은 장식 라인 */
#authModal .auth-form::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 22px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 118, 162, 0.28),
    transparent
  );
}

/* 모바일 */
@media (max-width: 520px) {
  #authModal {
    padding: 14px;
  }

  #authModal .modal-content {
    width: calc(100vw - 28px);
    padding: 30px 22px 24px;
    border-radius: 24px;
  }

  #authModal .modal-content::before {
    left: 22px;
    top: 20px;
  }

  #authModal .close-btn {
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
  }

  #authModal .auth-form h3 {
    font-size: 30px;
  }

  #authModal .auth-box {
    margin-top: 23px;
  }

  #authModal .auth-box input,
  #authModal .auth-box button {
    height: 48px;
    border-radius: 15px;
  }
}

/* =========================================
   SPKLOVE CLEAN TOP NAV - revised
========================================= */

.spk-navclean-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 120;
}

/* 공통 카드 */
.spk-navclean-card {
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  transition: background .18s ease, border-color .18s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 각각 배경이 보이도록 개별 배경 지정 */
.spk-navclean-action-card {
  background: #272727;
  padding: 0 6px;
  gap: 2px;
  flex-shrink: 0;
}

.spk-navclean-lang-card {
  background: #272727;
  min-width: 86px;
  padding: 0;
  flex-shrink: 0;
  position: relative;
}

.spk-navclean-profile-card {
  background: #272727;
  width: 46px;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.spk-navclean-card:hover {
  border-color: #272727;
}

/* 아이콘 버튼 */
.spk-navclean-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #d7dce5;
  position: relative;
  transition: background .18s ease, color .18s ease;
}

.spk-navclean-icon-btn i {
  font-size: 19px;
  line-height: 1;
}

.spk-navclean-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.spk-navclean-notice-btn {
  color: #ff6b9a;
}

.spk-navclean-notice-btn:hover {
  color: #ff7ba5;
  background: rgba(255, 107, 154, 0.08);
}

.spk-navclean-chat-btn {
  color: #f0f3f8;
}

.spk-navclean-chat-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* 채팅 배지 */
.spk-navclean-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4f7d;
  color: #fff;
  border: 2px solid #141922;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  display: none;
  align-items: center;
  justify-content: center;
}

.spk-navclean-badge.is-visible {
  display: flex;
}

/* 언어 카드 */
.spk-navclean-lang-selected {
  height: 46px;
  width: 100%;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 14px;
}

.spk-navclean-lang-flag {
  width: 38px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;   /* 흰 배경 제거 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.spk-navclean-lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* 꽉 채우기 */
  object-position: center;
  display: block;
  border-radius: 0;          /* 안쪽 흰 여백처럼 보이는 효과 제거 */
}

.spk-navclean-lang-arrow {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8bec9;
  flex-shrink: 0;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.spk-navclean-lang-arrow i {
  font-size: 12px;
}

.spk-navclean-lang-card.active .spk-navclean-lang-arrow,
.spk-navclean-lang-card.open .spk-navclean-lang-arrow,
#langDropdown[aria-expanded="true"] .spk-navclean-lang-arrow {
  background: #1d1d1d;
  color: #edf1f7;
  transform: rotate(180deg);
}

/* 언어 드롭다운 - hover로 절대 열리지 않게 */
.spk-navclean-lang-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  border-radius: 14px;
  background: #272727;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
  z-index: 300;
}

.spk-navclean-lang-card.active .spk-navclean-lang-options,
.spk-navclean-lang-card.open .spk-navclean-lang-options,
.spk-navclean-lang-options.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.spk-navclean-lang-option {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 0 10px;
  color: #dfe4ec;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.spk-navclean-lang-option:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.spk-navclean-lang-option img {
  width: 24px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* 프로필 버튼 */
.spk-navclean-profile-trigger {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dfe4ec;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  overflow: hidden;
  padding: 0;
}

.spk-navclean-profile-trigger:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* 비로그인 아이콘 */
.spk-navclean-profile-trigger--guest i,
.spk-navclean-profile-trigger i {
  font-size: 21px;
  line-height: 1;
}

/* 로그인한 경우 프로필 이미지가 영역에 딱 맞게 */
.spk-navclean-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;   /* 원형 X, 카드 모양에 맞춤 */
  display: block;
}

/* 프로필 드롭다운 - hover로 절대 열리지 않게 */
.spk-navclean-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: #272727;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
  z-index: 300;
}

.spk-navclean-profile-card.active .spk-navclean-profile-dropdown,
.spk-navclean-profile-card.open .spk-navclean-profile-dropdown,
.spk-navclean-profile-trigger[aria-expanded="true"] + .spk-navclean-profile-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.spk-navclean-profile-dropdown a {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 0 10px;
  color: #dfe4ec;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .16s ease, color .16s ease;
}

.spk-navclean-profile-dropdown a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.spk-navclean-profile-dropdown a i {
  width: 16px;
  text-align: center;
  color: #ff6b9a;
  flex-shrink: 0;
}

/* 기존 스타일 잔재 제거 */
.spk-navclean-wrap .spk-top-action-group,
.spk-navclean-wrap .lang-dropdown,
.spk-navclean-wrap .nav-profile-menu {
  margin: 0;
}

.spk-navclean-wrap .lang-selected,
.spk-navclean-wrap .nav-profile-trigger,
.spk-navclean-wrap .spk-top-icon-btn {
  box-shadow: none !important;
}

/* 모바일 */
@media (max-width: 768px) {
  .spk-navclean-wrap {
    gap: 8px;
  }

  .spk-navclean-card {
    height: 42px;
    border-radius: 12px;
  }

  .spk-navclean-action-card {
    padding: 0 4px;
  }

  .spk-navclean-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .spk-navclean-icon-btn i {
    font-size: 17px;
  }

  .spk-navclean-lang-card {
    min-width: 78px;
  }

  .spk-navclean-lang-selected {
    height: 42px;
    padding: 0 7px;
    gap: 6px;
  }

  .spk-navclean-lang-flag {
    width: 34px;
    height: 24px;
  }

  .spk-navclean-profile-card {
    width: 42px;
  }

  .spk-navclean-profile-img {
    border-radius: 12px;
  }
}

/* 클릭으로 열렸을 때만 언어 메뉴 표시 */
#langDropdown.is-open .spk-navclean-lang-options {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 클릭으로 열렸을 때 화살표 회전 */
#langDropdown.is-open .spk-navclean-lang-arrow {
  background: rgba(255,255,255,0.06);
  color: #edf1f7;
  transform: rotate(180deg);
}

/* 혹시 기존 CSS가 display:none을 걸고 있으면 무시 */
#langDropdown .spk-navclean-lang-options {
  display: block !important;
}



