/* =========================================
   Alert Popup – SaaS Style
   ========================================= */
@keyframes alertFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes alertSlideIn {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes alertSlideOut {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to   { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
}

.popup-container {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999999;
    animation: alertFadeIn 0.18s ease;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    animation: alertSlideIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.popup-content.closing {
    animation: alertSlideOut 0.18s ease forwards;
}

/* 헤더 – 아이콘 중앙 배치 */
.popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px 28px 20px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.popup-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}

.popup-icon::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #d97706;
}

.popup-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

/* 본문 */
.popup-body {
    padding: 20px 28px 24px;
    font-size: 15px;
    line-height: 1.8;
    color: #1e293b;
    font-weight: 500;
    text-align: center;
    flex-grow: 1;
    word-break: keep-all;
}

/* 푸터 */
.popup-footer {
    padding: 0 28px 24px;
    display: flex;
    justify-content: center;
}

.popup-close-btn {
    min-width: 120px;
    padding: 11px 28px;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
    letter-spacing: 0.01em;
}

.popup-close-btn:hover {
    background: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.popup-close-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 반응형 */
@media (max-width: 480px) {
    .popup-content {
        width: calc(100% - 32px);
        border-radius: 14px;
    }
    .popup-header { padding: 24px 20px 16px; }
    .popup-body   { padding: 16px 20px 20px; }
    .popup-footer { padding: 0 20px 20px; }
    .popup-close-btn { width: 100%; }
}




/* 추가 */
.cupon-table-wrap .cupon-btnCenter {padding: 0;}

.event-img {width: 100%; height:215px; overflow: hidden;}


/* 작업자 모바일 추가 */

/* ============================================================
   히어로 로그인 후 — 기존 메인 로그인 대시보드 디자인 이식
   (구 UserMain.css 의 .user-stats/.stat-item 계열을 .hero-login 스코프로)
   ============================================================ */
.hero-login .user-welcome {display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; margin-bottom: 8px; background: linear-gradient(135deg, #eff6ff, #dbeafe); border-radius: 8px; color: #1e3a5f; font-size: 13px; font-weight: 600;}
.hero-login .user-welcome i {color: #2563eb; font-size: 15px;}
.hero-login .user-stats {display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0;}  /* flex:1 = 배너높이 증가로 로그인후 카드가 늘어난 만큼 스탯영역이 흡수 */
.hero-login .user-stats > .stat-item, .hero-login .user-stats > .stat-row {flex: 1 1 auto; min-height: 0;}  /* 예치금/사서함·주문문의/노데이터·미결제 각 행이 남는높이를 나눠 세로로 늘어나 버튼아래 여백 제거(항목높이로 채움, 남는공간 없으면 자연높이) */
.hero-login .stat-item {display: flex; align-items: center; gap: 6px; background: #fff; padding: 9px 11px; border: 1px solid #e2e8f0; border-radius: 6px; color: #000;}
.hero-login .stat-item i {flex: 0 0 16px; width: 16px; font-size: 13px; text-align: center;}
.hero-login .stat-item a {flex: 1; display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit;}
.hero-login .stat-item .label {color: #64748b; font-size: 13px;}
.hero-login .stat-item .value {margin-left: auto; font-weight: 700; font-size: 13px; color: #1e3a5f;}
.hero-login .stat-row {display: flex; gap: 6px;}
.hero-login .stat-row .stat-item {flex: 1; min-width: 0;}
.hero-login .user-stats > .stat-item i {color: #2563eb;}
.hero-login .user-stats .stat-row:nth-child(2) .stat-item:nth-child(1) i {color: #0891b2;}
.hero-login .user-stats .stat-row:nth-child(2) .stat-item:nth-child(2) i {color: #7c3aed;}
.hero-login .user-stats .stat-row:nth-child(3) .stat-item:nth-child(1) i {color: #64748b;}
.hero-login .user-stats .stat-row:nth-child(3) .stat-item:nth-child(2) i {color: #dc2626;}
.hero-login .user-stats .stat-row:nth-child(3) .stat-item:nth-child(2) .value {color: #dc2626;}
.hero-login .user-buttons {display: flex; gap: 8px; margin-top: 8px;}
.hero-login .mypage-btn {flex: 1; padding: 11px; border: none; border-radius: 6px; background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: box-shadow .2s, transform .2s;}
.hero-login .mypage-btn:hover {box-shadow: 0 4px 14px rgba(37,99,235,.4); transform: translateY(-2px);}
.hero-login .logout-btn {flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border: 1.5px solid #e2e8f0; border-radius: 6px; background: #fff; color: #64748b; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s;}
.hero-login .logout-btn:hover {background: #f8fafc; color: #334155; border-color: #cbd5e1;}
@media (max-width: 480px) {
	.hero-login .stat-item {padding: 10px;}
	.hero-login .user-buttons {gap: 6px;}
	.hero-login .mypage-btn, .hero-login .logout-btn {padding: 12px; font-size: 14px;}
}

/* ============================================================
   서브페이지 새 헤더/푸터/퀵바 필수 스타일
   - common.css 전역 리셋(*, body, a, ul, p, h*)을 서브에 로드하면 콘텐츠가 깨지므로,
     변수 + 헤더/푸터 스코프(.inner / box-sizing / font)만 제공.
   - UserHead.asp 가 top/footer/quickbar.css 와 함께 로드 (common.css 는 제외)
   ============================================================ */
:root {
	--c-primary: #2962ff; --c-primary-dark: #1d4cd6; --c-secondary: #ff7043;
	--c-text: #222; --c-text-sub: #666; --c-text-mute: #999; --c-line: #e5e5e5;
	--c-bg: #fff; --c-bg-soft: #f7f8fa; --c-bg-dark: #1a1f2e;
	--ff-base: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	--radius-s: 4px; --radius-m: 8px; --radius-l: 16px;
	--shadow-s: 0 2px 6px rgba(0,0,0,.06); --shadow-m: 0 4px 16px rgba(0,0,0,.08); --shadow-l: 0 12px 32px rgba(0,0,0,.12);
}
.site-header, .site-footer, .floating-dock {font-family: var(--ff-base); font-size: 15px; line-height: 1.6;}
.site-header *, .site-header *::before, .site-header *::after,
.site-footer *, .site-footer *::before, .site-footer *::after,
.floating-dock *, .floating-dock *::before, .floating-dock *::after {box-sizing: border-box;}
.site-header .inner, .site-footer .inner {width: 1240px; max-width: 100%; margin: 0 auto; padding: 0 20px;}
@media (min-width: 1600px) { .site-header .inner, .site-footer .inner {width: 1480px;} }
@media (max-width: 1279px) { .site-header .inner, .site-footer .inner {width: 100%; max-width: 980px;} }
@media (max-width: 1023px) { .site-header .inner, .site-footer .inner {max-width: 100%; padding: 0 30px;} }
