/* Summary Results Grid & Cards — PRECISION RESTORATION */
.neo-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /* Force columns to be narrower */
    gap: 0.75rem;
    /* Reduced gap */
    margin-bottom: 0;
}

.neo-summary-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Standard Gray Border */
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Lightning Border Effect */
.neo-summary-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: conic-gradient(from var(--border-angle),
            transparent 70%,
            var(--glow-color, rgba(0, 242, 255, 0.4)) 85%,
            #fff 95%,
            var(--glow-color, rgba(0, 242, 255, 0.4)) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    animation: rotate-border 4s linear infinite;
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    /* Always visible as requested */
    transition: opacity 0.5s ease;
}

/* Color logic based on Ribbon presence */
.neo-summary-card:has(.neo-safe-ribbon) {
    --glow-color: rgba(90, 240, 200, 0.6);
    /* Green Glow */
}

.neo-summary-card:has(.neo-illegal-ribbon) {
    --glow-color: rgba(255, 107, 107, 0.6);
    /* Red Glow */
}

/* UNIVERSAL FONT SIZE ENFORCEMENT (Excluding Hero Stats) */
.neo-summary-card :not(.hero-value),
.neo-summary-card span:not(.hero-value),
.neo-summary-card strong,
.neo-summary-card div:not(.neo-hero-stat) {
    font-size: 0.72rem;
}

/* NEW: Hero Stat for awareness factor */
.neo-hero-stat {
    text-align: center;
    margin: 0.5rem 0 1.2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-label {
    font-size: 0.65rem !important;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.hero-value {
    font-size: 2.2rem !important;
    font-weight: 950 !important;
    line-height: 1;
    letter-spacing: -1px;
}

.hero-divider {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0.8rem;
    border-radius: 2px;
}

.neo-summary-card:hover::before {
    opacity: 1;
}

/* Hover only for lift effect */
.neo-summary-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.neo-card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
    /* Increased gap from banner */
    margin-bottom: 1.5rem;
    /* Increased gap from stats below */
    width: 100%;
}

/* Old Label Removed */

.neo-card-badge {
    background: rgba(255, 255, 255, 0.08);
    /* Original kelabu opacity */
    padding: 0.1rem 0.4rem;
    /* Original tighter padding */
    border-radius: 4px;
    font-weight: 950;
    color: var(--text-dim);
    /* Original dim grey color */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

/* Badge and Meta Items stay static even on hover as requested */
.neo-summary-card:hover .neo-card-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim) !important;
    box-shadow: none;
}

.neo-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* Increased row gap */
    margin-bottom: 0.6rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.meta-item span {
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
}

.meta-item strong {
    color: #fff;
    font-weight: 800;
    text-align: right;
}

.neo-stats-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* Increased row gap */
}

.neo-stat-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.neo-stat-label {
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
}

.neo-stat-value {
    font-weight: 800;
    color: #fff;
    text-align: right;
}

/* Illegal Ribbon Fix */
.neo-illegal-ribbon,
.neo-safe-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    color: #fff;
    font-weight: 950;
    padding: 0.35rem 0;
    /* Slightly reduced vertical padding */
    text-transform: uppercase;
    z-index: 5;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    border-radius: 0;
    /* Full width top bar */
}

.neo-illegal-ribbon {
    background: #ff453a;
    box-shadow: 0 5px 15px rgba(255, 69, 58, 0.4);
}

.neo-safe-ribbon {
    background: #34c759;
    box-shadow: 0 5px 15px rgba(52, 199, 89, 0.4);
}

/* --- Status Colors for Dashboard View --- */
.status-illegal {
    color: #ff6b6b !important;
}

.hero-value.status-safe {
    color: #ffffff !important;
}

strong.status-safe {
    color: #5af0c8 !important;
}