/* === CORE VARIABLES (Your existing, excellent choices) === */
:root {
    --primary-red: #C8102E; /* Aljohn's accent red */
    --primary-blue: #003087; /* Aljohn's accent blue */
    --accent-yellow: lch(86.93% 87.16 91.27); /* Vivid Gold/Yellow */
    --tech-cyan: #00A9FF; /* Vibrant Cyan */
    --tech-lime: #00FF7F; /* Bright Green for positive highlights */
    --tech-magenta: #FF00FF; /* Optional vibrant accent */

    --deep-space-blue: #070d1f;
    --midnight-blue: #0e1a35;
    --panel-bg: rgba(16, 30, 58, 0.85);
    --panel-bg-opaque: #101e3a;
    
    --tech-light-text: #e0f2f7;
    --tech-medium-text: #a8c0d8;
    --tech-dim-text: #7a8c99;

    --tech-border-color: rgba(0, 169, 255, 0.25);
    --tech-border-strong: rgba(0, 169, 255, 0.5);
    --tech-border-interactive: var(--tech-cyan);

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    --card-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--tech-border-color);
    --glow-shadow-cyan: 0 0 15px rgba(0, 169, 255, 0.3), 0 0 25px rgba(0, 169, 255, 0.2);
    --glow-shadow-yellow: 0 0 15px rgba(255, 215, 0, 0.4);

    /* NEW: Define your global header height if it's fixed */
    /* Adjust this value to the actual height of your site's main header */
    --global-header-height: 70px; /* Example: 70px. If no fixed header, set to 0px */
}

/* === GLOBAL RESETS & BODY === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.apps-tech-theme {
    background-color: var(--deep-space-blue);
    color: var(--tech-light-text);
    font-family: var(--font-secondary);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Padding top to account for your site's global fixed header */
    padding-top: var(--global-header-height, 70px); /* Default to 70px if variable not set */
}

/* === ARSENAL CONTAINER & LAYOUT === */
.arsenal-container {
    display: flex;
    gap: 25px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 25px;
}
/* === SIDEBAR (STICKY FILTER ARSENAL) === */
.arsenal-sidebar {
    width: 300px;
    flex-shrink: 0;
    padding: 20px;
    background-color: var(--panel-bg); /* Your existing panel background */
    border-radius: 10px;
    border: 1px solid var(--tech-border-color);
    box-shadow: var(--card-shadow);
    
    /* --- STICKY IMPLEMENTATION --- */
    position: sticky;
    /* Adjust 'top' value: global header height + top padding of .arsenal-container */
    top: calc(var(--global-header-height, 70px) + 25px); 
    /* If no global header, and padding-top on body is 0, then just 'top: 25px;' */
    
    /* Height calculation to prevent it from overlapping a potential site footer */
    /* Viewport height - (top offset) - (bottom padding of .arsenal-container) */
    height: calc(100vh - (var(--global-header-height, 70px) + 25px) - 25px);
    overflow-y: auto; /* Make the sidebar's content scrollable if it's too tall */

    /* Custom scrollbar for sidebar (Webkit) - from your previous good version */
    scrollbar-width: thin;
    scrollbar-color: var(--tech-cyan) var(--midnight-blue);
}
/* ... (rest of sidebar styles remain the same) ... */
.arsenal-sidebar::-webkit-scrollbar {
    width: 8px;
}
.arsenal-sidebar::-webkit-scrollbar-track {
    background: var(--midnight-blue);
    border-radius: 10px;
}
.arsenal-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--tech-cyan);
    border-radius: 10px;
    border: 2px solid var(--midnight-blue);
}
.arsenal-sidebar h2 {
    font-family: var(--font-primary);
    color: var(--tech-cyan);
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tech-border-strong);
    text-shadow: var(--glow-shadow-cyan);
}
.arsenal-sidebar h3 {
    font-family: var(--font-primary);
    color: var(--accent-yellow);
    font-size: 1.15em;
    margin-top: 25px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--tech-border-color);
    display: flex;
    align-items: center;
}
.arsenal-sidebar h3 i {
    margin-right: 8px;
    font-size: 0.9em;
    opacity: 0.8;
}
/* === COMMAND CONSOLE - FILTER TOGGLE SWITCHES === */
/* Add this section to apps_navigator.css */
/* In apps_navigator.css */

/* === Ensure Base Filter Group Styling is Robust === */
.filter-group {
    margin-bottom: 20px;
    /* Add this if you see width changes - helps stabilize layout,
       though flex/grid on children is usually better */
    /* clear: both; */ 
}

/* Make sure labels for text inputs/selects are styled nicely too */
.filter-group > label:not(:has(input[type="checkbox"])) {
    display: block;
    margin-bottom: 6px;
    color: var(--tech-medium-text);
    font-size: 0.9em;
    font-weight: 600;
}
/* === KEYWORD SEARCH INPUT === */
.filter-group input[type="text"]#search-keyword {
   width: 100%;
    padding: 10px 12px;
    padding-left: 35px !important; /* IMPORTANT: Make space for the icon. Keep !important for now. */
    border-radius: 6px;
    border: 1px solid var(--tech-border-strong);
    background-color: var(--midnight-blue);
    color: var(--tech-light-text);
    font-size: 0.95em;
    font-family: var(--font-secondary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    /* position: relative; */ /* Not strictly needed here if wrapper is relative */
}
/* Optional: Search Icon inside the input field */
/* You would need to add an icon in your HTML or use a background-image */
/* For example, if you had a span with an icon absolutely positioned inside a wrapper */


.filter-group input[type="text"]#search-keyword:focus {
    outline: none;
    border-color: var(--tech-cyan);
    box-shadow: 0 0 8px rgba(0, 169, 255, 0.5);
}
/* === RESET FILTERS BUTTON === */
#reset-filters-btn {
    background: linear-gradient(145deg, var(--primary-red), #a00018);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    width: 100%; /* Make it full width within the sidebar padding */
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 25px; /* Ensure spacing from the last filter group */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-bottom: 2px solid #800010; /* 3D effect */
    display: flex; /* For centering icon and text */
    align-items: center;
    justify-content: center;
}
#reset-filters-btn:hover {
    background: linear-gradient(145deg, #d81230, #b0001c);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
#reset-filters-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#reset-filters-btn i.fa-undo { /* Specific to the reset icon */
    margin-right: 8px;
    font-size: 0.9em; /* Adjust icon size if needed */
}

/* === FIX FOR ARSENAL NAVIGATOR AREA CHANGING WIDTH === */
/* This usually happens if elements inside change display type (e.g. inline to block)
   or if margins/paddings are applied inconsistently.
   The .arsenal-sidebar already has a fixed width (width: 300px;).
   Ensure the main content area can flex properly. */

.arsenal-main-content {
    flex: 1;
    min-width: 0; /* CRUCIAL for flex children to prevent overflow and allow shrinking */
    /* If it's still changing width, it might be something inside the app cards
       or guidance panel that's not respecting its container's bounds.
       Double-check that images or long text strings have appropriate overflow handling
       (e.g., max-width: 100%; overflow: hidden; text-overflow: ellipsis; word-break: break-all;)
       on problematic child elements. */
}

/* === TOGGLE SWITCH STYLES (FROM PREVIOUS) === */
/* Ensure these are present and correct */
.filter-group .filter-options-grid label,
.filter-group .filter-options-list label {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.95em;
    color: var(--tech-medium-text);
    padding: 8px 0; /* Reduced top/bottom padding slightly */
    transition: color 0.2s ease;
    user-select: none;
}

.filter-group .filter-options-grid label:hover,
.filter-group .filter-options-list label:hover {
    color: var(--tech-light-text);
}

.filter-group input[type="checkbox"] { /* This is the hidden actual checkbox */
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.filter-group label::before { /* The visual toggle switch track */
    content: "";
    display: inline-block;
    width: 38px; /* Slightly smaller track */
    height: 18px;
    background-color: #2d3748; 
    border: 1px solid #4a5568;
    border-radius: 9px; 
    margin-right: 10px; /* Adjusted margin */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.filter-group label::after { /* The toggle switch knob/slider */
    content: "";
    position: absolute;
    left: 3px; /* Adjusted initial position for smaller track/knob */
    top: 50%;
    transform: translateY(-50%) translateX(0); /* Added translateX(0) for smoother transition base */
    width: 12px; /* Smaller knob */
    height: 12px;
    background-color: var(--tech-medium-text);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.filter-group label:has(input[type="checkbox"]:checked) {
    color: var(--tech-cyan);
    font-weight: 600;
}

.filter-group label:has(input[type="checkbox"]:checked)::before {
    background-color: var(--tech-cyan);
    border-color: var(--tech-cyan);
}

.filter-group label:has(input[type="checkbox"]:checked)::after {
    transform: translateY(-50%) translateX(20px); /* Adjusted translateX (track_width - knob_width - (2*offset_X)) approx 38-12- (2*3) = 20 */
    background-color: var(--deep-space-blue);
}

.filter-group label:has(input[type="checkbox"]:focus-visible)::before {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--deep-space-blue), 0 0 0 5px var(--accent-yellow); /* More prominent focus */
}
/* === ARSENAL PAGE HEADER (Specific to this page) === */
/* NEW: Making these selectors more specific to avoid override by global styles */
/* In apps_navigator.css */

/* This is the header specific to the Arsenal Navigator page content */
body.apps-tech-theme .arsenal-main-content > .arsenal-header {
    margin-top: 0; /* Ensure no extra margin pushes it down from the top of arsenal-main-content */
    padding-top: 20px; /* Add some space above the "Aljohn's Polyglot Arsenal" H1 */
    /* Keep your existing background, border, text-align, etc. */
    background-color: var(--panel-bg);
    border-radius: 10px;
    border: 1px solid var(--tech-border-color);
    box-shadow: var(--card-shadow);
    text-align: center;
    margin-bottom: 25px; /* Space below it, before the guidance panel */
}

body.apps-tech-theme .arsenal-main-content > .arsenal-header h1 {
    font-family: var(--font-primary) !important; 
    color: var(--accent-yellow) !important;
    font-size: 2.2em !important; /* Adjust as needed */
    margin: 0 0 10px 0 !important;
    text-shadow: var(--glow-shadow-yellow) !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
}

body.apps-tech-theme .arsenal-main-content > .arsenal-header p {
    font-family: var(--font-secondary) !important;
    color: var(--tech-medium-text) !important;
    font-size: 1.1em !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}


/* === DYNAMIC GUIDANCE PANEL (SCROLLABLE) === */
.guidance-panel-container {
    background-color: rgba(0, 20, 40, 0.7);
    border: 1px solid var(--tech-border-color);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    color: var(--tech-medium-text);
    font-size: 0.98em;
    text-align: left;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
    max-height: 220px; 
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--tech-cyan) var(--midnight-blue);
}
/* ... (rest of guidance panel styles remain the same) ... */
.guidance-panel-container::-webkit-scrollbar { /* Duplicated for completeness */
    width: 6px;
}
.guidance-panel-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.guidance-panel-container::-webkit-scrollbar-thumb {
    background-color: var(--tech-cyan);
    border-radius: 10px;
}

.guidance-panel-container p { margin: 0 0 10px 0; }
.guidance-panel-container p:last-child { margin-bottom: 0; }
.guidance-panel-container strong { color: var(--tech-light-text); }

.guidance-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
}
.guidance-section:last-child {
    border-bottom: none; margin-bottom: 0; padding-bottom: 0;
}
.guidance-section h4 { 
    color: var(--tech-cyan);
    font-family: var(--font-primary);
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 8px;
}
.guidance-subsection {
    margin-left: 15px;
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid var(--tech-border-strong);
}
.guidance-subsection h5 { 
    color: var(--accent-yellow);
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 5px;
}
.guidance-caution p { 
    color: var(--tech-medium-text);
    font-style: italic;
}
.guidance-panel-container p strong { 
    color: var(--tech-light-text);
    font-weight: 600; 
}


/* === ARSENAL CONTROLS (Sort by, Results count) === */
.arsenal-controls {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 15px;
    background-color: var(--panel-bg-opaque);
    border-radius: 8px;
    border: 1px solid var(--tech-border-color);
}
.arsenal-controls label { color: var(--tech-medium-text); font-weight: 600; }
.arsenal-controls select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--tech-border-strong);
    background-color: var(--midnight-blue);
    color: var(--tech-light-text);
    font-family: var(--font-secondary);
    cursor: pointer;
}
.results-count-display { /* Renamed from #results-count for consistency */
    color: var(--tech-cyan);
    font-weight: 600;
    margin-left: auto;
    font-family: var(--font-mono);
}

/* === APP GRID & CARDS === */
.app-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}
/* ... (rest of app card styles remain the same from previous good version) ... */
.app-card {
    background-color: var(--panel-bg);
    border-radius: 8px; 
    padding: 20px;
    border: 1px solid var(--tech-border-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
    display: flex;
    flex-direction: column;
    position: relative; 
}
.app-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--tech-border-strong), var(--glow-shadow-cyan);
    border-color: var(--tech-border-interactive);
}

.app-card-header {
    display: flex;
    align-items: flex-start; 
    gap: 15px;
    margin-bottom: 12px;
}
.app-card-logo {
    width: 48px; 
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255,255,255,0.9); 
    padding: 3px;
    border: 1px solid var(--tech-border-light);
    flex-shrink: 0;
}
.app-card-title-section {
    flex-grow: 1;
}
.app-card-title-section h3 {
    font-family: var(--font-primary);
    color: var(--tech-light-text);
    margin: 0 0 4px 0;
    font-size: 1.35em; 
    line-height: 1.2;
}
.rating-stars-card {
    color: var(--accent-yellow);
    font-size: 0.9em;
    margin-bottom: 8px;
}
.rating-stars-card .muted-star { color: rgba(168, 192, 216, 0.4); }
.rating-stars-card .rating-numeric {
    font-size: 0.9em;
    color: var(--tech-medium-text);
    margin-left: 5px;
    font-family: var(--font-mono);
}

.app-card-tagline {
    font-size: 0.9em; 
    color: var(--tech-medium-text);
    font-style: normal; 
    margin-bottom: 12px;
    line-height: 1.5;
}

.app-card-key-tags-container {
    margin-bottom: 15px; 
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.app-card-info-tag {
    background-color: rgba(0, 169, 255, 0.1);
    color: var(--tech-cyan);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.78em;
    border: 1px solid var(--tech-border-light);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
    transition: background-color 0.2s, color 0.2s;
}
.app-card-info-tag:hover {
    background-color: var(--tech-cyan);
    color: var(--deep-space-blue);
}
.app-card-info-tag.highlighted-tag {
    background-color: var(--tech-cyan);
    color: var(--deep-space-blue);
    font-weight: 600;
    box-shadow: 0 0 8px rgba(0, 169, 255, 0.3);
}
.app-card-info-tag i { margin-right: 6px; font-size: 0.9em; }
.app-card-info-tag.cefr-card-tag {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--accent-yellow);
    border-color: rgba(255, 215, 0, 0.3);
}
.app-card-info-tag.cefr-card-tag:hover {
    background-color: var(--accent-yellow);
    color: var(--deep-space-blue);
}


.app-card-buttons {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.app-card-details-btn,
.app-card-full-review-btn {
    flex: 1 1 auto; 
    padding: 10px 12px; 
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease-out;
    cursor: pointer;
    font-size: 0.9em;
    min-width: 120px; 
    text-align: center;
}
.app-card-details-btn {
    background-color: var(--tech-cyan);
    color: var(--deep-space-blue);
    border: 1px solid var(--tech-cyan);
}
.app-card-details-btn:hover {
    background-color: #33c1ff; 
    border-color: #33c1ff;
    box-shadow: var(--glow-shadow-cyan);
}
.app-card-full-review-btn {
    background-color: transparent;
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
}
.app-card-full-review-btn:hover {
    background-color: var(--accent-yellow);
    color: var(--deep-space-blue);
    box-shadow: var(--glow-shadow-yellow);
}
.app-card-full-review-btn i { margin-left: 6px; font-size: 0.85em; }


/* === MODAL STYLES === */
.modal {
    display: none;
    position: fixed;
    z-index: 1050; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow-y: auto; 
    background-color: rgba(6, 11, 27, 0.8); 
    backdrop-filter: blur(8px); 
    padding: 20px 0; 
}

.modal-content {
    background-color: var(--midnight-blue);
    color: var(--tech-light-text);
    margin: 2% auto; 
    padding: 30px; 
    border: 1px solid var(--tech-border-strong);
    width: 90%;
    max-width: 750px; 
    border-radius: 12px; 
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow-shadow-cyan);
    animation: slideInModal 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes slideInModal {
    from { transform: translateY(-30px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close-btn {
    color: var(--tech-medium-text);
    position: absolute;
    top: 18px; right: 20px;
    font-size: 32px; font-weight: 300; 
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.modal-close-btn:hover {
    color: var(--tech-cyan);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: flex-start; 
    gap: 20px;
    border-bottom: 1px solid var(--tech-border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.modal-app-logo-img {
    width: 80px; height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    padding: 5px;
    border: 1px solid var(--tech-border-light);
    flex-shrink: 0;
}
.modal-title-group {
    flex-grow: 1;
}
.modal-header h2 { 
    font-family: var(--font-primary);
    color: var(--tech-cyan);
    font-size: 1.8em;
    margin: 0 0 6px 0;
    line-height: 1.2;
}
.app-tagline-modal { 
    color: var(--tech-medium-text);
    font-size: 1em;
    margin-bottom: 8px;
}
.rating-stars-modal {
    font-size: 1.1em; 
    margin-bottom: 10px;
}
.rating-stars-modal .muted-star { color: rgba(168, 192, 216, 0.3); }
.rating-stars-modal .rating-numeric { 
    font-size: 0.9em;
    color: var(--tech-medium-text);
    margin-left: 5px;
    font-family: var(--font-mono);
}


.modal-eyebrow-info {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.eyebrow-tag {
    font-size: 0.85em;
    background-color: rgba(0, 169, 255, 0.1);
    color: var(--tech-cyan);
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid var(--tech-border-light);
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}
.eyebrow-tag i { margin-right: 6px; opacity: 0.8; font-size: 0.9em; }
.modal-body h3 {
    color: var(--accent-yellow);
    font-family: var(--font-primary);
    font-size: 1.3em;
    margin-top: 25px; 
    margin-bottom: 12px;
    padding-bottom: 8px;
    /* Default bottom border for H3s that are NOT part of the horizontal pair */
    border-bottom: 1px solid var(--tech-border-strong); 
    display: flex;
    align-items: center;
}
/* NEW Styles for horizontal pairing */
.modal-section-horizontal-pair {
    display: flex;
    justify-content: space-between; /* Puts space between CEFR and Cost */
    align-items: flex-start; /* Align items to the top of the flex line */
    gap: 30px; /* Space between the two columns */
    margin-bottom: 20px; /* Space after this paired section */
    border-bottom: 1px solid var(--tech-border-color); /* Optional: separator line below the pair */
    padding-bottom: 15px; /* Optional: padding for the separator line */
}
.modal-section-horizontal-pair:last-of-type { /* If it's the last element before links, remove bottom border */
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0; /* Or adjust as needed before .modal-links */
}
/* NEW: Style for H3s that should NOT have a bottom border */
.modal-body h3.no-bottom-border {
    border-bottom: none; /* Remove the default bottom border */
    margin-bottom: 8px; /* Adjust margin if needed without border */
}

.cefr-suitability-container {
    flex-basis: 70%; /* CEFR suitability takes more space */
    /* Or use flex-grow: 2; or similar */
}

.cost-container {
    flex-basis: 25%; /* Cost takes less space */
    /* Or use flex-grow: 1; */
    text-align: right; /* Align cost text to the right within its container */
}
.cost-container h3 {
    justify-content: flex-end; /* Align the "Cost:" title to the right as well */
}
.cost-container p { /* The actual cost value, e.g., "Freemium" */
    font-size: 1.1em; /* Make it stand out a bit */
    font-weight: 600;
    color: var(--tech-light-text); /* Brighter for better visibility */
    margin-top: 5px; /* Align it nicely under its H3 */
}
.modal-body > .modal-section-horizontal-pair:first-child > div > h3,
.modal-body > h3:first-child {
    margin-top: 0;
}



.modal-body h3:first-of-type { margin-top: 0; } 
.modal-body h3 i { margin-right: 10px; font-size: 0.9em; }

.prose-style, 
.modal-body p, 
.modal-body ul {
    color: var(--tech-medium-text);
    font-size: 1em; 
    margin-bottom: 12px;
    line-height: 1.7; 
}
.prose-style br {
    display: block;
    margin-bottom: 0.5em; 
    content: "";
}


.modal-body ul { list-style: none; padding-left: 0; }
.modal-body ul li {
    padding-left: 1.8em; 
    position: relative;
    margin-bottom: 8px;
}
.pros ul li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    color: var(--tech-lime); 
    position: absolute; left: 0; top: 3px; font-size: 0.9em;
}
.cons ul li::before {
    content: '\f00d'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    color: var(--primary-red);
    position: absolute; left: 0; top: 3px; font-size: 0.9em;
}

.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px; margin-bottom: 20px;
}
.pros h4, .cons h4 {
    font-family: var(--font-primary);
    color: var(--tech-light-text);
    font-size: 1.05em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.pros h4 i { color: var(--tech-lime); margin-right: 8px; }
.cons h4 i { color: var(--primary-red); margin-right: 8px; }

/* CEFR Suitability Display in Modal */
.cefr-suitability-display { 
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px; 
    margin-bottom: 15px;
}
.cefr-dot { 
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85em;
    padding: 6px 10px; /* Potentially smaller pills if space is tight */
   
    border-radius: 20px;
    color: var(--deep-space-blue); 
    text-align: center;
 min-width: 45px;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent; 
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 1px 2px rgba(0,0,0,0.2); 
    line-height: 1.3; 
}
.cefr-dot.cefr-usage-high {
    background-color: var(--accent-yellow); 
    color: var(--deep-space-blue); 
    border-color: lch(80% 80 90); 
    font-weight: 700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5), inset 0 -1px 1px rgba(0,0,0,0.1); 
}
.cefr-dot.cefr-usage-medium {
    background-color: lch(75% 70 88); 
    color: var(--deep-space-blue);
    border-color: lch(70% 65 85);
    box-shadow: inset 0 -1px 1px rgba(0,0,0,0.15);
}
.cefr-dot.cefr-usage-low {
    background-color: #718096; 
    color: var(--tech-medium-text); 
    border-color: #5a6678;
    opacity: 0.9;
    font-weight: 500;
}
.cefr-dot.cefr-usage-verylow {
    background-color: #3a4555; 
    color: var(--tech-dim-text);   
    border-color: #2d3748;       
    opacity: 0.75;
    font-style: italic;
}
.cefr-dot:hover {
    transform: translateY(-2px) scale(1.08);
    filter: brightness(1.1);
}

.modal-links {
    margin-top: 25px; padding-top: 20px;
    border-top: 1px solid var(--tech-border-color);
    display: flex; flex-wrap: wrap; gap: 12px;
    /* NEW: Center the buttons */
    justify-content: center; 
}
/* ... (rest of modal link button styles remain the same) ... */
.modal-links .btn-link {
    padding: 10px 18px; 
    border-radius: 6px; 
    font-weight: 600;
    transition: all 0.25s ease-out;
    font-size: 0.95em;
    text-decoration: none;
    border: 1px solid; 
    display: inline-flex;
    align-items: center;
    gap: 8px; 
}
.modal-links .btn-link i { font-size: 1.1em; }

.modal-links .btn-website {
    background-color: var(--tech-cyan); color: var(--deep-space-blue);
    border-color: var(--tech-cyan);
}
.modal-links .btn-website:hover { background-color: #33c1ff; border-color: #33c1ff; box-shadow: var(--glow-shadow-cyan); }

.modal-links .btn-platform {
    background-color: transparent; color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}
.modal-links .btn-platform:hover { background-color: var(--accent-yellow); color: var(--deep-space-blue); box-shadow: var(--glow-shadow-yellow); }

.modal-links .btn-full-review {
    background-color: var(--primary-red); color: white;
    border-color: var(--primary-red);
}
.modal-links .btn-full-review:hover { background-color: #A8001D; border-color: #A8001D; box-shadow: 0 0 10px rgba(200,16,46,0.4); }


/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 1200px) {
    .arsenal-container {
        flex-direction: column;
        gap: 20px; 
    }
    .arsenal-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        height: auto; 
        position: static; 
        overflow-y: visible;
    }
    .filter-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); 
    }
}

@media (max-width: 768px) {
    body.apps-tech-theme { font-size: 15px; }
    .arsenal-container { padding: 15px; }
    body.apps-tech-theme .arsenal-header h1 { font-size: 1.8em !important; } /* Ensure specificity */
    body.apps-tech-theme .arsenal-header p { font-size: 1em !important; } /* Ensure specificity */
    .arsenal-sidebar { padding: 15px; }
    .app-grid-container { grid-template-columns: 1fr; gap: 20px; } 
    .pros-cons-container { grid-template-columns: 1fr; }
    .modal-content { width: 95%; margin: 5% auto; padding: 20px; }
    .modal-header { flex-direction: column; align-items: center; text-align: center; gap: 15px; }
    .modal-app-logo-img { margin-right: 0; margin-bottom: 10px; }
    .modal-body h3 { font-size: 1.2em; }
    .modal-links { justify-content: center; }
}

@media (max-width: 480px) {
    .filter-options-grid { grid-template-columns: 1fr; } 
    .app-card-key-tags-container { gap: 5px; }
    .app-card-info-tag { font-size: 0.7em; padding: 4px 8px; }
    .arsenal-controls { flex-direction: column; align-items: stretch; gap: 10px; }
    .arsenal-controls select { width: 100%; }
    .results-count-display { margin-left: 0; text-align: center; width: 100%; margin-top: 5px;}
}

/* Utility Class for screen readers */
.sr-only {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important; 
	-webkit-clip-path: inset(50%) !important;
		clip-path: inset(50%) !important;  
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	white-space: nowrap !important; 
}
@media (max-width: 600px) { /* Or your preferred breakpoint for stacking */
    .modal-section-horizontal-pair {
        flex-direction: column; /* Stack them vertically on smaller screens */
        align-items: stretch; /* Make them take full width when stacked */
        gap: 15px;
        border-bottom: none; /* Remove bottom border when stacked if it looks odd */
        padding-bottom: 0;
    }
    .cefr-suitability-container,
    .cost-container {
        flex-basis: auto; /* Reset basis */
        width: 100%;
        text-align: left; /* Reset text align for cost when stacked */
    }
    .cost-container h3 {
        justify-content: flex-start; /* Reset H3 alignment for cost */
    }
    .cost-container {
        border-top: 1px solid var(--tech-border-color); /* Add separator when stacked */
        padding-top: 15px;
        margin-top: 15px;
    }
}
/* === CUSTOM DROPDOWN FILTERS === */
.custom-dropdown-filter .dropdown-container {
    position: relative; /* For positioning the options panel */
    margin-top: 10px;
}

.custom-dropdown-filter .dropdown-toggle-btn {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--midnight-blue);
    color: var(--tech-light-text);
    border: 1px solid var(--tech-border-strong);
    border-radius: 6px;
    text-align: left;
    font-family: var(--font-secondary);
    font-size: 0.95em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-dropdown-filter .dropdown-toggle-btn:hover,
.custom-dropdown-filter .dropdown-toggle-btn:focus {
    border-color: var(--tech-cyan);
    box-shadow: 0 0 8px rgba(0, 169, 255, 0.3);
    outline: none;
}

.custom-dropdown-filter .dropdown-toggle-btn .dropdown-btn-text {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-dropdown-filter .dropdown-toggle-btn .dropdown-btn-icon i {
    transition: transform 0.3s ease;
}

.custom-dropdown-filter .dropdown-toggle-btn[aria-expanded="true"] .dropdown-btn-icon i {
    transform: rotate(180deg);
}

.custom-dropdown-filter .dropdown-options-panel {
    position: absolute;
    top: 100%; /* Position below the button */
    left: 0;
    right: 0;
    background-color: var(--panel-bg-opaque); /* Slightly different from sidebar to stand out */
    border: 1px solid var(--tech-border-strong);
    border-top: none; /* Avoid double border with button */
    border-radius: 0 0 6px 6px;
    z-index: 10; /* Ensure it's above other elements */
    max-height: 250px; /* Make the panel scrollable if too many options */
    overflow-y: auto;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    padding: 10px;

    /* Custom scrollbar for dropdown panel */
    scrollbar-width: thin;
    scrollbar-color: var(--tech-cyan) var(--midnight-blue);
}

.custom-dropdown-filter .dropdown-options-panel::-webkit-scrollbar {
    width: 6px;
}
.custom-dropdown-filter .dropdown-options-panel::-webkit-scrollbar-track {
    background: var(--midnight-blue);
    border-radius: 0 6px 6px 0; /* Match panel rounding */
}
.custom-dropdown-filter .dropdown-options-panel::-webkit-scrollbar-thumb {
    background-color: var(--tech-cyan);
    border-radius: 3px;
}

/* Ensure toggle switches inside dropdowns are styled correctly */
.custom-dropdown-filter .dropdown-options-panel .filter-options-list label {
    padding: 6px 2px; /* Adjust padding for items within dropdown */
    font-size: 0.9em;
}
/* In apps_navigator.css */

/* === COMMAND CONSOLE - FILTER TOGGLE SWITCHES (BASE - REMAINS FOR OTHER GROUPS) === */
/* The existing toggle switch CSS you have should largely remain for Cost, Platform, etc. */
/* We will add specific overrides below for CEFR and Immersion Strategy */

/* Reset default checkbox appearance (still needed) */
.filter-group input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* --- NEW: CEFR LEVEL - MODAL-STYLE PILLS --- */
#cefr-filter-options { /* Target the container for CEFR options */
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Spacing between pills */
    margin-top: 5px;
}

#cefr-filter-options label {
    /* Reset some general label styles if they conflict */
    padding: 0; /* Remove padding from general toggle style */
    display: inline-block; /* Change from flex for simple text centering */
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;

    /* Pill styling */
    min-width: 55px; /* Ensure pills have some width */
    padding: 7px 12px;
    border-radius: 20px; /* Pill shape */
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    border: 1px solid var(--tech-border-color);
    background-color: var(--midnight-blue); /* Inactive background */
    color: var(--tech-medium-text); /* Inactive text */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 1px 1px rgba(255,255,255,0.05);
}

#cefr-filter-options label:hover {
    border-color: var(--tech-cyan);
    color: var(--tech-light-text);
    background-color: #1a2b4a; /* Slightly lighter on hover */
}

/* Remove toggle switch pseudo-elements for CEFR labels */
#cefr-filter-options label::before,
#cefr-filter-options label::after {
    content: none !important; /* Important to override general toggle styles */
    display: none !important;
}

/* Active state for CEFR pills */
#cefr-filter-options label:has(input[type="checkbox"]:checked) {
    background-color: var(--accent-yellow);
    color: var(--deep-space-blue);
    border-color: lch(80% 80 90); /* Darker yellow border */
    font-weight: 700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5), 
                inset 0 -1px 1px rgba(0,0,0,0.15),
                0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

#cefr-filter-options label:has(input[type="checkbox"]:focus-visible) {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--deep-space-blue), 0 0 0 5px var(--accent-yellow);
}


/* --- NEW: IMMERSION STRATEGY - ILLUMINATED PODS --- */
/* --- IMMERSION STRATEGY - ILLUMINATED PODS (UPDATED ACTIVE STATE & PSEUDO RESET) --- */
#immersion-filter-options {
    display: grid; 
    grid-template-columns: 1fr; /* Make them full width to stack vertically */
    gap: 8px; /* Reduced gap for tighter vertical stack */
    margin-top: 5px;
}
#immersion-filter-options label {
    padding: 0;
    display: flex; 
    align-items: center;
    justify-content: flex-start; 
    gap: 10px; /* Increased gap between icon and text for clarity */
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    padding: 10px 14px; /* Slightly more padding */
    border-radius: 6px; 
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 0.9em;
    border: 1px solid #4a5568; 
    background-color: #2d3748; 
    color: var(--tech-medium-text);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
#immersion-filter-options label i {
    font-size: 1em; 
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease;
    width: 20px; /* Give icon a fixed width for alignment */
    text-align: center;
}
#immersion-filter-options label:hover {
    border-color: var(--tech-cyan); /* Changed hover border to cyan */
    color: var(--tech-light-text);
    background-color: #3c4a5f; 
}
#immersion-filter-options label:hover i {
    opacity: 1;
    color: var(--tech-cyan); /* Icon hover color */
}
/* Remove toggle switch pseudo-elements for Immersion labels */
/* --- MOST IMPORTANT FIX FOR GREY DOT & TOGGLE INTERFERENCE --- */
#immersion-filter-options label::before,
#immersion-filter-options label::after { /* Aggressive reset for pseudo-elements */
    content: "" !important; 
    display: none !important;
    width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important;
    border: none !important; background: none !important;
    left: auto !important; top: auto !important; /* Reset positioning */
    transform: none !important; /* Reset transforms */
}
/* Active state for Immersion Pods - BLUE THEME */
#immersion-filter-options label:has(input[type="checkbox"]:checked) {
    background: var(--tech-cyan); /* Solid Cyan */
    color: var(--deep-space-blue); 
    border-color: var(--tech-cyan); 
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 169, 255, 0.3), 
                0 0 15px rgba(0, 169, 255, 0.2),
                inset 0 -1px 0px rgba(0,0,0,0.2);
    transform: translateY(-1px); /* Removed scale to prevent blurriness on text */
}
#immersion-filter-options label:has(input[type="checkbox"]:checked) i {
    color: var(--deep-space-blue); 
    opacity: 1;
}
#immersion-filter-options label:has(input[type="checkbox"]:focus-visible) {
    outline: 2px solid var(--tech-cyan); /* Changed focus to cyan to match active state */
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--deep-space-blue), 0 0 0 5px var(--tech-cyan);
}
/* Keep existing toggle switch styles for OTHER filter groups */
/* This section should come AFTER the CEFR and Immersion specific styles, 
   or ensure selectors are specific enough not to interfere.
   The general .filter-group label::before/::after will apply to Cost, Platform, etc. 
   UNLESS they are inside #cefr-filter-options or #immersion-filter-options. */

.filter-group:not(:has(#cefr-filter-options)):not(:has(#immersion-filter-options)) .filter-options-grid label,
.filter-group:not(:has(#cefr-filter-options)):not(:has(#immersion-filter-options)) .filter-options-list label {
    /* Styles for standard toggle switches (if not already general enough) */
    /* This is to ensure Cost, Platform etc. still use the old toggles */
    /* You might already have these general styles: */
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.95em;
    color: var(--tech-medium-text);
    padding: 8px 0; /* Reduced top/bottom padding slightly */
    transition: color 0.2s ease;
    user-select: none;
}

.filter-group:not(:has(#cefr-filter-options)):not(:has(#immersion-filter-options)) label:hover {
    color: var(--tech-light-text);
}


/* The visual toggle switch track for OTHER groups */
.filter-group:not(:has(#cefr-filter-options)):not(:has(#immersion-filter-options)) label::before {
    content: "";
    display: inline-block;
    width: 38px; 
    height: 18px;
    background-color: #2d3748; 
    border: 1px solid #4a5568;
    border-radius: 9px; 
    margin-right: 10px; 
    transition: background-color 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

/* The toggle switch knob/slider for OTHER groups */
.filter-group:not(:has(#cefr-filter-options)):not(:has(#immersion-filter-options)) label::after {
    content: "";
    position: absolute;
    left: 3px; 
    top: 50%;
    transform: translateY(-50%) translateX(0); 
    width: 12px; 
    height: 12px;
    background-color: var(--tech-medium-text);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Styles when checkbox is CHECKED for OTHER groups */
.filter-group:not(:has(#cefr-filter-options)):not(:has(#immersion-filter-options)) label:has(input[type="checkbox"]:checked) {
    color: var(--tech-cyan);
    font-weight: 600;
}

.filter-group:not(:has(#cefr-filter-options)):not(:has(#immersion-filter-options)) label:has(input[type="checkbox"]:checked)::before {
    background-color: var(--tech-cyan);
    border-color: var(--tech-cyan);
}

.filter-group:not(:has(#cefr-filter-options)):not(:has(#immersion-filter-options)) label:has(input[type="checkbox"]:checked)::after {
    transform: translateY(-50%) translateX(20px); 
    background-color: var(--deep-space-blue);
}

/* Focus styles for OTHER groups */
.filter-group:not(:has(#cefr-filter-options)):not(:has(#immersion-filter-options)) label:has(input[type="checkbox"]:focus-visible)::before {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--deep-space-blue), 0 0 0 5px var(--accent-yellow); 
}
/* --- NEW: Specifically remove toggle pseudo-elements from labels NOT for checkboxes (like Keyword Search label) --- */
.filter-group > label:not(:has(input[type="checkbox"]))::before,
.filter-group > label:not(:has(input[type="checkbox"]))::after {
    content: "" !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}
/* === KEYWORD SEARCH INPUT (with icon) === */
.search-input-wrapper { /* Add this wrapper in your HTML around the search input and icon */
    position: relative;
}
.search-input-wrapper .fa-search {
  position: absolute;
    left: 12px; /* Adjust if needed */
    top: 50%;
    transform: translateY(-50%);
    color: var(--tech-cyan); /* <<<< LET'S TRY --tech-cyan for better visibility */
    font-size: 0.9em;       /* Adjust if needed */
    pointer-events: none;   /* Good to keep, prevents icon from blocking clicks on input */
    /* z-index: 2; */      /* Usually not needed, but can add if it's behind something */
}
/* In apps/css/apps_navigator.css */

/* === "Aljohn Original" Banner for Polyglot Connect === */

/* Ensure the card is a positioning context */
.app-card[data-app-id="app-polyglotconnect"] {
    position: relative; /* This is crucial for the pseudo-element */
    overflow: hidden; /* This keeps the banner neat */
    border-color: var(--accent-yellow); /* Give it a default standout border */
}

/* Create the banner using a pseudo-element */
.app-card[data-app-id="app-polyglotconnect"]::before {
    content: "ORIGINAL";
    position: absolute;
    top: 22px;
    right: -35px;
    transform: rotate(45deg);
    
    background-color: var(--accent-yellow);
    color: var(--deep-space-blue);
    
    padding: 5px 40px;
    font-size: 0.6em;
    font-weight: 700;
    font-family: var(--font-primary);
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1; /* Make sure it's above other card content */
}
/* In apps/css/apps_navigator.css */

/* === Founder's Edition Card for Polyglot Connect === */

/* Target the specific card using its ID */
.app-card[data-app-id="app-polyglotconnect"] {
    /* 1. A unique, subtle background gradient */
    background: 
        radial-gradient(circle at 100% 0%, rgba(200, 16, 46, 0.15), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(0, 169, 255, 0.15), transparent 40%),
        var(--panel-bg); /* Your existing panel background as the base */

    /* 2. A more prominent border */
    border: 1px solid var(--primary-red);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3), /* Deeper shadow */
        0 0 20px rgba(200, 16, 46, 0.3), /* Red glow */
        inset 0 0 15px rgba(0, 169, 255, 0.1); /* Inner cyan glow */
    
    /* 3. A subtle animation to make it "breathe" */
    animation: founderGlow 4s ease-in-out infinite;
}

/* 4. Override hover state for a unique interaction */
.app-card[data-app-id="app-polyglotconnect"]:hover {
    transform: translateY(-8px) scale(1.02); /* More pronounced lift */
    border-color: var(--accent-yellow);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 215, 0, 0.5), /* Brighter yellow glow on hover */
        0 0 10px rgba(200, 16, 46, 0.4); /* Lingering red glow */
}

/* 5. Style the "Details" button to be a primary CTA */
.app-card[data-app-id="app-polyglotconnect"] .app-card-details-btn {
    background: linear-gradient(135deg, var(--accent-yellow), lch(80% 80 90));
    color: var(--deep-space-blue);
    border-color: lch(80% 80 90);
    font-weight: 700;
}

.app-card[data-app-id="app-polyglotconnect"] .app-card-details-btn:hover {
    box-shadow: var(--glow-shadow-yellow);
}


/* 6. The animation keyframes */
@keyframes founderGlow {
    0% {
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(200, 16, 46, 0.3),
            inset 0 0 15px rgba(0, 169, 255, 0.1);
        border-color: var(--primary-red);
    }
    50% {
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(200, 16, 46, 0.45), /* Intensify red glow */
            inset 0 0 20px rgba(0, 169, 255, 0.2); /* Intensify cyan glow */
        border-color: lch(60% 80 10); /* Slightly brighter red */
    }
    100% {
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(200, 16, 46, 0.3),
            inset 0 0 15px rgba(0, 169, 255, 0.1);
        border-color: var(--primary-red);
    }
}
/* Optional: Add a subtle icon to the banner */
/* 
.app-card[data-app-id="app-polyglotconnect"]::after {
    content: "\f005"; // Star icon from Font Awesome
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 5px;
    left: 5px;
    color: var(--accent-yellow);
    opacity: 0.5;
    font-size: 1.2em;
    z-index: 2;
}
*/
/* You might not need specific overrides if the general toggle switch CSS is good */