.hdr-mail-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 200, 120, 0.45);
    background: linear-gradient(145deg, rgba(40, 20, 60, 0.95), rgba(20, 12, 36, 0.98));
    color: #ffeccc;
    font-size: 1.05rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.hdr-mail-btn--labeled {
    padding: 0 12px 0 10px;
}

.hdr-mail-btn__label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffe8c8;
}

.hdr-mail-btn:hover {
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 16px rgba(127, 0, 255, 0.35);
}

.hdr-mail-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 16px;
    text-align: center;
    color: #1a1000;
    background: linear-gradient(180deg, #ffe066 0%, #ffb020 100%);
    box-shadow: 0 0 10px rgba(255, 176, 32, 0.75);
    pointer-events: none;
    z-index: 2;
}

.hdr-mail-badge.hidden {
    display: none;
}

.void-mailbox-panel {
    position: fixed;
    inset: 0;
    z-index: 520;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 2, 12, 0.72);
    backdrop-filter: blur(6px);
}

.void-mailbox-panel.hidden {
    display: none;
}

.void-mailbox-inner {
    width: min(520px, 100%);
    max-height: min(82vh, 720px);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(180, 140, 255, 0.45);
    background: linear-gradient(165deg, rgba(14, 8, 32, 0.98), rgba(8, 6, 20, 0.96));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.void-mailbox-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 48px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.void-mailbox-head h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #fcecc6;
}

.void-mailbox-head p {
    margin: 0;
    font-size: 0.72rem;
    color: rgba(220, 210, 255, 0.75);
    line-height: 1.45;
}

.void-mailbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.void-mailbox-toolbar {
    display: flex;
    justify-content: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.void-mailbox-claim-all {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 200, 100, 0.5);
    background: rgba(255, 196, 80, 0.15);
    color: #ffeccc;
    font-size: 0.75rem;
    cursor: pointer;
}

.void-mailbox-list {
    flex: 1;
    overflow: auto;
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 200px;
}

.void-mailbox-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    margin: auto 0;
    text-align: center;
    color: rgba(200, 190, 230, 0.8);
    font-size: 0.88rem;
    padding: 24px 16px;
    line-height: 1.65;
}

.void-mailbox-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.void-mailbox-item.is-unread {
    border-color: rgba(255, 200, 100, 0.45);
    background: rgba(255, 200, 100, 0.08);
}

.void-mailbox-item:not(.is-claimed) {
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.void-mailbox-item:not(.is-claimed):hover {
    border-color: rgba(255, 200, 100, 0.62);
    background: rgba(255, 200, 100, 0.12);
    box-shadow: 0 0 14px rgba(127, 0, 255, 0.18);
}

.void-mailbox-item:not(.is-claimed):focus-visible {
    outline: 2px solid rgba(192, 132, 252, 0.85);
    outline-offset: 2px;
}

.void-mailbox-item.is-claimed {
    opacity: 0.72;
}

.void-mailbox-item__icon {
    font-size: 1.5rem;
    line-height: 1;
    text-align: center;
}

.void-mailbox-item__body {
    text-align: center;
}

.void-mailbox-item__body h4 {
    margin: 0 0 4px;
    font-size: 0.88rem;
    color: #fff5e8;
}

.void-mailbox-item__text {
    margin: 0 0 4px;
    font-size: 0.76rem;
    color: rgba(230, 225, 255, 0.88);
    line-height: 1.45;
}

.void-mailbox-item__attach {
    margin: 0 0 4px;
    font-size: 0.72rem;
    color: #ffd89a;
}

.void-mailbox-item__body time {
    font-size: 0.65rem;
    color: rgba(180, 170, 210, 0.7);
}

.void-mailbox-item__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

/* .void-mailbox-claim 見 css/void-claim-reward.css */

.void-mailbox-del {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    color: rgba(220, 210, 255, 0.85);
    font-size: 0.68rem;
    cursor: pointer;
}

.void-mailbox-tag--done {
    font-size: 0.68rem;
    color: #9ae6b0;
    text-align: center;
}
