* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
    color: #1f2937;
    background: #f5f7fb;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-wrap {
    min-height: 100vh;
}

/* =========================
   Header
========================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* 
.topbar.is-scrolled {
    background: rgba(15, 23, 42, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
} */

.topbar-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height 0.25s ease;
}

/* .topbar.is-scrolled .topbar-inner {
    height: 68px;
} */

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #2563eb;
    transition: color 0.25s ease;
}

.logo a {
    display: inline-flex;
    align-items: center;
    color: inherit;
}

/* .topbar.is-scrolled .logo {
    color: #ffffff;
} */

.top-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-links a {
    font-size: 14px;
    color: #4b5563;
    transition: color 0.25s ease;
}

.top-links a:hover {
    color: #111827;
}

.mobile-header-account {
    display: none;
}

.mobile-back-button {
    display: none;
}

.global-mobile-account-bar {
    display: none;
}

@media (max-width: 768px) {
    .topbar-inner {
        position: relative;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
        height: 64px;
        gap: 8px;
    }

    .mobile-back-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid #2563eb;
        border-radius: 9px;
        background: #ffffff;
        color: #2563eb;
        font-size: 21px;
        line-height: 1;
        font-weight: 900;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
        cursor: pointer;
    }

    .mobile-back-button:active {
        background: #eff6ff;
        transform: translateY(1px);         
    }

    /*
     * 모바일 내부 페이지에서는 전체 메뉴 숨김
     * 로고, 사용자 이름, 로그아웃 버튼만 표시
     */
    .topbar .top-links {
        display: none !important;
    }
    
    .logo {
        width: auto !important;
        margin: 0 !important;
        flex: 0 0 auto;        
        flex-shrink: 0;
        font-size: 21px;
    }

   
    .mobile-header-account {
        position: static;
        display: flex !important;       
        align-items: center;
        justify-content: flex-end;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;        
        margin-left: auto;
        padding: 0;
        white-space: nowrap;
    }

    .mobile-header-account a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 64px;
        height: 34px;
        padding: 0 10px;
        border: 1px solid #2563eb;
        border-radius: 8px;
        background: #2563eb;
        color: #ffffff !important;
        font-size: 12px;
        line-height: 34px;
        font-weight: 800;     
        text-decoration: none;
        box-shadow: 0 5px 12px rgba(37, 99, 235, 0.18);
    }

    .mobile-header-user {
        background: #2563eb;      
    }

    .mobile-header-logout {
        background: #1d4ed8 !important;
        border-color: #1d4ed8 !important;      
    }

    .mobile-header-account .mobile-header-login {
        background: #ffffff !important;
        border-color: #2563eb !important;
        color: #2563eb !important;
    }

    .mobile-header-account .mobile-header-register {
        background: #2563eb !important;
        border-color: #2563eb !important;
        color: #ffffff !important;
    }    

  
    .mobile-menu-slot .top-user-name,
    .mobile-menu-slot .top-logout {
        display: none !important;
    }

    .global-mobile-account-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 99999;

        display: grid !important;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 8px;

        width: 100%;
        min-height: 64px;
        margin: 0;

        padding:
            9px
            12px
            calc(
                9px
                + env(safe-area-inset-bottom)
            );

        border-top: 1px solid #dbe3ef;
        background: rgba(255, 255, 255, 0.98);
        box-shadow:
            0 -8px 24px
            rgba(15, 23, 42, 0.16);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .global-mobile-account-link {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        min-width: 0;
        height: 46px;
        padding: 0 6px;

        border: 1px solid #93b4ff;
        border-radius: 11px;
        background: #ffffff;

        color: #2563eb !important;
        font-size: 12px;
        line-height: 1.2;
        font-weight: 900;
        text-align: center;
        text-decoration: none;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .global-mobile-account-user {
        border-color: #2563eb;
        background: #2563eb;
        color: #ffffff !important;
    }

    .global-mobile-account-logout {
        border-color: #1d4ed8;
        background: #1d4ed8;
        color: #ffffff !important;
    }

    .global-mobile-account-link:active {
        transform: translateY(1px);
    }    

    /*
     * 메인 화면을 제외한 모든 내부 페이지에서
     * 표시되는 모바일 하단 회원 메뉴
     */
    .global-mobile-account-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1200;

        display: grid;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 8px;

        padding:
            9px
            12px
            calc(
                9px
                + env(safe-area-inset-bottom)
            );

        border-top: 1px solid #dbe3ef;
        background: rgba(255, 255, 255, 0.96);
        box-shadow:
            0 -8px 24px
            rgba(15, 23, 42, 0.12);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .global-mobile-account-link {
        display: flex;
        align-items: center;
        justify-content: center;

        min-width: 0;
        height: 46px;
        padding: 0 8px;

        border: 1px solid #93b4ff;
        border-radius: 11px;
        background: #ffffff;

        color: #2563eb;
        font-size: 12px;
        line-height: 1.2;
        font-weight: 900;
        text-align: center;
        text-decoration: none;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .global-mobile-account-user {
        background: #2563eb;
        border-color: #2563eb;
        color: #ffffff;
    }

    .global-mobile-account-logout {
        background: #1d4ed8;
        border-color: #1d4ed8;
        color: #ffffff;
    }

    .global-mobile-account-link:active {
        transform: translateY(1px);
    }    
}

@media (max-width: 380px) {
    .mobile-back-button {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 19px;
    }
    
    .logo {
        font-size: 19px;
    }

    .mobile-header-account {
        gap: 4px;
    }

    .mobile-header-account a {
        min-width: 58px;
        height: 32px;
        padding: 0 8px;
        border-radius: 7px;
        font-size: 11px;
        line-height: 32px;
    }
}
/* .topbar.is-scrolled .top-links a {
    color: rgba(255, 255, 255, 0.82);
}

.topbar.is-scrolled .top-links a:hover {
    color: #ffffff;
} */

/* =========================
   Common Page
========================= */
.footer {
    padding: 26px 0 40px;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
}

.page-box {
    padding: 60px 0 80px;
}

.page-panel {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #e8edf5;
}

.page-panel h1 {
    margin: 0 0 16px;
    font-size: 32px;
}

.page-panel p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

/* =========================
   Auth
========================= */
.auth-page {
    padding: 56px 0 90px;
    background: #f6f8fb;
}

.auth-panel {
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.auth-head {
    margin-bottom: 30px;
}

.auth-kicker {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 0.08em;
}

.auth-head h1 {
    margin: 0 0 10px;
    font-size: 34px;
    letter-spacing: -0.04em;
    color: #111827;
}

.auth-head p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

.form-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.form-alert p {
    margin: 0;
}

.form-alert p + p {
    margin-top: 4px;
}

.form-alert-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.form-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-section {
    border-top: 1px solid #edf1f7;
    padding-top: 26px;
}

.form-section h2 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #111827;
    letter-spacing: -0.03em;
}

.form-section h2 span {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* =========================
   Seller Apply Checkbox Card
========================= */
.seller-apply-box {
    display: block;
}

.seller-apply-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.seller-apply-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.seller-apply-card span {
    display: block;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.seller-apply-card:hover span {
    border-color: #b9c8dc;
    background: #f1f5f9;
}

.seller-apply-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #111827;
}

.seller-apply-card em {
    display: block;
    font-style: normal;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.seller-apply-card input:checked + span {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* =========================
   Form
========================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-wide {
    grid-column: span 2;
}

.form-field label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.form-field label b {
    color: #ef4444;
}

.form-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d7deea;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-field input::placeholder {
    color: #9ca3af;
}

.form-field input[readonly] {
    background: #f8fafc;
    color: #374151;
    cursor: default;
}

.form-field input[type="file"] {
    height: auto;
    min-height: 48px;
    padding: 12px 14px;
    cursor: pointer;
    background: #fff;
}

.form-help {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.seller-required-mark {
    color: #ef4444;
}

/* =========================
   Password Strength
========================= */
.password-strength {
    margin-top: 6px;
}

.password-strength-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.password-strength-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.strength-weak {
    background: #ef4444;
}

.strength-normal {
    background: #f59e0b;
}

.strength-strong {
    background: #2563eb;
}

.strength-very-strong {
    background: #16a34a;
}

.password-strength-text {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 800;
    color: #6b7280;
}

.strength-weak-text {
    color: #ef4444;
}

.strength-normal-text {
    color: #d97706;
}

.strength-strong-text {
    color: #2563eb;
}

.strength-very-strong-text {
    color: #16a34a;
}

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.password-rules li {
    position: relative;
    padding: 5px 9px 5px 22px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.password-rules li::before {
    content: "×";
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 900;
    color: #9ca3af;
}

.password-rules li.is-valid {
    background: #ecfdf5;
    color: #047857;
}

.password-rules li.is-valid::before {
    content: "✓";
    color: #059669;
}

.password-match-ok {
    color: #047857;
    font-weight: 700;
}

.password-match-error {
    color: #be123c;
    font-weight: 700;
}

/* =========================
   Address Search
========================= */
.address-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.address-row input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
}

.btn-address-search {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #2563eb;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-address-search:hover {
    background: #dbeafe;
    border-color: #1d4ed8;
    color: #1e40af;
}

.btn-address-search:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* =========================
   Buttons
========================= */
.form-submit-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 50px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: #111827;
    color: #fff;
}

.btn-primary:hover {
    background: #1f2937;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .topbar-inner {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* .topbar.is-scrolled .topbar-inner {
        height: auto;
    } */

    .top-links {
        gap: 12px;
        flex-wrap: wrap;
    }

    .page-box {
        padding: 34px 0 64px;
    }

    .page-panel {
        padding: 28px 22px;
    }

    .page-panel h1 {
        font-size: 26px;
    }

    .auth-page {
        padding: 34px 0 64px;
    }

    .auth-panel {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .auth-head h1 {
        font-size: 28px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }

    .seller-apply-card span {
        padding: 18px;
    }

    .address-row {
        flex-direction: column;
    }

    .address-row input {
        width: 100%;
        flex: none;
        height: 48px;
    }

    .btn-address-search {
        width: 100%;
    }

    .password-rules {
        gap: 5px;
    }

    .password-rules li {
        font-size: 11px;
        padding: 5px 8px 5px 21px;
    }

    .form-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .logo {
        font-size: 21px;
    }

    .top-links {
        gap: 10px 12px;
    }

    .top-links a {
        font-size: 13px;
    }

    .auth-panel {
        padding: 26px 18px;
    }

    .auth-head h1 {
        font-size: 25px;
    }

    .seller-apply-card span {
        padding: 16px;
    }

    .seller-apply-card strong {
        font-size: 15px;
    }

    .seller-apply-card em {
        font-size: 12px;
    }
}

.top-user-name {
    font-weight: 800;
    color: #2563eb !important;
}
/* 
.topbar.is-scrolled .top-user-name {
    color: #93c5fd !important;
} */

/* =========================
   Refining Landing
========================= */
.refining-page {
    background: #f6f8fb;
}

.refining-hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #111827 100%);
    color: #fff;
}

.refining-hero-box {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 36px;
    align-items: center;
}

.refining-kicker,
.section-head span,
.refining-inquiry-box span {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #60a5fa;
}

.refining-hero h1 {
    margin: 0 0 18px;
    font-size: 48px;
    line-height: 1.18;
    letter-spacing: -0.06em;
}

.refining-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.8;
}

.refining-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.refining-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.refining-btn-primary {
    background: #2563eb;
    color: #fff;
}

.refining-btn-primary:hover {
    background: #1d4ed8;
}

.refining-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.refining-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.refining-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.refining-visual-card {
    width: 100%;
    max-width: 380px;
    min-height: 280px;
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(96, 165, 250, 0.24), rgba(34, 197, 94, 0.14)),
        rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.refining-visual-card span {
    font-size: 13px;
    font-weight: 900;
    color: #93c5fd;
    letter-spacing: 0.1em;
}

.refining-visual-card strong {
    display: block;
    margin-top: 10px;
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.refining-visual-card em {
    display: block;
    margin-top: 10px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.68);
}

.refining-section {
    padding: 72px 0;
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2 {
    margin: 0 0 10px;
    font-size: 34px;
    color: #111827;
    letter-spacing: -0.05em;
}

.section-head p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.process-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.process-card b {
    display: inline-flex;
    margin-bottom: 14px;
    font-size: 13px;
    color: #2563eb;
}

.process-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    color: #111827;
}

.process-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

.refining-slider-section {
    background: #fff;
}

.refining-slider {
    position: relative;
}

.refining-slide-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px 18px;
    scrollbar-width: none;
}

.refining-slide-track::-webkit-scrollbar {
    display: none;
}

.refining-slide {
    flex: 0 0 300px;
    background: #f8fafc;
    border: 1px solid #e5eaf2;
    border-radius: 24px;
    padding: 16px;
}

.refining-slide-img {
    height: 180px;
    border-radius: 18px;
    margin-bottom: 16px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(34, 197, 94, 0.16)),
        #e5e7eb;
}

.refining-img-01 {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.18)),
        #dbeafe;
}

.refining-img-02 {
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(37, 99, 235, 0.14)),
        #fef3c7;
}

.refining-img-03 {
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(15, 23, 42, 0.14)),
        #dcfce7;
}

.refining-img-04 {
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(37, 99, 235, 0.14)),
        #f3e8ff;
}

.refining-slide h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #111827;
}

.refining-slide p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
}

.refining-slide-btn {
    position: absolute;
    top: 110px;
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #111827;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.refining-slide-prev {
    left: -10px;
}

.refining-slide-next {
    right: -10px;
}

.refining-note-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.refining-note {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 24px;
    padding: 28px;
}

.refining-note h3 {
    margin: 0 0 14px;
    font-size: 22px;
    color: #111827;
}

.refining-note ul {
    margin: 0;
    padding-left: 20px;
    color: #4b5563;
    line-height: 1.9;
}

.refining-note p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

.refining-note-dark {
    background: #111827;
    border-color: #111827;
}

.refining-note-dark h3 {
    color: #fff;
}

.refining-note-dark p {
    color: rgba(255, 255, 255, 0.76);
}

.refining-inquiry {
    padding: 70px 0 90px;
    background: #eef4ff;
}

.refining-inquiry-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.08);
}

.refining-inquiry-box h2 {
    margin: 0 0 10px;
    font-size: 32px;
    letter-spacing: -0.05em;
    color: #111827;
}

.refining-inquiry-box p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.refining-inquiry-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.refining-inquiry .refining-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

@media (max-width: 900px) {
    .refining-hero-box {
        grid-template-columns: 1fr;
    }

    .refining-hero-visual {
        justify-content: flex-start;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .refining-note-grid {
        grid-template-columns: 1fr;
    }

    .refining-inquiry-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .refining-hero {
        padding: 52px 0 42px;
    }

    .refining-hero h1 {
        font-size: 34px;
    }

    .refining-hero p {
        font-size: 15px;
    }

    .refining-actions,
    .refining-inquiry-actions {
        flex-direction: column;
        width: 100%;
    }

    .refining-btn {
        width: 100%;
    }

    .refining-section {
        padding: 52px 0;
    }

    .section-head h2 {
        font-size: 27px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .refining-slide {
        flex-basis: 82%;
    }

    .refining-slide-btn {
        display: none;
    }

    .refining-inquiry-box {
        padding: 26px 20px;
    }

    .refining-inquiry-box h2 {
        font-size: 26px;
    }
}

/* =========================
   Main Refining CTA
   - 기존 메인 히어로/카드 스타일 건드리지 않음
========================= */
.refining-main-cta {
    margin: 24px 0;
    padding: 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.13), transparent 34%),
        linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(37, 99, 235, 0.08)),
        #fff;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.07);
}

.refining-main-cta-text span {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #2563eb;
}

.refining-main-cta h2 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.05em;
    color: #111827;
}

.refining-main-cta p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}
.global-mobile-account-bar {
    display: none;
}

@media (max-width: 768px) {
    body.has-global-mobile-account-bar {
        padding-bottom:
            calc(
                73px
                + env(safe-area-inset-bottom)
            );
    }
    
    .refining-main-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 22px;
    }

    .refining-main-cta .entry-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .refining-main-cta h2 {
        font-size: 24px;
    }
}

/* =========================
   Inquiry Form
========================= */
.inquiry-page {
    background: #f6f8fb;
}

.inquiry-panel {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.inquiry-head {
    margin-bottom: 30px;
}

.inquiry-head h1 {
    margin: 0 0 10px;
    font-size: 34px;
    letter-spacing: -0.04em;
    color: #111827;
}

.inquiry-head p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

.form-field textarea {
    width: 100%;
    min-height: 160px;
    padding: 14px;
    border: 1px solid #d7deea;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-field textarea::placeholder {
    color: #9ca3af;
}

/* =========================
   Inquiry Upload UI
========================= */
.inquiry-upload-box {
    border: 1px solid #dbe7f6;
    background: #f8fbff;
    border-radius: 22px;
    padding: 18px;
}

.inquiry-upload-box input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.inquiry-upload-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 190px;
    padding: 28px 20px;
    border-radius: 18px;
    border: 2px dashed #9db9e8;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-upload-drop:hover {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

.inquiry-upload-drop strong {
    font-size: 18px;
    color: #111827;
}

.inquiry-upload-drop em {
    font-style: normal;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.inquiry-upload-drop b {
    display: inline-flex;
    margin-top: 2px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 900;
}

.upload-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.upload-guide-grid div {
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5eaf2;
}

.upload-guide-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 13px;
}

.upload-guide-grid span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.selected-file-list {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5eaf2;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.selected-file-empty {
    color: #94a3b8;
}

.selected-file-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.selected-file-summary strong {
    font-size: 14px;
}

.selected-file-summary span {
    font-size: 13px;
}

.selected-file-summary.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.selected-file-summary.is-warning {
    background: #fff7ed;
    color: #c2410c;
}

.selected-file-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.selected-file-items li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid #f1f5f9;
}

.selected-file-items li:first-child {
    border-top: 0;
}

.file-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #334155;
}

.file-size {
    color: #94a3b8;
    font-size: 12px;
}

@media (max-width: 768px) {
    .inquiry-upload-box {
        padding: 14px;
    }

    .inquiry-upload-drop {
        min-height: 170px;
        padding: 24px 16px;
    }

    .upload-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selected-file-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .selected-file-items li {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .file-size {
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    .inquiry-panel {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .inquiry-head h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .inquiry-panel {
        padding: 26px 18px;
    }

    .inquiry-head h1 {
        font-size: 25px;
    }
}

.selected-file-items li {
    grid-template-columns: 28px minmax(0, 1fr) auto auto;
}

.file-remove-btn {
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.file-remove-btn:hover {
    background: #fecaca;
}

@media (max-width: 768px) {
    .selected-file-items li {
        grid-template-columns: 28px minmax(0, 1fr) auto;
    }

    .file-size {
        grid-column: 2;
    }

    .file-remove-btn {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}
/*
|--------------------------------------------------------------------------
| Main Mobile Account Buttons
|--------------------------------------------------------------------------
| 메인 화면에만 출력되는 회원명·로그아웃 버튼 복원
*/
@media (max-width: 768px) {
    #siteHeader
    .topbar-inner
    > .mobile-header-account {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 7px;
        margin-left: auto;
        padding: 0;
        white-space: nowrap;
    }

    #siteHeader
    .mobile-header-account
    .mobile-header-user,
    #siteHeader
    .mobile-header-account
    .mobile-header-logout {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        width: auto !important;
        min-width: 68px;
        height: 36px;
        padding: 0 11px !important;

        border: 1px solid #2563eb !important;
        border-radius: 9px !important;
        background: #2563eb !important;

        color: #ffffff !important;
        font-size: 12px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        text-decoration: none !important;

        box-shadow:
            0 5px 12px
            rgba(37, 99, 235, 0.18);

        user-select: none;
        -webkit-user-select: none;
    }

    #siteHeader
    .mobile-header-account
    .mobile-header-logout {
        border-color: #1d4ed8 !important;
        background: #1d4ed8 !important;
    }

    #siteHeader
    .mobile-header-account
    .mobile-header-user:active,
    #siteHeader
    .mobile-header-account
    .mobile-header-logout:active {
        transform: translateY(1px);
    }
}

@media (max-width: 380px) {
    #siteHeader
    .mobile-header-account
    .mobile-header-user,
    #siteHeader
    .mobile-header-account
    .mobile-header-logout {
        min-width: 62px;
        height: 34px;
        padding: 0 8px !important;
        font-size: 11px !important;
    }
}