/* =============================================================================
   Habbo RP Manager — Frontend & Admin Styles
   ============================================================================= */

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
    --hrm-bg:          #1a1a2e;
    --hrm-bg-light:    #16213e;
    --hrm-accent:      #7c4dff;
    --hrm-accent-dark: #5e35b1;
    --hrm-text:        #e0e0e0;
    --hrm-text-muted:  #9e9e9e;
    --hrm-border:      rgba(124, 77, 255, 0.25);
    --hrm-success:     #4caf50;
    --hrm-warning:     #ff9800;
    --hrm-danger:      #f44336;
    --hrm-info:        #2196f3;
    --hrm-radius:      12px;
    --hrm-transition:  0.3s ease;
}

/* =============================================================================
   RP PROFILE CARD
   ============================================================================= */

.hrm-rp-card {
    background-color: var(--hrm-bg);
    color: var(--hrm-text);
    border-radius: var(--hrm-radius);
    padding: 24px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.hrm-rp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hrm-accent), var(--hrm-info));
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.hrm-rp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.hrm-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--hrm-accent);
    flex-shrink: 0;
    background: var(--hrm-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hrm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hrm-avatar-placeholder {
    font-size: 28px;
    line-height: 1;
}

.hrm-rp-pseudo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hrm-rp-pseudo strong {
    font-size: 1.1em;
    color: #fff;
}

/* ── Grade Badge ────────────────────────────────────────────────────────────── */
.hrm-rp-row {
    margin-bottom: 14px;
}

.hrm-grade-badge {
    display: inline-block;
    background-color: var(--hrm-accent);
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ── Info Grid ──────────────────────────────────────────────────────────────── */
.hrm-rp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.hrm-rp-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid var(--hrm-border);
}

.hrm-rp-label {
    font-size: 0.72em;
    color: var(--hrm-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hrm-rp-info-item span:last-child {
    font-size: 0.95em;
    color: var(--hrm-text);
    font-weight: 500;
}

/* ── Stat Bars ──────────────────────────────────────────────────────────────── */
.hrm-rp-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hrm-bar-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hrm-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82em;
    color: var(--hrm-text-muted);
}

.hrm-bar-pct {
    font-weight: 700;
    color: var(--hrm-text);
}

.hrm-bar-track {
    width: 100%;
    height: 12px;
    background-color: rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.hrm-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hrm-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    border-radius: 6px;
}

/* Default bar colors */
.hrm-bar-faim .hrm-bar-fill { background-color: var(--hrm-warning); }
.hrm-bar-soif .hrm-bar-fill { background-color: var(--hrm-info); }

/* ── Not logged / Not found states ──────────────────────────────────────────── */
.hrm-not-logged,
.hrm-not-found {
    text-align: center;
    padding: 32px 24px;
    color: var(--hrm-text-muted);
}

/* =============================================================================
   LOGIN FORM WIDGET
   ============================================================================= */

.hrm-login-form {
    background-color: var(--hrm-bg);
    color: var(--hrm-text);
    border-radius: var(--hrm-radius);
    padding: 32px;
    font-family: inherit;
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.hrm-login-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
    text-align: center;
}

.hrm-step-label {
    font-size: 0.9em;
    color: var(--hrm-text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

/* ── Input Row ──────────────────────────────────────────────────────────────── */
.hrm-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.hrm-pseudo-input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--hrm-border);
    border-radius: 8px;
    color: var(--hrm-text);
    padding: 10px 14px;
    font-size: 0.95em;
    outline: none;
    transition: border-color var(--hrm-transition);
}

.hrm-pseudo-input:focus {
    border-color: var(--hrm-accent);
    background: rgba(124, 77, 255, 0.08);
}

.hrm-pseudo-input::placeholder {
    color: var(--hrm-text-muted);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.hrm-btn-primary {
    background-color: var(--hrm-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--hrm-transition), transform 0.1s;
    white-space: nowrap;
}

.hrm-btn-primary:hover {
    background-color: var(--hrm-accent-dark);
}

.hrm-btn-primary:active {
    transform: scale(0.97);
}

.hrm-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hrm-btn-secondary {
    background: transparent;
    color: var(--hrm-text-muted);
    border: 1px solid var(--hrm-border);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.85em;
    cursor: pointer;
    transition: color var(--hrm-transition), border-color var(--hrm-transition);
}

.hrm-btn-secondary:hover {
    color: var(--hrm-text);
    border-color: var(--hrm-accent);
}

/* ── Code Display ───────────────────────────────────────────────────────────── */
.hrm-code-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(124, 77, 255, 0.12);
    border: 1px dashed var(--hrm-accent);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0 10px;
}

.hrm-code-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
    flex: 1;
    text-align: center;
}

.hrm-btn-copy {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 4px;
    border-radius: 4px;
    transition: transform 0.2s;
}

.hrm-btn-copy:hover {
    transform: scale(1.2);
}

.hrm-code-expiry {
    font-size: 0.78em;
    color: var(--hrm-text-muted);
    text-align: center;
    margin: 0 0 16px;
}

/* ── Verify Row ─────────────────────────────────────────────────────────────── */
.hrm-verify-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Messages ───────────────────────────────────────────────────────────────── */
.hrm-error-msg {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.4);
    border-radius: 8px;
    color: #ff8a80;
    padding: 10px 14px;
    font-size: 0.85em;
    margin-top: 12px;
    line-height: 1.5;
}

.hrm-success-msg {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 8px;
    color: #a5d6a7;
    padding: 16px 20px;
    font-size: 1em;
    text-align: center;
    line-height: 1.5;
}

/* ── Loading Spinner ────────────────────────────────────────────────────────── */
.hrm-loading {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.75);
    border-radius: var(--hrm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hrm-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(124, 77, 255, 0.3);
    border-top-color: var(--hrm-accent);
    border-radius: 50%;
    animation: hrm-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes hrm-spin {
    to { transform: rotate(360deg); }
}

/* ── Already logged ─────────────────────────────────────────────────────────── */
.hrm-already-logged {
    text-align: center;
}

.hrm-already-logged p {
    margin-bottom: 16px;
    color: var(--hrm-text-muted);
}

/* =============================================================================
   ADMIN STYLES
   ============================================================================= */

.hrm-admin-wrap {
    max-width: 1200px;
}

.hrm-admin-wrap h1 {
    margin-bottom: 0;
}

/* ── Mini bars in admin table ───────────────────────────────────────────────── */
.hrm-mini-bar {
    width: 80px;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.hrm-mini-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.hrm-bar-vie   .hrm-mini-bar-fill,
.hrm-mini-bar-fill.hrm-bar-vie   { background-color: #4caf50; }
.hrm-bar-faim  .hrm-mini-bar-fill,
.hrm-mini-bar-fill.hrm-bar-faim  { background-color: #ff9800; }
.hrm-bar-soif  .hrm-mini-bar-fill,
.hrm-mini-bar-fill.hrm-bar-soif  { background-color: #2196f3; }

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.hrm-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.hrm-badge-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.hrm-badge-pending {
    background: #fff8e1;
    color: #f57f17;
}

/* ── Edit card ──────────────────────────────────────────────────────────────── */
.hrm-edit-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.hrm-edit-card h2 {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* ── Form table ─────────────────────────────────────────────────────────────── */
.hrm-form-table th {
    width: 200px;
    padding: 12px 10px;
}

.hrm-form-table td {
    padding: 10px;
}

/* ── Filter form ────────────────────────────────────────────────────────────── */
.hrm-filter-form {
    margin-bottom: 12px;
}

.hrm-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
}

.hrm-filter-row input[type="text"],
.hrm-filter-row input[type="date"],
.hrm-filter-row select {
    height: 32px;
    border-radius: 4px;
    border: 1px solid #8c8f94;
    padding: 0 8px;
    font-size: 13px;
}

/* ── Search form ────────────────────────────────────────────────────────────── */
.hrm-search-form {
    margin-bottom: 10px;
}

/* ── Table ──────────────────────────────────────────────────────────────────── */
.hrm-table {
    margin-top: 10px;
}

.hrm-table th,
.hrm-table td {
    vertical-align: middle;
}

/* ── Log values ─────────────────────────────────────────────────────────────── */
.hrm-old-val {
    color: #c62828;
    font-family: monospace;
}

.hrm-new-val {
    color: #2e7d32;
    font-family: monospace;
    font-weight: 600;
}

/* ── Total count ────────────────────────────────────────────────────────────── */
.hrm-total {
    color: #646970;
    font-size: 13px;
    margin-top: 8px;
}

/* =============================================================================
   AVATAR WIDGET
   ============================================================================= */

.hrm-avatar-widget {
    display: inline-block;
    vertical-align: top;
}

.hrm-avatar-img-wrap {
    display: inline-block;
    line-height: 0;
    position: relative;
    overflow: hidden;
    transition: transform var(--hrm-transition), box-shadow var(--hrm-transition);
}

.hrm-avatar-img {
    display: block;
    width: 120px;
    height: 180px;
    object-fit: contain;
    image-rendering: pixelated; /* Keep Habbo pixel art crisp */
}

/* Subtle lift on hover */
.hrm-avatar-img-wrap:hover {
    transform: translateY(-2px);
}

/* ── Meta (pseudo + grade below avatar) ─────────────────────────────────────── */
.hrm-avatar-meta {
    margin-top: 8px;
    text-align: inherit;
    line-height: 1.4;
}

.hrm-avatar-pseudo {
    font-size: 0.9em;
    font-weight: 700;
    color: #fff;
    display: block;
}

.hrm-avatar-grade {
    font-size: 0.78em;
    color: var(--hrm-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-top: 2px;
}

/* ── Not logged / not found states ──────────────────────────────────────────── */
.hrm-avatar-not-logged,
.hrm-avatar-not-found {
    color: var(--hrm-text-muted);
    font-size: 0.85em;
    padding: 12px 0;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 600px) {
    .hrm-rp-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hrm-input-row {
        flex-direction: column;
    }

    .hrm-btn-primary,
    .hrm-btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hrm-verify-row {
        flex-direction: column;
    }

    .hrm-login-form {
        padding: 20px 16px;
    }

    .hrm-rp-card {
        padding: 16px;
    }

    .hrm-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =============================================================================
   BANK PANEL WIDGET
   ============================================================================= */

.hrm-bank-panel {
    background-color: var(--hrm-bg);
    color: var(--hrm-text);
    border-radius: var(--hrm-radius);
    padding: 24px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.hrm-bank-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ff9800);
}

.hrm-bank-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

/* ── Tabs ───────────────────────────────────────────────────────────────────── */
.hrm-bank-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--hrm-border);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hrm-bank-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--hrm-text-muted);
    padding: 8px 14px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--hrm-transition), border-color var(--hrm-transition);
    margin-bottom: -1px;
}

.hrm-bank-tab:hover {
    color: var(--hrm-text);
}

.hrm-bank-tab.active {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

/* ── Tab content ────────────────────────────────────────────────────────────── */
.hrm-bank-tab-content {
    display: none !important;
}

.hrm-bank-tab-content.active {
    display: block !important;
}

.hrm-bank-desc {
    font-size: 0.85em;
    color: var(--hrm-text-muted);
    margin-bottom: 16px;
}

/* ── Form fields ────────────────────────────────────────────────────────────── */
.hrm-bank-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hrm-bank-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hrm-bank-field label {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--hrm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hrm-bank-input {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--hrm-border);
    border-radius: 8px;
    color: var(--hrm-text);
    padding: 9px 13px;
    font-size: 0.9em;
    outline: none;
    transition: border-color var(--hrm-transition);
    width: 100%;
    box-sizing: border-box;
}

.hrm-bank-input:focus {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.06);
}

.hrm-bank-input::placeholder {
    color: var(--hrm-text-muted);
}

/* ── Account type selector ──────────────────────────────────────────────────── */
.hrm-bank-type-selector,
.hrm-bank-direction-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hrm-bank-type-option,
.hrm-bank-dir-option {
    cursor: pointer;
}

.hrm-bank-type-option input,
.hrm-bank-dir-option input {
    display: none;
}

.hrm-bank-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 18px;
    border-radius: 8px;
    border: 2px solid var(--hrm-border);
    font-size: 0.85em;
    font-weight: 600;
    transition: border-color var(--hrm-transition), background var(--hrm-transition);
    cursor: pointer;
}

.hrm-bank-type-card small {
    font-size: 0.75em;
    font-weight: 400;
    color: var(--hrm-text-muted);
}

.hrm-bank-type-option input:checked + .hrm-bank-type-card.hrm-type-blue {
    border-color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
}

.hrm-bank-type-option input:checked + .hrm-bank-type-card.hrm-type-gold {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.hrm-bank-dir-option span {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid var(--hrm-border);
    font-size: 0.82em;
    transition: border-color var(--hrm-transition), background var(--hrm-transition);
    cursor: pointer;
}

.hrm-bank-dir-option input:checked + span {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
    color: #fff;
}

/* ── Bank button ────────────────────────────────────────────────────────────── */
.hrm-bank-btn {
    background-color: #ffd700;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--hrm-transition), transform 0.1s;
    align-self: flex-start;
}

.hrm-bank-btn:hover {
    background-color: #ffca00;
}

.hrm-bank-btn:active {
    transform: scale(0.97);
}

/* ── Messages ───────────────────────────────────────────────────────────────── */
.hrm-bank-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85em;
    line-height: 1.5;
}

.hrm-bank-success {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #a5d6a7;
}

.hrm-bank-error {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #ff8a80;
}

/* ── Wallet row ─────────────────────────────────────────────────────────────── */
.hrm-bank-my-accounts {
    margin-bottom: 20px;
}

.hrm-bank-wallet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--hrm-border);
}

.hrm-bank-wallet-label {
    font-size: 0.85em;
    color: var(--hrm-text-muted);
}

.hrm-bank-wallet-amount {
    font-weight: 700;
    color: #fff;
    font-size: 1em;
}

/* ── Account cards ──────────────────────────────────────────────────────────── */
.hrm-bank-account-card {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--hrm-border);
    background: rgba(255,255,255,0.04);
    transition: border-color var(--hrm-transition);
}

.hrm-bank-card-blue {
    border-left: 3px solid #2196f3;
}

.hrm-bank-card-gold {
    border-left: 3px solid #ffd700;
}

.hrm-bank-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.hrm-bank-card-type {
    font-size: 0.85em;
    font-weight: 700;
    color: #fff;
}

.hrm-bank-card-gold .hrm-bank-card-type {
    color: #ffd700;
}

.hrm-bank-card-number {
    font-size: 0.72em;
    color: var(--hrm-text-muted);
    font-family: monospace;
    letter-spacing: 0.05em;
}

.hrm-bank-card-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hrm-bank-balance-label {
    font-size: 0.75em;
    color: var(--hrm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hrm-bank-balance-amount {
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
}

.hrm-bank-no-account {
    font-size: 0.85em;
    color: var(--hrm-text-muted);
    text-align: center;
    padding: 16px 0;
}

/* ── Search row ─────────────────────────────────────────────────────────────── */
.hrm-bank-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hrm-bank-search-row .hrm-bank-input {
    flex: 1;
    min-width: 160px;
}

/* ── Accounts table ─────────────────────────────────────────────────────────── */
.hrm-bank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.hrm-bank-table th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--hrm-border);
    color: var(--hrm-text-muted);
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hrm-bank-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

.hrm-bank-table tr:last-child td {
    border-bottom: none;
}

.hrm-bank-table code {
    font-size: 0.85em;
    color: var(--hrm-text-muted);
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── Type badges ────────────────────────────────────────────────────────────── */
.hrm-bank-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.78em;
    font-weight: 700;
}

.hrm-type-blue {
    background: rgba(33, 150, 243, 0.15);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.hrm-type-gold {
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hrm-bank-empty {
    text-align: center;
    color: var(--hrm-text-muted);
    font-size: 0.85em;
    padding: 20px 0;
}

/* ── Bank item in RP card ───────────────────────────────────────────────────── */
.hrm-rp-bank-item {
    border-color: rgba(255, 215, 0, 0.25) !important;
}

.hrm-rp-bank-item .hrm-rp-label {
    color: #ffd700 !important;
}

/* ── Loading overlay ────────────────────────────────────────────────────────── */
.hrm-bank-loading {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.75);
    border-radius: var(--hrm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ── Not logged / no profile ────────────────────────────────────────────────── */
.hrm-bank-not-logged,
.hrm-bank-no-profile {
    text-align: center;
    padding: 24px;
    color: var(--hrm-text-muted);
    font-size: 0.9em;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .hrm-bank-type-selector {
        flex-direction: column;
    }

    .hrm-bank-search-row {
        flex-direction: column;
    }

    .hrm-bank-btn {
        width: 100%;
        text-align: center;
    }

    .hrm-bank-table {
        font-size: 0.78em;
    }
}

/* =============================================================================
   MAIRIE PANEL WIDGET
   ============================================================================= */

.hrm-mairie-panel {
    background-color: var(--hrm-bg);
    color: var(--hrm-text);
    border-radius: var(--hrm-radius);
    padding: 24px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.hrm-mairie-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #2196f3);
}

.hrm-mairie-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

/* Player list (no CNI) */
.hrm-mairie-player-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 0;
}

.hrm-mairie-player-item {
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85em;
    border: 1px solid var(--hrm-border);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hrm-mairie-player-item em {
    color: var(--hrm-text-muted);
    font-style: italic;
}

/* Full-width info items in RP card */
.hrm-rp-info-full {
    grid-column: 1 / -1;
}

/* =============================================================================
   PAYMENT FORM WIDGET
   ============================================================================= */

.hrm-payment-form {
    background-color: var(--hrm-bg);
    color: var(--hrm-text);
    border-radius: var(--hrm-radius);
    padding: 28px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    max-width: 520px;
}

.hrm-payment-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hrm-accent), #ff9800);
}

.hrm-payment-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.hrm-pay-wallet-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    border: 1px solid var(--hrm-border);
    font-size: 0.9em;
}

.hrm-pay-wallet-info strong {
    color: #fff;
    font-size: 1.05em;
}

.hrm-pay-screenshot-hint {
    font-size: 0.78em;
    color: var(--hrm-text-muted);
    margin: 0 0 8px;
    line-height: 1.5;
}

.hrm-pay-btn {
    background-color: var(--hrm-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--hrm-transition), transform 0.1s;
    align-self: flex-start;
}

.hrm-pay-btn:hover {
    background-color: var(--hrm-accent-dark);
}

.hrm-pay-btn:active {
    transform: scale(0.97);
}

/* =============================================================================
   PAYMENT VALIDATION WIDGET
   ============================================================================= */

.hrm-payval-panel {
    background-color: var(--hrm-bg);
    color: var(--hrm-text);
    border-radius: var(--hrm-radius);
    padding: 24px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.hrm-payval-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #ffd700);
}

.hrm-payval-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.hrm-payval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.hrm-payval-count {
    font-size: 0.85em;
    color: var(--hrm-text-muted);
    font-weight: 600;
}

/* ── Payment card ────────────────────────────────────────────────────────────── */
.hrm-payval-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--hrm-border);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color var(--hrm-transition);
}

.hrm-payval-card:hover {
    border-color: rgba(124, 77, 255, 0.4);
}

.hrm-payval-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--hrm-border);
}

.hrm-payval-id {
    font-size: 0.78em;
    font-weight: 700;
    color: var(--hrm-accent);
    font-family: monospace;
}

.hrm-payval-date {
    font-size: 0.75em;
    color: var(--hrm-text-muted);
}

.hrm-payval-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hrm-payval-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
}

.hrm-payval-row span:first-child {
    color: var(--hrm-text-muted);
    font-size: 0.9em;
}

.hrm-payval-amount {
    color: #ffd700;
    font-size: 1em;
}

.hrm-payval-note {
    font-size: 0.8em;
    color: var(--hrm-text-muted);
    font-style: italic;
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    margin-top: 4px;
}

/* ── Screenshot ─────────────────────────────────────────────────────────────── */
.hrm-payval-screenshot {
    padding: 10px 14px;
    border-top: 1px solid var(--hrm-border);
}

.hrm-payval-img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
    border: 1px solid var(--hrm-border);
    display: block;
    cursor: zoom-in;
    transition: opacity var(--hrm-transition);
}

.hrm-payval-img:hover {
    opacity: 0.85;
}

.hrm-payval-no-screenshot {
    padding: 8px 14px;
    font-size: 0.78em;
    color: var(--hrm-text-muted);
    font-style: italic;
    border-top: 1px solid var(--hrm-border);
}

/* ── Action buttons ─────────────────────────────────────────────────────────── */
.hrm-payval-actions {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--hrm-border);
    flex-wrap: wrap;
}

.hrm-payval-btn {
    flex: 1;
    min-width: 100px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--hrm-transition), transform 0.1s;
    background-color: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.hrm-payval-btn:hover {
    background-color: rgba(76, 175, 80, 0.35);
}

.hrm-payval-btn-reject {
    background-color: rgba(244, 67, 54, 0.15);
    color: #ff8a80;
    border-color: rgba(244, 67, 54, 0.3);
}

.hrm-payval-btn-reject:hover {
    background-color: rgba(244, 67, 54, 0.3);
}

.hrm-payval-btn:active {
    transform: scale(0.97);
}
