/* ── COMBATES ──────────────────────────────────────────────────────────────── */
.ryou-combates-wrap { font-family: 'Amaranth', sans-serif; max-width: 960px; margin: 0 auto; }
.ryou-combates-title { font-family: 'Courier New','Lucida Console',monospace; font-size:1.4rem; font-weight:900; color:#111; text-transform:uppercase; letter-spacing:.06em; margin:0 0 1rem; border-bottom:3px solid #111; padding-bottom:.5rem; }

/* Filters */
.ryou-combates-filtros {
    display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem;
    background: rgba(255,255,255,.7); padding: .6rem; border-radius: 8px;
    border: 1px solid rgba(0,0,0,.08);
}
.ryou-combates-filtros select,
.ryou-combates-filtros input { padding: .35rem .6rem; border: 1px solid #ddd; border-radius: 5px; font-size: 13px; }
.ryou-combates-total { font-size: 12px; color: #888; margin-bottom: .5rem; }

/* Combat card */
.ryou-combates-list { display: flex; flex-direction: column; gap: .8rem; }
.ryou-combate-card {
    background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 10px;
    overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ryou-combate-card[data-tipo="muerte"] { border-left: 4px solid #8b1a1a; }
.ryou-combate-card[data-tipo="entrenamiento"] { border-left: 4px solid #2a5a8a; }

.ryou-combate-card-header {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    padding: .8rem 1rem; background: rgba(0,0,0,.02); border-bottom: 1px solid rgba(0,0,0,.06);
}
.ryou-combate-tipo-badge {
    font-size: 11px; font-weight: 700; padding: .15rem .5rem; border-radius: 20px;
    border: 1px solid; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.ryou-combate-titulo { font-family: 'Cinzel', serif; font-size: .95rem; margin: 0; flex: 1; color: #1a0a0a; }
.ryou-combate-estado { font-size: 12px; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; }
.ryou-combate-estado--pendiente     { background: #fff8e1; color: #8a6800; }
.ryou-combate-estado--validado      { background: #e8f5e9; color: #2a7a2a; }
.ryou-combate-estado--disputado     { background: #fff3e0; color: #c05000; }
.ryou-combate-estado--resuelto_admin{ background: #e3f2fd; color: #1a5276; }

.ryou-combate-desc { padding: .6rem 1rem; font-size: 13px; color: #555; border-bottom: 1px solid rgba(0,0,0,.04); }

/* Bandos */
.ryou-combate-bandos { display: flex; gap: 0; }
.ryou-combate-bando {
    flex: 1; padding: .6rem .8rem; border-right: 1px solid rgba(0,0,0,.06);
}
.ryou-combate-bando:last-child { border-right: none; }
.ryou-combate-bando--victoria { background: rgba(42,122,42,.04); }
.ryou-combate-bando--derrota  { background: rgba(139,26,26,.04); }
.ryou-combate-bando-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; font-size: 13px; }
.ryou-combate-res { font-size: 12px; font-weight: 700; }
.ryou-combate-bando-parts { display: flex; flex-direction: column; gap: .3rem; }
.ryou-combate-part { display: flex; align-items: center; gap: .4rem; font-size: 12px; }
.ryou-combate-part-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ryou-combate-part-img-ph { width: 30px; height: 30px; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; }
.ryou-combate-part-info { display: flex; flex-direction: column; gap: 1px; }
.ryou-combate-part-nombre { font-weight: 700; color: #1a0a0a; }
.ryou-combate-salud { font-size: 11px; }
.ryou-combate-ea   { font-size: 11px; color: #8a6800; }
.ryou-combate-disp { font-size: 11px; color: #c05000; cursor: help; }
.ryou-combate-valid{ font-size: 11px; color: #2a7a2a; }
.ryou-combate-pend { font-size: 11px; color: #888; }

.ryou-combate-footer {
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    padding: .5rem 1rem; background: rgba(0,0,0,.02); border-top: 1px solid rgba(0,0,0,.05);
    font-size: 12px; color: #888;
}
.ryou-combate-link { color: #8b1a1a; text-decoration: none; }
.ryou-combate-id {
    font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700;
    color: #fff; background: #8b1a1a;
    padding: .15rem .45rem; border-radius: 4px; letter-spacing: .03em;
    flex-shrink: 0;
}
.ryou-combate-validprogress { margin-left: auto; font-weight: 700; color: #555; }
.ryou-combates-paginacion { display: flex; gap: .3rem; margin-top: 1rem; }
.ryou-combates-pag-btn { padding: .3rem .7rem; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #555; font-size: 13px; }
.ryou-combates-pag-btn.active { background: #8b1a1a; color: #fff; border-color: #8b1a1a; }

/* ── MIS COMBATES PANEL ───────────────────────────────────────────────────── */
.ryou-miscombates-wrap { font-family: 'Amaranth', sans-serif; max-width: 960px; margin: 0 auto; }
.ryou-miscombates-fichaselector { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.ryou-miscombates-fichaselector select { border: 1px solid #ddd; padding: .3rem .6rem; border-radius: 5px; }

.ryou-mc-section {
    background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 10px;
    padding: 1rem; margin-bottom: 1rem;
}
.ryou-mc-section h3, .ryou-tf h3, .ryou-mis-combates h3 { margin:0 0 .8rem; font-family:'Courier New','Lucida Console',monospace; font-size:16px; font-weight:900; color:#111; text-transform:uppercase; letter-spacing:.04em; display:flex; align-items:center; gap:.5rem; }
.ryou-mc-section--alert { border-left: 4px solid #c05000; }

/* Notifications */
.ryou-notif-list {
    display: flex; flex-direction: column; gap: 3px;
    max-height: 400px; overflow-y: auto;
}
.ryou-notif-item {
    background: #fef9e7; border: 1px solid #f9e79f; border-radius: 6px;
    padding: .5rem .8rem; font-size: 13px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    align-items: start;
}
.ryou-notif-item.leida { background: #f9f9f9; border-color: #eee; opacity: .7; }
.ryou-notif-msg {
    grid-column: 1; grid-row: 1;
    line-height: 1.4; color: #1a0a0a;
    word-break: break-word;
}
.ryou-notif-fecha {
    grid-column: 2; grid-row: 1;
    font-size: 11px; color: #888; white-space: nowrap; align-self: center;
}
.ryou-notif-leer-single {
    grid-column: 3; grid-row: 1;
    background: none; border: 1px solid #2a7a2a; color: #2a7a2a;
    border-radius: 3px; cursor: pointer; font-size: 11px; padding: 1px 5px;
    white-space: nowrap; align-self: center;
    transition: background .15s, color .15s;
}
.ryou-notif-leer-single:hover { background: #2a7a2a; color: #fff; }

/* Pending combat validation */
.ryou-mc-combate-pend {
    background: #fefefe; border: 1px solid rgba(0,0,0,.08); border-radius: 8px;
    padding: .8rem; margin-bottom: .5rem;
}
.ryou-mc-cp-header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.ryou-mc-cp-ficha  { font-size: 12px; color: #888; margin-left: auto; }
.ryou-mc-cp-parts  { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.ryou-mc-cp-part   { font-size: 12px; padding: .15rem .5rem; border-radius: 4px; background: #f5f5f5; border: 1px solid #eee; }
.ryou-mc-cp-part.mismo-bando { background: #e8f5e9; border-color: #c8e6c9; }
.ryou-mc-cp-recomp { font-size: 12px; margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.ryou-mc-cp-recomp span { padding: .15rem .4rem; border-radius: 4px; background: #f5f5f5; }
.ryou-mc-cp-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .3rem; }
.ryou-disp-form { margin-top: .5rem; display: flex; flex-direction: column; gap: .4rem; }
.ryou-disp-form textarea { border: 1px solid #ddd; border-radius: 5px; padding: .4rem; font-family: 'Amaranth', sans-serif; font-size: 13px; }

/* Transactions */
.ryou-mc-trans {
    display: flex; flex-direction: column; gap: .3rem;
    padding: .6rem .8rem; border: 1px solid #ddd; border-radius: 6px;
    background: #fff; margin-bottom: .5rem; font-size: 13px; color: #111;
}

/* Row: direction badge + date */
.ryou-trans-row { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.ryou-trans-row--top { justify-content: space-between; margin-bottom: .1rem; }
.ryou-trans-dir-badge {
    font-size: 12px; font-weight: 700; padding: .1rem .4rem;
    border-radius: 3px; letter-spacing: .02em;
}
.ryou-mc-trans--enviada-badge  { background: #fde8e8; color: #8b1a1a; border: 1px solid #f5a5a5; }
.ryou-mc-trans--recibida-badge { background: #e8f5e9; color: #1a6b2a; border: 1px solid #a5d6a7; }

/* Row: De → A | amount | estado */
.ryou-trans-row--main { gap: .35rem; align-items: center; }
.ryou-trans-de   { font-weight: 700; color: #111; font-size: 14px; }
.ryou-trans-arrow { color: #8b1a1a; font-weight: 900; font-size: 14px; }
.ryou-trans-a    { font-weight: 700; color: #111; font-size: 14px; }
.ryou-trans-sep  { color: #aaa; font-size: 12px; }
.ryou-trans-detalle { font-weight: 700; color: #111; font-size: 14px; }
.ryou-trans-fecha { font-size: 11px; color: #666; white-space: nowrap; margin-left: auto; }
.ryou-trans-concepto { font-size: 12px; color: #555; padding-left: .2rem; }

/* Estado badges */
.ryou-trans-estado { font-size: 12px; font-weight: 700; padding: .1rem .4rem; border-radius: 3px; margin-left: auto; }
.ryou-trans-estado--ok     { background: #e8f5e9; color: #1a6b2a; border: 1px solid #a5d6a7; }
.ryou-trans-estado--pend   { background: #fff8e1; color: #856404; border: 1px solid #ffe082; }
.ryou-trans-estado--cancel { background: #f5f5f5; color: #666;    border: 1px solid #ddd; }

/* Keep old mc-trans-actions for pending/received transactions */
.ryou-mc-trans-actions {
    display: flex; flex-direction: row; gap: .3rem; flex-wrap: wrap; margin-top: .2rem;
}
.ryou-mc-trans-actions .ryou-btn {
    white-space: nowrap; font-size: 12px; padding: .3rem .6rem;
}
.ryou-mc-trans-confirm-inline { margin-top: .3rem; }
.ryou-mc-trans-flecha { color: #8b1a1a; font-weight: 700; }
.ryou-mc-trans-detalle { font-weight: 700; color: #111; }

/* ── COMBAT FORM ──────────────────────────────────────────────────────────── */
.ryou-cf, .ryou-tf {
    display: flex; flex-direction: column; gap: .7rem;
    color: #111; background: #fff; padding: 1rem;
    border-radius: 8px; border: 1px solid #ddd;
}
.ryou-cf *, .ryou-tf * { color: inherit; box-sizing: border-box; }
.ryou-cf h2, .ryou-cf h3, .ryou-tf h2, .ryou-tf h3 { color: #111 !important; }
.ryou-cf-row { display: flex; flex-direction: column; gap: .2rem; }
.ryou-cf-row label { font-size: 12px; font-weight: 700; color: #333; }
.ryou-cf-row input[type="text"],
.ryou-cf-row input[type="url"],
.ryou-cf-row input[type="datetime-local"],
.ryou-cf-row input[type="number"],
.ryou-cf-row textarea,
.ryou-cf-row select,
.ryou-tf input, .ryou-tf select, .ryou-tf textarea {
    border: 1px solid #ddd; border-radius: 5px; padding: .4rem .7rem;
    font-family: 'Amaranth', sans-serif; font-size: 13px; background: #fff;
}
.ryou-cf-radio { display: flex; align-items: center; gap: .3rem; font-size: 13px; cursor: pointer; padding: .3rem .6rem; border: 1px solid #ddd; border-radius: 6px; }
.ryou-cf-radio input { margin: 0; }
.ryou-cf-radio:has(input:checked) { background: rgba(139,26,26,.08); border-color: rgba(139,26,26,.3); }

/* Bandos */
.ryou-cf-bandos { display: flex; gap: .5rem; flex-wrap: wrap; }
.ryou-cf-bando-wrap {
    flex: 1; min-width: 240px; background: rgba(0,0,0,.02);
    border: 1px solid rgba(0,0,0,.08); border-radius: 8px; padding: .7rem;
}
.ryou-cf-bando-header { display: flex; gap: .4rem; margin-bottom: .5rem; }
.cf-bando-nombre { flex: 1; }
.cf-bando-fichas { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .4rem; }
.cf-ficha-row { display: flex; align-items: center; gap: .4rem; font-size: 13px; color: #1a1a1a; background: #fff; padding: .3rem .5rem; border-radius: 5px; border: 1px solid #eee; }
.cf-ficha-nombre { flex: 1; color: #1a1a1a; font-weight: 600; }
.cf-ficha-salud { font-size: 12px; }

/* Recompensas */
.cf-recomp-row { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; margin-bottom: .3rem; }
.cf-recomp-row input, .cf-recomp-row select { font-size: 12px; padding: .3rem .5rem; border: 1px solid #ddd; border-radius: 4px; }
.cf-recomp-empty { font-size: 13px; color: #aaa; padding: .3rem; }
.ryou-cf-msg, .ryou-tf-msg { font-size: 13px; min-height: 1.2rem; }

/* ── WIDGET NOTIFICATION BADGE ────────────────────────────────────────────── */
.ryou-notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: #c00; color: #fff; font-size: 10px; font-weight: 700;
    border-radius: 10px; min-width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px; line-height: 1; pointer-events: none;
}
.ryou-widget-notif-btn {
    position: relative; cursor: pointer; font-size: 1.2rem;
    background: none; border: none; padding: .2rem;
}
.ryou-notif-panel {
    position: absolute; right: 0; top: 100%; width: 320px; max-height: 400px;
    overflow-y: auto; background: #fff; border: 1px solid #ddd; border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15); z-index: 10000; display: none;
}
.ryou-notif-panel.open { display: block; }
.ryou-notif-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem .8rem; border-bottom: 1px solid #eee; font-size: 13px; font-weight: 700;
}
.ryou-notif-panel-item {
    padding: .5rem .8rem; border-bottom: 1px solid #f5f5f5; font-size: 12px;
    cursor: pointer; transition: background .1s;
    display: grid; grid-template-columns: 1fr auto; gap: 2px 8px;
}
.ryou-notif-panel-item-msg  { grid-column: 1; grid-row: 1; line-height: 1.4; color: #1a0a0a; word-break: break-word; }
.ryou-notif-panel-item-fecha{ grid-column: 2; grid-row: 1; font-size: 11px; color: #aaa; white-space: nowrap; align-self: center; }
.ryou-notif-panel-item:hover { background: #fef9e7; }
.ryou-notif-panel-item.leida { opacity: .6; }
.ryou-notif-panel-item-msg  { color: #1a0a0a; margin-bottom: 2px; }
.ryou-notif-panel-item-fecha{ color: #aaa; font-size: 11px; }

/* ── SCROLLABLE SECTIONS ─────────────────────────────────────────────────── */
.ryou-mc-section-scrollable {
    max-height: 500px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(139,26,26,.3) transparent;
}
.ryou-mc-section-scrollable::-webkit-scrollbar { width: 6px; }
.ryou-mc-section-scrollable::-webkit-scrollbar-track { background: transparent; }
.ryou-mc-section-scrollable::-webkit-scrollbar-thumb { background: rgba(139,26,26,.3); border-radius: 3px; }

/* ── PAGINATION ──────────────────────────────────────────────────────────── */
.ryou-paginacion-wrap {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    padding: .6rem 0; border-top: 1px solid rgba(0,0,0,.08); margin-top: .5rem;
}
.ryou-paginacion-wrap label { font-size: 12px; color: #888; }
.ryou-paginacion-wrap select { font-size: 12px; padding: .2rem .4rem; border: 1px solid #ddd; border-radius: 4px; }
.ryou-pag-btns { display: flex; gap: .2rem; margin-left: auto; }
.ryou-pag-btn {
    padding: .2rem .6rem; border: 1px solid #ddd; border-radius: 4px; font-size: 12px;
    cursor: pointer; background: #fff; color: #555; text-decoration: none;
}
.ryou-pag-btn.active { background: #8b1a1a; color: #fff; border-color: #8b1a1a; }
.ryou-pag-btn:disabled { opacity: .4; cursor: default; }

/* ── NOTIFICATION MODAL ──────────────────────────────────────────────────────── */
#ryou-notif-modal {
    position: fixed; inset: 0; z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
#ryou-notif-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0; transition: opacity .25s;
}
#ryou-notif-modal.open #ryou-notif-modal-backdrop { opacity: 1; }
#ryou-notif-modal-box {
    position: relative; z-index: 1;
    background: #fff; border-radius: 12px;
    width: 100%; max-width: 480px; max-height: 80vh;
    display: flex; flex-direction: column;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    transform: translateY(20px); opacity: 0;
    transition: transform .25s, opacity .25s;
    overflow: hidden;
}
#ryou-notif-modal.open #ryou-notif-modal-box {
    transform: translateY(0); opacity: 1;
}
#ryou-notif-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: .8rem 1rem; border-bottom: 1px solid rgba(0,0,0,.08);
    background: #1a0a0a; color: #fff; flex-shrink: 0;
}
#ryou-notif-modal-header .ryou-btn--ghost {
    border-color: rgba(255,255,255,.4); color: #fff; font-size: 11px;
}
#ryou-notif-modal-header .ryou-btn--ghost:hover { background: rgba(255,255,255,.1); }
#ryou-notif-modal-close { color: rgba(255,255,255,.7) !important; }
#ryou-notif-modal-body {
    overflow-y: auto; flex: 1;
    scrollbar-width: thin; scrollbar-color: rgba(139,26,26,.3) transparent;
}

/* Notification items (both modal and mis_combates panel) */
/* ryou-nm-item styles moved to end of file */


/* ── Notification modal ─────────────────────────────────────────────────────── */
#ryou-notif-modal {
    position: fixed; inset: 0; z-index: 999999;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
#ryou-notif-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s;
}
#ryou-notif-modal.open #ryou-notif-modal-backdrop { opacity: 1; }
#ryou-notif-modal-box {
    position: relative; z-index: 1;
    background: #fff; border-radius: 12px;
    width: 100%; max-width: 480px; max-height: 80vh;
    display: flex; flex-direction: column;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    transform: translateY(20px); opacity: 0;
    transition: transform .25s, opacity .25s;
    overflow: hidden;
}
#ryou-notif-modal.open #ryou-notif-modal-box {
    transform: translateY(0); opacity: 1;
}
#ryou-notif-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: .8rem 1rem; border-bottom: 1px solid rgba(0,0,0,.08);
    background: #1a0a0a; color: #fff; flex-shrink: 0;
    font-family: Cinzel, serif; font-weight: 700;
}
#ryou-notif-modal-header .ryou-btn--ghost {
    border-color: rgba(255,255,255,.4); color: #fff; font-size: 11px;
}
#ryou-notif-modal-close { color: rgba(255,255,255,.7) !important; }
#ryou-notif-modal-body {
    overflow-y: auto; flex: 1;
    scrollbar-width: thin; scrollbar-color: rgba(139,26,26,.3) transparent;
}

/* Notification items */
.ryou-nm-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: .6rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
    cursor: pointer;
    transition: background .12s;
}
.ryou-nm-item:hover:not(.leida) { background: #fef9e7; }
.ryou-nm-item.leida { opacity: .5; cursor: default; }
.ryou-nm-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.3;
    width: 1.8rem;
    text-align: center;
}
.ryou-nm-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.ryou-nm-msg {
    font-size: 13px;
    line-height: 1.4;
    color: #1a0a0a;
    word-break: break-word;
}
.ryou-nm-fecha {
    font-size: 11px;
    color: #aaa;
}

/* Date input readable text */
#cf-fecha-evento, input[type="datetime-local"], input[type="date"] {
    color: #333 !important;
    background: #fff !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SAQUEO — Panel de declaración
   ══════════════════════════════════════════════════════════════════════════════ */
.ryou-saqueo-panel {
    background: var(--ryou-parch-dk, #3a2010);
    border: 1px solid var(--ryou-border, #8b4513);
    border-radius: 6px; padding: 1rem; margin-top: .8rem;
}
.ryou-saqueo-title {
    font-family: 'Cinzel', serif; font-size: .95rem; color: #e05050;
    margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid rgba(224,80,80,.3); padding-bottom: .4rem;
}
.ryou-saqueo-subtitle { font-size: .82rem; color: var(--ryou-gold, #c9a84c); margin: .8rem 0 .4rem; }
.ryou-saqueo-selrow { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.ryou-saqueo-selrow label { font-size: .82rem; color: var(--ryou-muted, #888); }

/* ── Saqueo items list ────────────────────────────────────────────────────── */
.ryou-saqueo-items-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .5rem;
}
.ryou-saqueo-item {
    display: grid;
    grid-template-columns: 28px 1fr auto auto;
    align-items: center; gap: .35rem;
    background: #fff; border: 1px solid #ccc;
    border-radius: 5px; padding: .4rem .5rem;
    min-width: 0;
}
.ryou-saqueo-img { width: 28px; height: 28px; object-fit: contain; border-radius: 3px; }
.ryou-saqueo-item-info { min-width: 0; font-size: 13px; }
.ryou-saqueo-item-info strong { color: #111; display: block; font-weight: 700; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ryou-saqueo-avail { font-size: 12px; color: #444; display:block; }
.ryou-saqueo-slot-badge {
    font-size: 11px; background: #444; color: #fff;
    padding: .1rem .3rem; border-radius: 3px;
    text-transform: capitalize; font-weight: 700;
    white-space: nowrap;
}
.ryou-saqueo-contents { margin: .2rem 0 0 .2rem; padding-left: .6rem; font-size: 12px; color: #333; list-style:disc; }
.ryou-saqueo-contents li { color: #333; }
.cf-saqueo-qty-input { width: 44px !important; text-align:center; font-size:13px; padding:.1rem .2rem; }
.cf-saqueo-add-item-btn {
    font-size: 12px; padding: .2rem .5rem; background: #8b1a1a; color: #fff;
    border: none; border-radius: 4px; cursor: pointer; white-space: nowrap;
    width: auto; flex-shrink: 0; transition: opacity .2s;
}
.cf-saqueo-add-item-btn:hover { opacity: .82; }
.ryou-saqueo-add-btn, .ryou-saqueo-open-btn {
    font-size: 13px; padding: .3rem .8rem; background: #8b1a1a;
    color: #fff; border: none; border-radius: 4px; cursor: pointer;
    transition: opacity .2s; display:inline-block; width:auto;
}
.ryou-saqueo-add-btn:hover, .ryou-saqueo-open-btn:hover { opacity: .82; }

/* Selected items */
.ryou-saqueo-selected-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin-top: .4rem;
}
.ryou-saqueo-sel-item {
    display: flex; align-items: center; gap: .3rem;
    background: #fff0f0; border: 1px solid #d9a0a0;
    border-radius: 4px; padding: .3rem .4rem; font-size: 13px; min-width:0;
}
.ryou-saqueo-sel-img { width: 20px; height: 20px; object-fit: contain; border-radius: 2px; flex-shrink:0; }
.ryou-saqueo-sel-name { flex:1; color:#111; font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.ryou-saqueo-rm-btn {
    background: transparent; border: 1px solid #c00; color: #c00; cursor: pointer;
    font-size: 11px; padding: .05rem .3rem; border-radius:3px; flex-shrink:0; line-height:1.4;
}
.ryou-saqueo-confirm-btn {
    display: inline-block; margin-top: .6rem;
    padding: .35rem 1.2rem; background: #8b1a1a; color: #fff;
    border: none; border-radius: 5px; cursor: pointer;
    font-family: 'Courier New',monospace; font-size: 13px; font-weight:700;
    letter-spacing:.04em; text-transform:uppercase;
    transition: opacity .2s;
}
.ryou-saqueo-confirm-btn:hover { opacity: .82; }

/* ── Saqueo en formulario de registro ────────────────────────────────────────── */
.ryou-cf-saqueo-info {
    font-size: 14px; color: #8b1a1a; margin: .4rem 0 .8rem;
    font-weight: 600; line-height: 1.6;
}
.cf-saqueo-row {
    background: rgba(139,26,26,.08); border: 1px solid rgba(139,26,26,.25);
    border-radius: 6px; padding: .7rem; margin-bottom: .6rem;
}
.cf-saqueo-row-selectors {
    display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem;
}
.cf-saqueo-row-selectors select { flex: 1; min-width: 160px; }
.cf-saqueo-items-wrap { border-top: 1px solid rgba(139,26,26,.2); padding-top: .5rem; }
.cf-saqueo-sel-title  { font-size: .78rem; color: #c9a84c; display: block; margin: .4rem 0 .2rem; }

/* ── Título del formulario de combate ────────────────────────────────────────── */
.ryou-cf-titulo {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 1.4rem;
    padding-bottom: .7rem;
    border-bottom: 3px solid #111;
    text-shadow: none;
}

/* ── Saqueo box distintivo ───────────────────────────────────────────────────── */
.ryou-cf-saqueo-box {
    background: rgba(139,26,26,.08);
    border: 2px solid rgba(139,26,26,.4);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
}
.ryou-cf-saqueo-box-header {
    display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem;
}
.ryou-cf-saqueo-box-title {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 1.1rem; font-weight: 900;
    color: #8b1a1a; text-transform: uppercase; letter-spacing: .1em;
}
.ryou-cf-saqueo-box-badge {
    font-size: .68rem; background: rgba(139,26,26,.15);
    color: #8b1a1a; border: 1px solid rgba(139,26,26,.4);
    padding: .1rem .4rem; border-radius: 3px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}

/* Saqueo empty state */
.cf-saqueo-empty { font-size: .85rem; color: #222; padding: .4rem 0; font-style: italic; }

/* Saqueo add feedback toast */
.ryou-saqueo-toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: #2a7a2a; color: #fff; padding: .5rem 1.2rem;
    border-radius: 6px; font-size: 14px; font-weight: 700;
    z-index: 99999; pointer-events: none;
    animation: ryouToastIn .2s ease, ryouToastOut .3s ease 1.8s forwards;
}
@keyframes ryouToastIn  { from { opacity:0; transform:translateX(-50%) translateY(10px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
@keyframes ryouToastOut { from { opacity:1; } to { opacity:0; } }

/* Recompensas box */
.ryou-cf-recomp-box {
    border: 1px solid var(--ryou-border, rgba(139,83,37,.4));
    border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem;
    background: rgba(0,0,0,.06);
}
.ryou-cf-recomp-box-title {
    font-family: 'Courier New', monospace; font-size: 1rem; font-weight: 900;
    color: var(--ryou-gold, #c9a84c); text-transform: uppercase; letter-spacing: .08em;
    margin: 0 0 .8rem; border-bottom: 2px solid var(--ryou-gold, #c9a84c); padding-bottom: .4rem;
}

/* ── Unified section titles ──────────────────────────────────────────────────── */
.ryou-mc-section-title {
    font-family: 'Courier New','Lucida Console',monospace !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #111 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 .8rem !important;
    padding-bottom: .4rem;
    border-bottom: 2px solid #333;
    display: flex !important;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

/* ── Saqueos en card de combate ──────────────────────────────────────────────── */
.ryou-combate-saqueos {
    padding: .5rem .8rem; border-top: 1px solid rgba(0,0,0,.1);
    font-size: 13px; background: rgba(139,26,26,.06);
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start;
}
.ryou-combate-saqueos-label { color: #8b1a1a; font-weight:700; }
.ryou-combate-saqueo-group {
    display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.7); border: 1px solid #ddd;
    border-radius: 5px; padding: .3rem .6rem;
}
.ryou-combate-saqueo-pair { font-weight:700; color:#111; font-size:13px; }
.ryou-combate-saqueo-estado {
    font-size: 11px; padding: .1rem .35rem; border-radius: 3px; font-weight:700;
    text-transform: capitalize;
}
.ryou-combate-saqueo-estado--aprobado  { background:#e8f5e9; color:#2a7a2a; border:1px solid #a5d6a7; }
.ryou-combate-saqueo-estado--denegado  { background:#fde8e8; color:#8b1a1a; border:1px solid #f5a5a5; }
.ryou-combate-saqueo-estado--pendiente { background:#fff8e1; color:#856404; border:1px solid #ffe082; }
.ryou-combate-saqueo-items { display:flex; flex-wrap:wrap; gap:.3rem; margin-top:.2rem; width:100%; }
.ryou-combate-saqueo-item {
    display:inline-flex; align-items:center; gap:.25rem;
    background:rgba(0,0,0,.06); border:1px solid #ccc;
    border-radius:4px; padding:.15rem .4rem; font-size:12px; color:#111;
}
.ryou-combate-saqueo-img { width:18px; height:18px; object-fit:contain; }

/* Force all form/section titles black */
.ryou-tf h3, .ryou-cf h2, .ryou-cf h3 {
    color: #111 !important;
    font-family: 'Courier New','Lucida Console',monospace !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 .8rem !important;
    padding-bottom: .4rem;
    border-bottom: 2px solid #333;
}

/* Transaction history text */
.ryou-mc-trans-de, .ryou-mc-trans-de strong,
.ryou-mc-trans-detalle, .ryou-mc-trans-concepto,
.ryou-mc-trans-info * { color: #111 !important; }
.ryou-mc-trans { background: #fff; border-color: #ddd; }
.ryou-mc-trans-info { color: #111; }
