/* =======================================
   기본 스타일
======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f6f6f6;
    color: #333;
    overflow-x: hidden;
    line-height: 1.5;
}

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =======================================
   헤더
======================================= */
header {
    width: 100%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #2b67f6;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

nav a:hover {
    color: #2b67f6;
}

/* =======================================
   메인 비주얼 (index)
======================================= */
.main-visual {
    padding: 70px 15px;
    background: #e3e9ff;
    text-align: center;
}

.main-visual .title {
    font-size: 32px;
    font-weight: 700;
}

.main-visual .sub {
    font-size: 17px;
    margin-top: 8px;
    color: #555;
}

.visual-img {
    width: 100%;
    height: 260px;
    background: #c9d2ff;
    border-radius: 12px;
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

/* =======================================
   3개 정보 박스 (index)
======================================= */
.info-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    margin-top: -40px;
    margin-bottom: 50px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 26px;
    text-align: center;
    font-size: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* =======================================
   페이지 상단 공용 박스 (rate / order / list / cs)
======================================= */
.page-topbox {
    padding: 70px 15px;
    background: #e3e9ff;
    text-align: center;
}

.page-topbox .title {
    font-size: 30px;
    font-weight: 700;
}

.page-topbox .sub {
    font-size: 16px;
    margin-top: 6px;
    color: #555;
}

.top-img {
    width: 100%;
    height: 220px;
    background: #c9d2ff;
    border-radius: 12px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* =======================================
   섹션 타이틀
======================================= */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 40px;
}

/* =======================================
   테이블 스타일 (매입시세 / index 실시간)
======================================= */
table {
    width: 100%;
    background: #ffffff;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
}

table th {
    background: #f0f4ff;
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    text-align: center;
}

.done {
    color: #1a73e8;
    font-weight: 600;
}

.wait {
    color: #ff6600;
    font-weight: 600;
}

/* =======================================
   폼 (판매신청)
======================================= */
.order-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    margin-bottom: 60px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: #2b67f6;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.submit-btn:hover {
    background: #1b4ec9;
}

/* =======================================
   고객센터
======================================= */
.cs-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    margin-bottom: 60px;
    font-size: 16px;
    line-height: 26px;
}

/* =======================================
   실시간 판매현황 (list.php)
======================================= */
.real-list-box {
    margin-top: 40px;
}

.boundary ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 각 줄 박스 */
.board__list > li {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

/* 상단 헤더 줄 */
.list_top {
    background: #f4f6ff;
    font-weight: 700;
}

.list_top a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
}

/* 헤더 안의 그룹 (신청내역 / 고객명 / 입금은행) */
.list_top .list_group {
    display: flex;
    gap: 30px;
}

/* 번호/상태 제목 간격 */
.list_top .list_num {
    width: 80px;
}

.list_top .list_status {
    width: 80px;
    text-align: right;
}

/* 실제 데이터 줄 */
.board__list li:not(.list_top) > a {
    display: block;
    text-decoration: none;
    color: #333;
}

/* 번호 */
.board__list li:not(.list_top) .list_num {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* 아이콘 */
.list_icon span img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

/* 그룹 전체 */
.list_group {
    width: 100%;
    margin-bottom: 8px;
}

/* 상품명 */
.list_tit h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* 고객명 */
.list_name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 4px;
}

.list_name img {
    width: 18px;
    height: 18px;
}

/* 은행 */
.list_bank {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 4px;
}

.list_bank img {
    width: 20px;
    height: 20px;
}

/* 상태 */
.list_status {
    font-size: 15px;
    font-weight: 700;
    margin-top: 6px;
}

.status02 { color: #1a73e8; }
.status03 { color: #ff4d4d; }

/* =======================================
   푸터
======================================= */
footer {
    background: #1f1f1f;
    color: #bfbfbf;
    padding: 40px 0;
    margin-top: 70px;
}

footer .ft {
    font-size: 14px;
    text-align: center;
    line-height: 22px;
}

/* =======================================
   모바일
======================================= */
@media (max-width: 768px) {

    .header-flex {
        flex-direction: column;
        gap: 12px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .main-visual .title {
        font-size: 26px;
    }

    .visual-img {
        height: 180px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    table th,
    table td {
        font-size: 14px;
        padding: 12px;
    }

    .order-form {
        padding: 22px;
    }

    /* list.php 모바일에서도 세로 형태 그대로 */
    .list_top a {
        flex-direction: row;
    }

    .list_top .list_group {
        gap: 16px;
    }
}

.gift-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
}

.gift-box {
    width: calc(20% - 18px);
    background: #fff;
    padding: 20px 10px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
    pointer-events: none; /* 클릭 막기 */
}

.circle-per {
    display: inline-block;
    padding: 4px 10px;
    background: #2b67f6;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 10px;
}

.gift-box img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.gift-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

@media (max-width: 768px) {
    .gift-box {
        width: calc(50% - 10px);
    }
}

/* 배너 PC·모바일 공통 스타일 */
.page-topbox .top-img{
    width:100%;
    background:transparent;
    margin-top:25px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.page-topbox .top-img picture{
    width:100%;
    max-width:1200px;
}

.page-topbox .top-img img{
    width:100%;
    height:auto;
    border-radius:12px;
    display:block;
}
}