<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
include_once("$board_skin_path/auction.lib.php");//경매정보 라이브러리
require_once(G5_PATH.'/mylib/rpc_grade.lib.php');

if (!function_exists('auction_item_badges_html')) {
    function auction_item_badges_html($ca_id, $grade) {
        $cat_badge = rpc_category_badge_html($ca_id);
        $grade_badge = $grade !== '' ? rpc_grade_badge_html($grade) : '';
        return $cat_badge . $grade_badge;
    }
}

$auction_css_ver = @filemtime($board_skin_path.'/style.css');
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css?v='.$auction_css_ver.'">', 0);//add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_javascript('<script src="'.G5_JS_URL.'/viewimageresize.js"></script>');
?>

<style>
    /* 페이지 로딩 스피너 */
    #page-loading-overlay {
        position:fixed; inset:0; z-index:99999;
        background:#fff;
        display:flex; align-items:center; justify-content:center;
        transition:opacity .35s ease;
    }
    #page-loading-overlay.fade-out { opacity:0; pointer-events:none; }
    .plo-spinner {
        width:72px; height:72px;
        border:7px solid #e5e7eb;
        border-top-color:#007bff;
        border-radius:50%;
        animation:plo-spin .8s linear infinite;
    }
    @keyframes plo-spin { to { transform:rotate(360deg); } }
    #bo_v {
        background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
        border: 1px solid #e8edf5;
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
    }
    #bo_v > header > div {
        font-size: 1.35rem !important;
        font-weight: 800 !important;
        color: #101828;
        letter-spacing: -0.3px;
        line-height: inherit;
        margin-bottom: 8px;
    }
    #bo_v > header.auction-page-title {
        margin: 0 0 16px;
    }
    #bo_v > header.auction-page-title .div-title-underbar {
        margin: 0;
    }
    #bo_v > header.auction-page-title .page-nav {
        font-size: 14px;
        color: #888;
        padding-top: 8px;
        white-space: nowrap;
    }
    #bo_v_info {
        border-bottom: 1px solid #edf2f8;
        padding-bottom: 12px;
        margin-bottom: 14px;
        color: #667085;
        font-size: 14px;
    }
    #bo_v_info .auction-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
    }
    #bo_v_info .meta-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #4b5563;
        font-size: inherit;
        line-height: inherit;
        white-space: nowrap;
    }
    #bo_v_info .meta-item b {
        color: #374151;
        font-weight: 700;
    }
    #bo_v_info .meta-item + .meta-item {
        margin-left: 10px;
        padding-left: 10px;
        border-left: 1px solid #d1d5db;
    }
    #bo_v_atc .auction-detail-layout {
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        border-collapse: separate;
        border-spacing: 0;
        margin-top: 10px;
        margin-bottom: 16px;
    }
    #bo_v_atc .auction-detail-layout > tbody > tr > td {
        vertical-align: top;
        border: 0 !important;
    }
    #bo_v_atc .auction-detail-layout > tbody > tr > td[style*="height:10px"],
    #bo_v_atc .auction-detail-layout > tbody > tr > td[style*="height:1px"] {
        height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }
    #bo_v_atc .auction-detail-layout > tbody > tr:first-child > td {
        padding-top: 0;
        padding-bottom: 0;
    }
    #bo_v_atc .auction-detail-layout > tbody > tr:first-child > td.image-container,
    #bo_v_atc .auction-detail-layout > tbody > tr:first-child > td.auction-info-col,
    #bo_v_atc .auction-detail-layout > tbody > tr:first-child > td.auction-spec-wrap {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        vertical-align: top;
    }
    #bo_v_atc .auction-spec-wrap .auction-spec-table {
        margin-top: 0;
    }
    #bo_v_atc .auction-spec-table {
        border: 1px solid #e7edf5;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        table-layout: fixed;
        width: 100% !important;
        box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
    }
    #bo_v_atc .auction-spec-table tr td {
        padding: 10px 12px;
        color: #333;
        line-height: 1.4;
        font-size: 13px;
        border-bottom: 1px solid #f0f3f8;
    }
    #bo_v_atc .auction-spec-table tr td:first-child {
        width: 140px;
        background: #fafafa;
        color: #555;
        font-weight: 700;
        white-space: nowrap;
        padding-left: 14px;
        padding-right: 14px;
    }
    #bo_v_atc .auction-spec-table tr td:last-child {
        padding-left: 14px;
        padding-right: 14px;
        word-break: keep-all;
    }
    #bo_v_atc .auction-spec-table tr td a {
        color: #444;
        text-decoration: none;
    }
    #bo_v_atc .auction-spec-table tr td a:hover {
        text-decoration: underline;
    }
    #bo_v_atc .auction-spec-table tr:last-child td {
        border-bottom: 0;
    }
    /* 기존 inline spacer 행 시각 노이즈 제거 */
    #bo_v_atc .auction-spec-table td[style*="height:1px"],
    #bo_v_atc .auction-spec-table td[style*="height:5px"] {
        height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }
    #bo_v_atc .auction-spec-table tr:first-child td[colspan="2"] {
        background: #f7f8fa;
        border: 1px solid #e5e8ec !important;
        color: #333;
        font-weight: 700;
        padding: 13px 14px;
        border-radius: 4px;
    }
    #bo_v_atc .auction-top-status-cell {
        text-align: center;
        border: 1px solid #e7edf5 !important;
        border-radius: 10px;
        background: #f9fbff;
        color: #333;
        font-weight: 700;
        padding: 12px 14px !important;
        box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
    }
    #bo_v_atc .auction-seller-cell { padding: 0 !important; }
#bo_v_atc .auction-seller-table .asc-lbl { width:70px; font-weight:600; color:#555; white-space:nowrap; }
#bo_v_atc .seller-info-title {
        background: #f7f8fa;
        color: #333;
        font-weight: 700;
        text-align: center;
        border-top: 1px solid #e5e8ec;
        border-bottom: 1px solid #e5e8ec;
    }
    #bo_v_atc .auction-note-box {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0;
        background: transparent;
        line-height: inherit;
        margin: 0;
        box-shadow: none;
    }
    #bo_v_atc .auction-note-inner {
        padding: 14px 16px;
        border: 1px solid #e7edf5;
        border-radius: 10px;
        background: #fbfdff;
        box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
        margin: 18px 0;
    }
    #bo_v_atc .auction-status-box {
        padding: 14px 16px !important;
        text-align: center;
        border: 1px solid #e7edf5 !important;
        border-radius: 10px;
        background: #ffffff;
        margin-top: 10px;
        margin-bottom: 10px;
        box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
    }
    /* 이미지 컬럼: 240px, CSS position:absolute로 행 전체 높이 자동 채움 */
    #bo_v_atc .image-container {
        width: 240px;
        min-width: 240px;
        max-width: 240px;
        border-radius: 10px;
        background: #f7f8fa;
        border: 1px solid #e7edf5;
        padding: 0 !important;
        box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
        position: relative;
        vertical-align: top;
    }
    #bo_v_atc .image-visual {
        position: relative;
        background: #f6f6f6;
        height: 210px;
        border-radius: 10px 10px 0 0;
        overflow: hidden;
    }
    /* 경매정보 카드 컬럼 */
    #bo_v_atc .auction-info-col {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        padding: 0 0 0 14px !important;
    }
    #bo_v_atc .image-visual img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
    #bo_v_atc .auction-left-spec {
        background: #fff;
        border: 1px solid #e7edf5;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
    }
    #bo_v_atc .auction-left-spec-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
    }
    #bo_v_atc .auction-left-spec-table th,
    #bo_v_atc .auction-left-spec-table td {
        padding: 10px 12px;
        border-bottom: 1px solid #f0f3f8;
        color: #333;
        vertical-align: middle;
        font-size: 13px;
        line-height: 1.4;
    }
    #bo_v_atc .auction-left-spec-table .spec-id-row th { background: #f8fafc; color: #64748b; }
    #bo_v_atc .auction-left-spec-table .spec-product-id { font-family: monospace; font-weight: 700; color: #2563eb; font-size: 13px; letter-spacing: 0.5px; }
    #bo_v_atc .auction-left-spec-table .rental-row th {
        background: #eef6ff;
        color: #1273ea;
    }
    #bo_v_atc .auction-left-spec-table .rental-row td {
        background: #f5f9ff;
    }
    #bo_v_atc .rental-val {
        color: #1273ea;
        font-size: 14px;
        font-weight: 800;
    }
    #bo_v_atc .rental-hint {
        color: #888;
        font-size: 11px;
    }
    .rental-notice-bar {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: #eef6ff;
        border: 1px solid #bfdbfe;
        border-radius: 8px;
        padding: 10px 14px;
        margin: 10px 0 6px;
        font-size: 13px;
    }
    .rental-notice-bar .rnb-row-main { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
    .rental-notice-bar .rnb-icon { font-size: 15px; }
    .rental-notice-bar .rnb-label { color: #555; font-weight: 600; }
    .rental-notice-bar .rnb-value { color: #1273ea; font-weight: 800; font-size: 15px; }
    .rental-notice-bar .rnb-sub { color: #888; font-size: 11px; margin-left: auto; }
    .rental-notice-bar .rnb-row-warn {
        background: #fff8e1; border: 1px solid #fde68a; border-radius: 5px;
        padding: 6px 10px; font-size: 12px; color: #555; line-height: 1.6;
    }
    .rental-notice-bar .rnb-warn-icon { color: #f59e0b; }
    .rental-notice-bar .rnb-period-em { color: #1273ea; font-weight: 800; }
    .bid-rate-info {
        display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
        background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px;
        padding: 7px 14px; margin: 6px 0 4px; font-size: 12px; color: #555;
    }
    .bid-rate-info .bri-total { color: #555; font-weight: 700; }
    .bid-rate-info .bri-total strong { color: #15803d; font-size: 14px; font-weight: 800; }
    .bid-rate-info .bri-item strong { color: #15803d; font-size: 13px; font-weight: 800; }
    .bid-rate-info .bri-sep { color: #bbb; }
    #bo_v_atc .auction-left-spec-table th {
        background: #fafafa;
        color: #555;
        font-weight: 700;
        text-align: left;
        white-space: nowrap;
        padding-right: 8px;
    }
    #bo_v_atc .auction-left-spec-table tr:last-child th,
    #bo_v_atc .auction-left-spec-table tr:last-child td {
        border-bottom: 0;
    }
    /* 경매 방식 (i) 아이콘 */
    .am-tag { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
    .am-sep { color:#d1d5db; margin:0 4px; }
    .am-info-btn {
        display:inline-flex; align-items:center; justify-content:center;
        width:15px; height:15px; border-radius:50%;
        background:#2563eb; color:#fff; border:none; cursor:pointer;
        font-size:10px; font-style:italic; font-weight:700; line-height:1;
        padding:0; flex-shrink:0; vertical-align:middle;
        transition:background .15s;
    }
    .am-info-btn:hover { background:#1d4ed8; }
    /* 입찰 완료 결과 팝업 */
    #bid-result-popup {
        display:none; position:fixed; inset:0; z-index:9998;
        background:rgba(0,0,0,.45);
    }
    #bid-result-popup.show { display:block; }
    #bid-result-popup-box {
        position:fixed; top:50%; left:50%; transform:translate(-50%,-50%);
        background:#fff; border-radius:14px; padding:28px 32px 24px;
        max-width:340px; width:90%; box-shadow:0 8px 32px rgba(0,0,0,.22);
        text-align:center; z-index:9999;
    }
    #bid-result-popup-box .brp-icon { font-size:36px; margin-bottom:10px; }
    #bid-result-popup-box .brp-title {
        font-size:17px; font-weight:700; color:#1e3a5f; margin-bottom:12px;
        cursor:move; user-select:none;
    }
    #bid-result-popup-box .brp-body {
        font-size:15px; color:#374151; line-height:1.7; margin-bottom:22px;
    }
    #bid-result-popup-box .brp-body strong { color:#007bff; font-size:18px; }
    #bid-result-popup-box .brp-btn-ok {
        display:inline-block; padding:10px 40px; border-radius:8px;
        background:#007bff; color:#fff; border:none;
        font-size:14px; font-weight:700; cursor:pointer; transition:background .15s;
    }
    #bid-result-popup-box .brp-btn-ok:hover { background:#0069d9; }
        /* 입찰 확인 팝업 */
    #bid-confirm-popup {
        display:none; position:fixed; inset:0; z-index:9998;
        background:rgba(0,0,0,.45);
    }
    #bid-confirm-popup.show { display:block; }
    #bid-confirm-popup-box {
        position:fixed; top:50%; left:50%; transform:translate(-50%,-50%);
        background:#fff; border-radius:14px; padding:28px 32px 24px;
        max-width:340px; width:90%; box-shadow:0 8px 32px rgba(0,0,0,.22);
        text-align:center; z-index:9999;
    }
    #bid-confirm-popup-box .bcp-title {
        font-size:17px; font-weight:700; color:#1e3a5f; margin-bottom:12px;
        cursor:move; user-select:none;
    }
    #bid-confirm-popup-box .bcp-body {
        font-size:15px; color:#374151; line-height:1.7; margin-bottom:22px;
    }
    #bid-confirm-popup-box .bcp-body strong {
        color:#007bff; font-size:18px;
    }
    #bid-confirm-popup-box .bcp-btns {
        display:flex; gap:10px; justify-content:center;
    }
    #bid-confirm-popup-box .bcp-btns button {
        flex:1; max-width:120px; padding:10px 0; border-radius:8px;
        font-size:14px; font-weight:700; cursor:pointer; border:none;
        transition:background .15s;
    }
    #bid-confirm-popup-box .bcp-btn-cancel {
        background:#f3f4f6; color:#374151;
    }
    #bid-confirm-popup-box .bcp-btn-cancel:hover { background:#e5e7eb; }
    #bid-confirm-popup-box .bcp-btn-ok {
        background:#007bff; color:#fff;
    }
    #bid-confirm-popup-box .bcp-btn-ok:hover { background:#0069d9; }
        /* 경매 네비게이션 바 */
    /* 경매 네비 바 — shop/list 컨트롤 패널 동일 스타일 */
    #auction-nav-bar {
        display:flex; align-items:center; flex-wrap:wrap; gap:6px;
        border:1px solid #e5ebf4; background:#fff;
        padding:8px 14px; margin-top:16px;
        box-shadow:0 1px 2px rgba(15,23,42,.03);
    }
    /* 내 입찰 현황 — 파란 구분 스타일 (acp-mybid-lbl 동일) */
    .anb-btn.anb-mybids {
        display:inline-flex !important; align-items:center; align-self:center; gap:5px;
        height:28px; padding:0 11px; box-sizing:border-box; margin:0;
        border:1.5px solid #4c6fa7;
        background:#edf4ff; color:#2d5fa7;
        font-size:12px; font-weight:700;
        cursor:pointer; white-space:nowrap; transition:all .15s;
    }
    .anb-btn.anb-mybids:hover { background:#dce9ff; }
    /* 일반 네비 버튼 (af-btn 동일) */
    .anb-btn {
        display:inline-flex; align-items:center; align-self:center;
        height:28px; padding:0 10px; box-sizing:border-box; margin:0;
        border:1px solid #cfd8e3; border-radius:0;
        background:#f9fbff; color:#40546e;
        font-size:12px; font-weight:600;
        cursor:pointer; transition:all .16s ease; white-space:nowrap;
    }
    .anb-btn:hover { border-color:#96abd1; background:#eef4ff; color:#2e4466; }
    /* sort pair 그룹 — 우측 끝 */
    .anb-sort-grp { display:flex; gap:6px; align-self:center; margin-left:auto; }
    /* 정렬 페어 버튼 (acp-sort-pair 동일) */
    .anb-sort-pair {
        display:inline-flex; align-items:stretch;
        height:28px; box-sizing:border-box;
        border:1px solid #d8e0ec;
        font-size:12px; font-weight:600; color:#4b5f79;
        white-space:nowrap;
    }
    .anb-sp-label {
        display:flex; align-items:center;
        padding:0 5px 0 9px;
        background:#fff; user-select:none;
    }
    .anb-sp-tris {
        display:flex; flex-direction:row;
        border-left:1px solid #e5eaf2;
    }
    .anb-spt {
        display:flex; align-items:center; justify-content:center;
        background:#fff; border:none; cursor:pointer;
        color:#c4ccd8; font-size:8px; line-height:1;
        padding:0 4px; margin:0;
        transition:color .12s, background .12s;
    }
    .anb-spt:first-child { border-right:1px solid #e5eaf2; }
    .anb-spt:hover { color:#4c6fa7; background:#eef3fc; }
    .anb-spt.on { color:#fff; background:#4c6fa7; }
    @media(max-width:600px){
        #auction-nav-bar { gap:4px; }
        .anb-sort-grp { margin-left:0; }
    }
        /* 경매 용어 팝업 오버레이 */
    #auction-term-popup {
        display:none; position:fixed; inset:0; z-index:9998;
        background:rgba(0,0,0,.45);
    }
    #auction-term-popup.show { display:block; }
    #auction-term-popup-box {
        position:fixed; top:50%; left:50%; transform:translate(-50%,-50%);
        background:#fff; border-radius:12px; padding:24px 28px;
        max-width:360px; width:90%; box-shadow:0 8px 32px rgba(0,0,0,.22);
        z-index:9999;
    }
    #auction-term-popup-box h4 {
        margin:0 0 12px; font-size:16px; color:#1e3a5f; border-bottom:2px solid #2563eb; padding-bottom:8px;
        cursor:move; user-select:none;
    }
    #auction-term-popup-box p { margin:0; font-size:13px; color:#374151; line-height:1.7; }
    #auction-term-popup-close {
        position:absolute; top:12px; right:14px;
        background:none; border:none; font-size:20px; color:#9ca3af; cursor:pointer; line-height:1;
    }
    #auction-term-popup-close:hover { color:#374151; }
        #bo_v_atc .auction-left-spec-table .buy-now-label,
    #bo_v_atc .auction-left-spec-table .buy-now-price {
        color: #007bff;
    }
    #bo_v_atc .image-container img {
        display: block;
        width: 100%;
        height: auto;
    }
    #bo_v_atc .overlay-top-text {
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: calc(100% - 24px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: -0.2px;
        color: #f8fafc;
        padding: 9px 14px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(30, 41, 59, 0.68) 100%);
        box-shadow: 0 8px 22px rgba(2, 6, 23, 0.28);
        text-shadow: 0 1px 2px rgba(2, 6, 23, 0.4);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        z-index: 3;
    }
    #bo_v_atc .overlay-top-text .auction-progress-label {
        color: #86efac;
        font-weight: 900;
    }
    #bo_v_atc .overlay-top-text .auction-progress-time {
        color: #ffffff;
        font-weight: 800;
    }
    #bo_v_atc .overlay-top-text #end_timer_overlay {
        font-weight: 900;
    }
    #bo_v_atc .overlay-bottom-text {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 7px 10px;
        background: #f7f8fa;
        border-top: 1px solid #e7edf5;
        border-radius: 0 0 10px 10px;
        font-size: 11px;
        font-weight: 500;
        color: #555;
        gap: 3px;
        overflow: hidden;
        white-space: nowrap;
        width: 100%;
        box-sizing: border-box;
    }
    #bo_v_atc .overlay-bottom-text > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    #bo_v_atc .overlay-bottom-text b { color: #333; }
    #bo_v_atc .overlay-bottom-text .ovb-reg { color: #888; font-size: 11px; }
    #bo_v_atc .overlay-bottom-text .ovb-label { color: #888; font-weight: 400; }
    #bo_v_atc .auction-detail-layout > tbody > tr > td[style*="width:2%"] {
        width: 16px !important;
    }
    #bo_v_atc .auction-detail-layout > tbody > tr:first-child > td:last-child {
        padding-right: 12px;
    }
    #bo_v_atc .auction-note-box span {
        color: #555;
    }
    #bo_v_atc .auction-note-box span span {
        font-weight: 700;
    }
    #bo_v_atc .auction-tender-cell {
        padding-top: 0 !important;
    }
    #bo_v_atc .auction-tender-wrap {
        position: relative;
        border-radius: 10px;
        background: transparent;
        border: 1px solid #dfe8f3;
        box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
        padding: 0;
        overflow: hidden;
        margin-top: 18px;
        transition: border-color 0.2s ease, box-shadow 0.25s ease;
    }
    #bo_v_atc .auction-status-gap > td {
        height: 22px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }
    #tenderFrame {
        width: 100%;
        border: 0 !important;
        border-radius: 0;
        background: transparent;
        overflow-y: hidden;
        display: block;
        box-shadow: none;
    }

    /* 레거시 inline 구분선 행(1px) 과밀 방지 */
    #bo_v_atc .auction-detail-layout td[style*="border-top:1px solid #E0E0E0"],
    #bo_v_atc .auction-detail-layout td[style*="height:1px"] {
        border: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }
    #bo_v_atc .auction-detail-layout td[style*="height:10px"] {
        border: 0 !important;
        height: 10px !important;
        padding: 0 !important;
        background: transparent !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    #bo_v_atc .auction-status-box .tender-status-inline {
        display: block;
        padding: 2px 0 8px;
    }

    /* 부모(auction-status-box)와 자식(info/bid) 이중 보더 제거 */
    #bo_v_atc .auction-status-box .info-container,
    #bo_v_atc .auction-status-box .bid-container {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        margin: 0;
        padding: 10px 0;
    }
    #bo_v_atc .auction-status-box .bid-container {
        border-top: 1px dashed #e7edf5;
        margin-top: 2px;
        padding-top: 12px;
    }
    #bo_v_atc .auction-status-box .bid-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    #bo_v_atc .auction-status-box .bid-container .auction-bid-input-group {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
    }
    #bo_v_atc .auction-status-box .bid-container .bid-input-wrap {
        position: relative;
        min-width: 230px;
    }
    #bo_v_atc .auction-status-box .bid-container .bid-input-hint {
        position: absolute;
        top: 6px;
        left: 12px;
        font-size: 10px;
        line-height: 1;
        color: #98a2b3;
        font-weight: 700;
        pointer-events: none;
        z-index: 1;
    }
    #bo_v_atc .auction-status-box .bid-container .bid-input-unit {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        line-height: 1;
        color: #98a2b3;
        font-weight: 700;
        letter-spacing: 0.02em;
        pointer-events: none;
        z-index: 1;
    }
    #bo_v_atc .auction-status-box .bid-container #point {
        width: 230px;
        height: 56px;
        border: 1px solid #cdd7e5;
        border-radius: 10px;
        background: #fff;
        font-size: 24px;
        font-weight: 800 !important;
        line-height: 1;
        letter-spacing: 0;
        font-variant-numeric: tabular-nums;
        text-align: center;
        padding: 16px 60px 8px 60px;
        box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
    }
    #bo_v_atc .auction-status-box .bid-container .btn-step {
        width: 44px;
        min-width: 44px;
        height: 56px;
        border: 1px solid #cfd8e3;
        border-radius: 10px;
        background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
        color: #1f2937;
        font-size: 24px;
        line-height: 1;
        font-weight: 700;
        padding: 0;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }
    #bo_v_atc .auction-status-box .bid-container .btn-step:hover {
        border-color: #b5c3d9;
        background: linear-gradient(180deg, #ffffff 0%, #edf3fc 100%);
    }
    #bo_v_atc .auction-status-box .bid-container .btn-step:active {
        transform: translateY(1px);
        box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
    }
    #bo_v_atc .auction-status-box .bid-container .btn-bid {
        height: 56px;
        min-width: 142px;
        border: 0;
        border-radius: 12px;
        padding: 0 22px;
        background: linear-gradient(180deg, #2f8dff 0%, #1273ea 100%);
        color: #fff;
        font-size: 14px;
        line-height: 56px;
        font-weight: 800;
        letter-spacing: -0.2px;
        box-shadow: 0 8px 16px rgba(18, 115, 234, 0.26);
        transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    }
    #bo_v_atc .auction-status-box .bid-container .btn-bid:hover {
        filter: brightness(1.03);
        box-shadow: 0 10px 20px rgba(18, 115, 234, 0.3);
        transform: translateY(-1px);
    }
    #bo_v_atc .auction-status-box .bid-container .btn-bid:active {
        transform: translateY(1px);
        box-shadow: inset 0 2px 4px rgba(16, 24, 40, 0.2);
    }
    #bo_v_atc .auction-status-box #warning-message {
        border-radius: 8px;
        margin-top: 8px;
    }
    #bo_v_atc .auction-bid-toast {
        position: fixed;
        left: 50%;
        top: 18px;
        bottom: auto;
        transform: translate(-50%, -14px);
        background: rgba(17, 24, 39, 0.92);
        color: #fff;
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 12px;
        line-height: 1.35;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        border: 1px solid transparent;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 9999;
        pointer-events: none;
        white-space: nowrap;
    }
    #bo_v_atc .auction-bid-toast[data-level="warn"] {
        background: rgba(127, 29, 29, 0.94);
        border-color: rgba(248, 113, 113, 0.45);
    }
    #bo_v_atc .auction-bid-toast[data-level="info"] {
        background: rgba(30, 64, 175, 0.94);
        border-color: rgba(96, 165, 250, 0.45);
    }
    #bo_v_atc .auction-bid-toast .toast-icon {
        font-size: 13px;
        line-height: 1;
        margin-top: -1px;
    }
    #bo_v_atc .auction-bid-toast .toast-text {
        display: inline-block;
    }
    #bo_v_atc .auction-bid-toast.show {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
    #bo_v_bot .btn_b01 {
        height: 44px;
        line-height: 44px;
        border-radius: 10px;
        padding: 0 16px;
    }
    #bo_v #bo_vc,
    #bo_v #bo_vc_w {
        width: 100%;
        max-width: none;
        margin: 20px 0 0;
        padding: 0;
        border: 1px solid #dfe8f3;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
        overflow: hidden;
    }
    #bo_v #bo_vc,
    #bo_v #bo_vc *,
    #bo_v #bo_vc_w,
    #bo_v #bo_vc_w *,
    #bo_v #bo_v_bot,
    #bo_v #bo_v_bot * {
        font-family: inherit;
        letter-spacing: -0.1px;
    }
    #bo_v #bo_vc {
        padding: 0;
    }
    #bo_v #bo_vc .auction-comment-title {
        font-size: 13px;
        font-weight: 700;
        color: #1d4ed8;
        line-height: 1.4;
        margin: 0;
        padding: 12px 16px;
        background: #f8fbff;
        border-bottom: 1px solid #e8eef7;
    }
    #bo_v #bo_vc article {
        border-top: 1px solid #edf2f8;
        padding: 10px 16px 12px;
        font-size: 13px;
    }
    #bo_v #bo_vc article:first-of-type {
        border-top: 0;
    }
    #bo_v #bo_vc header {
        padding: 0 0 8px;
        font-size: 13px;
        color: #667085;
        line-height: 1.5;
    }
    #bo_v #bo_vc p {
        margin: 0;
        padding: 0;
        line-height: 1.6;
        color: #374151;
        font-size: 13px;
    }
    #bo_v #bo_vc #bo_vc_empty {
        margin: 0;
        padding: 34px 16px !important;
        color: #475467;
        font-size: 13px;
        background: #fbfdff;
    }
    #bo_v #bo_vc_w {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border-bottom: 1px solid #dfe8f3;
        padding: 0;
    }
    #bo_v #bo_vc_w .auction-comment-form-wrap {
        margin: 0;
    }
    #bo_v #bo_vc_w .auction-comment-form-wrap table {
        width: 100%;
        border-collapse: collapse;
        border: 0;
    }
    #bo_v #bo_vc_w .auction-comment-form-wrap th,
    #bo_v #bo_vc_w .auction-comment-form-wrap td {
        border: 1px solid #edf2f7;
        padding: 12px;
        vertical-align: middle;
        font-size: 13px;
        line-height: 1.5;
    }
    #bo_v #bo_vc_w .auction-comment-form-wrap th {
        width: 104px;
        text-align: center;
        font-weight: 700;
        color: #344054;
        background: #f8fafc;
    }
    #bo_v #bo_vc_w #wr_secret {
        transform: scale(1.05);
    }
    #bo_v #bo_vc_w textarea#wr_content {
        width: 100% !important;
        min-height: 118px;
        padding: 10px 12px;
        border: 1px solid #d0d5dd;
        border-radius: 8px;
        font-size: 13px;
        line-height: 1.5;
        color: #344054;
        background: #fff;
        resize: vertical;
        box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
    }
    #bo_v #bo_vc_w textarea#wr_content:focus {
        outline: none;
        border-color: #94a3b8;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }
    #bo_v #bo_vc_w .btn_confirm {
        margin: 0 !important;
        padding: 12px 0 14px;
        border-top: 1px solid #edf2f7;
        text-align: center;
    }
    #bo_v #bo_vc_w .btn_confirm #btn_submit {
        min-width: 88px;
        height: 38px;
        line-height: 38px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        padding: 0 14px;
    }
    #bo_v #bo_v_bot {
        margin-top: 22px;
        padding-top: 6px;
    }
    #bo_v #bo_v_bot .bo_v_com {
        margin-top: 6px;
        margin-bottom: 6px;
    }
    #bo_v #bo_v_bot .btn_b01 {
        font-size: 13px;
        font-weight: 700;
    }
	.nation_flag_img2 {
		width: 25px;
		height: 17px;
		margin-left: 0px;
		margin-right: 5px;
	}


	@media screen and (max-width: 760px) {
        #bo_v_atc .auction-info-col {
            display: none;
        }
        #bo_v_atc .image-container {
            width: 180px;
            min-width: 180px;
            max-width: 180px;
        }
    }
	@media screen and (max-width: 600px) {
        #bo_v {
            padding: 10px;
            border-radius: 10px;
            font-size: 13px;
            line-height: 1.5;
        }
        #bo_v,
        #bo_v * {
            letter-spacing: -0.1px;
        }
        #bo_v > header > div {
            font-size: 1.2rem !important;
        }
        #bo_v > header.auction-page-title {
            margin-bottom: 10px;
        }
        #bo_v > header.auction-page-title .page-nav {
            font-size: 13px;
            white-space: normal;
            padding-top: 0;
            margin-bottom: 8px;
        }
        #bo_v_info .meta-item {
            font-size: 13px;
        }
        #bo_v_info .meta-item + .meta-item {
            margin-left: 8px;
            padding-left: 8px;
        }
        #bo_v_atc .image-container {
            width: 100%;
            min-width: 100%;
            max-width: 100%;
        }
        #bo_v_atc .image-visual {
            min-height: 0;
            height: auto !important;
        }
        #bo_v_atc .image-visual img {
            height: auto;
            object-fit: contain;
        }
        #bo_v_atc .overlay-top-text {
            top: 10px;
            width: calc(100% - 8px);
            max-width: calc(100% - 8px);
            font-size: 12px;
            line-height: 1.25;
            padding: 7px 8px;
            border-radius: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
        }
        #bo_v_atc .auction-left-spec {
            display: none;
        }
        #bo_v_atc .auction-spec-table tr td {
            font-size: 13px;
            padding: 10px 12px;
            line-height: 1.5;
        }
        #bo_v_atc .auction-spec-table tr td:first-child {
            width: 96px;
        }
        #bo_v_atc .auction-spec-table .mobile-section-title {
            background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
            color: #1e3a8a;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: -0.1px;
            text-align: left;
            padding: 9px 12px;
            border-top: 1px solid #dbe7f7;
        }
        #bo_v_atc .auction-spec-table tr:first-child .mobile-section-title {
            border-top: 0;
        }
        #bo_v_atc .auction-spec-table .mobile-label {
            width: 88px;
            background: #f8fafc;
            color: #475467;
            font-weight: 700;
            font-size: 12px;
            white-space: nowrap;
        }
        #bo_v_atc .auction-spec-table .mobile-value {
            background: #fff;
            color: #1f2937;
            font-size: 13px;
            word-break: keep-all;
        }
        #bo_v_atc .auction-spec-table .mobile-seller-value {
            line-height: 1.45;
        }
        #bo_v_atc .auction-note-inner,
        #bo_v_atc .auction-note-inner span {
            font-size: 13px;
            line-height: 1.6;
        }
        #bo_v_atc .auction-status-box .info-container,
        #bo_v_atc .auction-status-box .info-text,
        #bo_v_atc .auction-status-box .tender-status-inline {
            font-size: 13px;
            line-height: 1.5;
        }
        #bo_v_atc .auction-top-status-cell,
        #bo_v_atc .auction-status-box,
        #bo_v_atc .auction-note-box,
        #tenderFrame,
        #bo_v_atc .auction-spec-table,
        #bo_v_atc .image-container {
            border-radius: 8px;
            box-shadow: none;
        }
        #bo_v_atc .auction-status-box .bid-container {
            border-top-style: solid;
        }
        #bo_v_atc .auction-status-box .bid-container {
            gap: 8px;
        }
        #bo_v_atc .auction-status-box .bid-container .auction-bid-input-group {
            gap: 6px;
        }
        #bo_v_atc .auction-status-box .bid-container .bid-input-wrap {
            min-width: 190px;
        }
        #bo_v_atc .auction-status-box .bid-container #point {
            width: 190px;
            height: 48px;
            font-size: 17px;
            padding: 14px 48px 6px 48px;
        }
        #bo_v_atc .auction-status-box .bid-container .bid-input-hint,
        #bo_v_atc .auction-status-box .bid-container .bid-input-unit {
            font-size: 10px;
        }
        #bo_v_atc .auction-status-box .bid-container .btn-step {
            width: 38px;
            min-width: 38px;
            height: 48px;
            font-size: 18px;
            border-radius: 9px;
        }
        #bo_v_atc .auction-status-box .bid-container .btn-bid {
            height: 48px;
            min-width: 116px;
            padding: 0 16px;
            font-size: 13px;
            line-height: 48px;
            border-radius: 10px;
            box-shadow: 0 6px 14px rgba(18, 115, 234, 0.22);
        }
        #bo_v_atc .auction-bid-toast {
            top: max(10px, env(safe-area-inset-top));
            width: calc(100vw - 8px);
            max-width: calc(100vw - 8px);
            font-size: 10.5px;
            padding: 9px 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
        }
        #bo_v #bo_vc,
        #bo_v #bo_vc_w {
            margin-top: 14px;
            border-radius: 8px;
            box-shadow: none;
        }
        #bo_v #bo_vc,
        #bo_v #bo_vc_w,
        #bo_v #bo_vc table,
        #bo_v #bo_vc_w table {
            font-size: 13px;
        }
        #bo_v #bo_vc .auction-comment-title {
            font-size: 12px;
            padding: 10px 12px;
        }
        #bo_v #bo_vc article {
            padding: 9px 12px 10px;
        }
        #bo_v #bo_vc_w .auction-comment-form-wrap th,
        #bo_v #bo_vc_w .auction-comment-form-wrap td {
            padding: 10px;
            font-size: 12px;
        }
        #bo_v #bo_vc_w .auction-comment-form-wrap th {
            width: 78px;
        }
        #bo_v #bo_vc_w textarea#wr_content {
            min-height: 92px;
            font-size: 12px;
        }
        #bo_v #bo_vc_w .btn_confirm {
            padding: 10px 0 12px;
        }
        #bo_v #bo_v_bot {
            margin-top: 16px;
            padding-top: 4px;
        }
        #bo_v #bo_v_bot .btn_b01 {
            font-size: 13px;
        }
		.nation_flag_img2 {
			width: 25px;
			height: 17px;
			margin-left: 0px;
			margin-right: 5px;
		}
	}
<style>
/* ══ 경매 UI 리디자인 추가 스타일 ══ */

/* ─ 경매 현황 히어로 패널 ─ */
#bo_v_atc td.auction-status-hero,
#bo_v_atc .auction-hero-wrap {
    background: linear-gradient(135deg,#0f172a 0%,#1b3058 100%);
    border-radius:12px !important; padding:14px 18px !important;
    border:1px solid rgba(59,130,246,.22) !important;
    box-shadow:0 8px 28px rgba(2,6,23,.2);
}
#bo_v_atc .auction-hero-wrap {
    margin-bottom: 10px;
}
.auction-stats-grid { display:flex; flex-wrap:wrap; gap:10px; }
.a-stat-card {
    flex:1; min-width:110px;
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
    border-radius:10px; padding:11px 14px; text-align:center;
}
.a-stat-card .asl { display:block; font-size:10px; color:#64748b; font-weight:700; letter-spacing:.6px; text-transform:uppercase; margin-bottom:5px; }
.a-stat-card .asv { display:block; font-size:19px; font-weight:800; color:#e2e8f0; line-height:1.2; }
.a-stat-card.asc-bid   { background:rgba(37,99,235,.18);  border-color:rgba(59,130,246,.28); }
.a-stat-card.asc-bid   .asv { color:#7dd3fc; }
.a-stat-card.asc-count { background:rgba(16,185,129,.1);  border-color:rgba(52,211,153,.25); }
.a-stat-card.asc-count .asv { color:#6ee7b7; }
.a-stat-card.asc-timer { background:rgba(245,158,11,.12); border-color:rgba(251,191,36,.3); }
.a-stat-card.asc-timer .asv { color:#d97706; font-size:15px; font-variant-numeric:tabular-nums; }
.a-stat-card.asc-leader { background:rgba(67,56,202,.18) !important; border:2px solid rgba(99,102,241,.6) !important; box-shadow:0 0 12px rgba(99,102,241,.2); flex:0 1 auto; min-width:140px; max-width:220px; }
.a-stat-card.asc-leader .asl { color:#4338ca !important; letter-spacing:.5px; }
.a-stat-card.asc-leader .asv { color:#3730a3 !important; font-size:17px !important; font-weight:900 !important; }
.asv.ast-running { color:#4ade80 !important; }
.asv.ast-sold    { color:#60a5fa !important; }
.asv.ast-failed  { color:#f87171 !important; }
.asv.ast-pending { color:#94a3b8 !important; }

/* ─ 입찰 카드 ─ */
#bo_v_atc td.auction-bid-card { padding:0 !important; background:transparent !important; border:none !important; box-shadow:none !important; }
.bid-card { background:#fff; border:1px solid #dfe8f3; border-radius:14px; overflow:hidden; box-shadow:0 6px 22px rgba(16,24,40,.08); }
.bid-card-hd {
    background:linear-gradient(90deg,#1e3a5f 0%,#2563eb 100%);
    padding:10px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.bid-card-hd-title { font-size:14px; font-weight:800; color:#fff; }
.bid-card-hd-timer { font-size:14px; font-weight:800; color:#fde68a; font-variant-numeric:tabular-nums; white-space:nowrap; }
.bid-guide-btn {
    background:#eff6ff; border:0; border-bottom:1px solid #dbeafe;
    width:100%; text-align:left; padding:9px 18px; cursor:pointer;
    display:flex; align-items:center; justify-content:space-between;
    font-size:12px; font-weight:700; color:#1d4ed8; transition:background .15s;
}
.bid-guide-btn:hover { background:#dbeafe; }
.bid-guide-btn .bgi { font-size:10px; transition:transform .2s; display:inline-block; }
.bid-guide-btn.bgo .bgi { transform:rotate(180deg); }
.bid-guide-body { display:none; background:#f8fbff; border-bottom:1px solid #e0eaf6; padding:14px 18px; }
.bid-guide-row { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.bgr-step { flex:1; min-width:120px; background:#fff; border:1px solid #dce8f7; border-radius:8px; padding:10px 12px; text-align:center; }
.bgr-n { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:#2563eb; color:#fff; font-size:11px; font-weight:800; margin-bottom:5px; }
.bgr-t { display:block; font-size:12px; font-weight:700; color:#111827; margin-bottom:2px; }
.bgr-d { display:block; font-size:11px; color:#6b7280; line-height:1.4; }
.bid-guide-note { margin:0; font-size:11px; color:#6b7280; line-height:1.5; }
.bid-card-body { padding:14px 18px; }

/* ─ 입찰 폼 내부 ─ */
#bo_v_atc .auction-bid-card .info-container {
    display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:8px; font-size:13px; color:#4b5563;
    padding:0 0 10px; margin-bottom:12px; border-bottom:1px dashed #e7edf5;
}
#bo_v_atc .auction-bid-card .bid-container {
    display:flex; align-items:center; justify-content:center;
    gap:10px; flex-wrap:wrap; margin-bottom:10px;
    border-top:0; padding-top:0; margin-top:0;
}
#bo_v_atc .auction-bid-card .bid-container .btn-bid {
    min-width:160px;
}
.bid-time-bar {
    text-align:center; font-size:12px; color:#6b7280;
    padding:8px 0 2px; border-top:1px dashed #e7edf5;
}
.bid-time-bar .btb-val { color:#dc2626; font-weight:800; font-size:15px; font-variant-numeric:tabular-nums; }
.bid-time-bar .btb-lbl { color:#dc2626; font-weight:700; }

/* 히어로 패널 ~ 이미지 행 간격 복원 */
#bo_v_atc .auction-detail-layout > tbody > tr:nth-child(2) > td { height:18px !important; }

/* ─ 포인트 충전 레이어 팝업 ─ */
.charge-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.48); z-index: 9990;
    align-items: center; justify-content: center;
    overflow: hidden; overscroll-behavior: none;
}
.charge-modal {
    background: #fff; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.32);
    width: min(1200px, calc(100vw - 24px)); height: min(960px, calc(100vh - 24px));
    min-width: 320px; min-height: 260px;
    display: flex; flex-direction: column;
    position: relative;
    resize: both; overflow: hidden; overscroll-behavior: contain;
    will-change: transform;
    transform: translate(0, 0);
}
.charge-modal-hd {
    background: linear-gradient(90deg, #1e3a5f 0%, #2563eb 100%);
    padding: 11px 16px; display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
    cursor: move; user-select: none;
    border-radius: 12px 12px 0 0; flex-shrink: 0;
}
.charge-modal-title { color:#fff; font-size:14px; font-weight:800; }
.charge-modal-close {
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
    color: #fff; border-radius: 6px; width: 28px; height: 28px;
    cursor: pointer; font-size: 14px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s;
}
.charge-modal-close:hover { background: rgba(255,255,255,.28); }
.charge-modal-body { flex: 1; overflow: hidden; min-height: 0; }
.charge-modal-body iframe { width:100%; height:100%; border:0; display:block; }
.charge-modal-resize-hint {
    position: absolute; bottom: 4px; right: 5px;
    font-size: 14px; color: #ccc; pointer-events: none; line-height: 1;
}
@media screen and (max-width: 600px) {
    .charge-modal { width: calc(100vw - 16px) !important; height: 80vh !important; }
}

@media screen and (max-width:600px) {
    .auction-stats-grid { gap:7px; }
    .a-stat-card { min-width:80px; padding:9px 10px; }
    .a-stat-card .asl { font-size:9px; }
    .a-stat-card .asv { font-size:15px; }
    .a-stat-card.asc-timer .asv { font-size:13px; }
    .bid-card-hd { padding:8px 14px; }
    .bid-card-hd-timer { font-size:12px; }
    .bid-guide-row { gap:6px; }
    .bgr-step { min-width:100px; padding:8px 10px; }
    .bid-card-body { padding:12px 14px; }
}

/* ════════════════════════════════════════════
   테마 전환 부드러운 애니메이션
   ════════════════════════════════════════════ */
#bo_v, #bo_v_info, #bo_v_atc .image-container, #bo_v_atc .image-visual,
#bo_v_atc .auction-top-status-cell, #bo_v_atc .auction-spec-table,
#bo_v_atc .auction-spec-table tr td, #bo_v_atc .auction-left-spec,
#bo_v_atc .auction-left-spec-table th, #bo_v_atc .auction-left-spec-table td,
#bo_v_atc .auction-status-box, #bo_v_atc .overlay-bottom-text,
#bo_v_atc .auction-note-inner, .bid-card, .bgr-step, .bid-guide-body,
#auction-nav-bar, .anb-btn, .anb-sort-pair, .anb-sp-label, .anb-spt,
#bid-result-popup-box, #bid-confirm-popup-box, #auction-term-popup-box,
#bo_v #bo_vc, #bo_v #bo_vc_w, .rental-notice-bar, .charge-modal,
.a-stat-card, .bid-time-bar, .info-text, .bid-rate-info {
    transition: background-color 0.25s ease, background 0.25s ease,
                color 0.15s ease, border-color 0.2s ease !important;
}

/* ════════════════════════════════════════════
   다크 모드 오버라이드
   ════════════════════════════════════════════ */
[data-site-theme="dark"] #page-loading-overlay { background:#1a1a2e !important; }

/* 메인 컨테이너 */
[data-site-theme="dark"] #bo_v {
    background: linear-gradient(180deg, #1e1e2e 0%, #1a1a28 100%) !important;
    border-color: #2d2d42 !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.4) !important;
}
[data-site-theme="dark"] #bo_v > header > div { color: #e2e8f0 !important; }
[data-site-theme="dark"] #bo_v > header.auction-page-title .page-nav { color: #94a3b8 !important; }

/* 메타 정보 */
[data-site-theme="dark"] #bo_v_info { border-bottom-color: #2d3748 !important; color: #94a3b8 !important; }
[data-site-theme="dark"] #bo_v_info .meta-item { color: #94a3b8 !important; }
[data-site-theme="dark"] #bo_v_info .meta-item b { color: #cbd5e1 !important; }
[data-site-theme="dark"] #bo_v_info .meta-item + .meta-item { border-left-color: #374151 !important; }

/* 이미지 컨테이너 */
[data-site-theme="dark"] #bo_v_atc .image-container { background: #252535 !important; border-color: #2d2d42 !important; }
[data-site-theme="dark"] #bo_v_atc .image-visual { background: #1e1e2e !important; }

/* 입찰내역 래퍼 */
[data-site-theme="dark"] #bo_v_atc .auction-tender-wrap {
    background: transparent !important;
    border-color: #2d2d42 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.3) !important;
}

/* 경매정보 상태 카드 */
[data-site-theme="dark"] #bo_v_atc .auction-top-status-cell {
    background: #252535 !important; border-color: #2d2d42 !important; color: #e2e8f0 !important;
}

/* 스펙 테이블 (우측) */
[data-site-theme="dark"] #bo_v_atc .auction-spec-table { background: #252535 !important; border-color: #2d2d42 !important; }
[data-site-theme="dark"] #bo_v_atc .auction-spec-table tr td { color: #cbd5e1 !important; border-bottom-color: #2d3748 !important; }
[data-site-theme="dark"] #bo_v_atc .auction-spec-table tr td:first-child { background: #1e1e2e !important; color: #94a3b8 !important; }
[data-site-theme="dark"] #bo_v_atc .auction-spec-table tr td a { color: #93c5fd !important; }
[data-site-theme="dark"] #bo_v_atc .auction-spec-table tr:first-child td[colspan="2"] {
    background: #1e1e2e !important; border-color: #2d2d42 !important; color: #e2e8f0 !important;
}

/* 스펙 테이블 (좌측 패널) */
[data-site-theme="dark"] #bo_v_atc .auction-left-spec { background: #252535 !important; border-color: #2d2d42 !important; }
[data-site-theme="dark"] #bo_v_atc .auction-left-spec-table th,
[data-site-theme="dark"] #bo_v_atc .auction-left-spec-table td { color: #cbd5e1 !important; border-bottom-color: #2d3748 !important; }
[data-site-theme="dark"] #bo_v_atc .auction-left-spec-table th { background: #1e1e2e !important; color: #94a3b8 !important; }
[data-site-theme="dark"] #bo_v_atc .auction-left-spec-table .spec-id-row th { background: #1a2035 !important; color: #64748b !important; }
[data-site-theme="dark"] #bo_v_atc .auction-left-spec-table .spec-product-id { color: #60a5fa !important; }
[data-site-theme="dark"] #bo_v_atc .auction-left-spec-table .rental-row th { background: #0d2035 !important; color: #60a5fa !important; }
[data-site-theme="dark"] #bo_v_atc .auction-left-spec-table .rental-row td { background: #0f1e30 !important; }
[data-site-theme="dark"] #bo_v_atc .auction-left-spec-table .buy-now-label,
[data-site-theme="dark"] #bo_v_atc .auction-left-spec-table .buy-now-price { color: #60a5fa !important; }
[data-site-theme="dark"] #bo_v_atc .auction-seller-table .asc-lbl { color: #94a3b8 !important; }
[data-site-theme="dark"] #bo_v_atc .seller-info-title { background: #1e1e2e !important; color: #e2e8f0 !important; border-color: #2d3748 !important; }

/* 임차/요율 안내 바 */
[data-site-theme="dark"] .rental-notice-bar { background: #0d2035 !important; border-color: #1e3a5f !important; }
[data-site-theme="dark"] .rental-notice-bar .rnb-label { color: #94a3b8 !important; }
[data-site-theme="dark"] .rental-notice-bar .rnb-sub { color: #64748b !important; }
[data-site-theme="dark"] .rental-notice-bar .rnb-row-warn { background: #2a2000 !important; border-color: #78530a !important; color: #d4b483 !important; }
[data-site-theme="dark"] .bid-rate-info { background: #0d2a18 !important; border-color: #14532d !important; color: #94a3b8 !important; }
[data-site-theme="dark"] .bid-rate-info .bri-total { color: #94a3b8 !important; }
[data-site-theme="dark"] .bid-rate-info .bri-total strong,
[data-site-theme="dark"] .bid-rate-info .bri-item strong { color: #4ade80 !important; }

/* 메모 박스 */
[data-site-theme="dark"] #bo_v_atc .auction-note-inner { background: #1e1e2e !important; border-color: #2d2d42 !important; }

/* 입찰 상태/폼 박스 */
[data-site-theme="dark"] #bo_v_atc .auction-status-box { background: #252535 !important; border-color: #2d2d42 !important; }
[data-site-theme="dark"] #bo_v_atc .auction-status-box .bid-container #point {
    background: #1a1a2e !important; border-color: #374151 !important; color: #e2e8f0 !important;
}
[data-site-theme="dark"] #bo_v_atc .auction-status-box .bid-container .btn-step {
    background: linear-gradient(180deg, #2d2d42 0%, #252535 100%) !important;
    border-color: #374151 !important; color: #e2e8f0 !important;
}
[data-site-theme="dark"] #bo_v_atc .auction-status-box .bid-container .btn-step:hover {
    border-color: #4b5563 !important;
    background: linear-gradient(180deg, #374151 0%, #2d2d42 100%) !important;
}

/* stat 카드 (리더보드) */
[data-site-theme="dark"] .a-stat-card.asc-leader .asl { color: #818cf8 !important; }
[data-site-theme="dark"] .a-stat-card.asc-leader .asv { color: #a5b4fc !important; }

/* 입찰 카드 */
[data-site-theme="dark"] .bid-card { background: #252535 !important; border-color: #2d2d42 !important; }
[data-site-theme="dark"] .bid-guide-btn { background: #1a2a4a !important; border-bottom-color: #1e3a5f !important; color: #60a5fa !important; }
[data-site-theme="dark"] .bid-guide-btn:hover { background: #1e3a5f !important; }
[data-site-theme="dark"] .bid-guide-body { background: #1a1a2e !important; border-bottom-color: #2d3748 !important; }
[data-site-theme="dark"] .bgr-step { background: #252535 !important; border-color: #2d3748 !important; }
[data-site-theme="dark"] .bgr-t { color: #e2e8f0 !important; }
[data-site-theme="dark"] .bgr-d,
[data-site-theme="dark"] .bid-guide-note { color: #94a3b8 !important; }
[data-site-theme="dark"] .bid-time-bar { color: #94a3b8 !important; border-top-color: #2d3748 !important; }
[data-site-theme="dark"] .bid-time-bar .btb-val,
[data-site-theme="dark"] .bid-time-bar .btb-lbl { color: #f87171 !important; }
[data-site-theme="dark"] #bo_v_atc .auction-bid-card .info-container { color: #94a3b8 !important; border-bottom-color: #2d3748 !important; }

/* 네비 바 */
[data-site-theme="dark"] #auction-nav-bar { background: #252535 !important; border-color: #2d2d42 !important; }
[data-site-theme="dark"] .anb-btn { background: #1e1e2e !important; border-color: #374151 !important; color: #94a3b8 !important; }
[data-site-theme="dark"] .anb-btn:hover { background: #252535 !important; border-color: #4b5563 !important; color: #cbd5e1 !important; }
[data-site-theme="dark"] .anb-btn.anb-mybids { background: #0d2035 !important; border-color: #1e3a5f !important; color: #60a5fa !important; }
[data-site-theme="dark"] .anb-sp-label { background: #252535 !important; color: #94a3b8 !important; }
[data-site-theme="dark"] .anb-spt { background: #252535 !important; color: #64748b !important; }
[data-site-theme="dark"] .anb-spt.on { background: #2563eb !important; color: #fff !important; }

/* 팝업 */
[data-site-theme="dark"] #bid-result-popup-box,
[data-site-theme="dark"] #bid-confirm-popup-box { background: #252535 !important; }
[data-site-theme="dark"] #bid-result-popup-box .brp-title,
[data-site-theme="dark"] #bid-confirm-popup-box .bcp-title { color: #93c5fd !important; }
[data-site-theme="dark"] #bid-result-popup-box .brp-body,
[data-site-theme="dark"] #bid-confirm-popup-box .bcp-body { color: #cbd5e1 !important; }
[data-site-theme="dark"] #bid-confirm-popup-box .bcp-btn-cancel { background: #374151 !important; color: #e2e8f0 !important; }
[data-site-theme="dark"] #auction-term-popup-box { background: #252535 !important; }
[data-site-theme="dark"] #auction-term-popup-box h4 { color: #93c5fd !important; border-bottom-color: #2563eb !important; }
[data-site-theme="dark"] #auction-term-popup-box p { color: #cbd5e1 !important; }
[data-site-theme="dark"] #auction-term-popup-close { color: #64748b !important; }
[data-site-theme="dark"] #auction-term-popup-close:hover { color: #e2e8f0 !important; }

/* 댓글 영역 */
[data-site-theme="dark"] #bo_v #bo_vc,
[data-site-theme="dark"] #bo_v #bo_vc_w { background: #252535 !important; border-color: #2d2d42 !important; }
[data-site-theme="dark"] #bo_v #bo_vc .auction-comment-title { background: #1a2a4a !important; color: #60a5fa !important; border-bottom-color: #1e3a5f !important; }
[data-site-theme="dark"] #bo_v #bo_vc article { border-top-color: #2d3748 !important; }
[data-site-theme="dark"] #bo_v #bo_vc header { color: #94a3b8 !important; }
[data-site-theme="dark"] #bo_v #bo_vc p { color: #cbd5e1 !important; }
[data-site-theme="dark"] #bo_v #bo_vc #bo_vc_empty { background: #1e1e2e !important; color: #64748b !important; }
[data-site-theme="dark"] #bo_v #bo_vc_w .auction-comment-form-wrap th { background: #1e1e2e !important; color: #94a3b8 !important; border-color: #2d3748 !important; }
[data-site-theme="dark"] #bo_v #bo_vc_w .auction-comment-form-wrap td { border-color: #2d3748 !important; }
[data-site-theme="dark"] #bo_v #bo_vc_w textarea#wr_content { background: #1e1e2e !important; border-color: #374151 !important; color: #e2e8f0 !important; }
[data-site-theme="dark"] #bo_v #bo_vc_w .btn_confirm { border-top-color: #2d3748 !important; }

/* 충전 모달 */
[data-site-theme="dark"] .charge-modal { background: #252535 !important; }

/* 상품정보 하단 패널 (상품명/판매자/매너온도) */
[data-site-theme="dark"] #bo_v_atc .overlay-bottom-text {
    background: #1e1e2e !important; border-top-color: #2d2d42 !important; color: #94a3b8 !important;
}
[data-site-theme="dark"] #bo_v_atc .overlay-bottom-text b { color: #e2e8f0 !important; }
[data-site-theme="dark"] #bo_v_atc .overlay-bottom-text .ovb-label,
[data-site-theme="dark"] #bo_v_atc .overlay-bottom-text .ovb-reg { color: #64748b !important; }
[data-site-theme="dark"] #bo_v_atc .overlay-bottom-text .ovb-manner span { color: #64748b !important; }

/* 보유포인트 / info-text */
[data-site-theme="dark"] #bo_v_atc .auction-status-box .info-container { color: #94a3b8 !important; }
[data-site-theme="dark"] .info-text { color: #94a3b8 !important; }

/* 기간 연장 배지 */
[data-site-theme="dark"] .auction-ext-ok {
    color: #60a5fa !important; background: #0d2035 !important; border-color: #1e3a5f !important;
}
[data-site-theme="dark"] .auction-ext-no {
    color: #94a3b8 !important; background: #1e1e2e !important; border-color: #374151 !important;
}

/* sort pair 버튼 */
[data-site-theme="dark"] .anb-sort-pair { border-color: #374151 !important; color: #94a3b8 !important; }
[data-site-theme="dark"] .anb-sp-tris { border-left-color: #374151 !important; }
[data-site-theme="dark"] .anb-spt:first-child { border-right-color: #374151 !important; }
[data-site-theme="dark"] .anb-spt:hover { background: #1a2a4a !important; color: #60a5fa !important; }
</style>
<div id="page-loading-overlay" aria-label="로딩 중">
  <div class="plo-spinner"></div>
</div>

<?php
/////////////경매정보////////////////////
$s = isset($_REQUEST['s']) ? $_REQUEST['s'] : '';
$pcnum = isset($_REQUEST['pcnum']) ? $_REQUEST['pcnum'] : '';

// 경매정보 읽어오기
if (isset($wr_id)) {
    if ($wr_id=="" && $pcnum!="") {
        $wr_id = $pcnum;
    }
} else {
    if ($pcnum!="") {
        $wr_id = $pcnum;
    }
}

$info = get_info_auction($wr_id);

if ($pcnum==""){$pcnum = $info['pcnum'];}

// 결과 출력 # write auction 테이블에서 직접 PC스펙을 추출하는 방법 (이 방법은 country flag 등 일부 정보가 표시되지 않음)
/*
// "[OS]Windows 10 Pro (64Bit) [CPU]Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz 4 Cores [RAM]8GB [SSD]128GB [HDD]0GB [GPU]Intel(R) HD Graphics (2.06GB)"
$product_string = $info['product'];

// 문자열을 공백을 기준으로 분할
$product_parts = explode(' [', $product_string);

// 각 항목에 대한 정보를 저장할 배열 초기화
$product_info = [];

// 문자열을 처리하면서 각 항목을 추출
foreach ($product_parts as $product_part) {
    // 항목 이름과 값으로 분리
    $product_pair = explode(']', $product_part);
    // 이름과 값이 있는 경우에만 처리
    if (count($product_pair) === 2) {
        // 이름과 값에 대괄호 및 공백 제거 후 저장
        $product_info[trim($product_pair[0], '[]')] = trim($product_pair[1]);
    }
}

$product_display = "";
$product_cnt = 0;
if (G5_IS_MOBILE) {
    foreach ($product_info as $key => $value) {
        $product_display .= ($product_cnt == 0)?"[$key] $value<br>":"&nbsp;&nbsp;[$key] $value<br>";
        $product_cnt++;
    }
} else {
    foreach ($product_info as $key => $value) {
        $product_display .= ($product_cnt == 0)?"[$key] $value<br>":"&nbsp;: [$key] $value<br>";
        $product_cnt++;
    }
}
*/

// 결과 출력 # shop_item 테이블에서 직접 PC스펙을 추출하는 경우 (쇼핑몰 정보와 동일함)
$product_display = "";
if (G5_IS_MOBILE) {
    $product_display = $info['product_from_shop_item'];
} else {
    $product_display = $info['product_from_shop_item'];
}

// 상세 스펙에서 "IP" 단일 항목은 노출하지 않음 ("IP 할당국가"는 유지)
$product_display = preg_replace(
    '/<tr>\s*<td[^>]*>\s*(?:&nbsp;|\s)*IP\s*<\/td>\s*<td[^>]*>.*?<\/td>\s*<\/tr>/isu',
    '',
    $product_display
);



// 낙찰
if ($info[status] == "2") {$success_member = get_member($info[mb_id]);}

$end_time = strtotime($info[end_datetime])-G5_SERVER_TIME;

//if ($is_admin){
    // 명수
    $sql = "select count( distinct mb_id ) as cnt from $tender_table where wr_id = '$wr_id' ";
    $row = sql_fetch($sql);

    $tender_mb_id_count = number_format(intval($row[cnt]));
    $_valid_bidder = intval(str_replace(',', '', $tender_mb_id_count));

    // 최고|최저 입찰된 내역을 조회 (현재 1위)
    $super = auction_super_point($info);
    // 최고|최저 입찰된 내역을 조회 (현재 1위)

    $qry = sql_query(" select mb_id from $tender_table where td_tender_point = '$super[point]' and wr_id = '$wr_id' ");
    while ($row = sql_fetch_array($qry)){$super_mb_id[] = $row[mb_id];}
    //foreach($super_mb_id as $mb_id){$mb = get_member($mb_id);echo get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email], $mb[mb_homepage]);}//원하는 곳에 사용
    //foreach($super_mb_id as $mb_id){$mb = get_member($mb_id);echo "(입찰자 : {$mb[mb_nick]})";}//원하는 곳에 사용
//}

//이미지 출력 //print_r2($view[file]); // 상품이미지 (중)
$image = urlencode($view[file][1][file]);
//이미지 출력
if(preg_match("/\.(gif|jpg|png)$/i", $image)) {
    $img_1 = G5_DATA_URL.'/file/'.$bo_table.'/'.$image;}
else {
    // 첨부이미지가 없는 경우 이미 등록된 item 테이블에 등록된 이미지 사용 (예: img_os/Windows10.png )
    $it = sql_fetch(" select it_img1, it_11, it_install_price, it_spec_grade, it_spec_os, it_spec_cpu, it_spec_ram, it_spec_ssd, it_spec_hdd, ca_id from {$g5['g5_shop_item_table']} where it_id = '{$info['pcnum']}' ");
    // 상품등급 자동 산정 (미설정 시)
    $_auc_it_grade = strtoupper(trim((string)(isset($it['it_spec_grade']) ? $it['it_spec_grade'] : '')));
    $_auc_it_ca_id = isset($it['ca_id']) ? $it['ca_id'] : '20';
    if ($_auc_it_grade === '' && function_exists('rpc_ensure_grade')) {
        $_auc_it_grade = rpc_ensure_grade(
            $info['pcnum'], '',
            isset($it['it_spec_cpu']) ? $it['it_spec_cpu'] : '',
            isset($it['it_spec_ram']) ? $it['it_spec_ram'] : '',
            isset($it['it_spec_ssd']) ? $it['it_spec_ssd'] : '',
            isset($it['it_spec_hdd']) ? $it['it_spec_hdd'] : ''
        );
    }
    $img_src = G5_URL."/data/item/{$it['it_img1']}";
    //$img_content = '<img src="'.$img_src.'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';
    $img_1 = $img_src;
}

$auction_status=""; $auction_status_color="";// 추가 초기화
$tender_status=""; $tender_list=0;// 추가 초기화

switch ($info[status]) {
        case 0: // 시작전
                //경매정보
                $auction_status = auction_status($info[status])." 입니다.";
                $auction_status_overlay = "경매 ".auction_status($info[status]);
                $auction_status_color = "#888";
                //경매정보
                $tender_status="[경매 ".auction_status($info[status])."] <strong>".date("Y년 m월 d일 H시 i분", strtotime($info[start_datetime]))."</strong> 에 시작됩니다.";
                //입찰정보
                break;
        case 1: // 진행중
                //경매정보
                $auction_status = auction_status($info[status])."<span style='color:black;'>(입찰가능)</span>";
            $auction_status_overlay = "<span class='auction-progress-label'>경매&nbsp;".auction_status($info[status])."</span>&nbsp;<span class='auction-progress-time'><span id='end_timer_overlay'></span>&nbsp;남음</span>";
                $auction_status_color = "#009520";
                //경매정보
                if($info[tender_count]){$tender_list=1;} else {$tender_list=0;};
                //입찰정보
                break;
        case 2: // 낙찰
                //경매정보
                $auction_status = "경매가 ".auction_status($info[status])." 되었습니다.";
                $auction_status_overlay = "경매 ".auction_status($info[status]);
                $auction_status_color = "blue";
                //입찰정보
                if($info[mb_id]){$mb = get_member($info[mb_id]); $tender_status="경매 낙찰자 : <span style='color:green;font-size:1.30rem;'>".$mb[mb_nick]."</span>&nbsp;&nbsp;&nbsp;".$info['auction_off_method']." 낙찰 금액 : <span style='color:red;font-size:1.2rem;'>".number_format($info[auction_off_point])." Point</span>";}
                if($info[tender_count]){$tender_list=1;} else {$tender_list=0;};
                //입찰정보
                break;
        case 3: // 유찰
                //경매정보
                $auction_status = "경매가 ".auction_status($info[status])." 되었습니다.";
                $auction_status_overlay = "경매 ".auction_status($info[status]);
                $auction_status_color = "red";
                //입찰정보
                $tender_status="경매가 ".auction_status($info[status])." 되었습니다.";
                if($info[tender_count]){$tender_list=1;} else {$tender_list=0;};
                //입찰정보
                break;
}

$auction_category_title = trim($view['ca_name']);
if (!$auction_category_title) {
    $auction_category_title = trim($board['bo_subject']);
}

$auction_board_title = (isset($board['bo_subject']) && trim($board['bo_subject'])) ? trim($board['bo_subject']) : '';
if (!$auction_board_title || $auction_board_title === $auction_category_title || preg_match('/rpc|auction/i', $auction_board_title)) {
    $auction_board_title = '원격제어컴퓨터(경매)';
}

$auction_item_title = $auction_category_title ? $auction_category_title : 'Remote PC';

$auction_category_count = 0;
if ($auction_category_title && isset($write_table) && $write_table) {
    $ca_name_sql = function_exists('sql_escape_string') ? sql_escape_string($auction_category_title) : addslashes($auction_category_title);
    $row_ca_cnt = sql_fetch(" select count(*) as cnt from {$write_table} where wr_is_comment = '0' and ca_name = '{$ca_name_sql}' ");
    $auction_category_count = isset($row_ca_cnt['cnt']) ? (int)$row_ca_cnt['cnt'] : 0;
}
/////////////경매정보////////////////////
?>

<!-- 게시물 읽기 시작 { -->
<!-- <div id="bo_v_table"><?php echo $board['bo_subject']; ?></div> // 처리 -->

<article id="bo_v" style="width:<?php echo $width; ?>">
    <header class="auction-page-title item-nav">
        <span class="page-nav pull-right text-muted">
            <i class="fa fa-home"></i>
            홈 &gt; <span class="text-muted"><?php echo get_text($auction_board_title); ?></span> &gt; <span class="text-muted"><?php echo get_text($auction_item_title); ?><?php if ($auction_category_count > 0) { ?>(<?php echo number_format($auction_category_count); ?>)<?php } ?></span>
        </span>
        <h3 class="div-title-underbar">
            <span class="div-title-underbar-bold font-22 border-color">
                <?php if (isset($_auc_it_ca_id)) echo auction_item_badges_html($_auc_it_ca_id, isset($_auc_it_grade) ? $_auc_it_grade : ''); ?>
                <?php echo get_text($auction_item_title); ?>
            </span>
        </h3>
    </header>

    <section id="bo_v_info" style="display:none;"></section>

    <?php
    if ($view['file']['count']) {
        $cnt = 0;
        for ($i=0; $i<count($view['file']); $i++) {
            if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
                $cnt++;
        }
    }
     ?>

    <?php if($cnt=0) { //감추기 ?>
    <!-- 첨부파일 시작 { -->
    <section id="bo_v_file">
        <h2>첨부파일</h2>
        <ul>
        <?php
        // 가변 파일
        for ($i=0; $i<count($view['file']); $i++) {
            if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {
         ?>
            <li>
                <a href="<?php echo $view['file'][$i]['href'];  ?>" class="view_file_download">
                    <img src="<?php echo $board_skin_url ?>/img/icon_file.gif" alt="첨부">
                    <strong><?php echo $view['file'][$i]['source'] ?></strong>
                    <?php echo $view['file'][$i]['content'] ?> (<?php echo $view['file'][$i]['size'] ?>)
                </a>
                <span class="bo_v_file_cnt"><?php echo $view['file'][$i]['download'] ?>회 다운로드</span>
                <span>DATE : <?php echo $view['file'][$i]['datetime'] ?></span>
            </li>
        <?php
            }
        }
         ?>
        </ul>
    </section>
    <!-- } 첨부파일 끝 -->
    <?php } ?>

    <?php if ($view['link']=0) { //감추기 ?>
     <!-- 관련링크 시작 { -->
    <section id="bo_v_link">
        <h2>관련링크</h2>
        <ul>
        <?php
        // 링크
        $cnt = 0;
        for ($i=1; $i<=count($view['link']); $i++) {
            if ($view['link'][$i]) {
                $cnt++;
                $link = cut_str($view['link'][$i], 70);
         ?>
            <li>
                <a href="<?php echo $view['link_href'][$i] ?>" target="_blank">
                    <img src="<?php echo $board_skin_url ?>/img/icon_link.gif" alt="관련링크">
                    <strong><?php echo $link ?></strong>
                </a>
                <span class="bo_v_link_cnt"><?php echo $view['link_hit'][$i] ?>회 연결</span>
            </li>
        <?php
            }
        }
         ?>
        </ul>
    </section>
    <!-- } 관련링크 끝 -->
    <?php } ?>

    <!-- 게시물 상단 버튼 시작 { -->
    <div id="bo_v_top">
        <?php
        ob_start();
         ?>
        <?php if ($prev_href || $next_href) { ?>
        <ul class="bo_v_nb">
            <?php if ($prev_href) { ?><li><a href="<?php echo $prev_href ?>&s=<?php echo $s?>&pcnum=<?php echo $info['pcnum']?>" class="btn_b01 btn">이전경매상품</a></li><?php } ?>
            <?php if ($next_href) { ?><li><a href="<?php echo $next_href ?>&s=<?php echo $s?>&pcnum=<?php echo $info['pcnum']?>" class="btn_b01 btn">다음경매상품</a></li><?php } ?>
        </ul>
        <?php } ?>

        <?php /*
        <ul class="bo_v_com">
            <?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>&s=<?php echo $s?>&pcnum=<?php echo $info['pcnum']?>" class="btn_b01 btn">수정</a></li><?php } ?>
            <?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>&s=<?php echo $s?>&pcnum=<?php echo $info['pcnum']?>" class="btn_b01 btn" onclick="del(this.href); return false;">삭제</a></li><?php } ?>
            <!-- <?php if ($copy_href) { ?><li><a href="<?php echo $copy_href ?>&s=<?php echo $s?>&pcnum=<?php echo $info['pcnum']?>" class="btn_admin btn" onclick="board_move(this.href); return false;">복사</a></li><?php } ?> -->
            <!-- <?php if ($move_href) { ?><li><a href="<?php echo $move_href ?>&s=<?php echo $s?>&pcnum=<?php echo $info['pcnum']?>" class="btn_admin btn" onclick="board_move(this.href); return false;">이동</a></li><?php } ?> -->
            <?php if ($search_href) { ?><li><a href="<?php echo $search_href ?>&s=<?php echo $s?>&pcnum=<?php echo $info['pcnum']?>" class="btn_b01 btn">검색</a></li><?php } ?>
            <li><a href="<?php echo $list_href ?>&s=<?php echo $s?>&pcnum=<?php echo $info['pcnum']?>" class="btn_b01 btn">목록</a></li>
            <!-- <?php if ($reply_href) { ?><li><a href="<?php echo $reply_href ?>&s=<?php echo $s?>&pcnum=<?php echo $info['pcnum']?>" class="btn_b01 btn">답변</a></li><?php } ?> -->
            <!-- <?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>&s=<?php echo $s?>&pcnum=<?php echo $info['pcnum']?>" class="btn_b02 btn">글쓰기</a></li><?php } ?> -->
        </ul>
        */ ?>
        <?php
        $link_buttons = ob_get_contents();
        ob_end_flush();
         ?>
    </div>
    <!-- } 게시물 상단 버튼 끝 -->

    <section id="bo_v_atc">
        <h2 id="bo_v_atc_title">본문</h2>

        <?php
        // 파일 출력
        $v_img_count = count($view['file']);
        if($v_img_count=0) { // 처리
            echo "<div id=\"bo_v_img\">\n";

            for ($i=0; $i<=count($view['file']); $i++) {
                if ($view['file'][$i]['view']) {
                    //echo $view['file'][$i]['view'];
                    echo get_view_thumbnail($view['file'][$i]['view']);
                }
            }
            echo "</div>\n";
        }
         ?>

        <!-- ////////////경매정보////////////  -->
        <?php
        $border_td_height="1";//구분 td
        ?>
        <div><!-- div1 -->
        <?php if (!G5_IS_MOBILE) { ?>
        <div class="auction-hero-wrap">
                <div class="auction-stats-grid">
                    <div class="a-stat-card">
                        <span class="asl">경매 상태</span>
                        <span class="asv <?php
                            if($info[status]=='1') echo 'ast-running';
                            elseif($info[status]=='2') echo 'ast-sold';
                            elseif($info[status]=='3') echo 'ast-failed';
                            else echo 'ast-pending';
                        ?>"><?php echo strip_tags($auction_status); ?></span>
                    </div>
                    <div class="a-stat-card asc-bid">
                        <span class="asl"><?php echo ($_valid_bidder > 0) ? '현재&nbsp;'.$info['auction_off_method'] : '시작가'; ?></span>
                        <span class="asv"><?php echo number_format($super[point]); ?>&nbsp;<small style="font-size:12px;font-weight:600">P</small></span>
                    </div>
                    <div class="a-stat-card asc-count">
                        <span class="asl">입찰 참여</span>
                        <span class="asv"><?php if($is_admin) echo number_format($tender_mb_id_count)."명&nbsp;"; echo number_format($_valid_bidder > 0 ? $info[tender_count] : 0); ?>&nbsp;<small style="font-size:12px;font-weight:600">회</small></span>
                    </div>
                    <?php if($info[status]=='1') { ?>
                    <div class="a-stat-card asc-timer">
                        <span class="asl">남은 시간</span>
                        <span class="asv" id="hero_timer_val">–</span>
                    </div>
                    <?php } ?>
                    <?php if(($info[tender_count]>0)&&($info[tender_method]=="공개"||$is_admin)){foreach($super_mb_id as $mb_id){$mb=get_member($mb_id); ?>
                    <div class="a-stat-card asc-leader">
                        <span class="asl">최고가 입찰자</span>
                        <span class="asv" style="font-size:15px;"><?php echo masking('N',$mb[mb_nick]); ?></span>
                    </div>
                    <?php }} ?>
                </div>
        </div><!-- /.auction-hero-wrap -->
        <?php } ?>
        <table class="auction-detail-layout" style="width:100%;"><!-- table1 -->
        <?php if (!G5_IS_MOBILE) { ?>
        <tr><!-- table1 tr1 -->
        <td class="image-container">
            <div class="image-visual">
                <img src="<?php echo $img_1 ?>" alt="Image">
            </div>
            <div class="overlay-bottom-text"><?php if(!empty($info['pcnum'])): ?><span><span class="ovb-label">상품명</span>&nbsp;<b>RPC-<?php echo htmlspecialchars($info['pcnum']); ?></b></span><?php endif; ?><span><span class="ovb-label">판매자</span>&nbsp;<b><?php echo $view['name']; ?></b>&nbsp;&nbsp;<?php echo apms_get_star($list[$i]['it_use_avg'], 'fa-sm red'); ?></span><span class="ovb-manner"><span style="color:#888;">매너온도</span>&nbsp;<b><?php echo get_pt_manner_temperature($view[mb_id]); ?></b></span><span><span class="ovb-label">등록일시</span>&nbsp;<?php echo date("Y-m-d H:i", strtotime($view['wr_datetime'])) ?></span><span><span class="ovb-label">조회횟수</span>&nbsp;<?php echo number_format($view['wr_hit']); ?>회</span></div>
        </td>
        <td class="auction-info-col">
            <div class="auction-left-spec">
                <table class="auction-left-spec-table">
                    <?php if (isset($_auc_it_grade) && ($_auc_it_grade !== '' || isset($_auc_it_ca_id))): ?>
                    <tr class="spec-id-row"><th>상품종류 / 등급</th><td style="padding:5px 8px;">
                        <?php echo auction_item_badges_html(isset($_auc_it_ca_id) ? $_auc_it_ca_id : '20', isset($_auc_it_grade) ? $_auc_it_grade : ''); ?>
                        <span style="display:inline-block;font-size:11px;color:#64748b;vertical-align:middle;margin-left:2px;">원격제어컴퓨터</span>
                    </td></tr>
                    <?php endif; ?>
                    <tr><th>경매 시작일</th><td><?php echo($info['start_datetime']);?></td></tr>
                    <tr><th>경매 종료일</th><td><?php echo($info['end_datetime']);?></td></tr>
                    <tr><th>입찰 시작가</th><td><?php echo(number_format($info['tender_lower']));?> P</td></tr>
                    <tr><th class="buy-now-label">즉시 구매가</th><td><?php if($info['buy_now_price'] > 0){ ?><span class="buy-now-price"><?php echo(number_format($info['buy_now_price']));?> P</span><?php } else {echo("없음");}?></td></tr>
                    <tr><th>입찰 단위</th><td><?php echo(number_format($info['tender_unit']));?> P</td></tr>
                    <?php
                    $_tm = $info['tender_method'];
                    $_am = $info['auction_off_method'];
                    $_tm_label = ($_tm === '공개') ? '공개' : '비공개';
                    $_am_label = ($_am === '최고가') ? '최고가' : '최저가';
                    $_tm_key   = ($_tm === '공개') ? 'bid_open'  : 'bid_closed';
                    $_am_key   = ($_am === '최고가') ? 'win_high' : 'win_low';
                    ?>
                    <tr><th>경매 방식</th><td>
                        <span class="am-tag"><?php echo $_tm_label; ?><button type="button" class="am-info-btn" onclick="showAuctionTermPopup('<?php echo $_tm_key; ?>')" title="설명 보기">i</button></span>
                        <span class="am-sep">/</span>
                        <span class="am-tag"><?php echo $_am_label; ?><button type="button" class="am-info-btn" onclick="showAuctionTermPopup('<?php echo $_am_key; ?>')" title="설명 보기">i</button></span>
                    </td></tr>
                    <?php
                    $_rental_h = (int)$info['rpc_rental_hours'];
                    if($_rental_h > 0) {
                        $_rd = floor($_rental_h/24); $_rh2 = $_rental_h%24;
                        $_rs = ($_rd>0?$_rd.'일':'').($_rh2>0?($_rd>0?' ':'').$_rh2.'시간':''); if(!$_rs)$_rs=$_rental_h.'시간';
                        $_ext11 = isset($it['it_11']) ? $it['it_11'] : '';
                        $_ext_b = ($_ext11 === '1')
                            ? '<span style="display:inline-block;font-size:10px;font-weight:600;color:#fff;background:#3b82f6;border-radius:3px;padding:1px 5px;margin-left:4px;">연장가능</span>'
                            : '<span style="display:inline-block;font-size:10px;font-weight:600;color:#fff;background:#9ca3af;border-radius:3px;padding:1px 5px;margin-left:4px;">기간 연장 불가</span>';
                        echo '<tr class="rental-row"><th>이용 기간</th><td><span style="color:#007bff;">'.$_rs.'</span></td></tr>';
                    } ?>
                    <?php
                    $_install_price = isset($it['it_install_price']) ? (int)$it['it_install_price'] : 0;
                    $_install_str = $_install_price > 0 ? number_format($_install_price).' P' : '없음';
                    $_install_color = $_install_price > 0 ? '#007bff' : '#9ca3af';
                    ?>
                    <tr><th>설치비/개통비</th><td><span style="color:<?php echo $_install_color; ?>"><?php echo $_install_str; ?></span><?php if($_install_price > 0): ?>&nbsp;<small style="color:#9ca3af;font-size:10px;">낙찰 후 별도 청구</small><?php endif; ?></td></tr>
                </table>
            </div>
        </td>
        <td style="width:2%;">&nbsp;</td>
        <td class="auction-spec-wrap" style="vertical-align:top;"><!-- 입찰세부정부 -->
            <table class="auction-spec-table" style="width:100%;"><!-- table2 -->
            <!-- <tr><td style="width:auto;min-width:60px;max-width:60px;">&nbsp;&nbsp;서버실명&nbsp;</td><td style=""><?php if($view['wr_link1']){?><a href="<?php echo $view['link_href'][1] ?>" target="_blank">☞&nbsp;&nbsp;<?php }?><?php echo($info['company']);?><?php if($view['wr_link1']){?></a><?php }?></td></tr> -->
            <?php echo($product_display); ?>
            <?php /*
            <tr>
                <td style="width:auto;min-width:60px;max-width:60px;">&nbsp;&nbsp;입찰 금액&nbsp;</td>
                <td>

                    <?php
                    if ($info['tender_lower'] > 0) {
                        echo "<span style='font-size:0.75rem;color:black;'>(" . $info['lower_label'] . ")</span> " . number_format($info['tender_lower']) . "&nbsp;Point";
                    }
                    ?>
                    &nbsp;~&nbsp;
                    <span style='font-size:0.75rem;color:black;'>(<?php echo $info['higher_label']; ?>)</span>
                    <?php
                    if ($info['tender_higher'] > 0) {
                        echo number_format($info['tender_higher']);
                    }
                    ?>&nbsp;Point
                </td>
            </tr>
            */ ?>
            <!-- PC모드 -->
            <tr><td colspan="2" style="border-top:1px solid #E0E0E0;height:<?php echo($border_td_height);?>px;"></td></tr>
            <tr style="display:none;"><td style="width:auto;min-width:60px;max-width:60px;">&nbsp;&nbsp;배송 방법&nbsp;</td><td style=""><?php echo($info['delivery_method']);?></td></tr>
            <tr style="display:none;"><td style="width:auto;min-width:60px;max-width:60px;">&nbsp;&nbsp;배송 비용&nbsp;</td><td style=""><?php if(preg_match("/[0-9]/",$info['delivery_price'])){echo(number_format(intval($info['delivery_price']))."&nbsp;Point");} else {echo($info['delivery_price']);}?></td></tr>
            </table><!-- table2 -->
        </td><!-- 입찰세부정부 -->
        </tr><!-- table1 tr1 -->
        <?php } else { ?>
        <tr><!-- table1 tr1 -->
        <td class="image-container" colspan="3">
            <img src="<?php echo $img_1 ?>" alt="Image">
            <div class="overlay-bottom-text"><span><?php echo $view['name']; ?>&nbsp;&nbsp;<span style="opacity:.8;">매너온도</span>&nbsp;<b><?php echo get_pt_manner_temperature($view[mb_id]); ?></b></span><span class="ovb-reg"><?php echo date("Y-m-d H:i", strtotime($view['wr_datetime'])) ?></span></div>
        </td>
        </tr><!-- table1 tr1 -->
        <tr>
        <td class="auction-spec-wrap" colspan="3" style="vertical-align:top;"><!-- 입찰세부정부 -->
            <table class="auction-spec-table" style="width:100%;"><!-- table2 -->
            <?php if($super[point] && ($info[status]=='1')){ ?>
            <tr><td colspan="2" style="text-align:center;border:1px solid #007bff;"><?php if($super[count]){?>현재&nbsp;<?php echo($info['auction_off_method']);?>&nbsp;[입찰금액]&nbsp;<?php } else {echo("[시작가]");}?>&nbsp;&nbsp;<span style="color:red;"><?php echo(number_format($super[point]));?>&nbsp;Point</span>&nbsp;<?php if($super[count] && ($info[tender_method]=="공개" || $is_admin)){foreach($super_mb_id as $mb_id){$mb = get_member($mb_id);echo("&nbsp;&nbsp;[입찰자]&nbsp;".masking('N',$mb[mb_nick]));}}?></td></tr>
            <tr><td colspan="2" style="border-top:1px solid #E0E0E0;height:<?php echo($border_td_height);?>px;"></td></tr>
            <?php } ?>
            <tr><td colspan="2" class="mobile-section-title">상품 정보</td></tr>
            <?php echo($product_display); ?>

            <tr><td colspan="2" class="mobile-section-title">경매 정보</td></tr>
            <tr><td class="mobile-label">경매시작</td><td class="mobile-value"><?php echo($info['start_datetime']);?></td></tr>
            <tr><td class="mobile-label">경매종료</td><td class="mobile-value"><?php echo($info['end_datetime']);?></td></tr>
            <tr><td class="mobile-label">입찰시작</td><td class="mobile-value"><?php echo(number_format($info['tender_lower']) . " Point");?></td></tr>
            <?php /*
            <tr>
                <td style="width:auto;min-width:60px;max-width:60px;">&nbsp;&nbsp;입찰 금액&nbsp;</td>
                <td>

                    <?php
                    if ($info['tender_lower'] > 0) {
                        echo "<span style='font-size:0.75rem;color:black;'>(" . $info['lower_label'] . ")</span> " . number_format($info['tender_lower']) . "&nbsp;Point";
                    }
                    ?>
                    &nbsp;~&nbsp;
                    <span style='font-size:0.75rem;color:black;'>(<?php echo $info['higher_label']; ?>)</span>
                    <?php
                    if ($info['tender_higher'] > 0) {
                        echo number_format($info['tender_higher']);
                    }
                    ?>&nbsp;Point
                </td>
            </tr>
            */ ?>
            <!-- 모바일 모드 -->
            <tr><td class="mobile-label">즉시구매</td><td class="mobile-value"><?php if($info['buy_now_price'] > 0){ ?><span style="color:blue;"><?php echo(number_format($info['buy_now_price']));?></span>&nbsp;Point<?php } else {echo("없음");}?></td></tr>
            <tr><td class="mobile-label">입찰단위</td><td class="mobile-value"><?php echo(number_format($info['tender_unit']));?>&nbsp;Point</td></tr>
            <tr><td class="mobile-label">입찰방식</td><td class="mobile-value"><?php echo($info['tender_method']);?></td></tr>
            <tr><td class="mobile-label">낙찰방식</td><td class="mobile-value"><?php echo($info['auction_off_method']);?></td></tr>
            <tr><td class="mobile-label">입찰횟수</td><td class="mobile-value"><?php if($is_admin){echo(number_format($tender_mb_id_count)." 명, ");}?><?php echo(number_format($info[tender_count]));?>&nbsp;회&nbsp;참여</td></tr>
            <tr><td class="mobile-label">최종상태</td><td class="mobile-value"><span style="color:<?php echo($auction_status_color);?>; font-weight:normal;"><?php echo($auction_status);?></span></td></tr>

            <tr><td colspan="2" class="mobile-section-title">판매자 정보</td></tr>
            <tr><td class="mobile-label">판매자</td><td class="mobile-value mobile-seller-value"><?php echo $view['name'] ?>&nbsp;&nbsp;<?php echo apms_get_star($list[$i]['it_use_avg'], 'fa-lg red'); ?>&nbsp;&nbsp;<span style="color:#555;">매너온도</span>&nbsp;<b><?php echo get_pt_manner_temperature($view[mb_id]); ?></b></td></tr>
            <tr><td class="mobile-label">등록일</td><td class="mobile-value"><?php echo date("Y-m-d H:i", strtotime($view['wr_datetime'])) ?></td></tr>
            <tr><td class="mobile-label">조회</td><td class="mobile-value"><?php echo number_format($view['wr_hit']) ?>회</td></tr>

            <tr><td colspan="2" style="border-top:1px solid #E0E0E0;height:<?php echo($border_td_height);?>px;"></td></tr>
            <tr style="display:none;"><td style="width:auto;min-width:60px;max-width:60px;">&nbsp;&nbsp;배송방법&nbsp;</td><td style=""><?php echo($info['delivery_method']);?></td></tr>
            <tr style="display:none;"><td style="width:auto;min-width:60px;max-width:60px;">&nbsp;&nbsp;배송비용&nbsp;</td><td style=""><?php if(preg_match("/[0-9]/",$info['delivery_price'])){echo(number_format(intval($info['delivery_price']))."&nbsp;Point");} else {echo($info['delivery_price']);}?></td></tr>
            </table><!-- table2 -->
        </td><!-- 입찰세부정부 -->
        </tr>
        <?php } ?>
        <?php $cspan = G5_IS_MOBILE ? 3 : 4; ?>
        <tr class="auction-status-gap"><td colspan="<?php echo $cspan; ?>"></td></tr>
        <tr><td colspan="<?php echo $cspan; ?>" class="auction-status-box auction-bid-card"><!-- 입찰정보 -->

        <div class="bid-card">
        <div class="bid-card-hd">
            <span class="bid-card-hd-title">입찰하기</span>
            <?php if($info[status]=='1') { ?>
            <span class="bid-card-hd-timer"><span id="bid_card_timer_val">–</span> 남음</span>
            <?php } ?>
        </div>
        <button type="button" class="bid-guide-btn"
            onclick="(function(b){var p=document.getElementById('bid_guide_body');var s=p.style.display!=='block';p.style.display=s?'block':'none';b.classList.toggle('bgo',s);})(this)">
            <span>&#128161; 경매가 처음이세요? 입찰 방법 안내 보기</span>
            <span class="bgi">&#9660;</span>
        </button>
        <div class="bid-guide-body" id="bid_guide_body">
            <div class="bid-guide-row">
                <div class="bgr-step"><span class="bgr-n">1</span><span class="bgr-t">스펙 확인</span><span class="bgr-d">위의 사양표에서<br>원하는 PC를 확인하세요</span></div>
                <div class="bgr-step"><span class="bgr-n">2</span><span class="bgr-t">금액 입력</span><span class="bgr-d"><?php echo($info['auction_off_method']=='최고가') ? '현재가+단위 이상' : '현재가-단위 이하'; ?><br>금액을 입력하세요</span></div>
                <div class="bgr-step"><span class="bgr-n">3</span><span class="bgr-t">입찰서 제출</span><span class="bgr-d">「입찰서 제출」 버튼을<br>눌러 확정하세요</span></div>
                <div class="bgr-step"><span class="bgr-n">4</span><span class="bgr-t">결과 확인</span><span class="bgr-d">경매 종료 후<br>낙찰 결과를 확인하세요</span></div>
            </div>
            <p class="bid-guide-note">&#8251; <strong><?php echo $info['auction_off_method']; ?> 낙찰</strong> 방식 &mdash; 회원당 총 <?php echo number_format($info[tender_possible_count]); ?>회, 하루 최대 <?php echo number_format($info[day_limit]); ?>회 입찰 가능</p>
        </div>
        <div class="bid-card-body">
        <!-- 입찰 폼 -->
        <form name="auction_tender" id="auction_tender" method="post" action="<?php echo $board_skin_url; ?>/tender.php" onkeydown="if(event.keyCode==13) return false;" onsubmit="return tender_send();" target=hiddenframe style="margin:0">
        <input type="hidden" name="bo_table" value="<?php echo $bo_table?>">
        <input type="hidden" name="wr_id" value="<?php echo $wr_id?>">
        <input type="hidden" name="tender_unit" id="tender_unit" value="<?php echo($info['tender_unit']);?>">

        <!-- 입찰 상태 -->
        <div class="tender-status-inline"><?php echo($tender_status);?></div>

        <?php if($info[status] == '1'){ //입찰폼?>
            <?php
                $bid_max_point = (int)$info['tender_higher'];
                if ((int)$info['buy_now_price'] > 0) {
                    $bid_max_point = ($bid_max_point > 0) ? min($bid_max_point, (int)$info['buy_now_price']) : (int)$info['buy_now_price'];
                }
                if ($bid_max_point <= 0) {
                    $bid_max_point = (int)$info['tender_higher'];
                }
            ?>
            <script>
                function showAuctionBidToast(message, reason) {
                    var toast = document.getElementById('auction_bid_toast');
                    if (!toast || !message) return;

                    if (reason && toast.dataset.reason === reason && toast.classList.contains('show')) {
                        return;
                    }

                    var level = (reason === 'bid-eq-max') ? 'info' : 'warn';
                    var icon = (level === 'info') ? 'ℹ️' : '⚠️';
                    toast.dataset.level = level;
                    toast.dataset.reason = reason || '';

                    var iconEl = toast.querySelector('.toast-icon');
                    var textEl = toast.querySelector('.toast-text');
                    if (!iconEl || !textEl) {
                        toast.innerHTML = '<span class="toast-icon" aria-hidden="true"></span><span class="toast-text"></span>';
                        iconEl = toast.querySelector('.toast-icon');
                        textEl = toast.querySelector('.toast-text');
                    }

                    if (iconEl) iconEl.textContent = icon;
                    if (textEl) textEl.textContent = message;
                    toast.classList.add('show');

                    if (window.__auctionBidToastTimer) {
                        clearTimeout(window.__auctionBidToastTimer);
                    }
                    window.__auctionBidToastTimer = setTimeout(function() {
                        toast.classList.remove('show');
                    }, 1800);
                }

                document.addEventListener('DOMContentLoaded', function () {
                    var input = document.getElementById('point');
                    if (!input) return;

                    input.addEventListener('input', function (e) {
                        var value = e.target.value;
                        // Remove any characters that are not digits
                        var sanitizedValue = value.replace(/[^0-9]/g, ''); // Changed regex
                        if (value !== sanitizedValue) {
                            value = sanitizedValue;
                            e.target.value = sanitizedValue;
                        }

                        var maxBid = parseInt(e.target.max, 10);
                        var minBid = parseInt(e.target.min, 10);
                        var numericValue = parseInt(value || '0', 10);

                        if (!isNaN(maxBid) && maxBid > 0 && !isNaN(numericValue) && numericValue > maxBid) {
                            e.target.value = String(maxBid);
                            showAuctionBidToast("입찰 최고가(" + number_format(maxBid) + " Point)를 초과할 수 없습니다.", 'bid-over-max');
                            return;
                        }

                        if (!isNaN(maxBid) && maxBid > 0 && !isNaN(numericValue) && numericValue === maxBid) {
                            showAuctionBidToast("최대입찰가(" + number_format(maxBid) + " Point)에 도달했습니다.", 'bid-eq-max');
                        }

                        if (!isNaN(minBid) && minBid > 0 && !isNaN(numericValue) && numericValue < minBid) {
                            showAuctionBidToast("입찰 최저금액은 " + number_format(minBid) + " P 이상이어야 합니다.", 'bid-lte-min');
                        }
                    });

                    input.addEventListener('blur', function(e) {
                        var minBid = parseInt(e.target.min, 10);
                        var val = parseInt(e.target.value || '0', 10);
                        if (!isNaN(minBid) && minBid > 0 && val < minBid) {
                            e.target.value = minBid;
                            showAuctionBidToast("입찰 최저금액 " + number_format(minBid) + " P로 자동 조정됐습니다.", 'bid-lte-min');
                        }
                    });

                    input.addEventListener('keydown', function (e) {
                        // Allow: backspace, delete, tab, escape, enter, period (for decimal), and navigation keys
                        if (
                            [46, 8, 9, 27, 13, 110, 190].indexOf(e.keyCode) !== -1 ||
                            // Allow: Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X
                            (e.keyCode === 65 && (e.ctrlKey || e.metaKey)) ||
                            (e.keyCode === 67 && (e.ctrlKey || e.metaKey)) ||
                            (e.keyCode === 86 && (e.ctrlKey || e.metaKey)) ||
                            (e.keyCode === 88 && (e.ctrlKey || e.metaKey)) ||
                            // Allow: home, end, left, right, down, up
                            (e.keyCode >= 35 && e.keyCode <= 40)
                        ) {
                            // Let it happen, don't do anything
                            return;
                        }
                        // Ensure that it is a number and stop the keypress
                        if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
                            e.preventDefault();
                            return;
                        }

                        var maxBid = parseInt(input.max, 10);
                        if (!isNaN(maxBid) && maxBid > 0) {
                            var nextValue = input.value + String.fromCharCode(e.keyCode >= 96 ? e.keyCode - 48 : e.keyCode);
                            var nextNumber = parseInt(nextValue, 10);
                            if (!isNaN(nextNumber) && nextNumber > maxBid) {
                                e.preventDefault();
                                showAuctionBidToast("입찰 최고가(" + number_format(maxBid) + " Point)를 초과할 수 없습니다.", 'bid-over-max');
                            }
                        }
                    });
                });
            </script>
            <div class="info-container">
                <?php if (!empty($member['mb_id'])) { ?>
                <span class="info-text">
                    <?php echo $member['mb_name']; ?>&nbsp;(<?php echo $member['mb_id']; ?>)님&nbsp;<?php echo (G5_IS_MOBILE)?"<br>":"&nbsp;";?>보유포인트&nbsp;<?php echo number_format($member['mb_point']); ?> P
                </span>
                <?php
                    if ($info['auction_off_method']=="최고가") {
                        $default_bid_value = $super[point] + $info['tender_unit'];
                    } else {
                        $default_bid_value = $super[point] - $info['tender_unit'];
                    }
                    if ((int)$default_bid_value > (int)$member['mb_point']) {
                        echo "<span style='color:orangered;font-weight:700;'>포인트 부족!</span>";
                    }
                ?>
                <button onclick="openChargeModal(); return false;" class="btn-b02" style="font-size:inherit;">포인트 충전</button>
                <?php } else { ?>
                <span class="info-text" style="color:#374151;">
                    입찰에 참여하려면
                    <a href="<?php echo G5_BBS_URL; ?>/login.php?url=<?php echo urlencode(G5_URL.'/bbs/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id); ?>"
                       style="color:#2563eb;font-weight:800;text-decoration:underline;">로그인</a>이 필요합니다.
                </span>
                <?php } ?>
            </div>
            <?php $_rbh=(int)$info['rpc_rental_hours']; if($_rbh>0){$_rbd=floor($_rbh/24);$_rbh2=$_rbh%24;$_rbs=($_rbd>0?$_rbd.'일':'').($_rbh2>0?($_rbd>0?' ':'').$_rbh2.'시간':'');if(!$_rbs)$_rbs=$_rbh.'시간'; ?>
            <div class="rental-notice-bar">
                <div class="rnb-row-main">
                    <span class="rnb-icon">⏱</span>
                    <span class="rnb-label">낙찰시 이용 기간</span>
                    <strong class="rnb-value"><?php echo $_rbs; ?></strong>
                    <span class="rnb-sub">낙찰 확정 즉시 시작 &rarr; <?php echo $_rbs; ?> 후 종료</span>
                    <?php $_ext11 = isset($it['it_11']) ? $it['it_11'] : ''; if($_ext11 === '1'): ?>
                    <span class="auction-ext-ok" style="display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:4px;padding:2px 8px;margin-left:6px;">🔄 기간 연장 가능</span>
                    <?php else: ?>
                    <span class="auction-ext-no" style="display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:500;color:#6b7280;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:4px;padding:2px 8px;margin-left:6px;">🔒 기간 연장 불가</span>
                    <?php endif; ?>
                </div>
                <div class="rnb-row-warn">
                    <span class="rnb-warn-icon">⚠</span>
                    입찰 금액은 <strong>1시간 또는 1일 요금이 아닙니다.</strong>&nbsp;
                    낙찰 시 <strong class="rnb-period-em"><?php echo $_rbs; ?></strong> 전체를
                    이용할 수 있는 <strong>총 이용요금</strong>입니다.&nbsp;
                    시간당·일당 환산 단가는 아래에서 확인하세요.
                </div>
                <?php $_ip = isset($it['it_install_price']) ? (int)$it['it_install_price'] : 0; if($_ip > 0): ?>
                <div class="rnb-row-warn" style="color:#92400e;background:#fffbeb;border-top:1px solid #fde68a;">
                    <span class="rnb-warn-icon">💳</span>
                    설치비/개통비 <strong style="color:#d97706;font-size:1.05em;"><?php echo number_format($_ip); ?> P</strong>가
                    별도로 청구됩니다.&nbsp;<strong>입찰액에는 포함되지 않습니다.</strong>
                </div>
                <?php endif; ?>
            </div>
            <?php } ?>


            <?php
            // 낙찰자 개통비 납부 안내 배너
            if ($is_member && !empty($info['mb_id']) && $member['mb_id'] === $info['mb_id']) {
                $_ao = sql_fetch(" SELECT install_fee, install_fee_status, install_fee_deadline FROM {$g5['write_auction_off_table']} WHERE wr_id={$info['wr_id']} LIMIT 1 ");
                $_ao_fee    = $_ao ? (int)$_ao['install_fee'] : 0;
                $_ao_status = $_ao ? (int)$_ao['install_fee_status'] : 0;
                $_ao_dl     = $_ao ? $_ao['install_fee_deadline'] : '';
                if ($_ao_fee > 0 && $_ao_status === 2): // ── 자동차감 완료 ──
            ?>
            <div style="margin:12px 0;padding:12px 16px;background:#d1fae5;border:1px solid #6ee7b7;border-radius:8px;font-size:13px;color:#065f46;">
                ✅ <strong>개통비 <?php echo number_format($_ao_fee); ?>P가 포인트에서 자동 차감됐습니다.</strong>
                판매자가 서비스를 준비하는 대로 이용하실 수 있습니다.
            </div>
            <?php elseif ($_ao_fee > 0 && $_ao_status === 1): // ── 잔액 부족, 납부 버튼 표시 ──
            ?>
            <div id="install-fee-banner" style="margin:12px 0;padding:14px 16px;background:#fffbeb;border:1px solid #fbbf24;border-radius:8px;font-size:13px;">
                <div style="font-weight:700;color:#92400e;margin-bottom:6px;">💳 개통비 납부 필요 — 포인트 잔액 부족</div>
                <div style="color:#78350f;margin-bottom:8px;">
                    서비스 시작을 위해 개통비
                    <strong style="font-size:15px;color:#d97706;"><?php echo number_format($_ao_fee); ?> P</strong>가
                    필요합니다. 현재 포인트가 부족합니다.
                    <?php if ($_ao_dl): ?>
                    <div style="margin-top:4px;font-size:12px;color:#b45309;">⏰ 납부 마감: <strong><?php echo $_ao_dl; ?></strong> — 기한 초과 시 낙찰 자동 취소</div>
                    <?php endif; ?>
                </div>
                <button type="button" id="btn-pay-install-fee"
                    style="padding:8px 20px;background:#d97706;color:#fff;border:none;border-radius:6px;font-size:13px;font-weight:700;cursor:pointer;"
                    onclick="payInstallFee(<?php echo $info['wr_id']; ?>, <?php echo $_ao_fee; ?>)">
                    개통비 <?php echo number_format($_ao_fee); ?>P 납부하기
                </button>
                <div style="margin-top:6px;font-size:11px;color:#92400e;">
                    포인트 충전 후 위 버튼을 클릭하면 자동으로 납부 처리됩니다.
                </div>
            </div>
            <script>
            function payInstallFee(wrId, fee) {
                if (!confirm('개통비 ' + fee.toLocaleString() + 'P를 납부하시겠습니까?\n(보유 포인트에서 차감됩니다)')) return;
                var btn = document.getElementById('btn-pay-install-fee');
                btn.disabled = true; btn.textContent = '처리중...';
                fetch('<?php echo G5_BBS_URL; ?>/auction_install_fee_pay.php', {
                    method: 'POST',
                    headers: {'Content-Type': 'application/x-www-form-urlencoded'},
                    body: 'wr_id=' + wrId
                })
                .then(function(r){ return r.json(); })
                .then(function(r){
                    if (r.success) {
                        document.getElementById('install-fee-banner').outerHTML =
                            '<div style="margin:12px 0;padding:12px 16px;background:#d1fae5;border:1px solid #6ee7b7;border-radius:8px;font-size:13px;color:#065f46;">' +
                            '✅ <strong>' + r.message + '</strong> 판매자가 서비스를 준비하는 대로 이용하실 수 있습니다.</div>';
                    } else {
                        alert('납부 실패: ' + r.message);
                        btn.disabled = false;
                        btn.textContent = '개통비 ' + fee.toLocaleString() + 'P 납부하기';
                    }
                })
                .catch(function(){ alert('요청 실패. 잠시 후 다시 시도해 주세요.'); btn.disabled = false; });
            }
            </script>
            <?php endif; } ?>
            <div class="bid-container">
                <?php
                    if ((int)$super[count] > 0) {
                        if ($info['auction_off_method']=="최고가") {
                            $default_bid_value = $super[point] + $info['tender_unit'];
                        } else {
                            $default_bid_value = $super[point] - $info['tender_unit'];
                        }
                        if ($bid_max_point > 0 && (int)$default_bid_value > $bid_max_point) {
                            $default_bid_value = $bid_max_point;
                        }
                ?>
                        <div class="input-group auction-bid-input-group">
                            <div class="bid-input-wrap">
                                <span class="bid-input-hint">입찰액</span>
                                <input type="number" name="point" id="point" value="<?php echo $default_bid_value;?>" class="required" required numeric itemname="입찰 금액" placeholder=""
                                                    inputmode="numeric"
                                                    step="<?php echo $info['tender_unit']; ?>"
                                                    min="<?php echo ($info['auction_off_method']=='최고가') ? ((int)$super[point] + (int)$info['tender_unit']) : max((int)$info['tender_lower'], (int)$super[point] - (int)$info['tender_unit']); ?>"
                                                    max="<?php echo $bid_max_point; ?>">
                                <span class="bid-input-unit">Point</span>
                            </div>
                            <button type="button" class="btn-step" onclick="decrementStep()" aria-label="입찰 금액 감소">−</button>
                            <button type="button" class="btn-step" onclick="incrementStep()" aria-label="입찰 금액 증가">+</button>
                        </div>
                <?php
                    } else {
                        if ($info['auction_off_method']=="최고가") {
                                $default_bid_value = $info['tender_lower'];
                            } else {
                                $default_bid_value = $info['tender_higher'];
                            }
                        if ($bid_max_point > 0 && (int)$default_bid_value > $bid_max_point) {
                            $default_bid_value = $bid_max_point;
                        }
                ?>
                        <div class="input-group auction-bid-input-group">
                            <div class="bid-input-wrap">
                                <span class="bid-input-hint">입찰액</span>
                                <input type="number" name="point" id="point" value="<?php echo $default_bid_value;?>" class="required" required numeric itemname="입찰 금액" placeholder=""
                                                    inputmode="numeric"
                                                    step="<?php echo $info['tender_unit']; ?>"
                                                    min="<?php echo $info['tender_lower']; ?>"
                                                    max="<?php echo $bid_max_point; ?>">
                                <span class="bid-input-unit">Point</span>
                            </div>
                            <button type="button" class="btn-step" onclick="decrementStep()" aria-label="입찰 금액 감소">−</button>
                            <button type="button" class="btn-step" onclick="incrementStep()" aria-label="입찰 금액 증가">+</button>
                        </div>
                <?php } ?>
                <!-- Step control buttons -->
                <button class="btn-bid" onclick="tender_send(); return false;">입찰서제출</button>
                <script>
                    function decrementStep() {
                        var pointInput = document.getElementById('point');
                        var stepValue = parseFloat(pointInput.step);
                        var currentValue = parseFloat(pointInput.value);
                        var minValue = parseFloat(pointInput.min);
                        if (currentValue - stepValue >= minValue) {
                            pointInput.value = currentValue - stepValue;
                        } else {
                            pointInput.value = minValue;
                            showAuctionBidToast("입찰 가능 최저금액(" + number_format(minValue) + " Point) 이하입니다.", 'bid-lte-min');
                        }

                        var afterValue = parseFloat(pointInput.value);
                        if (!isNaN(minValue) && minValue > 0 && !isNaN(afterValue) && afterValue < minValue) {
                            showAuctionBidToast("입찰 가능 최저금액(" + number_format(minValue) + " Point) 이하입니다.", 'bid-lte-min');
                        }
                        var mb_point = <?php echo $member['mb_point']; ?>;
                        var pointInput = document.getElementById('point');
                        var warningMessage = document.getElementById('warning-message');

                        if (pointInput) {
                            var enteredValue = parseFloat(pointInput.value);
                            if (enteredValue > mb_point) {
                                warningMessage.style.display = 'block';
                                setTimeout(function() {
                                    warningMessage.style.display = 'none';
                                }, 30000); // 30초 후 메시지 숨김
                            } else {
                                warningMessage.style.display = 'none';
                            }
                        }
                    }

                    function incrementStep() {
                        var pointInput = document.getElementById('point');
                        var stepValue = parseFloat(pointInput.step);
                        var currentValue = parseFloat(pointInput.value);
                        var maxValue = parseFloat(pointInput.max);
                        var attemptedValue = currentValue + stepValue;
                        if (currentValue + stepValue <= maxValue) {
                            pointInput.value = currentValue + stepValue;
                        } else {
                            pointInput.value = maxValue;
                            showAuctionBidToast("입찰 최고가(" + number_format(maxValue) + " Point)를 초과할 수 없습니다.", 'bid-over-max');
                        }

                        var afterValue = parseFloat(pointInput.value);
                        if (!isNaN(maxValue) && maxValue > 0 && !isNaN(afterValue) && afterValue === maxValue) {
                            if (!isNaN(attemptedValue) && attemptedValue > maxValue) {
                                showAuctionBidToast("입찰 최고가(" + number_format(maxValue) + " Point)를 초과할 수 없습니다.", 'bid-over-max');
                            } else {
                                showAuctionBidToast("최대입찰가(" + number_format(maxValue) + " Point)에 도달했습니다.", 'bid-eq-max');
                            }
                        }
                        var mb_point = <?php echo $member['mb_point']; ?>;
                        var pointInput = document.getElementById('point');
                        var warningMessage = document.getElementById('warning-message');

                        if (pointInput) {
                            var enteredValue = parseFloat(pointInput.value);
                            if (enteredValue > mb_point) {
                                warningMessage.style.display = 'block';
                                setTimeout(function() {
                                    warningMessage.style.display = 'none';
                                }, 30000); // 30초 후 메시지 숨김
                            } else {
                                warningMessage.style.display = 'none';
                            }
                        }
                    }
                </script>
            </div>
            <?php if((int)$info['rpc_rental_hours'] > 0): ?>
            <div class="bid-rate-info" id="bid-rate-info">
                <span class="bri-total">입찰액 <strong id="bri-bid-amount">–</strong> P 기준</span>
                <span class="bri-sep">—</span>
                <span class="bri-item">1시간당 약 <strong id="bri-per-hour">–</strong> P</span>
                <span class="bri-sep">|</span>
                <span class="bri-item">1일당 약 <strong id="bri-per-day">–</strong> P</span>
            </div>
            <script>
            (function(){
                var _rbh = <?php echo (int)$info['rpc_rental_hours']; ?>;
                if(_rbh<=0) return;
                function _fmt(n){
                    if(n<1) return n.toFixed(2);
                    if(n<10) return n.toFixed(1);
                    return Math.round(n).toString().replace(/\B(?=(\d{3})+(?!\d))/g,',');
                }
                function _upd(){
                    var inp=document.getElementById('point');
                    var v=inp?parseFloat(inp.value)||0:0;
                    var ph=v/_rbh, pd=ph*24;
                    var e0=document.getElementById('bri-bid-amount');
                    if(e0)e0.textContent=Math.round(v).toString().replace(/\B(?=(\d{3})+(?!\d))/g,',');
                    var e1=document.getElementById('bri-per-hour'),e2=document.getElementById('bri-per-day');
                    if(e1)e1.textContent=_fmt(ph);
                    if(e2)e2.textContent=_fmt(pd);
                }
                document.addEventListener('DOMContentLoaded',function(){
                    var inp=document.getElementById('point');
                    if(inp){_upd();inp.addEventListener('input',_upd);inp.addEventListener('change',_upd);}
                    var oD=window.decrementStep,oI=window.incrementStep;
                    if(typeof oD==='function')window.decrementStep=function(){oD();_upd();};
                    if(typeof oI==='function')window.incrementStep=function(){oI();_upd();};
                });
            })();
            </script>
            <?php endif; ?>
            <div class="bid-time-bar">
                마감까지&nbsp;<span class="btb-val" id="end_timer"></span><span class="btb-lbl"> 남음</span>
            </div>

            <div id="warning-message">입력한 금액이 보유 포인트보다 큽니다.</div>
            <div id="auction_bid_toast" class="auction-bid-toast" aria-live="polite"></div>
            <script>
                document.addEventListener('DOMContentLoaded', function() {
                    var mb_point = <?php echo $member['mb_point']; ?>;
                    var pointInput = document.getElementById('point');
                    var warningMessage = document.getElementById('warning-message');

                    if (pointInput) {
                        pointInput.addEventListener('input', function() {
                            var enteredValue = parseFloat(pointInput.value);
                            if (enteredValue > mb_point) {
                                warningMessage.style.display = 'block';
                                setTimeout(function() {
                                    warningMessage.style.display = 'none';
                                }, 3000); // 3초 후 메시지 숨김
                            } else {
                                warningMessage.style.display = 'none';
                            }
                        });
                    }
                });
            </script>
        <?php } //입찰폼?>

        </form>
        <!-- 입찰 폼 -->
        </div><!-- bid-card-body -->
        </div><!-- bid-card -->

        </td></tr><!-- 입찰정보 -->

        <tr><td colspan="<?php echo $cspan; ?>" class="auction-note-box"><!-- 경매코멘트 정보 -->
        <div class="auction-note-inner">
        -&nbsp;<span style="">본 경매는 입찰자 수가 <?php echo(number_format($info[auction_off_member_count]));?>명 미만이면 유찰됩니다.</span><br>
        -&nbsp;<span style="">본 경매는 한 회원이 <span style="">총 <?php echo(number_format($info[tender_possible_count]));?>회, 하루 최대 <?php echo(number_format($info[day_limit]));?>회까지</span> 입찰 가능합니다.</span><br>
        -&nbsp;<span style="">본 경매상품은 초기 제품불량 사유 외에는 취소 및 환불이 불가합니다.</span>
        </div>
        </td></tr><!-- 경매코멘트 정보 -->

        <!-- 입찰 내역 -->
        <tr>
            <td colspan="<?php echo $cspan; ?>" class="auction-tender-cell">
                <div class="auction-tender-wrap">
                    <iframe id="tenderFrame" src="<?php echo G5_URL;?>/skin/board/auction/tender_list_inc.php?bo_table=<?php echo $bo_table;?>&wr_id=<?php echo $wr_id;?>" scrolling="no" style="width:100%; overflow-y:hidden;"></iframe>
                </div>
                <script>
                (function() {
                    var iframe = document.getElementById('tenderFrame');

                    /* ── postMessage 수신: iframe 내부에서 실제 콘텐츠 높이 전달 ── */
                    window.addEventListener('message', function(e) {
                        if (!e.data || e.data.type !== 'tenderFrameHeight') return;
                        var h = parseInt(e.data.h, 10);
                        if (isNaN(h) || h <= 0) return;

                        var meta = null;
                        try { meta = iframe.contentWindow.document.getElementById('tender_list_meta'); } catch(err) {}
                        var total     = meta ? parseInt(meta.getAttribute('data-total')            || '0',  10) : 0;
                        var threshold = meta ? parseInt(meta.getAttribute('data-scroll-threshold') || '15', 10) : 15;
                        if (isNaN(total))     total     = 0;
                        if (isNaN(threshold)) threshold = 15;

                        if (total <= threshold) {
                            iframe.setAttribute('scrolling', 'no');
                            iframe.style.overflowY = 'hidden';
                            iframe.style.height = h + 'px';
                        } else {
                            var maxH = 560;
                            iframe.style.height = Math.min(h, maxH) + 'px';
                            if (h > maxH) {
                                iframe.setAttribute('scrolling', 'yes');
                                iframe.style.overflowY = 'auto';
                            } else {
                                iframe.setAttribute('scrolling', 'no');
                                iframe.style.overflowY = 'hidden';
                            }
                        }
                    });

                    /* ── window resize 시 iframe 내부 재측정 요청 ── */
                    window.addEventListener('resize', function() {
                        try {
                            var doc = iframe.contentWindow.document;
                            var wrap = doc.querySelector('.tender-wrap');
                            var paging = doc.querySelector('.tender-paging');
                            var h = (wrap ? wrap.offsetHeight : 0) + (paging ? paging.offsetHeight : 0);
                            if (h > 0) iframe.style.height = (h + 2) + 'px';
                        } catch(err) {}
                    });
                }());
                </script>
            </td>
        </tr>
        </table><!-- table1 -->
        </div><!-- div1 -->
        <!-- ////////////경매정보////////////  -->
        <!-- 본문 내용 시작 { -->
        <div id="bo_v_con" style="display:none;"><?php echo get_view_thumbnail($view['content']); ?></div>
        <?php //echo $view['rich_content']; // {이미지:0} 과 같은 코드를 사용할 경우 ?>
        <!-- } 본문 내용 끝 -->

        <?php if ($is_signature) { ?><p><?php echo $signature ?></p><?php } ?>

        <!-- 스크랩 추천 비추천 시작 { -->
        <?php if ($scrap_href || $good_href || $nogood_href) { ?>
        <div id="bo_v_act" style="display:none;">
            <?php if ($scrap_href) { ?><a href="<?php echo $scrap_href;  ?>" target="_blank" class="btn_b01 btn" onclick="win_scrap(this.href); return false;">스크랩</a><?php } ?>
            <?php if ($good_href) { ?>
            <span class="bo_v_act_gng">
                <a href="<?php echo $good_href.'&amp;'.$qstr ?>" id="good_button" class="btn_b01 btn">추천 <strong><?php echo number_format($view['wr_good']) ?></strong></a>
                <b id="bo_v_act_good"></b>
            </span>
            <?php } ?>
            <?php if ($nogood_href) { ?>
            <span class="bo_v_act_gng">
                <a href="<?php echo $nogood_href.'&amp;'.$qstr ?>" id="nogood_button" class="btn_b01 btn">비추천  <strong><?php echo number_format($view['wr_nogood']) ?></strong></a>
                <b id="bo_v_act_nogood"></b>
            </span>
            <?php } ?>
        </div>
        <?php } else {
            if($board['bo_use_good'] || $board['bo_use_nogood']) {
        ?>
        <div id="bo_v_act">
            <?php if($board['bo_use_good']) { ?><span>추천 <strong><?php echo number_format($view['wr_good']) ?></strong></span><?php } ?>
            <?php if($board['bo_use_nogood']) { ?><span>비추천 <strong><?php echo number_format($view['wr_nogood']) ?></strong></span><?php } ?>
        </div>
        <?php
            }
        }
        ?>
        <!-- } 스크랩 추천 비추천 끝 -->
    </section>

    <?php
    include_once(G5_SNS_PATH."/view.sns.skin.php");
    ?>

    <?php
    // 코멘트 입출력
    include_once(G5_BBS_PATH.'/view_comment.php');
     ?>

    <!-- 링크 버튼 시작 { -->
    <div id="bo_v_bot">
        <div id="auction-nav-bar">
            <button class="anb-btn anb-mybids" onclick="auctionNavFilter('my')">내 입찰 현황</button>
            <button class="anb-btn anb-list"   onclick="auctionNavList()">경매 목록</button>
            <button class="anb-btn anb-active" onclick="auctionNavFilter('1')">진행중</button>
            <div class="anb-sort-grp">
                <div class="anb-sort-pair">
                    <span class="anb-sp-label">마감 임박</span>
                    <div class="anb-sp-tris">
                        <button class="anb-spt" type="button" onclick="auctionNavFilter('1','end')">▲</button>
                        <button class="anb-spt" type="button" onclick="auctionNavFilter('1','end-desc')">▼</button>
                    </div>
                </div>
                <div class="anb-sort-pair">
                    <span class="anb-sp-label">최근순</span>
                    <div class="anb-sp-tris">
                        <button class="anb-spt" type="button" onclick="auctionNavRecent('desc')">▲</button>
                        <button class="anb-spt" type="button" onclick="auctionNavRecent('asc')">▼</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- } 링크 버튼 끝 -->

<!-- 포인트 충전 레이어 팝업 -->
<div id="chargeModalOverlay" class="charge-modal-overlay">
    <div id="chargeModal" class="charge-modal">
        <div class="charge-modal-hd" id="chargeModalHd">
            <span class="charge-modal-title">&#128179; 포인트 충전</span>
            <button type="button" class="charge-modal-close" onclick="closeChargeModal()" title="닫기">&#10005;</button>
        </div>
        <div class="charge-modal-body">
            <iframe id="chargeModalIframe" src="" allowfullscreen></iframe>
        </div>
        <span class="charge-modal-resize-hint">&#x2922;</span>
    </div>
</div>
<script>
(function(){
    var overlay, modal, hd, iframe;
    var dragging = false, sx, sy, sl, st, _interacting = false;

    function init() {
        overlay = document.getElementById('chargeModalOverlay');
        modal   = document.getElementById('chargeModal');
        hd      = document.getElementById('chargeModalHd');
        iframe  = document.getElementById('chargeModalIframe');
        if (!hd) return;

        /* 드래그 */
        hd.addEventListener('mousedown', function(e) {
            if (e.target.classList.contains('charge-modal-close')) return;
            var mat = new DOMMatrix(window.getComputedStyle(modal).transform);
            sl = mat.m41; st = mat.m42;
            sx = e.clientX; sy = e.clientY;
            dragging = true;
            e.preventDefault();
        });
        document.addEventListener('mousemove', function(e) {
            if (!dragging) return;
            modal.style.transform = 'translate(' + (sl + e.clientX - sx) + 'px,' + (st + e.clientY - sy) + 'px)';
        });
        document.addEventListener('mouseup', function() {
            dragging = false;
            setTimeout(function() { _interacting = false; }, 80);
        });

        /* 리사이즈 중 실수 클릭 방지: modal 안 mousedown → _interacting = true */
        modal.addEventListener('mousedown', function() { _interacting = true; });

        /* 오버레이 클릭 = 드래그·리사이즈 중이 아닐 때만 닫기 */
        overlay.addEventListener('click', function(e) {
            if (e.target === overlay && !dragging && !_interacting) closeChargeModal();
        });

        /* iframe 로드 완료 후 콘텐츠 높이에 맞춰 팝업 자동 조정 */
        iframe.addEventListener('load', function() {
            if (!iframe.src) return;
            setTimeout(function() {
                try {
                    var doc = iframe.contentDocument || iframe.contentWindow.document;
                    var contentH = Math.max(
                        doc.body ? doc.body.scrollHeight : 0,
                        doc.documentElement ? doc.documentElement.scrollHeight : 0
                    );
                    if (contentH < 50) return;
                    var hdH = hd ? hd.offsetHeight : 46;
                    var targetH = contentH + hdH + 6;
                    var maxH = window.innerHeight - 24;
                    modal.style.height = Math.min(targetH, maxH) + 'px';
                } catch(e) {}
            }, 200);
        });
    }

    var _scrollLockY = 0;
    window.openChargeModal = function() {
        if (!modal) init();
        /* 크기 + 드래그 위치 초기화 */
        modal.style.transform = 'translate(0,0)';
        modal.style.width  = Math.min(1200, window.innerWidth  - 24) + 'px';
        modal.style.height = Math.min(960,  window.innerHeight - 24) + 'px';
        iframe.src = '<?php echo G5_URL; ?>/shoppoint/orderform.php?popup=1';
        /* 배경 스크롤 잠금 — iOS Safari 포함 */
        _scrollLockY = window.pageYOffset || document.documentElement.scrollTop || 0;
        document.body.style.overflow = 'hidden';
        document.body.style.position = 'fixed';
        document.body.style.top      = '-' + _scrollLockY + 'px';
        document.body.style.width    = '100%';
        overlay.style.display = 'flex';
    };

    window.closeChargeModal = function() {
        if (overlay) overlay.style.display = 'none';
        if (iframe)  iframe.src = '';
        /* 배경 스크롤 복원 */
        document.body.style.overflow  = '';
        document.body.style.position  = '';
        document.body.style.top       = '';
        document.body.style.width     = '';
        window.scrollTo(0, _scrollLockY);
    };

    document.addEventListener('DOMContentLoaded', init);
})();
</script>


</article>
<!-- } 게시판 읽기 끝 -->

<script>
<?php if ($board['bo_download_point'] < 0) { ?>
$(function() {
    $("a.view_file_download").click(function() {
        if(!g5_is_member) {
            alert("다운로드 권한이 없습니다.\n회원이시라면 로그인 후 이용해 보십시오.");
            return false;
        }

        var msg = "파일을 다운로드 하시면 포인트가 차감(<?php echo number_format($board['bo_download_point']) ?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?";

        if(confirm(msg)) {
            var href = $(this).attr("href")+"&js=on";
            $(this).attr("href", href);

            return true;
        } else {
            return false;
        }
    });
});
<?php } ?>

function board_move(href)
{
    window.open(href, "boardmove", "left=50, top=50, width=500, height=550, scrollbars=1");
}
</script>

<script>
$(function() {
    $("a.view_image").click(function() {
        window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
        return false;
    });

    // 추천, 비추천
    $("#good_button, #nogood_button").click(function() {
        var $tx;
        if(this.id == "good_button")
            $tx = $("#bo_v_act_good");
        else
            $tx = $("#bo_v_act_nogood");

        excute_good(this.href, $(this), $tx);
        return false;
    });

    // 이미지 리사이즈
    $("#bo_v_atc").viewimageresize();
});

function excute_good(href, $el, $tx)
{
    $.post(
        href,
        { js: "on" },
        function(data) {
            if(data.error) {
                alert(data.error);
                return false;
            }

            if(data.count) {
                $el.find("strong").text(number_format(String(data.count)));
                if($tx.attr("id").search("nogood") > -1) {
                    $tx.text("이 글을 비추천하셨습니다.");
                    $tx.fadeIn(200).delay(2500).fadeOut(200);
                } else {
                    $tx.text("이 글을 추천하셨습니다.");
                    $tx.fadeIn(200).delay(2500).fadeOut(200);
                }
            }
        }, "json"
    );
}
</script>
<!-- } 게시글 읽기 끝 -->

<!-- ///////////경매정보//////////////// -->
<script>
function tender_send() {
    var pointEl = document.getElementById("point");
    var p = parseInt(pointEl.value);
    var bidMin = parseInt(pointEl.min || "0", 10);
    var bidMax = parseInt(pointEl.max || "0", 10);
    var u = parseInt(document.getElementById("tender_unit").value);

    if (!p) {
        showAuctionBidToast("입찰 금액을 입력해주세요.", 'bid-error');
        return;
    }

    if ((p % u) != 0) {
        showAuctionBidToast("입찰 금액은 " + number_format(u) + "P 단위로 입력해주세요.", 'bid-error');
        return;
    }

    if (!isNaN(bidMin) && bidMin > 0 && p < bidMin) {
        showAuctionBidToast("입찰 가능 최저금액(" + number_format(bidMin) + " Point) 이하입니다.", 'bid-lte-min');
        return;
    }

    if (!isNaN(bidMax) && bidMax > 0 && p === bidMax) {
        showAuctionBidToast("최대입찰가(" + number_format(bidMax) + " Point)에 도달했습니다.", 'bid-eq-max');
    }

    if (!isNaN(bidMax) && bidMax > 0 && p > bidMax) {
        pointEl.value = bidMax;
        showAuctionBidToast("입찰 최고가(" + number_format(bidMax) + " Point)를 초과할 수 없습니다.", 'bid-over-max');
        return;
    }

    var _mbPoint = <?php echo (int)$member['mb_point']; ?>;
    if (p > _mbPoint) {
        showAuctionBidToast("보유 포인트(" + number_format(_mbPoint) + "P)가 부족합니다.", 'bid-error');
        return;
    }
    showBidConfirmPopup(p);

}

function tender_list() {
    tender_list_win = window.open("<?php echo $board_skin_url?>/tender_list.php?bo_table=<?php echo $bo_table?>&wr_id=<?php echo $wr_id?>","tender_list","width=500, height=800, scrollbars=1");
    tender_list_win.focus();
}

<?php if ($info[status] == 1 && $end_time > 0) {?>

    var end_time = <?php echo $end_time?>;

function run_timer() {
    var timer = document.getElementById("end_timer");
    var timer_overlay = document.getElementById("end_timer_overlay");
    var timer_hero = document.getElementById("hero_timer_val");
    var timer_card = document.getElementById("bid_card_timer_val");

    var dd = Math.floor(end_time / (60 * 60 * 24));
    var hh = Math.floor((end_time % (60 * 60 * 24)) / (60 * 60));
    var mm = Math.floor(((end_time % (60 * 60 * 24)) % (60 * 60)) / 60);
    var ii = Math.floor((((end_time % (60 * 60 * 24)) % (60 * 60)) % 60));

    var hhS = hh.toString().padStart(2,'0');
    var mmS = mm.toString().padStart(2,'0');
    var iiS = ii.toString().padStart(2,'0');
    var compact;
    if (dd > 0) compact = dd + '일 ' + hhS + ':' + mmS + ':' + iiS;
    else if (hh > 0) compact = hhS + ':' + mmS + ':' + iiS;
    else compact = mmS + ':' + iiS;

    /* 입찰폼 타이머 — 한국어 가독성 유지 */
    var str = "";
    if (dd > 0) str += dd + "일 ";
    if (hh > 0) str += hhS + "시간 ";
    if (mm > 0) str += mmS + "분 ";
    str += iiS + "초";

    if (timer) { timer.innerHTML = str; }
    if (timer_overlay) timer_overlay.innerHTML = compact;
    if (timer_hero) timer_hero.innerHTML = compact;
    if (timer_card) timer_card.innerHTML = compact;

    end_time--;

    if (end_time < 0) clearInterval(tid);
}

run_timer();
var tid = setInterval(run_timer, 1000);
<?php } ?>

</script>

<script>
function redirectToPage(t) {
    if (t == 'charge') {
        // 새로운 URL로 이동 (현재 창에 로드)
        //window.location.href = '<?php echo G5_URL."/shoppoint/orderform.php";?>';

        // 새 창에 로드
        window.open('<?php echo G5_URL."/shoppoint/orderform.php";?>', '_blank');
    } else if (t == 'withdraw') {
        // 새로운 URL로 이동 (현재 창에 로드)
        //window.location.href = '<?php echo G5_URL."/shoppoint/orderform4withdraw.php";?>';

        // 새 창에 로드
        window.open('<?php echo G5_URL."/shoppoint/orderform4withdraw.php";?>', '_blank');
    }

}
</script>

<script>
function fixColumnHeights() {
    if (window.matchMedia('(max-width: 760px)').matches) return;
    var imgVisual  = document.querySelector('#bo_v_atc .image-visual');
    var infoCard   = document.querySelector('#bo_v_atc .auction-left-spec');
    var specTd     = document.querySelector('#bo_v_atc td.auction-spec-wrap');
    if (!imgVisual || !infoCard || !specTd) return;

    /* 스펙 컬럼 내부 table 높이 = 실제 콘텐츠 높이 */
    var specTable = specTd.querySelector('table.auction-spec-table');
    var targetH   = specTable ? specTable.offsetHeight : specTd.offsetHeight;
    if (targetH < 100) return;

    /* image-visual 높이는 건드리지 않음 (자연 비율 유지) */
    infoCard.style.height = '';
    void infoCard.offsetHeight;
    /* 좌측 카드 자체 콘텐츠 높이와 우측 스펙 테이블 높이 중 큰 값 사용
       → 이용기간/설치비/조회 행이 overflow:hidden 에 잘리지 않도록 */
    var infoNatural = infoCard.scrollHeight;
    infoCard.style.height  = Math.max(infoNatural, targetH) + 'px';
}

document.addEventListener('DOMContentLoaded', fixColumnHeights);
window.addEventListener('load', fixColumnHeights);
window.addEventListener('resize', function() {
    clearTimeout(window._fchTimer);
    window._fchTimer = setTimeout(fixColumnHeights, 80);
});
document.addEventListener('DOMContentLoaded', function() {
    var img = document.querySelector('#bo_v_atc .image-visual img');
    if (img && !img.complete) img.addEventListener('load', function() { setTimeout(fixColumnHeights, 50); });
});
</script>


<!-- 입찰 완료 결과 팝업 -->
<div id="bid-result-popup" onclick="if(event.target===this)closeBidResultPopup()">
  <div id="bid-result-popup-box">
    <div class="brp-icon">✅</div>
    <div class="brp-title">입찰 완료</div>
    <div class="brp-body">
      <strong id="bid-result-amount">–</strong> P<br>
      로 입찰하였습니다.
    </div>
    <button type="button" class="brp-btn-ok" id="bid-result-btn-ok">확인</button>
  </div>
</div>
<script>
function showBidResultPopup(amount, redirectUrl) {
    document.getElementById('bid-result-amount').textContent = amount;
    document.getElementById('bid-result-btn-ok').onclick = function() {
        closeBidResultPopup();
        location.href = redirectUrl;
    };
    document.getElementById('bid-result-popup').classList.add('show');
    document.body.style.overflow = 'hidden';
}
function closeBidResultPopup() {
    document.getElementById('bid-result-popup').classList.remove('show');
    document.body.style.overflow = '';
    _resetPopupPos('bid-result-popup-box');
}
document.addEventListener('keydown', function(e){
    if (e.key === 'Escape') {
        var p = document.getElementById('bid-result-popup');
        if (p && p.classList.contains('show')) {
            var btn = document.getElementById('bid-result-btn-ok');
            if (btn) btn.click();
        }
    }
});
</script>
<!-- 입찰 확인 팝업 -->
<div id="bid-confirm-popup" onclick="if(event.target===this)closeBidConfirmPopup()">
  <div id="bid-confirm-popup-box">
    <div class="bcp-title">입찰 확인</div>
    <div class="bcp-body">
      <strong id="bid-confirm-amount">–</strong> P<br>
      위 금액으로 입찰하시겠습니까?
    </div>
    <div class="bcp-btns">
      <button type="button" class="bcp-btn-cancel" onclick="closeBidConfirmPopup()">취소</button>
      <button type="button" class="bcp-btn-ok" id="bid-confirm-btn-ok">확인</button>
    </div>
  </div>
</div>
<script>
function showBidConfirmPopup(p) {
    document.getElementById('bid-confirm-amount').textContent = number_format(p);
    document.getElementById('bid-confirm-btn-ok').onclick = function() {
        closeBidConfirmPopup();
        document.auction_tender.submit();
    };
    document.getElementById('bid-confirm-popup').classList.add('show');
    document.body.style.overflow = 'hidden';
}
function closeBidConfirmPopup() {
    document.getElementById('bid-confirm-popup').classList.remove('show');
    document.body.style.overflow = '';
    _resetPopupPos('bid-confirm-popup-box');
}
document.addEventListener('keydown', function(e){
    if (e.key === 'Escape') closeBidConfirmPopup();
});
</script>
<!-- 경매 용어 설명 팝업 -->
<div id="auction-term-popup" onclick="if(event.target===this)closeAuctionTermPopup()">
  <div id="auction-term-popup-box">
    <button type="button" id="auction-term-popup-close" onclick="closeAuctionTermPopup()" aria-label="닫기">✕</button>
    <h4 id="auction-term-popup-title"></h4>
    <p id="auction-term-popup-body"></p>
  </div>
</div>
<script>
var _auctionTerms = {
  bid_open: {
    title: '공개 입찰이란?',
    body: '모든 참여자의 입찰 금액이 <strong>실시간으로 공개</strong>됩니다.<br>현재 최고가를 확인하면서 전략적으로 입찰할 수 있어, 경쟁 현황 파악이 쉽습니다.'
  },
  bid_closed: {
    title: '비공개 입찰이란?',
    body: '다른 참여자의 입찰 금액을 <strong>알 수 없습니다</strong>.<br>경매 종료 후 결과만 공개되며, 자신의 판단으로 입찰 금액을 결정해야 합니다.'
  },
  win_high: {
    title: '최고가 낙찰이란?',
    body: '경매 종료 시 <strong>가장 높은 금액</strong>을 입찰한 참여자가 낙찰됩니다.<br>입찰 금액이 높을수록 낙찰 가능성이 높아지며, 즉시 구매가 이상으로는 입찰할 수 없습니다.'
  },
  win_low: {
    title: '최저가 낙찰이란?',
    body: '경매 종료 시 <strong>가장 낮은 금액</strong>을 입찰한 참여자가 낙찰됩니다.<br>전략적인 최저가 입찰이 중요하며, 동일 금액의 경우 먼저 입찰한 참여자가 우선합니다.'
  }
};
function showAuctionTermPopup(key) {
  var t = _auctionTerms[key]; if (!t) return;
  document.getElementById('auction-term-popup-title').textContent = t.title;
  document.getElementById('auction-term-popup-body').innerHTML = t.body;
  document.getElementById('auction-term-popup').classList.add('show');
  document.body.style.overflow = 'hidden';
}
function closeAuctionTermPopup() {
  document.getElementById('auction-term-popup').classList.remove('show');
  document.body.style.overflow = '';
  _resetPopupPos('auction-term-popup-box');
}
document.addEventListener('keydown', function(e){ if(e.key==='Escape') closeAuctionTermPopup(); });
</script>

<script>
/* ── 팝업 드래그 공통 ── */
function _resetPopupPos(boxId) {
    var b = document.getElementById(boxId);
    if (!b) return;
    b.style.left = ''; b.style.top = ''; b.style.transform = '';
}
function makeDraggable(handleEl, boxEl) {
    var sx, sy, sl, st;
    function start(cx, cy) {
        var r = boxEl.getBoundingClientRect();
        boxEl.style.transform = 'none';
        boxEl.style.left = r.left + 'px';
        boxEl.style.top  = r.top  + 'px';
        sx = cx; sy = cy; sl = r.left; st = r.top;
    }
    function move(cx, cy) {
        boxEl.style.left = (sl + cx - sx) + 'px';
        boxEl.style.top  = (st + cy - sy) + 'px';
    }
    handleEl.addEventListener('mousedown', function(e) {
        e.preventDefault();
        start(e.clientX, e.clientY);
        function mm(e) { move(e.clientX, e.clientY); }
        function mu()  { document.removeEventListener('mousemove', mm); document.removeEventListener('mouseup', mu); }
        document.addEventListener('mousemove', mm);
        document.addEventListener('mouseup', mu);
    });
    handleEl.addEventListener('touchstart', function(e) {
        var t = e.touches[0];
        start(t.clientX, t.clientY);
        function tm(e) { e.preventDefault(); var t = e.touches[0]; move(t.clientX, t.clientY); }
        function te()  { document.removeEventListener('touchmove', tm); document.removeEventListener('touchend', te); }
        document.addEventListener('touchmove', tm, {passive:false});
        document.addEventListener('touchend', te);
    }, {passive:true});
}
document.addEventListener('DOMContentLoaded', function() {
    var bcpBox  = document.getElementById('bid-confirm-popup-box');
    var bcpHd   = bcpBox  && bcpBox.querySelector('.bcp-title');
    var atpBox  = document.getElementById('auction-term-popup-box');
    var atpHd   = atpBox  && atpBox.querySelector('h4');
    if (bcpHd)  makeDraggable(bcpHd,  bcpBox);
    if (atpHd)  makeDraggable(atpHd,  atpBox);
    var brpBox = document.getElementById('bid-result-popup-box');
    var brpHd  = brpBox && brpBox.querySelector('.brp-title');
    if (brpHd)  makeDraggable(brpHd,  brpBox);
});
</script>

<script>
(function() {
    function hideLoader() {
        var el = document.getElementById('page-loading-overlay');
        if (!el) return;
        el.classList.add('fade-out');
        setTimeout(function() { if (el.parentNode) el.parentNode.removeChild(el); }, 380);
    }
    if (document.readyState === 'complete') {
        hideLoader();
    } else {
        window.addEventListener('load', hideLoader);
        /* 최대 4초 보장 */
        setTimeout(hideLoader, 4000);
    }
})();
</script>

<script>
/* 쇼핑몰 경매 목록 기준 URL */
var _shopListBase = '/shop/list.php?ca_id=20';

function auctionNavList() {
    var saved = sessionStorage.getItem('auction_shop_filter') || '';
    var url = _shopListBase;
    if (saved) url += '&ast=' + encodeURIComponent(saved);
    location.href = url;
}
function auctionNavFilter(status, sort) {
    var url = _shopListBase + '&ast=' + encodeURIComponent(status);
    if (sort) url += '&asort=' + sort;
    location.href = url;
}
function auctionNavRecent(sortodr) {
    location.href = _shopListBase + '&sort=it_update_time&sortodr=' + sortodr;
}
</script>
<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>
<!-- ///////////경매정보//////////////// -->
