/* ===============================
   BUY BOARD – DARK THEME
   =============================== */

body {
    background: #0b0e13;
    color: #ddd;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* 중앙 고정 레이아웃 */
.buy-board-wrap {
    max-width: 900px;
    margin: 40px auto;
    background: #0f1520;
    border: 1px solid #1f2a3a;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

/* 모바일 대응 */
@media (max-width: 960px) {
    .buy-board-wrap {
        margin: 20px 12px;
        padding: 16px;
    }
}

/* 상단 안내 */
.buy-board-notice {
    background: linear-gradient(135deg, #132235, #162c44);
    border: 1px solid #274060;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
    color: #a8cfff;
    font-size: 13px;
}

/* ===============================
   TABLE
   =============================== */

.buy-table {
    width: 100%;
    border-collapse: collapse;
}

.buy-table thead th {
    background: #121c2b;
    color: #9ecbff;
    padding: 12px 8px;
    font-size: 13px;
    border-bottom: 1px solid #22344d;
    text-align: center;
}

.buy-table td {
    padding: 12px 8px;
    font-size: 13px;
    border-bottom: 1px solid #1c2a3f;
    color: #ddd;
	text-align: center;
}



.buy-table tr:hover {
    background: #121c2b;
}

/* 제목 */
.buy-title {
    color: #cfe6ff;
    font-weight: 600;
}

.buy-title:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 카테고리 뱃지 */
.buy-category {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 6px;
    background: #1b324d;
    color: #9ecbff;
}

/* ===============================
   WRITE BUTTON
   =============================== */

.buy-write-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4aa3ff, #1f6fd1);
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(74,163,255,0.3);
}

.buy-write-btn:hover {
    background: linear-gradient(135deg, #6bb6ff, #3385e8);
}

/* 상단 액션 버튼 영역 */
.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;   /* 🔥 핵심 */
}
.top {
    display: flex;
    justify-content: space-between; /* 또는 */
}
.top {
    display: flex;
}



/* 공통 버튼 */
.actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

/* 메인 / 서브 */
.actions .btn:not(.sell):not(.buy) {
    background: #1f2937;
    color: #d1d5db;
}

.actions .btn:not(.sell):not(.buy):hover {
    background: #374151;
}

/* 판매 (에스크로) */
.actions .btn.sell {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.actions .btn.sell:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

/* 구매 (요청) */
.actions .btn.buy {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #000;
}

.actions .btn.buy:hover {
    background: linear-gradient(135deg, #ea580c, #f97316);
}

/* 내 거래내역 */
.actions .btn.sub {
    background: #0f172a;
    color: #c7d2fe;
}

.actions .btn.sub:hover {
    background: #1e293b;
}

/* ===============================
   MOBILE TABLE ADJUST
   =============================== */

@media (max-width: 600px) {
    .buy-table thead {
        display: none;
    }

    .buy-table tr {
        display: block;
        margin-bottom: 14px;
        border: 1px solid #1f2a3a;
        border-radius: 8px;
        padding: 10px;
        background: #0f1520;
    }

    .buy-table td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border: none;
        font-size: 12px;
    }

    .buy-table td::before {
        content: attr(data-label);
        color: #7faedc;
        font-weight: 600;
    }
}