/* ==========================================================================
   Dashboard Ranker Styling System (Natural Light Mode - Posit/Shiny Brand)
   ========================================================================== */

:root {
    --bg-app: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    
    --primary: #007bc2;      /* Shiny Brand Blue */
    --primary-hover: #005a8f;
    --primary-light: #e6f4fc;
    
    --success: #5cb85c;      /* Shiny Success Green */
    --success-hover: #4cae4c;
    --success-light: #eef9ee;
    
    --warning: #f0ad4e;
    --warning-light: #fef8f0;
    
    --info: #5bc0de;
    --info-light: #f0fafd;
    
    --error: #d9534f;
    --error-hover: #c9302c;
    --error-light: #fdf3f3;
    
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-dim: #64748b;
    
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --transition-smooth: all 0.2s ease-in-out;
}

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

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Remove glow backgrounds */
.bg-glow {
    display: none;
}

/* Clean Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}

.glass-subcard {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* Header & Footer */
.app-header {
    text-align: center;
    padding: 24px 20px 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
    color: var(--primary);
}

.logo h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.app-subtitle {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.app-footer {
    text-align: center;
    padding: 16px;
    color: var(--text-dim);
    font-size: 11px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

/* Layout Container */
.app-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.active-view {
    display: flex !important;
    flex-direction: column;
    width: 100%;
}

#welcome-view, #board-view, #summary-view {
    display: none;
}

/* Onboarding Welcome Card */
.welcome-view {
    max-width: 720px;
    padding: 0;
    text-align: center;
    overflow: hidden;
}

.welcome-hero {
    padding: 36px 36px 24px 36px;
    background: linear-gradient(180deg, var(--primary-light) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
}

.welcome-icon {
    font-size: 44px;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.welcome-view h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.welcome-tagline {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}

.welcome-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 18px 36px 4px 36px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.stat-chip i {
    color: var(--primary);
    font-size: 11px;
}

.how-it-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px 36px 8px 36px;
    text-align: left;
}

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.how-step:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px -2px rgba(0, 123, 194, 0.12);
    border-color: var(--primary);
}

.how-step-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.how-step-body h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.how-step-body p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.tier-preview {
    margin: 20px 36px 0 36px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.tier-preview-caption {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: left;
}

.tier-preview-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.tier-preview-row:last-child {
    margin-bottom: 0;
}

.tier-preview-label {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    color: #1e293b;
    flex-shrink: 0;
}

.tier-preview-slot {
    height: 24px;
    min-width: 32px;
    flex: 0 1 auto;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
}

.tier-preview-slot:nth-child(2) { flex: 0 0 60px; }
.tier-preview-slot:nth-child(3) { flex: 0 0 50px; }
.tier-preview-slot:nth-child(4) { flex: 0 0 40px; }

.why-this-study {
    margin: 16px 36px 0 36px;
    text-align: left;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
}

.why-this-study summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.why-this-study summary::-webkit-details-marker {
    display: none;
}

.why-this-study summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--text-dim);
    margin-left: auto;
    transition: transform 0.2s ease;
}

.why-this-study[open] summary::after {
    transform: rotate(180deg);
}

.why-this-study-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.why-this-study-body p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.55;
}

.welcome-actions {
    padding: 20px 36px 28px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trust-line {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

@media (max-width: 600px) {
    .welcome-hero { padding: 28px 20px 20px 20px; }
    .welcome-view h2 { font-size: 21px; }
    .welcome-tagline { font-size: 13px; }
    .welcome-stats { padding: 16px 20px 4px 20px; }
    .how-it-works {
        grid-template-columns: 1fr;
        padding: 16px 20px 4px 20px;
    }
    .tier-preview { margin: 16px 20px 0 20px; }
    .why-this-study { margin: 16px 20px 0 20px; }
    .welcome-actions { padding: 18px 20px 24px 20px; }
}

/* Board View and Tier Grid */
.board-view {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tier-list-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
}

.tier-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tier-row:last-child {
    border-bottom: none;
}

.tier-label {
    width: 80px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    user-select: none;
    flex-shrink: 0;
    cursor: pointer;
}

/* Row Colors (standardized slightly softer natural colors) */
.s-tier { background-color: #ff8b94; }
.a-tier { background-color: #ffcaa6; }
.b-tier { background-color: #ffdca3; }
.c-tier { background-color: #d8f8a8; }
.d-tier { background-color: #a8f8b4; }

.tier-dropzone {
    flex: 1;
    min-height: 90px;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 10px;
    background: #fdfdfd;
    transition: var(--transition-smooth);
}

.tier-dropzone.dragover {
    background: #f1f5f9;
}

/* Thumbnail Cards */
.thumbnail-card {
    width: 80px;
    height: 74px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    cursor: grab;
    transition: var(--transition-smooth);
    background: #f1f5f9;
}

.thumbnail-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
    transform: scale(1.05);
}

.thumbnail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.card-label-tag {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    font-size: 8px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
}

.card-overlay-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px;
    transition: var(--transition-smooth);
}

.thumbnail-card:hover .card-overlay-actions {
    opacity: 1;
}

/* Placed vs. Pool actions */
.thumbnail-card .card-placed-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.pool-zone .thumbnail-card .card-placed-actions {
    display: none;
}

.thumbnail-card .mini-zoom-btn-pool {
    display: none;
}

.pool-zone .thumbnail-card .mini-zoom-btn-pool {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.pool-zone .thumbnail-card .mini-zoom-btn-pool:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #ffffff;
}

.mini-action-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.zoom-placed-btn {
    background: var(--primary);
}

.zoom-placed-btn:hover {
    background: var(--primary-hover);
}

.remove-placed-btn {
    background: var(--error);
}

.remove-placed-btn:hover {
    background: var(--error-hover);
}



/* Pool section */
.pool-section {
    padding: 16px;
}

.pool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.pool-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

#pool-count {
    font-size: 12px;
    color: var(--text-dim);
}

.pool-instructions {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pool-zone {
    min-height: 124px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 14px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    transition: var(--transition-smooth);
    scroll-behavior: smooth;
}

.pool-zone .thumbnail-card {
    width: 104px;
    height: 94px;
    flex-shrink: 0;
}

.board-actions {
    text-align: center;
    margin-top: 10px;
}

/* Modals and tags styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    border-radius: 12px;
}

.tag-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.tag-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
}

.tag-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.tag-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Button Colors (Solid Natural Posit/Shiny Blue instead of Neon Gradients) */
.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: var(--transition-smooth);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: #f8fafc;
    color: var(--text-main);
    border-color: var(--text-dim);
}

.btn-large {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
    max-width: 280px;
}

/* Results view revealed details */
.summary-view {
    width: 100%;
    padding: 32px 24px;
    display: none;
    flex-direction: column;
    align-items: center;
}

.summary-success-icon {
    font-size: 36px;
    color: var(--success);
    margin-bottom: 12px;
}

.summary-view h2 {
    font-size: 22px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.summary-view p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-align: center;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.results-tier-block {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.results-tier-header {
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
}

.results-tier-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fdfdfd;
}

.reveal-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reveal-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.reveal-img-wrapper {
    width: 50px;
    height: 46px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.reveal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reveal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reveal-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.reveal-meta {
    font-size: 10px;
    color: var(--text-muted);
}

.reveal-tags {
    margin-top: 2px;
    display: flex;
    gap: 6px;
}

.reveal-tag {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Floating Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

.lightbox-content-wrapper {
    display: flex;
    width: 90%;
    max-width: 1300px;
    height: 85vh;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.lightbox-image-area {
    flex: 1;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.lightbox-image-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: zoom-in;
}

.lightbox-sidebar {
    width: 320px;
    background: #ffffff;
    border-left: 1px solid var(--border-color);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.lightbox-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.lightbox-rank-prompt {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.lightbox-rank-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lightbox-rank-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-rank-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Active Tier styles */
.lightbox-rank-btn.active {
    border-color: transparent !important;
    color: #111111 !important;
}
.lightbox-rank-btn.l-s-tier:hover, .lightbox-rank-btn.l-s-tier.active { background-color: #ff8b94 !important; border-color: #ff8b94; }
.lightbox-rank-btn.l-a-tier:hover, .lightbox-rank-btn.l-a-tier.active { background-color: #ffcaa6 !important; border-color: #ffcaa6; }
.lightbox-rank-btn.l-b-tier:hover, .lightbox-rank-btn.l-b-tier.active { background-color: #ffdca3 !important; border-color: #ffdca3; }
.lightbox-rank-btn.l-c-tier:hover, .lightbox-rank-btn.l-c-tier.active { background-color: #d8f8a8 !important; border-color: #d8f8a8; }
.lightbox-rank-btn.l-d-tier:hover, .lightbox-rank-btn.l-d-tier.active { background-color: #a8f8b4 !important; border-color: #a8f8b4; }

.lightbox-remove-btn {
    width: 100%;
    padding: 12px;
    background: var(--error-light);
    border: 1px solid #fecaca;
    color: var(--error);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.lightbox-remove-btn:hover {
    background: var(--error);
    color: #ffffff;
    border-color: var(--error);
}

.zoom-lens-tracker {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    cursor: crosshair;
    display: none;
    pointer-events: none;
    z-index: 100;
}

.zoom-preview-pane {
    position: absolute;
    right: 0;
    top: 0;
    width: 320px;
    height: 100%;
    background: #0f172a;
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    display: none;
    pointer-events: none;
    z-index: 105;
    background-repeat: no-repeat;
}

.lightbox-shortcuts {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.shortcuts-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.shortcut-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.shortcut-key {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.shortcut-desc {
    font-size: 11px;
}

/* Responsive adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-content-wrapper {
        flex-direction: column;
        height: 90vh;
        width: 95%;
    }
    
    .lightbox-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 20px;
        height: auto;
        overflow-y: auto;
    }
    
    .lightbox-rank-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .lightbox-rank-btn {
        flex: 1 1 40%;
    }

    .lightbox-shortcuts {
        display: none;
    }

    .zoom-lens-tracker, .zoom-preview-pane {
        display: none !important;
    }
}

/* Charts & Standings Progress bars */
.chart-bars-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.chart-bar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.chart-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.chart-bar-name {
    color: var(--text-main);
    font-weight: 600;
}

.chart-bar-count {
    color: var(--text-dim);
}

.chart-bar-track {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chart-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}

.community-pending-note {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    padding: 4px 0 0 0;
    opacity: 0.85;
}

.community-pending-note .fa-spinner {
    margin-right: 4px;
}

/* Textarea elements */
.textarea-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.textarea-wrapper label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

textarea {
    width: 100%;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    resize: none;
    transition: var(--transition-smooth);
}

textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Reveal Badges */
.reveal-badges {
    display: flex;
    gap: 6px;
}

.reveal-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: help;
}

.reveal-badge i {
    font-size: 10px;
}

.reveal-badge-skills {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.reveal-badge-vanilla {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.reveal-badge-pass {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.reveal-badge-fail {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .tier-label {
        width: 60px;
        font-size: 18px;
        min-height: 74px;
    }
    
    .tier-dropzone {
        min-height: 74px;
    }
    
    .thumbnail-card {
        width: 64px;
        height: 60px;
    }
    
    .tag-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Neon Grade Pop-up Toast */
.neon-grade-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 24px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    box-shadow: 0 0 30px rgba(0, 123, 194, 0.4);
}

.neon-grade-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.neon-grade-val {
    font-family: var(--font-heading);
    font-size: 90px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 20px currentColor;
}

.neon-grade-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    opacity: 0.9;
}

/* Neon grade styles */
.neon-s-tier { color: #ff8b94; border-color: #ff8b94; box-shadow: 0 0 45px rgba(255, 139, 148, 0.6), inset 0 0 15px rgba(255, 139, 148, 0.2); }
.neon-a-tier { color: #ffcaa6; border-color: #ffcaa6; box-shadow: 0 0 45px rgba(255, 202, 166, 0.6), inset 0 0 15px rgba(255, 202, 166, 0.2); }
.neon-b-tier { color: #ffdca3; border-color: #ffdca3; box-shadow: 0 0 45px rgba(255, 220, 163, 0.6), inset 0 0 15px rgba(255, 220, 163, 0.2); }
.neon-c-tier { color: #d8f8a8; border-color: #d8f8a8; box-shadow: 0 0 45px rgba(216, 248, 168, 0.6), inset 0 0 15px rgba(216, 248, 168, 0.2); }
.neon-d-tier { color: #a8f8b4; border-color: #a8f8b4; box-shadow: 0 0 45px rgba(168, 248, 180, 0.6), inset 0 0 15px rgba(168, 248, 180, 0.2); }

/* Onboarding Evaluation Criteria */
.evaluation-criteria {
    margin: 20px 36px 0 36px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: left;
}

.evaluation-criteria h3 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.criteria-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.criteria-item strong {
    display: block;
    font-size: 12px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.criteria-item p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.45;
}

@media (max-width: 600px) {
    .evaluation-criteria {
        margin: 16px 20px 0 20px;
        padding: 14px;
    }
    .criteria-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

