:root {
    --border-gray-color: #ebebf2;
    --admin-primary-color: #405FD3;
    --admin-tertiary-color: #d63838;
    --error: #dc2626;
    --bg-main: #FAF8F4;
    --bg-card: #FFFFFF;
    --bg-stats: #F5F2EC;
    --bg-cta: #F0EBE0;
    --text-dark: #1E1A14;
    --text-mid: #6B6356;
    --text-muted: #9E9082;
    --text-light: #B8AFA0;
    --gold: #C8A96E;
    --bronze: #CD7F32;
    --border: #E2DCD0;
    --btn-dark: #1E1A14;

}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin-top: 0px;
    font-family: 'Pretendard Variable';
    background-color: #f5f6fb;
    background: var(--bg-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

.login-btn {
    cursor: pointer;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.primary-btn {
    flex: 1;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    padding: 12px 10px;
    background-color: #006EE6;
    color: #FFFFFF;
    border-radius: 7px;
    font-weight: 500;
    border: none;
    font-size: 17px;
    max-height: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.primary-btn.disabled {
    cursor: default;
    background-color: #E5E5E5;
    color: #737278;
}

.primary-btn.disabled:hover {
    background-color: #E5E5E5;
}

.primary-btn:hover {
    background-color: #0255ae;
}

/* Loading Spinner */
.loading-wrap {
    position: absolute;
    background-color: #FFFFFF;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
}

.lds-ring {
    position: absolute;
    /* change color here */
    color: #a7abb1;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lds-ring,
.lds-ring div {
    box-sizing: border-box;
}

.lds-ring {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 35px;
    height: 35px;
    margin: 8px;
    border: 3px solid currentColor;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: currentColor transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 전체 스크롤바 */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

/* 스크롤바의 트랙 (스크롤바가 움직이는 영역) */
::-webkit-scrollbar-track {
    margin-left: 5px;
    background: #ffffff;
    /* 트랙 배경색 */
    border-radius: 10px;
    /* 트랙 모서리 둥글게 */
}

/* 스크롤바의 엄지 (움직이는 부분) */
::-webkit-scrollbar-thumb {
    background: #c4c6c9;
    /* 엄지 배경색 */
    border-radius: 10px;
    /* 엄지 모서리 둥글게 */
}


/* 스크롤바 모서리 (스크롤바 두 개가 만나는 모서리) */
::-webkit-scrollbar-corner {
    background: #5b5858;
}

.page-wrap {
    padding-top: 75px;
    box-sizing: border-box;
}

.page-wrap .error-wrap {
    width: 80%;
    text-align: start;
    display: flex;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 20px;
}

.page-wrap .error-wrap .link {
    margin-top: 15px;
    font-size: 18px;
    color: #86858d;
    line-height: 35px;
}

.page-wrap .error-wrap .logo-wrap img {
    width: 230px;
}

.popup-wrap {
    box-sizing: border-box;
    border-radius: 20px;
    padding: 20px;
    width: 400px;
    height: 300px;
    position: fixed;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFFFFF;
    z-index: 10;
    flex-direction: column;
    box-shadow: 0px 0px 50px 10px #a5a5a550;
}

.popup-head {
    border-bottom: 1px solid #d3d3e6;
    padding-bottom: 10px;
}

.popup-wrap .close-btn {
    cursor: pointer;
    top: 23px;
    right: 20px;
    position: absolute;
    width: 18px;
    height: 18px;
}

.popup-title {
    font-size: 18px;
    font-weight: 600;
}

.popup-overlay {
    display: none;
    content: '';
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0px;
    right: 0px;
    background-color: #00000050;
    z-index: 5;
}

.order-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.delivery-ul {
    min-height: 85vh;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0px;
}

.delivery-li {
    padding: 15px 0px;
    border-top: 1px solid #d3d3e6;
}

.unsupported-order-wrap {
    margin-top: 10px;
    padding: 15px 0px;
    border-top: 1px solid #d3d3e6;
}

.delivery-num {
    padding: 0px 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
}

.delivery-status-wrap {
    gap: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
}

.delivery-status {
    padding: 4px 10px;
    border-radius: 16px;
    box-shadow: 0 0px 2px 0 rgba(0, 0, 0, .05);
    font-size: 15px;
    font-weight: 500;
}

.delivery-status-code-10,
.delivery-status-code-18,
.delivery-status-code-20,
.delivery-status-code-30,
.delivery-status-code-100,
.delivery-status-code-200,
.delivery-status-code-300,
.delivery-status-code-400,
.delivery-status-code-500,
.delivery-status-code-550 {
    background: #dcedfb;
    color: #004f95;
}

.delivery-status-code-700 {
    background: #cdffe0;
    color: #00592e;
}

.delivery-detail-btn {
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    border: none;
    background-color: #0871e2;
    border-radius: 5px;
    padding: 4px 6px;
    transition: background-color 0.2s ease-in-out;
}

.delivery-detail-btn:hover {
    background-color: #5e9fe6;
}

.product-list {
    margin-top: 10px;
}

table,
th,
td {
    border: 1px solid rgb(208, 212, 229);
    border-collapse: collapse;
}

a {
    color: #000;
    text-decoration: none;
}

table {
    width: 100%;
}

th {
    padding: 10px;
    text-align: left;
}

td {
    padding: 10px;
}

h2 {
    margin-top: 0px !important;
    margin-bottom: 5px;
}

h3 {
    margin-top: 15px !important;
    line-height: 0px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.undelivery-product-wrap {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.stock-status-wrap {
    white-space: nowrap;
    padding-left: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
}

.stock-status {
    margin-right: 10px;
    padding: 4px 10px;
    border-radius: 16px;
    box-shadow: 0 0px 2px 0 rgba(0, 0, 0, .05);
    font-size: 14px;
    color: #764400;
    background-color: #fffedc;
    font-weight: 500;
}

.stock-status,
.canceled_product,
.returned_product {
    background: #ffebeb;
    color: #a50000;
}

.stock-in-due-date {
    margin-top: 5px;
    font-size: 13px;
    color: #62666f;
}

.in_stock {
    background: #fffedc;
    color: #764400;
}

.sold_out {
    background: #ffebeb;
    color: #a50000;
}

.wait_stock {
    background: #fffedc;
    color: #764400;
}

.product-wrap {
    cursor: pointer;
    padding: 0px 10px;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.product-wrap .name {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}


.product-wrap img {
    width: 90px;
    height: 90px;
    min-width: 90px;
    object-fit: cover;
    border-radius: 10px;
}

.product-info-wrap {
    display: flex;
    flex-direction: column;
}

.product-info-wrap .option {
    font-size: 13px;
    color: #62666f;
}


.product-info-wrap .option div {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.tracking-list-wrap {
    padding: 15px 10px 0px 0px;
    box-sizing: border-box;
    width: 100%;
    overflow-y: scroll;
}

.delivery-num-wrap {
    margin-top: 10px;
}

.tracking-ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tracking-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.tracking-date {
    font-weight: 400;
    color: #5c5c60;
}

.tracking-status {
    font-weight: 400;
}

.order-num-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.order-num-confirm-guide {
    color: #444347;
}

.order-num-input-wrap {
    white-space: wrap;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    width: 70%;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.order-num-input-wrap input {
    box-sizing: border-box;
    border: none;
    background-color: #e5e6e9;
    padding: 10px;
    outline: none;
    border-radius: 7px;
    font-size: 15px;
    min-width: 250px;
}


.order-num-input {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.order-num-input button {
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    padding: 8px 10px;
    background-color: #006EE6;
    color: #FFFFFF;
    border-radius: 7px;
    font-weight: 500;
    border: none;
    font-size: 15px;
}

.order-num-input button:hover {
    background-color: #0255ae;
}

.partial-delivery-btn-wrap {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    bottom: 10px;
    left: 0px;
    padding: 5px 15px;
    gap: 10px;
}

.partial-delivery-btn-wrap button {
    flex: 1;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    padding: 12px 10px;
    background-color: #006EE6;
    color: #FFFFFF;
    border-radius: 7px;
    font-weight: 500;
    border: none;
    font-size: 17px;
}


.partial-delivery-btn-wrap button:hover {
    background-color: #0255ae;
}

.partial-delivery-btn-wrap .disabled {
    cursor: default;
    background-color: #E5E5E5;
    color: #737278;
}

.partial-delivery-btn-wrap .disabled:hover {
    cursor: default;
    background-color: #E5E5E5;
    color: #737278;
}

.guide {
    text-align: left;
    color: #444347;
}

.inquery-guide-wrap {
    margin-top: 15px;
    padding: 0px 15px;
    font-size: 15px;
}

.inquery-guide-wrap .product-name {
    vertical-align: middle;
}

.inquery-form {
    font-size: 15px;
    margin-top: 25px;
    padding: 0px 15px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.inquery-form label,
legend {
    font-weight: 600;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.inquery-form .input-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inquery-form .input-wrap .radio-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #f3f3f9 inset !important;
    /* 배경 흰색으로 덮기 */
    -webkit-text-fill-color: #000 !important;
    /* 글자색 지정 */
}

.inquery-form .input-wrap input,
.inquery-form .input-wrap textarea {
    padding: 12px 10px;
    border: 1px solid #ebebf2;
    background-color: #f3f3f9;
    border-radius: 7px;
    resize: none;
}


.inquery-form .input-wrap input:focus,
.inquery-form .input-wrap textarea:focus {
    background-color: #f3f3f9;
}

.file-upload-wrap {}

.file-upload-btn-wrap {
    position: relative;
}

.file-upload-wrap input {
    cursor: pointer;
    width: 100%;
    margin-top: 13px;
    opacity: 0;
    z-index: 10;
    height: 40px;
}

.file-upload-wrap .file-upload-btn {
    cursor: pointer;
    position: absolute;
    top: 10px;
    width: 100%;
    padding: 12px 10px;
    box-sizing: border-box;
    border: 1px solid #ebebf2;
    background-color: #f3f3f9;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #68686f
}

.privacy-policy-wrap {
    padding: 0px 15px;
    box-sizing: border-box;
    border: 1px solid #ebebf2;
    border-radius: 7px;
    white-space: pre-wrap;
    font-size: 14px;
    max-height: 200px;
    overflow-y: scroll;
}

.privacy-policy-checkbox-wrap {
    display: flex;
    gap: 5px;
}


.image-preview-container {
    margin-top: 20px;
    flex-wrap: wrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.image-preview-container .image-preview {
    object-fit: cover;
    width: 130px;
    height: 130px;
    border-radius: 7px;
    border: 1px solid #ebebf2;
}

fieldset {
    padding-top: 0px;
    padding-left: 0px;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}


fieldset label {
    font-size: 13px;
    margin-left: 5px;
    font-weight: 400 !important;
}


.inquery-form .input-wrap .required {
    margin-left: 5px;
    padding: 4px;
    font-size: 11px;
    line-height: 13px;
    background-color: rgb(225, 42, 42);
    color: white;
    font-weight: 500;
    border-radius: 5px;
}

.inquery-guide-wrap .product-info {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.product-info .product-name {
    font-size: 19px;
    font-weight: 600;
}

.product-info .product-img {
    object-fit: cover;
    width: 170px;
    height: 170px;
    border-radius: 10px;
}

.inquery-guide-wrap .close-btn {
    cursor: pointer;
    width: 23px;
    height: 23px;
    position: absolute;
    top: 25px;
    right: 20px;
}

.loader {
    display: none;
    width: 30px;
    height: 30px;
    border: 4px solid #FFFFFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotation 0.9s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



@media screen and (max-width: 480px) {
    .page-wrap {
        padding: 20px 10px;
        width: 100% !important;
        min-width: auto;
    }


    .order-num-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .popup-wrap {
        width: 90vw;
        height: 300px;
    }


    .stock-status-wrap {
        position: absolute;
        bottom: 10px;
        right: 0px;
    }

    .undelivery-product-wrap {
        border-bottom: 1px solid #ebebf2;
        padding-bottom: 10px;
    }

    .undelivery-product-wrap:last-child {
        border-bottom: none;
        padding-bottom: 10px;
    }

    .delivery-product a {
        border-bottom: 1px solid #ebebf2;
        padding-bottom: 10px;
    }

    .delivery-product a:last-of-type {
        border-bottom: none;
        padding-bottom: 10;
    }

}

/* Admin */
.admin-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-direction: column;
    left: 50%;
    top: 50%;
    background-color: #FFFFFF;
    padding: 50px 70px;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border-gray-color);

    .logo {
        width: 140px;
    }

    #login-btn {
        margin-top: 30px;
        max-width: 240px;
    }

    .guide {
        text-align: center;
        margin-top: 25px;
        color: #000000;
    }
}

.admin-page-wrap {
    padding-left: 250px;
    padding-right: 20px;
    padding-top: 88px;
    background-color: #FFFFFF;

    h3 {
        font-weight: 500;
        font-size: 19px;
    }

    .table-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        margin-top: 10px;
        padding-top: 10px;
        gap: 5px;
        position: relative;
        color: #898998;

        .help-btn,
        .download-btn {
            cursor: pointer;
            width: 21px;
            height: 21px;
        }

        .help-wrap {
            gap: 15px;
            display: flex;
            position: relative;
        }

        .help-bubble {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: 300px;
            padding: 10px 12px;
            box-sizing: border-box;
            border-radius: 10px;
            border: 1px solid #dfe5f2;
            background-color: #ffffff;
            color: #2f3441;
            font-size: 13px;
            line-height: 1.45;
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
            opacity: 0;
            pointer-events: none;
            transform: translateY(-4px);
            transition: opacity 0.18s ease, transform 0.18s ease;
            z-index: 30;
        }

        .help-bubble::before {
            content: '';
            position: absolute;
            top: -6px;
            right: 7px;
            width: 10px;
            height: 10px;
            background-color: #ffffff;
            border-top: 1px solid #dfe5f2;
            border-left: 1px solid #dfe5f2;
            transform: rotate(45deg);
        }

        .help-wrap.open {
            .help-bubble {
                opacity: 1;
                pointer-events: auto;
                transform: translateY(0);
            }
        }

        .btn-list {
            display: flex;
            gap: 5px;
            align-items: center;
        }

        button {
            max-width: fit-content;
            max-height: fit-content;
            padding: 7px 10px;
            font-size: 15px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            color: #ffffff;
        }

        .primary-btn {
            background-color: var(--admin-primary-color);
        }

        .tertiary-btn {
            background-color: var(--admin-tertiary-color);
        }


    }

    .settlement-summary-cards {
        margin-top: 16px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .summary-card {
        border: 1px solid var(--border-gray-color);
        border-radius: 10px;
        padding: 14px 16px;
        background-color: #ffffff;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
        min-height: 80px;
    }

    .summary-card .summary-label {
        font-size: 16px;
        color: #6b7280;
        font-weight: 500;
    }

    .summary-card .summary-value {
        font-size: 25px;
        font-weight: 650;
        letter-spacing: -0.2px;
        color: #111827;
        white-space: wrap;
        overflow: hidden;
        text-overflow: ellipsis;

        &.period-date {
            font-size: 25px;
        }
    }

    .summary-card.highlight {
        border-color: rgba(64, 95, 211, 0.6);
        background: linear-gradient(180deg, rgba(64, 95, 211, 0.1), rgba(255, 255, 255, 1));
    }

    @media (max-width: 1100px) {
        .settlement-summary-cards {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 620px) {
        .settlement-summary-cards {
            grid-template-columns: 1fr;
        }

        .summary-card .summary-value {
            white-space: normal;
        }
    }

    .table-scroll-wrap {
        margin-top: 15px;
        overflow: auto;
        max-height: calc(100vh - 260px);
        border: 1px solid var(--border-gray-color);
        border-radius: 8px;

        &.settlement-list {
            max-height: calc(100vh - 321px);

            th {
                cursor: default;
            }
        }
    }

    .table-scroll-wrap table {
        margin-top: 0;
        border: none;
        border-collapse: collapse;
    }

    .table-scroll-wrap th,
    .table-scroll-wrap td {
        border: none;
    }

    .table-scroll-wrap tr {
        border-bottom: 1px solid var(--border-gray-color);
        font-size: 15px;
        cursor: pointer;
    }

    .table-scroll-wrap thead {
        border-bottom: 1px solid var(--border-gray-color);
    }

    .table-scroll-wrap thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: #F9FAFC;
        box-shadow: 0 1px 0 var(--border-gray-color);
    }

    .table-scroll-wrap th {
        text-align: center;
        font-size: 15px;
        font-weight: 500;
        color: rgb(103, 103, 118);
        background-color: #F9FAFC;
    }

    .table-scroll-wrap td {
        text-align: center;
    }

    .settlement-status-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 25px;
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid transparent;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
    }

    .settlement-status-badge.is-pending {
        background-color: #fff6e8;
        border-color: #f4c977;
        color: #a76a08;
    }

    .settlement-status-badge.is-completed {
        background-color: #eaf8ef;
        border-color: #9ecfb0;
        color: #1c6b3f;
    }

    .table-scroll-wrap .cell-scroll {
        display: block;
        max-height: 150px;
        overflow-y: auto;
        padding: 2px 0;
    }

    td {
        text-align: center;
    }

    .product-name-td {
        display: flex;
        align-items: center;
        padding-left: 15px;
        gap: 25px;

        img {
            width: 70px;
            height: 70px;
            border-radius: 10px;

            object-fit: cover;
        }
    }
}

.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 24px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.pagination-wrap.pagination-fixed {
    position: fixed;
    bottom: 24px;
    left: 250px;
    justify-content: flex-start;
    margin-top: 0;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 10;
}

.pagination-wrap .pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border: 1px solid var(--border-gray-color);
    border-radius: 5px;
    background-color: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;

    img {
        width: 20px;
        height: 20px;
    }
}

.pagination-last,
.pagination-first {
    border: none;
    background-color: none;
}

.pagination-wrap .pagination-btn:hover {
    background-color: #F3F4F6;
    border-color: #D1D5DB;
}

.pagination-wrap .pagination-btn-disabled {
    background-color: #F3F4F6;
    border-color: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

.pagination-wrap .pagination-btn-disabled img {
    opacity: 0.6;
}

.pagination-wrap .pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border: 1px solid var(--admin-primary-color);
    border-radius: 5px;
    background-color: var(--admin-primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}


.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
    z-index: 999;
}

.modal-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-wrap {
    background-color: #FFFFFF;
    border-radius: 12px;
    min-width: 350px;
    max-width: 500px;
    min-height: 300px;
    padding: 24px 30px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    transform: translateY(10px) scale(0.97);
    opacity: 0;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

#makeshop-login-modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.visible .modal-wrap {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.modal-content p {
    font-size: 14px;
    color: #4B5563;
}

.login-progress-modal {
    min-width: min(420px, calc(100vw - 32px));
    min-height: 0;
    padding: 32px 28px 28px;
    text-align: center;
}

.login-progress-indicator {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 3px solid rgba(190, 162, 122, 0.18);
    border-top-color: var(--gold);
    animation: loginSpin 0.9s linear infinite;
}

.login-progress-modal .modal-content p {
    margin: 0;
    white-space: pre-line;
    line-height: 1.7;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-close-btn {
    border: none;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
}

.modal-close-btn img {
    width: 18px;
    height: 18px;
}

.modal-body {
    margin-top: 4px;
}

.modal-product-info {
    display: flex;
    flex-direction: row;
    gap: 35px;
}

.modal-product-image {
    display: flex;
    justify-content: center;
}

.modal-product-image img {
    width: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-gray-color);
}

.modal-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-row-wrap {
    display: flex;
    gap: 30px;
    align-items: center;
}

.field-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 14px;
}

.field-label {
    width: 150px;
    color: #6B7280;
    font-weight: 500;
    display: flex;
}

.field-value {
    font-size: 16px;
    color: #111827;
}

.field-input {
    box-sizing: border-box;
    width: 100%;
    max-width: 300px;
    padding: 8px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-gray-color);
    font-size: 15px;
}


.account-manage-panel {
    margin-top: 20px;
    max-width: 520px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-gray-color);
    border-radius: 12px;
    padding: 24px 30px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.account-manage-panel .field-row {
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
}

.account-manage-panel .field-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.account-manage-panel .modal-footer {
    margin-top: 24px;
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;

    button {
        flex: 1;
    }
}

.modal-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

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

.modal-btn-secondary:hover {
    background-color: #D1D5DB;
}


.modal-btn-danger {
    background-color: #EF4444;
    color: #FFFFFF;
}

.modal-btn-danger:hover {
    background-color: #DC2626;
}

body.dialog-open {
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.system-dialog-backdrop {
    z-index: 1300;
    background-color: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(6px);
}

.system-dialog-wrap {
    width: min(400px, calc(100vw - 32px));
    min-width: 0;
    min-height: auto;
    overflow: hidden;
    border: 1px solid rgba(64, 95, 211, 0.16);
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px 36px 36px;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(30, 26, 20, 0.2);
    transform: translateY(16px);
    transition: transform 0.2s;
}

.system-dialog-wrap:focus {
    outline: none;
}

.system-dialog-topbar {
    height: 10px;
    background-color: var(--bg-main);
}

.system-dialog-panel {}

.system-dialog-caption {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background-color: #EEF3FF;
    color: #3347A9;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.system-dialog-title {
    margin: 0;
    margin-top: 15px;
    font-size: 20px;
    text-align: center !important;
    font-weight: 700;
    color: #111827;
}

.system-dialog-message {
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 700;
    white-space: pre-line;
    word-break: break-word;
    text-align: center;
}

.system-dialog-footer {}

.system-dialog-footer .modal-btn {
    min-width: 60px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
}


.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-stats);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--text-dark);
    line-height: 1;
    flex-shrink: 0;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Segoe UI Symbol', sans-serif;
    font-weight: 400;
    font-style: normal;
}

.modal-icon[data-icon-name="notice"] {
    color: var(--text-dark);
}

.modal-icon[data-icon-name="question"] {
    background: #F9F3E5;
    color: #8A6520;
}

.modal-icon[data-icon-name="trash"],
.modal-icon[data-icon-name="warning"] {
    background: #FBEAEA;
    color: #D14545;
}

.system-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(12px);
    padding: 12px 24px;
    border-radius: 32px;
    background: var(--text-dark);
    color: #FFFFFF;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(30, 26, 20, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 1350;
    white-space: nowrap;
}

.system-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.system-toast[data-variant="error"] {
    background: rgba(176, 30, 30, 0.96);
}

@media only screen and (max-width: 768px) {
    .system-dialog-panel {
        padding: 15px 13px 13px;
    }

    .system-dialog-title {
        font-size: 20px;
    }

    .system-dialog-footer .modal-btn {
        flex: 1;
        min-width: 0;
    }
}

.admin-header {
    width: 100%;
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 20px 48px;
    box-sizing: border-box;
    gap: 24px;
    background: var(--bg-main);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bg-main);
    transition: border-color 0.3s ease, background 0.3s ease;

    .admin-header-title-wrap {
        display: flex;
        align-items: center;
        gap: 16px;
        min-width: 0;
        flex: 1;
    }

    .admin-header-brand-block {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    h2 {
        color: var(--text-dark);
        font-weight: 700;
        font-size: 22px;
        line-height: 1.15;
        letter-spacing: -0.02em;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    a {
        font-size: 13px;
        color: var(--text-mid);
        text-decoration: none;
        letter-spacing: 0.04em;
        transition: color 0.2s;

        &:hover {
            color: var(--text-dark);
        }
    }

    .admin-menu-toggle {
        display: none;
        width: 44px;
        height: 44px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background-color: rgba(255, 255, 255, 0.72);
        padding: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    .admin-menu-toggle:hover {
        border-color: var(--text-dark);
        background-color: #ffffff;
    }

    .admin-menu-toggle:focus-visible {
        outline: none;
        border-color: var(--text-dark);
        box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.18);
    }

    .admin-menu-toggle span {
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background-color: var(--text-dark);
    }

    .admin-header-controls {
        display: flex;
        align-items: center;
        gap: 32px;
        flex-shrink: 0;
    }

    .ambassador-profile-wrap {
        position: relative;

        .profile-trigger {
            min-height: 35px;
            border: 1.5px solid var(--text-dark);
            border-radius: 24px;
            background-color: transparent;
            color: var(--text-dark);
            padding: 8px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
        }

        .profile-trigger:hover {
            background-color: var(--text-dark);
            color: #ffffff;
        }

        .profile-trigger:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.18);
        }

        .profile-name {
            max-width: 140px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.02em;
            display: flex;
            align-items: center;
        }

        .dropdown-caret {
            width: 8px;
            height: 8px;
            border-right: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
            transform: rotate(45deg) translateY(-2px);
            transition: transform 0.2s ease;
            flex-shrink: 0;
        }

        .dropdown-wrap {
            opacity: 0;
            pointer-events: none;
            transform: translateY(8px);
            transition: opacity 0.2s ease, transform 0.2s ease;
            position: absolute;
            top: calc(100% + 12px);
            right: 0;
            width: 220px;
            padding: 8px;
            border: 1px solid var(--border);
            border-radius: 18px;
            background-color: rgba(255, 255, 255, 0.96);
            box-shadow: 0 18px 40px rgba(30, 26, 20, 0.1);
            backdrop-filter: blur(10px);
            z-index: 12;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .dropdown-item {
            width: 100%;
            border: none;
            background: none;
            color: var(--text-dark);
            font-size: 13px;
            font-weight: 500;
            padding: 11px 14px;
            border-radius: 12px;
            text-align: left;
            cursor: pointer;
            box-sizing: border-box;
            text-decoration: none;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .dropdown-item:hover {
            background-color: var(--bg-main);
            color: var(--text-dark);
        }

        .dropdown-item.danger {
            color: #b25540;
        }

        .dropdown-item.danger:hover {
            background-color: #fff4ee;
            color: #9a402b;
        }

        &.open {
            .profile-trigger {
                background-color: var(--text-dark);
                color: #ffffff;
            }

            .dropdown-caret {
                transform: rotate(-135deg) translateY(2px);
            }

            .dropdown-wrap {
                opacity: 1;
                pointer-events: auto;
                transform: translateY(0);
            }
        }
    }

    .language-select-wrap {
        position: relative;
        width: 100%;
        margin: 4px 0 0;
        padding-top: 8px;
        border-top: 1px solid var(--border);

        .language-trigger {
            width: 100%;
            min-width: 0;
            border: none;
            border-radius: 12px;
            background-color: transparent;
            color: var(--text-mid);
            padding: 11px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            cursor: pointer;
            transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
        }

        .language-trigger:hover {
            background-color: var(--bg-main);
            color: var(--text-dark);
        }

        .language-trigger:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.18);
        }

        .language-current {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.04em;
        }

        .language-dropdown-caret {
            width: 8px;
            height: 8px;
            border-right: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
            transform: rotate(45deg) translateY(-2px);
            transition: transform 0.2s ease;
            flex-shrink: 0;
        }

        .language-dropdown-wrap {
            opacity: 0;
            pointer-events: none;
            max-height: 0;
            overflow: hidden;
            transform: translateY(-2px);
            transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease;
            width: 100%;
            padding: 4px 0 0 10px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .dropdown-item {
            width: 100%;
            border: none;
            background: none;
            color: var(--text-mid);
            font-size: 13px;
            font-weight: 500;
            padding: 9px 10px;
            border-radius: 10px;
            text-align: left;
            cursor: pointer;
            box-sizing: border-box;
            text-decoration: none;
        }

        .dropdown-item:hover {
            background-color: var(--bg-main);
            color: var(--text-dark);
        }

        .dropdown-item.selected {
            background-color: var(--bg-main);
            color: var(--text-dark);
            font-weight: 600;
        }

        &.open {
            .language-dropdown-caret {
                transform: rotate(-135deg) translateY(2px);
            }

            .language-dropdown-wrap {
                opacity: 1;
                pointer-events: auto;
                transform: translateY(0);
                max-height: 180px;
            }
        }
    }
}

.admin-header.scrolled {
    border-color: var(--border);
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(8px);
}


.menu-bar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 90;
}

.menu-bar-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.menu-bar {
    padding: 15px 14px;
    box-sizing: border-box;
    z-index: 100;
    background-color: #F9FAFC;
    width: 230px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    border-right: 1px solid var(--border-gray-color);
    font-family: "DM Sans";
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.24s ease;

    .menu-list-wrap {
        width: 100%;
        margin-top: 30px;
        text-decoration: none;
        list-style: none;
        padding: 10px;

        .menu-list {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .menu-group-label {
            color: #9fa1b3;
            font-weight: 500;
            font-size: 12px;
        }

        .menu-group-label {
            margin-top: 0px;
            margin-bottom: 10px;
        }



        a {
            display: flex;
            align-items: center;
            gap: 8px;

            img {
                width: 18px;
            }

            padding: 8px;
            border-radius: 7px;

            font-size: 15px;
            color: #363A43;
            font-weight: 600;

            &:hover {
                background-color: #E8EEFA;
            }

            &.selected {

                img {
                    filter: invert(13%) sepia(99%) saturate(3313%) hue-rotate(231deg) brightness(92%) contrast(92%);
                }

                color: #1d38b1;
                background-color: #E8EEFA;
            }
        }
    }


    .logo {
        margin-top: 12px;
        width: 160px;
    }
}

@media only screen and (max-width: 900px) {
    body.admin-menu-open {
        overflow: hidden;
    }

    .admin-login-wrap {
        width: min(420px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        padding: 32px 20px;
        box-sizing: border-box;
    }

    .admin-login-wrap .logo {
        width: min(180px, 60vw);
    }

    .admin-login-wrap #login-btn {
        width: 100%;
        max-width: none;
    }

    .admin-page-wrap {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 84px;
    }

    .admin-header {
        min-height: 68px;
        padding: 12px 16px;

        .admin-header-brand-block {
            gap: 4px;
        }

        h2 {
            font-size: 18px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .admin-menu-toggle {
            display: inline-flex;
            flex-shrink: 0;
        }

        .admin-header-controls {
            gap: 8px;
        }

        .ambassador-profile-wrap {
            .profile-trigger {
                min-width: 0;
                padding: 8px 14px;
            }

            .profile-name {
                max-width: 92px;
            }
        }

        .language-select-wrap {
            .language-trigger {
                min-width: 92px;
                padding: 10px 12px;
            }
        }
    }

    .menu-bar {
        width: min(280px, 82vw);
        transform: translateX(-100%);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    }

    body.admin-menu-open .menu-bar {
        transform: translateX(0);
    }

    .admin-page-wrap .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-page-wrap .table-header .help-wrap,
    .admin-page-wrap .table-header .btn-list {
        width: 100%;
        justify-content: flex-end;
    }

    .admin-page-wrap .table-header .help-bubble {
        width: min(300px, calc(100vw - 48px));
    }

    .table-scroll-wrap,
    .table-scroll-wrap.settlement-list {
        max-height: none;
    }

    .product-name-td {
        gap: 14px;
        padding-left: 0;
        align-items: flex-start;
    }

    .product-name-td img {
        width: 56px;
        height: 56px;
    }

    .pagination-wrap.pagination-fixed {
        position: static;
        left: auto;
        bottom: auto;
        justify-content: center;
        padding: 16px 0 4px;
        border-radius: 0;
    }

    .modal-wrap {
        min-width: 0;
        min-height: 0;
        width: min(100%, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        padding: 20px 18px;
    }

    .modal-product-info {
        flex-direction: column;
        gap: 18px;
    }

    .modal-product-image img {
        width: min(100%, 280px);
    }

    .modal-fields {
        gap: 14px;
    }

    .field-row-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .field-label {
        width: auto;
    }

    .field-input {
        max-width: none;
    }

    .modal-footer {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .modal-btn {
        flex: 1 1 140px;
    }

    .account-info-wrap {
        padding: 20px 18px;
    }

    .shop-manage-toolbar {
        align-items: flex-start;
        gap: 12px;
    }

    .my-shop-url {
        word-break: break-all;
        line-height: 1.6;
    }

    .shop-manage-panel {
        padding: 20px 18px;
    }
}

.shop-manage-container {
    margin-top: 18px;
    width: 100%;
}

.shop-manage-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;

    .shop-manage-my-shop-title {
        font-size: 18px;
        font-weight: 500;
    }

    .my-shop-url {
        font-size: 15px;
        color: #7f8694;
    }
}

.shop-manage-link-btn {
    background-color: none;
    background: none;
    border: none;
    padding: 0px;

    img {
        cursor: pointer;
        width: 20px;
        opacity: 0.6;

        &:hover {
            opacity: 0.8;
        }
    }
}

.shop-manage-panel {
    padding: 24px 28px;
    border: 1px solid var(--border-gray-color);
    border-radius: 12px;
    background-color: #ffffff;
}

.shop-manage-panel-title {
    font-size: 22px;
    font-weight: 650;
    color: #111827;
}

.shop-manage-panel-desc {
    margin-top: 6px;
    color: #6b7280;
    font-size: 14px;
}

.shop-layout-option-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.shop-layout-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid #dfe5f2;
    border-radius: 10px;
    background-color: #fbfcff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.shop-layout-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shop-layout-option:hover {
    border-color: #c3cde8;
}

.shop-layout-option.selected {
    border-color: #405FD3;
    background-color: #eef3ff;
    box-shadow: 0 6px 16px rgba(64, 95, 211, 0.14);
}

.shop-layout-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.shop-layout-name {
    font-size: 16px;
    font-weight: 650;
    color: #111827;
}

.shop-layout-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background-color: #405FD3;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.shop-layout-desc {
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}

.shop-layout-example {
    margin-top: 2px;
    padding: 15px;
    border: 1px solid #e5eaf6;
    border-radius: 8px;
    background-color: #ffffff;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 60px));
    gap: 6px;
    align-content: center;
    justify-content: center;
}

.shop-layout-example-item {
    width: 100%;
    display: block;
    height: 80px;
    background: #f2f3fa;
    border: 1px solid #d7deef;
}

.shop-layout-example-item-wide {
    grid-column: span 2;
}

.shop-layout-preview {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px dashed #c9d3eb;
    border-radius: 10px;
    background-color: #f8fbff;
}

.shop-layout-preview-label {
    color: #6b7280;
    font-size: 13px;
}

.shop-layout-preview-value {
    margin-top: 6px;
    color: #111827;
    font-size: 17px;
    font-weight: 650;
}

.shop-layout-preview[data-layout="grid"] {
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
}

.shop-layout-preview[data-layout="magazine"] {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.shop-layout-preview[data-layout="compact"] {
    background: linear-gradient(180deg, #f8fbff 0%, #edf2fc 100%);
}

@media (max-width: 980px) {
    .shop-layout-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .shop-layout-example {
        grid-template-columns: repeat(2, minmax(0, 60px));
    }

    .shop-layout-example .shop-layout-example-item:nth-child(n + 7) {
        display: none;
    }
}

@media (max-width: 680px) {
    .shop-manage-toolbar {
        justify-content: flex-start;
    }

    .shop-manage-link-btn {
        width: 100%;
    }

    .shop-layout-option-grid {
        grid-template-columns: 1fr;
    }

}

.table-wrap {
    width: 100%;
    min-width: 0;
}

.account-info-wrap {
    padding: 24px 30px;
    border: 1px solid var(--border-gray-color);
    border-radius: 12px;
    background-color: #FFFFFF;
}

.account-info-wrap .modal-fields {
    gap: 18px;
}

.account-info-wrap .field-input {
    max-width: 420px;
}

.account-info-wrap .account-textarea {
    min-height: 108px;
    resize: vertical;
}

.account-info-wrap .modal-footer {
    margin-top: 24px;
}

@media only screen and (max-width: 768px) {
    .page-wrap {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        min-width: 0;
        padding: 16px;
    }

    .page-wrap .error-wrap {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding-top: 48px;
    }

    .page-wrap .error-wrap .logo-wrap img {
        width: min(220px, 60vw);
    }
}

@media only screen and (max-width: 640px) {
    .admin-header {
        gap: 10px;

        h2 {
            font-size: 16px;
        }

        .ambassador-profile-wrap {
            .profile-trigger {
                padding: 8px 12px;
            }

            .profile-name {
                max-width: 72px;
            }
        }
    }

    .summary-card {
        min-height: 72px;
        padding: 12px 14px;
    }

    .summary-card .summary-label {
        font-size: 14px;
    }

    .summary-card .summary-value,
    .summary-card .summary-value.period-date {
        font-size: 20px;
    }

    .table-scroll-wrap thead th,
    .table-scroll-wrap td {
        font-size: 13px;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-btn {
        width: 100%;
        flex: 1 1 auto;
    }
}

@media only screen and (max-width: 520px) {
    .admin-login-wrap {
        left: 12px;
        top: 12px;
        transform: none;
        width: calc(100vw - 24px);
        max-width: none;
    }

    .admin-page-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .admin-header {
        min-height: 64px;
        padding: 10px 12px;
    }

    .admin-page-wrap .table-header .help-wrap {
        justify-content: flex-start;
    }

    .admin-page-wrap .table-header .help-bubble {
        left: 0;
        right: auto;
        width: min(280px, calc(100vw - 32px));
    }

    .settlement-status-badge {
        min-width: 0;
        padding: 4px 8px;
    }
}


.header-brand {
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 500;
    color: var(--text-muted);
}

.header-brand span {
    color: var(--gold);
}

.header-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header-nav a {
    font-size: 13px;
    color: var(--text-mid);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--text-dark);
}

.nav-login {
    border: 1.5px solid var(--text-dark);
    border-radius: 24px;
    padding: 8px 22px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.roompacker-logout-btn {
    border: none;
    border-radius: none;
    padding: 8px;
    color: var(--text-mid);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.nav-login:hover {
    background: var(--text-dark);
    color: #fff;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(auto, 560px) 1fr;
    align-items: center;
    height: 450px;
    max-width: 1500px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-text {
    animation: fadeUp 0.7s ease both;
    position: relative;
    z-index: 2;
    padding: 60px 48px 60px 48px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-btn-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btn-dark);
    color: #fff;
    border: none;
    border-radius: 32px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.02em;
    text-align: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 26, 20, 0.18);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--text-dark);
    border-radius: 32px;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    justify-content: center;
}

.btn-outline:hover {
    background: var(--text-dark);
    color: #fff;
}

/* PC 히어로 이미지 - 텍스트에 밀착, 좌측 그라데이션 페이드 */
.hero-image {
    animation: fadeUp 0.7s 0.15s ease both;
    position: relative;

    height: 450px;
    background: #E8E0D0;
}

.hero-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* 좌측 20% 그라데이션 페이드아웃 오버레이 */
.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right,
            var(--bg-main) 0%,
            rgba(250, 248, 244, 0.6) 5%,
            transparent 10%);
    pointer-events: none;
}


/* ─── STATS ─── */
.stats-wrap {
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 48px;
}

.stats-inner {
    background: var(--bg-stats);
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    animation: fadeUp 0.7s 0.25s ease both;
}

.stat-item {
    padding: 28px 32px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-note {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 6px;
}

/* ─── STEPS SECTION ─── */
.steps-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 48px 56px;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-sub {
    font-size: 14px;
    color: var(--text-muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: start;
    overflow: visible;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    animation: fadeUp 0.6s ease both;
    z-index: 1;
}

.step-card:nth-child(1) {
    animation-delay: 0.1s;
    z-index: 5;
}

.step-card:nth-child(2) {
    animation-delay: 0.2s;
    z-index: 4;
}

.step-card:nth-child(3) {
    animation-delay: 0.3s;
    z-index: 3;
}

.step-card:nth-child(4) {
    animation-delay: 0.4s;
    z-index: 2;
}

.step-card:nth-child(5) {
    animation-delay: 0.5s;
    z-index: 1;
}

.step-img-wrap {
    width: 100%;
    aspect-ratio: 301 / 360;
    margin-bottom: 16px;
    position: relative;
    overflow: visible;
}

.step-img-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
}

.step-img-wrap img {
    border-radius: 14px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.step-card:hover .step-img-wrap img {
    transform: scale(1.04);
}

.step-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.step-img-placeholder.c1 {
    background: linear-gradient(135deg, #f0e8d8, #e0d4c0);
}

.step-img-placeholder.c2 {
    background: linear-gradient(135deg, #e8f0e0, #d4e4c0);
}

.step-img-placeholder.c3 {
    background: linear-gradient(135deg, #e0e8f4, #c8d8ec);
}

.step-img-placeholder.c4 {
    background: linear-gradient(135deg, #f4e8e0, #e8d0c4);
}

.step-img-placeholder.c5 {
    background: linear-gradient(135deg, #f0ede0, #e0d8c4);
}

.step-arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 24px;
    height: 24px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: var(--text-muted);
}

.step-arrow img {
    opacity: 0.7;
}

.step-card:last-child .step-arrow {
    display: none;
}

.step-num {
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 500;
}

.step-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── STICKY CTA WRAP ─── */
#cta-sticky-wrap {
    position: sticky;
    top: 74px;
    /* JS로 동적 갱신 */
    z-index: 90;
    background: var(--bg-main);
    padding-bottom: 0;
    transition: box-shadow 0.3s;
}

#cta-sticky-wrap.stuck {
    box-shadow: 0 4px 20px rgba(30, 26, 20, 0.10);
}

/* ─── CTA BANNER ─── */
.cta-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 48px;
}

.cta-inner {
    background: var(--bg-cta);
    border-radius: 20px;
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    animation: fadeUp 0.7s ease both;
}

.cta-text-block .cta-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.cta-text-block .cta-sub {
    font-size: 14px;
    color: var(--text-mid);
}

/* ─── FOOTER ─── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.footer-powered {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 0.06em;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
}

/* ─── FOOTER LANG ─── */
.footer-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.footer-lang label {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

.footer-lang select {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 11px;
    color: var(--text-mid);
    background: var(--bg-stats);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 24px 4px 8px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239E9082' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color 0.2s;
}

.footer-lang select:hover {
    border-color: var(--gold);
}

.apply-modal-backdrop {
    padding: 24px;
    background: rgba(34, 28, 22, 0.36);
    backdrop-filter: blur(4px);
    z-index: 1200;
}

.apply-modal {
    position: relative;
    width: min(500px, 100%);
    max-height: min(88vh, 920px);
    overflow-y: auto;
    padding: 34px 34px 30px;
    border-radius: 28px;
    border: 1px solid rgba(143, 125, 108, 0.22);
    background: #FFFFFF;
    box-shadow: 0 24px 64px rgba(30, 26, 20, 0.18);
    text-align: center;
}

.apply-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.apply-modal-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(143, 125, 108, 0.14);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.apply-modal-title {
    margin: 18px 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.apply-modal-subtitle {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 28px;
    color: var(--text-mid);

    strong {
        color: var(--gold);
        font-weight: 700;
    }
}

.apply-form {
    margin-top: 28px;
}

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

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

.apply-field-full {
    grid-column: 1 / -1;
}

.apply-field span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.apply-field input,
.apply-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 16px;
    border: 1px solid rgba(139, 121, 103, 0.16);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-dark);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    resize: none;
}

.apply-field input::placeholder,
.apply-field textarea::placeholder {
    color: #a69688;
}

.apply-field input:focus,
.apply-field textarea:focus {
    border-color: rgba(155, 122, 77, 0.58);
    box-shadow: 0 0 0 4px rgba(188, 154, 112, 0.14);
    background: #fffdf9;
}

.apply-field input[readonly],
.apply-field textarea[readonly] {
    background: rgba(246, 240, 232, 0.92);
    color: var(--text-mid);
}

.apply-form-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--text-mid);
    font-size: 12px;
    line-height: 1.7;
}

.apply-form-actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.approved-modal {
    max-width: 360px;
}

.approved-actions {
    button {
        width: 100%;
    }
}

.check-member-actions {
    justify-content: center;
    gap: 10px;
}

.existing-apply-actions {
    margin-top: 36px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.existing-apply-actions .apply-action-secondary,
.existing-apply-actions .apply-action-primary,
.existing-apply-actions .apply-action-tertiary {
    flex: 1 1 120px;
    min-width: 0;
}



.apply-action-tertiary {
    min-width: 140px;
    justify-content: center;
}

.apply-action-secondary,
.apply-action-primary {
    min-width: 140px;
    justify-content: center;
}

.apply-action-primary:disabled,
.apply-action-secondary:disabled,
.apply-action-tertiary:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.apply-login-modal {
    width: min(420px, 100%);
    max-width: 420px;
}

.apply-login-card {
    margin-top: 24px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(175, 146, 108, 0.18);
    background:
        radial-gradient(circle at top right, rgba(214, 190, 154, 0.16), transparent 38%),
        linear-gradient(135deg, rgba(255, 251, 244, 0.98), rgba(250, 243, 234, 0.96));
}

.apply-login-card-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold);
}

.apply-login-card-copy {
    margin: 12px 0 0;
    color: var(--text-mid);
    font-size: 14px;
    line-height: 1.7;
}

.apply-login-actions {
    justify-content: space-between;
    margin-top: 50px;
}

/* ─── ANIMATIONS ─── */
@keyframes loginSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
    .admin-header {
        padding: 16px 24px;
    }

    .admin-header-controls {
        gap: 16px;
    }

    /* .admin-header-controls a:not(.nav-login) {
        display: none;
    } */

    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: auto;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-image {
        order: -1;
        aspect-ratio: 16/9;
    }

    .stats-wrap {
        padding: 0 24px;
        margin-bottom: 32px;
    }

    .stats-inner {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-value {
        font-size: 26px;
    }

    .steps-section {
        padding: 32px 24px 40px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step-card {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        background: var(--bg-card);
        border-radius: 14px;
        padding: 16px;
        border: 1px solid var(--border);
    }

    .step-img-wrap {
        width: 64px;
        height: 64px;
        aspect-ratio: 1;
        flex-shrink: 0;
        margin-bottom: 0;
        border-radius: 10px;
    }

    .step-arrow {
        position: static;
        transform: none;
        display: none;
    }

    .step-info {
        flex: 1;
    }

    #cta-sticky-wrap {
        top: 64px;
      }

    .cta-wrap {
        padding: 12px 24px;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .apply-modal {
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .apply-login-modal {
        width: 100%;
    }

    .apply-modal-title {
        font-size: 25px;
    }

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

    .apply-field-full {
        grid-column: auto;
    }

    .apply-form-actions {
        flex-direction: column;
    }

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

    .site-footer {
        padding: 24px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .existing-apply-actions .apply-action-secondary,
    .existing-apply-actions .apply-action-primary,
    .existing-apply-actions .apply-action-tertiary {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .stat-item:nth-child(1) {
        border-bottom: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }

    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .stat-item:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* MY MENU DROPDOWN ── */
.nav-my {
    position: relative;
}

.nav-my-trigger {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-stats);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 7px 16px;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    user-select: none;
}

.nav-my-trigger:hover,
.nav-my.open .nav-my-trigger {
    background: var(--bg-cta);
    border-color: var(--gold);
}

.trigger-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.trigger-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.22s;
}

.nav-my.open .trigger-arrow {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    transform: translateY(-4px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(30, 26, 20, 0.10);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    z-index: 200;
}

.nav-my.open .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown a,
.nav-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark) !important;
    font-family: inherit;
    background: transparent;
    border: none;
    text-align: left;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.nav-dropdown a:hover,
.nav-dropdown a.active,
.nav-dropdown button:hover {
    background: var(--bg-stats);
}

.nav-dropdown a.active {
    font-weight: 700;
}

.menu-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}


/* About Page */

/* ═══════════════════════════
       PAGE HERO
    ═══════════════════════════ */
.page-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 48px 48px;
    text-align: center;
    animation: fadeUp 0.7s ease both;
}

.page-hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 16px;
}

.page-hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.page-hero-sub {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 32px;
}

.page-hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* KPI 바 */
.kpi-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 56px;
    animation: fadeUp 0.7s 0.15s ease both;
}

.kpi-inner {
    background: var(--bg-stats);
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.kpi-item {
    padding: 28px 32px;
    border-right: 1px solid var(--border);
}

.kpi-item:last-child {
    border-right: none;
}

.kpi-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1;
}

.kpi-note {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 6px;
}

/* ═══════════════════════════
         SECTION COMMON
      ═══════════════════════════ */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 48px;
    border-top: 1px solid var(--border);
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-sub {
    font-size: 14px;
    color: var(--text-muted);
}

/* ═══════════════════════════
         HOW TO JOIN — 4 STEPS
      ═══════════════════════════ */
.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.how-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    animation: fadeUp 0.6s ease both;
    transition: box-shadow 0.2s, transform 0.2s;
}

.how-card:nth-child(1) {
    animation-delay: 0.1s;
}

.how-card:nth-child(2) {
    animation-delay: 0.2s;
}

.how-card:nth-child(3) {
    animation-delay: 0.3s;
}

.how-card:nth-child(4) {
    animation-delay: 0.4s;
}

.how-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(30, 26, 20, 0.08);
}

.how-step-num {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-light);
    margin-bottom: 12px;
}

.how-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-stats);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.how-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.how-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ═══════════════════════════
         GRADE CARDS
      ═══════════════════════════ */
.grade-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.grade-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 22px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    animation: fadeUp 0.6s ease both;
}

.grade-card:nth-child(1) {
    animation-delay: 0.1s;
}

.grade-card:nth-child(2) {
    animation-delay: 0.2s;
}

.grade-card:nth-child(3) {
    animation-delay: 0.3s;
}

.grade-card:nth-child(4) {
    animation-delay: 0.4s;
}

.grade-card:nth-child(5) {
    animation-delay: 0.5s;
}

.grade-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(30, 26, 20, 0.08);
}

.grade-card.featured {
    border-color: var(--bronze);
    border-width: 2px;
}

.feat-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bronze);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.06em;
}

.grade-dot-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}

.grade-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.grade-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.grade-pct {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    line-height: 1;
}

.grade-pct sup {
    font-size: 18px;
    font-weight: 700;
}

.grade-pct-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    margin-bottom: 16px;
}

.grade-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 14px 0;
}

.grade-info-list {
    list-style: none;
}

.grade-info-list li {
    font-size: 12px;
    color: var(--text-mid);
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.grade-info-list li::before {
    content: '·';
    color: var(--gold);
    font-size: 14px;
    line-height: 1.2;
    flex-shrink: 0;
}

.grade-info-list b {
    font-weight: 700;
    color: var(--text-dark);
}

/* 등급 흐름 */
.grade-flow {
    background: var(--bg-stats);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gf-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.gf-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gf-cond {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.gf-arrow {
    color: var(--text-light);
    font-size: 14px;
}

.gf-note {
    width: 100%;
    font-size: 11px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 8px;
}

/* ═══════════════════════════
         REWARD
      ═══════════════════════════ */
.reward-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.reward-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.reward-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 26, 20, 0.07);
}

.reward-type-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reward-type-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.rtl-cash {
    color: var(--gold);
}

.rtl-point {
    color: #3B7A4A;
}

.reward-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.reward-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.85;
    margin-top: 25px;
    white-space: pre-wrap;
}

.reward-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-top: 14px;
}

.pill-cash {
    background: #FDF3D0;
    color: #8A6500;
}

.pill-point {
    background: #E6F4EA;
    color: #2A6B39;
}

/* ═══════════════════════════
         FAQ
      ═══════════════════════════ */
.faq-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.faq-q {
    padding: 18px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.22s, border-color 0.2s, color 0.2s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    border-color: var(--gold);
    color: var(--gold);
}

.faq-a {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.85;
    padding-bottom: 18px;
    display: none;
    white-space: pre-wrap;
    flex-wrap: wrap;
}

.faq-item.open .faq-a {
    display: flex;
}

.about-wrapper {
    border-top: 2px solid var(--border);
    margin-top: 16px;
}

/* ═══════════════════════════
         ANIMATIONS
      ═══════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════
         RESPONSIVE — 태블릿 (900px)
      ═══════════════════════════ */
@media (max-width: 900px) {
    .admin-header {
        min-height: 50px;
    }

    .landing-page {
        padding: 50px 0px 0px 0px;
    }

    .site-header {
        padding: 16px 24px;
    }

    .header-nav {
        gap: 16px;
    }

    .header-nav a:not(.nav-login) {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 0;
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .hero-text {
        padding: 32px 24px 24px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 34px;
    }

    /* 모바일에서 이미지를 텍스트 위에 배치 */
    .hero-image {
        order: -1;
        height: auto;
        min-height: auto;
        aspect-ratio: 16 / 9;
    }

    /* 모바일에서 그라데이션 오버레이 제거 */
    .hero-image::before {
        display: none;
    }


    .page-hero {
        padding: 40px 24px 32px;
    }

    .page-hero-title {
        font-size: 30px;
    }

    .kpi-bar {
        padding: 0 24px 40px;
    }

    .kpi-inner {
        grid-template-columns: 1fr;
    }

    .kpi-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
    }

    .kpi-item:last-child {
        border-bottom: none;
    }

    .kpi-value {
        font-size: 26px;
    }

    .content-section {
        padding: 40px 24px;
    }

    .how-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

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

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

    .site-footer {
        padding: 24px;
    }


    .stats-wrap {
        padding: 0 24px;
        margin-bottom: 32px;
    }

    .stats-inner {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-value {
        font-size: 26px;
    }

    .steps-section {
        padding: 32px 24px 40px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step-card {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        background: var(--bg-card);
        border-radius: 14px;
        padding: 16px;
        border: 1px solid var(--border);
    }

    /* 모바일 step 이미지: 정사각형 썸네일 */
    .step-img-wrap {
        width: 72px;
        height: 72px;
        aspect-ratio: 1;
        flex-shrink: 0;
        margin-bottom: 0;
        border-radius: 10px;
    }

    .step-arrow {
        display: none;
    }

    .step-info {
        flex: 1;
    }

    .site-footer {
        padding: 24px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .footer-right {
        justify-content: center;
    }
}

/* ═══════════════════════════
         RESPONSIVE — 모바일 (600px)
      ═══════════════════════════ */
@media (max-width: 600px) {
    .kpi-inner {
        grid-template-columns: 1fr 1fr;
    }

    .kpi-item:nth-child(1) {
        border-bottom: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }

    .kpi-item:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .kpi-item:nth-child(3) {
        grid-column: 1 / -1;
    }

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

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

    .stats-inner {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item:nth-child(1) {
        border-bottom: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }

    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .stat-item:nth-child(3) {
        grid-column: 1 / -1;
    }
}


/* Apply Page */

/* ── FORM WRAP ── */
.form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 48px 64px;
    animation: fadeUp 0.7s 0.1s ease both;

    .sub {
        text-align: center;
        font-size: 15px;
        color: var(--text-mid);
        line-height: 1.8;
        margin-bottom: 32px;
    }
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}

.field-grid,
.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.field-grid .field,
.channel-grid .field {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 32px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.channel-card {
    margin-bottom: 28px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(245, 242, 236, 0.65) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.channel-card-head {
    margin-bottom: 18px;
}

.channel-card-head .field-label {
    margin-bottom: 4px;
}

/* ── FORM FIELDS ── */
.field {
    margin-bottom: 24px;
}

.field:last-of-type {
    margin-bottom: 0;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 7px;
}

.field-label .required {
    color: var(--gold);
    margin-left: 3px;
    font-size: 12px;
}

.field-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 7px;
    display: block;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-main);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-light);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--gold);
    background: var(--bg-card);
}

.field input.is-error,
.field textarea.is-error,
.field select.is-error {
    border-color: var(--error);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
}

.field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E9082' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.field .field-textarea-compact {
    min-height: 110px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-unit input {
    flex: 1;
}

.input-unit {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.field-error {
    font-size: 11px;
    color: var(--error);
    margin-top: 5px;
    display: none;
}

.field-error.visible {
    display: block;
}

/* 이메일 일치 아이콘 */
.field-status {
    font-size: 11px;
    margin-top: 5px;
    display: none;
}

.field-status.match {
    display: block;
    color: var(--success);
}

.field-status.no-match {
    display: block;
    color: var(--error);
}

/* 구분선 */
.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* 안내 박스 */
.notice-box {
    background: var(--bg-stats);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.notice-box p {
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.8;
}

.notice-box p+p {
    margin-top: 4px;
}

/* 글자수 카운터 */
.textarea-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.char-count {
    font-size: 11px;
    color: var(--text-muted);
}

.char-count.warn {
    color: var(--error);
}

/* 읽기 전용 필드 */
.field input[readonly] {
    background: var(--bg-stats);
    color: var(--text-mid);
    cursor: default;
    border-color: var(--border);
}

.field input[readonly]:focus {
    border-color: var(--border);
    background: var(--bg-stats);
}

.readonly-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-stats);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.04em;
}

/* 제출 버튼 영역 */
.form-actions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--btn-dark);
    color: #fff;
    border: none;
    border-radius: 32px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Pretendard Variable', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.02em;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 26, 20, 0.18);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-back {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.form-back:hover {
    color: var(--text-dark);
}

/* ── 완료 화면 ── */
.complete-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 48px 64px;
    display: none;
    animation: fadeUp 0.7s ease both;
}

.complete-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
}

.complete-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-stats);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px;
}

.complete-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.complete-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .form-wrap {
        padding: 0 24px 56px;
    }

    .form-card {
        padding: 28px 24px;
    }

    .field-grid,
    .channel-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .channel-card {
        padding: 18px;
    }

    .complete-wrap {
        padding: 0 24px 56px;
    }
}

@media (max-width: 640px) {
    .form-wrap {
        padding: 0 16px 48px;
    }

    .form-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .field-grid,
    .channel-grid {
        gap: 14px;
    }

    .channel-card {
        padding: 16px;
        border-radius: 16px;
    }

    .complete-wrap {
        padding: 0 16px 48px;
    }

    .complete-card {
        padding: 40px 24px;
    }

    .hero-btn-row {
        flex-direction: column;

        button {
            width: 100%;
        }
    }
}

/* 동의 체크박스 */
.agree-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-stats);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: background 0.15s;
}

.agree-wrap:hover {
    background: var(--bg-cta);
}

.agree-checkbox {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    margin-top: 1px;
}

.agree-checkbox.checked {
    background: var(--btn-dark);
    border-color: var(--btn-dark);
}

.agree-checkbox.checked::after {
    content: '✓';
    font-size: 12px;
    font-weight: 900;
    color: #fff;
}

.agree-checkbox.is-error {
    border-color: var(--error);
}

.agree-text {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 500;
}

.agree-text span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

.agree-error {
    font-size: 12px;
    color: var(--error);
    margin-top: -16px;
    margin-bottom: 20px;
    display: none;
}

.agree-error.visible {
    display: block;
}

/* 닉네임 중복확인 */
.nickname-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nickname-wrap input {
    flex: 1;
}

.btn-check-dup {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-stats);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0 16px;
    height: 48px;
    cursor: pointer;
    font-family: 'Pretendard Variable', sans-serif;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.btn-check-dup:hover {
    background: var(--bg-cta);
    border-color: var(--gold);
}

.btn-check-dup:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.field-success {
    font-size: 12px;
    color: #2E7D32;
    margin-top: 6px;
    display: none;
}

.field-success.visible {
    display: block;
}

.input-unit {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.agree-checkbox.checked::after {
    content: '\2713';
    font-size: 12px;
    font-weight: 900;
    color: #fff;
}

.input-with-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-btn input {
    flex: 1;
}

.btn-inline,
.verify-resend {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg-stats);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
    white-space: nowrap;
    font-family: 'Pretendard Variable', sans-serif;
}

.btn-inline:hover,
.verify-resend:hover {
    background: var(--bg-cta);
    border-color: var(--gold);
}

.btn-inline:disabled,
.verify-resend:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.verify-code-row {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.verify-code-row.visible {
    display: flex;
}

.verify-code-row input {
    flex: 1;
    min-width: 0;
}

.verify-timer {
    min-width: 48px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 640px) {

    .input-with-btn,
    .verify-code-row,
    .nickname-wrap {
        flex-wrap: wrap;
    }

    .btn-inline,
    .verify-resend,
    .btn-check-dup {
        width: 100%;
    }
}

@media (hover: none),
(pointer: coarse) {
    .primary-btn:hover {
        background-color: #006EE6;
    }

    .primary-btn.disabled:hover {
        background-color: #E5E5E5;
        color: #737278;
    }

    .delivery-detail-btn:hover {
        background-color: #0871e2;
    }

    .order-num-input button:hover,
    .partial-delivery-btn-wrap button:hover,

    .partial-delivery-btn-wrap .disabled:hover {
        background-color: #E5E5E5;
        color: #737278;
    }

    .pagination-wrap .pagination-btn:hover {
        background-color: #fff;
        border-color: var(--border-gray-color);
    }

    .modal-close-btn:hover {
        background-color: transparent;
        border-radius: 0;
    }

    .modal-btn-secondary:hover {
        background-color: #E5E7EB;
    }

    .modal-btn-danger:hover {
        background-color: #EF4444;
    }

    .admin-menu-toggle:hover {
        border-color: var(--border);
        background-color: rgba(255, 255, 255, 0.72);
    }

    .ambassador-profile-wrap .profile-trigger:hover {
        background-color: transparent;
        color: var(--text-dark);
    }

    .language-select-wrap .language-trigger:hover {
        background-color: transparent;
        color: var(--text-mid);
    }

    .nav-login:hover {
        background: transparent;
        color: var(--text-dark);
    }

    .nav-my-trigger:hover {
        background: var(--bg-stats);
        border-color: var(--border);
    }

    .btn-primary:hover,
    .btn-submit:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-outline:hover {
        background: transparent;
        color: var(--text-dark);
        text-align: center;
    }

    .footer-lang select:hover {
        border-color: var(--border);
    }

    .btn-check-dup:hover,
    .btn-inline:hover,
    .verify-resend:hover {
        background: var(--bg-stats);
        border-color: var(--border);
    }
}
