/* ==========================================================================
   Langlob - Modern, Human-Crafted Language Exchange Platform
   Design System: Clean, Editorial, High-Density, Authentic Community UI
   ========================================================================== */

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Authentic, grounded palette */
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    
    --brand-blue: #1d4ed8;
    --brand-blue-hover: #1e40af;
    --brand-blue-light: #eff6ff;
    --brand-blue-border: #bfdbfe;
    
    --green-emerald: #059669;
    --green-emerald-light: #ecfdf5;
    --green-emerald-border: #a7f3d0;
    
    --amber-warm: #d97706;
    --amber-warm-light: #fffbeb;
    --amber-warm-border: #fde68a;
    
    --rose-accent: #e11d48;
    --rose-light: #fff1f2;
    
    --surface-bg: #f8fafc;
    --surface-card: #ffffff;
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-dropdown: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--surface-bg);
    color: var(--slate-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--brand-blue-hover);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Header & Navigation */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.brand-logo i {
    color: var(--brand-blue);
    font-size: 22px;
}

.brand-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    background: var(--slate-100);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    margin-left: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-item a {
    color: var(--slate-600);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-item a:hover {
    color: var(--slate-900);
    background: var(--slate-100);
}

.nav-item a.active {
    color: var(--brand-blue);
    background: var(--brand-blue-light);
    font-weight: 600;
}

.badge-count {
    background: var(--rose-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    min-width: 18px;
    text-align: center;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--slate-900);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--slate-800);
    color: #ffffff;
}

.btn-blue {
    background: var(--brand-blue);
    color: #ffffff;
}

.btn-blue:hover {
    background: var(--brand-blue-hover);
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    color: var(--slate-700);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: var(--slate-50);
    border-color: var(--slate-400);
    color: var(--slate-900);
}

.btn-outline-danger {
    background: #ffffff;
    color: var(--rose-accent);
    border-color: #fecaca;
}

.btn-outline-danger:hover {
    background: var(--rose-light);
    border-color: var(--rose-accent);
    color: #9f1239;
}

.btn-danger {
    background: var(--rose-accent);
    color: #ffffff;
    border-color: var(--rose-accent);
}

.btn-danger:hover {
    background: #be123c;
    color: #ffffff;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12.5px;
}

.btn-block {
    width: 100%;
}

/* Main Layout */
main {
    flex: 1;
    padding: 32px 0 48px 0;
}

/* Homepage Hero (Warm, Editorial, Grounded) */
.home-hero {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-subtle);
}

.home-hero-header {
    max-width: 680px;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-blue);
    background: var(--brand-blue-light);
    border: 1px solid var(--brand-blue-border);
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.home-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.home-hero p {
    font-size: 16px;
    color: var(--slate-600);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Card System */
.card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.card-header {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 3 Core Exchange Modes Section */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.mode-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mode-card:hover {
    border-color: var(--slate-400);
    box-shadow: var(--shadow-card);
}

.mode-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mode-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mode-icon-f2f { background: var(--amber-warm-light); color: var(--amber-warm); }
.mode-icon-penpal { background: var(--green-emerald-light); color: var(--green-emerald); }
.mode-icon-chat { background: var(--brand-blue-light); color: var(--brand-blue); }

.mode-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-900);
}

.mode-card p {
    color: var(--slate-600);
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Forms & Filter Controls */
.search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate-700);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    background: #ffffff;
    color: var(--slate-800);
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--slate-700);
    cursor: pointer;
    user-select: none;
}

.checkbox-group input[type="checkbox"],
.checkbox-group input[type="radio"] {
    accent-color: var(--brand-blue);
    width: 16px;
    height: 16px;
}

/* Member Result Cards (Authentic Community Layout) */
.member-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 72px 1fr 150px;
    gap: 20px;
    align-items: start;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-card:hover {
    border-color: var(--slate-400);
    box-shadow: var(--shadow-card);
}

.member-avatar-box {
    text-align: center;
}

.member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--slate-100);
    border: 2px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--slate-700);
    margin: 0 auto 6px auto;
}

.member-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--slate-200);
    display: block;
    margin: 0 auto 6px auto;
    background: var(--slate-100);
}

.member-avatar-img.avatar-lg,
.member-avatar.avatar-lg {
    width: 88px;
    height: 88px;
    border: 3px solid var(--brand-blue-border);
}

.member-avatar.avatar-lg {
    font-size: 28px;
}

.member-avatar-img.avatar-sm,
.member-avatar.avatar-sm {
    width: 30px;
    height: 30px;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.member-avatar.avatar-sm {
    font-size: 11px;
    display: inline-flex;
}

.member-active-indicator {
    font-size: 11px;
    color: var(--green-emerald);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.member-active-indicator::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-emerald);
}

.member-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 2px;
}

.member-meta {
    font-size: 13px;
    color: var(--slate-500);
    margin-bottom: 10px;
}

/* Tag / Badge System */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tag {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}

.tag-native {
    background: var(--green-emerald-light);
    color: #065f46;
    border: 1px solid var(--green-emerald-border);
}

.tag-learning {
    background: var(--brand-blue-light);
    color: #1e40af;
    border: 1px solid var(--brand-blue-border);
}

.tag-mode {
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
}

.tag-match-high {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-weight: 700;
}

.tag-match-good {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-weight: 700;
}

.tag-match-moderate {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    font-weight: 700;
}

.tag-interests {
    background: #f8fafc;
    color: #475569;
    border: 1px dashed var(--border-strong);
    font-size: 11.5px;
}

.member-bio {
    font-size: 13.5px;
    color: var(--slate-700);
    line-height: 1.55;
}

.member-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Like & Action Buttons */
.btn-like {
    background: #ffffff;
    color: var(--slate-600);
    border: 1px solid var(--border-strong);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-like:hover {
    background: var(--rose-light);
    color: var(--rose-accent);
    border-color: #fecdd3;
}

.btn-like.liked {
    background: var(--rose-light);
    color: var(--rose-accent);
    border-color: #f43f5e;
}

/* Search Tabs (ConversationExchange Exact Functionality) */
.ce-search-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-strong);
    margin-bottom: 20px;
    gap: 8px;
}

.ce-tab {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-600);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ce-tab:hover {
    color: var(--slate-900);
}

.ce-tab.active {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
}

/* Messages Inbox */
.inbox-item {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s ease;
}

.inbox-item.unread {
    background: var(--brand-blue-light);
    border-left: 3px solid var(--brand-blue);
    font-weight: 600;
}

.inbox-item:hover {
    background: var(--slate-50);
}

/* Footer (Authentic, Minimalist) */
footer {
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    color: var(--slate-500);
    padding: 40px 0 24px 0;
    margin-top: auto;
    font-size: 13.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: var(--slate-900);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--slate-600);
}

.footer-col a:hover {
    color: var(--slate-900);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--slate-400);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .modes-grid {
        grid-template-columns: 1fr;
    }
    .member-card {
        grid-template-columns: 1fr;
    }
    .member-avatar-box {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .member-actions {
        flex-direction: row;
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Inline Message Corrections System */
.corrections-container {
    margin-top: 24px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
}

.correction-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--green-emerald);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.correction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 8px;
}

.correction-author {
    font-weight: 600;
    color: var(--slate-800);
    display: flex;
    align-items: center;
    gap: 6px;
}

.correction-time {
    color: var(--slate-400);
}

.correction-diff {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.diff-removed {
    background: var(--rose-light);
    color: var(--rose-accent);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    text-decoration: line-through;
}

.diff-added {
    background: var(--green-emerald-light);
    color: #065f46;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-weight: 600;
}

.correction-note {
    font-size: 12.5px;
    color: var(--slate-600);
    background: var(--slate-50);
    border: 1px dashed var(--border-strong);
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.correction-form-box {
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 16px;
}

/* Safety Modal & Overlay */
.langlob-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.langlob-modal {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    animation: modalFadeIn 0.15s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.langlob-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.langlob-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.langlob-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--slate-400);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.langlob-modal-close:hover {
    color: var(--slate-700);
}

.langlob-modal-body {
    padding: 20px;
}

.langlob-modal-footer {
    padding: 14px 20px;
    background: var(--slate-50);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Interactive Conversation Starters & Topic Generator Drawer (Suggestion 4) */
.starter-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: var(--brand-blue-light);
    border: 1px solid var(--brand-blue-border);
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    margin-bottom: 12px;
}

.starter-toggle:hover:not(:disabled) {
    border-color: var(--brand-blue);
}

.starter-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.starter-drawer {
    display: none;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 20px;
}

.starter-drawer.open {
    display: block;
}

.starter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.starter-tab {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-600);
    background: var(--slate-100);
    border: 1px solid transparent;
    padding: 5px 11px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: color 0.15s ease, background 0.15s ease;
}

.starter-tab:hover {
    color: var(--slate-900);
    background: var(--slate-200);
}

.starter-tab.active {
    color: var(--brand-blue);
    background: var(--brand-blue-light);
    border-color: var(--brand-blue-border);
}

.starter-panel {
    display: none;
}

.starter-panel.active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.starter-cat {
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.starter-cat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.starter-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.starter-card {
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
    color: var(--slate-700);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    padding: 8px 10px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.starter-card:hover {
    border-color: var(--brand-blue-border);
    background: var(--brand-blue-light);
    color: var(--slate-900);
}

.starter-card.added {
    border-color: var(--green-emerald-border);
    background: var(--green-emerald-light);
    color: var(--green-emerald);
}

.starter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.starter-hint {
    font-size: 12px;
    color: var(--slate-500);
}

@media (max-width: 768px) {
    .starter-panel.active {
        grid-template-columns: 1fr;
    }
}

/* Moderation & Admin Styling */
.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-metric-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-subtle);
}

.admin-metric-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--slate-900);
    margin-top: 4px;
    line-height: 1.1;
}

.admin-metric-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
}

.report-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-badge-harassment {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.report-badge-dating {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.report-badge-spam {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.report-badge-fake_profile {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

.report-badge-inappropriate {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.report-badge-other {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.status-badge-pending {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
}

.status-badge-action_taken {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
}

.status-badge-reviewed {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
}

.status-badge-dismissed {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
}

.user-status-banned {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 700;
}

.user-status-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 600;
}

.admin-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.admin-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-600);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.admin-tab:hover {
    background: #ffffff;
    color: var(--slate-900);
    border-color: var(--border-subtle);
}

.admin-tab.active {
    background: #ffffff;
    color: var(--brand-blue);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-subtle);
}

.report-item-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-subtle);
    transition: border-color 0.15s ease;
}

.report-item-card:hover {
    border-color: var(--border-strong);
}

.report-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.report-parties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 14px;
}




/* Online Status Badges (Anti-AI, Crisp High-Density) */
.status-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    vertical-align: middle;
}

.status-dot-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
}

/* Language Badge with Remove Button */
.tag-with-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-right: 6px !important;
}

.btn-tag-remove {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0 2px;
    font-size: 11px;
    line-height: 1;
    border-radius: 3px;
    transition: color 0.15s ease, background 0.15s ease;
}

.btn-tag-remove:hover {
    color: #b91c1c;
    background: #fee2e2;
}
