/* =========================
   HALL OF FAME
========================= */
.hall-page {
    max-width: 1180px;
    padding-top: 12px;
}

.hall-podium-card {
    border: 1px solid rgba(31,241,255,0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255,209,90,0.10), transparent 46%),
        rgba(21,21,21,0.80);
    box-shadow: 0 0 26px rgba(31,241,255,0.06);
}

.hall-section-head h2 {
    margin: 0;
    color: var(--green);
    font-size: 24px;
}

.hall-podium-card {
    padding: 14px;
    margin-bottom: 12px;
}

.hall-podium-card:last-child {
    margin-bottom: 0;
}

.hall-podium-card-alltime {
    border-color: rgba(255,209,90,0.28);
    background:
        radial-gradient(circle at top right, rgba(255,209,90,0.14), transparent 46%),
        rgba(21,21,21,0.84);
}

.hall-podium-card-month {
    border-color: rgba(179,92,255,0.24);
    background:
        radial-gradient(circle at top right, rgba(179,92,255,0.11), transparent 44%),
        rgba(21,21,21,0.82);
}

.hall-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}

.hall-note {
    max-width: 280px;
    color: rgba(242,242,242,0.62);
    font-size: 11px;
    font-weight: bold;
    text-align: right;
}

.hall-history-toggle {
    padding: 8px 11px;
    color: #d9b8ff;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(179,92,255,0.55);
    border-radius: 999px;
    background: rgba(179,92,255,0.10);
    cursor: pointer;
}

.hall-history-toggle:hover {
    color: #ffffff;
    box-shadow: 0 0 14px rgba(179,92,255,0.22);
}

.hall-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.hall-podium-slot {
    position: relative;
    min-height: 104px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid var(--hall-color);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--hall-color) 30%, transparent), transparent 52%),
        rgba(255,255,255,0.035);
    box-shadow: 0 0 24px color-mix(in srgb, var(--hall-color) 18%, transparent);
}

.hall-podium-slot.gold {
    --hall-color: #ffd15a;
    min-height: 122px;
    order: 2;
}

.hall-podium-card-alltime .hall-podium-slot.gold {
    min-height: 132px;
}

.hall-podium-slot.silver {
    --hall-color: #d9e4ee;
    order: 1;
}

.hall-podium-slot.bronze {
    --hall-color: #c88744;
    order: 3;
}

.hall-podium-slot.r4-required {
    border-style: dashed;
    box-shadow: 0 0 22px rgba(186, 85, 255, 0.18);
}

.hall-podium-slot.r4-required small {
    color: #c77dff;
}

.admin-hof-rank-list {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
}

.admin-hof-rank-row {
    display: grid;
    grid-template-columns: 42px minmax(120px, 1fr) minmax(80px, auto) auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-hof-rank-row small {
    color: var(--muted);
    font-weight: bold;
}

.hall-podium-medal {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #101010;
    font-size: 19px;
    font-weight: 900;
    border-radius: 50%;
    background: var(--hall-color);
    box-shadow: 0 0 16px color-mix(in srgb, var(--hall-color) 45%, transparent);
}

.hall-podium-label {
    display: block;
    margin-bottom: 2px;
    color: var(--hall-color);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.hall-podium-slot strong {
    display: block;
    color: var(--text);
    font-size: 18px;
}

.hall-podium-slot small {
    color: rgba(242,242,242,0.66);
    font-size: 11px;
    font-weight: bold;
}

.hall-podium-points {
    color: var(--hall-color);
    font-size: 20px;
    font-weight: 900;
}

.hall-month-history,
.hall-period-history {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.hall-month-history[hidden],
.hall-period-history[hidden] {
    display: none;
}

.hall-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
}

.hall-ranking-list,
.hall-history-list {
    display: grid;
    gap: 10px;
}

.hall-ranking-row {
    --hall-color: var(--glow-accent);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 96px 64px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--hall-color) 30%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--hall-color) 9%, rgba(255,255,255,0.02));
}

.hall-ranking-row.gold { --hall-color: #ffd15a; }
.hall-ranking-row.silver { --hall-color: #d9e4ee; }
.hall-ranking-row.bronze { --hall-color: #c88744; }

.hall-ranking-place,
.hall-ranking-medals,
.hall-ranking-row strong {
    color: var(--hall-color);
    font-weight: 900;
}

.hall-ranking-name {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hall-ranking-medals {
    font-size: 12px;
    text-transform: uppercase;
}

.hall-history-preview,
.hall-empty {
    padding: 14px;
    color: rgba(242,242,242,0.70);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    background: rgba(255,255,255,0.025);
}

.hall-history-preview strong,
.hall-history-preview span {
    display: block;
}

.hall-history-preview strong {
    color: var(--green);
    margin-bottom: 5px;
}

.member-flow-panel,
.member-action-message {
    order: 7;
}

.member-detail-card {
    min-height: 92px;
    padding: 14px;
    border: 1px solid rgba(31,241,255,0.18);
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
}

.member-detail-card.muted-card {
    opacity: 0.72;
}

.member-detail-card-label {
    min-height: 34px;
    color: var(--muted);
    font-size: 12px;
    font-weight: bold;
    line-height: 1.35;
    text-transform: uppercase;
}

.member-detail-card-value {
    margin-top: 8px;
    color: var(--text);
    font-size: 20px;
    font-weight: bold;
}

.member-detail-card-value.compact {
    font-size: 16px;
}

.legacy-detail-grid {
    display: none;
}

.member-detail-card-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.member-detail-card-button:hover {
    border-color: rgba(31,241,255,0.50);
    background: rgba(31,241,255,0.065);
    box-shadow: 0 0 18px rgba(31,241,255,0.10);
}

.member-detail-card-note {
    margin-top: 7px;
    color: rgba(242,242,242,0.58);
    font-size: 11px;
    font-weight: bold;
}

.member-activity-board,
.member-rating-history {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(31,241,255,0.22);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(31,241,255,0.08), rgba(53,255,138,0.035)),
        rgba(255,255,255,0.026);
}

.member-board-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.member-board-head.compact-head {
    margin-bottom: 12px;
}

.member-board-head h3 {
    margin: 0;
    color: var(--glow-accent);
    font-size: 18px;
}

.member-board-head p {
    margin: 5px 0 0;
    color: rgba(242,242,242,0.62);
    font-size: 13px;
}

.member-status-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(53,255,138,0.34);
    border-radius: 999px;
    color: var(--green);
    background: rgba(53,255,138,0.08);
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.member-activity-board.is-afk-paused {
    border-color: rgba(220,231,243,0.30);
    background:
        linear-gradient(135deg, rgba(220,231,243,0.07), rgba(31,241,255,0.025)),
        rgba(255,255,255,0.022);
}

.member-activity-board.is-afk-paused .member-status-badge {
    border-color: rgba(220,231,243,0.42);
    color: #dce7f3;
    background: rgba(220,231,243,0.09);
}

.member-activity-board.is-afk-paused .member-bars,
.member-activity-board.is-afk-paused .member-mini-stats {
    opacity: 0.78;
}

.member-activity-board.is-afk-paused .member-bar-track > span[id$="-bar"] {
    background: linear-gradient(90deg, #9aa4b2, #dce7f3);
    box-shadow: 0 0 12px rgba(220,231,243,0.18);
}

.member-detail-card:has(#member-detail-rank) {
    display: none;
}

.member-detail-card:has(#member-detail-last-update) {
    display: none;
}

.member-bars {
    display: grid;
    gap: 12px;
}

.member-bar-row {
    display: grid;
    gap: 8px;
}

.member-bar-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-size: 13px;
}

.member-bar-meta span {
    display: none;
    color: rgba(242,242,242,0.68);
    font-weight: bold;
}

.member-bar-track {
    position: relative;
    height: 12px;
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(0,0,0,0.26);
}

.member-bar-track > span[id$="-bar"] {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffe066, #ffd45c);
    box-shadow: 0 0 14px rgba(31,241,255,0.26);
    transition: width 0.35s ease;
    max-width: 100%;
}

.member-bar-track > span[id$="-bar"][data-state="critical"] {
    background: linear-gradient(90deg, #ff3030, #ff4d4d);
}

.member-bar-track > span[id$="-bar"][data-state="low"] {
    background: linear-gradient(90deg, #ff6a2f, #ff9a3d);
}

.member-bar-track > span[id$="-bar"][data-state="average"] {
    background: linear-gradient(90deg, #ffd45c, #ffe066);
}

.member-bar-track > span[id$="-bar"][data-state="active"] {
    background: linear-gradient(90deg, #a8ff5c, #64ff7e);
}

.member-bar-track > span[id$="-bar"][data-state="strong"] {
    background: linear-gradient(90deg, #35ff8a, #20ff75);
    box-shadow: 0 0 16px rgba(53,255,138,0.30);
}

.member-average-marker {
    position: absolute;
    top: -8px;
    bottom: -8px;
    width: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 0 10px rgba(255,255,255,0.26);
    transform: translateX(-1px);
    pointer-events: none;
}

.member-threshold-marker {
    position: absolute;
    top: -6px;
    bottom: -6px;
    width: 2px;
    border-radius: 999px;
    background: rgba(255,68,68,0.95);
    box-shadow: 0 0 10px rgba(255,48,48,0.34);
    transform: translateX(-1px);
    pointer-events: none;
}

.member-average-marker::before {
    content: "Avg";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(242,242,242,0.74);
    font-size: 10px;
    font-weight: bold;
}

.member-top-star {
    position: absolute;
    top: -27px;
    right: -2px;
    width: 18px;
    height: 18px;
    display: block;
    background: #ffd45c;
    clip-path: polygon(50% 0%, 61% 34%, 96% 34%, 68% 54%, 79% 88%, 50% 67%, 21% 88%, 32% 54%, 4% 34%, 39% 34%);
    filter:
        drop-shadow(0 0 6px rgba(255,212,92,0.92))
        drop-shadow(0 0 14px rgba(255,212,92,0.46));
    animation: topStarPulse 1.4s ease-in-out infinite alternate;
}

.member-bar-track.is-top {
    box-shadow:
        0 0 0 1px rgba(255,212,92,0.42),
        0 0 18px rgba(255,212,92,0.18);
}

.member-average-marker::before {
    content: "";
}

@keyframes topStarPulse {
    from {
        transform: scale(0.94) rotate(-4deg);
    }
    to {
        transform: scale(1.12) rotate(5deg);
    }
}

.member-mini-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.member-mini-stats div,
.member-mini-stats button {
    position: relative;
    grid-column: span 2;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
    color: inherit;
    text-align: center;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.member-mini-stats > :nth-child(4) {
    grid-column: 2 / span 2;
}

.member-mini-stats > :nth-child(5) {
    grid-column: 4 / span 2;
}

.member-mini-stats .mini-stat-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 16px;
    color: rgba(242,242,242,0.68);
    font-size: 11px;
    font-weight: bold;
}

.member-mini-stats .mini-stat-title small {
    display: inline;
    color: rgba(242,242,242,0.54);
    font-size: 10px;
    text-transform: none;
}

.mini-history-cue {
    display: inline-grid;
    place-items: center;
    min-height: 17px;
    padding: 0 7px;
    border: 1px solid rgba(31,241,255,0.28);
    border-radius: 999px;
    background: rgba(31,241,255,0.08);
    color: var(--glow-accent);
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
}

.mini-stat-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-top: 7px;
}

.mini-stat-split > span + span {
    padding-left: 10px;
    border-left: 1px solid rgba(31,241,255,0.18);
}

.mini-stat-you {
    text-align: left;
}

.mini-stat-average {
    display: grid;
    gap: 3px;
    text-align: right;
}

.mini-stat-player-average {
    text-align: left;
}

.mini-stat-average.single-average {
    align-content: center;
}

.member-mini-stats .mini-stat-split small {
    min-height: 13px;
    color: rgba(242,242,242,0.48);
    font-size: 9px;
    text-align: center;
    text-transform: uppercase;
}

.mini-stat-daily-table-card {
    min-height: 112px;
}

.mini-stat-daily-table {
    display: grid;
    grid-template-columns: minmax(66px, 0.95fr) minmax(45px, 0.7fr) minmax(45px, 0.7fr);
    align-items: baseline;
    gap: 5px 10px;
    margin-top: 9px;
}

.mini-stat-daily-table small {
    min-height: 0;
    color: rgba(242,242,242,0.55);
    font-size: 10px;
    line-height: 1.05;
    text-align: right;
    text-transform: uppercase;
}

.mini-stat-daily-table small:nth-child(3n + 1) {
    color: rgba(242,242,242,0.68);
    text-align: left;
}

.mini-stat-daily-table strong {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.05;
    text-align: right;
}

.mini-stat-daily-table strong:nth-child(3n + 2) {
    color: #ffffff;
}

.mini-stat-daily-table strong:nth-child(3n) {
    color: var(--glow-accent);
}

.member-mini-stats button {
    cursor: pointer;
}

.member-mini-stats button:hover {
    border-color: rgba(31,241,255,0.42);
    background: rgba(31,241,255,0.055);
    box-shadow: 0 10px 28px rgba(31,241,255,0.10);
    transform: translateY(-1px);
}

.member-mini-stats div.podium-gold {
    border-color: rgba(255,212,92,0.76);
    background:
        radial-gradient(circle at top right, rgba(255,212,92,0.18), transparent 54%),
        rgba(255,212,92,0.045);
    box-shadow:
        0 0 0 1px rgba(255,212,92,0.16),
        0 0 22px rgba(255,212,92,0.20);
}

.member-mini-stats div.podium-gold::after {
    content: "\2605";
    float: right;
    margin-top: -8px;
    color: #ffd45c;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(255,212,92,0.78);
}

.member-mini-stats div.podium-silver {
    border-color: rgba(214,226,240,0.64);
    background:
        radial-gradient(circle at top right, rgba(214,226,240,0.14), transparent 54%),
        rgba(214,226,240,0.035);
    box-shadow:
        0 0 0 1px rgba(214,226,240,0.12),
        0 0 18px rgba(214,226,240,0.13);
}

.member-mini-stats div.podium-bronze {
    border-color: rgba(205,127,50,0.68);
    background:
        radial-gradient(circle at top right, rgba(205,127,50,0.17), transparent 54%),
        rgba(205,127,50,0.04);
    box-shadow:
        0 0 0 1px rgba(205,127,50,0.13),
        0 0 18px rgba(205,127,50,0.13);
}

.member-mini-stats small {
    display: block;
    color: rgba(242,242,242,0.62);
    font-size: 11px;
    font-weight: bold;
}

.member-mini-stats strong {
    display: block;
    margin: 4px 0 2px;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-stat-you strong {
    text-align: left;
}

.mini-stat-average strong {
    text-align: right;
}

.mini-stat-player-average strong {
    text-align: left;
}

@media (max-width: 900px) {
    .member-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-mini-stats div,
    .member-mini-stats button,
    .member-mini-stats > :nth-child(4),
    .member-mini-stats > :nth-child(5) {
        grid-column: auto;
    }
}

.member-rating-log-list {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
    padding-right: 4px;
}

.member-rating-log-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 116px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
}

.rating-log-change {
    color: var(--glow-accent);
    font-weight: bold;
}

.member-rating-log-item.positive .rating-log-change {
    color: var(--green);
}

.member-rating-log-item.negative .rating-log-change {
    color: var(--sat-low);
}

.rating-log-main {
    min-width: 0;
}

.rating-log-main strong,
.rating-log-main span,
.rating-log-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rating-log-main strong {
    color: var(--text);
    font-size: 13px;
}

.rating-log-main span,
.rating-log-meta span,
.member-rating-empty {
    color: rgba(242,242,242,0.62);
    font-size: 12px;
}

.rating-log-meta {
    text-align: right;
}

.member-verification-box {
    padding: 18px;
    border: 1px solid rgba(31,241,255,0.22);
    border-radius: 18px;
    background: rgba(31,241,255,0.045);
}

.member-verification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.member-verification-box h3 {
    margin: 0;
    color: var(--glow-accent);
    font-size: 17px;
}

.member-verification-close {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(220,231,243,0.24);
    border-radius: 9px;
    color: rgba(242,242,242,0.78);
    background: rgba(255,255,255,0.055);
    cursor: pointer;
    font: 700 21px/1 Arial, sans-serif;
}

.member-verification-close:hover {
    border-color: rgba(31,241,255,0.48);
    color: var(--glow-accent);
    background: rgba(31,241,255,0.1);
}

.member-verification-box label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.member-verification-box input {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: rgba(0,0,0,0.28);
    color: var(--text);
    font-size: 15px;
    font-weight: bold;
}

.member-verification-box input:focus {
    border-color: rgba(31,241,255,0.58);
    box-shadow: 0 0 16px rgba(31,241,255,0.12);
}


.member-verification-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.member-verify-button {
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid rgba(31,241,255,0.42);
    border-radius: 12px;
    background: rgba(31,241,255,0.10);
    color: var(--glow-accent);
    cursor: pointer;
    font-weight: bold;
}

.member-verify-button:hover {
    background: rgba(31,241,255,0.16);
    box-shadow: 0 0 16px rgba(31,241,255,0.12);
}

.member-verification-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: bold;
}

.member-verification-status.valid {
    color: var(--green);
}

.member-verification-status.invalid,
.member-verification-status.warn {
    color: #ff4d4d;
}

.member-verification-box p {
    margin: 10px 0 0;
    color: rgba(242,242,242,0.68);
    font-size: 13px;
    line-height: 1.45;
}

.member-detail-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.member-action-button {
    min-height: 44px;
    padding: 10px 11px;
    border: 1px solid rgba(31,241,255,0.36);
    border-radius: 14px;
    background: rgba(31,241,255,0.08);
    color: var(--glow-accent);
    cursor: pointer;
    font-weight: bold;
}

.member-action-button:hover {
    background: rgba(31,241,255,0.14);
    box-shadow: 0 0 18px rgba(31,241,255,0.10);
}


.member-detail-actions.locked .member-action-button[data-member-action],
.member-action-button:disabled {
    cursor: pointer;
    opacity: 0.45;
    box-shadow: none;
}

.member-detail-actions.locked .member-action-button[data-member-action]:hover,
.member-action-button:disabled:hover {
    background: rgba(31,241,255,0.08);
    box-shadow: none;
}

.member-action-button.reward-button {
    border-color: rgba(255,212,92,0.38);
    background: rgba(255,212,92,0.08);
    color: var(--sat-top);
}

.member-action-button.reward-button:hover {
    background: rgba(255,212,92,0.14);
    box-shadow: 0 0 18px rgba(255,212,92,0.10);
}


.member-flow-panel {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid rgba(31,241,255,0.20);
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
}

.member-flow-panel[hidden] {
    display: none;
}

.member-afk-status {
    margin-bottom: 14px;
    padding: 11px 12px;
    border: 1px solid rgba(220,231,243,0.20);
    border-radius: 12px;
    color: rgba(242,242,242,0.72);
    background: rgba(220,231,243,0.045);
    font-size: 13px;
    font-weight: bold;
}

.member-afk-status.active {
    border-color: rgba(255,212,92,0.34);
    color: #ffd45c;
    background: rgba(255,212,92,0.065);
}

.member-afk-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.member-afk-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.member-afk-form label.wide {
    grid-column: 1 / -1;
}

.member-afk-form input {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: rgba(0,0,0,0.28);
    color: var(--text);
    font-size: 14px;
    font-weight: bold;
}

.member-afk-form input:focus {
    border-color: rgba(31,241,255,0.58);
    box-shadow: 0 0 16px rgba(31,241,255,0.12);
}

.member-afk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.member-flow-submit.muted {
    border-color: rgba(220,231,243,0.24);
    background: rgba(220,231,243,0.055);
    color: #dce7f3;
}

.member-flow-panel-head h3 {
    margin: 0 0 6px;
    color: var(--glow-accent);
    font-size: 17px;
}

.member-flow-panel-head p {
    margin: 0 0 14px;
    color: rgba(242,242,242,0.68);
    font-size: 13px;
    line-height: 1.45;
}

.member-file-picker,
.member-reward-select-label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.member-file-picker input,
.member-reward-select-label select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: rgba(0,0,0,0.28);
    color: var(--text);
    font-size: 14px;
    font-weight: bold;
}

.member-file-picker input:focus,
.member-reward-select-label select:focus {
    border-color: rgba(31,241,255,0.58);
    box-shadow: 0 0 16px rgba(31,241,255,0.12);
}

.member-upload-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.member-upload-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
    color: var(--text);
    font-size: 13px;
}

.member-upload-list li span {
    color: var(--muted);
    white-space: nowrap;
}

.member-upload-list li.muted {
    color: var(--muted);
}

.member-reward-preview {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(255,212,92,0.20);
    border-radius: 14px;
    background: rgba(255,212,92,0.055);
}

.member-reward-preview h4 {
    margin: 0 0 8px;
    color: var(--sat-top);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.member-reward-preview p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: bold;
}

.member-flow-submit {
    margin-top: 14px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(31,241,255,0.36);
    border-radius: 13px;
    background: rgba(31,241,255,0.10);
    color: var(--glow-accent);
    cursor: pointer;
    font-weight: bold;
}

.member-flow-submit.reward {
    border-color: rgba(255,212,92,0.38);
    background: rgba(255,212,92,0.09);
    color: var(--sat-top);
}

.member-flow-submit:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.member-action-message {
    min-height: 22px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: bold;
}

@media (max-width: 850px) {
    .member-detail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .member-detail-actions {
        grid-template-columns: 1fr;
    }

    .member-detail-dialog {
        padding: 22px 16px;
    }

    .member-detail-header {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
        max-width: none;
        padding-right: 14px;
    }

    .member-detail-sat {
        width: 100%;
        text-align: left;
    }

    .member-points-main {
        grid-column: 1;
        grid-row: 2;
    }

    .member-points-breakdown {
        grid-column: 1;
        grid-row: 3;
        margin-top: 8px;
        padding-top: 8px;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.16);
        border-left: 0;
    }

    .member-detail-grid {
        grid-template-columns: 1fr;
    }

    .member-detail-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-events-intro {
        align-items: stretch;
        flex-direction: column;
        min-height: 0;
    }

    .member-events-open-button {
        width: 100%;
    }

    .member-point-guide-panel .point-rule-grid {
        grid-template-columns: 1fr;
    }

    .member-point-guide-panel .point-rule-card-wide {
        grid-column: span 1;
    }

    .member-point-guide-panel .point-rule-values-grid,
    .member-point-guide-panel .point-guide-info-grid {
        grid-template-columns: 1fr;
    }

    .member-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-rating-log-item {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .rating-log-meta {
        grid-column: 1 / -1;
        text-align: left;
    }
}


.table-card
.table-card {
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--card2);
    color: var(--green);
    padding: 14px;
    text-align: left;
}

td {
    padding: 14px;
    border-top: 1px solid var(--border);
}
