/* ==========================================================================
   Purser's cabin — an overlay on the shared theme
   ========================================================================== */

/* On this page the tiles sit straight on the night sea, so they need
   a solid background of their own — otherwise the moon shines through the numbers. */
.page-admin .stats {
    margin-bottom: 18px;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.page-admin .stat {
    background: linear-gradient(160deg, #48301b, #23150b 70%, #1a0f07);
    border: 2px solid rgba(0, 0, 0, .5);
    box-shadow: inset 0 1px 0 rgba(255, 214, 150, .18), 0 10px 24px rgba(0, 0, 0, .45);
}

.page-admin .stat__value { font-size: 21px; white-space: nowrap; }

.panels__head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 0 16px;
    border-bottom: 2px solid rgba(0, 0, 0, .35);
    margin-bottom: 16px;
}

.panels__title {
    font-size: 22px;
    color: var(--gold-bright);
    margin-right: auto;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .5);
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.select--sm, .input--sm { width: auto; padding: 8px 12px; font-size: 13px; }

/* ---------- House settings ---------- */

.settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.setting { display: block; }

.setting__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.setting__control { position: relative; display: block; }

.setting__control .input { padding-right: 46px; font-family: var(--font-display); font-size: 18px; }

.setting__suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-dim);
    pointer-events: none;
}

.setting__hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-dim);
}

.settings__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid rgba(0, 0, 0, .35);
}

.settings__note { margin: 0; font-size: 12px; color: var(--emerald-light); }

/* Return to players is the purser's main lever, so it stays in plain sight */
.rtp {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 2px solid rgba(86, 210, 155, .45);
    background: rgba(55, 145, 107, .18);
}

.rtp__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.rtp__value { font-family: var(--font-display); font-size: 22px; color: var(--emerald-light); }

.rtp.is-loss { border-color: rgba(210, 71, 47, .55); background: rgba(149, 44, 31, .22); }
.rtp.is-loss .rtp__value { color: #ff9d8a; }

.input--chance { width: 96px !important; }
.input--code { width: 110px !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* The bankroll tiles shout before the table does */
.stat.is-thin { border-color: rgba(233, 185, 90, .55); background: rgba(233, 185, 90, .12); }
.stat.is-thin .stat__value { color: var(--gold-bright); }
.stat.is-loss { border-color: rgba(210, 71, 47, .55); background: rgba(149, 44, 31, .22); }
.stat.is-loss .stat__value { color: #ff9d8a; }

.bankroll-note {
    margin: -4px 0 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(149, 44, 31, .18);
    border: 1px solid rgba(210, 71, 47, .45);
    font-size: 13px;
    line-height: 1.6;
    color: #ffc9bd;
}

/* ---------- Request card ---------- */

.request {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: 12px;
    border-left: 5px solid var(--wood-light);
    background: linear-gradient(100deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .18));
    box-shadow: inset 0 1px 0 rgba(255, 214, 150, .1);
    animation: row-in .35s ease both;
    transition: opacity .3s, transform .3s;
}

.request--deposit { border-left-color: var(--emerald-light); }
.request--withdrawal { border-left-color: var(--gold); }
.request.is-resolved { opacity: .55; }
.request.is-leaving { opacity: 0; transform: translateX(40px); }

.request__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }

.request__type { font-family: var(--font-display); font-size: 18px; color: var(--gold-bright); }
.request__amount { font-family: var(--font-display); font-size: 22px; color: var(--text); }
.request__meta { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.request__meta b { color: var(--gold-bright); }

.request__usd {
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(55, 145, 107, .22);
    border: 1px solid rgba(86, 210, 155, .45);
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--emerald-light);
}
.request__details { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); }
.request__actions { display: flex; flex-direction: column; gap: 8px; min-width: 168px; }

.request__player {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(232, 180, 76, .14);
    border: 1px solid rgba(232, 180, 76, .35);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-bright);
}

/* ---------- Players ---------- */

.player {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 13px 16px;
    margin-bottom: 10px;
    border-radius: 11px;
    background: linear-gradient(100deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .16));
    animation: row-in .3s ease both;
}

.player.is-banned { filter: grayscale(.6); opacity: .7; }

.player__name { font-family: var(--font-display); font-size: 17px; min-width: 150px; }
.player__balance { font-family: var(--font-display); font-size: 19px; color: var(--gold-bright); min-width: 120px; }
.player__meta { font-size: 12px; color: var(--text-dim); margin-right: auto; }
.player__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.player__tools .input { width: 130px; padding: 7px 10px; font-size: 13px; }

@media (max-width: 760px) {
    .request { grid-template-columns: 1fr; }
    .request__actions { min-width: 0; flex-direction: row; }
    .player__meta { width: 100%; margin: 0; }
}
