:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    margin: 0;
    min-height: 100vh;
    color: var(--text-dark);
}

.app-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
    height: 100vh;
    box-sizing: border-box;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
    width: 280px;
    background: var(--white);
    border-radius: 1.2rem;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    overflow-y: auto;
}

.profile-preview {
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 12px;
    padding: 8px;
}
.profile-preview:hover {
    background: rgba(99, 102, 241, 0.08);
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: #eef2ff;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.avatar-initial {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -1px;
}

.profile-name {
    margin: 12px 0 2px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}

.profile-role {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: center;
}

.not-logout {
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.nav-buttons {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-buttons:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.nav-buttons.active {
    background: #eef2ff;
    color: var(--primary-color);
}

/* Pending badge on nav button */
.nav-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    animation: pulse-badge 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(245,158,11,0); }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.other-buttons {
    padding: 11px 14px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.chat-btn {
    background: linear-gradient(135deg, #43e6b0 0%, #6fffcf 100%);
    color: #065f46;
    box-shadow: 0 2px 10px rgba(67, 230, 176, 0.25);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.secondary-btn {
    background: #f3f4f6;
    color: var(--text-dark);
    border: 1px solid #e5e7eb;
}

.other-buttons:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.red-logout {
    flex-shrink: 0;
    margin-top: 20px;
    padding: 12px;
    text-align: center;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    display: block;
}

.red-logout:hover {
    background: #fecaca;
}

/* ── Main Content Card ─────────────────────────────────────────── */
.content-area {
    flex-grow: 1;
    background: var(--white);
    border-radius: 1.2rem;
    padding: 40px;
    box-shadow: var(--shadow);
    overflow-y: auto;
}

h1 {
    font-size: 2rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.dash-welcome-sub,
.section-sub {
    color: var(--text-gray);
    font-size: 0.92rem;
    margin: 0 0 24px;
}

/* ── Dashboard Stats Row ───────────────────────────────────────── */
.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1.5px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.dash-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.dash-stat-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.dash-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.dash-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.75;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-stat-blue   { background: linear-gradient(135deg,#dbeafe,#bfdbfe); border-color: #93c5fd; color: #1e3a8a; }
.dash-stat-purple { background: linear-gradient(135deg,#ede9fe,#ddd6fe); border-color: #c4b5fd; color: #4c1d95; }
.dash-stat-orange { background: linear-gradient(135deg,#fef3c7,#fde68a); border-color: #fbbf24; color: #78350f; }
.dash-stat-green  { background: linear-gradient(135deg,#dcfce7,#bbf7d0); border-color: #4ade80; color: #14532d; }

/* ── Reputation Tips Card ──────────────────────────────────────── */
.dash-rep-tips {
    margin-top: 24px;
}

.dash-rep-tips-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.dash-rep-tips-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 580px;
}

.rep-tip-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    transition: background 0.15s;
}

.rep-tip-row:hover {
    background: #f9fafb;
}

.rep-tip-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 0 18px;
}

.rep-tip-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rep-icon-sym {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.rep-icon-green  .rep-icon-sym { color: #15803d; }
.rep-icon-blue   .rep-icon-sym { color: #1e40af; }
.rep-icon-orange .rep-icon-sym { color: #92400e; }
.rep-icon-red    .rep-icon-sym { color: #991b1b; }

.rep-icon-blue   { background: #dbeafe; }
.rep-icon-green  { background: #dcfce7; }
.rep-icon-orange { background: #fef3c7; }
.rep-icon-red    { background: #fee2e2; }

.rep-tip-section-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 8px 18px 6px;
}

.rep-tip-section-gain { color: #15803d; background: #f0fdf4; border-top: 1px solid #f3f4f6; }
.rep-tip-section-lose { color: #b91c1c; background: #fff5f5; border-top: 1px solid #f3f4f6; }

.rep-tip-role {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.rep-tip-body {
    flex: 1;
    min-width: 0;
}

.rep-tip-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.rep-tip-desc {
    font-size: 0.78rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.rep-tip-badge {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.rep-badge-blue   { background: #dbeafe; color: #1e3a8a; }
.rep-badge-green  { background: #dcfce7; color: #14532d; }
.rep-badge-orange { background: #fef3c7; color: #92400e; }
.rep-badge-red    { background: #fee2e2; color: #991b1b; }



/* ── Reputation Card ──────────────────────────────────────────── */
.rep-card {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    padding: 22px 24px;
    border-radius: 18px;
    border: 2px solid transparent;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    max-width: 580px;
    transition: border-color 0.3s, background 0.3s;
}

.rep-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.rep-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rep-next-label {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.7;
}

.rep-bar-wrap { margin-bottom: 18px; }

.rep-bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 4px;
}

.rep-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: currentColor;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.rep-bar-ends {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    opacity: 0.6;
    font-weight: 600;
}

.rep-tiers {
    display: flex;
    justify-content: space-between;
    padding-top: 4px;
}

.rep-tier-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.4;
    transition: opacity 0.25s;
}

.rep-tier-dot.active { opacity: 1; }

.rep-tier-dot .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    border: 2px solid currentColor;
}

.rep-tier-dot.active .dot {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
    transform: scale(1.3);
}

.tier-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.reputation-summary.rep-caution { background: rgba(254,226,226,0.92); border-color: #fca5a5; color: #991b1b; }
.reputation-summary.rep-novice  { background: rgba(243,244,246,0.95); border-color: #d1d5db; color: #374151; }
.reputation-summary.rep-helpful { background: rgba(220,252,231,0.9);  border-color: #34d399; color: #065f46; }
.reputation-summary.rep-trusted { background: linear-gradient(135deg,rgba(219,234,254,0.96),rgba(191,219,254,0.9)); border-color: #3b82f6; color: #1e3a8a; }
.reputation-summary.rep-guardian{ background: linear-gradient(135deg,rgba(253,230,138,0.95),rgba(245,158,11,0.9)); border-color: #d97706; color: #78350f; }

.rep-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.75);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rep-score { font-size: 0.9rem; color: inherit; }
.rep-score strong { color: inherit; }

/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: var(--white);
    padding: 28px;
    border-radius: 18px;
    width: min(420px, calc(100% - 32px));
    box-shadow: var(--shadow);
}

.modal-card h2 {
    margin-top: 0;
    color: var(--text-dark);
}

.modal-card p {
    color: var(--text-gray);
    margin: 10px 0;
}

.avatar-upload {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-upload label {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.avatar-upload input {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px;
    background: #f9fafb;
}

.avatar-upload button { width: fit-content; }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

/* ── Posted Items Grid ─────────────────────────────────────────── */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 4px;
}

.item-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid #f3f4f6;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(99,102,241,0.15);
}

.item-card-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.item-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-card:hover .item-card-img {
    transform: scale(1.04);
}

.item-card-status-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
}

.item-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.item-card-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
}

.item-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.item-card-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.item-card-date {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* ── Item Status Pills (on posted items) ───────────────────────── */
.item-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.item-status-available    { background: rgba(220,252,231,0.92); color: #166534; border: 1px solid #4ade80; }
.item-status-lost         { background: rgba(219,234,254,0.92); color: #1e40af; border: 1px solid #93c5fd; }
.item-status-owner-confirm{ background: rgba(237,233,254,0.92); color: #5b21b6; border: 1px solid #c4b5fd; }
.item-status-resolved     { background: rgba(220,252,231,0.95); color: #14532d; border: 1px solid #4ade80; box-shadow: 0 0 0 1px #4ade80; }
.item-status-abandoned    { background: rgba(254,243,199,0.92); color: #92400e; border: 1px solid #fbbf24; }
.item-status-claimed      { background: rgba(237,233,254,0.95); color: #4c1d95; border: 1px solid #a78bfa; box-shadow: 0 0 0 1px #a78bfa; }
.item-status-default      { background: rgba(243,244,246,0.92); color: #374151; border: 1px solid #d1d5db; }

/* ── Claim Status Pills (for claim rows) ───────────────────────── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
}

.status-pending       { background: #fef9c3; color: #92400e; border: 1px solid #fde68a; }
.status-chatting      { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.status-owner-confirm { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.status-resolved      { background: #dcfce7; color: #166534; border: 1px solid #4ade80; }
.status-rejected      { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.status-canceled      { background: #f3f4f6; color: #4b5563; border: 1px solid #d1d5db; }

/* ── Active Claims List ────────────────────────────────────────── */
.claim-grid { display: flex; flex-direction: column; margin-top: 4px; gap: 10px; }

.claim-row {
    display: flex;
    gap: 14px;
    background: #fff;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
    position: relative;
    overflow: hidden;
}

.claim-row:hover {
    box-shadow: 0 6px 20px rgba(99,102,241,0.12);
    border-color: #c7d2fe;
    transform: translateX(3px);
}

.claim-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.claim-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.claim-item-title {
    font-size: 0.97rem;
    color: #111827;
}

.claim-row-answer {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-top: 4px;
}

.claim-row-action-hint {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 8px;
    flex-shrink: 0;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.claim-row:hover .claim-row-action-hint { opacity: 1; }

/* ── Claim Requests — Notification Style ───────────────────────── */
.claim-noti-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    position: relative;
    overflow: hidden;
}

.claim-noti-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(99,102,241,0.13);
}

/* PENDING — prominent highlight */
.claim-noti-pending {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24;
    box-shadow: 0 4px 16px rgba(251,191,36,0.18);
}

.claim-noti-pending::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b, #ef4444);
    border-radius: 4px 0 0 4px;
}

.noti-dot-col {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    flex-shrink: 0;
    padding-top: 2px;
}

/* Animated pulse dot for PENDING */
.noti-pulse-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245,158,11,0.6);
    animation: noti-pulse 1.5s infinite;
}

@keyframes noti-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

.noti-inactive-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
}

.noti-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.noti-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.noti-claimer-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}

.noti-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.noti-answer {
    font-size: 0.82rem;
    color: var(--text-gray);
    font-style: italic;
}

.noti-action-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    width: fit-content;
    margin-top: 4px;
}

.noti-action-approve {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

.noti-action-chat {
    background: #eef2ff;
    color: var(--primary-color);
}

/* ── Row Buttons ────────────────────────────────────────────────── */
.row-btn {
    padding: 7px 13px;
    border-radius: 8px;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
    white-space: nowrap;
}

.row-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.row-btn-primary   { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.25); }
.row-btn-secondary { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.row-btn-danger    { background: #fee2e2; color: #dc2626; }

/* ── Chat Badge ─────────────────────────────────────────────────── */
.btn-unread-badge {
    min-width: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #ff4d4d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-left: 8px;
}

/* ── Approve-confirm dialog ─────────────────────────────────────── */
.confirm-modal-card {
    background: var(--white);
    padding: 28px;
    border-radius: 18px;
    width: min(460px, calc(100% - 32px));
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.confirm-modal-card h2 { margin-top: 0; color: var(--text-dark); }

.confirm-answer-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 12px 0;
    font-style: italic;
    color: #374151;
    font-size: 0.95rem;
}

.confirm-rep {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 18px;
}

.rep-star { color: #f59e0b; font-size: 1rem; }

hr {
    border: 0;
    border-top: 1px solid #f3f4f6;
    margin: 20px 0;
}

.placeholder-content {
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    color: var(--text-gray);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .dash-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .app-layout { flex-direction: column; height: auto; }
    .sidebar { width: 100%; }
    .dash-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Restricted Account Banner ─────────────────────────────────── */
.restricted-banner {
    background: #fee2e2;
    border: 1.5px solid #fca5a5;
    border-left: 5px solid #ef4444;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 22px;
}

.restricted-banner strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #991b1b;
    display: block;
    margin-bottom: 4px;
}

.restricted-banner p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #b91c1c;
}

/* ── Section Status Filter Tabs ────────────────────────────────── */
.sf-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sf-tab {
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
}

.sf-tab:hover {
    border-color: #a5b4fc;
    background: #eef2ff;
    color: #4f46e5;
}

.sf-tab.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border-color: transparent;
}

/* ── Pending claim-row highlight ───────────────────────────────── */
.claim-row-pending {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24;
}

.claim-row-pending::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b, #ef4444);
    border-radius: 4px 0 0 4px;
}