/* Guide Rewards admin panel (docs/guide-system-design.md §6, mockup approved by the user 21 Nov
   2026, claude.ai/artifact/E2bTmFeMPsMjCTvF3tTz6g). Same card/stat/icon-wrap system and blue accent
   as guide-panel.css (re-declared under its own namespace rather than reusing that file's selectors,
   since this is a separate top-level interface, not the Guide Panel itself) - wider than guide-panel's
   420px, since this is a desktop-leaning admin dashboard, not a mobile-first player-facing panel. */

.interface.guide-rewards-interface {
    width: 100%;
    max-width: 820px;
    text-align: left;
    padding: 0;
    border-radius: 10px;
}

.guide-rewards-interface,
.guide-rewards-interface *,
.guide-rewards-interface *::before,
.guide-rewards-interface *::after {
    box-sizing: border-box;
}

.guide-rewards-interface .close-button {
    z-index: 5;
}

.guide-rewards-interface {
    --gr-accent: #2f7de8;
    --gr-accent-deep: #1a4fa0;
    font-family: Arial, Helvetica, sans-serif;
}

.guide-rewards-body {
    padding: 16px 18px 20px;
    max-height: 78vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-rewards-body::-webkit-scrollbar-track { background-color: #e7e9f2; border-radius: 5px; }
.guide-rewards-body::-webkit-scrollbar-thumb { background-color: #000; border-radius: 4px; }
.guide-rewards-body::-webkit-scrollbar { width: 5px; }

/* ---------------------------------------------------------------------------
   Tab switcher
--------------------------------------------------------------------------- */
.guide-rewards-tabs {
    display: flex;
    gap: 6px;
    background: #eef0f6;
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}

.guide-rewards-tab-btn {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 7px;
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    color: #75758c;
    background: transparent;
}

.guide-rewards-tab-btn.active {
    color: #fff;
    background: var(--gr-accent-deep);
}

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */
.guide-rewards-header {
    position: relative;
    padding: 22px 24px 20px;
    background: linear-gradient(135deg, var(--gr-accent-deep) 0%, var(--gr-accent) 100%);
    color: #fff;
    border-radius: 7px 7px 0 0;
}

.guide-rewards-header.plain {
    background: #fff;
    color: #14141f;
    border: 1px solid #e7e9f2;
    border-radius: 10px;
}

.guide-rewards-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ffffffcc;
    margin: 0 0 4px;
}

.guide-rewards-header.plain .guide-rewards-eyebrow { color: #75758c; }

.guide-rewards-header h1 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 700;
}

.guide-rewards-header p {
    margin: 0;
    font-size: 12.5px;
}

.guide-rewards-header:not(.plain) p { color: #ffffffd9; }
.guide-rewards-header.plain p { color: #75758c; }

.guide-rewards-stat-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.guide-rewards-stat-pill {
    flex: 1;
    min-width: 120px;
    background: #ffffff1a;
    border: 1px solid #ffffff2e;
    border-radius: 10px;
    padding: 10px 12px;
}

.guide-rewards-stat-pill .label {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #ffffffb3;
    font-weight: 700;
    margin-bottom: 3px;
}

.guide-rewards-stat-pill .value {
    font-size: 18px;
    font-weight: 800;
}

.guide-rewards-month-select {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #14141f;
    border: 1px solid #c7cadb;
    border-radius: 8px;
    padding: 9px 12px;
    background: #fff;
    cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Guide cards
--------------------------------------------------------------------------- */
.guide-rewards-card {
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 14px;
    padding: 16px 18px 18px;
}

.guide-rewards-card.flagged {
    background: #fffaf1;
    border-color: #f2d79a;
}

.guide-rewards-flag-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fdf1de;
    border: 1px solid #f2d79a;
    color: #93650e;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.guide-rewards-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.guide-rewards-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gr-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}

.guide-rewards-card-identity { flex: 1; min-width: 150px; }
.guide-rewards-card-identity .name { font-size: 15.5px; font-weight: 700; color: #14141f; }
.guide-rewards-card-identity .sub { font-size: 11px; color: #75758c; }

.guide-rewards-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.guide-rewards-badge.in-progress { background: #eef0f6; color: #75758c; }
.guide-rewards-badge.approved { background: #d8fbe8; color: #0e9161; }
.guide-rewards-badge.declined { background: #fde2e2; color: #b23c3e; }

.guide-rewards-actions { display: flex; gap: 8px; }

.guide-rewards-btn {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 9px 14px;
    cursor: pointer;
    border: none;
    color: #fff;
}

.guide-rewards-btn.decline { background: #d85254; }
.guide-rewards-btn.decline:hover { background: #fd7173; }
.guide-rewards-btn.approve { background: #0e9161; }
.guide-rewards-btn.approve:hover { background: #26b17d; }

.guide-rewards-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.guide-rewards-stat {
    flex: 1;
    min-width: 90px;
    background: #f7f8fc;
    border: 1px solid #e7e9f2;
    border-radius: 10px;
    padding: 9px 7px;
    text-align: center;
}

.guide-rewards-stat.flagged { background: #fdf1de; border-color: #f2d79a; }

.guide-rewards-stat .label {
    font-size: 9px;
    color: #75758c;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    margin-bottom: 3px;
}

.guide-rewards-stat .value {
    font-size: 15.5px;
    font-weight: 800;
    color: #14141f;
}

.guide-rewards-stat.flagged .value { color: #93650e; }

.guide-rewards-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gr-accent);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 12px;
}

.guide-rewards-reward-row {
    background: #f7f8fc;
    border: 1px solid #e7e9f2;
    border-radius: 10px;
    padding: 10px 14px;
}

.guide-rewards-reward-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.guide-rewards-reward-label { font-size: 10.5px; color: #75758c; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.guide-rewards-reward-sub { font-size: 11px; color: #9a9aad; }

.guide-rewards-amount-input {
    width: 76px;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    border: 1px solid #c7cadb;
    border-radius: 8px;
    padding: 8px 6px;
    color: #14141f;
    font-family: Arial, Helvetica, sans-serif;
}

.guide-rewards-breakdown {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px dashed #e0e2ed;
    font-size: 11px;
    color: #75758c;
    line-height: 1.5;
}

.guide-rewards-running-total .value { font-size: 16px; font-weight: 800; color: #14141f; margin: 2px 0; }

.guide-rewards-empty {
    text-align: center;
    padding: 28px 10px;
    color: #75758c;
    font-size: 13px;
    line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Session / chat-log drill-down
--------------------------------------------------------------------------- */
.guide-rewards-sessions-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--gr-accent-deep) 0%, var(--gr-accent) 100%);
    color: #fff;
    border-radius: 7px 7px 0 0;
}

.guide-rewards-back-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #ffffff40;
    background: #ffffff20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-rewards-session-row {
    border: 1px solid #e7e9f2;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.guide-rewards-session-toggle {
    width: 100%;
    text-align: left;
    background: #f7f8fc;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: Arial, Helvetica, sans-serif;
}

.guide-rewards-session-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e3edff;
    color: #2569f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 10.5px;
    flex-shrink: 0;
}

.guide-rewards-session-info { flex: 1; min-width: 120px; }
.guide-rewards-session-info .name { font-size: 13px; font-weight: 700; color: #14141f; }
.guide-rewards-session-info .meta { font-size: 11px; color: #75758c; }

.guide-rewards-session-active { font-size: 11px; font-weight: 700; color: #14141f; white-space: nowrap; }

.guide-rewards-status-chip {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 100px;
    white-space: nowrap;
}

.guide-rewards-chevron { transition: transform .15s ease; flex-shrink: 0; }
.guide-rewards-chevron.open { transform: rotate(180deg); }

.guide-rewards-chat {
    padding: 12px 13px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: min(360px, 50vh);
    overflow-y: auto;
}

.guide-rewards-chat::-webkit-scrollbar { width: 5px; }
.guide-rewards-chat::-webkit-scrollbar-track { background-color: #e7e9f2; border-radius: 5px; }
.guide-rewards-chat::-webkit-scrollbar-thumb { background-color: #000; border-radius: 4px; }

.guide-rewards-chat-row { display: flex; }
.guide-rewards-chat-row.guide { justify-content: flex-end; }
.guide-rewards-chat-row.player { justify-content: flex-start; }

.guide-rewards-chat-bubble {
    max-width: 78%;
    border-radius: 12px;
    padding: 7px 11px;
    font-size: 12px;
    line-height: 1.4;
}

.guide-rewards-chat-row.guide .guide-rewards-chat-bubble { background: var(--gr-accent); color: #fff; }
.guide-rewards-chat-row.player .guide-rewards-chat-bubble { background: #f0f1f6; color: #14141f; }

.guide-rewards-chat-meta { font-size: 9.5px; font-weight: 700; opacity: .7; margin-bottom: 2px; }

.guide-rewards-session-note {
    font-size: 11.5px;
    color: #4a4f5c;
    font-style: italic;
    padding: 9px 13px;
    border-top: 1px dashed #e0e2ed;
    background: #fff;
}

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 700px) {
    .interface.guide-rewards-interface { max-width: min(500px, calc(100vw - 33px)); }
    .guide-rewards-stat-row { flex-wrap: wrap; }
    .guide-rewards-stat-pill { flex-basis: calc(50% - 5px); }
}

@media (max-width: 480px) {
    .guide-rewards-card-top { flex-direction: column; align-items: flex-start; }
    .guide-rewards-actions { width: 100%; }
    .guide-rewards-btn { flex: 1; }
    .guide-rewards-stats { flex-wrap: wrap; }
    .guide-rewards-stat { flex-basis: calc(50% - 4px); }
}
