/* ========================================
    [공통 설정]
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Pretendard', sans-serif;
    background: linear-gradient(to bottom, #e5f9f6, #f0fcfa);
    height: 100vh;
    overflow: hidden;
    overflow-x: hidden;
    display: flex;
}

html {
    overflow-x: hidden;
}

/* ========================================
    [좌측 사이드바 고정]
======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 64px;
    height: 100vh;
    background: linear-gradient(to bottom, #e5f9f6, #f0fcfa);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    padding-top: 20px;
}

.logo {
    writing-mode: vertical-rl;
    font-weight: bold;
    color: #ff5b4a;
    font-size: 20px;
    margin-bottom: 24px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 아이콘 기본 */
.menu-item i {
    font-size: 22px;
    background-color: transparent;
    color: #444;
    border-radius: 6px;
    padding: 12px;
}

/* ✅ 엑티브: 아이콘만 강조 */
.menu-item.active i {
    background-color: #98dffcef;
    padding: 12px;
}

.trans {
    font-size: 18px;
    font-weight: 600;
}

/* ─── 모바일 드로어 (엔터프라이즈급) ───────────────── */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mobile-drawer.open {
    transform: translateX(0);
}

/* 헤더 */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    height: 56px;
}

.drawer-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.drawer-ci {
    height: 36px;
    object-fit: contain;
    transform: scale(2.6);
    transform-origin: left center;
    margin-left: -22px;
}

.drawer-close {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--txt-light);
    cursor: pointer;
    transition: all 0.15s ease;
}

.drawer-close:hover {
    background: #f1f5f9;
    color: var(--txt-dark);
}

/* 메뉴 리스트 */
.drawer-menu {
    list-style: none;
    padding: 12px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.drawer-menu li {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--txt-gray);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.drawer-menu li:hover {
    background: #f8f9fa;
    color: var(--txt-dark);
}

.drawer-menu li.active {
    background: #f0fdf9;
    color: var(--mint-dark);
    font-weight: 600;
}

.drawer-menu li i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: inherit;
}

.drawer-menu li.active i {
    color: var(--mint);
}

.drawer-menu li span {
    flex: 1;
}

/* 푸터 */
.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
}

.drawer-footer p {
    margin: 0;
    font-size: 11px;
    color: var(--txt-light);
    text-align: center;
}

/* 오버레이 */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

.drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
}


/* ---------------- 미디어쿼리: 1024px 이하 ---------------- */
@media (max-width: 1023px) {
    .sidebar { display: none; }
    .menu-btn { font-size: 24px; }
    .content-wrapper { margin-left: 0; width: 100%; }
    .main-content { margin-left: 0 !important; }
}

/* ========================================
    [마이페이지 스타일]
======================================== */
.mypage-wrapper {
    padding: 1rem;
    max-width: 512px !important;
    margin: 0 auto;
    width: 100%;
}

/* 더 구체적인 선택자로 강제 적용 */
.main-content.mypage .mypage-wrapper {
    max-width: 512px !important;
    width: 100%;
    box-sizing: border-box;
}

.mypage-wrapper h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.mypage-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.user-info-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
}

.form-section h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 12px;
    color: #6c757d;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* ========================================
    [로그인 팝업]
======================================== */
/* 처방 완료 모달 헤더 */
.step-03 h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--txt-dark);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}
.login-modal.active {
    display: flex;
}

.login-modal-content {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    text-align: center;
    position: relative;
    width: 380px;
    max-width: 92vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.25s ease-out;
}

.close-login {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--txt-light);
    transition: color 0.15s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-login:hover {
    color: var(--txt-dark);
    background: #f1f5f9;
}

.login-modal-content h3 {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    color: var(--txt-dark);
}

.social-btn {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 13px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.naver-login {
    background: #03c75a;
    color: #fff;
}
.kakao-login {
    background: #f7e600;
    color: #3c1e1e;
}
.google-login {
    background: #fff;
    color: #444;
    border: 1px solid #ddd;
}
.normal-login {
    background: #4a90e2;
    color: #fff;
}

/* 로그인 모달 - 구분선 */
.divider {
    margin: 1.5rem 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: #fff;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* 일반 로그인 폼 */
.normal-login-section {
    text-align: left;
}

.normal-login-form .form-group {
    margin-bottom: 1rem;
}

.normal-login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.normal-login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.normal-login-form input:focus {
    outline: none;
    border-color: #4a90e2;
}

.normal-login-btn {
    width: 100%;
    padding: 0.75rem;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.normal-login-btn:hover {
    background: #357abd;
}

.login-footer {
    text-align: center;
    margin-top: 1rem;
}

.login-footer p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.link-btn {
    background: none;
    border: none;
    color: #4a90e2;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .login-modal-content {
        width: 90%;
        padding: 1.5rem;
    }
    .login-modal-content h3 {
        font-size: 1.1rem;
    }
    .social-btn {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    .close-login {
        top: 8px;
        right: 8px;
        font-size: 1rem;
    }
}


/* ========================================
    [우측 콘텐츠 래퍼]
======================================== */
.content-wrapper {
    margin-left: 64px;
    padding: 16px;
    height: 100vh;
    width: calc(100% - 64px);
    box-sizing: border-box;
    position: relative;
}

/* ========================================
    [개별 콘텐츠 박스들]
======================================== */
.main-content {
    display: none;
    width: calc(100% - 92px);
    height: calc(100vh - 24px);
    margin: 12px;
    margin-left: 68px;
    background: #ffffff;
    border-radius: 20px;
    box-sizing: border-box;

    overflow-y: auto;
    overflow-x: hidden;

    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.main-content.active {
    display: flex;                         /* ← 여기서 flex */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
/* ----------------------------------------
   Tablet & Mobile  ≤ 1023px
----------------------------------------- */
@media (max-width: 1023px) {

    .main-content {
        margin: 0 !important;
        margin-left: 0 !important;
        border-radius: 0;
        height: 100vh;
        width: 100% !important;
        max-width: 100%;
        overflow-x: hidden;
        align-items: stretch !important;
    }

    .top-bar {
        padding: 10px 16px;
    }

    .content01-wrapper,
    .content02-wrapper,
    .content03-wrapper,
    .content04-wrapper,
    .content05-wrapper {
        padding: 8px 12px 24px;
        gap: 16px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .hero {
        display: none !important;
    }

    .hero-ci-mobile {
        display: flex !important;
        justify-content: center;
        padding: 16px 0;
    }

    .hero-ci-mobile img {
        height: 48px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .feature {
        padding: 20px 14px;
    }

    .width_box,
    .wrapper_pay {
        max-width: 100%;
        border-radius: var(--radius-lg);
        padding: 14px;
        box-sizing: border-box;
    }

    .quick-start-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pay-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
    [공통 상단바 (햄버거 + 로그인)]
======================================== */
.top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.user-wrapper {
    position: relative;
}

.login-btn {
    background: none;
    border: none;
    color: #00aaff;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

/* ========================================
    [로그인 상태]
======================================== */
.user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 140px;
    border: 1px solid rgba(0,0,0,0.08);
    z-index: 1001;
}
.user-menu.active {
    display: block;
    animation: userMenuSlideIn 0.2s ease-out;
}
.user-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}
.user-menu button:hover {
    background: #f8f9fa;
}
.user-menu button:first-child {
    color: #0066cc;
}
.user-menu button:first-child i {
    color: #0066cc;
}
.user-menu button:last-child {
    color: #dc3545;
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 12px;
}
.user-menu button:last-child i {
    color: #dc3545;
}

@keyframes userMenuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
    [공통 콘텐츠 내부 - 중앙 영역]
======================================== */
.center-content {
    text-align: center;
    margin-top: 60px;
}

.red-dot {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ff5b4a, #e94636);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 80, 50, 0.4);
    margin: 0 auto 8px;
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
}

/* ========================================
    [각 콘텐츠별 래퍼 (공통)]
======================================== */
.content01-wrapper,
.content02-wrapper,
.content03-wrapper,
.content04-wrapper,
.content05-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}




/* =========================================================
   1번 콘텐츠 – MODERN GLASSMORPHISM DESIGN
   (24h Tele-Medical Main Screen)
========================================================= */

/* 고급 색상 변수 */
:root {
    --mint: #00b894;
    --mint-light: #26d0ce;
    --mint-dark: #009d80;
    --mint-gradient: linear-gradient(135deg, #00b894 0%, #26d0ce 100%);
    --mint-radial: radial-gradient(ellipse at center, #00b894 0%, #26d0ce 100%);
    --card-bg: rgba(255, 255, 255, 0.72);
    --card-bg-solid: #ffffff;
    --card-bg-hover: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.4);
    --border-light: #e8ecf0;
    --txt-dark: #1a1a2e;
    --txt-gray: #64748b;
    --txt-light: #94a3b8;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 40px rgba(0, 184, 148, 0.18);
    --backdrop-blur: blur(20px);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ---------- 래퍼 ---------- */
.content01-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    box-sizing: border-box;
}

/* ---------- HERO ---------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0;
    padding: 56px 48px;
    background: var(--card-bg-solid);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,184,148,0.06) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* 모바일 CI (PC 숨김) */
.hero-ci-mobile {
    display: none;
    text-align: center;
    padding: 20px 0;
    height: 100px;
    overflow: visible;
}

.hero-ci-mobile img {
    height: 30px;
    object-fit: contain;
    transform: scale(4.0);
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 16px;
    background: var(--mint-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.25;
    animation: fadeInUp 0.6s ease-out;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 36px;
    color: var(--txt-gray);
    max-width: 420px;
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

.cta-btn {
    background: var(--mint-gradient);
    color: #fff;
    padding: 14px 36px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.3s both;
    letter-spacing: -0.2px;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 184, 148, 0.4);
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-mock {
    width: 160px;
    height: 320px;
    background: linear-gradient(135deg,#c9f7ef,#90e0d0);
    border-radius: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

/* ---------- FEATURE GRID ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.feature {
    background: var(--card-bg-solid);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--mint-gradient);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 184, 148, 0.2);
}

.feature:hover::before {
    opacity: 1;
}

.feature i {
    font-size: 32px;
    color: var(--mint);
    margin-bottom: 16px;
    display: block;
    transition: transform 0.25s ease;
}

.feature:hover i {
    transform: scale(1.1);
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--txt-dark);
    letter-spacing: -0.3px;
}

.feature p {
    margin: 0;
    font-size: 13px;
    color: var(--txt-gray);
    line-height: 1.6;
    font-weight: 400;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- HOW TO (이용 방법) ---------- */
.how-to {
    animation: fadeIn 0.6s ease-out 0.5s both;
    padding: 0;
}

.how-to h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--txt-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.how-to-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.how-to-step {
    flex: 1;
    max-width: 180px;
    text-align: center;
    padding: 0 8px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mint-gradient);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: #f0fdf9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.2s ease;
}

.step-icon i {
    font-size: 24px;
    color: var(--mint);
}

.how-to-step:hover .step-icon {
    background: var(--mint-gradient);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
}

.how-to-step:hover .step-icon i {
    color: #fff;
}

.how-to-step h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--txt-dark);
    margin: 0 0 6px;
}

.how-to-step p {
    font-size: 12px;
    color: var(--txt-gray);
    line-height: 1.6;
    margin: 0;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 48px;
    color: var(--border-light);
    font-size: 14px;
}

/* ---------- QUICK START (추천 증상) ---------- */
.quick-start {
    animation: fadeIn 0.6s ease-out 0.6s both;
    text-align: center;
    padding: 0;
    margin-top: 24px;
}

.quick-start h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--txt-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.quick-start-desc {
    font-size: 14px;
    color: var(--txt-gray);
    margin-bottom: 16px;
}

.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-card:hover {
    border-color: var(--mint);
    background: #f0fdf9;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.quick-card i {
    font-size: 24px;
    color: var(--mint);
    transition: transform 0.2s ease;
}

.quick-card:hover i {
    transform: scale(1.15);
}

.quick-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--txt-dark);
}

/* 기존 steps 하위 호환 (숨김) */
.steps { display: none; }
}

/* ----------  ⬆︎ BREAKPOINTS ⬇︎ ---------- */

/* 태블릿 ≥600px */
@media (min-width: 600px) {
    .hero-text h1 { font-size: 32px; }
    .hero-text p  { font-size: 16px; }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2열 */
        gap: 20px;
    }
}

/* 데스크톱 ≥1024px */
@media (min-width: 1024px) {
    /* Hero 배너 가로형 */
    .hero {
        flex-direction: row;
        text-align: left;
        gap: 48px;
    }
    .hero-text { flex: 1; }
    .hero-text h1 { font-size: 36px; }
    .mobile-mock { width: 200px; height: 380px; }

    /* 기능 카드 4열 */
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        margin: 56px 0;
    }

    /* 진료 절차 4열 */
    .steps ol {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    .steps li {
        padding: 28px;
    }
    .steps li span {
        top: -14px; left: -14px;
    }
}















/* =========================================================
   2번 콘텐츠 │ Chat Message 스타일 수정
   - user  : 말풍선
   - ai    : 문단 텍스트 (버블 X)
========================================================= */

/* 공통 메시지 간격 */
/* =========================================================
   2번 콘텐츠 │ 채팅 메시지 스타일
========================================================= */

.chat-message {
    margin-bottom: 10px;
    max-width: 80%;
    line-height: 1.65;
    word-break: break-word;
    font-size: 14px;
    animation: msgFadeIn 0.25s ease-out;
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 사용자 말풍선 */
.chat-message.user {
    background: var(--mint-gradient);
    color: #fff;
    align-self: flex-end;
    padding: 10px 16px;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.2);
    margin-left: auto;
    max-width: 75%;
    width: fit-content;
}

/* AI 응답 */
.chat-message.ai {
    align-self: flex-start;
    background: #f4f6f8;
    color: var(--txt-dark);
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* 로딩 (점 3개 애니메이션) */
.chat-message.loading {
    background: #f4f6f8;
    padding: 16px 24px;
    border-radius: 18px 18px 18px 4px;
    min-width: 70px;
    max-width: 70px;
}

/* 점 3개 타이핑 애니메이션 */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b0b8c1;
    display: block;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
    .chat-message.user { font-size: 13px; padding: 9px 14px; }
    .chat-message.ai { font-size: 13px; padding: 10px 14px; }
}

/* 스크롤바 감춤 */
.chat-textarea::-webkit-scrollbar{ display:none; }

/* =========================================================
   2번 콘텐츠 │ Chat 레이아웃 정밀 보정
   - main-content 좌우 여백( L 68px ‖ R 12px )과
     최대 폭 1280px 모두 맞춰 정렬
========================================================= */

/* ❶  데스크톱  (> 1023 px)   ─────────────────────────── */
.chat-input-bar{
    position: fixed;
    bottom: 12px;

    /* ↙︎ 왼쪽 : 사이드바 64px + 패널 margin-left 4px = 68 */
    left: 68px;

    /* ↘︎ 오른쪽 : 패널 margin-right 12px */
    right: 12px;

    /* ▶︎ 폭 = (100% - 68 - 12) _하지만_ 1280px 을 넘지 않음  */
    width: auto;
    max-width: 1280px;      /* 중앙 정렬 효과 */
    margin: 0 auto;         /* 남는 공간 좌우 균등 */

    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 12px 14px 12px;
    background:#fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,.05);
    display:flex;flex-direction:column;gap:8px;
    z-index:999;
}

/* 메시지(스크롤) 영역을 패널 안에 꽉 채움 */
.chat-body{
    position: fixed;
    top: 56px;              /* 상단바 높이 + 여유 */
    bottom: 140px;          /* 입력바 높이 + 여유 */
    left: 68px;
    right: 12px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    overflow-y:auto;

    display:flex;flex-direction:column;
}

/* ❷  태블릿·모바일 (≤ 1023 px) ───────────────────────── */
@media (max-width: 1023px){

    /* 풀폭 하단 고정 */
    .chat-input-bar{
        bottom:0; left:0; right:0;
        width:100%; max-width:none;
        padding:12px 16px;
        margin:0;
    }

    /* 메시지 영역도 풀폭 */
    .chat-body{
        top: 48px;          /* 모바일 상단바 높이 */
        bottom: 120px;      /* 모바일 입력바 높이 */
        left:0; right:0;
        max-width:none;
        padding:12px 16px;
    }
}


.chat-input-row {
    display: flex;
    background: #f4f6f8;
    border-radius: 14px;
    padding: 4px;
    align-items: flex-end;
}

.chat-textarea {
    flex: 1;
    min-height: 40px;
    max-height: 100px;
    resize: none;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    outline: none;
    background: transparent;
    color: var(--txt-dark);
}

.chat-textarea::placeholder {
    color: var(--txt-light);
}

.chat-textarea::-webkit-scrollbar {
    display: none;
}

/* 하단 버튼 라인 */
.chat-buttons-row.between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 2px 0;
}

.chat-button-left,
.chat-button-right {
    display: flex;
    gap: 4px;
}

.chat-icon {
    background: none;
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--txt-light);
    cursor: pointer;
    transition: all 0.15s ease;
}

.chat-icon:hover {
    background: #f0f0f0;
    color: var(--mint);
}

/* 전송 버튼 강조 */
#btn-send {
    background: var(--mint-gradient);
    color: #fff;
    border-radius: 50%;
}

#btn-send:hover {
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
    transform: scale(1.05);
}

/* --------------- JS로 추가한 선택지 보기 BTN ---------------- */
/* --------------- JS로 추가한 선택지 보기 BTN ---------------- */
/* --------------- JS로 추가한 선택지 보기 BTN ---------------- */


/* 인라인 선택지 버튼 (AI 응답 내 보기) */
.inline-choice-btn {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
    margin-right: 6px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--txt-dark);
}

.inline-choice-btn:hover {
    background: #f0fdf9;
    border-color: var(--mint);
    color: var(--mint-dark);
}

/* 초기 증상 선택 버튼 */
.choice-buttons {
    margin-bottom: 8px;
}

.choice-btn {
    width: auto;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: var(--txt-dark);
    border: 1.5px solid var(--border-light);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin-bottom: 0;
}

.choice-btn:hover {
    background: var(--mint-gradient);
    color: #fff;
    border-color: var(--mint);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.25);
}

#greeting-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

#greeting-buttons.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 병명 진단 선택 버튼 */
.diagnosis-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.diagnosis-btn {
    width: auto;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    color: var(--mint-dark);
    border: 1.5px solid var(--mint);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.diagnosis-btn:hover {
    background: var(--mint-gradient);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.25);
}


/*----------------- 채팅 창 공통 스타일 (사진 버블) -----------------*/
.chat-bubble {
    max-width: 80%;
    width: fit-content;
    display: inline-block;
    padding: 10px 14px;
    border-radius: 18px;
    margin: 6px 0;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* ✅ 사용자 말풍선 (오른쪽 정렬) */
.chat-bubble.me {
    background-color: #dcf8c6;
    align-self: flex-end;
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

/* ✅ GPT 응답 (텍스트 단락 형태) */
.chat-bubble.gpt {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    margin: 6px 0;
    max-width: 100%;
    color: #444;
    text-align: left;
}

/* 사진 버블 - 사용자 */
.chat-bubble.me {
    align-self: flex-end;
    margin-left: auto;
    background: transparent;
    padding: 4px;
    border-radius: 14px;
}

/* 사진 버블 - AI */
.chat-bubble.gpt {
    align-self: flex-start;
    background: #f4f6f8;
    border-radius: 18px 18px 18px 4px;
    color: var(--txt-dark);
    font-size: 14px;
    line-height: 1.7;
}

/* 로딩 버블 */
.chat-bubble.loading {
    background: #f4f6f8;
    font-size: 0;
}















/* --------------- 마이크 오버레이 ---------------- */
/* --------------- 마이크 오버레이 ---------------- */
.mrc_overlay {
    display: none;  /* 기본은 숨김 */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 3000;
    background-color: rgba(0, 0, 0, 0.5);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mic-wave {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.mic-wave .circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #00b5e2;
    animation: pulse 1s infinite ease-in-out;
}

.mic-wave .circle:nth-child(2) {
    animation-delay: 0.2s;
}

.mic-wave .circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.8);
        opacity: 1;
    }
}

.mic-text {
    color: white;
    font-size: 16px;
    font-weight: bold;
}


/* --------------- 재처방 창 ---------------- */
/* --------------- 재처방 창 ---------------- */
/* --------------- 재처방 창 ---------------- */
.re-prescription-slide {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    max-width: 512px;
    margin: 0 auto;
    background-color: #fff;
    z-index: 3000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: bottom 0.4s ease-in-out;
    padding: 20px 16px;
    height: 70vh;
    max-height: 75vh;
}

.re-prescription-slide.active {
    bottom: 0;
}

.re-prescription-slide .slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.re-prescription-slide h3 {
    font-size: 18px;
    font-family: 'Noto Sans KR', sans-serif;
}

.re-prescription-slide h3 i {
    font-size: 28px;
    font-weight: bold;
    color: #008b07;
}

.slide-close-re {
    font-size: 24px;
    cursor: pointer;
}

.re-prescription-content {
    font-size: 14px;
    line-height: 1.6;
}


/* --------------- 처방전 정보 입력 ---------------- */
/* --------------- 처방전 정보 입력 ---------------- */
/* --------------- 처방전 정보 입력 ---------------- */
/* 모달 배경 오버레이 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 92%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 32px 28px;
    animation: fadeInUp 0.25s ease-out;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
}

/* 헤더 영역 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-info {
    font-size: 18px;
    font-weight: bold;
    color: #222;
}

.close-button {
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}
.close-button:hover {
    color: #444;
}

/* 입력 그룹 */
.input-group {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    font-size: 14px;
    gap: 6px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--txt-dark);
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-size: 14px;
    background: #fafbfc;
    transition: all 0.2s ease;
    outline: none;
}

.input-group input:focus {
    border-color: var(--mint);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.input-group input[readonly] {
    background: #f1f5f9;
    color: var(--txt-light);
    cursor: not-allowed;
}

/* 완료 버튼 */
.modal-end {
    margin-top: 28px;
    margin-bottom: 8px;
}

.modal-end button {
    padding: 14px 20px;
    background: var(--mint-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
}

.modal-end button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






/* =========================================================
   3번 콘텐츠 │ Chat 레이아웃 정밀 보정

    최대 폭 1280px 모두 맞춰 정렬
========================================================= */

/* 전체 박스 설정 */
.width_box {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 정보 박스 */
.info_box {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 100%);
    padding: 14px 18px;
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    border: 1px solid rgba(0, 184, 148, 0.15);
}

.info_icon {
    font-size: 20px;
    color: var(--mint);
    margin-right: 12px;
    flex-shrink: 0;
}

.info_text {
    font-size: 13px;
    color: var(--txt-gray);
    line-height: 1.6;
}

/* 제목 */
.title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: var(--txt-dark);
    margin: 16px 0 8px;
    letter-spacing: 8px;
}

/* QR 박스 */
.qr_box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px auto 16px;
    padding: 24px;
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: auto;
    max-width: 200px;
}

.qr {
    width: 128px;
    height: 128px;
    background: #fff;
    border: none;
    border-radius: 8px;
}


/* 공통 섹션 카드 스타일 */
.insurance_section,
.insurance2_section,
.license_section,
.issue_info_section,
.patient_section,
.medical_institution_section,
.medicine_section,
.usage_period_section {
    width: 100%;
    padding: 20px;
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-top: 0;
}

.section_title {
    font-size: 14px;
    font-weight: 700;
    color: var(--txt-dark);
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

/* 체크박스 그룹 */
.checkbox_group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox_group label {
    font-size: 13px;
    color: var(--txt-gray);
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.15s ease;
}

.checkbox_group label:has(input:checked) {
    background: #f0fdf9;
    border-color: var(--mint);
    color: var(--mint-dark);
}

.checkbox_group input[type="checkbox"] {
    margin-right: 6px;
    width: 14px;
    height: 14px;
    accent-color: var(--mint);
}


/* 보험 정보 2 섹션 - 공통 스타일 상속 */
.insurance2_section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 입력 박스 */
.input_box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.input_box input[type="text"] {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease;
    color: var(--txt-gray);
}

.input_box input[type="text"]:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

/* 면허 섹션 - 공통 스타일 상속 */

#ccc {
    position: relative;
    height: 80px;
    text-align: center;
    vertical-align: middle;
}

.central-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
    opacity: 0.85;
}

/* 공통 테이블 스타일 */
.table_box {
    width: 100%;
    margin-top: 8px;
    overflow-x: auto;
}

.table_box table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 13px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.table_box th,
.table_box td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table_box th {
    width: 35%;
    background: #f8f9fa;
    font-weight: 600;
    color: var(--txt-dark);
    font-size: 13px;
}

.table_box td {
    background: #fff;
    color: var(--txt-gray);
}

.table_box tr:last-child th,
.table_box tr:last-child td {
    border-bottom: none;
}



/* 교부정보 섹션 */
.issue_info_section {
    width: 100%;
    margin-top: 12px; /* 위아래 간격 */
    padding: 12px; /* 내부 여백 */
    background-color: #f9f9f9; /* 연한 배경색 */
    border: 1px solid #ddd; /* 테두리 */
    border-radius: 6px; /* 모서리 둥글게 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 약간의 그림자 */
}

/* 테이블 박스 */
.table_box {
    width: 100%;
    margin-top: 10px; /* 제목과의 간격 */
    overflow-x: auto; /* 모바일에서 테이블 스크롤 허용 */
}

/* 테이블 스타일 */
.table_box table {
    width: 100%; /* 테이블 너비 */
    border-collapse: collapse; /* 테두리 겹침 방지 */
    text-align: left; /* 텍스트 좌측 정렬 */
    font-size: 14px; /* 텍스트 크기 */
}

.table_box th,
.table_box td {
    padding: 8px 12px; /* 셀 내부 여백 */
    border: 1px solid #ddd; /* 셀 테두리 */
    width: 35%; /* 첫 번째 열의 너비 비율 */
}

.table_box th {
    background-color: #f1f1f1; /* 헤더 배경색 */
    font-weight: bold; /* 헤더 텍스트 굵게 */
}

.table_box td {
    background-color: #ffffff; /* 데이터 셀 배경색 */
}


/* 환자 섹션 */
.patient_section {
    width: 100%; /* 섹션 너비 */
    margin-top: 12px; /* 위아래 간격 */
    padding: 12px; /* 내부 여백 */
    background-color: #f9f9f9; /* 연한 배경색 */
    border: 1px solid #ddd; /* 테두리 */
    border-radius: 6px; /* 모서리 둥글게 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 약간의 그림자 */
}

/* 테이블 박스 */
.patient_section .table_box {
    width: 100%;
    margin-top: 10px; /* 제목과 테이블 간 간격 */
    overflow-x: auto; /* 모바일에서 스크롤 가능 */
}

/* 테이블 스타일 */
.patient_section .table_box table {
    width: 100%; /* 테이블 전체 너비 */
    border-collapse: collapse; /* 셀 간격 제거 */
    text-align: left; /* 텍스트 좌측 정렬 */
    font-size: 14px; /* 글자 크기 */
}

/* 테이블 셀 스타일 */
.patient_section .table_box th,
.patient_section .table_box td {
    padding: 8px 12px; /* 셀 내부 여백 */
    border: 1px solid #ddd; /* 셀 테두리 */
    width: 35%; /* 첫 번째 열의 너비 비율 */
}

/* 테이블 헤더 스타일 */
.patient_section .table_box th {
    background-color: #f1f1f1; /* 헤더 배경색 */
    font-weight: bold; /* 텍스트 굵게 */
}

/* 데이터 셀 스타일 */
.patient_section .table_box td {
    background-color: #ffffff; /* 데이터 셀 배경색 */
}


/* 의료기관 섹션 */
.medical_institution_section {
    width: 100%; /* 섹션 너비 */
    margin-top: 12px; /* 위아래 간격 */
    padding: 12px; /* 내부 여백 */
    background-color: #f9f9f9; /* 연한 배경색 */
    border: 1px solid #ddd; /* 테두리 */
    border-radius: 6px; /* 모서리 둥글게 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 약간의 그림자 */
}

/* 테이블 박스 */
.medical_institution_section .table_box {
    width: 100%; /* 테이블 전체 너비 */
    margin-top: 10px; /* 제목과 테이블 간 간격 */
    overflow-x: auto; /* 모바일에서 스크롤 가능 */
}

/* 테이블 스타일 */
.medical_institution_section .table_box table {
    width: 100%; /* 테이블 너비 */
    border-collapse: collapse; /* 셀 간격 제거 */
    text-align: left; /* 텍스트 좌측 정렬 */
    font-size: 14px; /* 텍스트 크기 */
}

/* 테이블 셀 스타일 */
.medical_institution_section .table_box th,
.medical_institution_section .table_box td {
    padding: 8px 12px; /* 셀 내부 여백 */
    border: 1px solid #ddd; /* 셀 테두리 */
    width: 35%; /* 첫 번째 열의 너비 비율 */
}

/* 테이블 헤더 스타일 */
.medical_institution_section .table_box th {
    background-color: #f1f1f1; /* 헤더 배경색 */
    font-weight: bold; /* 텍스트 굵게 */
}

/* 데이터 셀 스타일 */
.medical_institution_section .table_box td {
    background-color: #ffffff; /* 데이터 셀 배경색 */
}



/* 의약품 섹션 - 공통 스타일 상속 */
.medicine_section .table_box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* 처방 테이블 */
/* 약물 카드 */
.drug-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drug-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.drug-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.drug-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0fdf9 0%, #f8fffe 100%);
    border-bottom: 1px solid var(--border-light);
}

.drug-card-header i {
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.drug-card-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--txt-dark);
    flex: 1;
}

.drug-card-sub {
    font-size: 11px;
    color: var(--primary);
    background: rgba(0,200,150,0.1);
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.drug-card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
}

.drug-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    border-right: 1px solid var(--border-light);
}

.drug-card-item:last-child {
    border-right: none;
}

.drug-card-label {
    font-size: 11px;
    color: var(--txt-light);
    margin-bottom: 6px;
    font-weight: 500;
}

.drug-card-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-dark);
    text-align: center;
    word-break: keep-all;
}

.drug-card-instructions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 18px;
    background: #f8f9fa;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--txt-gray);
    line-height: 1.5;
}

.drug-card-instructions i {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .drug-card-header {
        padding: 12px 14px;
    }
    .drug-card-name {
        font-size: 14px;
    }
    .drug-card-item {
        padding: 12px 6px;
    }
    .drug-card-value {
        font-size: 13px;
    }
    .drug-card-instructions {
        padding: 10px 14px;
        font-size: 12px;
    }
}



/* 사용기간 섹션 - 공통 스타일 상속 */

.usage_period_section .section_title {
    font-size: 14px;
    font-weight: 700;
    color: var(--txt-dark);
    text-align: center;
    margin-bottom: 10px; /* 아래 간격 */
}

/* 정보 내용 */
.usage_period_section .usage_content {
    font-size: 14px; /* 내용 글자 크기 */
    color: #555; /* 중간 회색 */
    line-height: 1.6; /* 줄 간격 */
    text-align: center; /* 텍스트 중앙 정렬 */
}

/* 강조 표시 */
.usage_period_section .highlight {
    font-weight: 700;
    color: var(--mint-dark);
}

.usage_period_section .note {
    font-size: 12px;
    color: var(--txt-light);
    margin-top: 6px;
}

.usage_period_section .usage_content {
    text-align: center;
    font-size: 14px;
    color: var(--txt-gray);
    line-height: 1.6;
}



.wrapper_pay {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checking {
    width: 100%;
    padding: 16px 20px;
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--txt-gray);
}

.checking label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checking input[type="radio"] {
    accent-color: var(--mint);
}

/* 동의서 */
.consent {
    width: 100%;
    padding: 20px;
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.consent h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--txt-dark);
    margin-bottom: 12px;
}

textarea.privacy-policy {
    width: 100%;
    height: 200px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--txt-gray);
    background: #fff;
    resize: none;
    margin-bottom: 14px;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--mint);
}

.consent-checkbox label {
    font-size: 14px;
    font-weight: 500;
    color: var(--txt-dark);
}

/* 배송 */
#delivery {
    width: 100%; /* 화면의 94% 크기 */
    max-width: 500px;
    margin: 0 auto; /* 상하 여백, 좌우 가운데 정렬 */
    padding: 4px; /* 내부 여백 */
    box-sizing: border-box; /* 패딩 포함한 전체 박스 크기 설정 */
    background-color: #ffffff; /* 흰색 배경 */
    border: 1px solid #ddd; /* 옅은 테두리 */
    border-radius: 6px; /* 모서리 둥글게 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 살짝 그림자 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#check_user h3, #map h3, #delivery h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #333;
}

.delivery-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.delivery-options label {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: #555;
    cursor: pointer;
}

.delivery-options input[type="radio"] {
    margin-right: 10px;
}

#address {
    width: 80%;
}
.address-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

#final-cost {
    padding: 0 10px;
}
/* 배송 끝 */

/* 결제 정보 */
.payment-section {
    width: 100%;
    padding: 20px;
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.payment-section2 {
    width: 100%;
    padding: 20px;
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.cost-info {
    width: 100%;
    padding: 0;
}

.payment-section h3,
#payment-form h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--txt-dark);
    margin-bottom: 16px;
}

.payment-section span {
    font-size: 14px;
    font-weight: 500;
    color: var(--txt-gray);
}

.line-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.underline {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
    margin: 8px 0;
}

/* 최종 결제 금액 */
.final_cost {
    width: 100%;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 100%);
    border: 1px solid rgba(0, 184, 148, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
}

.final_cost_title {
    font-size: 13px;
    font-weight: 600;
    color: var(--txt-gray);
    margin-bottom: 4px;
}

.final_cost_value {
    font-size: 28px;
    font-weight: 800;
    color: var(--mint-dark);
}

.final_cost_value span {
    font-size: 28px;
    font-weight: 800;
    color: var(--mint-dark);
}

/* 결제 정보 끝 */



/* 컨테이너 스타일 */
#payment-form {
    width: 100%; /* 화면의 94% 크기 */
    max-width: 500px;
    margin: 16px auto; /* 상하 여백, 좌우 가운데 정렬 */
    padding: 14px; /* 내부 여백 */
    box-sizing: border-box; /* 패딩 포함한 전체 박스 크기 설정 */
    background-color: #ffffff; /* 흰색 배경 */
    border: 1px solid #ddd; /* 옅은 테두리 */
    border-radius: 6px; /* 모서리 둥글게 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 살짝 그림자 */
    text-align: center;
}

/* 제목 스타일 */
#payment-form h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* 라디오 버튼 그룹 */
/* ========================================
   결제 폼
======================================== */
.pay-form h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--txt-dark);
    margin-bottom: 16px;
}

/* 결제 수단 그리드 */
.pay-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.pay-method {
    cursor: pointer;
    position: relative;
}

.pay-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pay-method-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 8px;
    background: #fff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-align: center;
}

.pay-method-inner i {
    font-size: 22px;
    color: var(--txt-light);
    transition: color 0.2s ease;
}

.pay-method-inner span {
    font-size: 12px;
    font-weight: 600;
    color: var(--txt-gray);
    transition: color 0.2s ease;
}

/* 선택된 상태 */
.pay-method input[type="radio"]:checked ~ .pay-method-inner {
    border-color: var(--mint);
    background: #f0fdf9;
    box-shadow: 0 2px 12px rgba(0, 184, 148, 0.15);
}

.pay-method input[type="radio"]:checked ~ .pay-method-inner i {
    color: var(--mint);
}

.pay-method input[type="radio"]:checked ~ .pay-method-inner span {
    color: var(--mint-dark);
}

/* hover */
.pay-method:hover .pay-method-inner {
    border-color: rgba(0, 184, 148, 0.4);
    transform: translateY(-2px);
}

/* 결제 버튼 */
.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--mint-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 184, 148, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

/* QR 수신 섹션 */
.qr-receive-section {
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.qr-receive-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-dark);
}

.qr-receive-header i {
    color: var(--mint);
    font-size: 18px;
}

.qr-receive-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.qr-receive-input label {
    font-size: 13px;
    font-weight: 600;
    color: var(--txt-gray);
    white-space: nowrap;
}

.qr-receive-input input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    color: var(--txt-dark);
    font-weight: 500;
    text-align: center;
}

.qr-receive-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qr-receive-info li {
    font-size: 12px;
    color: var(--txt-light);
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
}

.qr-receive-info li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mint);
}

@media (max-width: 480px) {
    .pay-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 병원 계약 만료 안내 */
/* 정보 박스 */
.info_box_s {
    display: flex; /* 아이콘과 텍스트를 가로로 배치 */
    align-items: center; /* 세로 정렬 */
    background-color: #fd8d89fa; /* 파란색 배경 */
    padding: 12px; /* 내부 여백 */
    width: 94%;
    max-width: 478px;
    margin: 6px auto;
    box-sizing: border-box; /* 패딩 포함한 전체 박스 크기 설정 */
    border-radius: 6px; /* 모서리 둥글게 */
    margin-bottom: 16px; /* 아래 간격 */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* 내부 그림자 */
    border: 1px solid #b3d8f0; /* 파란색 테두리 */
}

/* 정보 아이콘 */
.info_icon_s {
    font-size: 24px; /* 아이콘 크기 */
    font-weight: bold; /* 아이콘 굵게 */
    color: #ff0000; /* 진한 파란색 */
    margin-right: 10px; /* 텍스트와 간격 */
}

/* 정보 텍스트 */
.info_text_s {
    font-size: 12px; /* 텍스트 크기 */
    color: #333; /* 진한 회색 */
    line-height: 1.5; /* 줄 간격 */
}



/* =========================================================
   4번 콘텐츠 │ Chat 레이아웃 정밀 보정

    최대 폭 1280px 모두 맞춰 정렬
========================================================= */
.content04-wrapper h2 {
    margin-bottom: 16px;
    font-size: 1.75rem;
    color: #2c3e50;
    font-weight: 600;
    padding: 0 8px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(296px, 1fr));
    gap: 24px;
    padding: 0 20px 16px;
}

.prescription-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.prescription-card:hover {

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.prescription-card .card-header {
    padding: 1rem;
    background: linear-gradient(90deg, #f0f4f8, #ffffff);
    border-bottom: 1px solid #e0e6ed;
    font-size: 0.95rem;
    color: #34495e;
    font-weight: 500;
    line-height: 1.4;
}

.prescription-card .card-body {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafbfc;
}

.prescription-card .card-body img {
    max-width: 120px;
    max-height: 120px;
}

.prescription-card .card-footer {
    padding: 1rem;
    background: #ffffff;
    border-top: 1px solid #e0e6ed;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.prescription-card .card-footer button {
    background-color: #00b894;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.prescription-card .card-footer button:hover {
    background-color: #26de81;
}

/* 처방전 보기 버튼 (파란색) */
.prescription-card .card-footer .view-btn {
    background-color: #007bff;
}
.prescription-card .card-footer .view-btn:hover {
    background-color: #0056b3;
}

/* 재발급 버튼 (주황색) */
.prescription-card .card-footer .reissue-btn {
    background-color: #fd7e14;
}
.prescription-card .card-footer .reissue-btn:hover {
    background-color: #e05a00;
}



.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination button {
    background: #fff;
    color: #00b894;
    border: 2px solid #e1e8ed;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:disabled {
    background: #00b894;
    color: #fff;
    border-color: #00b894;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.2);
}

.pagination button:hover:not(:disabled) {
    background: #00b894;
    color: #fff;
    border-color: #00b894;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.pagination button:active:not(:disabled) {
    transform: translateY(0);
}

.pagination .current-page {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}




/* =========================================================
   5번 콘텐츠 │ Chat 레이아웃 정밀 보정
    최대 폭 1280px 기준, content05-wrapper 전용
========================================================= */
/* =========================================================
   5번 콘텐츠 │ Chat 레이아웃 정밀 보정
    최대 폭 1280px 기준, content05-wrapper 전용
========================================================= */
.content05-wrapper h2 {
    margin-bottom: 16px;
    font-size: 1.75rem;
    color: #2c3e50;
    font-weight: 600;
    padding: 0 8px;
}

.content05-wrapper .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(296px, 1fr));
    gap: 24px;
    padding: 0 20px 16px;
}

.content05-wrapper .prescription-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content05-wrapper .prescription-card:hover {

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.content05-wrapper .prescription-card .card-header {
    padding: 1rem;
    background: linear-gradient(90deg, #f0f4f8, #ffffff);
    border-bottom: 1px solid #e0e6ed;
    font-size: 0.95rem;
    color: #34495e;
    font-weight: 500;
    line-height: 1.4;
}

.content05-wrapper .prescription-card .card-body {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafbfc;
}

.content05-wrapper .prescription-card .card-body img {
    max-width: 120px;
    max-height: 120px;
}

.content05-wrapper .prescription-card .card-footer {
    padding: 1rem;
    background: #ffffff;
    border-top: 1px solid #e0e6ed;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.content05-wrapper .prescription-card .card-footer button {
    background-color: #00b894;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.content05-wrapper .prescription-card .card-footer button:hover {
    background-color: #26de81;
}

/* 처방전 보기 버튼 (파란색) - 재발급 페이지 */
.content05-wrapper .prescription-card .card-footer .view-btn {
    background-color: #007bff;
}
.content05-wrapper .prescription-card .card-footer .view-btn:hover {
    background-color: #0056b3;
}

/* 재발급 버튼 (주황색) - 재발급 페이지 */
.content05-wrapper .prescription-card .card-footer .reissue-btn {
    background-color: #fd7e14;
}
.content05-wrapper .prescription-card .card-footer .reissue-btn:hover {
    background-color: #e05a00;
}

.content05-wrapper .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.content05-wrapper .pagination button {
    background: #fff;
    color: #00b894;
    border: 2px solid #e1e8ed;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content05-wrapper .pagination button:disabled {
    background: #00b894;
    color: #fff;
    border-color: #00b894;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.2);
}

.content05-wrapper .pagination button:hover:not(:disabled) {
    background: #00b894;
    color: #fff;
    border-color: #00b894;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.content05-wrapper .pagination button:active:not(:disabled) {
    transform: translateY(0);
}

.content05-wrapper .pagination .current-page {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* ========================================
    [회원가입 페이지 스타일]
======================================== */
.signup-wrapper {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.signup-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.signup-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.signup-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.signup-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.signup-form .form-section:last-of-type {
    border-bottom: none;
}

.signup-form .form-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.signup-form .form-group {
    margin-bottom: 1rem;
}

.signup-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.signup-form input[type="text"],
.signup-form input[type="password"],
.signup-form input[type="email"],
.signup-form input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.signup-form input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.signup-form small {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* 비밀번호 확인 상태 표시 */
.password-match-indicator {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.password-match-indicator.match {
    color: #28a745;
}

.password-match-indicator.no-match {
    color: #dc3545;
}

.password-match-indicator.empty {
    color: #666;
}

/* 체크박스 스타일 */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

.checkbox-group:first-child {
    background: #f0f8ff;
    border-color: #4a90e2;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    flex: 1;
    user-select: none;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
    display: inline-block;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4a90e2;
    border-color: #4a90e2;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-group .link-btn {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #f8f9fa;
    color: #4a90e2;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.checkbox-group .link-btn:hover {
    background: #e9ecef;
    text-decoration: none;
}

/* 회원가입 폼 안전장치 - 예상치 못한 요소 방지 */
.signup-form {
    overflow: hidden;
    position: relative;
}

.signup-form * {
    box-sizing: border-box;
}

.signup-form input[type="checkbox"] {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    z-index: -1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* 폼 액션 버튼들 */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.btn-primary {
    background: #4a90e2;
    color: #fff;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .how-to-steps {
        flex-wrap: wrap;
        gap: 16px;
    }
    .how-to-step {
        flex: 0 0 calc(50% - 16px);
        max-width: none;
    }
    .step-arrow {
        display: none;
    }
    .quick-start-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .signup-wrapper {
        padding: 1rem 0.25rem;
    }
    
    .signup-container {
        padding: 1rem;
    }
    
    .signup-container h2 {
        font-size: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .checkbox-group .link-btn {
        margin-left: 0;
        align-self: flex-end;
    }
}

/* ========================================
    [신분증 업로드 스타일]
======================================== */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
    background: #fafafa;
}

.file-upload-area:hover {
    border-color: #4a90e2;
    background: #f8f9fa;
}

.upload-placeholder i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.upload-placeholder p {
    margin: 1rem 0;
    color: #666;
    font-size: 1rem;
}

.upload-btn {
    background: #4a90e2;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background: #357abd;
}

.uploaded-image {
    position: relative;
}

.uploaded-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.change-btn, .remove-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.change-btn {
    background: #28a745;
    color: #fff;
}

.change-btn:hover {
    background: #218838;
}

.remove-btn {
    background: #dc3545;
    color: #fff;
}

.remove-btn:hover {
    background: #c82333;
}

/* 주민번호 입력 필드 스타일 */
.mypage-wrapper input[name="resident_front"],
.mypage-wrapper input[name="resident_back"] {
    font-family: monospace;
    letter-spacing: 2px;
    text-align: center;
}

/* 드래그 앤 드롭 상태 */
.file-upload-area.drag-over {
    border-color: #4a90e2;
    background: #e3f2fd;
}

/* ========================================
    [로그인 요청 화면 스타일]
======================================== */
/* 로그인 필요 화면 */
.login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 3rem 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin: 0 auto;
    max-width: 480px;
    width: 100%;
    box-sizing: border-box;
}

.login-required .login-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e8faf5 0%, #d0f5ec 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.login-required .login-icon i {
    font-size: 1.6rem;
    color: var(--primary);
}

.login-required h3 {
    font-size: 1.2rem;
    color: var(--txt-dark);
    margin-bottom: 0.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-required p {
    color: var(--txt-light);
    margin-bottom: 1.75rem;
    font-size: 0.88rem;
    line-height: 1.6;
}

.login-required .login-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-required .login-btn:hover {
    background: var(--mint-hover);
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.25);
}

.login-required .login-btn i {
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .login-required {
        min-height: 280px;
        padding: 2.5rem 1.5rem;
        border-radius: var(--radius-md);
    }
    .login-required .login-icon {
        width: 60px;
        height: 60px;
    }
    .login-required .login-icon i {
        font-size: 1.3rem;
    }
    .login-required h3 {
        font-size: 1.1rem;
    }
}
