/* 고객센터(/support/) — 기존 CSS 변수(style.css)를 그대로 쓴다. 밝은/어두운 화면 둘 다. */
.sup-wrap{max-width:920px;margin:0 auto;padding:32px 16px 56px}
.sup-hero{text-align:center;margin-bottom:26px}
.sup-hero h1{font-size:28px;font-weight:800;color:var(--text-primary,#111827);margin:0 0 8px;display:flex;align-items:center;justify-content:center;gap:12px}
.sup-hero h1 i{color:var(--primary-color,#6366f1)}
.sup-hero p{color:var(--text-muted,#6b7280);font-size:15px;margin:0}
.sup-search{display:flex;align-items:center;gap:10px;background:var(--bg-white,#fff);border:1px solid var(--border-color,#e5e7eb);border-radius:14px;padding:6px 8px 6px 16px;margin:0 auto 22px;max-width:640px}
.sup-search i{color:var(--text-muted,#6b7280)}
.sup-search input{flex:1;border:0;background:transparent;font-size:15px;padding:10px 4px;color:var(--text-primary,#111827);outline:none;min-width:0}
.sup-search button{border:0;background:var(--primary-color,#6366f1);color:#fff;border-radius:10px;padding:10px 18px;font-weight:700;cursor:pointer}
.sup-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:26px}
.sup-act{position:relative;display:block;background:var(--bg-white,#fff);border:1px solid var(--border-color,#e5e7eb);border-radius:16px;padding:22px 18px;text-decoration:none;color:var(--text-primary,#111827);box-shadow:var(--shadow-sm,0 1px 2px rgba(0,0,0,.05));transition:transform .2s,box-shadow .2s}
.sup-act:hover{transform:translateY(-3px);box-shadow:var(--shadow-md,0 4px 10px rgba(0,0,0,.08))}
.sup-act .ic{width:44px;height:44px;border-radius:12px;background:var(--primary-light,#eef2ff);color:var(--primary-color,#6366f1);display:flex;align-items:center;justify-content:center;font-size:19px;margin-bottom:12px}
.sup-act b{display:block;font-size:16px;margin-bottom:4px}
.sup-act span.d{font-size:13px;color:var(--text-muted,#6b7280)}
.sup-act.primary{background:var(--primary-color,#6366f1);border-color:var(--primary-color,#6366f1);color:#fff}
.sup-act.primary .ic{background:rgba(255,255,255,.2);color:#fff}
.sup-act.primary span.d{color:rgba(255,255,255,.85)}
.sup-badge{display:inline-block;min-width:18px;padding:1px 6px;border-radius:10px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;line-height:1.5;text-align:center;vertical-align:middle}
.sup-act .sup-badge{position:absolute;top:14px;right:14px}
.sup-card{background:var(--bg-white,#fff);border:1px solid var(--border-color,#e5e7eb);border-radius:16px;padding:22px;margin-bottom:20px}
.sup-card h2,.sup-card h3{font-size:17px;font-weight:700;margin:0 0 14px;color:var(--text-primary,#111827);display:flex;align-items:center;gap:8px}
.sup-card h2 i,.sup-card h3 i{color:var(--primary-color,#6366f1)}
.sup-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.sup-chip{border:1px solid var(--border-color,#e5e7eb);background:var(--bg-white,#fff);color:var(--text-secondary,#4b5563);border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer}
.sup-chip.on,.sup-chip:hover{background:var(--primary-color,#6366f1);border-color:var(--primary-color,#6366f1);color:#fff}
.sup-faq-item{border-bottom:1px solid var(--border-color,#e5e7eb)}
.sup-faq-item:last-child{border-bottom:0}
.sup-faq-q{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:0;padding:14px 0;font-size:15px;font-weight:600;color:var(--text-primary,#111827);cursor:pointer}
.sup-faq-q .q{flex:0 0 24px;height:24px;border-radius:50%;background:var(--primary-color,#6366f1);color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center}
.sup-faq-q .t{flex:1}
.sup-faq-q i.fa-chevron-down{color:var(--text-muted,#6b7280);transition:transform .2s}
.sup-faq-item.open .sup-faq-q i.fa-chevron-down{transform:rotate(180deg)}
.sup-faq-a{display:none;padding:0 0 16px 34px;color:var(--text-secondary,#4b5563);line-height:1.75;font-size:14.5px}
.sup-faq-item.open .sup-faq-a{display:block}
.sup-empty{text-align:center;color:var(--text-muted,#6b7280);padding:26px 0}
.sup-note{font-size:13px;color:var(--text-muted,#6b7280)}
.sup-form .row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.sup-form .fg{margin-bottom:18px}
.sup-form label{display:block;font-weight:600;font-size:14px;margin-bottom:7px;color:var(--text-primary,#111827)}
.sup-form .req{color:#dc3545}
.sup-form input[type=text],.sup-form input[type=url],.sup-form input[type=email],.sup-form input[type=tel],.sup-form select,.sup-form textarea{width:100%;padding:12px 14px;border:1px solid var(--border-color,#e5e7eb);border-radius:10px;font-size:15px;background:var(--bg-white,#fff);color:var(--text-primary,#111827);box-sizing:border-box;font-family:inherit}
.sup-form textarea{min-height:150px;resize:vertical;line-height:1.6}
.sup-form input:focus,.sup-form select:focus,.sup-form textarea:focus{outline:0;border-color:var(--primary-color,#6366f1);box-shadow:0 0 0 3px var(--primary-light,#eef2ff)}
.sup-form .hint{font-size:12.5px;color:var(--text-muted,#6b7280);margin-top:6px}
.sup-btn{display:inline-flex;align-items:center;gap:8px;border:0;background:var(--primary-color,#6366f1);color:#fff;border-radius:10px;padding:12px 24px;font-weight:700;font-size:15px;cursor:pointer;text-decoration:none}
.sup-btn:hover{background:var(--primary-hover,#4f46e5);color:#fff}
.sup-btn.ghost{background:transparent;color:var(--text-secondary,#4b5563);border:1px solid var(--border-color,#e5e7eb)}
.sup-btn.ghost:hover{background:var(--bg-light,#f3f4f6);color:var(--text-primary,#111827)}
.sup-btn.sm{padding:8px 14px;font-size:13px}
.sup-btn.danger{background:#dc2626}
.sup-btn.danger:hover{background:#b91c1c}
.sup-hint-box{display:none;background:var(--primary-light,#eef2ff);border:1px solid var(--border-color,#e5e7eb);border-radius:12px;padding:14px 16px;margin-bottom:18px}
.sup-hint-box.on{display:block}
.sup-hint-box b{display:block;font-size:14px;margin-bottom:6px;color:var(--text-primary,#111827)}
.sup-hint-box a{color:var(--primary-color,#6366f1);font-size:14px;text-decoration:underline;display:block;padding:3px 0}
.sup-err{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:12px;padding:14px 18px;margin-bottom:18px}
.sup-err ul{margin:0;padding-left:18px}
.sup-ok{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:12px;padding:16px 18px;margin-bottom:18px}
/* 대화 */
.sup-top{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:6px}
.sup-top h1{font-size:21px;margin:0;color:var(--text-primary,#111827)}
.sup-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--text-muted,#6b7280);margin-bottom:18px;align-items:center}
.sup-st{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700}
.sup-st.pending{background:#fef3c7;color:#92400e}
.sup-st.replied{background:#d1fae5;color:#065f46}
.sup-st.closed{background:#e5e7eb;color:#374151}
.sup-thread{display:flex;flex-direction:column;gap:14px;margin-bottom:22px}
.sup-msg{max-width:88%;border-radius:16px;padding:14px 16px;border:1px solid var(--border-color,#e5e7eb);background:var(--bg-white,#fff)}
.sup-msg.user{align-self:flex-end;background:var(--primary-light,#eef2ff)}
.sup-msg.admin{align-self:flex-start}
.sup-msg .who{font-size:12.5px;font-weight:700;color:var(--text-secondary,#4b5563);margin-bottom:6px;display:flex;gap:8px;justify-content:space-between}
.sup-msg .who time{font-weight:400;color:var(--text-muted,#6b7280)}
.sup-msg .tx{line-height:1.75;font-size:15px;color:var(--text-primary,#111827);word-break:break-word}
.sup-msg .att{margin-top:10px;font-size:13px}
.sup-msg .att img{max-width:260px;max-height:200px;border-radius:10px;display:block;margin-top:6px;border:1px solid var(--border-color,#e5e7eb)}
.sup-msg .att a{color:var(--primary-color,#6366f1)}
.sup-refline{font-size:13px;margin-bottom:8px;color:var(--text-muted,#6b7280);word-break:break-all}
.sup-rate{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:var(--bg-light,#f9fafb);border:1px dashed var(--border-color,#e5e7eb);border-radius:14px;padding:14px 16px;margin-bottom:18px}
.sup-rate form{display:inline}
.sup-list{display:flex;flex-direction:column;gap:10px}
.sup-li{display:flex;gap:12px;align-items:center;background:var(--bg-white,#fff);border:1px solid var(--border-color,#e5e7eb);border-radius:14px;padding:14px 16px;text-decoration:none;color:var(--text-primary,#111827)}
.sup-li:hover{border-color:var(--primary-color,#6366f1)}
.sup-li .m{flex:1;min-width:0}
.sup-li .s{font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sup-li .i{font-size:12.5px;color:var(--text-muted,#6b7280);margin-top:3px}
.sup-dot{width:9px;height:9px;border-radius:50%;background:#ef4444;display:inline-block;margin-right:6px}
.sup-pager{display:flex;gap:6px;justify-content:center;margin-top:18px}
.sup-pager a{padding:7px 12px;border:1px solid var(--border-color,#e5e7eb);border-radius:8px;text-decoration:none;color:var(--text-secondary,#4b5563);font-size:14px}
.sup-pager a.on{background:var(--primary-color,#6366f1);border-color:var(--primary-color,#6366f1);color:#fff}
.sup-top-link .sup-badge{margin-left:2px}
.sup-mypage-card{background:var(--bg-white,#fff);border:1px solid var(--border-color,#e5e7eb);border-radius:14px;padding:16px 18px;margin-bottom:18px}
.sup-mypage-card .hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.sup-mypage-card .hd strong{font-size:15px;color:var(--text-primary,#111827)}
.sup-mypage-card .hd a{font-size:13px;color:var(--primary-color,#6366f1);font-weight:700;text-decoration:none}
.sup-mypage-card .it{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px 0;border-top:1px solid var(--border-color,#e5e7eb);text-decoration:none;color:var(--text-primary,#111827);font-size:14px}
.sup-mypage-card .it span.t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sup-mypage-card .none{font-size:13.5px;color:var(--text-muted,#6b7280);padding:6px 0}
/* 어두운 화면 */
[data-theme="dark"] .sup-hero h1,[data-theme="dark"] .sup-top h1,[data-theme="dark"] .sup-card h2,[data-theme="dark"] .sup-card h3,[data-theme="dark"] .sup-act b,[data-theme="dark"] .sup-faq-q,[data-theme="dark"] .sup-msg .tx,[data-theme="dark"] .sup-li,[data-theme="dark"] .sup-form label,[data-theme="dark"] .sup-hint-box b,[data-theme="dark"] .sup-mypage-card .hd strong,[data-theme="dark"] .sup-mypage-card .it{color:#e4e5ec!important}
[data-theme="dark"] .sup-card,[data-theme="dark"] .sup-act,[data-theme="dark"] .sup-search,[data-theme="dark"] .sup-msg,[data-theme="dark"] .sup-li,[data-theme="dark"] .sup-mypage-card,[data-theme="dark"] .sup-chip{background:#16161f!important;border-color:#252533!important}
[data-theme="dark"] .sup-act.primary{background:#6366f1!important;border-color:#6366f1!important;color:#fff!important}
[data-theme="dark"] .sup-act.primary b{color:#fff!important}
[data-theme="dark"] .sup-act.primary span.d{color:#e0e7ff!important}
[data-theme="dark"] .sup-act .ic{background:#252533!important;color:#c9b8ff!important}
[data-theme="dark"] .sup-act.primary .ic{background:rgba(255,255,255,.2)!important;color:#fff!important}
[data-theme="dark"] .sup-chip.on,[data-theme="dark"] .sup-chip:hover{background:#6366f1!important;border-color:#6366f1!important;color:#fff!important}
[data-theme="dark"] .sup-msg.user{background:#1b1630!important}
[data-theme="dark"] .sup-search input,[data-theme="dark"] .sup-form input,[data-theme="dark"] .sup-form select,[data-theme="dark"] .sup-form textarea{background:#0f0f16!important;color:#e4e5ec!important;border-color:#252533!important}
[data-theme="dark"] .sup-hint-box,[data-theme="dark"] .sup-rate{background:#1b1630!important;border-color:#252533!important}
[data-theme="dark"] .sup-hero p,[data-theme="dark"] .sup-note,[data-theme="dark"] .sup-meta,[data-theme="dark"] .sup-act span.d,[data-theme="dark"] .sup-faq-a,[data-theme="dark"] .sup-li .i,[data-theme="dark"] .sup-form .hint{color:#a0a4b4!important}
[data-theme="dark"] .sup-faq-item,[data-theme="dark"] .sup-mypage-card .it{border-color:#252533!important}
[data-theme="dark"] .sup-st.pending{background:#4a3410;color:#fde68a}
[data-theme="dark"] .sup-st.replied{background:#0d3b2a;color:#a7f3d0}
[data-theme="dark"] .sup-st.closed{background:#2a2a36;color:#d1d5db}
[data-theme="dark"] .sup-err{background:#3b1414;border-color:#7f1d1d;color:#fecaca}
[data-theme="dark"] .sup-ok{background:#0d3b2a;border-color:#065f46;color:#a7f3d0}
[data-theme="dark"] .sup-btn.ghost{color:#d1d5db!important;border-color:#252533!important}
@media(max-width:700px){
 .sup-wrap{padding:20px 12px 44px}
 .sup-actions{grid-template-columns:1fr}
 .sup-form .row{grid-template-columns:1fr}
 .sup-msg{max-width:100%}
 .sup-hero h1{font-size:23px}
 .sup-card{padding:16px}
}
/* 모바일 가로 넘침 방지 */
.sup-wrap,.sup-thread,.sup-card,.sup-top{box-sizing:border-box;max-width:100%;min-width:0}
.sup-msg{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
.sup-form input[type=file]{max-width:100%}
.sup-top h1{min-width:0;overflow-wrap:anywhere}
.sup-form .row>.fg{min-width:0}
