body.custom {
    font-family: Kanit, sans-serif;
    color: #111827;
}

.page-detail-wrap {
    position: relative;
    min-height: 100vh;
    padding-top: 820px;
    padding-bottom: 150px;
    box-sizing: border-box;
}

.page-detail-box {
    position: relative;
    width: 1200px;
    margin: 0 auto;
    padding: 34px 40px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.page-title-box {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 30px;
    font-weight: 600;
}

.monster-toolbar {
    margin-bottom: 22px;
}

.monster-search {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.monster-search input,
.monster-search select {
    height: 28px;
    padding: 0 7px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: Kanit, sans-serif;
    font-size: 12px;
}

.monster-search input[name="search"] {
    width: 170px;
}

.monster-search select {
    width: 95px;
}

.monster-search input[type="number"] {
    width: 78px;
}

.monster-search button,
.monster-search a {
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: #0b76bd;
    color: #fff;
    font-family: Kanit, sans-serif;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.monster-total {
    margin-top: 12px;
    color: #374151;
    font-size: 14px;
    text-align: right;
}

.monster-card {
    margin-bottom: 18px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.monster-card-main {
    display: grid;
    grid-template-columns: 90px 190px repeat(10, 1fr);
    gap: 10px;
    align-items: center;
    padding: 18px;
}

.monster-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.monster-name {
    font-weight: 600;
    font-size: 16px;
}

.monster-aegis {
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 300;
}

.stat-box {
    text-align: center;
    font-size: 13px;
}

.stat-label {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
}

.stat-value {
    margin-top: 4px;
    color: #111827;
    font-weight: 500;
}

.monster-drop-box {
    padding: 14px 18px 18px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.drop-title {
    font-weight: 600;
    margin: 8px 0 10px;
    color: #111827;
}

.drop-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.drop-item {
    width: 180px;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
}

.drop-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.drop-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.drop-rate {
    font-size: 12px;
    color: #6b7280;
}

.monster-pagination {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.monster-pagination a,
.monster-pagination span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
}

.monster-pagination .active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.monster-empty {
    padding: 18px 22px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 15px;
}

.drop-name.js-item-popup {
    cursor: pointer;
    color: #0b76bd;
}

.drop-name.js-item-popup:hover {
    text-decoration: underline;
}

.item-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
}

.item-popup-overlay.active {
    display: flex;
}

.item-popup-box {
    position: relative;
    width: 560px;
    max-width: calc(100vw - 30px);
    max-height: 80vh;
    overflow-y: auto;
    padding: 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.item-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.item-popup-title {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 600;
}

.item-popup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.item-popup-table th,
.item-popup-table td {
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.item-popup-table th {
    width: 170px;
    background: #f9fafb;
}

.item-popup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.item-popup-header img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    image-rendering: pixelated;
}

.item-popup-name {
    font-size: 20px;
    font-weight: 600;
}

.item-popup-id {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}